~ubuntu-branches/debian/squeeze/nas/squeeze

« back to all changes in this revision

Viewing changes to config/configure

  • Committer: Bazaar Package Importer
  • Author(s): Steve McIntyre
  • Date: 2008-10-08 01:18:19 UTC
  • mfrom: (4.1.7 intrepid)
  • Revision ID: james.westby@ubuntu.com-20081008011819-wmr4h2w0298k8t7z
Tags: 1.9.1-5
* Fix pending l10n issues. Debconf translations:
* Swedish. Closes: #491766 (thanks to brother@bsnet.se)
* Arabic. Closes: #500437 (thanks to Ossama Khayat)
* Basque. Closes: #500533 (thanks to Piarres Beobide)
* Brazilian Portuguese. Closes: #500973 (thanks to Felipe
  Augusto van de Wiel)
* Many thanks again to Christian Perrier for his i18n efforts,
  co-ordinating the above.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.60 for nas 1.6.
 
3
# Generated by GNU Autoconf 2.59 for nas 1.6.
4
4
#
5
5
# Report bugs to <jon@radscan.com>.
6
6
#
7
 
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8
 
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
 
7
# Copyright (C) 2003 Free Software Foundation, Inc.
9
8
# This configure script is free software; the Free Software Foundation
10
9
# gives unlimited permission to copy, distribute and modify it.
11
10
## --------------------- ##
19
18
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20
19
  # is contrary to our usage.  Disable this feature.
21
20
  alias -g '${1+"$@"}'='"$@"'
22
 
  setopt NO_GLOB_SUBST
23
 
else
24
 
  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
 
21
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
22
  set -o posix
25
23
fi
26
 
BIN_SH=xpg4; export BIN_SH # for Tru64
27
24
DUALCASE=1; export DUALCASE # for MKS sh
28
25
 
29
 
 
30
 
# PATH needs CR
31
 
# Avoid depending upon Character Ranges.
32
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35
 
as_cr_digits='0123456789'
36
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
37
 
 
38
 
# The user is always right.
39
 
if test "${PATH_SEPARATOR+set}" != set; then
40
 
  echo "#! /bin/sh" >conf$$.sh
41
 
  echo  "exit 0"   >>conf$$.sh
42
 
  chmod +x conf$$.sh
43
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44
 
    PATH_SEPARATOR=';'
45
 
  else
46
 
    PATH_SEPARATOR=:
47
 
  fi
48
 
  rm -f conf$$.sh
49
 
fi
50
 
 
51
26
# Support unset when possible.
52
27
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53
28
  as_unset=unset
56
31
fi
57
32
 
58
33
 
59
 
# IFS
60
 
# We need space, tab and new line, in precisely that order.  Quoting is
61
 
# there to prevent editors from complaining about space-tab.
62
 
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
63
 
# splitting by setting IFS to empty value.)
64
 
as_nl='
65
 
'
66
 
IFS=" ""        $as_nl"
67
 
 
68
 
# Find who we are.  Look in the path if we contain no directory separator.
69
 
case $0 in
70
 
  *[\\/]* ) as_myself=$0 ;;
71
 
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
72
 
for as_dir in $PATH
73
 
do
74
 
  IFS=$as_save_IFS
75
 
  test -z "$as_dir" && as_dir=.
76
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
77
 
done
78
 
IFS=$as_save_IFS
79
 
 
80
 
     ;;
81
 
esac
82
 
# We did not find ourselves, most probably we were run as `sh COMMAND'
83
 
# in which case we are not to be found in the path.
84
 
if test "x$as_myself" = x; then
85
 
  as_myself=$0
86
 
fi
87
 
if test ! -f "$as_myself"; then
88
 
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
89
 
  { (exit 1); exit 1; }
90
 
fi
91
 
 
92
34
# Work around bugs in pre-3.0 UWIN ksh.
93
 
for as_var in ENV MAIL MAILPATH
94
 
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
95
 
done
 
35
$as_unset ENV MAIL MAILPATH
96
36
PS1='$ '
97
37
PS2='> '
98
38
PS4='+ '
106
46
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107
47
    eval $as_var=C; export $as_var
108
48
  else
109
 
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
49
    $as_unset $as_var
110
50
  fi
111
51
done
112
52
 
113
53
# Required to use basename.
114
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
115
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
54
if expr a : '\(a\)' >/dev/null 2>&1; then
116
55
  as_expr=expr
117
56
else
118
57
  as_expr=false
119
58
fi
120
59
 
121
 
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
60
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
122
61
  as_basename=basename
123
62
else
124
63
  as_basename=false
126
65
 
127
66
 
128
67
# Name of the executable.
129
 
as_me=`$as_basename -- "$0" ||
 
68
as_me=`$as_basename "$0" ||
130
69
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131
70
         X"$0" : 'X\(//\)$' \| \
132
 
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
71
         X"$0" : 'X\(/\)$' \| \
 
72
         .     : '\(.\)' 2>/dev/null ||
133
73
echo X/"$0" |
134
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{
135
 
            s//\1/
136
 
            q
137
 
          }
138
 
          /^X\/\(\/\/\)$/{
139
 
            s//\1/
140
 
            q
141
 
          }
142
 
          /^X\/\(\/\).*/{
143
 
            s//\1/
144
 
            q
145
 
          }
146
 
          s/.*/./; q'`
147
 
 
148
 
# CDPATH.
149
 
$as_unset CDPATH
150
 
 
151
 
 
152
 
if test "x$CONFIG_SHELL" = x; then
153
 
  if (eval ":") 2>/dev/null; then
154
 
  as_have_required=yes
155
 
else
156
 
  as_have_required=no
157
 
fi
158
 
 
159
 
  if test $as_have_required = yes &&     (eval ":
160
 
(as_func_return () {
161
 
  (exit \$1)
162
 
}
163
 
as_func_success () {
164
 
  as_func_return 0
165
 
}
166
 
as_func_failure () {
167
 
  as_func_return 1
168
 
}
169
 
as_func_ret_success () {
170
 
  return 0
171
 
}
172
 
as_func_ret_failure () {
173
 
  return 1
174
 
}
175
 
 
176
 
exitcode=0
177
 
if as_func_success; then
178
 
  :
179
 
else
180
 
  exitcode=1
181
 
  echo as_func_success failed.
182
 
fi
183
 
 
184
 
if as_func_failure; then
185
 
  exitcode=1
186
 
  echo as_func_failure succeeded.
187
 
fi
188
 
 
189
 
if as_func_ret_success; then
190
 
  :
191
 
else
192
 
  exitcode=1
193
 
  echo as_func_ret_success failed.
194
 
fi
195
 
 
196
 
if as_func_ret_failure; then
197
 
  exitcode=1
198
 
  echo as_func_ret_failure succeeded.
199
 
fi
200
 
 
201
 
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
202
 
  :
203
 
else
204
 
  exitcode=1
205
 
  echo positional parameters were not saved.
206
 
fi
207
 
 
208
 
test \$exitcode = 0) || { (exit 1); exit 1; }
209
 
 
210
 
(
211
 
  as_lineno_1=\$LINENO
212
 
  as_lineno_2=\$LINENO
213
 
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214
 
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215
 
") 2> /dev/null; then
216
 
  :
217
 
else
218
 
  as_candidate_shells=
 
74
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
75
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
76
          /^X\/\(\/\).*/{ s//\1/; q; }
 
77
          s/.*/./; q'`
 
78
 
 
79
 
 
80
# PATH needs CR, and LINENO needs CR and PATH.
 
81
# Avoid depending upon Character Ranges.
 
82
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
83
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
84
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
85
as_cr_digits='0123456789'
 
86
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
87
 
 
88
# The user is always right.
 
89
if test "${PATH_SEPARATOR+set}" != set; then
 
90
  echo "#! /bin/sh" >conf$$.sh
 
91
  echo  "exit 0"   >>conf$$.sh
 
92
  chmod +x conf$$.sh
 
93
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
94
    PATH_SEPARATOR=';'
 
95
  else
 
96
    PATH_SEPARATOR=:
 
97
  fi
 
98
  rm -f conf$$.sh
 
99
fi
 
100
 
 
101
 
 
102
  as_lineno_1=$LINENO
 
103
  as_lineno_2=$LINENO
 
104
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
105
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
106
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
107
  # Find who we are.  Look in the path if we contain no path at all
 
108
  # relative or not.
 
109
  case $0 in
 
110
    *[\\/]* ) as_myself=$0 ;;
 
111
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
112
for as_dir in $PATH
 
113
do
 
114
  IFS=$as_save_IFS
 
115
  test -z "$as_dir" && as_dir=.
 
116
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
117
done
 
118
 
 
119
       ;;
 
120
  esac
 
121
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
122
  # in which case we are not to be found in the path.
 
123
  if test "x$as_myself" = x; then
 
124
    as_myself=$0
 
125
  fi
 
126
  if test ! -f "$as_myself"; then
 
127
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
 
128
   { (exit 1); exit 1; }; }
 
129
  fi
 
130
  case $CONFIG_SHELL in
 
131
  '')
219
132
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220
 
for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
133
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221
134
do
222
135
  IFS=$as_save_IFS
223
136
  test -z "$as_dir" && as_dir=.
224
 
  case $as_dir in
 
137
  for as_base in sh bash ksh sh5; do
 
138
         case $as_dir in
225
139
         /*)
226
 
           for as_base in sh bash ksh sh5; do
227
 
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
228
 
           done;;
229
 
       esac
 
140
           if ("$as_dir/$as_base" -c '
 
141
  as_lineno_1=$LINENO
 
142
  as_lineno_2=$LINENO
 
143
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
144
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
145
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
146
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
147
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
148
             CONFIG_SHELL=$as_dir/$as_base
 
149
             export CONFIG_SHELL
 
150
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
151
           fi;;
 
152
         esac
 
153
       done
230
154
done
231
 
IFS=$as_save_IFS
232
 
 
233
 
 
234
 
      for as_shell in $as_candidate_shells $SHELL; do
235
 
         # Try only shells that exist, to save several forks.
236
 
         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237
 
                { ("$as_shell") 2> /dev/null <<\_ASEOF
238
 
# Be Bourne compatible
239
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240
 
  emulate sh
241
 
  NULLCMD=:
242
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243
 
  # is contrary to our usage.  Disable this feature.
244
 
  alias -g '${1+"$@"}'='"$@"'
245
 
  setopt NO_GLOB_SUBST
246
 
else
247
 
  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
248
 
fi
249
 
BIN_SH=xpg4; export BIN_SH # for Tru64
250
 
DUALCASE=1; export DUALCASE # for MKS sh
251
 
 
252
 
:
253
 
_ASEOF
254
 
}; then
255
 
  CONFIG_SHELL=$as_shell
256
 
               as_have_required=yes
257
 
               if { "$as_shell" 2> /dev/null <<\_ASEOF
258
 
# Be Bourne compatible
259
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260
 
  emulate sh
261
 
  NULLCMD=:
262
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263
 
  # is contrary to our usage.  Disable this feature.
264
 
  alias -g '${1+"$@"}'='"$@"'
265
 
  setopt NO_GLOB_SUBST
266
 
else
267
 
  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
268
 
fi
269
 
BIN_SH=xpg4; export BIN_SH # for Tru64
270
 
DUALCASE=1; export DUALCASE # for MKS sh
271
 
 
272
 
:
273
 
(as_func_return () {
274
 
  (exit $1)
275
 
}
276
 
as_func_success () {
277
 
  as_func_return 0
278
 
}
279
 
as_func_failure () {
280
 
  as_func_return 1
281
 
}
282
 
as_func_ret_success () {
283
 
  return 0
284
 
}
285
 
as_func_ret_failure () {
286
 
  return 1
287
 
}
288
 
 
289
 
exitcode=0
290
 
if as_func_success; then
291
 
  :
292
 
else
293
 
  exitcode=1
294
 
  echo as_func_success failed.
295
 
fi
296
 
 
297
 
if as_func_failure; then
298
 
  exitcode=1
299
 
  echo as_func_failure succeeded.
300
 
fi
301
 
 
302
 
if as_func_ret_success; then
303
 
  :
304
 
else
305
 
  exitcode=1
306
 
  echo as_func_ret_success failed.
307
 
fi
308
 
 
309
 
if as_func_ret_failure; then
310
 
  exitcode=1
311
 
  echo as_func_ret_failure succeeded.
312
 
fi
313
 
 
314
 
if ( set x; as_func_ret_success y && test x = "$1" ); then
315
 
  :
316
 
else
317
 
  exitcode=1
318
 
  echo positional parameters were not saved.
319
 
fi
320
 
 
321
 
test $exitcode = 0) || { (exit 1); exit 1; }
322
 
 
323
 
(
324
 
  as_lineno_1=$LINENO
325
 
  as_lineno_2=$LINENO
326
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
327
 
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
328
 
 
329
 
_ASEOF
330
 
}; then
331
 
  break
332
 
fi
333
 
 
334
 
fi
335
 
 
336
 
      done
337
 
 
338
 
      if test "x$CONFIG_SHELL" != x; then
339
 
  for as_var in BASH_ENV ENV
340
 
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341
 
        done
342
 
        export CONFIG_SHELL
343
 
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
344
 
fi
345
 
 
346
 
 
347
 
    if test $as_have_required = no; then
348
 
  echo This script requires a shell more modern than all the
349
 
      echo shells that I found on your system.  Please install a
350
 
      echo modern shell, or manually run the script under such a
351
 
      echo shell if you do have one.
352
 
      { (exit 1); exit 1; }
353
 
fi
354
 
 
355
 
 
356
 
fi
357
 
 
358
 
fi
359
 
 
360
 
 
361
 
 
362
 
(eval "as_func_return () {
363
 
  (exit \$1)
364
 
}
365
 
as_func_success () {
366
 
  as_func_return 0
367
 
}
368
 
as_func_failure () {
369
 
  as_func_return 1
370
 
}
371
 
as_func_ret_success () {
372
 
  return 0
373
 
}
374
 
as_func_ret_failure () {
375
 
  return 1
376
 
}
377
 
 
378
 
exitcode=0
379
 
if as_func_success; then
380
 
  :
381
 
else
382
 
  exitcode=1
383
 
  echo as_func_success failed.
384
 
fi
385
 
 
386
 
if as_func_failure; then
387
 
  exitcode=1
388
 
  echo as_func_failure succeeded.
389
 
fi
390
 
 
391
 
if as_func_ret_success; then
392
 
  :
393
 
else
394
 
  exitcode=1
395
 
  echo as_func_ret_success failed.
396
 
fi
397
 
 
398
 
if as_func_ret_failure; then
399
 
  exitcode=1
400
 
  echo as_func_ret_failure succeeded.
401
 
fi
402
 
 
403
 
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
404
 
  :
405
 
else
406
 
  exitcode=1
407
 
  echo positional parameters were not saved.
408
 
fi
409
 
 
410
 
test \$exitcode = 0") || {
411
 
  echo No shell found that supports shell functions.
412
 
  echo Please tell autoconf@gnu.org about your system,
413
 
  echo including any error possibly output before this
414
 
  echo message
415
 
}
416
 
 
417
 
 
418
 
 
419
 
  as_lineno_1=$LINENO
420
 
  as_lineno_2=$LINENO
421
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
422
 
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
155
;;
 
156
  esac
423
157
 
424
158
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425
159
  # uniformly replaced by the line number.  The first 'sed' inserts a
426
 
  # line-number line after each line using $LINENO; the second 'sed'
427
 
  # does the real work.  The second script uses 'N' to pair each
428
 
  # line-number line with the line containing $LINENO, and appends
429
 
  # trailing '-' during substitution so that $LINENO is not a special
430
 
  # case at line end.
 
160
  # line-number line before each line; the second 'sed' does the real
 
161
  # work.  The second script uses 'N' to pair each line-number line
 
162
  # with the numbered line, and appends trailing '-' during
 
163
  # substitution so that $LINENO is not a special case at line end.
431
164
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
432
 
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
433
 
  # E. McMahon (1931-1989) for sed's syntax.  :-)
434
 
  sed -n '
435
 
    p
436
 
    /[$]LINENO/=
437
 
  ' <$as_myself |
 
165
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
166
  sed '=' <$as_myself |
438
167
    sed '
439
 
      s/[$]LINENO.*/&-/
440
 
      t lineno
441
 
      b
442
 
      :lineno
443
168
      N
444
 
      :loop
445
 
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
169
      s,$,-,
 
170
      : loop
 
171
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
446
172
      t loop
447
 
      s/-\n.*//
 
173
      s,-$,,
 
174
      s,^['$as_cr_digits']*\n,,
448
175
    ' >$as_me.lineno &&
449
 
  chmod +x "$as_me.lineno" ||
 
176
  chmod +x $as_me.lineno ||
450
177
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451
178
   { (exit 1); exit 1; }; }
452
179
 
453
180
  # Don't try to exec as it changes $[0], causing all sort of problems
454
181
  # (the dirname of $[0] is not the place where we might find the
455
 
  # original and so on.  Autoconf is especially sensitive to this).
456
 
  . "./$as_me.lineno"
 
182
  # original and so on.  Autoconf is especially sensible to this).
 
183
  . ./$as_me.lineno
457
184
  # Exit status is that of the last command.
458
185
  exit
459
186
}
460
187
 
461
188
 
462
 
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
463
 
  as_dirname=dirname
464
 
else
465
 
  as_dirname=false
466
 
fi
467
 
 
468
 
ECHO_C= ECHO_N= ECHO_T=
469
 
case `echo -n x` in
470
 
-n*)
471
 
  case `echo 'x\c'` in
472
 
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
473
 
  *)   ECHO_C='\c';;
474
 
  esac;;
475
 
*)
476
 
  ECHO_N='-n';;
 
189
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
190
  *c*,-n*) ECHO_N= ECHO_C='
 
191
' ECHO_T='      ' ;;
 
192
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
193
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
477
194
esac
478
195
 
479
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
480
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
196
if expr a : '\(a\)' >/dev/null 2>&1; then
481
197
  as_expr=expr
482
198
else
483
199
  as_expr=false
484
200
fi
485
201
 
486
202
rm -f conf$$ conf$$.exe conf$$.file
487
 
if test -d conf$$.dir; then
488
 
  rm -f conf$$.dir/conf$$.file
489
 
else
490
 
  rm -f conf$$.dir
491
 
  mkdir conf$$.dir
492
 
fi
493
203
echo >conf$$.file
494
204
if ln -s conf$$.file conf$$ 2>/dev/null; then
495
 
  as_ln_s='ln -s'
496
 
  # ... but there are two gotchas:
497
 
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498
 
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499
 
  # In both cases, we have to default to `cp -p'.
500
 
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
205
  # We could just check for DJGPP; but this test a) works b) is more generic
 
206
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
207
  if test -f conf$$.exe; then
 
208
    # Don't use ln at all; we don't have any links
501
209
    as_ln_s='cp -p'
 
210
  else
 
211
    as_ln_s='ln -s'
 
212
  fi
502
213
elif ln conf$$.file conf$$ 2>/dev/null; then
503
214
  as_ln_s=ln
504
215
else
505
216
  as_ln_s='cp -p'
506
217
fi
507
 
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508
 
rmdir conf$$.dir 2>/dev/null
 
218
rm -f conf$$ conf$$.exe conf$$.file
509
219
 
510
220
if mkdir -p . 2>/dev/null; then
511
221
  as_mkdir_p=:
514
224
  as_mkdir_p=false
515
225
fi
516
226
 
517
 
# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
518
 
# systems may use methods other than mode bits to determine executability.
519
 
cat >conf$$.file <<_ASEOF
520
 
#! /bin/sh
521
 
exit 0
522
 
_ASEOF
523
 
chmod +x conf$$.file
524
 
if test -x conf$$.file >/dev/null 2>&1; then
525
 
  as_executable_p="test -x"
526
 
else
527
 
  as_executable_p=:
528
 
fi
529
 
rm -f conf$$.file
 
227
as_executable_p="test -f"
530
228
 
531
229
# Sed expression to map a string onto a valid CPP name.
532
230
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
233
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
536
234
 
537
235
 
 
236
# IFS
 
237
# We need space, tab and new line, in precisely that order.
 
238
as_nl='
 
239
'
 
240
IFS="   $as_nl"
 
241
 
 
242
# CDPATH.
 
243
$as_unset CDPATH
 
244
 
538
245
 
539
246
 
540
247
# Check that we are running under the correct shell.
690
397
 
691
398
tagnames=${tagnames+${tagnames},}F77
692
399
 
693
 
exec 7<&0 </dev/null 6>&1
694
 
 
695
400
# Name of the host.
696
401
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
697
402
# so uname gets run too.
698
403
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
699
404
 
 
405
exec 6>&1
 
406
 
700
407
#
701
408
# Initializations.
702
409
#
703
410
ac_default_prefix=/usr/local
704
 
ac_clean_files=
705
411
ac_config_libobj_dir=.
706
 
LIBOBJS=
707
412
cross_compiling=no
708
413
subdirs=
709
414
MFLAGS=
710
415
MAKEFLAGS=
711
416
SHELL=${CONFIG_SHELL-/bin/sh}
712
417
 
 
418
# Maximum number of lines to put in a shell here document.
 
419
# This variable seems obsolete.  It should probably be removed, and
 
420
# only ac_max_sed_lines should be used.
 
421
: ${ac_max_here_lines=38}
 
422
 
713
423
# Identity of this package.
714
424
PACKAGE_NAME='nas'
715
425
PACKAGE_TARNAME='nas'
745
455
#endif
746
456
#if HAVE_INTTYPES_H
747
457
# include <inttypes.h>
748
 
#endif
749
 
#if HAVE_STDINT_H
750
 
# include <stdint.h>
 
458
#else
 
459
# if HAVE_STDINT_H
 
460
#  include <stdint.h>
 
461
# endif
751
462
#endif
752
463
#if HAVE_UNISTD_H
753
464
# include <unistd.h>
754
465
#endif"
755
466
 
756
467
ac_default_prefix=/opt
757
 
ac_subst_vars='SHELL
758
 
PATH_SEPARATOR
759
 
PACKAGE_NAME
760
 
PACKAGE_TARNAME
761
 
PACKAGE_VERSION
762
 
PACKAGE_STRING
763
 
PACKAGE_BUGREPORT
764
 
exec_prefix
765
 
prefix
766
 
program_transform_name
767
 
bindir
768
 
sbindir
769
 
libexecdir
770
 
datarootdir
771
 
datadir
772
 
sysconfdir
773
 
sharedstatedir
774
 
localstatedir
775
 
includedir
776
 
oldincludedir
777
 
docdir
778
 
infodir
779
 
htmldir
780
 
dvidir
781
 
pdfdir
782
 
psdir
783
 
libdir
784
 
localedir
785
 
mandir
786
 
DEFS
787
 
ECHO_C
788
 
ECHO_N
789
 
ECHO_T
790
 
LIBS
791
 
build_alias
792
 
host_alias
793
 
target_alias
794
 
build
795
 
build_cpu
796
 
build_vendor
797
 
build_os
798
 
host
799
 
host_cpu
800
 
host_vendor
801
 
host_os
802
 
CC
803
 
CFLAGS
804
 
LDFLAGS
805
 
CPPFLAGS
806
 
ac_ct_CC
807
 
EXEEXT
808
 
OBJEXT
809
 
GREP
810
 
EGREP
811
 
LN_S
812
 
ECHO
813
 
AR
814
 
RANLIB
815
 
STRIP
816
 
CPP
817
 
CXX
818
 
CXXFLAGS
819
 
ac_ct_CXX
820
 
CXXCPP
821
 
F77
822
 
FFLAGS
823
 
ac_ct_F77
824
 
LIBTOOL
825
 
YACC
826
 
YFLAGS
827
 
LEX
828
 
LEXLIB
829
 
LEX_OUTPUT_ROOT
830
 
LIBOBJS
831
 
LTLIBOBJS'
 
468
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL YACC LEX LEXLIB LEX_OUTPUT_ROOT LIBOBJS LTLIBOBJS'
832
469
ac_subst_files=''
833
 
      ac_precious_vars='build_alias
834
 
host_alias
835
 
target_alias
836
 
CC
837
 
CFLAGS
838
 
LDFLAGS
839
 
CPPFLAGS
840
 
CPP
841
 
CXX
842
 
CXXFLAGS
843
 
CCC
844
 
CXXCPP
845
 
F77
846
 
FFLAGS
847
 
YACC
848
 
YFLAGS'
849
 
 
850
470
 
851
471
# Initialize some variables set by options.
852
472
ac_init_help=
873
493
# and all the variables that are supposed to be based on exec_prefix
874
494
# by default will actually change.
875
495
# Use braces instead of parens because sh, perl, etc. also accept them.
876
 
# (The list follows the same order as the GNU Coding Standards.)
877
496
bindir='${exec_prefix}/bin'
878
497
sbindir='${exec_prefix}/sbin'
879
498
libexecdir='${exec_prefix}/libexec'
880
 
datarootdir='${prefix}/share'
881
 
datadir='${datarootdir}'
 
499
datadir='${prefix}/share'
882
500
sysconfdir='${prefix}/etc'
883
501
sharedstatedir='${prefix}/com'
884
502
localstatedir='${prefix}/var'
 
503
libdir='${exec_prefix}/lib'
885
504
includedir='${prefix}/include'
886
505
oldincludedir='/usr/include'
887
 
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
888
 
infodir='${datarootdir}/info'
889
 
htmldir='${docdir}'
890
 
dvidir='${docdir}'
891
 
pdfdir='${docdir}'
892
 
psdir='${docdir}'
893
 
libdir='${exec_prefix}/lib'
894
 
localedir='${datarootdir}/locale'
895
 
mandir='${datarootdir}/man'
 
506
infodir='${prefix}/info'
 
507
mandir='${prefix}/man'
896
508
 
897
509
ac_prev=
898
 
ac_dashdash=
899
510
for ac_option
900
511
do
901
512
  # If the previous option needs an argument, assign it.
902
513
  if test -n "$ac_prev"; then
903
 
    eval $ac_prev=\$ac_option
 
514
    eval "$ac_prev=\$ac_option"
904
515
    ac_prev=
905
516
    continue
906
517
  fi
907
518
 
908
 
  case $ac_option in
909
 
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
910
 
  *)    ac_optarg=yes ;;
911
 
  esac
 
519
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
912
520
 
913
521
  # Accept the important Cygnus configure options, so we can diagnose typos.
914
522
 
915
 
  case $ac_dashdash$ac_option in
916
 
  --)
917
 
    ac_dashdash=yes ;;
 
523
  case $ac_option in
918
524
 
919
525
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
920
526
    ac_prev=bindir ;;
936
542
  --config-cache | -C)
937
543
    cache_file=config.cache ;;
938
544
 
939
 
  -datadir | --datadir | --datadi | --datad)
 
545
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
940
546
    ac_prev=datadir ;;
941
 
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
547
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 
548
  | --da=*)
942
549
    datadir=$ac_optarg ;;
943
550
 
944
 
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
945
 
  | --dataroo | --dataro | --datar)
946
 
    ac_prev=datarootdir ;;
947
 
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
948
 
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
949
 
    datarootdir=$ac_optarg ;;
950
 
 
951
551
  -disable-* | --disable-*)
952
552
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
953
553
    # Reject names that are not valid shell variable names.
955
555
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
956
556
   { (exit 1); exit 1; }; }
957
557
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
958
 
    eval enable_$ac_feature=no ;;
959
 
 
960
 
  -docdir | --docdir | --docdi | --doc | --do)
961
 
    ac_prev=docdir ;;
962
 
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
963
 
    docdir=$ac_optarg ;;
964
 
 
965
 
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
966
 
    ac_prev=dvidir ;;
967
 
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
968
 
    dvidir=$ac_optarg ;;
 
558
    eval "enable_$ac_feature=no" ;;
969
559
 
970
560
  -enable-* | --enable-*)
971
561
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
974
564
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
975
565
   { (exit 1); exit 1; }; }
976
566
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
977
 
    eval enable_$ac_feature=\$ac_optarg ;;
 
567
    case $ac_option in
 
568
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
569
      *) ac_optarg=yes ;;
 
570
    esac
 
571
    eval "enable_$ac_feature='$ac_optarg'" ;;
978
572
 
979
573
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
980
574
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1001
595
  -host=* | --host=* | --hos=* | --ho=*)
1002
596
    host_alias=$ac_optarg ;;
1003
597
 
1004
 
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1005
 
    ac_prev=htmldir ;;
1006
 
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1007
 
  | --ht=*)
1008
 
    htmldir=$ac_optarg ;;
1009
 
 
1010
598
  -includedir | --includedir | --includedi | --included | --include \
1011
599
  | --includ | --inclu | --incl | --inc)
1012
600
    ac_prev=includedir ;;
1031
619
  | --libexe=* | --libex=* | --libe=*)
1032
620
    libexecdir=$ac_optarg ;;
1033
621
 
1034
 
  -localedir | --localedir | --localedi | --localed | --locale)
1035
 
    ac_prev=localedir ;;
1036
 
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1037
 
    localedir=$ac_optarg ;;
1038
 
 
1039
622
  -localstatedir | --localstatedir | --localstatedi | --localstated \
1040
 
  | --localstate | --localstat | --localsta | --localst | --locals)
 
623
  | --localstate | --localstat | --localsta | --localst \
 
624
  | --locals | --local | --loca | --loc | --lo)
1041
625
    ac_prev=localstatedir ;;
1042
626
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1043
 
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
627
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
 
628
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
1044
629
    localstatedir=$ac_optarg ;;
1045
630
 
1046
631
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1105
690
  | --progr-tra=* | --program-tr=* | --program-t=*)
1106
691
    program_transform_name=$ac_optarg ;;
1107
692
 
1108
 
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1109
 
    ac_prev=pdfdir ;;
1110
 
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1111
 
    pdfdir=$ac_optarg ;;
1112
 
 
1113
 
  -psdir | --psdir | --psdi | --psd | --ps)
1114
 
    ac_prev=psdir ;;
1115
 
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1116
 
    psdir=$ac_optarg ;;
1117
 
 
1118
693
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1119
694
  | -silent | --silent | --silen | --sile | --sil)
1120
695
    silent=yes ;;
1171
746
      { echo "$as_me: error: invalid package name: $ac_package" >&2
1172
747
   { (exit 1); exit 1; }; }
1173
748
    ac_package=`echo $ac_package| sed 's/-/_/g'`
1174
 
    eval with_$ac_package=\$ac_optarg ;;
 
749
    case $ac_option in
 
750
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
751
      *) ac_optarg=yes ;;
 
752
    esac
 
753
    eval "with_$ac_package='$ac_optarg'" ;;
1175
754
 
1176
755
  -without-* | --without-*)
1177
756
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1180
759
      { echo "$as_me: error: invalid package name: $ac_package" >&2
1181
760
   { (exit 1); exit 1; }; }
1182
761
    ac_package=`echo $ac_package | sed 's/-/_/g'`
1183
 
    eval with_$ac_package=no ;;
 
762
    eval "with_$ac_package=no" ;;
1184
763
 
1185
764
  --x)
1186
765
    # Obsolete; use --with-x.
1211
790
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1212
791
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1213
792
   { (exit 1); exit 1; }; }
1214
 
    eval $ac_envvar=\$ac_optarg
 
793
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
 
794
    eval "$ac_envvar='$ac_optarg'"
1215
795
    export $ac_envvar ;;
1216
796
 
1217
797
  *)
1231
811
   { (exit 1); exit 1; }; }
1232
812
fi
1233
813
 
1234
 
# Be sure to have absolute directory names.
1235
 
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1236
 
                datadir sysconfdir sharedstatedir localstatedir includedir \
1237
 
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1238
 
                libdir localedir mandir
1239
 
do
1240
 
  eval ac_val=\$$ac_var
1241
 
  case $ac_val in
1242
 
    [\\/$]* | ?:[\\/]* )  continue;;
1243
 
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1244
 
  esac
1245
 
  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1246
 
   { (exit 1); exit 1; }; }
 
814
# Be sure to have absolute paths.
 
815
for ac_var in exec_prefix prefix
 
816
do
 
817
  eval ac_val=$`echo $ac_var`
 
818
  case $ac_val in
 
819
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
 
820
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
821
   { (exit 1); exit 1; }; };;
 
822
  esac
 
823
done
 
824
 
 
825
# Be sure to have absolute paths.
 
826
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
 
827
              localstatedir libdir includedir oldincludedir infodir mandir
 
828
do
 
829
  eval ac_val=$`echo $ac_var`
 
830
  case $ac_val in
 
831
    [\\/$]* | ?:[\\/]* ) ;;
 
832
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
833
   { (exit 1); exit 1; }; };;
 
834
  esac
1247
835
done
1248
836
 
1249
837
# There might be people who depend on the old broken behavior: `$host'
1270
858
test "$silent" = yes && exec 6>/dev/null
1271
859
 
1272
860
 
1273
 
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1274
 
ac_ls_di=`ls -di .` &&
1275
 
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1276
 
  { echo "$as_me: error: Working directory cannot be determined" >&2
1277
 
   { (exit 1); exit 1; }; }
1278
 
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1279
 
  { echo "$as_me: error: pwd does not report name of working directory" >&2
1280
 
   { (exit 1); exit 1; }; }
1281
 
 
1282
 
 
1283
861
# Find the source files, if location was not specified.
1284
862
if test -z "$srcdir"; then
1285
863
  ac_srcdir_defaulted=yes
1286
 
  # Try the directory containing this script, then the parent directory.
1287
 
  ac_confdir=`$as_dirname -- "$0" ||
 
864
  # Try the directory containing this script, then its parent.
 
865
  ac_confdir=`(dirname "$0") 2>/dev/null ||
1288
866
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1289
867
         X"$0" : 'X\(//\)[^/]' \| \
1290
868
         X"$0" : 'X\(//\)$' \| \
1291
 
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
869
         X"$0" : 'X\(/\)' \| \
 
870
         .     : '\(.\)' 2>/dev/null ||
1292
871
echo X"$0" |
1293
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1294
 
            s//\1/
1295
 
            q
1296
 
          }
1297
 
          /^X\(\/\/\)[^/].*/{
1298
 
            s//\1/
1299
 
            q
1300
 
          }
1301
 
          /^X\(\/\/\)$/{
1302
 
            s//\1/
1303
 
            q
1304
 
          }
1305
 
          /^X\(\/\).*/{
1306
 
            s//\1/
1307
 
            q
1308
 
          }
1309
 
          s/.*/./; q'`
 
872
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
873
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
874
          /^X\(\/\/\)$/{ s//\1/; q; }
 
875
          /^X\(\/\).*/{ s//\1/; q; }
 
876
          s/.*/./; q'`
1310
877
  srcdir=$ac_confdir
1311
 
  if test ! -r "$srcdir/$ac_unique_file"; then
 
878
  if test ! -r $srcdir/$ac_unique_file; then
1312
879
    srcdir=..
1313
880
  fi
1314
881
else
1315
882
  ac_srcdir_defaulted=no
1316
883
fi
1317
 
if test ! -r "$srcdir/$ac_unique_file"; then
1318
 
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1319
 
  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1320
 
   { (exit 1); exit 1; }; }
1321
 
fi
1322
 
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1323
 
ac_abs_confdir=`(
1324
 
        cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1325
 
   { (exit 1); exit 1; }; }
1326
 
        pwd)`
1327
 
# When building in place, set srcdir=.
1328
 
if test "$ac_abs_confdir" = "$ac_pwd"; then
1329
 
  srcdir=.
1330
 
fi
1331
 
# Remove unnecessary trailing slashes from srcdir.
1332
 
# Double slashes in file names in object file debugging info
1333
 
# mess up M-x gdb in Emacs.
1334
 
case $srcdir in
1335
 
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1336
 
esac
1337
 
for ac_var in $ac_precious_vars; do
1338
 
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1339
 
  eval ac_env_${ac_var}_value=\$${ac_var}
1340
 
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1341
 
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1342
 
done
 
884
if test ! -r $srcdir/$ac_unique_file; then
 
885
  if test "$ac_srcdir_defaulted" = yes; then
 
886
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
 
887
   { (exit 1); exit 1; }; }
 
888
  else
 
889
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
890
   { (exit 1); exit 1; }; }
 
891
  fi
 
892
fi
 
893
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
 
894
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
 
895
   { (exit 1); exit 1; }; }
 
896
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
 
897
ac_env_build_alias_set=${build_alias+set}
 
898
ac_env_build_alias_value=$build_alias
 
899
ac_cv_env_build_alias_set=${build_alias+set}
 
900
ac_cv_env_build_alias_value=$build_alias
 
901
ac_env_host_alias_set=${host_alias+set}
 
902
ac_env_host_alias_value=$host_alias
 
903
ac_cv_env_host_alias_set=${host_alias+set}
 
904
ac_cv_env_host_alias_value=$host_alias
 
905
ac_env_target_alias_set=${target_alias+set}
 
906
ac_env_target_alias_value=$target_alias
 
907
ac_cv_env_target_alias_set=${target_alias+set}
 
908
ac_cv_env_target_alias_value=$target_alias
 
909
ac_env_CC_set=${CC+set}
 
910
ac_env_CC_value=$CC
 
911
ac_cv_env_CC_set=${CC+set}
 
912
ac_cv_env_CC_value=$CC
 
913
ac_env_CFLAGS_set=${CFLAGS+set}
 
914
ac_env_CFLAGS_value=$CFLAGS
 
915
ac_cv_env_CFLAGS_set=${CFLAGS+set}
 
916
ac_cv_env_CFLAGS_value=$CFLAGS
 
917
ac_env_LDFLAGS_set=${LDFLAGS+set}
 
918
ac_env_LDFLAGS_value=$LDFLAGS
 
919
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
 
920
ac_cv_env_LDFLAGS_value=$LDFLAGS
 
921
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
 
922
ac_env_CPPFLAGS_value=$CPPFLAGS
 
923
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
 
924
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
 
925
ac_env_CPP_set=${CPP+set}
 
926
ac_env_CPP_value=$CPP
 
927
ac_cv_env_CPP_set=${CPP+set}
 
928
ac_cv_env_CPP_value=$CPP
 
929
ac_env_CXX_set=${CXX+set}
 
930
ac_env_CXX_value=$CXX
 
931
ac_cv_env_CXX_set=${CXX+set}
 
932
ac_cv_env_CXX_value=$CXX
 
933
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
 
934
ac_env_CXXFLAGS_value=$CXXFLAGS
 
935
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
 
936
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
 
937
ac_env_CXXCPP_set=${CXXCPP+set}
 
938
ac_env_CXXCPP_value=$CXXCPP
 
939
ac_cv_env_CXXCPP_set=${CXXCPP+set}
 
940
ac_cv_env_CXXCPP_value=$CXXCPP
 
941
ac_env_F77_set=${F77+set}
 
942
ac_env_F77_value=$F77
 
943
ac_cv_env_F77_set=${F77+set}
 
944
ac_cv_env_F77_value=$F77
 
945
ac_env_FFLAGS_set=${FFLAGS+set}
 
946
ac_env_FFLAGS_value=$FFLAGS
 
947
ac_cv_env_FFLAGS_set=${FFLAGS+set}
 
948
ac_cv_env_FFLAGS_value=$FFLAGS
1343
949
 
1344
950
#
1345
951
# Report the --help message.
1368
974
  -n, --no-create         do not create output files
1369
975
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1370
976
 
 
977
_ACEOF
 
978
 
 
979
  cat <<_ACEOF
1371
980
Installation directories:
1372
981
  --prefix=PREFIX         install architecture-independent files in PREFIX
1373
982
                          [$ac_default_prefix]
1385
994
  --bindir=DIR           user executables [EPREFIX/bin]
1386
995
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1387
996
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
997
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1388
998
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1389
999
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1390
1000
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1391
1001
  --libdir=DIR           object code libraries [EPREFIX/lib]
1392
1002
  --includedir=DIR       C header files [PREFIX/include]
1393
1003
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1394
 
  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1395
 
  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1396
 
  --infodir=DIR          info documentation [DATAROOTDIR/info]
1397
 
  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1398
 
  --mandir=DIR           man documentation [DATAROOTDIR/man]
1399
 
  --docdir=DIR           documentation root [DATAROOTDIR/doc/nas]
1400
 
  --htmldir=DIR          html documentation [DOCDIR]
1401
 
  --dvidir=DIR           dvi documentation [DOCDIR]
1402
 
  --pdfdir=DIR           pdf documentation [DOCDIR]
1403
 
  --psdir=DIR            ps documentation [DOCDIR]
 
1004
  --infodir=DIR          info documentation [PREFIX/info]
 
1005
  --mandir=DIR           man documentation [PREFIX/man]
1404
1006
_ACEOF
1405
1007
 
1406
1008
  cat <<\_ACEOF
1420
1022
Optional Features:
1421
1023
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1422
1024
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1423
 
  --enable-shared[=PKGS]  build shared libraries [default=yes]
1424
 
  --enable-static[=PKGS]  build static libraries [default=yes]
 
1025
  --enable-shared[=PKGS]
 
1026
                          build shared libraries [default=yes]
 
1027
  --enable-static[=PKGS]
 
1028
                          build static libraries [default=yes]
1425
1029
  --enable-fast-install[=PKGS]
1426
1030
                          optimize for fast installation [default=yes]
1427
1031
  --disable-libtool-lock  avoid locking (might break parallel builds)
1432
1036
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1433
1037
  --with-pic              try to use only PIC/non-PIC objects [default=use
1434
1038
                          both]
1435
 
  --with-tags[=TAGS]      include additional configurations [automatic]
 
1039
  --with-tags[=TAGS]
 
1040
                          include additional configurations [automatic]
1436
1041
 
1437
1042
Some influential environment variables:
1438
1043
  CC          C compiler command
1439
1044
  CFLAGS      C compiler flags
1440
1045
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1441
1046
              nonstandard directory <lib dir>
1442
 
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1443
 
              you have headers in a nonstandard directory <include dir>
 
1047
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
 
1048
              headers in a nonstandard directory <include dir>
1444
1049
  CPP         C preprocessor
1445
1050
  CXX         C++ compiler command
1446
1051
  CXXFLAGS    C++ compiler flags
1447
1052
  CXXCPP      C++ preprocessor
1448
1053
  F77         Fortran 77 compiler command
1449
1054
  FFLAGS      Fortran 77 compiler flags
1450
 
  YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1451
 
              the first program found out of: `bison -y', `byacc', `yacc'.
1452
 
  YFLAGS      The list of arguments that will be passed by default to $YACC.
1453
 
              This script will default YFLAGS to the empty string to avoid a
1454
 
              default value of `-d' given by some make applications.
1455
1055
 
1456
1056
Use these variables to override the choices made by `configure' or to help
1457
1057
it to find libraries and programs with nonstandard names/locations.
1458
1058
 
1459
1059
Report bugs to <jon@radscan.com>.
1460
1060
_ACEOF
1461
 
ac_status=$?
1462
1061
fi
1463
1062
 
1464
1063
if test "$ac_init_help" = "recursive"; then
1465
1064
  # If there are subdirs, report their specific --help.
 
1065
  ac_popdir=`pwd`
1466
1066
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1467
 
    test -d "$ac_dir" || continue
 
1067
    test -d $ac_dir || continue
1468
1068
    ac_builddir=.
1469
1069
 
1470
 
case "$ac_dir" in
1471
 
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1472
 
*)
 
1070
if test "$ac_dir" != .; then
1473
1071
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1474
 
  # A ".." for each directory in $ac_dir_suffix.
1475
 
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1476
 
  case $ac_top_builddir_sub in
1477
 
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1478
 
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1479
 
  esac ;;
1480
 
esac
1481
 
ac_abs_top_builddir=$ac_pwd
1482
 
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1483
 
# for backward compatibility:
1484
 
ac_top_builddir=$ac_top_build_prefix
 
1072
  # A "../" for each directory in $ac_dir_suffix.
 
1073
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
1074
else
 
1075
  ac_dir_suffix= ac_top_builddir=
 
1076
fi
1485
1077
 
1486
1078
case $srcdir in
1487
 
  .)  # We are building in place.
 
1079
  .)  # No --srcdir option.  We are building in place.
1488
1080
    ac_srcdir=.
1489
 
    ac_top_srcdir=$ac_top_builddir_sub
1490
 
    ac_abs_top_srcdir=$ac_pwd ;;
1491
 
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
1081
    if test -z "$ac_top_builddir"; then
 
1082
       ac_top_srcdir=.
 
1083
    else
 
1084
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
1085
    fi ;;
 
1086
  [\\/]* | ?:[\\/]* )  # Absolute path.
1492
1087
    ac_srcdir=$srcdir$ac_dir_suffix;
1493
 
    ac_top_srcdir=$srcdir
1494
 
    ac_abs_top_srcdir=$srcdir ;;
1495
 
  *) # Relative name.
1496
 
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1497
 
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1498
 
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1499
 
esac
1500
 
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1501
 
 
1502
 
    cd "$ac_dir" || { ac_status=$?; continue; }
1503
 
    # Check for guested configure.
1504
 
    if test -f "$ac_srcdir/configure.gnu"; then
1505
 
      echo &&
1506
 
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1507
 
    elif test -f "$ac_srcdir/configure"; then
1508
 
      echo &&
1509
 
      $SHELL "$ac_srcdir/configure" --help=recursive
 
1088
    ac_top_srcdir=$srcdir ;;
 
1089
  *) # Relative path.
 
1090
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
1091
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
1092
esac
 
1093
 
 
1094
# Do not use `cd foo && pwd` to compute absolute paths, because
 
1095
# the directories may not exist.
 
1096
case `pwd` in
 
1097
.) ac_abs_builddir="$ac_dir";;
 
1098
*)
 
1099
  case "$ac_dir" in
 
1100
  .) ac_abs_builddir=`pwd`;;
 
1101
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
1102
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
1103
  esac;;
 
1104
esac
 
1105
case $ac_abs_builddir in
 
1106
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1107
*)
 
1108
  case ${ac_top_builddir}. in
 
1109
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
1110
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1111
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
1112
  esac;;
 
1113
esac
 
1114
case $ac_abs_builddir in
 
1115
.) ac_abs_srcdir=$ac_srcdir;;
 
1116
*)
 
1117
  case $ac_srcdir in
 
1118
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
1119
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
1120
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
1121
  esac;;
 
1122
esac
 
1123
case $ac_abs_builddir in
 
1124
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1125
*)
 
1126
  case $ac_top_srcdir in
 
1127
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
1128
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1129
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
1130
  esac;;
 
1131
esac
 
1132
 
 
1133
    cd $ac_dir
 
1134
    # Check for guested configure; otherwise get Cygnus style configure.
 
1135
    if test -f $ac_srcdir/configure.gnu; then
 
1136
      echo
 
1137
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
 
1138
    elif test -f $ac_srcdir/configure; then
 
1139
      echo
 
1140
      $SHELL $ac_srcdir/configure  --help=recursive
 
1141
    elif test -f $ac_srcdir/configure.ac ||
 
1142
           test -f $ac_srcdir/configure.in; then
 
1143
      echo
 
1144
      $ac_configure --help
1510
1145
    else
1511
1146
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1512
 
    fi || ac_status=$?
1513
 
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1147
    fi
 
1148
    cd $ac_popdir
1514
1149
  done
1515
1150
fi
1516
1151
 
1517
 
test -n "$ac_init_help" && exit $ac_status
 
1152
test -n "$ac_init_help" && exit 0
1518
1153
if $ac_init_version; then
1519
1154
  cat <<\_ACEOF
1520
1155
nas configure 1.6
1521
 
generated by GNU Autoconf 2.60
 
1156
generated by GNU Autoconf 2.59
1522
1157
 
1523
 
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1524
 
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
 
1158
Copyright (C) 2003 Free Software Foundation, Inc.
1525
1159
This configure script is free software; the Free Software Foundation
1526
1160
gives unlimited permission to copy, distribute and modify it.
1527
1161
_ACEOF
1528
 
  exit
 
1162
  exit 0
1529
1163
fi
1530
 
cat >config.log <<_ACEOF
 
1164
exec 5>config.log
 
1165
cat >&5 <<_ACEOF
1531
1166
This file contains any messages produced by compilers while
1532
1167
running configure, to aid debugging if configure makes a mistake.
1533
1168
 
1534
1169
It was created by nas $as_me 1.6, which was
1535
 
generated by GNU Autoconf 2.60.  Invocation command line was
 
1170
generated by GNU Autoconf 2.59.  Invocation command line was
1536
1171
 
1537
1172
  $ $0 $@
1538
1173
 
1539
1174
_ACEOF
1540
 
exec 5>>config.log
1541
1175
{
1542
1176
cat <<_ASUNAME
1543
1177
## --------- ##
1556
1190
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1557
1191
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1558
1192
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1559
 
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
1193
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1560
1194
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1561
1195
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1562
1196
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1570
1204
  test -z "$as_dir" && as_dir=.
1571
1205
  echo "PATH: $as_dir"
1572
1206
done
1573
 
IFS=$as_save_IFS
1574
1207
 
1575
1208
} >&5
1576
1209
 
1592
1225
ac_configure_args=
1593
1226
ac_configure_args0=
1594
1227
ac_configure_args1=
 
1228
ac_sep=
1595
1229
ac_must_keep_next=false
1596
1230
for ac_pass in 1 2
1597
1231
do
1602
1236
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1603
1237
    | -silent | --silent | --silen | --sile | --sil)
1604
1238
      continue ;;
1605
 
    *\'*)
 
1239
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1606
1240
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1607
1241
    esac
1608
1242
    case $ac_pass in
1624
1258
          -* ) ac_must_keep_next=true ;;
1625
1259
        esac
1626
1260
      fi
1627
 
      ac_configure_args="$ac_configure_args '$ac_arg'"
 
1261
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
1262
      # Get rid of the leading space.
 
1263
      ac_sep=" "
1628
1264
      ;;
1629
1265
    esac
1630
1266
  done
1635
1271
# When interrupted or exit'd, cleanup temporary files, and complete
1636
1272
# config.log.  We remove comments because anyway the quotes in there
1637
1273
# would cause problems or look ugly.
1638
 
# WARNING: Use '\'' to represent an apostrophe within the trap.
1639
 
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
1274
# WARNING: Be sure not to use single quotes in there, as some shells,
 
1275
# such as our DU 5.0 friend, will then `close' the trap.
1640
1276
trap 'exit_status=$?
1641
1277
  # Save into config.log some information that might help in debugging.
1642
1278
  {
1649
1285
_ASBOX
1650
1286
    echo
1651
1287
    # The following way of writing the cache mishandles newlines in values,
1652
 
(
1653
 
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1654
 
    eval ac_val=\$$ac_var
1655
 
    case $ac_val in #(
1656
 
    *${as_nl}*)
1657
 
      case $ac_var in #(
1658
 
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1659
 
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1660
 
      esac
1661
 
      case $ac_var in #(
1662
 
      _ | IFS | as_nl) ;; #(
1663
 
      *) $as_unset $ac_var ;;
1664
 
      esac ;;
1665
 
    esac
1666
 
  done
 
1288
{
1667
1289
  (set) 2>&1 |
1668
 
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1669
 
    *${as_nl}ac_space=\ *)
 
1290
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
 
1291
    *ac_space=\ *)
1670
1292
      sed -n \
1671
 
        "s/'\''/'\''\\\\'\'''\''/g;
1672
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1673
 
      ;; #(
 
1293
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1294
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1295
      ;;
1674
1296
    *)
1675
 
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
1297
      sed -n \
 
1298
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1676
1299
      ;;
1677
 
    esac |
1678
 
    sort
1679
 
)
 
1300
    esac;
 
1301
}
1680
1302
    echo
1681
1303
 
1682
1304
    cat <<\_ASBOX
1687
1309
    echo
1688
1310
    for ac_var in $ac_subst_vars
1689
1311
    do
1690
 
      eval ac_val=\$$ac_var
1691
 
      case $ac_val in
1692
 
      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1693
 
      esac
1694
 
      echo "$ac_var='\''$ac_val'\''"
 
1312
      eval ac_val=$`echo $ac_var`
 
1313
      echo "$ac_var='"'"'$ac_val'"'"'"
1695
1314
    done | sort
1696
1315
    echo
1697
1316
 
1698
1317
    if test -n "$ac_subst_files"; then
1699
1318
      cat <<\_ASBOX
1700
 
## ------------------- ##
1701
 
## File substitutions. ##
1702
 
## ------------------- ##
 
1319
## ------------- ##
 
1320
## Output files. ##
 
1321
## ------------- ##
1703
1322
_ASBOX
1704
1323
      echo
1705
1324
      for ac_var in $ac_subst_files
1706
1325
      do
1707
 
        eval ac_val=\$$ac_var
1708
 
        case $ac_val in
1709
 
        *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1710
 
        esac
1711
 
        echo "$ac_var='\''$ac_val'\''"
 
1326
        eval ac_val=$`echo $ac_var`
 
1327
        echo "$ac_var='"'"'$ac_val'"'"'"
1712
1328
      done | sort
1713
1329
      echo
1714
1330
    fi
1720
1336
## ----------- ##
1721
1337
_ASBOX
1722
1338
      echo
1723
 
      cat confdefs.h
 
1339
      sed "/^$/d" confdefs.h | sort
1724
1340
      echo
1725
1341
    fi
1726
1342
    test "$ac_signal" != 0 &&
1727
1343
      echo "$as_me: caught signal $ac_signal"
1728
1344
    echo "$as_me: exit $exit_status"
1729
1345
  } >&5
1730
 
  rm -f core *.core core.conftest.* &&
1731
 
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
1346
  rm -f core *.core &&
 
1347
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1732
1348
    exit $exit_status
1733
 
' 0
 
1349
     ' 0
1734
1350
for ac_signal in 1 2 13 15; do
1735
1351
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1736
1352
done
1737
1353
ac_signal=0
1738
1354
 
1739
1355
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1740
 
rm -f -r conftest* confdefs.h
 
1356
rm -rf conftest* confdefs.h
 
1357
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
1358
echo >confdefs.h
1741
1359
 
1742
1360
# Predefined preprocessor variables.
1743
1361
 
1768
1386
 
1769
1387
# Let the site file select an alternate cache file if it wants to.
1770
1388
# Prefer explicitly selected file to automatically selected ones.
1771
 
if test -n "$CONFIG_SITE"; then
1772
 
  set x "$CONFIG_SITE"
1773
 
elif test "x$prefix" != xNONE; then
1774
 
  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1775
 
else
1776
 
  set x "$ac_default_prefix/share/config.site" \
1777
 
        "$ac_default_prefix/etc/config.site"
 
1389
if test -z "$CONFIG_SITE"; then
 
1390
  if test "x$prefix" != xNONE; then
 
1391
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
 
1392
  else
 
1393
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
1394
  fi
1778
1395
fi
1779
 
shift
1780
 
for ac_site_file
1781
 
do
 
1396
for ac_site_file in $CONFIG_SITE; do
1782
1397
  if test -r "$ac_site_file"; then
1783
1398
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1784
1399
echo "$as_me: loading site script $ac_site_file" >&6;}
1794
1409
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1795
1410
echo "$as_me: loading cache $cache_file" >&6;}
1796
1411
    case $cache_file in
1797
 
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1798
 
      *)                      . "./$cache_file";;
 
1412
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
1413
      *)                      . ./$cache_file;;
1799
1414
    esac
1800
1415
  fi
1801
1416
else
1807
1422
# Check that the precious variables saved in the cache have kept the same
1808
1423
# value.
1809
1424
ac_cache_corrupted=false
1810
 
for ac_var in $ac_precious_vars; do
 
1425
for ac_var in `(set) 2>&1 |
 
1426
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1811
1427
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1812
1428
  eval ac_new_set=\$ac_env_${ac_var}_set
1813
 
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1814
 
  eval ac_new_val=\$ac_env_${ac_var}_value
 
1429
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
 
1430
  eval ac_new_val="\$ac_env_${ac_var}_value"
1815
1431
  case $ac_old_set,$ac_new_set in
1816
1432
    set,)
1817
1433
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1836
1452
  # Pass precious variables to config.status.
1837
1453
  if test "$ac_new_set" = set; then
1838
1454
    case $ac_new_val in
1839
 
    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1455
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1456
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1840
1457
    *) ac_arg=$ac_var=$ac_new_val ;;
1841
1458
    esac
1842
1459
    case " $ac_configure_args " in
1853
1470
   { (exit 1); exit 1; }; }
1854
1471
fi
1855
1472
 
1856
 
 
1857
 
 
1858
 
 
1859
 
 
1860
 
 
1861
 
 
1862
 
 
1863
 
 
1864
 
 
1865
 
 
1866
 
 
1867
 
 
1868
 
 
1869
 
 
1870
 
 
1871
 
 
1872
 
 
1873
 
 
1874
 
 
1875
 
 
1876
 
 
1877
 
 
1878
 
 
1879
 
 
1880
1473
ac_ext=c
1881
1474
ac_cpp='$CPP $CPPFLAGS'
1882
1475
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1884
1477
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1885
1478
 
1886
1479
 
1887
 
ac_config_headers="$ac_config_headers config.h"
1888
 
 
1889
 
# Check whether --enable-shared was given.
 
1480
 
 
1481
 
 
1482
 
 
1483
 
 
1484
 
 
1485
 
 
1486
 
 
1487
 
 
1488
 
 
1489
 
 
1490
 
 
1491
 
 
1492
 
 
1493
 
 
1494
 
 
1495
 
 
1496
 
 
1497
 
 
1498
 
 
1499
 
 
1500
 
 
1501
 
 
1502
 
 
1503
 
 
1504
 
 
1505
          ac_config_headers="$ac_config_headers config.h"
 
1506
 
 
1507
# Check whether --enable-shared or --disable-shared was given.
1890
1508
if test "${enable_shared+set}" = set; then
1891
 
  enableval=$enable_shared; p=${PACKAGE-default}
 
1509
  enableval="$enable_shared"
 
1510
  p=${PACKAGE-default}
1892
1511
    case $enableval in
1893
1512
    yes) enable_shared=yes ;;
1894
1513
    no) enable_shared=no ;;
1907
1526
    esac
1908
1527
else
1909
1528
  enable_shared=yes
1910
 
fi
1911
 
 
1912
 
 
1913
 
# Check whether --enable-static was given.
 
1529
fi;
 
1530
 
 
1531
# Check whether --enable-static or --disable-static was given.
1914
1532
if test "${enable_static+set}" = set; then
1915
 
  enableval=$enable_static; p=${PACKAGE-default}
 
1533
  enableval="$enable_static"
 
1534
  p=${PACKAGE-default}
1916
1535
    case $enableval in
1917
1536
    yes) enable_static=yes ;;
1918
1537
    no) enable_static=no ;;
1931
1550
    esac
1932
1551
else
1933
1552
  enable_static=yes
1934
 
fi
1935
 
 
1936
 
 
1937
 
# Check whether --enable-fast-install was given.
 
1553
fi;
 
1554
 
 
1555
# Check whether --enable-fast-install or --disable-fast-install was given.
1938
1556
if test "${enable_fast_install+set}" = set; then
1939
 
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
1557
  enableval="$enable_fast_install"
 
1558
  p=${PACKAGE-default}
1940
1559
    case $enableval in
1941
1560
    yes) enable_fast_install=yes ;;
1942
1561
    no) enable_fast_install=no ;;
1955
1574
    esac
1956
1575
else
1957
1576
  enable_fast_install=yes
1958
 
fi
1959
 
 
 
1577
fi;
1960
1578
 
1961
1579
ac_aux_dir=
1962
 
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1963
 
  if test -f "$ac_dir/install-sh"; then
 
1580
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
 
1581
  if test -f $ac_dir/install-sh; then
1964
1582
    ac_aux_dir=$ac_dir
1965
1583
    ac_install_sh="$ac_aux_dir/install-sh -c"
1966
1584
    break
1967
 
  elif test -f "$ac_dir/install.sh"; then
 
1585
  elif test -f $ac_dir/install.sh; then
1968
1586
    ac_aux_dir=$ac_dir
1969
1587
    ac_install_sh="$ac_aux_dir/install.sh -c"
1970
1588
    break
1971
 
  elif test -f "$ac_dir/shtool"; then
 
1589
  elif test -f $ac_dir/shtool; then
1972
1590
    ac_aux_dir=$ac_dir
1973
1591
    ac_install_sh="$ac_aux_dir/shtool install -c"
1974
1592
    break
1975
1593
  fi
1976
1594
done
1977
1595
if test -z "$ac_aux_dir"; then
1978
 
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1979
 
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
 
1596
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
 
1597
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1980
1598
   { (exit 1); exit 1; }; }
1981
1599
fi
1982
 
 
1983
 
# These three variables are undocumented and unsupported,
1984
 
# and are intended to be withdrawn in a future Autoconf release.
1985
 
# They can cause serious problems if a builder's source tree is in a directory
1986
 
# whose full name contains unusual characters.
1987
 
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1988
 
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1989
 
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1990
 
 
 
1600
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
 
1601
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
 
1602
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1991
1603
 
1992
1604
# Make sure we can run config.sub.
1993
 
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1994
 
  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1995
 
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
 
1605
$ac_config_sub sun4 >/dev/null 2>&1 ||
 
1606
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
 
1607
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1996
1608
   { (exit 1); exit 1; }; }
1997
1609
 
1998
 
{ echo "$as_me:$LINENO: checking build system type" >&5
1999
 
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
 
1610
echo "$as_me:$LINENO: checking build system type" >&5
 
1611
echo $ECHO_N "checking build system type... $ECHO_C" >&6
2000
1612
if test "${ac_cv_build+set}" = set; then
2001
1613
  echo $ECHO_N "(cached) $ECHO_C" >&6
2002
1614
else
2003
 
  ac_build_alias=$build_alias
2004
 
test "x$ac_build_alias" = x &&
2005
 
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2006
 
test "x$ac_build_alias" = x &&
 
1615
  ac_cv_build_alias=$build_alias
 
1616
test -z "$ac_cv_build_alias" &&
 
1617
  ac_cv_build_alias=`$ac_config_guess`
 
1618
test -z "$ac_cv_build_alias" &&
2007
1619
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2008
1620
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2009
1621
   { (exit 1); exit 1; }; }
2010
 
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2011
 
  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2012
 
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
 
1622
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
 
1623
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
 
1624
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2013
1625
   { (exit 1); exit 1; }; }
2014
1626
 
2015
1627
fi
2016
 
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2017
 
echo "${ECHO_T}$ac_cv_build" >&6; }
2018
 
case $ac_cv_build in
2019
 
*-*-*) ;;
2020
 
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2021
 
echo "$as_me: error: invalid value of canonical build" >&2;}
2022
 
   { (exit 1); exit 1; }; };;
2023
 
esac
 
1628
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
1629
echo "${ECHO_T}$ac_cv_build" >&6
2024
1630
build=$ac_cv_build
2025
 
ac_save_IFS=$IFS; IFS='-'
2026
 
set x $ac_cv_build
2027
 
shift
2028
 
build_cpu=$1
2029
 
build_vendor=$2
2030
 
shift; shift
2031
 
# Remember, the first character of IFS is used to create $*,
2032
 
# except with old shells:
2033
 
build_os=$*
2034
 
IFS=$ac_save_IFS
2035
 
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2036
 
 
2037
 
 
2038
 
{ echo "$as_me:$LINENO: checking host system type" >&5
2039
 
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
 
1631
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1632
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1633
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
1634
 
 
1635
 
 
1636
echo "$as_me:$LINENO: checking host system type" >&5
 
1637
echo $ECHO_N "checking host system type... $ECHO_C" >&6
2040
1638
if test "${ac_cv_host+set}" = set; then
2041
1639
  echo $ECHO_N "(cached) $ECHO_C" >&6
2042
1640
else
2043
 
  if test "x$host_alias" = x; then
2044
 
  ac_cv_host=$ac_cv_build
2045
 
else
2046
 
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2047
 
    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2048
 
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
 
1641
  ac_cv_host_alias=$host_alias
 
1642
test -z "$ac_cv_host_alias" &&
 
1643
  ac_cv_host_alias=$ac_cv_build_alias
 
1644
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
 
1645
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
 
1646
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2049
1647
   { (exit 1); exit 1; }; }
2050
 
fi
2051
1648
 
2052
1649
fi
2053
 
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2054
 
echo "${ECHO_T}$ac_cv_host" >&6; }
2055
 
case $ac_cv_host in
2056
 
*-*-*) ;;
2057
 
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2058
 
echo "$as_me: error: invalid value of canonical host" >&2;}
2059
 
   { (exit 1); exit 1; }; };;
2060
 
esac
 
1650
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
1651
echo "${ECHO_T}$ac_cv_host" >&6
2061
1652
host=$ac_cv_host
2062
 
ac_save_IFS=$IFS; IFS='-'
2063
 
set x $ac_cv_host
2064
 
shift
2065
 
host_cpu=$1
2066
 
host_vendor=$2
2067
 
shift; shift
2068
 
# Remember, the first character of IFS is used to create $*,
2069
 
# except with old shells:
2070
 
host_os=$*
2071
 
IFS=$ac_save_IFS
2072
 
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
1653
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
1654
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
1655
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2073
1656
 
2074
1657
 
2075
1658
ac_ext=c
2080
1663
if test -n "$ac_tool_prefix"; then
2081
1664
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2082
1665
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2083
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2084
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
1666
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1667
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2085
1668
if test "${ac_cv_prog_CC+set}" = set; then
2086
1669
  echo $ECHO_N "(cached) $ECHO_C" >&6
2087
1670
else
2094
1677
  IFS=$as_save_IFS
2095
1678
  test -z "$as_dir" && as_dir=.
2096
1679
  for ac_exec_ext in '' $ac_executable_extensions; do
2097
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
1680
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2098
1681
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2099
1682
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2100
1683
    break 2
2101
1684
  fi
2102
1685
done
2103
1686
done
2104
 
IFS=$as_save_IFS
2105
1687
 
2106
1688
fi
2107
1689
fi
2108
1690
CC=$ac_cv_prog_CC
2109
1691
if test -n "$CC"; then
2110
 
  { echo "$as_me:$LINENO: result: $CC" >&5
2111
 
echo "${ECHO_T}$CC" >&6; }
 
1692
  echo "$as_me:$LINENO: result: $CC" >&5
 
1693
echo "${ECHO_T}$CC" >&6
2112
1694
else
2113
 
  { echo "$as_me:$LINENO: result: no" >&5
2114
 
echo "${ECHO_T}no" >&6; }
 
1695
  echo "$as_me:$LINENO: result: no" >&5
 
1696
echo "${ECHO_T}no" >&6
2115
1697
fi
2116
 
 
2117
1698
 
2118
1699
fi
2119
1700
if test -z "$ac_cv_prog_CC"; then
2120
1701
  ac_ct_CC=$CC
2121
1702
  # Extract the first word of "gcc", so it can be a program name with args.
2122
1703
set dummy gcc; ac_word=$2
2123
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2124
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
1704
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1705
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2125
1706
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2126
1707
  echo $ECHO_N "(cached) $ECHO_C" >&6
2127
1708
else
2134
1715
  IFS=$as_save_IFS
2135
1716
  test -z "$as_dir" && as_dir=.
2136
1717
  for ac_exec_ext in '' $ac_executable_extensions; do
2137
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
1718
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2138
1719
    ac_cv_prog_ac_ct_CC="gcc"
2139
1720
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2140
1721
    break 2
2141
1722
  fi
2142
1723
done
2143
1724
done
2144
 
IFS=$as_save_IFS
2145
1725
 
2146
1726
fi
2147
1727
fi
2148
1728
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2149
1729
if test -n "$ac_ct_CC"; then
2150
 
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2151
 
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
1730
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
1731
echo "${ECHO_T}$ac_ct_CC" >&6
2152
1732
else
2153
 
  { echo "$as_me:$LINENO: result: no" >&5
2154
 
echo "${ECHO_T}no" >&6; }
 
1733
  echo "$as_me:$LINENO: result: no" >&5
 
1734
echo "${ECHO_T}no" >&6
2155
1735
fi
2156
1736
 
2157
 
  if test "x$ac_ct_CC" = x; then
2158
 
    CC=""
2159
 
  else
2160
 
    case $cross_compiling:$ac_tool_warned in
2161
 
yes:)
2162
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2163
 
whose name does not start with the host triplet.  If you think this
2164
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
2165
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2166
 
whose name does not start with the host triplet.  If you think this
2167
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2168
 
ac_tool_warned=yes ;;
2169
 
esac
2170
 
    CC=$ac_ct_CC
2171
 
  fi
 
1737
  CC=$ac_ct_CC
2172
1738
else
2173
1739
  CC="$ac_cv_prog_CC"
2174
1740
fi
2175
1741
 
2176
1742
if test -z "$CC"; then
2177
 
          if test -n "$ac_tool_prefix"; then
2178
 
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
1743
  if test -n "$ac_tool_prefix"; then
 
1744
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2179
1745
set dummy ${ac_tool_prefix}cc; ac_word=$2
2180
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2181
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
1746
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1747
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2182
1748
if test "${ac_cv_prog_CC+set}" = set; then
2183
1749
  echo $ECHO_N "(cached) $ECHO_C" >&6
2184
1750
else
2191
1757
  IFS=$as_save_IFS
2192
1758
  test -z "$as_dir" && as_dir=.
2193
1759
  for ac_exec_ext in '' $ac_executable_extensions; do
2194
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
1760
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2195
1761
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2196
1762
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2197
1763
    break 2
2198
1764
  fi
2199
1765
done
2200
1766
done
2201
 
IFS=$as_save_IFS
2202
1767
 
2203
1768
fi
2204
1769
fi
2205
1770
CC=$ac_cv_prog_CC
2206
1771
if test -n "$CC"; then
2207
 
  { echo "$as_me:$LINENO: result: $CC" >&5
2208
 
echo "${ECHO_T}$CC" >&6; }
2209
 
else
2210
 
  { echo "$as_me:$LINENO: result: no" >&5
2211
 
echo "${ECHO_T}no" >&6; }
2212
 
fi
2213
 
 
2214
 
 
 
1772
  echo "$as_me:$LINENO: result: $CC" >&5
 
1773
echo "${ECHO_T}$CC" >&6
 
1774
else
 
1775
  echo "$as_me:$LINENO: result: no" >&5
 
1776
echo "${ECHO_T}no" >&6
 
1777
fi
 
1778
 
 
1779
fi
 
1780
if test -z "$ac_cv_prog_CC"; then
 
1781
  ac_ct_CC=$CC
 
1782
  # Extract the first word of "cc", so it can be a program name with args.
 
1783
set dummy cc; ac_word=$2
 
1784
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1785
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1786
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1787
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1788
else
 
1789
  if test -n "$ac_ct_CC"; then
 
1790
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1791
else
 
1792
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1793
for as_dir in $PATH
 
1794
do
 
1795
  IFS=$as_save_IFS
 
1796
  test -z "$as_dir" && as_dir=.
 
1797
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1798
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1799
    ac_cv_prog_ac_ct_CC="cc"
 
1800
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1801
    break 2
2215
1802
  fi
 
1803
done
 
1804
done
 
1805
 
 
1806
fi
 
1807
fi
 
1808
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1809
if test -n "$ac_ct_CC"; then
 
1810
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
1811
echo "${ECHO_T}$ac_ct_CC" >&6
 
1812
else
 
1813
  echo "$as_me:$LINENO: result: no" >&5
 
1814
echo "${ECHO_T}no" >&6
 
1815
fi
 
1816
 
 
1817
  CC=$ac_ct_CC
 
1818
else
 
1819
  CC="$ac_cv_prog_CC"
 
1820
fi
 
1821
 
2216
1822
fi
2217
1823
if test -z "$CC"; then
2218
1824
  # Extract the first word of "cc", so it can be a program name with args.
2219
1825
set dummy cc; ac_word=$2
2220
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2221
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
1826
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1827
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2222
1828
if test "${ac_cv_prog_CC+set}" = set; then
2223
1829
  echo $ECHO_N "(cached) $ECHO_C" >&6
2224
1830
else
2232
1838
  IFS=$as_save_IFS
2233
1839
  test -z "$as_dir" && as_dir=.
2234
1840
  for ac_exec_ext in '' $ac_executable_extensions; do
2235
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
1841
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2236
1842
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2237
1843
       ac_prog_rejected=yes
2238
1844
       continue
2243
1849
  fi
2244
1850
done
2245
1851
done
2246
 
IFS=$as_save_IFS
2247
1852
 
2248
1853
if test $ac_prog_rejected = yes; then
2249
1854
  # We found a bogon in the path, so make sure we never use it.
2261
1866
fi
2262
1867
CC=$ac_cv_prog_CC
2263
1868
if test -n "$CC"; then
2264
 
  { echo "$as_me:$LINENO: result: $CC" >&5
2265
 
echo "${ECHO_T}$CC" >&6; }
 
1869
  echo "$as_me:$LINENO: result: $CC" >&5
 
1870
echo "${ECHO_T}$CC" >&6
2266
1871
else
2267
 
  { echo "$as_me:$LINENO: result: no" >&5
2268
 
echo "${ECHO_T}no" >&6; }
 
1872
  echo "$as_me:$LINENO: result: no" >&5
 
1873
echo "${ECHO_T}no" >&6
2269
1874
fi
2270
 
 
2271
1875
 
2272
1876
fi
2273
1877
if test -z "$CC"; then
2274
1878
  if test -n "$ac_tool_prefix"; then
2275
 
  for ac_prog in cl.exe
 
1879
  for ac_prog in cl
2276
1880
  do
2277
1881
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2278
1882
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2279
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2280
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
1883
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1884
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2281
1885
if test "${ac_cv_prog_CC+set}" = set; then
2282
1886
  echo $ECHO_N "(cached) $ECHO_C" >&6
2283
1887
else
2290
1894
  IFS=$as_save_IFS
2291
1895
  test -z "$as_dir" && as_dir=.
2292
1896
  for ac_exec_ext in '' $ac_executable_extensions; do
2293
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
1897
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2294
1898
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2295
1899
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2296
1900
    break 2
2297
1901
  fi
2298
1902
done
2299
1903
done
2300
 
IFS=$as_save_IFS
2301
1904
 
2302
1905
fi
2303
1906
fi
2304
1907
CC=$ac_cv_prog_CC
2305
1908
if test -n "$CC"; then
2306
 
  { echo "$as_me:$LINENO: result: $CC" >&5
2307
 
echo "${ECHO_T}$CC" >&6; }
 
1909
  echo "$as_me:$LINENO: result: $CC" >&5
 
1910
echo "${ECHO_T}$CC" >&6
2308
1911
else
2309
 
  { echo "$as_me:$LINENO: result: no" >&5
2310
 
echo "${ECHO_T}no" >&6; }
 
1912
  echo "$as_me:$LINENO: result: no" >&5
 
1913
echo "${ECHO_T}no" >&6
2311
1914
fi
2312
1915
 
2313
 
 
2314
1916
    test -n "$CC" && break
2315
1917
  done
2316
1918
fi
2317
1919
if test -z "$CC"; then
2318
1920
  ac_ct_CC=$CC
2319
 
  for ac_prog in cl.exe
 
1921
  for ac_prog in cl
2320
1922
do
2321
1923
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2322
1924
set dummy $ac_prog; ac_word=$2
2323
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2324
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
1925
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1926
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2325
1927
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2326
1928
  echo $ECHO_N "(cached) $ECHO_C" >&6
2327
1929
else
2334
1936
  IFS=$as_save_IFS
2335
1937
  test -z "$as_dir" && as_dir=.
2336
1938
  for ac_exec_ext in '' $ac_executable_extensions; do
2337
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
1939
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2338
1940
    ac_cv_prog_ac_ct_CC="$ac_prog"
2339
1941
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2340
1942
    break 2
2341
1943
  fi
2342
1944
done
2343
1945
done
2344
 
IFS=$as_save_IFS
2345
1946
 
2346
1947
fi
2347
1948
fi
2348
1949
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2349
1950
if test -n "$ac_ct_CC"; then
2350
 
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2351
 
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
1951
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
1952
echo "${ECHO_T}$ac_ct_CC" >&6
2352
1953
else
2353
 
  { echo "$as_me:$LINENO: result: no" >&5
2354
 
echo "${ECHO_T}no" >&6; }
 
1954
  echo "$as_me:$LINENO: result: no" >&5
 
1955
echo "${ECHO_T}no" >&6
2355
1956
fi
2356
1957
 
2357
 
 
2358
1958
  test -n "$ac_ct_CC" && break
2359
1959
done
2360
1960
 
2361
 
  if test "x$ac_ct_CC" = x; then
2362
 
    CC=""
2363
 
  else
2364
 
    case $cross_compiling:$ac_tool_warned in
2365
 
yes:)
2366
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2367
 
whose name does not start with the host triplet.  If you think this
2368
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
2369
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2370
 
whose name does not start with the host triplet.  If you think this
2371
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2372
 
ac_tool_warned=yes ;;
2373
 
esac
2374
 
    CC=$ac_ct_CC
2375
 
  fi
 
1961
  CC=$ac_ct_CC
2376
1962
fi
2377
1963
 
2378
1964
fi
2385
1971
   { (exit 1); exit 1; }; }
2386
1972
 
2387
1973
# Provide some information about the compiler.
2388
 
echo "$as_me:$LINENO: checking for C compiler version" >&5
 
1974
echo "$as_me:$LINENO:" \
 
1975
     "checking for C compiler version" >&5
2389
1976
ac_compiler=`set X $ac_compile; echo $2`
2390
 
{ (ac_try="$ac_compiler --version >&5"
2391
 
case "(($ac_try" in
2392
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2393
 
  *) ac_try_echo=$ac_try;;
2394
 
esac
2395
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2396
 
  (eval "$ac_compiler --version >&5") 2>&5
2397
 
  ac_status=$?
2398
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399
 
  (exit $ac_status); }
2400
 
{ (ac_try="$ac_compiler -v >&5"
2401
 
case "(($ac_try" in
2402
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2403
 
  *) ac_try_echo=$ac_try;;
2404
 
esac
2405
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2406
 
  (eval "$ac_compiler -v >&5") 2>&5
2407
 
  ac_status=$?
2408
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409
 
  (exit $ac_status); }
2410
 
{ (ac_try="$ac_compiler -V >&5"
2411
 
case "(($ac_try" in
2412
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2413
 
  *) ac_try_echo=$ac_try;;
2414
 
esac
2415
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2416
 
  (eval "$ac_compiler -V >&5") 2>&5
 
1977
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
1978
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
1979
  ac_status=$?
 
1980
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1981
  (exit $ac_status); }
 
1982
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
1983
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
1984
  ac_status=$?
 
1985
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1986
  (exit $ac_status); }
 
1987
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
1988
  (eval $ac_compiler -V </dev/null >&5) 2>&5
2417
1989
  ac_status=$?
2418
1990
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419
1991
  (exit $ac_status); }
2438
2010
# Try to create an executable without -o first, disregard a.out.
2439
2011
# It will help us diagnose broken compilers, and finding out an intuition
2440
2012
# of exeext.
2441
 
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2442
 
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
 
2013
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
2014
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2443
2015
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2444
 
#
2445
 
# List of possible output files, starting from the most likely.
2446
 
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2447
 
# only as a last resort.  b.out is created by i960 compilers.
2448
 
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2449
 
#
2450
 
# The IRIX 6 linker writes into existing files which may not be
2451
 
# executable, retaining their permissions.  Remove them first so a
2452
 
# subsequent execution test works.
2453
 
ac_rmfiles=
2454
 
for ac_file in $ac_files
2455
 
do
2456
 
  case $ac_file in
2457
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2458
 
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2459
 
  esac
2460
 
done
2461
 
rm -f $ac_rmfiles
2462
 
 
2463
 
if { (ac_try="$ac_link_default"
2464
 
case "(($ac_try" in
2465
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2466
 
  *) ac_try_echo=$ac_try;;
2467
 
esac
2468
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2469
 
  (eval "$ac_link_default") 2>&5
 
2016
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
 
2017
  (eval $ac_link_default) 2>&5
2470
2018
  ac_status=$?
2471
2019
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472
2020
  (exit $ac_status); }; then
2473
 
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2474
 
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2475
 
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2476
 
# so that the user can short-circuit this test for compilers unknown to
2477
 
# Autoconf.
2478
 
for ac_file in $ac_files
 
2021
  # Find the output, starting from the most likely.  This scheme is
 
2022
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
 
2023
# resort.
 
2024
 
 
2025
# Be careful to initialize this variable, since it used to be cached.
 
2026
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
 
2027
ac_cv_exeext=
 
2028
# b.out is created by i960 compilers.
 
2029
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2479
2030
do
2480
2031
  test -f "$ac_file" || continue
2481
2032
  case $ac_file in
2482
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
 
2033
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
 
2034
        ;;
 
2035
    conftest.$ac_ext )
 
2036
        # This is the source file.
2483
2037
        ;;
2484
2038
    [ab].out )
2485
2039
        # We found the default executable, but exeext='' is most
2486
2040
        # certainly right.
2487
2041
        break;;
2488
2042
    *.* )
2489
 
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2490
 
        then :; else
2491
 
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2492
 
        fi
2493
 
        # We set ac_cv_exeext here because the later test for it is not
2494
 
        # safe: cross compilers may not add the suffix if given an `-o'
2495
 
        # argument, so we may need to know it at that point already.
2496
 
        # Even if this section looks crufty: it has the advantage of
2497
 
        # actually working.
 
2043
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2044
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
2045
        # but it would be cool to find out if it's true.  Does anybody
 
2046
        # maintain Libtool? --akim.
 
2047
        export ac_cv_exeext
2498
2048
        break;;
2499
2049
    * )
2500
2050
        break;;
2501
2051
  esac
2502
2052
done
2503
 
test "$ac_cv_exeext" = no && ac_cv_exeext=
2504
 
 
2505
2053
else
2506
2054
  echo "$as_me: failed program was:" >&5
2507
2055
sed 's/^/| /' conftest.$ac_ext >&5
2514
2062
fi
2515
2063
 
2516
2064
ac_exeext=$ac_cv_exeext
2517
 
{ echo "$as_me:$LINENO: result: $ac_file" >&5
2518
 
echo "${ECHO_T}$ac_file" >&6; }
 
2065
echo "$as_me:$LINENO: result: $ac_file" >&5
 
2066
echo "${ECHO_T}$ac_file" >&6
2519
2067
 
2520
 
# Check that the compiler produces executables we can run.  If not, either
 
2068
# Check the compiler produces executables we can run.  If not, either
2521
2069
# the compiler is broken, or we cross compile.
2522
 
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2523
 
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
 
2070
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
2071
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2524
2072
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2525
2073
# If not cross compiling, check that we can run a simple program.
2526
2074
if test "$cross_compiling" != yes; then
2527
2075
  if { ac_try='./$ac_file'
2528
 
  { (case "(($ac_try" in
2529
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2530
 
  *) ac_try_echo=$ac_try;;
2531
 
esac
2532
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2533
 
  (eval "$ac_try") 2>&5
 
2076
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2077
  (eval $ac_try) 2>&5
2534
2078
  ac_status=$?
2535
2079
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536
2080
  (exit $ac_status); }; }; then
2549
2093
    fi
2550
2094
  fi
2551
2095
fi
2552
 
{ echo "$as_me:$LINENO: result: yes" >&5
2553
 
echo "${ECHO_T}yes" >&6; }
 
2096
echo "$as_me:$LINENO: result: yes" >&5
 
2097
echo "${ECHO_T}yes" >&6
2554
2098
 
2555
2099
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2556
2100
ac_clean_files=$ac_clean_files_save
2557
 
# Check that the compiler produces executables we can run.  If not, either
 
2101
# Check the compiler produces executables we can run.  If not, either
2558
2102
# the compiler is broken, or we cross compile.
2559
 
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2560
 
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2561
 
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2562
 
echo "${ECHO_T}$cross_compiling" >&6; }
 
2103
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
2104
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
 
2105
echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
2106
echo "${ECHO_T}$cross_compiling" >&6
2563
2107
 
2564
 
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2565
 
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2566
 
if { (ac_try="$ac_link"
2567
 
case "(($ac_try" in
2568
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2569
 
  *) ac_try_echo=$ac_try;;
2570
 
esac
2571
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2572
 
  (eval "$ac_link") 2>&5
 
2108
echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
2109
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
 
2110
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
2111
  (eval $ac_link) 2>&5
2573
2112
  ac_status=$?
2574
2113
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575
2114
  (exit $ac_status); }; then
2580
2119
for ac_file in conftest.exe conftest conftest.*; do
2581
2120
  test -f "$ac_file" || continue
2582
2121
  case $ac_file in
2583
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
2122
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2584
2123
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2124
          export ac_cv_exeext
2585
2125
          break;;
2586
2126
    * ) break;;
2587
2127
  esac
2595
2135
fi
2596
2136
 
2597
2137
rm -f conftest$ac_cv_exeext
2598
 
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2599
 
echo "${ECHO_T}$ac_cv_exeext" >&6; }
 
2138
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
2139
echo "${ECHO_T}$ac_cv_exeext" >&6
2600
2140
 
2601
2141
rm -f conftest.$ac_ext
2602
2142
EXEEXT=$ac_cv_exeext
2603
2143
ac_exeext=$EXEEXT
2604
 
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2605
 
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
 
2144
echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
2145
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2606
2146
if test "${ac_cv_objext+set}" = set; then
2607
2147
  echo $ECHO_N "(cached) $ECHO_C" >&6
2608
2148
else
2622
2162
}
2623
2163
_ACEOF
2624
2164
rm -f conftest.o conftest.obj
2625
 
if { (ac_try="$ac_compile"
2626
 
case "(($ac_try" in
2627
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2628
 
  *) ac_try_echo=$ac_try;;
2629
 
esac
2630
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2631
 
  (eval "$ac_compile") 2>&5
 
2165
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2166
  (eval $ac_compile) 2>&5
2632
2167
  ac_status=$?
2633
2168
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634
2169
  (exit $ac_status); }; then
2635
 
  for ac_file in conftest.o conftest.obj conftest.*; do
2636
 
  test -f "$ac_file" || continue;
 
2170
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2637
2171
  case $ac_file in
2638
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
 
2172
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2639
2173
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2640
2174
       break;;
2641
2175
  esac
2653
2187
 
2654
2188
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2655
2189
fi
2656
 
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2657
 
echo "${ECHO_T}$ac_cv_objext" >&6; }
 
2190
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
2191
echo "${ECHO_T}$ac_cv_objext" >&6
2658
2192
OBJEXT=$ac_cv_objext
2659
2193
ac_objext=$OBJEXT
2660
 
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2661
 
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
 
2194
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
2195
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2662
2196
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2663
2197
  echo $ECHO_N "(cached) $ECHO_C" >&6
2664
2198
else
2681
2215
}
2682
2216
_ACEOF
2683
2217
rm -f conftest.$ac_objext
2684
 
if { (ac_try="$ac_compile"
2685
 
case "(($ac_try" in
2686
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2687
 
  *) ac_try_echo=$ac_try;;
2688
 
esac
2689
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2690
 
  (eval "$ac_compile") 2>conftest.er1
 
2218
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2219
  (eval $ac_compile) 2>conftest.er1
2691
2220
  ac_status=$?
2692
2221
  grep -v '^ *+' conftest.er1 >conftest.err
2693
2222
  rm -f conftest.er1
2694
2223
  cat conftest.err >&5
2695
2224
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696
2225
  (exit $ac_status); } &&
2697
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2698
 
  { (case "(($ac_try" in
2699
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2700
 
  *) ac_try_echo=$ac_try;;
2701
 
esac
2702
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2703
 
  (eval "$ac_try") 2>&5
 
2226
         { ac_try='test -z "$ac_c_werror_flag"
 
2227
                         || test ! -s conftest.err'
 
2228
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2229
  (eval $ac_try) 2>&5
2704
2230
  ac_status=$?
2705
2231
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706
2232
  (exit $ac_status); }; } &&
2707
2233
         { ac_try='test -s conftest.$ac_objext'
2708
 
  { (case "(($ac_try" in
2709
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2710
 
  *) ac_try_echo=$ac_try;;
2711
 
esac
2712
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2713
 
  (eval "$ac_try") 2>&5
 
2234
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2235
  (eval $ac_try) 2>&5
2714
2236
  ac_status=$?
2715
2237
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716
2238
  (exit $ac_status); }; }; then
2719
2241
  echo "$as_me: failed program was:" >&5
2720
2242
sed 's/^/| /' conftest.$ac_ext >&5
2721
2243
 
2722
 
        ac_compiler_gnu=no
 
2244
ac_compiler_gnu=no
2723
2245
fi
2724
 
 
2725
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2246
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2726
2247
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2727
2248
 
2728
2249
fi
2729
 
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2730
 
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
 
2250
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
2251
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2731
2252
GCC=`test $ac_compiler_gnu = yes && echo yes`
2732
2253
ac_test_CFLAGS=${CFLAGS+set}
2733
2254
ac_save_CFLAGS=$CFLAGS
2734
 
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2735
 
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
 
2255
CFLAGS="-g"
 
2256
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
2257
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2736
2258
if test "${ac_cv_prog_cc_g+set}" = set; then
2737
2259
  echo $ECHO_N "(cached) $ECHO_C" >&6
2738
2260
else
2739
 
  ac_save_c_werror_flag=$ac_c_werror_flag
2740
 
   ac_c_werror_flag=yes
2741
 
   ac_cv_prog_cc_g=no
2742
 
   CFLAGS="-g"
2743
 
   cat >conftest.$ac_ext <<_ACEOF
2744
 
/* confdefs.h.  */
2745
 
_ACEOF
2746
 
cat confdefs.h >>conftest.$ac_ext
2747
 
cat >>conftest.$ac_ext <<_ACEOF
2748
 
/* end confdefs.h.  */
2749
 
 
2750
 
int
2751
 
main ()
2752
 
{
2753
 
 
2754
 
  ;
2755
 
  return 0;
2756
 
}
2757
 
_ACEOF
2758
 
rm -f conftest.$ac_objext
2759
 
if { (ac_try="$ac_compile"
2760
 
case "(($ac_try" in
2761
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2762
 
  *) ac_try_echo=$ac_try;;
2763
 
esac
2764
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2765
 
  (eval "$ac_compile") 2>conftest.er1
2766
 
  ac_status=$?
2767
 
  grep -v '^ *+' conftest.er1 >conftest.err
2768
 
  rm -f conftest.er1
2769
 
  cat conftest.err >&5
2770
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771
 
  (exit $ac_status); } &&
2772
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2773
 
  { (case "(($ac_try" in
2774
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2775
 
  *) ac_try_echo=$ac_try;;
2776
 
esac
2777
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2778
 
  (eval "$ac_try") 2>&5
2779
 
  ac_status=$?
2780
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781
 
  (exit $ac_status); }; } &&
2782
 
         { ac_try='test -s conftest.$ac_objext'
2783
 
  { (case "(($ac_try" in
2784
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2785
 
  *) ac_try_echo=$ac_try;;
2786
 
esac
2787
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2788
 
  (eval "$ac_try") 2>&5
2789
 
  ac_status=$?
2790
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791
 
  (exit $ac_status); }; }; then
2792
 
  ac_cv_prog_cc_g=yes
2793
 
else
2794
 
  echo "$as_me: failed program was:" >&5
2795
 
sed 's/^/| /' conftest.$ac_ext >&5
2796
 
 
2797
 
        CFLAGS=""
2798
 
      cat >conftest.$ac_ext <<_ACEOF
2799
 
/* confdefs.h.  */
2800
 
_ACEOF
2801
 
cat confdefs.h >>conftest.$ac_ext
2802
 
cat >>conftest.$ac_ext <<_ACEOF
2803
 
/* end confdefs.h.  */
2804
 
 
2805
 
int
2806
 
main ()
2807
 
{
2808
 
 
2809
 
  ;
2810
 
  return 0;
2811
 
}
2812
 
_ACEOF
2813
 
rm -f conftest.$ac_objext
2814
 
if { (ac_try="$ac_compile"
2815
 
case "(($ac_try" in
2816
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2817
 
  *) ac_try_echo=$ac_try;;
2818
 
esac
2819
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2820
 
  (eval "$ac_compile") 2>conftest.er1
2821
 
  ac_status=$?
2822
 
  grep -v '^ *+' conftest.er1 >conftest.err
2823
 
  rm -f conftest.er1
2824
 
  cat conftest.err >&5
2825
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826
 
  (exit $ac_status); } &&
2827
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2828
 
  { (case "(($ac_try" in
2829
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2830
 
  *) ac_try_echo=$ac_try;;
2831
 
esac
2832
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2833
 
  (eval "$ac_try") 2>&5
2834
 
  ac_status=$?
2835
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836
 
  (exit $ac_status); }; } &&
2837
 
         { ac_try='test -s conftest.$ac_objext'
2838
 
  { (case "(($ac_try" in
2839
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2840
 
  *) ac_try_echo=$ac_try;;
2841
 
esac
2842
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2843
 
  (eval "$ac_try") 2>&5
2844
 
  ac_status=$?
2845
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846
 
  (exit $ac_status); }; }; then
2847
 
  :
2848
 
else
2849
 
  echo "$as_me: failed program was:" >&5
2850
 
sed 's/^/| /' conftest.$ac_ext >&5
2851
 
 
2852
 
        ac_c_werror_flag=$ac_save_c_werror_flag
2853
 
         CFLAGS="-g"
2854
 
         cat >conftest.$ac_ext <<_ACEOF
2855
 
/* confdefs.h.  */
2856
 
_ACEOF
2857
 
cat confdefs.h >>conftest.$ac_ext
2858
 
cat >>conftest.$ac_ext <<_ACEOF
2859
 
/* end confdefs.h.  */
2860
 
 
2861
 
int
2862
 
main ()
2863
 
{
2864
 
 
2865
 
  ;
2866
 
  return 0;
2867
 
}
2868
 
_ACEOF
2869
 
rm -f conftest.$ac_objext
2870
 
if { (ac_try="$ac_compile"
2871
 
case "(($ac_try" in
2872
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2873
 
  *) ac_try_echo=$ac_try;;
2874
 
esac
2875
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2876
 
  (eval "$ac_compile") 2>conftest.er1
2877
 
  ac_status=$?
2878
 
  grep -v '^ *+' conftest.er1 >conftest.err
2879
 
  rm -f conftest.er1
2880
 
  cat conftest.err >&5
2881
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882
 
  (exit $ac_status); } &&
2883
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2884
 
  { (case "(($ac_try" in
2885
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886
 
  *) ac_try_echo=$ac_try;;
2887
 
esac
2888
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2889
 
  (eval "$ac_try") 2>&5
2890
 
  ac_status=$?
2891
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892
 
  (exit $ac_status); }; } &&
2893
 
         { ac_try='test -s conftest.$ac_objext'
2894
 
  { (case "(($ac_try" in
2895
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2896
 
  *) ac_try_echo=$ac_try;;
2897
 
esac
2898
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2899
 
  (eval "$ac_try") 2>&5
2900
 
  ac_status=$?
2901
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902
 
  (exit $ac_status); }; }; then
2903
 
  ac_cv_prog_cc_g=yes
2904
 
else
2905
 
  echo "$as_me: failed program was:" >&5
2906
 
sed 's/^/| /' conftest.$ac_ext >&5
2907
 
 
2908
 
 
2909
 
fi
2910
 
 
2911
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2912
 
fi
2913
 
 
2914
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2915
 
fi
2916
 
 
2917
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2918
 
   ac_c_werror_flag=$ac_save_c_werror_flag
2919
 
fi
2920
 
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2921
 
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
 
2261
  cat >conftest.$ac_ext <<_ACEOF
 
2262
/* confdefs.h.  */
 
2263
_ACEOF
 
2264
cat confdefs.h >>conftest.$ac_ext
 
2265
cat >>conftest.$ac_ext <<_ACEOF
 
2266
/* end confdefs.h.  */
 
2267
 
 
2268
int
 
2269
main ()
 
2270
{
 
2271
 
 
2272
  ;
 
2273
  return 0;
 
2274
}
 
2275
_ACEOF
 
2276
rm -f conftest.$ac_objext
 
2277
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2278
  (eval $ac_compile) 2>conftest.er1
 
2279
  ac_status=$?
 
2280
  grep -v '^ *+' conftest.er1 >conftest.err
 
2281
  rm -f conftest.er1
 
2282
  cat conftest.err >&5
 
2283
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2284
  (exit $ac_status); } &&
 
2285
         { ac_try='test -z "$ac_c_werror_flag"
 
2286
                         || test ! -s conftest.err'
 
2287
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2288
  (eval $ac_try) 2>&5
 
2289
  ac_status=$?
 
2290
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2291
  (exit $ac_status); }; } &&
 
2292
         { ac_try='test -s conftest.$ac_objext'
 
2293
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2294
  (eval $ac_try) 2>&5
 
2295
  ac_status=$?
 
2296
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2297
  (exit $ac_status); }; }; then
 
2298
  ac_cv_prog_cc_g=yes
 
2299
else
 
2300
  echo "$as_me: failed program was:" >&5
 
2301
sed 's/^/| /' conftest.$ac_ext >&5
 
2302
 
 
2303
ac_cv_prog_cc_g=no
 
2304
fi
 
2305
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2306
fi
 
2307
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
2308
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2922
2309
if test "$ac_test_CFLAGS" = set; then
2923
2310
  CFLAGS=$ac_save_CFLAGS
2924
2311
elif test $ac_cv_prog_cc_g = yes; then
2934
2321
    CFLAGS=
2935
2322
  fi
2936
2323
fi
2937
 
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2938
 
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2939
 
if test "${ac_cv_prog_cc_c89+set}" = set; then
 
2324
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
2325
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
2326
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2940
2327
  echo $ECHO_N "(cached) $ECHO_C" >&6
2941
2328
else
2942
 
  ac_cv_prog_cc_c89=no
 
2329
  ac_cv_prog_cc_stdc=no
2943
2330
ac_save_CC=$CC
2944
2331
cat >conftest.$ac_ext <<_ACEOF
2945
2332
/* confdefs.h.  */
2973
2360
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2974
2361
   function prototypes and stuff, but not '\xHH' hex character constants.
2975
2362
   These don't provoke an error unfortunately, instead are silently treated
2976
 
   as 'x'.  The following induces an error, until -std is added to get
 
2363
   as 'x'.  The following induces an error, until -std1 is added to get
2977
2364
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2978
2365
   array size at least.  It's necessary to write '\x00'==0 to get something
2979
 
   that's true only with -std.  */
 
2366
   that's true only with -std1.  */
2980
2367
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2981
2368
 
2982
 
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2983
 
   inside strings and character constants.  */
2984
 
#define FOO(x) 'x'
2985
 
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2986
 
 
2987
2369
int test (int i, double x);
2988
2370
struct s1 {int (*f) (int a);};
2989
2371
struct s2 {int (*f) (double a);};
2998
2380
  return 0;
2999
2381
}
3000
2382
_ACEOF
3001
 
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3002
 
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
2383
# Don't try gcc -ansi; that turns off useful extensions and
 
2384
# breaks some systems' header files.
 
2385
# AIX                   -qlanglvl=ansi
 
2386
# Ultrix and OSF/1      -std1
 
2387
# HP-UX 10.20 and later -Ae
 
2388
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
2389
# SVR4                  -Xc -D__EXTENSIONS__
 
2390
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3003
2391
do
3004
2392
  CC="$ac_save_CC $ac_arg"
3005
2393
  rm -f conftest.$ac_objext
3006
 
if { (ac_try="$ac_compile"
3007
 
case "(($ac_try" in
3008
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009
 
  *) ac_try_echo=$ac_try;;
3010
 
esac
3011
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3012
 
  (eval "$ac_compile") 2>conftest.er1
 
2394
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2395
  (eval $ac_compile) 2>conftest.er1
3013
2396
  ac_status=$?
3014
2397
  grep -v '^ *+' conftest.er1 >conftest.err
3015
2398
  rm -f conftest.er1
3016
2399
  cat conftest.err >&5
3017
2400
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018
2401
  (exit $ac_status); } &&
3019
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3020
 
  { (case "(($ac_try" in
3021
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022
 
  *) ac_try_echo=$ac_try;;
3023
 
esac
3024
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025
 
  (eval "$ac_try") 2>&5
 
2402
         { ac_try='test -z "$ac_c_werror_flag"
 
2403
                         || test ! -s conftest.err'
 
2404
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2405
  (eval $ac_try) 2>&5
3026
2406
  ac_status=$?
3027
2407
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028
2408
  (exit $ac_status); }; } &&
3029
2409
         { ac_try='test -s conftest.$ac_objext'
3030
 
  { (case "(($ac_try" in
3031
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032
 
  *) ac_try_echo=$ac_try;;
3033
 
esac
3034
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3035
 
  (eval "$ac_try") 2>&5
 
2410
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2411
  (eval $ac_try) 2>&5
3036
2412
  ac_status=$?
3037
2413
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038
2414
  (exit $ac_status); }; }; then
3039
 
  ac_cv_prog_cc_c89=$ac_arg
 
2415
  ac_cv_prog_cc_stdc=$ac_arg
 
2416
break
3040
2417
else
3041
2418
  echo "$as_me: failed program was:" >&5
3042
2419
sed 's/^/| /' conftest.$ac_ext >&5
3043
2420
 
3044
 
 
3045
2421
fi
3046
 
 
3047
 
rm -f core conftest.err conftest.$ac_objext
3048
 
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
2422
rm -f conftest.err conftest.$ac_objext
3049
2423
done
3050
 
rm -f conftest.$ac_ext
 
2424
rm -f conftest.$ac_ext conftest.$ac_objext
3051
2425
CC=$ac_save_CC
3052
2426
 
3053
2427
fi
3054
 
# AC_CACHE_VAL
3055
 
case "x$ac_cv_prog_cc_c89" in
3056
 
  x)
3057
 
    { echo "$as_me:$LINENO: result: none needed" >&5
3058
 
echo "${ECHO_T}none needed" >&6; } ;;
3059
 
  xno)
3060
 
    { echo "$as_me:$LINENO: result: unsupported" >&5
3061
 
echo "${ECHO_T}unsupported" >&6; } ;;
 
2428
 
 
2429
case "x$ac_cv_prog_cc_stdc" in
 
2430
  x|xno)
 
2431
    echo "$as_me:$LINENO: result: none needed" >&5
 
2432
echo "${ECHO_T}none needed" >&6 ;;
3062
2433
  *)
3063
 
    CC="$CC $ac_cv_prog_cc_c89"
3064
 
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3065
 
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
 
2434
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
2435
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
2436
    CC="$CC $ac_cv_prog_cc_stdc" ;;
3066
2437
esac
3067
2438
 
3068
 
 
 
2439
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
2440
# in C++ we need to declare it.  In case someone uses the same compiler
 
2441
# for both compiling C and C++ we need to have the C++ compiler decide
 
2442
# the declaration of exit, since it's the most demanding environment.
 
2443
cat >conftest.$ac_ext <<_ACEOF
 
2444
#ifndef __cplusplus
 
2445
  choke me
 
2446
#endif
 
2447
_ACEOF
 
2448
rm -f conftest.$ac_objext
 
2449
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2450
  (eval $ac_compile) 2>conftest.er1
 
2451
  ac_status=$?
 
2452
  grep -v '^ *+' conftest.er1 >conftest.err
 
2453
  rm -f conftest.er1
 
2454
  cat conftest.err >&5
 
2455
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2456
  (exit $ac_status); } &&
 
2457
         { ac_try='test -z "$ac_c_werror_flag"
 
2458
                         || test ! -s conftest.err'
 
2459
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2460
  (eval $ac_try) 2>&5
 
2461
  ac_status=$?
 
2462
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2463
  (exit $ac_status); }; } &&
 
2464
         { ac_try='test -s conftest.$ac_objext'
 
2465
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2466
  (eval $ac_try) 2>&5
 
2467
  ac_status=$?
 
2468
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2469
  (exit $ac_status); }; }; then
 
2470
  for ac_declaration in \
 
2471
   '' \
 
2472
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
2473
   'extern "C" void std::exit (int); using std::exit;' \
 
2474
   'extern "C" void exit (int) throw ();' \
 
2475
   'extern "C" void exit (int);' \
 
2476
   'void exit (int);'
 
2477
do
 
2478
  cat >conftest.$ac_ext <<_ACEOF
 
2479
/* confdefs.h.  */
 
2480
_ACEOF
 
2481
cat confdefs.h >>conftest.$ac_ext
 
2482
cat >>conftest.$ac_ext <<_ACEOF
 
2483
/* end confdefs.h.  */
 
2484
$ac_declaration
 
2485
#include <stdlib.h>
 
2486
int
 
2487
main ()
 
2488
{
 
2489
exit (42);
 
2490
  ;
 
2491
  return 0;
 
2492
}
 
2493
_ACEOF
 
2494
rm -f conftest.$ac_objext
 
2495
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2496
  (eval $ac_compile) 2>conftest.er1
 
2497
  ac_status=$?
 
2498
  grep -v '^ *+' conftest.er1 >conftest.err
 
2499
  rm -f conftest.er1
 
2500
  cat conftest.err >&5
 
2501
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2502
  (exit $ac_status); } &&
 
2503
         { ac_try='test -z "$ac_c_werror_flag"
 
2504
                         || test ! -s conftest.err'
 
2505
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2506
  (eval $ac_try) 2>&5
 
2507
  ac_status=$?
 
2508
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2509
  (exit $ac_status); }; } &&
 
2510
         { ac_try='test -s conftest.$ac_objext'
 
2511
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2512
  (eval $ac_try) 2>&5
 
2513
  ac_status=$?
 
2514
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2515
  (exit $ac_status); }; }; then
 
2516
  :
 
2517
else
 
2518
  echo "$as_me: failed program was:" >&5
 
2519
sed 's/^/| /' conftest.$ac_ext >&5
 
2520
 
 
2521
continue
 
2522
fi
 
2523
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2524
  cat >conftest.$ac_ext <<_ACEOF
 
2525
/* confdefs.h.  */
 
2526
_ACEOF
 
2527
cat confdefs.h >>conftest.$ac_ext
 
2528
cat >>conftest.$ac_ext <<_ACEOF
 
2529
/* end confdefs.h.  */
 
2530
$ac_declaration
 
2531
int
 
2532
main ()
 
2533
{
 
2534
exit (42);
 
2535
  ;
 
2536
  return 0;
 
2537
}
 
2538
_ACEOF
 
2539
rm -f conftest.$ac_objext
 
2540
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2541
  (eval $ac_compile) 2>conftest.er1
 
2542
  ac_status=$?
 
2543
  grep -v '^ *+' conftest.er1 >conftest.err
 
2544
  rm -f conftest.er1
 
2545
  cat conftest.err >&5
 
2546
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2547
  (exit $ac_status); } &&
 
2548
         { ac_try='test -z "$ac_c_werror_flag"
 
2549
                         || test ! -s conftest.err'
 
2550
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2551
  (eval $ac_try) 2>&5
 
2552
  ac_status=$?
 
2553
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2554
  (exit $ac_status); }; } &&
 
2555
         { ac_try='test -s conftest.$ac_objext'
 
2556
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2557
  (eval $ac_try) 2>&5
 
2558
  ac_status=$?
 
2559
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2560
  (exit $ac_status); }; }; then
 
2561
  break
 
2562
else
 
2563
  echo "$as_me: failed program was:" >&5
 
2564
sed 's/^/| /' conftest.$ac_ext >&5
 
2565
 
 
2566
fi
 
2567
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2568
done
 
2569
rm -f conftest*
 
2570
if test -n "$ac_declaration"; then
 
2571
  echo '#ifdef __cplusplus' >>confdefs.h
 
2572
  echo $ac_declaration      >>confdefs.h
 
2573
  echo '#endif'             >>confdefs.h
 
2574
fi
 
2575
 
 
2576
else
 
2577
  echo "$as_me: failed program was:" >&5
 
2578
sed 's/^/| /' conftest.$ac_ext >&5
 
2579
 
 
2580
fi
 
2581
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3069
2582
ac_ext=c
3070
2583
ac_cpp='$CPP $CPPFLAGS'
3071
2584
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3072
2585
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3073
2586
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3074
2587
 
3075
 
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3076
 
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
 
2588
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
2589
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3077
2590
if test "${lt_cv_path_SED+set}" = set; then
3078
2591
  echo $ECHO_N "(cached) $ECHO_C" >&6
3079
2592
else
3126
2639
fi
3127
2640
 
3128
2641
SED=$lt_cv_path_SED
3129
 
{ echo "$as_me:$LINENO: result: $SED" >&5
3130
 
echo "${ECHO_T}$SED" >&6; }
3131
 
 
3132
 
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3133
 
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3134
 
if test "${ac_cv_path_GREP+set}" = set; then
3135
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3136
 
else
3137
 
  # Extract the first word of "grep ggrep" to use in msg output
3138
 
if test -z "$GREP"; then
3139
 
set dummy grep ggrep; ac_prog_name=$2
3140
 
if test "${ac_cv_path_GREP+set}" = set; then
3141
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3142
 
else
3143
 
  ac_path_GREP_found=false
3144
 
# Loop through the user's path and test for each of PROGNAME-LIST
3145
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3146
 
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3147
 
do
3148
 
  IFS=$as_save_IFS
3149
 
  test -z "$as_dir" && as_dir=.
3150
 
  for ac_prog in grep ggrep; do
3151
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3152
 
    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3153
 
    { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3154
 
    # Check for GNU ac_path_GREP and select it if it is found.
3155
 
  # Check for GNU $ac_path_GREP
3156
 
case `"$ac_path_GREP" --version 2>&1` in
3157
 
*GNU*)
3158
 
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3159
 
*)
3160
 
  ac_count=0
3161
 
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3162
 
  while :
3163
 
  do
3164
 
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3165
 
    mv "conftest.tmp" "conftest.in"
3166
 
    cp "conftest.in" "conftest.nl"
3167
 
    echo 'GREP' >> "conftest.nl"
3168
 
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3169
 
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3170
 
    ac_count=`expr $ac_count + 1`
3171
 
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3172
 
      # Best one so far, save it but keep looking for a better one
3173
 
      ac_cv_path_GREP="$ac_path_GREP"
3174
 
      ac_path_GREP_max=$ac_count
3175
 
    fi
3176
 
    # 10*(2^10) chars as input seems more than enough
3177
 
    test $ac_count -gt 10 && break
3178
 
  done
3179
 
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3180
 
esac
3181
 
 
3182
 
 
3183
 
    $ac_path_GREP_found && break 3
3184
 
  done
3185
 
done
3186
 
 
3187
 
done
3188
 
IFS=$as_save_IFS
3189
 
 
3190
 
 
3191
 
fi
3192
 
 
3193
 
GREP="$ac_cv_path_GREP"
3194
 
if test -z "$GREP"; then
3195
 
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3196
 
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3197
 
   { (exit 1); exit 1; }; }
3198
 
fi
3199
 
 
3200
 
else
3201
 
  ac_cv_path_GREP=$GREP
3202
 
fi
3203
 
 
3204
 
 
3205
 
fi
3206
 
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3207
 
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3208
 
 GREP="$ac_cv_path_GREP"
3209
 
 
3210
 
 
3211
 
{ echo "$as_me:$LINENO: checking for egrep" >&5
3212
 
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3213
 
if test "${ac_cv_path_EGREP+set}" = set; then
3214
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3215
 
else
3216
 
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3217
 
   then ac_cv_path_EGREP="$GREP -E"
3218
 
   else
3219
 
     # Extract the first word of "egrep" to use in msg output
3220
 
if test -z "$EGREP"; then
3221
 
set dummy egrep; ac_prog_name=$2
3222
 
if test "${ac_cv_path_EGREP+set}" = set; then
3223
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3224
 
else
3225
 
  ac_path_EGREP_found=false
3226
 
# Loop through the user's path and test for each of PROGNAME-LIST
3227
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3228
 
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3229
 
do
3230
 
  IFS=$as_save_IFS
3231
 
  test -z "$as_dir" && as_dir=.
3232
 
  for ac_prog in egrep; do
3233
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3234
 
    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3235
 
    { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3236
 
    # Check for GNU ac_path_EGREP and select it if it is found.
3237
 
  # Check for GNU $ac_path_EGREP
3238
 
case `"$ac_path_EGREP" --version 2>&1` in
3239
 
*GNU*)
3240
 
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3241
 
*)
3242
 
  ac_count=0
3243
 
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3244
 
  while :
3245
 
  do
3246
 
    cat "conftest.in" "conftest.in" >"conftest.tmp"
3247
 
    mv "conftest.tmp" "conftest.in"
3248
 
    cp "conftest.in" "conftest.nl"
3249
 
    echo 'EGREP' >> "conftest.nl"
3250
 
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3251
 
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3252
 
    ac_count=`expr $ac_count + 1`
3253
 
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3254
 
      # Best one so far, save it but keep looking for a better one
3255
 
      ac_cv_path_EGREP="$ac_path_EGREP"
3256
 
      ac_path_EGREP_max=$ac_count
3257
 
    fi
3258
 
    # 10*(2^10) chars as input seems more than enough
3259
 
    test $ac_count -gt 10 && break
3260
 
  done
3261
 
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3262
 
esac
3263
 
 
3264
 
 
3265
 
    $ac_path_EGREP_found && break 3
3266
 
  done
3267
 
done
3268
 
 
3269
 
done
3270
 
IFS=$as_save_IFS
3271
 
 
3272
 
 
3273
 
fi
3274
 
 
3275
 
EGREP="$ac_cv_path_EGREP"
3276
 
if test -z "$EGREP"; then
3277
 
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3278
 
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3279
 
   { (exit 1); exit 1; }; }
3280
 
fi
3281
 
 
3282
 
else
3283
 
  ac_cv_path_EGREP=$EGREP
3284
 
fi
3285
 
 
3286
 
 
3287
 
   fi
3288
 
fi
3289
 
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3290
 
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3291
 
 EGREP="$ac_cv_path_EGREP"
3292
 
 
3293
 
 
3294
 
 
3295
 
# Check whether --with-gnu-ld was given.
 
2642
echo "$as_me:$LINENO: result: $SED" >&5
 
2643
echo "${ECHO_T}$SED" >&6
 
2644
 
 
2645
echo "$as_me:$LINENO: checking for egrep" >&5
 
2646
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
 
2647
if test "${ac_cv_prog_egrep+set}" = set; then
 
2648
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2649
else
 
2650
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
2651
    then ac_cv_prog_egrep='grep -E'
 
2652
    else ac_cv_prog_egrep='egrep'
 
2653
    fi
 
2654
fi
 
2655
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
 
2656
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 
2657
 EGREP=$ac_cv_prog_egrep
 
2658
 
 
2659
 
 
2660
 
 
2661
# Check whether --with-gnu-ld or --without-gnu-ld was given.
3296
2662
if test "${with_gnu_ld+set}" = set; then
3297
 
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
2663
  withval="$with_gnu_ld"
 
2664
  test "$withval" = no || with_gnu_ld=yes
3298
2665
else
3299
2666
  with_gnu_ld=no
3300
 
fi
3301
 
 
 
2667
fi;
3302
2668
ac_prog=ld
3303
2669
if test "$GCC" = yes; then
3304
2670
  # Check if gcc -print-prog-name=ld gives a path.
3305
 
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3306
 
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
 
2671
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
2672
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3307
2673
  case $host in
3308
2674
  *-*-mingw*)
3309
2675
    # gcc leaves a trailing carriage return which upsets mingw
3332
2698
    ;;
3333
2699
  esac
3334
2700
elif test "$with_gnu_ld" = yes; then
3335
 
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
3336
 
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
 
2701
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
2702
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3337
2703
else
3338
 
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3339
 
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
 
2704
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
2705
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3340
2706
fi
3341
2707
if test "${lt_cv_path_LD+set}" = set; then
3342
2708
  echo $ECHO_N "(cached) $ECHO_C" >&6
3369
2735
 
3370
2736
LD="$lt_cv_path_LD"
3371
2737
if test -n "$LD"; then
3372
 
  { echo "$as_me:$LINENO: result: $LD" >&5
3373
 
echo "${ECHO_T}$LD" >&6; }
 
2738
  echo "$as_me:$LINENO: result: $LD" >&5
 
2739
echo "${ECHO_T}$LD" >&6
3374
2740
else
3375
 
  { echo "$as_me:$LINENO: result: no" >&5
3376
 
echo "${ECHO_T}no" >&6; }
 
2741
  echo "$as_me:$LINENO: result: no" >&5
 
2742
echo "${ECHO_T}no" >&6
3377
2743
fi
3378
2744
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3379
2745
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3380
2746
   { (exit 1); exit 1; }; }
3381
 
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3382
 
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
 
2747
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
2748
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3383
2749
if test "${lt_cv_prog_gnu_ld+set}" = set; then
3384
2750
  echo $ECHO_N "(cached) $ECHO_C" >&6
3385
2751
else
3393
2759
  ;;
3394
2760
esac
3395
2761
fi
3396
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3397
 
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
 
2762
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
2763
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3398
2764
with_gnu_ld=$lt_cv_prog_gnu_ld
3399
2765
 
3400
2766
 
3401
 
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3402
 
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
 
2767
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
2768
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3403
2769
if test "${lt_cv_ld_reload_flag+set}" = set; then
3404
2770
  echo $ECHO_N "(cached) $ECHO_C" >&6
3405
2771
else
3406
2772
  lt_cv_ld_reload_flag='-r'
3407
2773
fi
3408
 
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3409
 
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
 
2774
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
2775
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3410
2776
reload_flag=$lt_cv_ld_reload_flag
3411
2777
case $reload_flag in
3412
2778
"" | " "*) ;;
3416
2782
case $host_os in
3417
2783
  darwin*)
3418
2784
    if test "$GCC" = yes; then
3419
 
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
2785
      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3420
2786
    else
3421
2787
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
3422
2788
    fi
3423
2789
    ;;
3424
2790
esac
3425
2791
 
3426
 
{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3427
 
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
 
2792
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
2793
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3428
2794
if test "${lt_cv_path_NM+set}" = set; then
3429
2795
  echo $ECHO_N "(cached) $ECHO_C" >&6
3430
2796
else
3432
2798
  # Let the user override the test.
3433
2799
  lt_cv_path_NM="$NM"
3434
2800
else
3435
 
  lt_nm_to_check="${ac_tool_prefix}nm"
3436
 
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3437
 
    lt_nm_to_check="$lt_nm_to_check nm"
3438
 
  fi
3439
 
  for lt_tmp_nm in $lt_nm_to_check; do
3440
 
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3441
 
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3442
 
      IFS="$lt_save_ifs"
3443
 
      test -z "$ac_dir" && ac_dir=.
3444
 
      tmp_nm="$ac_dir/$lt_tmp_nm"
3445
 
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3446
 
        # Check to see if the nm accepts a BSD-compat flag.
3447
 
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3448
 
        #   nm: unknown option "B" ignored
3449
 
        # Tru64's nm complains that /dev/null is an invalid object file
3450
 
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3451
 
        */dev/null* | *'Invalid file or object type'*)
3452
 
          lt_cv_path_NM="$tmp_nm -B"
 
2801
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
2802
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
 
2803
    IFS="$lt_save_ifs"
 
2804
    test -z "$ac_dir" && ac_dir=.
 
2805
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
 
2806
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
2807
      # Check to see if the nm accepts a BSD-compat flag.
 
2808
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
2809
      #   nm: unknown option "B" ignored
 
2810
      # Tru64's nm complains that /dev/null is an invalid object file
 
2811
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
2812
      */dev/null* | *'Invalid file or object type'*)
 
2813
        lt_cv_path_NM="$tmp_nm -B"
 
2814
        break
 
2815
        ;;
 
2816
      *)
 
2817
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
2818
        */dev/null*)
 
2819
          lt_cv_path_NM="$tmp_nm -p"
3453
2820
          break
3454
2821
          ;;
3455
2822
        *)
3456
 
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3457
 
          */dev/null*)
3458
 
            lt_cv_path_NM="$tmp_nm -p"
3459
 
            break
3460
 
            ;;
3461
 
          *)
3462
 
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3463
 
            continue # so that we can try to find one that supports BSD flags
3464
 
            ;;
3465
 
          esac
 
2823
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
2824
          continue # so that we can try to find one that supports BSD flags
3466
2825
          ;;
3467
2826
        esac
3468
 
      fi
3469
 
    done
3470
 
    IFS="$lt_save_ifs"
 
2827
      esac
 
2828
    fi
3471
2829
  done
 
2830
  IFS="$lt_save_ifs"
3472
2831
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3473
2832
fi
3474
2833
fi
3475
 
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3476
 
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
 
2834
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
2835
echo "${ECHO_T}$lt_cv_path_NM" >&6
3477
2836
NM="$lt_cv_path_NM"
3478
2837
 
3479
 
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
3480
 
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
 
2838
echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
2839
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3481
2840
LN_S=$as_ln_s
3482
2841
if test "$LN_S" = "ln -s"; then
3483
 
  { echo "$as_me:$LINENO: result: yes" >&5
3484
 
echo "${ECHO_T}yes" >&6; }
 
2842
  echo "$as_me:$LINENO: result: yes" >&5
 
2843
echo "${ECHO_T}yes" >&6
3485
2844
else
3486
 
  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3487
 
echo "${ECHO_T}no, using $LN_S" >&6; }
 
2845
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
2846
echo "${ECHO_T}no, using $LN_S" >&6
3488
2847
fi
3489
2848
 
3490
 
{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3491
 
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
 
2849
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
 
2850
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3492
2851
if test "${lt_cv_deplibs_check_method+set}" = set; then
3493
2852
  echo $ECHO_N "(cached) $ECHO_C" >&6
3494
2853
else
3538
2897
  lt_cv_deplibs_check_method=pass_all
3539
2898
  ;;
3540
2899
 
3541
 
freebsd* | dragonfly*)
 
2900
freebsd* | kfreebsd*-gnu | dragonfly*)
3542
2901
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3543
2902
    case $host_cpu in
3544
2903
    i*86 )
3576
2935
  esac
3577
2936
  ;;
3578
2937
 
3579
 
interix3*)
3580
 
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3581
 
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3582
 
  ;;
3583
 
 
3584
2938
irix5* | irix6* | nonstopux*)
3585
2939
  case $LD in
3586
2940
  *-32|*"-32 ") libmagic=32-bit;;
3592
2946
  ;;
3593
2947
 
3594
2948
# This must be Linux ELF.
3595
 
linux* | k*bsd*-gnu)
 
2949
linux*)
3596
2950
  lt_cv_deplibs_check_method=pass_all
3597
2951
  ;;
3598
2952
 
3599
 
netbsd* | netbsdelf*-gnu)
 
2953
netbsd*)
3600
2954
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3601
2955
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3602
2956
  else
3626
2980
  lt_cv_deplibs_check_method=pass_all
3627
2981
  ;;
3628
2982
 
 
2983
sco3.2v5*)
 
2984
  lt_cv_deplibs_check_method=pass_all
 
2985
  ;;
 
2986
 
3629
2987
solaris*)
3630
2988
  lt_cv_deplibs_check_method=pass_all
3631
2989
  ;;
3632
2990
 
3633
 
sysv4 | sysv4.3*)
 
2991
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3634
2992
  case $host_vendor in
3635
2993
  motorola)
3636
2994
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3651
3009
  siemens)
3652
3010
    lt_cv_deplibs_check_method=pass_all
3653
3011
    ;;
3654
 
  pc)
3655
 
    lt_cv_deplibs_check_method=pass_all
3656
 
    ;;
3657
3012
  esac
3658
3013
  ;;
3659
3014
 
3660
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
3015
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3661
3016
  lt_cv_deplibs_check_method=pass_all
3662
3017
  ;;
3663
3018
esac
3664
3019
 
3665
3020
fi
3666
 
{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3667
 
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
 
3021
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
3022
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3668
3023
file_magic_cmd=$lt_cv_file_magic_cmd
3669
3024
deplibs_check_method=$lt_cv_deplibs_check_method
3670
3025
test -z "$deplibs_check_method" && deplibs_check_method=unknown
3675
3030
# If no C compiler was specified, use CC.
3676
3031
LTCC=${LTCC-"$CC"}
3677
3032
 
3678
 
# If no C compiler flags were specified, use CFLAGS.
3679
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3680
 
 
3681
3033
# Allow CC to be a program name with arguments.
3682
3034
compiler=$CC
3683
3035
 
3684
3036
 
3685
 
# Check whether --enable-libtool-lock was given.
 
3037
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3686
3038
if test "${enable_libtool_lock+set}" = set; then
3687
 
  enableval=$enable_libtool_lock;
3688
 
fi
 
3039
  enableval="$enable_libtool_lock"
3689
3040
 
 
3041
fi;
3690
3042
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3691
3043
 
3692
3044
# Some flags need to be propagated to the compiler or linker for good
3713
3065
  ;;
3714
3066
*-*-irix6*)
3715
3067
  # Find out which ABI we are using.
3716
 
  echo '#line 3716 "configure"' > conftest.$ac_ext
 
3068
  echo '#line 3068 "configure"' > conftest.$ac_ext
3717
3069
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3718
3070
  (eval $ac_compile) 2>&5
3719
3071
  ac_status=$?
3798
3150
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3799
3151
  SAVE_CFLAGS="$CFLAGS"
3800
3152
  CFLAGS="$CFLAGS -belf"
3801
 
  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3802
 
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
 
3153
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
3154
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3803
3155
if test "${lt_cv_cc_needs_belf+set}" = set; then
3804
3156
  echo $ECHO_N "(cached) $ECHO_C" >&6
3805
3157
else
3825
3177
}
3826
3178
_ACEOF
3827
3179
rm -f conftest.$ac_objext conftest$ac_exeext
3828
 
if { (ac_try="$ac_link"
3829
 
case "(($ac_try" in
3830
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3831
 
  *) ac_try_echo=$ac_try;;
3832
 
esac
3833
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3834
 
  (eval "$ac_link") 2>conftest.er1
 
3180
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3181
  (eval $ac_link) 2>conftest.er1
3835
3182
  ac_status=$?
3836
3183
  grep -v '^ *+' conftest.er1 >conftest.err
3837
3184
  rm -f conftest.er1
3838
3185
  cat conftest.err >&5
3839
3186
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840
3187
  (exit $ac_status); } &&
3841
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3842
 
  { (case "(($ac_try" in
3843
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3844
 
  *) ac_try_echo=$ac_try;;
3845
 
esac
3846
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3847
 
  (eval "$ac_try") 2>&5
 
3188
         { ac_try='test -z "$ac_c_werror_flag"
 
3189
                         || test ! -s conftest.err'
 
3190
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3191
  (eval $ac_try) 2>&5
3848
3192
  ac_status=$?
3849
3193
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850
3194
  (exit $ac_status); }; } &&
3851
3195
         { ac_try='test -s conftest$ac_exeext'
3852
 
  { (case "(($ac_try" in
3853
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854
 
  *) ac_try_echo=$ac_try;;
3855
 
esac
3856
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3857
 
  (eval "$ac_try") 2>&5
 
3196
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3197
  (eval $ac_try) 2>&5
3858
3198
  ac_status=$?
3859
3199
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860
3200
  (exit $ac_status); }; }; then
3863
3203
  echo "$as_me: failed program was:" >&5
3864
3204
sed 's/^/| /' conftest.$ac_ext >&5
3865
3205
 
3866
 
        lt_cv_cc_needs_belf=no
 
3206
lt_cv_cc_needs_belf=no
3867
3207
fi
3868
 
 
3869
 
rm -f core conftest.err conftest.$ac_objext \
 
3208
rm -f conftest.err conftest.$ac_objext \
3870
3209
      conftest$ac_exeext conftest.$ac_ext
3871
3210
     ac_ext=c
3872
3211
ac_cpp='$CPP $CPPFLAGS'
3875
3214
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3876
3215
 
3877
3216
fi
3878
 
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3879
 
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
 
3217
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
3218
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3880
3219
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3881
3220
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3882
3221
    CFLAGS="$SAVE_CFLAGS"
3883
3222
  fi
3884
3223
  ;;
3885
 
sparc*-*solaris*)
3886
 
  # Find out which ABI we are using.
3887
 
  echo 'int i;' > conftest.$ac_ext
3888
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3889
 
  (eval $ac_compile) 2>&5
3890
 
  ac_status=$?
3891
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892
 
  (exit $ac_status); }; then
3893
 
    case `/usr/bin/file conftest.o` in
3894
 
    *64-bit*)
3895
 
      case $lt_cv_prog_gnu_ld in
3896
 
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
3897
 
      *)    LD="${LD-ld} -64" ;;
3898
 
      esac
3899
 
      ;;
3900
 
    esac
3901
 
  fi
3902
 
  rm -rf conftest*
3903
 
  ;;
3904
 
 
3905
3224
 
3906
3225
esac
3907
3226
 
3913
3232
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3914
3233
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3915
3234
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3916
 
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3917
 
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
 
3235
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
3236
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3918
3237
# On Suns, sometimes $CPP names a directory.
3919
3238
if test -n "$CPP" && test -d "$CPP"; then
3920
3239
  CPP=
3948
3267
#endif
3949
3268
                     Syntax error
3950
3269
_ACEOF
3951
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
3952
 
case "(($ac_try" in
3953
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3954
 
  *) ac_try_echo=$ac_try;;
3955
 
esac
3956
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3957
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
3270
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3271
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3958
3272
  ac_status=$?
3959
3273
  grep -v '^ *+' conftest.er1 >conftest.err
3960
3274
  rm -f conftest.er1
3979
3293
  # Broken: fails on valid input.
3980
3294
continue
3981
3295
fi
3982
 
 
3983
3296
rm -f conftest.err conftest.$ac_ext
3984
3297
 
3985
 
  # OK, works on sane cases.  Now check whether nonexistent headers
 
3298
  # OK, works on sane cases.  Now check whether non-existent headers
3986
3299
  # can be detected and how.
3987
3300
  cat >conftest.$ac_ext <<_ACEOF
3988
3301
/* confdefs.h.  */
3992
3305
/* end confdefs.h.  */
3993
3306
#include <ac_nonexistent.h>
3994
3307
_ACEOF
3995
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
3996
 
case "(($ac_try" in
3997
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3998
 
  *) ac_try_echo=$ac_try;;
3999
 
esac
4000
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4001
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
3308
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3309
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4002
3310
  ac_status=$?
4003
3311
  grep -v '^ *+' conftest.er1 >conftest.err
4004
3312
  rm -f conftest.er1
4025
3333
ac_preproc_ok=:
4026
3334
break
4027
3335
fi
4028
 
 
4029
3336
rm -f conftest.err conftest.$ac_ext
4030
3337
 
4031
3338
done
4043
3350
else
4044
3351
  ac_cv_prog_CPP=$CPP
4045
3352
fi
4046
 
{ echo "$as_me:$LINENO: result: $CPP" >&5
4047
 
echo "${ECHO_T}$CPP" >&6; }
 
3353
echo "$as_me:$LINENO: result: $CPP" >&5
 
3354
echo "${ECHO_T}$CPP" >&6
4048
3355
ac_preproc_ok=false
4049
3356
for ac_c_preproc_warn_flag in '' yes
4050
3357
do
4067
3374
#endif
4068
3375
                     Syntax error
4069
3376
_ACEOF
4070
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4071
 
case "(($ac_try" in
4072
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4073
 
  *) ac_try_echo=$ac_try;;
4074
 
esac
4075
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4076
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
3377
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3378
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4077
3379
  ac_status=$?
4078
3380
  grep -v '^ *+' conftest.er1 >conftest.err
4079
3381
  rm -f conftest.er1
4098
3400
  # Broken: fails on valid input.
4099
3401
continue
4100
3402
fi
4101
 
 
4102
3403
rm -f conftest.err conftest.$ac_ext
4103
3404
 
4104
 
  # OK, works on sane cases.  Now check whether nonexistent headers
 
3405
  # OK, works on sane cases.  Now check whether non-existent headers
4105
3406
  # can be detected and how.
4106
3407
  cat >conftest.$ac_ext <<_ACEOF
4107
3408
/* confdefs.h.  */
4111
3412
/* end confdefs.h.  */
4112
3413
#include <ac_nonexistent.h>
4113
3414
_ACEOF
4114
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4115
 
case "(($ac_try" in
4116
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4117
 
  *) ac_try_echo=$ac_try;;
4118
 
esac
4119
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4120
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
3415
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3416
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4121
3417
  ac_status=$?
4122
3418
  grep -v '^ *+' conftest.er1 >conftest.err
4123
3419
  rm -f conftest.er1
4144
3440
ac_preproc_ok=:
4145
3441
break
4146
3442
fi
4147
 
 
4148
3443
rm -f conftest.err conftest.$ac_ext
4149
3444
 
4150
3445
done
4167
3462
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4168
3463
 
4169
3464
 
4170
 
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4171
 
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
 
3465
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
3466
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4172
3467
if test "${ac_cv_header_stdc+set}" = set; then
4173
3468
  echo $ECHO_N "(cached) $ECHO_C" >&6
4174
3469
else
4192
3487
}
4193
3488
_ACEOF
4194
3489
rm -f conftest.$ac_objext
4195
 
if { (ac_try="$ac_compile"
4196
 
case "(($ac_try" in
4197
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4198
 
  *) ac_try_echo=$ac_try;;
4199
 
esac
4200
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4201
 
  (eval "$ac_compile") 2>conftest.er1
 
3490
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3491
  (eval $ac_compile) 2>conftest.er1
4202
3492
  ac_status=$?
4203
3493
  grep -v '^ *+' conftest.er1 >conftest.err
4204
3494
  rm -f conftest.er1
4205
3495
  cat conftest.err >&5
4206
3496
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207
3497
  (exit $ac_status); } &&
4208
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4209
 
  { (case "(($ac_try" in
4210
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4211
 
  *) ac_try_echo=$ac_try;;
4212
 
esac
4213
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4214
 
  (eval "$ac_try") 2>&5
 
3498
         { ac_try='test -z "$ac_c_werror_flag"
 
3499
                         || test ! -s conftest.err'
 
3500
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3501
  (eval $ac_try) 2>&5
4215
3502
  ac_status=$?
4216
3503
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217
3504
  (exit $ac_status); }; } &&
4218
3505
         { ac_try='test -s conftest.$ac_objext'
4219
 
  { (case "(($ac_try" in
4220
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4221
 
  *) ac_try_echo=$ac_try;;
4222
 
esac
4223
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4224
 
  (eval "$ac_try") 2>&5
 
3506
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3507
  (eval $ac_try) 2>&5
4225
3508
  ac_status=$?
4226
3509
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227
3510
  (exit $ac_status); }; }; then
4230
3513
  echo "$as_me: failed program was:" >&5
4231
3514
sed 's/^/| /' conftest.$ac_ext >&5
4232
3515
 
4233
 
        ac_cv_header_stdc=no
 
3516
ac_cv_header_stdc=no
4234
3517
fi
4235
 
 
4236
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3518
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4237
3519
 
4238
3520
if test $ac_cv_header_stdc = yes; then
4239
3521
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4289
3571
cat >>conftest.$ac_ext <<_ACEOF
4290
3572
/* end confdefs.h.  */
4291
3573
#include <ctype.h>
4292
 
#include <stdlib.h>
4293
3574
#if ((' ' & 0x0FF) == 0x020)
4294
3575
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4295
3576
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4309
3590
  for (i = 0; i < 256; i++)
4310
3591
    if (XOR (islower (i), ISLOWER (i))
4311
3592
        || toupper (i) != TOUPPER (i))
4312
 
      return 2;
4313
 
  return 0;
 
3593
      exit(2);
 
3594
  exit (0);
4314
3595
}
4315
3596
_ACEOF
4316
3597
rm -f conftest$ac_exeext
4317
 
if { (ac_try="$ac_link"
4318
 
case "(($ac_try" in
4319
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4320
 
  *) ac_try_echo=$ac_try;;
4321
 
esac
4322
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4323
 
  (eval "$ac_link") 2>&5
 
3598
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3599
  (eval $ac_link) 2>&5
4324
3600
  ac_status=$?
4325
3601
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326
3602
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4327
 
  { (case "(($ac_try" in
4328
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4329
 
  *) ac_try_echo=$ac_try;;
4330
 
esac
4331
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4332
 
  (eval "$ac_try") 2>&5
 
3603
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3604
  (eval $ac_try) 2>&5
4333
3605
  ac_status=$?
4334
3606
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335
3607
  (exit $ac_status); }; }; then
4342
3614
( exit $ac_status )
4343
3615
ac_cv_header_stdc=no
4344
3616
fi
4345
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4346
 
fi
4347
 
 
4348
 
 
4349
 
fi
4350
 
fi
4351
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4352
 
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
 
3617
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
3618
fi
 
3619
fi
 
3620
fi
 
3621
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
3622
echo "${ECHO_T}$ac_cv_header_stdc" >&6
4353
3623
if test $ac_cv_header_stdc = yes; then
4354
3624
 
4355
3625
cat >>confdefs.h <<\_ACEOF
4372
3642
                  inttypes.h stdint.h unistd.h
4373
3643
do
4374
3644
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4375
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4376
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4377
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
3645
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
3646
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
3647
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4378
3648
  echo $ECHO_N "(cached) $ECHO_C" >&6
4379
3649
else
4380
3650
  cat >conftest.$ac_ext <<_ACEOF
4388
3658
#include <$ac_header>
4389
3659
_ACEOF
4390
3660
rm -f conftest.$ac_objext
4391
 
if { (ac_try="$ac_compile"
4392
 
case "(($ac_try" in
4393
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4394
 
  *) ac_try_echo=$ac_try;;
4395
 
esac
4396
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4397
 
  (eval "$ac_compile") 2>conftest.er1
 
3661
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3662
  (eval $ac_compile) 2>conftest.er1
4398
3663
  ac_status=$?
4399
3664
  grep -v '^ *+' conftest.er1 >conftest.err
4400
3665
  rm -f conftest.er1
4401
3666
  cat conftest.err >&5
4402
3667
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403
3668
  (exit $ac_status); } &&
4404
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4405
 
  { (case "(($ac_try" in
4406
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4407
 
  *) ac_try_echo=$ac_try;;
4408
 
esac
4409
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4410
 
  (eval "$ac_try") 2>&5
 
3669
         { ac_try='test -z "$ac_c_werror_flag"
 
3670
                         || test ! -s conftest.err'
 
3671
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3672
  (eval $ac_try) 2>&5
4411
3673
  ac_status=$?
4412
3674
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413
3675
  (exit $ac_status); }; } &&
4414
3676
         { ac_try='test -s conftest.$ac_objext'
4415
 
  { (case "(($ac_try" in
4416
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4417
 
  *) ac_try_echo=$ac_try;;
4418
 
esac
4419
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4420
 
  (eval "$ac_try") 2>&5
 
3677
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3678
  (eval $ac_try) 2>&5
4421
3679
  ac_status=$?
4422
3680
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4423
3681
  (exit $ac_status); }; }; then
4426
3684
  echo "$as_me: failed program was:" >&5
4427
3685
sed 's/^/| /' conftest.$ac_ext >&5
4428
3686
 
4429
 
        eval "$as_ac_Header=no"
4430
 
fi
4431
 
 
4432
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4433
 
fi
4434
 
ac_res=`eval echo '${'$as_ac_Header'}'`
4435
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
4436
 
echo "${ECHO_T}$ac_res" >&6; }
 
3687
eval "$as_ac_Header=no"
 
3688
fi
 
3689
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3690
fi
 
3691
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
3692
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4437
3693
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4438
3694
  cat >>confdefs.h <<_ACEOF
4439
3695
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4448
3704
for ac_header in dlfcn.h
4449
3705
do
4450
3706
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4451
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4452
 
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
4453
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4454
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
3707
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
3708
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
3709
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
3710
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4455
3711
  echo $ECHO_N "(cached) $ECHO_C" >&6
4456
3712
fi
4457
 
ac_res=`eval echo '${'$as_ac_Header'}'`
4458
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
4459
 
echo "${ECHO_T}$ac_res" >&6; }
 
3713
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
3714
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4460
3715
else
4461
3716
  # Is the header compilable?
4462
 
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4463
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
3717
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
3718
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4464
3719
cat >conftest.$ac_ext <<_ACEOF
4465
3720
/* confdefs.h.  */
4466
3721
_ACEOF
4471
3726
#include <$ac_header>
4472
3727
_ACEOF
4473
3728
rm -f conftest.$ac_objext
4474
 
if { (ac_try="$ac_compile"
4475
 
case "(($ac_try" in
4476
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4477
 
  *) ac_try_echo=$ac_try;;
4478
 
esac
4479
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4480
 
  (eval "$ac_compile") 2>conftest.er1
 
3729
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3730
  (eval $ac_compile) 2>conftest.er1
4481
3731
  ac_status=$?
4482
3732
  grep -v '^ *+' conftest.er1 >conftest.err
4483
3733
  rm -f conftest.er1
4484
3734
  cat conftest.err >&5
4485
3735
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486
3736
  (exit $ac_status); } &&
4487
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4488
 
  { (case "(($ac_try" in
4489
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4490
 
  *) ac_try_echo=$ac_try;;
4491
 
esac
4492
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4493
 
  (eval "$ac_try") 2>&5
 
3737
         { ac_try='test -z "$ac_c_werror_flag"
 
3738
                         || test ! -s conftest.err'
 
3739
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3740
  (eval $ac_try) 2>&5
4494
3741
  ac_status=$?
4495
3742
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496
3743
  (exit $ac_status); }; } &&
4497
3744
         { ac_try='test -s conftest.$ac_objext'
4498
 
  { (case "(($ac_try" in
4499
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4500
 
  *) ac_try_echo=$ac_try;;
4501
 
esac
4502
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4503
 
  (eval "$ac_try") 2>&5
 
3745
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3746
  (eval $ac_try) 2>&5
4504
3747
  ac_status=$?
4505
3748
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506
3749
  (exit $ac_status); }; }; then
4509
3752
  echo "$as_me: failed program was:" >&5
4510
3753
sed 's/^/| /' conftest.$ac_ext >&5
4511
3754
 
4512
 
        ac_header_compiler=no
 
3755
ac_header_compiler=no
4513
3756
fi
4514
 
 
4515
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4516
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4517
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
3757
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3758
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
3759
echo "${ECHO_T}$ac_header_compiler" >&6
4518
3760
 
4519
3761
# Is the header present?
4520
 
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4521
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
3762
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
3763
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4522
3764
cat >conftest.$ac_ext <<_ACEOF
4523
3765
/* confdefs.h.  */
4524
3766
_ACEOF
4527
3769
/* end confdefs.h.  */
4528
3770
#include <$ac_header>
4529
3771
_ACEOF
4530
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
4531
 
case "(($ac_try" in
4532
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4533
 
  *) ac_try_echo=$ac_try;;
4534
 
esac
4535
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4536
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
3772
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3773
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4537
3774
  ac_status=$?
4538
3775
  grep -v '^ *+' conftest.er1 >conftest.err
4539
3776
  rm -f conftest.er1
4557
3794
 
4558
3795
  ac_header_preproc=no
4559
3796
fi
4560
 
 
4561
3797
rm -f conftest.err conftest.$ac_ext
4562
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4563
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
3798
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
3799
echo "${ECHO_T}$ac_header_preproc" >&6
4564
3800
 
4565
3801
# So?  What about this header?
4566
3802
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4584
3820
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4585
3821
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4586
3822
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4587
 
    ( cat <<\_ASBOX
 
3823
    (
 
3824
      cat <<\_ASBOX
4588
3825
## ------------------------------ ##
4589
3826
## Report this to jon@radscan.com ##
4590
3827
## ------------------------------ ##
4591
3828
_ASBOX
4592
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
3829
    ) |
 
3830
      sed "s/^/$as_me: WARNING:     /" >&2
4593
3831
    ;;
4594
3832
esac
4595
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4596
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4597
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
3833
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
3834
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
3835
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4598
3836
  echo $ECHO_N "(cached) $ECHO_C" >&6
4599
3837
else
4600
3838
  eval "$as_ac_Header=\$ac_header_preproc"
4601
3839
fi
4602
 
ac_res=`eval echo '${'$as_ac_Header'}'`
4603
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
4604
 
echo "${ECHO_T}$ac_res" >&6; }
 
3840
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
3841
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4605
3842
 
4606
3843
fi
4607
3844
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4613
3850
 
4614
3851
done
4615
3852
 
4616
 
ac_ext=cpp
 
3853
ac_ext=cc
4617
3854
ac_cpp='$CXXCPP $CPPFLAGS'
4618
3855
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4619
3856
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4620
3857
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4621
 
if test -z "$CXX"; then
4622
 
  if test -n "$CCC"; then
4623
 
    CXX=$CCC
4624
 
  else
4625
 
    if test -n "$ac_tool_prefix"; then
4626
 
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
3858
if test -n "$ac_tool_prefix"; then
 
3859
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4627
3860
  do
4628
3861
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4629
3862
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4630
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4631
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3863
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3864
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4632
3865
if test "${ac_cv_prog_CXX+set}" = set; then
4633
3866
  echo $ECHO_N "(cached) $ECHO_C" >&6
4634
3867
else
4641
3874
  IFS=$as_save_IFS
4642
3875
  test -z "$as_dir" && as_dir=.
4643
3876
  for ac_exec_ext in '' $ac_executable_extensions; do
4644
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3877
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4645
3878
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4646
3879
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4647
3880
    break 2
4648
3881
  fi
4649
3882
done
4650
3883
done
4651
 
IFS=$as_save_IFS
4652
3884
 
4653
3885
fi
4654
3886
fi
4655
3887
CXX=$ac_cv_prog_CXX
4656
3888
if test -n "$CXX"; then
4657
 
  { echo "$as_me:$LINENO: result: $CXX" >&5
4658
 
echo "${ECHO_T}$CXX" >&6; }
 
3889
  echo "$as_me:$LINENO: result: $CXX" >&5
 
3890
echo "${ECHO_T}$CXX" >&6
4659
3891
else
4660
 
  { echo "$as_me:$LINENO: result: no" >&5
4661
 
echo "${ECHO_T}no" >&6; }
 
3892
  echo "$as_me:$LINENO: result: no" >&5
 
3893
echo "${ECHO_T}no" >&6
4662
3894
fi
4663
3895
 
4664
 
 
4665
3896
    test -n "$CXX" && break
4666
3897
  done
4667
3898
fi
4668
3899
if test -z "$CXX"; then
4669
3900
  ac_ct_CXX=$CXX
4670
 
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
3901
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4671
3902
do
4672
3903
  # Extract the first word of "$ac_prog", so it can be a program name with args.
4673
3904
set dummy $ac_prog; ac_word=$2
4674
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4675
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3905
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3906
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4676
3907
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4677
3908
  echo $ECHO_N "(cached) $ECHO_C" >&6
4678
3909
else
4685
3916
  IFS=$as_save_IFS
4686
3917
  test -z "$as_dir" && as_dir=.
4687
3918
  for ac_exec_ext in '' $ac_executable_extensions; do
4688
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3919
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4689
3920
    ac_cv_prog_ac_ct_CXX="$ac_prog"
4690
3921
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4691
3922
    break 2
4692
3923
  fi
4693
3924
done
4694
3925
done
4695
 
IFS=$as_save_IFS
4696
3926
 
4697
3927
fi
4698
3928
fi
4699
3929
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4700
3930
if test -n "$ac_ct_CXX"; then
4701
 
  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4702
 
echo "${ECHO_T}$ac_ct_CXX" >&6; }
 
3931
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
3932
echo "${ECHO_T}$ac_ct_CXX" >&6
4703
3933
else
4704
 
  { echo "$as_me:$LINENO: result: no" >&5
4705
 
echo "${ECHO_T}no" >&6; }
 
3934
  echo "$as_me:$LINENO: result: no" >&5
 
3935
echo "${ECHO_T}no" >&6
4706
3936
fi
4707
3937
 
4708
 
 
4709
3938
  test -n "$ac_ct_CXX" && break
4710
3939
done
4711
 
 
4712
 
  if test "x$ac_ct_CXX" = x; then
4713
 
    CXX="g++"
4714
 
  else
4715
 
    case $cross_compiling:$ac_tool_warned in
4716
 
yes:)
4717
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4718
 
whose name does not start with the host triplet.  If you think this
4719
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
4720
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4721
 
whose name does not start with the host triplet.  If you think this
4722
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4723
 
ac_tool_warned=yes ;;
4724
 
esac
4725
 
    CXX=$ac_ct_CXX
4726
 
  fi
4727
 
fi
4728
 
 
4729
 
  fi
4730
 
fi
 
3940
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
 
3941
 
 
3942
  CXX=$ac_ct_CXX
 
3943
fi
 
3944
 
 
3945
 
4731
3946
# Provide some information about the compiler.
4732
 
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
 
3947
echo "$as_me:$LINENO:" \
 
3948
     "checking for C++ compiler version" >&5
4733
3949
ac_compiler=`set X $ac_compile; echo $2`
4734
 
{ (ac_try="$ac_compiler --version >&5"
4735
 
case "(($ac_try" in
4736
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4737
 
  *) ac_try_echo=$ac_try;;
4738
 
esac
4739
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4740
 
  (eval "$ac_compiler --version >&5") 2>&5
4741
 
  ac_status=$?
4742
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743
 
  (exit $ac_status); }
4744
 
{ (ac_try="$ac_compiler -v >&5"
4745
 
case "(($ac_try" in
4746
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4747
 
  *) ac_try_echo=$ac_try;;
4748
 
esac
4749
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4750
 
  (eval "$ac_compiler -v >&5") 2>&5
4751
 
  ac_status=$?
4752
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753
 
  (exit $ac_status); }
4754
 
{ (ac_try="$ac_compiler -V >&5"
4755
 
case "(($ac_try" in
4756
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4757
 
  *) ac_try_echo=$ac_try;;
4758
 
esac
4759
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4760
 
  (eval "$ac_compiler -V >&5") 2>&5
 
3950
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
3951
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
3952
  ac_status=$?
 
3953
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3954
  (exit $ac_status); }
 
3955
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
3956
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
3957
  ac_status=$?
 
3958
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3959
  (exit $ac_status); }
 
3960
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
3961
  (eval $ac_compiler -V </dev/null >&5) 2>&5
4761
3962
  ac_status=$?
4762
3963
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763
3964
  (exit $ac_status); }
4764
3965
 
4765
 
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4766
 
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
 
3966
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
3967
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4767
3968
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4768
3969
  echo $ECHO_N "(cached) $ECHO_C" >&6
4769
3970
else
4786
3987
}
4787
3988
_ACEOF
4788
3989
rm -f conftest.$ac_objext
4789
 
if { (ac_try="$ac_compile"
4790
 
case "(($ac_try" in
4791
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4792
 
  *) ac_try_echo=$ac_try;;
4793
 
esac
4794
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4795
 
  (eval "$ac_compile") 2>conftest.er1
 
3990
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3991
  (eval $ac_compile) 2>conftest.er1
4796
3992
  ac_status=$?
4797
3993
  grep -v '^ *+' conftest.er1 >conftest.err
4798
3994
  rm -f conftest.er1
4799
3995
  cat conftest.err >&5
4800
3996
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801
3997
  (exit $ac_status); } &&
4802
 
         { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4803
 
  { (case "(($ac_try" in
4804
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4805
 
  *) ac_try_echo=$ac_try;;
4806
 
esac
4807
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4808
 
  (eval "$ac_try") 2>&5
 
3998
         { ac_try='test -z "$ac_cxx_werror_flag"
 
3999
                         || test ! -s conftest.err'
 
4000
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4001
  (eval $ac_try) 2>&5
4809
4002
  ac_status=$?
4810
4003
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811
4004
  (exit $ac_status); }; } &&
4812
4005
         { ac_try='test -s conftest.$ac_objext'
4813
 
  { (case "(($ac_try" in
4814
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4815
 
  *) ac_try_echo=$ac_try;;
4816
 
esac
4817
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4818
 
  (eval "$ac_try") 2>&5
 
4006
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4007
  (eval $ac_try) 2>&5
4819
4008
  ac_status=$?
4820
4009
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821
4010
  (exit $ac_status); }; }; then
4824
4013
  echo "$as_me: failed program was:" >&5
4825
4014
sed 's/^/| /' conftest.$ac_ext >&5
4826
4015
 
4827
 
        ac_compiler_gnu=no
 
4016
ac_compiler_gnu=no
4828
4017
fi
4829
 
 
4830
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4018
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4831
4019
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4832
4020
 
4833
4021
fi
4834
 
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4835
 
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
 
4022
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
4023
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4836
4024
GXX=`test $ac_compiler_gnu = yes && echo yes`
4837
4025
ac_test_CXXFLAGS=${CXXFLAGS+set}
4838
4026
ac_save_CXXFLAGS=$CXXFLAGS
4839
 
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4840
 
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
 
4027
CXXFLAGS="-g"
 
4028
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
4029
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4841
4030
if test "${ac_cv_prog_cxx_g+set}" = set; then
4842
4031
  echo $ECHO_N "(cached) $ECHO_C" >&6
4843
4032
else
4844
 
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4845
 
   ac_cxx_werror_flag=yes
4846
 
   ac_cv_prog_cxx_g=no
4847
 
   CXXFLAGS="-g"
4848
 
   cat >conftest.$ac_ext <<_ACEOF
4849
 
/* confdefs.h.  */
4850
 
_ACEOF
4851
 
cat confdefs.h >>conftest.$ac_ext
4852
 
cat >>conftest.$ac_ext <<_ACEOF
4853
 
/* end confdefs.h.  */
4854
 
 
4855
 
int
4856
 
main ()
4857
 
{
4858
 
 
4859
 
  ;
4860
 
  return 0;
4861
 
}
4862
 
_ACEOF
4863
 
rm -f conftest.$ac_objext
4864
 
if { (ac_try="$ac_compile"
4865
 
case "(($ac_try" in
4866
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4867
 
  *) ac_try_echo=$ac_try;;
4868
 
esac
4869
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4870
 
  (eval "$ac_compile") 2>conftest.er1
4871
 
  ac_status=$?
4872
 
  grep -v '^ *+' conftest.er1 >conftest.err
4873
 
  rm -f conftest.er1
4874
 
  cat conftest.err >&5
4875
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876
 
  (exit $ac_status); } &&
4877
 
         { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4878
 
  { (case "(($ac_try" in
4879
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4880
 
  *) ac_try_echo=$ac_try;;
4881
 
esac
4882
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4883
 
  (eval "$ac_try") 2>&5
4884
 
  ac_status=$?
4885
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886
 
  (exit $ac_status); }; } &&
4887
 
         { ac_try='test -s conftest.$ac_objext'
4888
 
  { (case "(($ac_try" in
4889
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4890
 
  *) ac_try_echo=$ac_try;;
4891
 
esac
4892
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4893
 
  (eval "$ac_try") 2>&5
4894
 
  ac_status=$?
4895
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896
 
  (exit $ac_status); }; }; then
4897
 
  ac_cv_prog_cxx_g=yes
4898
 
else
4899
 
  echo "$as_me: failed program was:" >&5
4900
 
sed 's/^/| /' conftest.$ac_ext >&5
4901
 
 
4902
 
        CXXFLAGS=""
4903
 
      cat >conftest.$ac_ext <<_ACEOF
4904
 
/* confdefs.h.  */
4905
 
_ACEOF
4906
 
cat confdefs.h >>conftest.$ac_ext
4907
 
cat >>conftest.$ac_ext <<_ACEOF
4908
 
/* end confdefs.h.  */
4909
 
 
4910
 
int
4911
 
main ()
4912
 
{
4913
 
 
4914
 
  ;
4915
 
  return 0;
4916
 
}
4917
 
_ACEOF
4918
 
rm -f conftest.$ac_objext
4919
 
if { (ac_try="$ac_compile"
4920
 
case "(($ac_try" in
4921
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4922
 
  *) ac_try_echo=$ac_try;;
4923
 
esac
4924
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4925
 
  (eval "$ac_compile") 2>conftest.er1
4926
 
  ac_status=$?
4927
 
  grep -v '^ *+' conftest.er1 >conftest.err
4928
 
  rm -f conftest.er1
4929
 
  cat conftest.err >&5
4930
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931
 
  (exit $ac_status); } &&
4932
 
         { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4933
 
  { (case "(($ac_try" in
4934
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4935
 
  *) ac_try_echo=$ac_try;;
4936
 
esac
4937
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4938
 
  (eval "$ac_try") 2>&5
4939
 
  ac_status=$?
4940
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941
 
  (exit $ac_status); }; } &&
4942
 
         { ac_try='test -s conftest.$ac_objext'
4943
 
  { (case "(($ac_try" in
4944
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4945
 
  *) ac_try_echo=$ac_try;;
4946
 
esac
4947
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4948
 
  (eval "$ac_try") 2>&5
4949
 
  ac_status=$?
4950
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951
 
  (exit $ac_status); }; }; then
4952
 
  :
4953
 
else
4954
 
  echo "$as_me: failed program was:" >&5
4955
 
sed 's/^/| /' conftest.$ac_ext >&5
4956
 
 
4957
 
        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4958
 
         CXXFLAGS="-g"
4959
 
         cat >conftest.$ac_ext <<_ACEOF
4960
 
/* confdefs.h.  */
4961
 
_ACEOF
4962
 
cat confdefs.h >>conftest.$ac_ext
4963
 
cat >>conftest.$ac_ext <<_ACEOF
4964
 
/* end confdefs.h.  */
4965
 
 
4966
 
int
4967
 
main ()
4968
 
{
4969
 
 
4970
 
  ;
4971
 
  return 0;
4972
 
}
4973
 
_ACEOF
4974
 
rm -f conftest.$ac_objext
4975
 
if { (ac_try="$ac_compile"
4976
 
case "(($ac_try" in
4977
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4978
 
  *) ac_try_echo=$ac_try;;
4979
 
esac
4980
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4981
 
  (eval "$ac_compile") 2>conftest.er1
4982
 
  ac_status=$?
4983
 
  grep -v '^ *+' conftest.er1 >conftest.err
4984
 
  rm -f conftest.er1
4985
 
  cat conftest.err >&5
4986
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987
 
  (exit $ac_status); } &&
4988
 
         { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4989
 
  { (case "(($ac_try" in
4990
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4991
 
  *) ac_try_echo=$ac_try;;
4992
 
esac
4993
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4994
 
  (eval "$ac_try") 2>&5
4995
 
  ac_status=$?
4996
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997
 
  (exit $ac_status); }; } &&
4998
 
         { ac_try='test -s conftest.$ac_objext'
4999
 
  { (case "(($ac_try" in
5000
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5001
 
  *) ac_try_echo=$ac_try;;
5002
 
esac
5003
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5004
 
  (eval "$ac_try") 2>&5
5005
 
  ac_status=$?
5006
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007
 
  (exit $ac_status); }; }; then
5008
 
  ac_cv_prog_cxx_g=yes
5009
 
else
5010
 
  echo "$as_me: failed program was:" >&5
5011
 
sed 's/^/| /' conftest.$ac_ext >&5
5012
 
 
5013
 
 
5014
 
fi
5015
 
 
5016
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5017
 
fi
5018
 
 
5019
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5020
 
fi
5021
 
 
5022
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5023
 
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5024
 
fi
5025
 
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5026
 
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
 
4033
  cat >conftest.$ac_ext <<_ACEOF
 
4034
/* confdefs.h.  */
 
4035
_ACEOF
 
4036
cat confdefs.h >>conftest.$ac_ext
 
4037
cat >>conftest.$ac_ext <<_ACEOF
 
4038
/* end confdefs.h.  */
 
4039
 
 
4040
int
 
4041
main ()
 
4042
{
 
4043
 
 
4044
  ;
 
4045
  return 0;
 
4046
}
 
4047
_ACEOF
 
4048
rm -f conftest.$ac_objext
 
4049
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4050
  (eval $ac_compile) 2>conftest.er1
 
4051
  ac_status=$?
 
4052
  grep -v '^ *+' conftest.er1 >conftest.err
 
4053
  rm -f conftest.er1
 
4054
  cat conftest.err >&5
 
4055
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4056
  (exit $ac_status); } &&
 
4057
         { ac_try='test -z "$ac_cxx_werror_flag"
 
4058
                         || test ! -s conftest.err'
 
4059
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4060
  (eval $ac_try) 2>&5
 
4061
  ac_status=$?
 
4062
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4063
  (exit $ac_status); }; } &&
 
4064
         { ac_try='test -s conftest.$ac_objext'
 
4065
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4066
  (eval $ac_try) 2>&5
 
4067
  ac_status=$?
 
4068
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4069
  (exit $ac_status); }; }; then
 
4070
  ac_cv_prog_cxx_g=yes
 
4071
else
 
4072
  echo "$as_me: failed program was:" >&5
 
4073
sed 's/^/| /' conftest.$ac_ext >&5
 
4074
 
 
4075
ac_cv_prog_cxx_g=no
 
4076
fi
 
4077
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4078
fi
 
4079
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
4080
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5027
4081
if test "$ac_test_CXXFLAGS" = set; then
5028
4082
  CXXFLAGS=$ac_save_CXXFLAGS
5029
4083
elif test $ac_cv_prog_cxx_g = yes; then
5039
4093
    CXXFLAGS=
5040
4094
  fi
5041
4095
fi
5042
 
ac_ext=cpp
 
4096
for ac_declaration in \
 
4097
   '' \
 
4098
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
4099
   'extern "C" void std::exit (int); using std::exit;' \
 
4100
   'extern "C" void exit (int) throw ();' \
 
4101
   'extern "C" void exit (int);' \
 
4102
   'void exit (int);'
 
4103
do
 
4104
  cat >conftest.$ac_ext <<_ACEOF
 
4105
/* confdefs.h.  */
 
4106
_ACEOF
 
4107
cat confdefs.h >>conftest.$ac_ext
 
4108
cat >>conftest.$ac_ext <<_ACEOF
 
4109
/* end confdefs.h.  */
 
4110
$ac_declaration
 
4111
#include <stdlib.h>
 
4112
int
 
4113
main ()
 
4114
{
 
4115
exit (42);
 
4116
  ;
 
4117
  return 0;
 
4118
}
 
4119
_ACEOF
 
4120
rm -f conftest.$ac_objext
 
4121
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4122
  (eval $ac_compile) 2>conftest.er1
 
4123
  ac_status=$?
 
4124
  grep -v '^ *+' conftest.er1 >conftest.err
 
4125
  rm -f conftest.er1
 
4126
  cat conftest.err >&5
 
4127
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4128
  (exit $ac_status); } &&
 
4129
         { ac_try='test -z "$ac_cxx_werror_flag"
 
4130
                         || test ! -s conftest.err'
 
4131
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4132
  (eval $ac_try) 2>&5
 
4133
  ac_status=$?
 
4134
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4135
  (exit $ac_status); }; } &&
 
4136
         { ac_try='test -s conftest.$ac_objext'
 
4137
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4138
  (eval $ac_try) 2>&5
 
4139
  ac_status=$?
 
4140
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4141
  (exit $ac_status); }; }; then
 
4142
  :
 
4143
else
 
4144
  echo "$as_me: failed program was:" >&5
 
4145
sed 's/^/| /' conftest.$ac_ext >&5
 
4146
 
 
4147
continue
 
4148
fi
 
4149
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4150
  cat >conftest.$ac_ext <<_ACEOF
 
4151
/* confdefs.h.  */
 
4152
_ACEOF
 
4153
cat confdefs.h >>conftest.$ac_ext
 
4154
cat >>conftest.$ac_ext <<_ACEOF
 
4155
/* end confdefs.h.  */
 
4156
$ac_declaration
 
4157
int
 
4158
main ()
 
4159
{
 
4160
exit (42);
 
4161
  ;
 
4162
  return 0;
 
4163
}
 
4164
_ACEOF
 
4165
rm -f conftest.$ac_objext
 
4166
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4167
  (eval $ac_compile) 2>conftest.er1
 
4168
  ac_status=$?
 
4169
  grep -v '^ *+' conftest.er1 >conftest.err
 
4170
  rm -f conftest.er1
 
4171
  cat conftest.err >&5
 
4172
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4173
  (exit $ac_status); } &&
 
4174
         { ac_try='test -z "$ac_cxx_werror_flag"
 
4175
                         || test ! -s conftest.err'
 
4176
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4177
  (eval $ac_try) 2>&5
 
4178
  ac_status=$?
 
4179
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4180
  (exit $ac_status); }; } &&
 
4181
         { ac_try='test -s conftest.$ac_objext'
 
4182
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4183
  (eval $ac_try) 2>&5
 
4184
  ac_status=$?
 
4185
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4186
  (exit $ac_status); }; }; then
 
4187
  break
 
4188
else
 
4189
  echo "$as_me: failed program was:" >&5
 
4190
sed 's/^/| /' conftest.$ac_ext >&5
 
4191
 
 
4192
fi
 
4193
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4194
done
 
4195
rm -f conftest*
 
4196
if test -n "$ac_declaration"; then
 
4197
  echo '#ifdef __cplusplus' >>confdefs.h
 
4198
  echo $ac_declaration      >>confdefs.h
 
4199
  echo '#endif'             >>confdefs.h
 
4200
fi
 
4201
 
 
4202
ac_ext=cc
5043
4203
ac_cpp='$CXXCPP $CPPFLAGS'
5044
4204
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5045
4205
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5050
4210
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5051
4211
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5052
4212
    (test "X$CXX" != "Xg++"))) ; then
5053
 
  ac_ext=cpp
 
4213
  ac_ext=cc
5054
4214
ac_cpp='$CXXCPP $CPPFLAGS'
5055
4215
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5056
4216
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5057
4217
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5058
 
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5059
 
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
 
4218
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
4219
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5060
4220
if test -z "$CXXCPP"; then
5061
4221
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5062
4222
  echo $ECHO_N "(cached) $ECHO_C" >&6
5086
4246
#endif
5087
4247
                     Syntax error
5088
4248
_ACEOF
5089
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5090
 
case "(($ac_try" in
5091
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5092
 
  *) ac_try_echo=$ac_try;;
5093
 
esac
5094
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5095
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4249
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4250
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5096
4251
  ac_status=$?
5097
4252
  grep -v '^ *+' conftest.er1 >conftest.err
5098
4253
  rm -f conftest.er1
5117
4272
  # Broken: fails on valid input.
5118
4273
continue
5119
4274
fi
5120
 
 
5121
4275
rm -f conftest.err conftest.$ac_ext
5122
4276
 
5123
 
  # OK, works on sane cases.  Now check whether nonexistent headers
 
4277
  # OK, works on sane cases.  Now check whether non-existent headers
5124
4278
  # can be detected and how.
5125
4279
  cat >conftest.$ac_ext <<_ACEOF
5126
4280
/* confdefs.h.  */
5130
4284
/* end confdefs.h.  */
5131
4285
#include <ac_nonexistent.h>
5132
4286
_ACEOF
5133
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5134
 
case "(($ac_try" in
5135
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5136
 
  *) ac_try_echo=$ac_try;;
5137
 
esac
5138
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5139
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4287
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4288
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5140
4289
  ac_status=$?
5141
4290
  grep -v '^ *+' conftest.er1 >conftest.err
5142
4291
  rm -f conftest.er1
5163
4312
ac_preproc_ok=:
5164
4313
break
5165
4314
fi
5166
 
 
5167
4315
rm -f conftest.err conftest.$ac_ext
5168
4316
 
5169
4317
done
5181
4329
else
5182
4330
  ac_cv_prog_CXXCPP=$CXXCPP
5183
4331
fi
5184
 
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5185
 
echo "${ECHO_T}$CXXCPP" >&6; }
 
4332
echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
4333
echo "${ECHO_T}$CXXCPP" >&6
5186
4334
ac_preproc_ok=false
5187
4335
for ac_cxx_preproc_warn_flag in '' yes
5188
4336
do
5205
4353
#endif
5206
4354
                     Syntax error
5207
4355
_ACEOF
5208
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5209
 
case "(($ac_try" in
5210
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5211
 
  *) ac_try_echo=$ac_try;;
5212
 
esac
5213
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5214
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4356
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4357
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5215
4358
  ac_status=$?
5216
4359
  grep -v '^ *+' conftest.er1 >conftest.err
5217
4360
  rm -f conftest.er1
5236
4379
  # Broken: fails on valid input.
5237
4380
continue
5238
4381
fi
5239
 
 
5240
4382
rm -f conftest.err conftest.$ac_ext
5241
4383
 
5242
 
  # OK, works on sane cases.  Now check whether nonexistent headers
 
4384
  # OK, works on sane cases.  Now check whether non-existent headers
5243
4385
  # can be detected and how.
5244
4386
  cat >conftest.$ac_ext <<_ACEOF
5245
4387
/* confdefs.h.  */
5249
4391
/* end confdefs.h.  */
5250
4392
#include <ac_nonexistent.h>
5251
4393
_ACEOF
5252
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
5253
 
case "(($ac_try" in
5254
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5255
 
  *) ac_try_echo=$ac_try;;
5256
 
esac
5257
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5258
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4394
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4395
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5259
4396
  ac_status=$?
5260
4397
  grep -v '^ *+' conftest.er1 >conftest.err
5261
4398
  rm -f conftest.er1
5282
4419
ac_preproc_ok=:
5283
4420
break
5284
4421
fi
5285
 
 
5286
4422
rm -f conftest.err conftest.$ac_ext
5287
4423
 
5288
4424
done
5298
4434
   { (exit 1); exit 1; }; }
5299
4435
fi
5300
4436
 
5301
 
ac_ext=cpp
 
4437
ac_ext=cc
5302
4438
ac_cpp='$CXXCPP $CPPFLAGS'
5303
4439
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5304
4440
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5312
4448
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5313
4449
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5314
4450
if test -n "$ac_tool_prefix"; then
5315
 
  for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
 
4451
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5316
4452
  do
5317
4453
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5318
4454
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5319
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5320
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
4455
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4456
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5321
4457
if test "${ac_cv_prog_F77+set}" = set; then
5322
4458
  echo $ECHO_N "(cached) $ECHO_C" >&6
5323
4459
else
5330
4466
  IFS=$as_save_IFS
5331
4467
  test -z "$as_dir" && as_dir=.
5332
4468
  for ac_exec_ext in '' $ac_executable_extensions; do
5333
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4469
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5334
4470
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5335
4471
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5336
4472
    break 2
5337
4473
  fi
5338
4474
done
5339
4475
done
5340
 
IFS=$as_save_IFS
5341
4476
 
5342
4477
fi
5343
4478
fi
5344
4479
F77=$ac_cv_prog_F77
5345
4480
if test -n "$F77"; then
5346
 
  { echo "$as_me:$LINENO: result: $F77" >&5
5347
 
echo "${ECHO_T}$F77" >&6; }
 
4481
  echo "$as_me:$LINENO: result: $F77" >&5
 
4482
echo "${ECHO_T}$F77" >&6
5348
4483
else
5349
 
  { echo "$as_me:$LINENO: result: no" >&5
5350
 
echo "${ECHO_T}no" >&6; }
 
4484
  echo "$as_me:$LINENO: result: no" >&5
 
4485
echo "${ECHO_T}no" >&6
5351
4486
fi
5352
4487
 
5353
 
 
5354
4488
    test -n "$F77" && break
5355
4489
  done
5356
4490
fi
5357
4491
if test -z "$F77"; then
5358
4492
  ac_ct_F77=$F77
5359
 
  for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
 
4493
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5360
4494
do
5361
4495
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5362
4496
set dummy $ac_prog; ac_word=$2
5363
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5364
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
4497
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4498
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5365
4499
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5366
4500
  echo $ECHO_N "(cached) $ECHO_C" >&6
5367
4501
else
5374
4508
  IFS=$as_save_IFS
5375
4509
  test -z "$as_dir" && as_dir=.
5376
4510
  for ac_exec_ext in '' $ac_executable_extensions; do
5377
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
4511
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5378
4512
    ac_cv_prog_ac_ct_F77="$ac_prog"
5379
4513
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5380
4514
    break 2
5381
4515
  fi
5382
4516
done
5383
4517
done
5384
 
IFS=$as_save_IFS
5385
4518
 
5386
4519
fi
5387
4520
fi
5388
4521
ac_ct_F77=$ac_cv_prog_ac_ct_F77
5389
4522
if test -n "$ac_ct_F77"; then
5390
 
  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5391
 
echo "${ECHO_T}$ac_ct_F77" >&6; }
 
4523
  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
4524
echo "${ECHO_T}$ac_ct_F77" >&6
5392
4525
else
5393
 
  { echo "$as_me:$LINENO: result: no" >&5
5394
 
echo "${ECHO_T}no" >&6; }
 
4526
  echo "$as_me:$LINENO: result: no" >&5
 
4527
echo "${ECHO_T}no" >&6
5395
4528
fi
5396
4529
 
5397
 
 
5398
4530
  test -n "$ac_ct_F77" && break
5399
4531
done
5400
4532
 
5401
 
  if test "x$ac_ct_F77" = x; then
5402
 
    F77=""
5403
 
  else
5404
 
    case $cross_compiling:$ac_tool_warned in
5405
 
yes:)
5406
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5407
 
whose name does not start with the host triplet.  If you think this
5408
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
5409
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5410
 
whose name does not start with the host triplet.  If you think this
5411
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5412
 
ac_tool_warned=yes ;;
5413
 
esac
5414
 
    F77=$ac_ct_F77
5415
 
  fi
 
4533
  F77=$ac_ct_F77
5416
4534
fi
5417
4535
 
5418
4536
 
5419
4537
# Provide some information about the compiler.
5420
 
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
 
4538
echo "$as_me:4538:" \
 
4539
     "checking for Fortran 77 compiler version" >&5
5421
4540
ac_compiler=`set X $ac_compile; echo $2`
5422
 
{ (ac_try="$ac_compiler --version >&5"
5423
 
case "(($ac_try" in
5424
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5425
 
  *) ac_try_echo=$ac_try;;
5426
 
esac
5427
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5428
 
  (eval "$ac_compiler --version >&5") 2>&5
5429
 
  ac_status=$?
5430
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5431
 
  (exit $ac_status); }
5432
 
{ (ac_try="$ac_compiler -v >&5"
5433
 
case "(($ac_try" in
5434
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5435
 
  *) ac_try_echo=$ac_try;;
5436
 
esac
5437
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5438
 
  (eval "$ac_compiler -v >&5") 2>&5
5439
 
  ac_status=$?
5440
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441
 
  (exit $ac_status); }
5442
 
{ (ac_try="$ac_compiler -V >&5"
5443
 
case "(($ac_try" in
5444
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5445
 
  *) ac_try_echo=$ac_try;;
5446
 
esac
5447
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5448
 
  (eval "$ac_compiler -V >&5") 2>&5
 
4541
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
4542
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
4543
  ac_status=$?
 
4544
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4545
  (exit $ac_status); }
 
4546
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
4547
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
4548
  ac_status=$?
 
4549
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4550
  (exit $ac_status); }
 
4551
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
4552
  (eval $ac_compiler -V </dev/null >&5) 2>&5
5449
4553
  ac_status=$?
5450
4554
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451
4555
  (exit $ac_status); }
5455
4559
# input file.  (Note that this only needs to work for GNU compilers.)
5456
4560
ac_save_ext=$ac_ext
5457
4561
ac_ext=F
5458
 
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5459
 
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
 
4562
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
4563
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5460
4564
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5461
4565
  echo $ECHO_N "(cached) $ECHO_C" >&6
5462
4566
else
5469
4573
      end
5470
4574
_ACEOF
5471
4575
rm -f conftest.$ac_objext
5472
 
if { (ac_try="$ac_compile"
5473
 
case "(($ac_try" in
5474
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5475
 
  *) ac_try_echo=$ac_try;;
5476
 
esac
5477
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5478
 
  (eval "$ac_compile") 2>conftest.er1
 
4576
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4577
  (eval $ac_compile) 2>conftest.er1
5479
4578
  ac_status=$?
5480
4579
  grep -v '^ *+' conftest.er1 >conftest.err
5481
4580
  rm -f conftest.er1
5482
4581
  cat conftest.err >&5
5483
4582
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484
4583
  (exit $ac_status); } &&
5485
 
         { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5486
 
  { (case "(($ac_try" in
5487
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5488
 
  *) ac_try_echo=$ac_try;;
5489
 
esac
5490
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5491
 
  (eval "$ac_try") 2>&5
 
4584
         { ac_try='test -z "$ac_f77_werror_flag"
 
4585
                         || test ! -s conftest.err'
 
4586
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4587
  (eval $ac_try) 2>&5
5492
4588
  ac_status=$?
5493
4589
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494
4590
  (exit $ac_status); }; } &&
5495
4591
         { ac_try='test -s conftest.$ac_objext'
5496
 
  { (case "(($ac_try" in
5497
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5498
 
  *) ac_try_echo=$ac_try;;
5499
 
esac
5500
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5501
 
  (eval "$ac_try") 2>&5
 
4592
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4593
  (eval $ac_try) 2>&5
5502
4594
  ac_status=$?
5503
4595
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504
4596
  (exit $ac_status); }; }; then
5507
4599
  echo "$as_me: failed program was:" >&5
5508
4600
sed 's/^/| /' conftest.$ac_ext >&5
5509
4601
 
5510
 
        ac_compiler_gnu=no
 
4602
ac_compiler_gnu=no
5511
4603
fi
5512
 
 
5513
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4604
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5514
4605
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5515
4606
 
5516
4607
fi
5517
 
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5518
 
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
 
4608
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
4609
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5519
4610
ac_ext=$ac_save_ext
5520
4611
ac_test_FFLAGS=${FFLAGS+set}
5521
4612
ac_save_FFLAGS=$FFLAGS
5522
4613
FFLAGS=
5523
 
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5524
 
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
 
4614
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
4615
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5525
4616
if test "${ac_cv_prog_f77_g+set}" = set; then
5526
4617
  echo $ECHO_N "(cached) $ECHO_C" >&6
5527
4618
else
5532
4623
      end
5533
4624
_ACEOF
5534
4625
rm -f conftest.$ac_objext
5535
 
if { (ac_try="$ac_compile"
5536
 
case "(($ac_try" in
5537
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5538
 
  *) ac_try_echo=$ac_try;;
5539
 
esac
5540
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5541
 
  (eval "$ac_compile") 2>conftest.er1
 
4626
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4627
  (eval $ac_compile) 2>conftest.er1
5542
4628
  ac_status=$?
5543
4629
  grep -v '^ *+' conftest.er1 >conftest.err
5544
4630
  rm -f conftest.er1
5545
4631
  cat conftest.err >&5
5546
4632
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547
4633
  (exit $ac_status); } &&
5548
 
         { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5549
 
  { (case "(($ac_try" in
5550
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5551
 
  *) ac_try_echo=$ac_try;;
5552
 
esac
5553
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5554
 
  (eval "$ac_try") 2>&5
 
4634
         { ac_try='test -z "$ac_f77_werror_flag"
 
4635
                         || test ! -s conftest.err'
 
4636
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4637
  (eval $ac_try) 2>&5
5555
4638
  ac_status=$?
5556
4639
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557
4640
  (exit $ac_status); }; } &&
5558
4641
         { ac_try='test -s conftest.$ac_objext'
5559
 
  { (case "(($ac_try" in
5560
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5561
 
  *) ac_try_echo=$ac_try;;
5562
 
esac
5563
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5564
 
  (eval "$ac_try") 2>&5
 
4642
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4643
  (eval $ac_try) 2>&5
5565
4644
  ac_status=$?
5566
4645
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567
4646
  (exit $ac_status); }; }; then
5570
4649
  echo "$as_me: failed program was:" >&5
5571
4650
sed 's/^/| /' conftest.$ac_ext >&5
5572
4651
 
5573
 
        ac_cv_prog_f77_g=no
5574
 
fi
5575
 
 
5576
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5577
 
 
5578
 
fi
5579
 
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5580
 
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
 
4652
ac_cv_prog_f77_g=no
 
4653
fi
 
4654
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4655
 
 
4656
fi
 
4657
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
4658
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5581
4659
if test "$ac_test_FFLAGS" = set; then
5582
4660
  FFLAGS=$ac_save_FFLAGS
5583
4661
elif test $ac_cv_prog_f77_g = yes; then
5606
4684
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5607
4685
 
5608
4686
# find the maximum length of command line arguments
5609
 
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5610
 
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
 
4687
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
4688
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5611
4689
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5612
4690
  echo $ECHO_N "(cached) $ECHO_C" >&6
5613
4691
else
5660
4738
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5661
4739
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5662
4740
    ;;
5663
 
 
5664
 
  interix*)
5665
 
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5666
 
    lt_cv_sys_max_cmd_len=196608
5667
 
    ;;
5668
 
 
5669
4741
  osf*)
5670
4742
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5671
4743
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5679
4751
      esac
5680
4752
    fi
5681
4753
    ;;
5682
 
  sco3.2v5*)
5683
 
    lt_cv_sys_max_cmd_len=102400
5684
 
    ;;
5685
 
  sysv5* | sco5v6* | sysv4.2uw2*)
5686
 
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5687
 
    if test -n "$kargmax"; then
5688
 
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
5689
 
    else
5690
 
      lt_cv_sys_max_cmd_len=32768
5691
 
    fi
5692
 
    ;;
5693
4754
  *)
5694
4755
    # If test is not a shell built-in, we'll probably end up computing a
5695
4756
    # maximum length that is only half of the actual maximum length, but
5715
4776
fi
5716
4777
 
5717
4778
if test -n $lt_cv_sys_max_cmd_len ; then
5718
 
  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5719
 
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
 
4779
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
4780
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5720
4781
else
5721
 
  { echo "$as_me:$LINENO: result: none" >&5
5722
 
echo "${ECHO_T}none" >&6; }
 
4782
  echo "$as_me:$LINENO: result: none" >&5
 
4783
echo "${ECHO_T}none" >&6
5723
4784
fi
5724
4785
 
5725
4786
 
5726
4787
 
5727
4788
 
5728
4789
# Check for command to grab the raw symbol name followed by C symbol from nm.
5729
 
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5730
 
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
 
4790
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
4791
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5731
4792
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5732
4793
  echo $ECHO_N "(cached) $ECHO_C" >&6
5733
4794
else
5762
4823
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5763
4824
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5764
4825
  ;;
5765
 
linux* | k*bsd*-gnu)
 
4826
linux*)
5766
4827
  if test "$host_cpu" = ia64; then
5767
4828
    symcode='[ABCDGIRSTW]'
5768
4829
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5775
4836
osf*)
5776
4837
  symcode='[BCDEGQRST]'
5777
4838
  ;;
5778
 
solaris*)
 
4839
solaris* | sysv5*)
5779
4840
  symcode='[BDRT]'
5780
4841
  ;;
5781
 
sco3.2v5*)
5782
 
  symcode='[DT]'
5783
 
  ;;
5784
 
sysv4.2uw2*)
5785
 
  symcode='[DT]'
5786
 
  ;;
5787
 
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5788
 
  symcode='[ABDT]'
5789
 
  ;;
5790
4842
sysv4)
5791
4843
  symcode='[DFNSTU]'
5792
4844
  ;;
5931
4983
  lt_cv_sys_global_symbol_to_cdecl=
5932
4984
fi
5933
4985
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5934
 
  { echo "$as_me:$LINENO: result: failed" >&5
5935
 
echo "${ECHO_T}failed" >&6; }
 
4986
  echo "$as_me:$LINENO: result: failed" >&5
 
4987
echo "${ECHO_T}failed" >&6
5936
4988
else
5937
 
  { echo "$as_me:$LINENO: result: ok" >&5
5938
 
echo "${ECHO_T}ok" >&6; }
 
4989
  echo "$as_me:$LINENO: result: ok" >&5
 
4990
echo "${ECHO_T}ok" >&6
5939
4991
fi
5940
4992
 
5941
 
{ echo "$as_me:$LINENO: checking for objdir" >&5
5942
 
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
 
4993
echo "$as_me:$LINENO: checking for objdir" >&5
 
4994
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5943
4995
if test "${lt_cv_objdir+set}" = set; then
5944
4996
  echo $ECHO_N "(cached) $ECHO_C" >&6
5945
4997
else
5953
5005
fi
5954
5006
rmdir .libs 2>/dev/null
5955
5007
fi
5956
 
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5957
 
echo "${ECHO_T}$lt_cv_objdir" >&6; }
 
5008
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
5009
echo "${ECHO_T}$lt_cv_objdir" >&6
5958
5010
objdir=$lt_cv_objdir
5959
5011
 
5960
5012
 
6005
5057
if test -n "$ac_tool_prefix"; then
6006
5058
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6007
5059
set dummy ${ac_tool_prefix}ar; ac_word=$2
6008
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6009
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5060
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5061
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6010
5062
if test "${ac_cv_prog_AR+set}" = set; then
6011
5063
  echo $ECHO_N "(cached) $ECHO_C" >&6
6012
5064
else
6019
5071
  IFS=$as_save_IFS
6020
5072
  test -z "$as_dir" && as_dir=.
6021
5073
  for ac_exec_ext in '' $ac_executable_extensions; do
6022
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5074
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6023
5075
    ac_cv_prog_AR="${ac_tool_prefix}ar"
6024
5076
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6025
5077
    break 2
6026
5078
  fi
6027
5079
done
6028
5080
done
6029
 
IFS=$as_save_IFS
6030
5081
 
6031
5082
fi
6032
5083
fi
6033
5084
AR=$ac_cv_prog_AR
6034
5085
if test -n "$AR"; then
6035
 
  { echo "$as_me:$LINENO: result: $AR" >&5
6036
 
echo "${ECHO_T}$AR" >&6; }
 
5086
  echo "$as_me:$LINENO: result: $AR" >&5
 
5087
echo "${ECHO_T}$AR" >&6
6037
5088
else
6038
 
  { echo "$as_me:$LINENO: result: no" >&5
6039
 
echo "${ECHO_T}no" >&6; }
 
5089
  echo "$as_me:$LINENO: result: no" >&5
 
5090
echo "${ECHO_T}no" >&6
6040
5091
fi
6041
 
 
6042
5092
 
6043
5093
fi
6044
5094
if test -z "$ac_cv_prog_AR"; then
6045
5095
  ac_ct_AR=$AR
6046
5096
  # Extract the first word of "ar", so it can be a program name with args.
6047
5097
set dummy ar; ac_word=$2
6048
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6049
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5098
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5099
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6050
5100
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6051
5101
  echo $ECHO_N "(cached) $ECHO_C" >&6
6052
5102
else
6059
5109
  IFS=$as_save_IFS
6060
5110
  test -z "$as_dir" && as_dir=.
6061
5111
  for ac_exec_ext in '' $ac_executable_extensions; do
6062
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5112
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6063
5113
    ac_cv_prog_ac_ct_AR="ar"
6064
5114
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6065
5115
    break 2
6066
5116
  fi
6067
5117
done
6068
5118
done
6069
 
IFS=$as_save_IFS
6070
5119
 
 
5120
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6071
5121
fi
6072
5122
fi
6073
5123
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6074
5124
if test -n "$ac_ct_AR"; then
6075
 
  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6076
 
echo "${ECHO_T}$ac_ct_AR" >&6; }
 
5125
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
5126
echo "${ECHO_T}$ac_ct_AR" >&6
6077
5127
else
6078
 
  { echo "$as_me:$LINENO: result: no" >&5
6079
 
echo "${ECHO_T}no" >&6; }
 
5128
  echo "$as_me:$LINENO: result: no" >&5
 
5129
echo "${ECHO_T}no" >&6
6080
5130
fi
6081
5131
 
6082
 
  if test "x$ac_ct_AR" = x; then
6083
 
    AR="false"
6084
 
  else
6085
 
    case $cross_compiling:$ac_tool_warned in
6086
 
yes:)
6087
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6088
 
whose name does not start with the host triplet.  If you think this
6089
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
6090
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6091
 
whose name does not start with the host triplet.  If you think this
6092
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6093
 
ac_tool_warned=yes ;;
6094
 
esac
6095
 
    AR=$ac_ct_AR
6096
 
  fi
 
5132
  AR=$ac_ct_AR
6097
5133
else
6098
5134
  AR="$ac_cv_prog_AR"
6099
5135
fi
6101
5137
if test -n "$ac_tool_prefix"; then
6102
5138
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6103
5139
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6104
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6105
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5140
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5141
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6106
5142
if test "${ac_cv_prog_RANLIB+set}" = set; then
6107
5143
  echo $ECHO_N "(cached) $ECHO_C" >&6
6108
5144
else
6115
5151
  IFS=$as_save_IFS
6116
5152
  test -z "$as_dir" && as_dir=.
6117
5153
  for ac_exec_ext in '' $ac_executable_extensions; do
6118
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5154
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6119
5155
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6120
5156
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6121
5157
    break 2
6122
5158
  fi
6123
5159
done
6124
5160
done
6125
 
IFS=$as_save_IFS
6126
5161
 
6127
5162
fi
6128
5163
fi
6129
5164
RANLIB=$ac_cv_prog_RANLIB
6130
5165
if test -n "$RANLIB"; then
6131
 
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
6132
 
echo "${ECHO_T}$RANLIB" >&6; }
 
5166
  echo "$as_me:$LINENO: result: $RANLIB" >&5
 
5167
echo "${ECHO_T}$RANLIB" >&6
6133
5168
else
6134
 
  { echo "$as_me:$LINENO: result: no" >&5
6135
 
echo "${ECHO_T}no" >&6; }
 
5169
  echo "$as_me:$LINENO: result: no" >&5
 
5170
echo "${ECHO_T}no" >&6
6136
5171
fi
6137
 
 
6138
5172
 
6139
5173
fi
6140
5174
if test -z "$ac_cv_prog_RANLIB"; then
6141
5175
  ac_ct_RANLIB=$RANLIB
6142
5176
  # Extract the first word of "ranlib", so it can be a program name with args.
6143
5177
set dummy ranlib; ac_word=$2
6144
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6145
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5178
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5179
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6146
5180
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6147
5181
  echo $ECHO_N "(cached) $ECHO_C" >&6
6148
5182
else
6155
5189
  IFS=$as_save_IFS
6156
5190
  test -z "$as_dir" && as_dir=.
6157
5191
  for ac_exec_ext in '' $ac_executable_extensions; do
6158
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5192
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6159
5193
    ac_cv_prog_ac_ct_RANLIB="ranlib"
6160
5194
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6161
5195
    break 2
6162
5196
  fi
6163
5197
done
6164
5198
done
6165
 
IFS=$as_save_IFS
6166
5199
 
 
5200
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6167
5201
fi
6168
5202
fi
6169
5203
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6170
5204
if test -n "$ac_ct_RANLIB"; then
6171
 
  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6172
 
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
 
5205
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
5206
echo "${ECHO_T}$ac_ct_RANLIB" >&6
6173
5207
else
6174
 
  { echo "$as_me:$LINENO: result: no" >&5
6175
 
echo "${ECHO_T}no" >&6; }
 
5208
  echo "$as_me:$LINENO: result: no" >&5
 
5209
echo "${ECHO_T}no" >&6
6176
5210
fi
6177
5211
 
6178
 
  if test "x$ac_ct_RANLIB" = x; then
6179
 
    RANLIB=":"
6180
 
  else
6181
 
    case $cross_compiling:$ac_tool_warned in
6182
 
yes:)
6183
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6184
 
whose name does not start with the host triplet.  If you think this
6185
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
6186
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6187
 
whose name does not start with the host triplet.  If you think this
6188
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6189
 
ac_tool_warned=yes ;;
6190
 
esac
6191
 
    RANLIB=$ac_ct_RANLIB
6192
 
  fi
 
5212
  RANLIB=$ac_ct_RANLIB
6193
5213
else
6194
5214
  RANLIB="$ac_cv_prog_RANLIB"
6195
5215
fi
6197
5217
if test -n "$ac_tool_prefix"; then
6198
5218
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6199
5219
set dummy ${ac_tool_prefix}strip; ac_word=$2
6200
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6201
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5220
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5221
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6202
5222
if test "${ac_cv_prog_STRIP+set}" = set; then
6203
5223
  echo $ECHO_N "(cached) $ECHO_C" >&6
6204
5224
else
6211
5231
  IFS=$as_save_IFS
6212
5232
  test -z "$as_dir" && as_dir=.
6213
5233
  for ac_exec_ext in '' $ac_executable_extensions; do
6214
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5234
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6215
5235
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6216
5236
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6217
5237
    break 2
6218
5238
  fi
6219
5239
done
6220
5240
done
6221
 
IFS=$as_save_IFS
6222
5241
 
6223
5242
fi
6224
5243
fi
6225
5244
STRIP=$ac_cv_prog_STRIP
6226
5245
if test -n "$STRIP"; then
6227
 
  { echo "$as_me:$LINENO: result: $STRIP" >&5
6228
 
echo "${ECHO_T}$STRIP" >&6; }
 
5246
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
5247
echo "${ECHO_T}$STRIP" >&6
6229
5248
else
6230
 
  { echo "$as_me:$LINENO: result: no" >&5
6231
 
echo "${ECHO_T}no" >&6; }
 
5249
  echo "$as_me:$LINENO: result: no" >&5
 
5250
echo "${ECHO_T}no" >&6
6232
5251
fi
6233
 
 
6234
5252
 
6235
5253
fi
6236
5254
if test -z "$ac_cv_prog_STRIP"; then
6237
5255
  ac_ct_STRIP=$STRIP
6238
5256
  # Extract the first word of "strip", so it can be a program name with args.
6239
5257
set dummy strip; ac_word=$2
6240
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6241
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5258
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5259
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6242
5260
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6243
5261
  echo $ECHO_N "(cached) $ECHO_C" >&6
6244
5262
else
6251
5269
  IFS=$as_save_IFS
6252
5270
  test -z "$as_dir" && as_dir=.
6253
5271
  for ac_exec_ext in '' $ac_executable_extensions; do
6254
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5272
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6255
5273
    ac_cv_prog_ac_ct_STRIP="strip"
6256
5274
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6257
5275
    break 2
6258
5276
  fi
6259
5277
done
6260
5278
done
6261
 
IFS=$as_save_IFS
6262
5279
 
 
5280
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6263
5281
fi
6264
5282
fi
6265
5283
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6266
5284
if test -n "$ac_ct_STRIP"; then
6267
 
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6268
 
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
 
5285
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
5286
echo "${ECHO_T}$ac_ct_STRIP" >&6
6269
5287
else
6270
 
  { echo "$as_me:$LINENO: result: no" >&5
6271
 
echo "${ECHO_T}no" >&6; }
 
5288
  echo "$as_me:$LINENO: result: no" >&5
 
5289
echo "${ECHO_T}no" >&6
6272
5290
fi
6273
5291
 
6274
 
  if test "x$ac_ct_STRIP" = x; then
6275
 
    STRIP=":"
6276
 
  else
6277
 
    case $cross_compiling:$ac_tool_warned in
6278
 
yes:)
6279
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6280
 
whose name does not start with the host triplet.  If you think this
6281
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
6282
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6283
 
whose name does not start with the host triplet.  If you think this
6284
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6285
 
ac_tool_warned=yes ;;
6286
 
esac
6287
 
    STRIP=$ac_ct_STRIP
6288
 
  fi
 
5292
  STRIP=$ac_ct_STRIP
6289
5293
else
6290
5294
  STRIP="$ac_cv_prog_STRIP"
6291
5295
fi
6300
5304
test -z "$AS" && AS=as
6301
5305
test -z "$CC" && CC=cc
6302
5306
test -z "$LTCC" && LTCC=$CC
6303
 
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6304
5307
test -z "$DLLTOOL" && DLLTOOL=dlltool
6305
5308
test -z "$LD" && LD=ld
6306
5309
test -z "$LN_S" && LN_S="ln -s"
6320
5323
if test -n "$RANLIB"; then
6321
5324
  case $host_os in
6322
5325
  openbsd*)
6323
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
5326
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6324
5327
    ;;
6325
5328
  *)
6326
 
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
5329
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6327
5330
    ;;
6328
5331
  esac
6329
5332
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6344
5347
case $deplibs_check_method in
6345
5348
file_magic*)
6346
5349
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6347
 
    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6348
 
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
 
5350
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
5351
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6349
5352
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6350
5353
  echo $ECHO_N "(cached) $ECHO_C" >&6
6351
5354
else
6397
5400
 
6398
5401
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6399
5402
if test -n "$MAGIC_CMD"; then
6400
 
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6401
 
echo "${ECHO_T}$MAGIC_CMD" >&6; }
 
5403
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
5404
echo "${ECHO_T}$MAGIC_CMD" >&6
6402
5405
else
6403
 
  { echo "$as_me:$LINENO: result: no" >&5
6404
 
echo "${ECHO_T}no" >&6; }
 
5406
  echo "$as_me:$LINENO: result: no" >&5
 
5407
echo "${ECHO_T}no" >&6
6405
5408
fi
6406
5409
 
6407
5410
if test -z "$lt_cv_path_MAGIC_CMD"; then
6408
5411
  if test -n "$ac_tool_prefix"; then
6409
 
    { echo "$as_me:$LINENO: checking for file" >&5
6410
 
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
 
5412
    echo "$as_me:$LINENO: checking for file" >&5
 
5413
echo $ECHO_N "checking for file... $ECHO_C" >&6
6411
5414
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6412
5415
  echo $ECHO_N "(cached) $ECHO_C" >&6
6413
5416
else
6459
5462
 
6460
5463
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6461
5464
if test -n "$MAGIC_CMD"; then
6462
 
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6463
 
echo "${ECHO_T}$MAGIC_CMD" >&6; }
 
5465
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
5466
echo "${ECHO_T}$MAGIC_CMD" >&6
6464
5467
else
6465
 
  { echo "$as_me:$LINENO: result: no" >&5
6466
 
echo "${ECHO_T}no" >&6; }
 
5468
  echo "$as_me:$LINENO: result: no" >&5
 
5469
echo "${ECHO_T}no" >&6
6467
5470
fi
6468
5471
 
6469
5472
  else
6478
5481
enable_dlopen=no
6479
5482
enable_win32_dll=no
6480
5483
 
6481
 
# Check whether --enable-libtool-lock was given.
 
5484
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6482
5485
if test "${enable_libtool_lock+set}" = set; then
6483
 
  enableval=$enable_libtool_lock;
6484
 
fi
 
5486
  enableval="$enable_libtool_lock"
6485
5487
 
 
5488
fi;
6486
5489
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6487
5490
 
6488
5491
 
6489
 
# Check whether --with-pic was given.
 
5492
# Check whether --with-pic or --without-pic was given.
6490
5493
if test "${with_pic+set}" = set; then
6491
 
  withval=$with_pic; pic_mode="$withval"
 
5494
  withval="$with_pic"
 
5495
  pic_mode="$withval"
6492
5496
else
6493
5497
  pic_mode=default
6494
 
fi
6495
 
 
 
5498
fi;
6496
5499
test -z "$pic_mode" && pic_mode=default
6497
5500
 
6498
5501
# Use C for the default configuration in the libtool script
6522
5525
# If no C compiler was specified, use CC.
6523
5526
LTCC=${LTCC-"$CC"}
6524
5527
 
6525
 
# If no C compiler flags were specified, use CFLAGS.
6526
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6527
 
 
6528
5528
# Allow CC to be a program name with arguments.
6529
5529
compiler=$CC
6530
5530
 
6532
5532
# save warnings/boilerplate of simple test code
6533
5533
ac_outfile=conftest.$ac_objext
6534
5534
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6535
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
5535
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6536
5536
_lt_compiler_boilerplate=`cat conftest.err`
6537
5537
$rm conftest*
6538
5538
 
6539
5539
ac_outfile=conftest.$ac_objext
6540
5540
printf "$lt_simple_link_test_code" >conftest.$ac_ext
6541
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
5541
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
6542
5542
_lt_linker_boilerplate=`cat conftest.err`
6543
5543
$rm conftest*
6544
5544
 
6545
5545
 
 
5546
#
 
5547
# Check for any special shared library compilation flags.
 
5548
#
 
5549
lt_prog_cc_shlib=
 
5550
if test "$GCC" = no; then
 
5551
  case $host_os in
 
5552
  sco3.2v5*)
 
5553
    lt_prog_cc_shlib='-belf'
 
5554
    ;;
 
5555
  esac
 
5556
fi
 
5557
if test -n "$lt_prog_cc_shlib"; then
 
5558
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
 
5559
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
 
5560
  if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
 
5561
  else
 
5562
    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
 
5563
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
 
5564
    lt_cv_prog_cc_can_build_shared=no
 
5565
  fi
 
5566
fi
 
5567
 
 
5568
 
 
5569
#
 
5570
# Check to make sure the static flag actually works.
 
5571
#
 
5572
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
 
5573
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
 
5574
if test "${lt_prog_compiler_static_works+set}" = set; then
 
5575
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5576
else
 
5577
  lt_prog_compiler_static_works=no
 
5578
   save_LDFLAGS="$LDFLAGS"
 
5579
   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
 
5580
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
5581
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
5582
     # The linker can only warn and ignore the option if not recognized
 
5583
     # So say no if there are warnings
 
5584
     if test -s conftest.err; then
 
5585
       # Append any errors to the config.log.
 
5586
       cat conftest.err 1>&5
 
5587
       $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
 
5588
       $SED '/^$/d' conftest.err >conftest.er2
 
5589
       if diff conftest.exp conftest.er2 >/dev/null; then
 
5590
         lt_prog_compiler_static_works=yes
 
5591
       fi
 
5592
     else
 
5593
       lt_prog_compiler_static_works=yes
 
5594
     fi
 
5595
   fi
 
5596
   $rm conftest*
 
5597
   LDFLAGS="$save_LDFLAGS"
 
5598
 
 
5599
fi
 
5600
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
 
5601
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
 
5602
 
 
5603
if test x"$lt_prog_compiler_static_works" = xyes; then
 
5604
    :
 
5605
else
 
5606
    lt_prog_compiler_static=
 
5607
fi
 
5608
 
 
5609
 
 
5610
 
6546
5611
 
6547
5612
lt_prog_compiler_no_builtin_flag=
6548
5613
 
6550
5615
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6551
5616
 
6552
5617
 
6553
 
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6554
 
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
 
5618
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
5619
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6555
5620
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6556
5621
  echo $ECHO_N "(cached) $ECHO_C" >&6
6557
5622
else
6568
5633
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6569
5634
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6570
5635
   -e 's:$: $lt_compiler_flag:'`
6571
 
   (eval echo "\"\$as_me:6571: $lt_compile\"" >&5)
 
5636
   (eval echo "\"\$as_me:5636: $lt_compile\"" >&5)
6572
5637
   (eval "$lt_compile" 2>conftest.err)
6573
5638
   ac_status=$?
6574
5639
   cat conftest.err >&5
6575
 
   echo "$as_me:6575: \$? = $ac_status" >&5
 
5640
   echo "$as_me:5640: \$? = $ac_status" >&5
6576
5641
   if (exit $ac_status) && test -s "$ac_outfile"; then
6577
5642
     # The compiler can only warn and ignore the option if not recognized
6578
5643
     # So say no if there are warnings other than the usual output.
6579
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6580
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6581
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
5644
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
5645
     $SED '/^$/d' conftest.err >conftest.er2
 
5646
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6582
5647
       lt_cv_prog_compiler_rtti_exceptions=yes
6583
5648
     fi
6584
5649
   fi
6585
5650
   $rm conftest*
6586
5651
 
6587
5652
fi
6588
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6589
 
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
5653
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
5654
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6590
5655
 
6591
5656
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6592
5657
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6600
5665
lt_prog_compiler_pic=
6601
5666
lt_prog_compiler_static=
6602
5667
 
6603
 
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6604
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
5668
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
5669
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6605
5670
 
6606
5671
  if test "$GCC" = yes; then
6607
5672
    lt_prog_compiler_wl='-Wl,'
6639
5704
      lt_prog_compiler_pic='-fno-common'
6640
5705
      ;;
6641
5706
 
6642
 
    interix3*)
6643
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6644
 
      # Instead, we relocate shared libraries at runtime.
6645
 
      ;;
6646
 
 
6647
5707
    msdosdjgpp*)
6648
5708
      # Just because we use GCC doesn't mean we suddenly get shared libraries
6649
5709
      # on systems that don't support them.
6730
5790
      lt_prog_compiler_static='-Bstatic'
6731
5791
      ;;
6732
5792
 
6733
 
    linux* | k*bsd*-gnu)
 
5793
    linux*)
6734
5794
      case $cc_basename in
6735
5795
      icc* | ecc*)
6736
5796
        lt_prog_compiler_wl='-Wl,'
6758
5818
      lt_prog_compiler_static='-non_shared'
6759
5819
      ;;
6760
5820
 
 
5821
    sco3.2v5*)
 
5822
      lt_prog_compiler_pic='-Kpic'
 
5823
      lt_prog_compiler_static='-dn'
 
5824
      ;;
 
5825
 
6761
5826
    solaris*)
6762
5827
      lt_prog_compiler_pic='-KPIC'
6763
5828
      lt_prog_compiler_static='-Bstatic'
6775
5840
      lt_prog_compiler_static='-Bstatic'
6776
5841
      ;;
6777
5842
 
6778
 
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
5843
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6779
5844
      lt_prog_compiler_wl='-Wl,'
6780
5845
      lt_prog_compiler_pic='-KPIC'
6781
5846
      lt_prog_compiler_static='-Bstatic'
6788
5853
      fi
6789
5854
      ;;
6790
5855
 
6791
 
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6792
 
      lt_prog_compiler_wl='-Wl,'
6793
 
      lt_prog_compiler_pic='-KPIC'
6794
 
      lt_prog_compiler_static='-Bstatic'
6795
 
      ;;
6796
 
 
6797
5856
    unicos*)
6798
5857
      lt_prog_compiler_wl='-Wl,'
6799
5858
      lt_prog_compiler_can_build_shared=no
6810
5869
    esac
6811
5870
  fi
6812
5871
 
6813
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6814
 
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
 
5872
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
5873
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6815
5874
 
6816
5875
#
6817
5876
# Check to make sure the PIC flag actually works.
6818
5877
#
6819
5878
if test -n "$lt_prog_compiler_pic"; then
6820
5879
 
6821
 
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6822
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
 
5880
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
5881
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6823
5882
if test "${lt_prog_compiler_pic_works+set}" = set; then
6824
5883
  echo $ECHO_N "(cached) $ECHO_C" >&6
6825
5884
else
6836
5895
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6837
5896
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6838
5897
   -e 's:$: $lt_compiler_flag:'`
6839
 
   (eval echo "\"\$as_me:6839: $lt_compile\"" >&5)
 
5898
   (eval echo "\"\$as_me:5898: $lt_compile\"" >&5)
6840
5899
   (eval "$lt_compile" 2>conftest.err)
6841
5900
   ac_status=$?
6842
5901
   cat conftest.err >&5
6843
 
   echo "$as_me:6843: \$? = $ac_status" >&5
 
5902
   echo "$as_me:5902: \$? = $ac_status" >&5
6844
5903
   if (exit $ac_status) && test -s "$ac_outfile"; then
6845
5904
     # The compiler can only warn and ignore the option if not recognized
6846
5905
     # So say no if there are warnings other than the usual output.
6847
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6848
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6849
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
5906
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
5907
     $SED '/^$/d' conftest.err >conftest.er2
 
5908
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
6850
5909
       lt_prog_compiler_pic_works=yes
6851
5910
     fi
6852
5911
   fi
6853
5912
   $rm conftest*
6854
5913
 
6855
5914
fi
6856
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6857
 
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
 
5915
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
 
5916
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6858
5917
 
6859
5918
if test x"$lt_prog_compiler_pic_works" = xyes; then
6860
5919
    case $lt_prog_compiler_pic in
6877
5936
    ;;
6878
5937
esac
6879
5938
 
6880
 
#
6881
 
# Check to make sure the static flag actually works.
6882
 
#
6883
 
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6884
 
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6885
 
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
6886
 
if test "${lt_prog_compiler_static_works+set}" = set; then
6887
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6888
 
else
6889
 
  lt_prog_compiler_static_works=no
6890
 
   save_LDFLAGS="$LDFLAGS"
6891
 
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6892
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
6893
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6894
 
     # The linker can only warn and ignore the option if not recognized
6895
 
     # So say no if there are warnings
6896
 
     if test -s conftest.err; then
6897
 
       # Append any errors to the config.log.
6898
 
       cat conftest.err 1>&5
6899
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6900
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6901
 
       if diff conftest.exp conftest.er2 >/dev/null; then
6902
 
         lt_prog_compiler_static_works=yes
6903
 
       fi
6904
 
     else
6905
 
       lt_prog_compiler_static_works=yes
6906
 
     fi
6907
 
   fi
6908
 
   $rm conftest*
6909
 
   LDFLAGS="$save_LDFLAGS"
6910
 
 
6911
 
fi
6912
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6913
 
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
6914
 
 
6915
 
if test x"$lt_prog_compiler_static_works" = xyes; then
6916
 
    :
6917
 
else
6918
 
    lt_prog_compiler_static=
6919
 
fi
6920
 
 
6921
 
 
6922
 
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6923
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
5939
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
5940
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6924
5941
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6925
5942
  echo $ECHO_N "(cached) $ECHO_C" >&6
6926
5943
else
6940
5957
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6941
5958
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6942
5959
   -e 's:$: $lt_compiler_flag:'`
6943
 
   (eval echo "\"\$as_me:6943: $lt_compile\"" >&5)
 
5960
   (eval echo "\"\$as_me:5960: $lt_compile\"" >&5)
6944
5961
   (eval "$lt_compile" 2>out/conftest.err)
6945
5962
   ac_status=$?
6946
5963
   cat out/conftest.err >&5
6947
 
   echo "$as_me:6947: \$? = $ac_status" >&5
 
5964
   echo "$as_me:5964: \$? = $ac_status" >&5
6948
5965
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6949
5966
   then
6950
5967
     # The compiler can only warn and ignore the option if not recognized
6951
5968
     # So say no if there are warnings
6952
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6953
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6954
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
5969
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
 
5970
     $SED '/^$/d' out/conftest.err >out/conftest.er2
 
5971
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6955
5972
       lt_cv_prog_compiler_c_o=yes
6956
5973
     fi
6957
5974
   fi
6966
5983
   $rm conftest*
6967
5984
 
6968
5985
fi
6969
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6970
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
 
5986
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
5987
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6971
5988
 
6972
5989
 
6973
5990
hard_links="nottested"
6974
5991
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6975
5992
  # do not overwrite the value of need_locks provided by the user
6976
 
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6977
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
5993
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
5994
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6978
5995
  hard_links=yes
6979
5996
  $rm conftest*
6980
5997
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6981
5998
  touch conftest.a
6982
5999
  ln conftest.a conftest.b 2>&5 || hard_links=no
6983
6000
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6984
 
  { echo "$as_me:$LINENO: result: $hard_links" >&5
6985
 
echo "${ECHO_T}$hard_links" >&6; }
 
6001
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
6002
echo "${ECHO_T}$hard_links" >&6
6986
6003
  if test "$hard_links" = no; then
6987
6004
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6988
6005
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6992
6009
  need_locks=no
6993
6010
fi
6994
6011
 
6995
 
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6996
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
6012
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
6013
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6997
6014
 
6998
6015
  runpath_var=
6999
6016
  allow_undefined_flag=
7051
6068
      with_gnu_ld=no
7052
6069
    fi
7053
6070
    ;;
7054
 
  interix*)
7055
 
    # we just hope/assume this is gcc and not c89 (= MSVC++)
7056
 
    with_gnu_ld=yes
7057
 
    ;;
7058
6071
  openbsd*)
7059
6072
    with_gnu_ld=no
7060
6073
    ;;
7139
6152
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7140
6153
 
7141
6154
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7142
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
6155
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7143
6156
        # If the export-symbols file already is a .def file (1st line
7144
6157
        # is EXPORTS), use it as is; otherwise, prepend...
7145
6158
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7148
6161
          echo EXPORTS > $output_objdir/$soname.def;
7149
6162
          cat $export_symbols >> $output_objdir/$soname.def;
7150
6163
        fi~
7151
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
6164
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
7152
6165
      else
7153
6166
        ld_shlibs=no
7154
6167
      fi
7155
6168
      ;;
7156
6169
 
7157
 
    interix3*)
7158
 
      hardcode_direct=no
7159
 
      hardcode_shlibpath_var=no
7160
 
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7161
 
      export_dynamic_flag_spec='${wl}-E'
7162
 
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7163
 
      # Instead, shared libraries are loaded at an image base (0x10000000 by
7164
 
      # default) and relocated if they conflict, which is a slow very memory
7165
 
      # consuming and fragmenting process.  To avoid this, we pick a random,
7166
 
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7167
 
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7168
 
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7169
 
      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7170
 
      ;;
7171
 
 
7172
 
    linux* | k*bsd*-gnu)
 
6170
    linux*)
7173
6171
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7174
6172
        tmp_addflag=
7175
6173
        case $cc_basename,$host_cpu in
7195
6193
  $echo "local: *; };" >> $output_objdir/$libname.ver~
7196
6194
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7197
6195
        fi
7198
 
        link_all_deplibs=no
7199
6196
      else
7200
6197
        ld_shlibs=no
7201
6198
      fi
7202
6199
      ;;
7203
6200
 
7204
 
    netbsd* | netbsdelf*-gnu)
 
6201
    netbsd*)
7205
6202
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7206
6203
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7207
6204
        wlarc=
7211
6208
      fi
7212
6209
      ;;
7213
6210
 
7214
 
    solaris*)
 
6211
    solaris* | sysv5*)
7215
6212
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7216
6213
        ld_shlibs=no
7217
6214
        cat <<EOF 1>&2
7232
6229
      fi
7233
6230
      ;;
7234
6231
 
7235
 
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7236
 
      case `$LD -v 2>&1` in
7237
 
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7238
 
        ld_shlibs=no
7239
 
        cat <<_LT_EOF 1>&2
7240
 
 
7241
 
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7242
 
*** reliably create shared libraries on SCO systems.  Therefore, libtool
7243
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
7244
 
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7245
 
*** your PATH or compiler configuration so that the native linker is
7246
 
*** used, and then restart.
7247
 
 
7248
 
_LT_EOF
7249
 
        ;;
7250
 
        *)
7251
 
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7252
 
            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7253
 
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7254
 
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7255
 
          else
7256
 
            ld_shlibs=no
7257
 
          fi
7258
 
        ;;
7259
 
      esac
7260
 
      ;;
7261
 
 
7262
6232
    sunos4*)
7263
6233
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7264
6234
      wlarc=
7292
6262
      # Note: this linker hardcodes the directories in LIBPATH if there
7293
6263
      # are no directories specified by -L.
7294
6264
      hardcode_minus_L=yes
7295
 
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
6265
      if test "$GCC" = yes && test -z "$link_static_flag"; then
7296
6266
        # Neither direct hardcoding nor static linking is supported with a
7297
6267
        # broken collect2.
7298
6268
        hardcode_direct=unsupported
7326
6296
            break
7327
6297
          fi
7328
6298
          done
7329
 
          ;;
7330
6299
        esac
7331
6300
 
7332
6301
        exp_sym_flag='-bexport'
7364
6333
          hardcode_libdir_flag_spec='-L$libdir'
7365
6334
          hardcode_libdir_separator=
7366
6335
          fi
7367
 
          ;;
7368
6336
        esac
7369
6337
        shared_flag='-shared'
7370
6338
        if test "$aix_use_runtimelinking" = yes; then
7377
6345
        # chokes on -Wl,-G. The following line is correct:
7378
6346
          shared_flag='-G'
7379
6347
        else
7380
 
          if test "$aix_use_runtimelinking" = yes; then
 
6348
        if test "$aix_use_runtimelinking" = yes; then
7381
6349
            shared_flag='${wl}-G'
7382
6350
          else
7383
6351
            shared_flag='${wl}-bM:SRE'
7384
 
          fi
 
6352
        fi
7385
6353
        fi
7386
6354
      fi
7387
6355
 
7409
6377
}
7410
6378
_ACEOF
7411
6379
rm -f conftest.$ac_objext conftest$ac_exeext
7412
 
if { (ac_try="$ac_link"
7413
 
case "(($ac_try" in
7414
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7415
 
  *) ac_try_echo=$ac_try;;
7416
 
esac
7417
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7418
 
  (eval "$ac_link") 2>conftest.er1
 
6380
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6381
  (eval $ac_link) 2>conftest.er1
7419
6382
  ac_status=$?
7420
6383
  grep -v '^ *+' conftest.er1 >conftest.err
7421
6384
  rm -f conftest.er1
7422
6385
  cat conftest.err >&5
7423
6386
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424
6387
  (exit $ac_status); } &&
7425
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7426
 
  { (case "(($ac_try" in
7427
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7428
 
  *) ac_try_echo=$ac_try;;
7429
 
esac
7430
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7431
 
  (eval "$ac_try") 2>&5
 
6388
         { ac_try='test -z "$ac_c_werror_flag"
 
6389
                         || test ! -s conftest.err'
 
6390
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6391
  (eval $ac_try) 2>&5
7432
6392
  ac_status=$?
7433
6393
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434
6394
  (exit $ac_status); }; } &&
7435
6395
         { ac_try='test -s conftest$ac_exeext'
7436
 
  { (case "(($ac_try" in
7437
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7438
 
  *) ac_try_echo=$ac_try;;
7439
 
esac
7440
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7441
 
  (eval "$ac_try") 2>&5
 
6396
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6397
  (eval $ac_try) 2>&5
7442
6398
  ac_status=$?
7443
6399
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444
6400
  (exit $ac_status); }; }; then
7452
6408
  echo "$as_me: failed program was:" >&5
7453
6409
sed 's/^/| /' conftest.$ac_ext >&5
7454
6410
 
7455
 
 
7456
6411
fi
7457
 
 
7458
 
rm -f core conftest.err conftest.$ac_objext \
 
6412
rm -f conftest.err conftest.$ac_objext \
7459
6413
      conftest$ac_exeext conftest.$ac_ext
7460
6414
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7461
6415
 
7462
6416
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7463
 
        archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
6417
        archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7464
6418
       else
7465
6419
        if test "$host_cpu" = ia64; then
7466
6420
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7467
6421
          allow_undefined_flag="-z nodefs"
7468
 
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
 
6422
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7469
6423
        else
7470
6424
         # Determine the default libpath from the value encoded in an empty executable.
7471
6425
         cat >conftest.$ac_ext <<_ACEOF
7484
6438
}
7485
6439
_ACEOF
7486
6440
rm -f conftest.$ac_objext conftest$ac_exeext
7487
 
if { (ac_try="$ac_link"
7488
 
case "(($ac_try" in
7489
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7490
 
  *) ac_try_echo=$ac_try;;
7491
 
esac
7492
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7493
 
  (eval "$ac_link") 2>conftest.er1
 
6441
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6442
  (eval $ac_link) 2>conftest.er1
7494
6443
  ac_status=$?
7495
6444
  grep -v '^ *+' conftest.er1 >conftest.err
7496
6445
  rm -f conftest.er1
7497
6446
  cat conftest.err >&5
7498
6447
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7499
6448
  (exit $ac_status); } &&
7500
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7501
 
  { (case "(($ac_try" in
7502
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7503
 
  *) ac_try_echo=$ac_try;;
7504
 
esac
7505
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7506
 
  (eval "$ac_try") 2>&5
 
6449
         { ac_try='test -z "$ac_c_werror_flag"
 
6450
                         || test ! -s conftest.err'
 
6451
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6452
  (eval $ac_try) 2>&5
7507
6453
  ac_status=$?
7508
6454
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509
6455
  (exit $ac_status); }; } &&
7510
6456
         { ac_try='test -s conftest$ac_exeext'
7511
 
  { (case "(($ac_try" in
7512
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7513
 
  *) ac_try_echo=$ac_try;;
7514
 
esac
7515
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7516
 
  (eval "$ac_try") 2>&5
 
6457
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6458
  (eval $ac_try) 2>&5
7517
6459
  ac_status=$?
7518
6460
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519
6461
  (exit $ac_status); }; }; then
7527
6469
  echo "$as_me: failed program was:" >&5
7528
6470
sed 's/^/| /' conftest.$ac_ext >&5
7529
6471
 
7530
 
 
7531
6472
fi
7532
 
 
7533
 
rm -f core conftest.err conftest.$ac_objext \
 
6473
rm -f conftest.err conftest.$ac_objext \
7534
6474
      conftest$ac_exeext conftest.$ac_ext
7535
6475
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7536
6476
 
7539
6479
          # -berok will link without error, but may produce a broken library.
7540
6480
          no_undefined_flag=' ${wl}-bernotok'
7541
6481
          allow_undefined_flag=' ${wl}-berok'
 
6482
          # -bexpall does not export symbols beginning with underscore (_)
 
6483
          always_export_symbols=yes
7542
6484
          # Exported symbols can be pulled into shared objects from archives
7543
 
          whole_archive_flag_spec='$convenience'
 
6485
          whole_archive_flag_spec=' '
7544
6486
          archive_cmds_need_lc=yes
7545
6487
          # This is similar to how AIX traditionally builds its shared libraries.
7546
 
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
6488
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7547
6489
        fi
7548
6490
      fi
7549
6491
      ;;
7661
6603
      ;;
7662
6604
 
7663
6605
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7664
 
    freebsd* | dragonfly*)
 
6606
    freebsd* | kfreebsd*-gnu | dragonfly*)
7665
6607
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7666
6608
      hardcode_libdir_flag_spec='-R$libdir'
7667
6609
      hardcode_direct=yes
7684
6626
      export_dynamic_flag_spec='${wl}-E'
7685
6627
      ;;
7686
6628
 
7687
 
    hpux10*)
7688
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7689
 
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7690
 
      else
7691
 
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7692
 
      fi
7693
 
      if test "$with_gnu_ld" = no; then
7694
 
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7695
 
        hardcode_libdir_separator=:
7696
 
 
7697
 
        hardcode_direct=yes
7698
 
        export_dynamic_flag_spec='${wl}-E'
7699
 
 
7700
 
        # hardcode_minus_L: Not really in the search PATH,
7701
 
        # but as the default location of the library.
7702
 
        hardcode_minus_L=yes
7703
 
      fi
7704
 
      ;;
7705
 
 
7706
 
    hpux11*)
 
6629
    hpux10* | hpux11*)
7707
6630
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7708
6631
        case $host_cpu in
7709
 
        hppa*64*)
 
6632
        hppa*64*|ia64*)
7710
6633
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7711
6634
          ;;
7712
 
        ia64*)
7713
 
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7714
 
          ;;
7715
6635
        *)
7716
6636
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7717
6637
          ;;
7718
6638
        esac
7719
6639
      else
7720
6640
        case $host_cpu in
7721
 
        hppa*64*)
7722
 
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7723
 
          ;;
7724
 
        ia64*)
7725
 
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
6641
        hppa*64*|ia64*)
 
6642
          archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7726
6643
          ;;
7727
6644
        *)
7728
 
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
6645
          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7729
6646
          ;;
7730
6647
        esac
7731
6648
      fi
7732
6649
      if test "$with_gnu_ld" = no; then
7733
 
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7734
 
        hardcode_libdir_separator=:
7735
 
 
7736
6650
        case $host_cpu in
7737
 
        hppa*64*|ia64*)
 
6651
        hppa*64*)
 
6652
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7738
6653
          hardcode_libdir_flag_spec_ld='+b $libdir'
7739
 
          hardcode_direct=no
7740
 
          hardcode_shlibpath_var=no
 
6654
          hardcode_libdir_separator=:
 
6655
          hardcode_direct=no
 
6656
          hardcode_shlibpath_var=no
 
6657
          ;;
 
6658
        ia64*)
 
6659
          hardcode_libdir_flag_spec='-L$libdir'
 
6660
          hardcode_direct=no
 
6661
          hardcode_shlibpath_var=no
 
6662
 
 
6663
          # hardcode_minus_L: Not really in the search PATH,
 
6664
          # but as the default location of the library.
 
6665
          hardcode_minus_L=yes
7741
6666
          ;;
7742
6667
        *)
 
6668
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
6669
          hardcode_libdir_separator=:
7743
6670
          hardcode_direct=yes
7744
6671
          export_dynamic_flag_spec='${wl}-E'
7745
6672
 
7763
6690
      link_all_deplibs=yes
7764
6691
      ;;
7765
6692
 
7766
 
    netbsd* | netbsdelf*-gnu)
 
6693
    netbsd*)
7767
6694
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7768
6695
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7769
6696
      else
7841
6768
      hardcode_libdir_separator=:
7842
6769
      ;;
7843
6770
 
 
6771
    sco3.2v5*)
 
6772
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6773
      hardcode_shlibpath_var=no
 
6774
      export_dynamic_flag_spec='${wl}-Bexport'
 
6775
      runpath_var=LD_RUN_PATH
 
6776
      hardcode_runpath_var=yes
 
6777
      ;;
 
6778
 
7844
6779
    solaris*)
7845
6780
      no_undefined_flag=' -z text'
7846
6781
      if test "$GCC" = yes; then
7926
6861
      fi
7927
6862
      ;;
7928
6863
 
7929
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7930
 
      no_undefined_flag='${wl}-z,text'
7931
 
      archive_cmds_need_lc=no
7932
 
      hardcode_shlibpath_var=no
7933
 
      runpath_var='LD_RUN_PATH'
7934
 
 
7935
 
      if test "$GCC" = yes; then
7936
 
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7937
 
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7938
 
      else
7939
 
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7940
 
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7941
 
      fi
7942
 
      ;;
7943
 
 
7944
 
    sysv5* | sco3.2v5* | sco5v6*)
7945
 
      # Note: We can NOT use -z defs as we might desire, because we do not
7946
 
      # link with -lc, and that would cause any symbols used from libc to
7947
 
      # always be unresolved, which means just about no library would
7948
 
      # ever link correctly.  If we're not using GNU ld we use -z text
7949
 
      # though, which does catch some bad symbols but isn't as heavy-handed
7950
 
      # as -z defs.
7951
 
      no_undefined_flag='${wl}-z,text'
7952
 
      allow_undefined_flag='${wl}-z,nodefs'
7953
 
      archive_cmds_need_lc=no
7954
 
      hardcode_shlibpath_var=no
7955
 
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7956
 
      hardcode_libdir_separator=':'
7957
 
      link_all_deplibs=yes
7958
 
      export_dynamic_flag_spec='${wl}-Bexport'
7959
 
      runpath_var='LD_RUN_PATH'
7960
 
 
7961
 
      if test "$GCC" = yes; then
7962
 
        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7963
 
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7964
 
      else
7965
 
        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7966
 
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7967
 
      fi
 
6864
    sysv4.2uw2*)
 
6865
      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
6866
      hardcode_direct=yes
 
6867
      hardcode_minus_L=no
 
6868
      hardcode_shlibpath_var=no
 
6869
      hardcode_runpath_var=yes
 
6870
      runpath_var=LD_RUN_PATH
 
6871
      ;;
 
6872
 
 
6873
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
6874
      no_undefined_flag='${wl}-z ${wl}text'
 
6875
      if test "$GCC" = yes; then
 
6876
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6877
      else
 
6878
        archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
6879
      fi
 
6880
      runpath_var='LD_RUN_PATH'
 
6881
      hardcode_shlibpath_var=no
 
6882
      ;;
 
6883
 
 
6884
    sysv5*)
 
6885
      no_undefined_flag=' -z text'
 
6886
      # $CC -shared without GNU ld will not create a library from C++
 
6887
      # object files and a static libstdc++, better avoid it by now
 
6888
      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
6889
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
6890
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
6891
      hardcode_libdir_flag_spec=
 
6892
      hardcode_shlibpath_var=no
 
6893
      runpath_var='LD_RUN_PATH'
7968
6894
      ;;
7969
6895
 
7970
6896
    uts4*)
7979
6905
    esac
7980
6906
  fi
7981
6907
 
7982
 
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7983
 
echo "${ECHO_T}$ld_shlibs" >&6; }
 
6908
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
6909
echo "${ECHO_T}$ld_shlibs" >&6
7984
6910
test "$ld_shlibs" = no && can_build_shared=no
7985
6911
 
 
6912
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
6913
if test "$GCC" = yes; then
 
6914
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
6915
fi
 
6916
 
7986
6917
#
7987
6918
# Do we need to explicitly link libc?
7988
6919
#
8000
6931
      # Test whether the compiler implicitly links with -lc since on some
8001
6932
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8002
6933
      # to ld, don't add -lc before -lgcc.
8003
 
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8004
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
6934
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
6935
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8005
6936
      $rm conftest*
8006
6937
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8007
6938
 
8015
6946
        libobjs=conftest.$ac_objext
8016
6947
        deplibs=
8017
6948
        wl=$lt_prog_compiler_wl
8018
 
        pic_flag=$lt_prog_compiler_pic
8019
6949
        compiler_flags=-v
8020
6950
        linker_flags=-v
8021
6951
        verstring=
8038
6968
        cat conftest.err 1>&5
8039
6969
      fi
8040
6970
      $rm conftest*
8041
 
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8042
 
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
 
6971
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
6972
echo "${ECHO_T}$archive_cmds_need_lc" >&6
8043
6973
      ;;
8044
6974
    esac
8045
6975
  fi
8046
6976
  ;;
8047
6977
esac
8048
6978
 
8049
 
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8050
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
6979
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
6980
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8051
6981
library_names_spec=
8052
6982
libname_spec='lib$name'
8053
6983
soname_spec=
8253
7183
  dynamic_linker=no
8254
7184
  ;;
8255
7185
 
 
7186
kfreebsd*-gnu)
 
7187
  version_type=linux
 
7188
  need_lib_prefix=no
 
7189
  need_version=no
 
7190
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
7191
  soname_spec='${libname}${release}${shared_ext}$major'
 
7192
  shlibpath_var=LD_LIBRARY_PATH
 
7193
  shlibpath_overrides_runpath=no
 
7194
  hardcode_into_libs=yes
 
7195
  dynamic_linker='GNU ld.so'
 
7196
  ;;
 
7197
 
8256
7198
freebsd* | dragonfly*)
8257
7199
  # DragonFly does not have aout.  When/if they implement a new
8258
7200
  # versioning mechanism, adjust this.
8285
7227
    shlibpath_overrides_runpath=yes
8286
7228
    hardcode_into_libs=yes
8287
7229
    ;;
8288
 
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8289
 
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
7230
  *) # from 3.2 on
8290
7231
    shlibpath_overrides_runpath=no
8291
7232
    hardcode_into_libs=yes
8292
7233
    ;;
8293
 
  freebsd*) # from 4.6 on
8294
 
    shlibpath_overrides_runpath=yes
8295
 
    hardcode_into_libs=yes
8296
 
    ;;
8297
7234
  esac
8298
7235
  ;;
8299
7236
 
8353
7290
  postinstall_cmds='chmod 555 $lib'
8354
7291
  ;;
8355
7292
 
8356
 
interix3*)
8357
 
  version_type=linux
8358
 
  need_lib_prefix=no
8359
 
  need_version=no
8360
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8361
 
  soname_spec='${libname}${release}${shared_ext}$major'
8362
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8363
 
  shlibpath_var=LD_LIBRARY_PATH
8364
 
  shlibpath_overrides_runpath=no
8365
 
  hardcode_into_libs=yes
8366
 
  ;;
8367
 
 
8368
7293
irix5* | irix6* | nonstopux*)
8369
7294
  case $host_os in
8370
7295
    nonstopux*) version_type=nonstopux ;;
8408
7333
  ;;
8409
7334
 
8410
7335
# This must be Linux ELF.
8411
 
linux* | k*bsd*-gnu)
 
7336
linux*)
8412
7337
  version_type=linux
8413
7338
  need_lib_prefix=no
8414
7339
  need_version=no
8437
7362
  dynamic_linker='GNU/Linux ld.so'
8438
7363
  ;;
8439
7364
 
8440
 
netbsdelf*-gnu)
 
7365
knetbsd*-gnu)
8441
7366
  version_type=linux
8442
7367
  need_lib_prefix=no
8443
7368
  need_version=no
8446
7371
  shlibpath_var=LD_LIBRARY_PATH
8447
7372
  shlibpath_overrides_runpath=no
8448
7373
  hardcode_into_libs=yes
8449
 
  dynamic_linker='NetBSD ld.elf_so'
 
7374
  dynamic_linker='GNU ld.so'
8450
7375
  ;;
8451
7376
 
8452
7377
netbsd*)
8486
7411
 
8487
7412
openbsd*)
8488
7413
  version_type=sunos
8489
 
  sys_lib_dlsearch_path_spec="/usr/lib"
8490
7414
  need_lib_prefix=no
8491
7415
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8492
7416
  case $host_os in
8530
7454
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8531
7455
  ;;
8532
7456
 
 
7457
sco3.2v5*)
 
7458
  version_type=osf
 
7459
  soname_spec='${libname}${release}${shared_ext}$major'
 
7460
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7461
  shlibpath_var=LD_LIBRARY_PATH
 
7462
  ;;
 
7463
 
8533
7464
solaris*)
8534
7465
  version_type=linux
8535
7466
  need_lib_prefix=no
8555
7486
  need_version=yes
8556
7487
  ;;
8557
7488
 
8558
 
sysv4 | sysv4.3*)
 
7489
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8559
7490
  version_type=linux
8560
7491
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8561
7492
  soname_spec='${libname}${release}${shared_ext}$major'
8588
7519
  fi
8589
7520
  ;;
8590
7521
 
8591
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8592
 
  version_type=freebsd-elf
8593
 
  need_lib_prefix=no
8594
 
  need_version=no
8595
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8596
 
  soname_spec='${libname}${release}${shared_ext}$major'
8597
 
  shlibpath_var=LD_LIBRARY_PATH
8598
 
  hardcode_into_libs=yes
8599
 
  if test "$with_gnu_ld" = yes; then
8600
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8601
 
    shlibpath_overrides_runpath=no
8602
 
  else
8603
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8604
 
    shlibpath_overrides_runpath=yes
8605
 
    case $host_os in
8606
 
      sco3.2v5*)
8607
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8608
 
        ;;
8609
 
    esac
8610
 
  fi
8611
 
  sys_lib_dlsearch_path_spec='/usr/lib'
8612
 
  ;;
8613
 
 
8614
7522
uts4*)
8615
7523
  version_type=linux
8616
7524
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8622
7530
  dynamic_linker=no
8623
7531
  ;;
8624
7532
esac
8625
 
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8626
 
echo "${ECHO_T}$dynamic_linker" >&6; }
 
7533
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
7534
echo "${ECHO_T}$dynamic_linker" >&6
8627
7535
test "$dynamic_linker" = no && can_build_shared=no
8628
7536
 
8629
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8630
 
if test "$GCC" = yes; then
8631
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8632
 
fi
8633
 
 
8634
 
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8635
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
7537
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
7538
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8636
7539
hardcode_action=
8637
7540
if test -n "$hardcode_libdir_flag_spec" || \
8638
7541
   test -n "$runpath_var" || \
8656
7559
  # directories.
8657
7560
  hardcode_action=unsupported
8658
7561
fi
8659
 
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
8660
 
echo "${ECHO_T}$hardcode_action" >&6; }
 
7562
echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
7563
echo "${ECHO_T}$hardcode_action" >&6
8661
7564
 
8662
7565
if test "$hardcode_action" = relink; then
8663
7566
  # Fast installation is not supported
8670
7573
 
8671
7574
striplib=
8672
7575
old_striplib=
8673
 
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8674
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
 
7576
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
7577
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8675
7578
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8676
7579
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8677
7580
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8678
 
  { echo "$as_me:$LINENO: result: yes" >&5
8679
 
echo "${ECHO_T}yes" >&6; }
 
7581
  echo "$as_me:$LINENO: result: yes" >&5
 
7582
echo "${ECHO_T}yes" >&6
8680
7583
else
8681
7584
# FIXME - insert some real tests, host_os isn't really good enough
8682
7585
  case $host_os in
8683
7586
   darwin*)
8684
7587
       if test -n "$STRIP" ; then
8685
7588
         striplib="$STRIP -x"
8686
 
         { echo "$as_me:$LINENO: result: yes" >&5
8687
 
echo "${ECHO_T}yes" >&6; }
 
7589
         echo "$as_me:$LINENO: result: yes" >&5
 
7590
echo "${ECHO_T}yes" >&6
8688
7591
       else
8689
 
  { echo "$as_me:$LINENO: result: no" >&5
8690
 
echo "${ECHO_T}no" >&6; }
 
7592
  echo "$as_me:$LINENO: result: no" >&5
 
7593
echo "${ECHO_T}no" >&6
8691
7594
fi
8692
7595
       ;;
8693
7596
   *)
8694
 
  { echo "$as_me:$LINENO: result: no" >&5
8695
 
echo "${ECHO_T}no" >&6; }
 
7597
  echo "$as_me:$LINENO: result: no" >&5
 
7598
echo "${ECHO_T}no" >&6
8696
7599
    ;;
8697
7600
  esac
8698
7601
fi
8724
7627
 
8725
7628
  darwin*)
8726
7629
  # if libdl is installed we need to link against it
8727
 
    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8728
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
 
7630
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
7631
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8729
7632
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8730
7633
  echo $ECHO_N "(cached) $ECHO_C" >&6
8731
7634
else
8738
7641
cat >>conftest.$ac_ext <<_ACEOF
8739
7642
/* end confdefs.h.  */
8740
7643
 
8741
 
/* Override any GCC internal prototype to avoid an error.
8742
 
   Use char because int might match the return type of a GCC
8743
 
   builtin and then its argument prototype would still apply.  */
 
7644
/* Override any gcc2 internal prototype to avoid an error.  */
8744
7645
#ifdef __cplusplus
8745
7646
extern "C"
8746
7647
#endif
 
7648
/* We use char because int might match the return type of a gcc2
 
7649
   builtin and then its argument prototype would still apply.  */
8747
7650
char dlopen ();
8748
7651
int
8749
7652
main ()
8750
7653
{
8751
 
return dlopen ();
 
7654
dlopen ();
8752
7655
  ;
8753
7656
  return 0;
8754
7657
}
8755
7658
_ACEOF
8756
7659
rm -f conftest.$ac_objext conftest$ac_exeext
8757
 
if { (ac_try="$ac_link"
8758
 
case "(($ac_try" in
8759
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8760
 
  *) ac_try_echo=$ac_try;;
8761
 
esac
8762
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8763
 
  (eval "$ac_link") 2>conftest.er1
 
7660
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7661
  (eval $ac_link) 2>conftest.er1
8764
7662
  ac_status=$?
8765
7663
  grep -v '^ *+' conftest.er1 >conftest.err
8766
7664
  rm -f conftest.er1
8767
7665
  cat conftest.err >&5
8768
7666
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769
7667
  (exit $ac_status); } &&
8770
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8771
 
  { (case "(($ac_try" in
8772
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8773
 
  *) ac_try_echo=$ac_try;;
8774
 
esac
8775
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8776
 
  (eval "$ac_try") 2>&5
 
7668
         { ac_try='test -z "$ac_c_werror_flag"
 
7669
                         || test ! -s conftest.err'
 
7670
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7671
  (eval $ac_try) 2>&5
8777
7672
  ac_status=$?
8778
7673
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779
7674
  (exit $ac_status); }; } &&
8780
7675
         { ac_try='test -s conftest$ac_exeext'
8781
 
  { (case "(($ac_try" in
8782
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8783
 
  *) ac_try_echo=$ac_try;;
8784
 
esac
8785
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8786
 
  (eval "$ac_try") 2>&5
 
7676
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7677
  (eval $ac_try) 2>&5
8787
7678
  ac_status=$?
8788
7679
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789
7680
  (exit $ac_status); }; }; then
8792
7683
  echo "$as_me: failed program was:" >&5
8793
7684
sed 's/^/| /' conftest.$ac_ext >&5
8794
7685
 
8795
 
        ac_cv_lib_dl_dlopen=no
 
7686
ac_cv_lib_dl_dlopen=no
8796
7687
fi
8797
 
 
8798
 
rm -f core conftest.err conftest.$ac_objext \
 
7688
rm -f conftest.err conftest.$ac_objext \
8799
7689
      conftest$ac_exeext conftest.$ac_ext
8800
7690
LIBS=$ac_check_lib_save_LIBS
8801
7691
fi
8802
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8803
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
 
7692
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
7693
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8804
7694
if test $ac_cv_lib_dl_dlopen = yes; then
8805
7695
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8806
7696
else
8814
7704
   ;;
8815
7705
 
8816
7706
  *)
8817
 
    { echo "$as_me:$LINENO: checking for shl_load" >&5
8818
 
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
 
7707
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
7708
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8819
7709
if test "${ac_cv_func_shl_load+set}" = set; then
8820
7710
  echo $ECHO_N "(cached) $ECHO_C" >&6
8821
7711
else
8842
7732
 
8843
7733
#undef shl_load
8844
7734
 
8845
 
/* Override any GCC internal prototype to avoid an error.
8846
 
   Use char because int might match the return type of a GCC
 
7735
/* Override any gcc2 internal prototype to avoid an error.  */
 
7736
#ifdef __cplusplus
 
7737
extern "C"
 
7738
{
 
7739
#endif
 
7740
/* We use char because int might match the return type of a gcc2
8847
7741
   builtin and then its argument prototype would still apply.  */
8848
 
#ifdef __cplusplus
8849
 
extern "C"
8850
 
#endif
8851
7742
char shl_load ();
8852
7743
/* The GNU C library defines this for functions which it implements
8853
7744
    to always fail with ENOSYS.  Some functions are actually named
8854
7745
    something starting with __ and the normal name is an alias.  */
8855
 
#if defined __stub_shl_load || defined __stub___shl_load
 
7746
#if defined (__stub_shl_load) || defined (__stub___shl_load)
8856
7747
choke me
 
7748
#else
 
7749
char (*f) () = shl_load;
 
7750
#endif
 
7751
#ifdef __cplusplus
 
7752
}
8857
7753
#endif
8858
7754
 
8859
7755
int
8860
7756
main ()
8861
7757
{
8862
 
return shl_load ();
 
7758
return f != shl_load;
8863
7759
  ;
8864
7760
  return 0;
8865
7761
}
8866
7762
_ACEOF
8867
7763
rm -f conftest.$ac_objext conftest$ac_exeext
8868
 
if { (ac_try="$ac_link"
8869
 
case "(($ac_try" in
8870
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8871
 
  *) ac_try_echo=$ac_try;;
8872
 
esac
8873
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8874
 
  (eval "$ac_link") 2>conftest.er1
 
7764
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7765
  (eval $ac_link) 2>conftest.er1
8875
7766
  ac_status=$?
8876
7767
  grep -v '^ *+' conftest.er1 >conftest.err
8877
7768
  rm -f conftest.er1
8878
7769
  cat conftest.err >&5
8879
7770
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880
7771
  (exit $ac_status); } &&
8881
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8882
 
  { (case "(($ac_try" in
8883
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8884
 
  *) ac_try_echo=$ac_try;;
8885
 
esac
8886
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8887
 
  (eval "$ac_try") 2>&5
 
7772
         { ac_try='test -z "$ac_c_werror_flag"
 
7773
                         || test ! -s conftest.err'
 
7774
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7775
  (eval $ac_try) 2>&5
8888
7776
  ac_status=$?
8889
7777
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890
7778
  (exit $ac_status); }; } &&
8891
7779
         { ac_try='test -s conftest$ac_exeext'
8892
 
  { (case "(($ac_try" in
8893
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8894
 
  *) ac_try_echo=$ac_try;;
8895
 
esac
8896
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8897
 
  (eval "$ac_try") 2>&5
 
7780
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7781
  (eval $ac_try) 2>&5
8898
7782
  ac_status=$?
8899
7783
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900
7784
  (exit $ac_status); }; }; then
8903
7787
  echo "$as_me: failed program was:" >&5
8904
7788
sed 's/^/| /' conftest.$ac_ext >&5
8905
7789
 
8906
 
        ac_cv_func_shl_load=no
 
7790
ac_cv_func_shl_load=no
8907
7791
fi
8908
 
 
8909
 
rm -f core conftest.err conftest.$ac_objext \
 
7792
rm -f conftest.err conftest.$ac_objext \
8910
7793
      conftest$ac_exeext conftest.$ac_ext
8911
7794
fi
8912
 
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8913
 
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
 
7795
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
7796
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8914
7797
if test $ac_cv_func_shl_load = yes; then
8915
7798
  lt_cv_dlopen="shl_load"
8916
7799
else
8917
 
  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8918
 
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
 
7800
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
7801
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8919
7802
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8920
7803
  echo $ECHO_N "(cached) $ECHO_C" >&6
8921
7804
else
8928
7811
cat >>conftest.$ac_ext <<_ACEOF
8929
7812
/* end confdefs.h.  */
8930
7813
 
8931
 
/* Override any GCC internal prototype to avoid an error.
8932
 
   Use char because int might match the return type of a GCC
8933
 
   builtin and then its argument prototype would still apply.  */
 
7814
/* Override any gcc2 internal prototype to avoid an error.  */
8934
7815
#ifdef __cplusplus
8935
7816
extern "C"
8936
7817
#endif
 
7818
/* We use char because int might match the return type of a gcc2
 
7819
   builtin and then its argument prototype would still apply.  */
8937
7820
char shl_load ();
8938
7821
int
8939
7822
main ()
8940
7823
{
8941
 
return shl_load ();
 
7824
shl_load ();
8942
7825
  ;
8943
7826
  return 0;
8944
7827
}
8945
7828
_ACEOF
8946
7829
rm -f conftest.$ac_objext conftest$ac_exeext
8947
 
if { (ac_try="$ac_link"
8948
 
case "(($ac_try" in
8949
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8950
 
  *) ac_try_echo=$ac_try;;
8951
 
esac
8952
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8953
 
  (eval "$ac_link") 2>conftest.er1
 
7830
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7831
  (eval $ac_link) 2>conftest.er1
8954
7832
  ac_status=$?
8955
7833
  grep -v '^ *+' conftest.er1 >conftest.err
8956
7834
  rm -f conftest.er1
8957
7835
  cat conftest.err >&5
8958
7836
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959
7837
  (exit $ac_status); } &&
8960
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8961
 
  { (case "(($ac_try" in
8962
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8963
 
  *) ac_try_echo=$ac_try;;
8964
 
esac
8965
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8966
 
  (eval "$ac_try") 2>&5
 
7838
         { ac_try='test -z "$ac_c_werror_flag"
 
7839
                         || test ! -s conftest.err'
 
7840
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7841
  (eval $ac_try) 2>&5
8967
7842
  ac_status=$?
8968
7843
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969
7844
  (exit $ac_status); }; } &&
8970
7845
         { ac_try='test -s conftest$ac_exeext'
8971
 
  { (case "(($ac_try" in
8972
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8973
 
  *) ac_try_echo=$ac_try;;
8974
 
esac
8975
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8976
 
  (eval "$ac_try") 2>&5
 
7846
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7847
  (eval $ac_try) 2>&5
8977
7848
  ac_status=$?
8978
7849
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979
7850
  (exit $ac_status); }; }; then
8982
7853
  echo "$as_me: failed program was:" >&5
8983
7854
sed 's/^/| /' conftest.$ac_ext >&5
8984
7855
 
8985
 
        ac_cv_lib_dld_shl_load=no
 
7856
ac_cv_lib_dld_shl_load=no
8986
7857
fi
8987
 
 
8988
 
rm -f core conftest.err conftest.$ac_objext \
 
7858
rm -f conftest.err conftest.$ac_objext \
8989
7859
      conftest$ac_exeext conftest.$ac_ext
8990
7860
LIBS=$ac_check_lib_save_LIBS
8991
7861
fi
8992
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8993
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
 
7862
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
7863
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8994
7864
if test $ac_cv_lib_dld_shl_load = yes; then
8995
7865
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8996
7866
else
8997
 
  { echo "$as_me:$LINENO: checking for dlopen" >&5
8998
 
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
 
7867
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
7868
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8999
7869
if test "${ac_cv_func_dlopen+set}" = set; then
9000
7870
  echo $ECHO_N "(cached) $ECHO_C" >&6
9001
7871
else
9022
7892
 
9023
7893
#undef dlopen
9024
7894
 
9025
 
/* Override any GCC internal prototype to avoid an error.
9026
 
   Use char because int might match the return type of a GCC
 
7895
/* Override any gcc2 internal prototype to avoid an error.  */
 
7896
#ifdef __cplusplus
 
7897
extern "C"
 
7898
{
 
7899
#endif
 
7900
/* We use char because int might match the return type of a gcc2
9027
7901
   builtin and then its argument prototype would still apply.  */
9028
 
#ifdef __cplusplus
9029
 
extern "C"
9030
 
#endif
9031
7902
char dlopen ();
9032
7903
/* The GNU C library defines this for functions which it implements
9033
7904
    to always fail with ENOSYS.  Some functions are actually named
9034
7905
    something starting with __ and the normal name is an alias.  */
9035
 
#if defined __stub_dlopen || defined __stub___dlopen
 
7906
#if defined (__stub_dlopen) || defined (__stub___dlopen)
9036
7907
choke me
 
7908
#else
 
7909
char (*f) () = dlopen;
 
7910
#endif
 
7911
#ifdef __cplusplus
 
7912
}
9037
7913
#endif
9038
7914
 
9039
7915
int
9040
7916
main ()
9041
7917
{
9042
 
return dlopen ();
 
7918
return f != dlopen;
9043
7919
  ;
9044
7920
  return 0;
9045
7921
}
9046
7922
_ACEOF
9047
7923
rm -f conftest.$ac_objext conftest$ac_exeext
9048
 
if { (ac_try="$ac_link"
9049
 
case "(($ac_try" in
9050
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9051
 
  *) ac_try_echo=$ac_try;;
9052
 
esac
9053
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9054
 
  (eval "$ac_link") 2>conftest.er1
 
7924
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7925
  (eval $ac_link) 2>conftest.er1
9055
7926
  ac_status=$?
9056
7927
  grep -v '^ *+' conftest.er1 >conftest.err
9057
7928
  rm -f conftest.er1
9058
7929
  cat conftest.err >&5
9059
7930
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060
7931
  (exit $ac_status); } &&
9061
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9062
 
  { (case "(($ac_try" in
9063
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9064
 
  *) ac_try_echo=$ac_try;;
9065
 
esac
9066
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9067
 
  (eval "$ac_try") 2>&5
 
7932
         { ac_try='test -z "$ac_c_werror_flag"
 
7933
                         || test ! -s conftest.err'
 
7934
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7935
  (eval $ac_try) 2>&5
9068
7936
  ac_status=$?
9069
7937
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070
7938
  (exit $ac_status); }; } &&
9071
7939
         { ac_try='test -s conftest$ac_exeext'
9072
 
  { (case "(($ac_try" in
9073
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9074
 
  *) ac_try_echo=$ac_try;;
9075
 
esac
9076
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9077
 
  (eval "$ac_try") 2>&5
 
7940
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7941
  (eval $ac_try) 2>&5
9078
7942
  ac_status=$?
9079
7943
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080
7944
  (exit $ac_status); }; }; then
9083
7947
  echo "$as_me: failed program was:" >&5
9084
7948
sed 's/^/| /' conftest.$ac_ext >&5
9085
7949
 
9086
 
        ac_cv_func_dlopen=no
 
7950
ac_cv_func_dlopen=no
9087
7951
fi
9088
 
 
9089
 
rm -f core conftest.err conftest.$ac_objext \
 
7952
rm -f conftest.err conftest.$ac_objext \
9090
7953
      conftest$ac_exeext conftest.$ac_ext
9091
7954
fi
9092
 
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9093
 
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
 
7955
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
7956
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9094
7957
if test $ac_cv_func_dlopen = yes; then
9095
7958
  lt_cv_dlopen="dlopen"
9096
7959
else
9097
 
  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9098
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
 
7960
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
7961
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9099
7962
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9100
7963
  echo $ECHO_N "(cached) $ECHO_C" >&6
9101
7964
else
9108
7971
cat >>conftest.$ac_ext <<_ACEOF
9109
7972
/* end confdefs.h.  */
9110
7973
 
9111
 
/* Override any GCC internal prototype to avoid an error.
9112
 
   Use char because int might match the return type of a GCC
9113
 
   builtin and then its argument prototype would still apply.  */
 
7974
/* Override any gcc2 internal prototype to avoid an error.  */
9114
7975
#ifdef __cplusplus
9115
7976
extern "C"
9116
7977
#endif
 
7978
/* We use char because int might match the return type of a gcc2
 
7979
   builtin and then its argument prototype would still apply.  */
9117
7980
char dlopen ();
9118
7981
int
9119
7982
main ()
9120
7983
{
9121
 
return dlopen ();
 
7984
dlopen ();
9122
7985
  ;
9123
7986
  return 0;
9124
7987
}
9125
7988
_ACEOF
9126
7989
rm -f conftest.$ac_objext conftest$ac_exeext
9127
 
if { (ac_try="$ac_link"
9128
 
case "(($ac_try" in
9129
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9130
 
  *) ac_try_echo=$ac_try;;
9131
 
esac
9132
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9133
 
  (eval "$ac_link") 2>conftest.er1
 
7990
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7991
  (eval $ac_link) 2>conftest.er1
9134
7992
  ac_status=$?
9135
7993
  grep -v '^ *+' conftest.er1 >conftest.err
9136
7994
  rm -f conftest.er1
9137
7995
  cat conftest.err >&5
9138
7996
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139
7997
  (exit $ac_status); } &&
9140
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9141
 
  { (case "(($ac_try" in
9142
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9143
 
  *) ac_try_echo=$ac_try;;
9144
 
esac
9145
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9146
 
  (eval "$ac_try") 2>&5
 
7998
         { ac_try='test -z "$ac_c_werror_flag"
 
7999
                         || test ! -s conftest.err'
 
8000
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8001
  (eval $ac_try) 2>&5
9147
8002
  ac_status=$?
9148
8003
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149
8004
  (exit $ac_status); }; } &&
9150
8005
         { ac_try='test -s conftest$ac_exeext'
9151
 
  { (case "(($ac_try" in
9152
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9153
 
  *) ac_try_echo=$ac_try;;
9154
 
esac
9155
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9156
 
  (eval "$ac_try") 2>&5
 
8006
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8007
  (eval $ac_try) 2>&5
9157
8008
  ac_status=$?
9158
8009
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159
8010
  (exit $ac_status); }; }; then
9162
8013
  echo "$as_me: failed program was:" >&5
9163
8014
sed 's/^/| /' conftest.$ac_ext >&5
9164
8015
 
9165
 
        ac_cv_lib_dl_dlopen=no
 
8016
ac_cv_lib_dl_dlopen=no
9166
8017
fi
9167
 
 
9168
 
rm -f core conftest.err conftest.$ac_objext \
 
8018
rm -f conftest.err conftest.$ac_objext \
9169
8019
      conftest$ac_exeext conftest.$ac_ext
9170
8020
LIBS=$ac_check_lib_save_LIBS
9171
8021
fi
9172
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9173
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
 
8022
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
8023
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9174
8024
if test $ac_cv_lib_dl_dlopen = yes; then
9175
8025
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9176
8026
else
9177
 
  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9178
 
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
 
8027
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
8028
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9179
8029
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9180
8030
  echo $ECHO_N "(cached) $ECHO_C" >&6
9181
8031
else
9188
8038
cat >>conftest.$ac_ext <<_ACEOF
9189
8039
/* end confdefs.h.  */
9190
8040
 
9191
 
/* Override any GCC internal prototype to avoid an error.
9192
 
   Use char because int might match the return type of a GCC
9193
 
   builtin and then its argument prototype would still apply.  */
 
8041
/* Override any gcc2 internal prototype to avoid an error.  */
9194
8042
#ifdef __cplusplus
9195
8043
extern "C"
9196
8044
#endif
 
8045
/* We use char because int might match the return type of a gcc2
 
8046
   builtin and then its argument prototype would still apply.  */
9197
8047
char dlopen ();
9198
8048
int
9199
8049
main ()
9200
8050
{
9201
 
return dlopen ();
 
8051
dlopen ();
9202
8052
  ;
9203
8053
  return 0;
9204
8054
}
9205
8055
_ACEOF
9206
8056
rm -f conftest.$ac_objext conftest$ac_exeext
9207
 
if { (ac_try="$ac_link"
9208
 
case "(($ac_try" in
9209
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9210
 
  *) ac_try_echo=$ac_try;;
9211
 
esac
9212
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9213
 
  (eval "$ac_link") 2>conftest.er1
 
8057
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8058
  (eval $ac_link) 2>conftest.er1
9214
8059
  ac_status=$?
9215
8060
  grep -v '^ *+' conftest.er1 >conftest.err
9216
8061
  rm -f conftest.er1
9217
8062
  cat conftest.err >&5
9218
8063
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219
8064
  (exit $ac_status); } &&
9220
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9221
 
  { (case "(($ac_try" in
9222
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9223
 
  *) ac_try_echo=$ac_try;;
9224
 
esac
9225
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9226
 
  (eval "$ac_try") 2>&5
 
8065
         { ac_try='test -z "$ac_c_werror_flag"
 
8066
                         || test ! -s conftest.err'
 
8067
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8068
  (eval $ac_try) 2>&5
9227
8069
  ac_status=$?
9228
8070
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229
8071
  (exit $ac_status); }; } &&
9230
8072
         { ac_try='test -s conftest$ac_exeext'
9231
 
  { (case "(($ac_try" in
9232
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9233
 
  *) ac_try_echo=$ac_try;;
9234
 
esac
9235
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9236
 
  (eval "$ac_try") 2>&5
 
8073
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8074
  (eval $ac_try) 2>&5
9237
8075
  ac_status=$?
9238
8076
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239
8077
  (exit $ac_status); }; }; then
9242
8080
  echo "$as_me: failed program was:" >&5
9243
8081
sed 's/^/| /' conftest.$ac_ext >&5
9244
8082
 
9245
 
        ac_cv_lib_svld_dlopen=no
 
8083
ac_cv_lib_svld_dlopen=no
9246
8084
fi
9247
 
 
9248
 
rm -f core conftest.err conftest.$ac_objext \
 
8085
rm -f conftest.err conftest.$ac_objext \
9249
8086
      conftest$ac_exeext conftest.$ac_ext
9250
8087
LIBS=$ac_check_lib_save_LIBS
9251
8088
fi
9252
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9253
 
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
 
8089
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
8090
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9254
8091
if test $ac_cv_lib_svld_dlopen = yes; then
9255
8092
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9256
8093
else
9257
 
  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9258
 
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
 
8094
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
8095
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9259
8096
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9260
8097
  echo $ECHO_N "(cached) $ECHO_C" >&6
9261
8098
else
9268
8105
cat >>conftest.$ac_ext <<_ACEOF
9269
8106
/* end confdefs.h.  */
9270
8107
 
9271
 
/* Override any GCC internal prototype to avoid an error.
9272
 
   Use char because int might match the return type of a GCC
9273
 
   builtin and then its argument prototype would still apply.  */
 
8108
/* Override any gcc2 internal prototype to avoid an error.  */
9274
8109
#ifdef __cplusplus
9275
8110
extern "C"
9276
8111
#endif
 
8112
/* We use char because int might match the return type of a gcc2
 
8113
   builtin and then its argument prototype would still apply.  */
9277
8114
char dld_link ();
9278
8115
int
9279
8116
main ()
9280
8117
{
9281
 
return dld_link ();
 
8118
dld_link ();
9282
8119
  ;
9283
8120
  return 0;
9284
8121
}
9285
8122
_ACEOF
9286
8123
rm -f conftest.$ac_objext conftest$ac_exeext
9287
 
if { (ac_try="$ac_link"
9288
 
case "(($ac_try" in
9289
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9290
 
  *) ac_try_echo=$ac_try;;
9291
 
esac
9292
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9293
 
  (eval "$ac_link") 2>conftest.er1
 
8124
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8125
  (eval $ac_link) 2>conftest.er1
9294
8126
  ac_status=$?
9295
8127
  grep -v '^ *+' conftest.er1 >conftest.err
9296
8128
  rm -f conftest.er1
9297
8129
  cat conftest.err >&5
9298
8130
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299
8131
  (exit $ac_status); } &&
9300
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9301
 
  { (case "(($ac_try" in
9302
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9303
 
  *) ac_try_echo=$ac_try;;
9304
 
esac
9305
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9306
 
  (eval "$ac_try") 2>&5
 
8132
         { ac_try='test -z "$ac_c_werror_flag"
 
8133
                         || test ! -s conftest.err'
 
8134
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8135
  (eval $ac_try) 2>&5
9307
8136
  ac_status=$?
9308
8137
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9309
8138
  (exit $ac_status); }; } &&
9310
8139
         { ac_try='test -s conftest$ac_exeext'
9311
 
  { (case "(($ac_try" in
9312
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9313
 
  *) ac_try_echo=$ac_try;;
9314
 
esac
9315
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9316
 
  (eval "$ac_try") 2>&5
 
8140
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8141
  (eval $ac_try) 2>&5
9317
8142
  ac_status=$?
9318
8143
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319
8144
  (exit $ac_status); }; }; then
9322
8147
  echo "$as_me: failed program was:" >&5
9323
8148
sed 's/^/| /' conftest.$ac_ext >&5
9324
8149
 
9325
 
        ac_cv_lib_dld_dld_link=no
 
8150
ac_cv_lib_dld_dld_link=no
9326
8151
fi
9327
 
 
9328
 
rm -f core conftest.err conftest.$ac_objext \
 
8152
rm -f conftest.err conftest.$ac_objext \
9329
8153
      conftest$ac_exeext conftest.$ac_ext
9330
8154
LIBS=$ac_check_lib_save_LIBS
9331
8155
fi
9332
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9333
 
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
 
8156
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
8157
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9334
8158
if test $ac_cv_lib_dld_dld_link = yes; then
9335
8159
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9336
8160
fi
9365
8189
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9366
8190
 
9367
8191
    save_LDFLAGS="$LDFLAGS"
9368
 
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
8192
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9369
8193
 
9370
8194
    save_LIBS="$LIBS"
9371
8195
    LIBS="$lt_cv_dlopen_libs $LIBS"
9372
8196
 
9373
 
    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9374
 
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
 
8197
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
8198
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9375
8199
if test "${lt_cv_dlopen_self+set}" = set; then
9376
8200
  echo $ECHO_N "(cached) $ECHO_C" >&6
9377
8201
else
9381
8205
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9382
8206
  lt_status=$lt_dlunknown
9383
8207
  cat > conftest.$ac_ext <<EOF
9384
 
#line 9384 "configure"
 
8208
#line 8208 "configure"
9385
8209
#include "confdefs.h"
9386
8210
 
9387
8211
#if HAVE_DLFCN_H
9438
8262
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9439
8263
      /* dlclose (self); */
9440
8264
    }
9441
 
  else
9442
 
    puts (dlerror ());
9443
8265
 
9444
8266
    exit (status);
9445
8267
}
9454
8276
    case x$lt_status in
9455
8277
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9456
8278
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9457
 
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
 
8279
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9458
8280
    esac
9459
8281
  else :
9460
8282
    # compilation failed
9465
8287
 
9466
8288
 
9467
8289
fi
9468
 
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9469
 
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
 
8290
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
8291
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9470
8292
 
9471
8293
    if test "x$lt_cv_dlopen_self" = xyes; then
9472
 
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9473
 
      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9474
 
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
 
8294
      LDFLAGS="$LDFLAGS $link_static_flag"
 
8295
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
8296
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9475
8297
if test "${lt_cv_dlopen_self_static+set}" = set; then
9476
8298
  echo $ECHO_N "(cached) $ECHO_C" >&6
9477
8299
else
9481
8303
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9482
8304
  lt_status=$lt_dlunknown
9483
8305
  cat > conftest.$ac_ext <<EOF
9484
 
#line 9484 "configure"
 
8306
#line 8306 "configure"
9485
8307
#include "confdefs.h"
9486
8308
 
9487
8309
#if HAVE_DLFCN_H
9538
8360
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9539
8361
      /* dlclose (self); */
9540
8362
    }
9541
 
  else
9542
 
    puts (dlerror ());
9543
8363
 
9544
8364
    exit (status);
9545
8365
}
9554
8374
    case x$lt_status in
9555
8375
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9556
8376
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9557
 
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
 
8377
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9558
8378
    esac
9559
8379
  else :
9560
8380
    # compilation failed
9565
8385
 
9566
8386
 
9567
8387
fi
9568
 
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9569
 
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
 
8388
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
8389
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9570
8390
    fi
9571
8391
 
9572
8392
    CPPFLAGS="$save_CPPFLAGS"
9587
8407
fi
9588
8408
 
9589
8409
 
9590
 
# Report which library types will actually be built
9591
 
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9592
 
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9593
 
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
9594
 
echo "${ECHO_T}$can_build_shared" >&6; }
 
8410
# Report which librarie types wil actually be built
 
8411
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
8412
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
8413
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
8414
echo "${ECHO_T}$can_build_shared" >&6
9595
8415
 
9596
 
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9597
 
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
 
8416
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
8417
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9598
8418
test "$can_build_shared" = "no" && enable_shared=no
9599
8419
 
9600
8420
# On AIX, shared libraries and static libraries use the same namespace, and
9614
8434
  fi
9615
8435
    ;;
9616
8436
esac
9617
 
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
9618
 
echo "${ECHO_T}$enable_shared" >&6; }
 
8437
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
8438
echo "${ECHO_T}$enable_shared" >&6
9619
8439
 
9620
 
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9621
 
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
 
8440
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
8441
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9622
8442
# Make sure either enable_shared or enable_static is yes.
9623
8443
test "$enable_shared" = yes || enable_static=yes
9624
 
{ echo "$as_me:$LINENO: result: $enable_static" >&5
9625
 
echo "${ECHO_T}$enable_static" >&6; }
 
8444
echo "$as_me:$LINENO: result: $enable_static" >&5
 
8445
echo "${ECHO_T}$enable_static" >&6
9626
8446
 
9627
8447
# The else clause should only fire when bootstrapping the
9628
8448
# libtool distribution, otherwise you forgot to ship ltmain.sh
9637
8457
  # Now quote all the things that may contain metacharacters while being
9638
8458
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9639
8459
  # variables and quote the copies for generation of the libtool script.
9640
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
8460
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9641
8461
    SED SHELL STRIP \
9642
8462
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9643
8463
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9803
8623
# A C compiler.
9804
8624
LTCC=$lt_LTCC
9805
8625
 
9806
 
# LTCC compiler flags.
9807
 
LTCFLAGS=$lt_LTCFLAGS
9808
 
 
9809
8626
# A language-specific compiler.
9810
8627
CC=$lt_compiler
9811
8628
 
10114
8931
CC="$lt_save_CC"
10115
8932
 
10116
8933
 
10117
 
# Check whether --with-tags was given.
 
8934
# Check whether --with-tags or --without-tags was given.
10118
8935
if test "${with_tags+set}" = set; then
10119
 
  withval=$with_tags; tagnames="$withval"
10120
 
fi
10121
 
 
 
8936
  withval="$with_tags"
 
8937
  tagnames="$withval"
 
8938
fi;
10122
8939
 
10123
8940
if test -f "$ltmain" && test -n "$tagnames"; then
10124
8941
  if test ! -f "${ofile}"; then
10136
8953
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10137
8954
    fi
10138
8955
  fi
10139
 
  if test -z "$LTCFLAGS"; then
10140
 
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10141
 
  fi
10142
8956
 
10143
8957
  # Extract list of available tagged configurations in $ofile.
10144
8958
  # Note that this assumes the entire list is on one line.
10172
8986
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10173
8987
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10174
8988
            (test "X$CXX" != "Xg++"))) ; then
10175
 
          ac_ext=cpp
 
8989
          ac_ext=cc
10176
8990
ac_cpp='$CXXCPP $CPPFLAGS'
10177
8991
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10178
8992
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10191
9005
hardcode_libdir_flag_spec_ld_CXX=
10192
9006
hardcode_libdir_separator_CXX=
10193
9007
hardcode_minus_L_CXX=no
10194
 
hardcode_shlibpath_var_CXX=unsupported
10195
9008
hardcode_automatic_CXX=no
10196
9009
module_cmds_CXX=
10197
9010
module_expsym_cmds_CXX=
10219
9032
lt_simple_compile_test_code="int some_variable = 0;\n"
10220
9033
 
10221
9034
# Code to be used in simple link tests
10222
 
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
 
9035
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10223
9036
 
10224
9037
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10225
9038
 
10226
9039
# If no C compiler was specified, use CC.
10227
9040
LTCC=${LTCC-"$CC"}
10228
9041
 
10229
 
# If no C compiler flags were specified, use CFLAGS.
10230
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10231
 
 
10232
9042
# Allow CC to be a program name with arguments.
10233
9043
compiler=$CC
10234
9044
 
10236
9046
# save warnings/boilerplate of simple test code
10237
9047
ac_outfile=conftest.$ac_objext
10238
9048
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10239
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
9049
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10240
9050
_lt_compiler_boilerplate=`cat conftest.err`
10241
9051
$rm conftest*
10242
9052
 
10243
9053
ac_outfile=conftest.$ac_objext
10244
9054
printf "$lt_simple_link_test_code" >conftest.$ac_ext
10245
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
9055
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10246
9056
_lt_linker_boilerplate=`cat conftest.err`
10247
9057
$rm conftest*
10248
9058
 
10257
9067
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10258
9068
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10259
9069
else
10260
 
  $as_unset lt_cv_prog_gnu_ld
 
9070
  unset lt_cv_prog_gnu_ld
10261
9071
fi
10262
9072
if test -n "${lt_cv_path_LDCXX+set}"; then
10263
9073
  lt_cv_path_LD=$lt_cv_path_LDCXX
10264
9074
else
10265
 
  $as_unset lt_cv_path_LD
 
9075
  unset lt_cv_path_LD
10266
9076
fi
10267
9077
test -z "${LDCXX+set}" || LD=$LDCXX
10268
9078
CC=${CXX-"c++"}
10291
9101
  # Set up default GNU C++ configuration
10292
9102
 
10293
9103
 
10294
 
# Check whether --with-gnu-ld was given.
 
9104
# Check whether --with-gnu-ld or --without-gnu-ld was given.
10295
9105
if test "${with_gnu_ld+set}" = set; then
10296
 
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
9106
  withval="$with_gnu_ld"
 
9107
  test "$withval" = no || with_gnu_ld=yes
10297
9108
else
10298
9109
  with_gnu_ld=no
10299
 
fi
10300
 
 
 
9110
fi;
10301
9111
ac_prog=ld
10302
9112
if test "$GCC" = yes; then
10303
9113
  # Check if gcc -print-prog-name=ld gives a path.
10304
 
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10305
 
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
 
9114
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
9115
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10306
9116
  case $host in
10307
9117
  *-*-mingw*)
10308
9118
    # gcc leaves a trailing carriage return which upsets mingw
10331
9141
    ;;
10332
9142
  esac
10333
9143
elif test "$with_gnu_ld" = yes; then
10334
 
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
10335
 
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
 
9144
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
9145
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10336
9146
else
10337
 
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10338
 
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
 
9147
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
9148
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10339
9149
fi
10340
9150
if test "${lt_cv_path_LD+set}" = set; then
10341
9151
  echo $ECHO_N "(cached) $ECHO_C" >&6
10368
9178
 
10369
9179
LD="$lt_cv_path_LD"
10370
9180
if test -n "$LD"; then
10371
 
  { echo "$as_me:$LINENO: result: $LD" >&5
10372
 
echo "${ECHO_T}$LD" >&6; }
 
9181
  echo "$as_me:$LINENO: result: $LD" >&5
 
9182
echo "${ECHO_T}$LD" >&6
10373
9183
else
10374
 
  { echo "$as_me:$LINENO: result: no" >&5
10375
 
echo "${ECHO_T}no" >&6; }
 
9184
  echo "$as_me:$LINENO: result: no" >&5
 
9185
echo "${ECHO_T}no" >&6
10376
9186
fi
10377
9187
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10378
9188
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10379
9189
   { (exit 1); exit 1; }; }
10380
 
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10381
 
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
 
9190
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
9191
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10382
9192
if test "${lt_cv_prog_gnu_ld+set}" = set; then
10383
9193
  echo $ECHO_N "(cached) $ECHO_C" >&6
10384
9194
else
10392
9202
  ;;
10393
9203
esac
10394
9204
fi
10395
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10396
 
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
 
9205
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
9206
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10397
9207
with_gnu_ld=$lt_cv_prog_gnu_ld
10398
9208
 
10399
9209
 
10443
9253
fi
10444
9254
 
10445
9255
# PORTME: fill in a description of your system's C++ link characteristics
10446
 
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10447
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
9256
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
9257
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10448
9258
ld_shlibs_CXX=yes
10449
9259
case $host_os in
10450
9260
  aix3*)
10473
9283
            ;;
10474
9284
          esac
10475
9285
        done
10476
 
        ;;
10477
9286
      esac
10478
9287
 
10479
9288
      exp_sym_flag='-bexport'
10511
9320
          hardcode_libdir_flag_spec_CXX='-L$libdir'
10512
9321
          hardcode_libdir_separator_CXX=
10513
9322
        fi
10514
 
        ;;
10515
9323
      esac
10516
9324
      shared_flag='-shared'
10517
9325
      if test "$aix_use_runtimelinking" = yes; then
10556
9364
}
10557
9365
_ACEOF
10558
9366
rm -f conftest.$ac_objext conftest$ac_exeext
10559
 
if { (ac_try="$ac_link"
10560
 
case "(($ac_try" in
10561
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10562
 
  *) ac_try_echo=$ac_try;;
10563
 
esac
10564
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10565
 
  (eval "$ac_link") 2>conftest.er1
 
9367
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9368
  (eval $ac_link) 2>conftest.er1
10566
9369
  ac_status=$?
10567
9370
  grep -v '^ *+' conftest.er1 >conftest.err
10568
9371
  rm -f conftest.er1
10569
9372
  cat conftest.err >&5
10570
9373
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571
9374
  (exit $ac_status); } &&
10572
 
         { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10573
 
  { (case "(($ac_try" in
10574
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10575
 
  *) ac_try_echo=$ac_try;;
10576
 
esac
10577
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10578
 
  (eval "$ac_try") 2>&5
 
9375
         { ac_try='test -z "$ac_cxx_werror_flag"
 
9376
                         || test ! -s conftest.err'
 
9377
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9378
  (eval $ac_try) 2>&5
10579
9379
  ac_status=$?
10580
9380
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581
9381
  (exit $ac_status); }; } &&
10582
9382
         { ac_try='test -s conftest$ac_exeext'
10583
 
  { (case "(($ac_try" in
10584
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10585
 
  *) ac_try_echo=$ac_try;;
10586
 
esac
10587
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10588
 
  (eval "$ac_try") 2>&5
 
9383
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9384
  (eval $ac_try) 2>&5
10589
9385
  ac_status=$?
10590
9386
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591
9387
  (exit $ac_status); }; }; then
10599
9395
  echo "$as_me: failed program was:" >&5
10600
9396
sed 's/^/| /' conftest.$ac_ext >&5
10601
9397
 
10602
 
 
10603
9398
fi
10604
 
 
10605
 
rm -f core conftest.err conftest.$ac_objext \
 
9399
rm -f conftest.err conftest.$ac_objext \
10606
9400
      conftest$ac_exeext conftest.$ac_ext
10607
9401
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10608
9402
 
10609
9403
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10610
9404
 
10611
 
      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
9405
      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10612
9406
     else
10613
9407
      if test "$host_cpu" = ia64; then
10614
9408
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10615
9409
        allow_undefined_flag_CXX="-z nodefs"
10616
 
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
 
9410
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10617
9411
      else
10618
9412
        # Determine the default libpath from the value encoded in an empty executable.
10619
9413
        cat >conftest.$ac_ext <<_ACEOF
10632
9426
}
10633
9427
_ACEOF
10634
9428
rm -f conftest.$ac_objext conftest$ac_exeext
10635
 
if { (ac_try="$ac_link"
10636
 
case "(($ac_try" in
10637
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10638
 
  *) ac_try_echo=$ac_try;;
10639
 
esac
10640
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10641
 
  (eval "$ac_link") 2>conftest.er1
 
9429
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9430
  (eval $ac_link) 2>conftest.er1
10642
9431
  ac_status=$?
10643
9432
  grep -v '^ *+' conftest.er1 >conftest.err
10644
9433
  rm -f conftest.er1
10645
9434
  cat conftest.err >&5
10646
9435
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647
9436
  (exit $ac_status); } &&
10648
 
         { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10649
 
  { (case "(($ac_try" in
10650
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10651
 
  *) ac_try_echo=$ac_try;;
10652
 
esac
10653
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10654
 
  (eval "$ac_try") 2>&5
 
9437
         { ac_try='test -z "$ac_cxx_werror_flag"
 
9438
                         || test ! -s conftest.err'
 
9439
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9440
  (eval $ac_try) 2>&5
10655
9441
  ac_status=$?
10656
9442
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657
9443
  (exit $ac_status); }; } &&
10658
9444
         { ac_try='test -s conftest$ac_exeext'
10659
 
  { (case "(($ac_try" in
10660
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10661
 
  *) ac_try_echo=$ac_try;;
10662
 
esac
10663
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10664
 
  (eval "$ac_try") 2>&5
 
9445
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9446
  (eval $ac_try) 2>&5
10665
9447
  ac_status=$?
10666
9448
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667
9449
  (exit $ac_status); }; }; then
10675
9457
  echo "$as_me: failed program was:" >&5
10676
9458
sed 's/^/| /' conftest.$ac_ext >&5
10677
9459
 
10678
 
 
10679
9460
fi
10680
 
 
10681
 
rm -f core conftest.err conftest.$ac_objext \
 
9461
rm -f conftest.err conftest.$ac_objext \
10682
9462
      conftest$ac_exeext conftest.$ac_ext
10683
9463
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10684
9464
 
10687
9467
        # -berok will link without error, but may produce a broken library.
10688
9468
        no_undefined_flag_CXX=' ${wl}-bernotok'
10689
9469
        allow_undefined_flag_CXX=' ${wl}-berok'
 
9470
        # -bexpall does not export symbols beginning with underscore (_)
 
9471
        always_export_symbols_CXX=yes
10690
9472
        # Exported symbols can be pulled into shared objects from archives
10691
 
        whole_archive_flag_spec_CXX='$convenience'
 
9473
        whole_archive_flag_spec_CXX=' '
10692
9474
        archive_cmds_need_lc_CXX=yes
10693
9475
        # This is similar to how AIX traditionally builds its shared libraries.
10694
 
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
9476
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10695
9477
      fi
10696
9478
    fi
10697
9479
    ;;
10698
 
 
10699
 
  beos*)
10700
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10701
 
      allow_undefined_flag_CXX=unsupported
10702
 
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10703
 
      # support --undefined.  This deserves some investigation.  FIXME
10704
 
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10705
 
    else
10706
 
      ld_shlibs_CXX=no
10707
 
    fi
10708
 
    ;;
10709
 
 
10710
9480
  chorus*)
10711
9481
    case $cc_basename in
10712
9482
      *)
10716
9486
    esac
10717
9487
    ;;
10718
9488
 
 
9489
 
10719
9490
  cygwin* | mingw* | pw32*)
10720
9491
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10721
9492
    # as there is no search path for DLLs.
10725
9496
    enable_shared_with_static_runtimes_CXX=yes
10726
9497
 
10727
9498
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10728
 
      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
9499
      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10729
9500
      # If the export-symbols file already is a .def file (1st line
10730
9501
      # is EXPORTS), use it as is; otherwise, prepend...
10731
9502
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10734
9505
        echo EXPORTS > $output_objdir/$soname.def;
10735
9506
        cat $export_symbols >> $output_objdir/$soname.def;
10736
9507
      fi~
10737
 
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
9508
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10738
9509
    else
10739
9510
      ld_shlibs_CXX=no
10740
9511
    fi
10826
9597
  freebsd-elf*)
10827
9598
    archive_cmds_need_lc_CXX=no
10828
9599
    ;;
10829
 
  freebsd* | dragonfly*)
 
9600
  freebsd* | kfreebsd*-gnu | dragonfly*)
10830
9601
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10831
9602
    # conventions
10832
9603
    ld_shlibs_CXX=yes
10871
9642
    ;;
10872
9643
  hpux10*|hpux11*)
10873
9644
    if test $with_gnu_ld = no; then
10874
 
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10875
 
      hardcode_libdir_separator_CXX=:
10876
 
 
10877
9645
      case $host_cpu in
10878
 
      hppa*64*|ia64*)
 
9646
      hppa*64*)
 
9647
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10879
9648
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
 
9649
        hardcode_libdir_separator_CXX=:
 
9650
        ;;
 
9651
      ia64*)
 
9652
        hardcode_libdir_flag_spec_CXX='-L$libdir'
10880
9653
        ;;
10881
9654
      *)
 
9655
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
9656
        hardcode_libdir_separator_CXX=:
10882
9657
        export_dynamic_flag_spec_CXX='${wl}-E'
10883
9658
        ;;
10884
9659
      esac
10885
9660
    fi
10886
9661
    case $host_cpu in
10887
 
    hppa*64*|ia64*)
10888
 
      hardcode_direct_CXX=no
10889
 
      hardcode_shlibpath_var_CXX=no
 
9662
    hppa*64*)
 
9663
      hardcode_direct_CXX=no
 
9664
      hardcode_shlibpath_var_CXX=no
 
9665
      ;;
 
9666
    ia64*)
 
9667
      hardcode_direct_CXX=no
 
9668
      hardcode_shlibpath_var_CXX=no
 
9669
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
9670
                                              # but as the default
 
9671
                                              # location of the library.
10890
9672
      ;;
10891
9673
    *)
10892
9674
      hardcode_direct_CXX=yes
10903
9685
        ;;
10904
9686
      aCC*)
10905
9687
        case $host_cpu in
10906
 
        hppa*64*)
10907
 
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10908
 
          ;;
10909
 
        ia64*)
10910
 
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
9688
        hppa*64*|ia64*)
 
9689
          archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10911
9690
          ;;
10912
9691
        *)
10913
9692
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10927
9706
        if test "$GXX" = yes; then
10928
9707
          if test $with_gnu_ld = no; then
10929
9708
            case $host_cpu in
10930
 
            hppa*64*)
10931
 
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10932
 
              ;;
10933
 
            ia64*)
10934
 
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
9709
            ia64*|hppa*64*)
 
9710
              archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10935
9711
              ;;
10936
9712
            *)
10937
9713
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10945
9721
        ;;
10946
9722
    esac
10947
9723
    ;;
10948
 
  interix3*)
10949
 
    hardcode_direct_CXX=no
10950
 
    hardcode_shlibpath_var_CXX=no
10951
 
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10952
 
    export_dynamic_flag_spec_CXX='${wl}-E'
10953
 
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10954
 
    # Instead, shared libraries are loaded at an image base (0x10000000 by
10955
 
    # default) and relocated if they conflict, which is a slow very memory
10956
 
    # consuming and fragmenting process.  To avoid this, we pick a random,
10957
 
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10958
 
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10959
 
    archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10960
 
    archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10961
 
    ;;
10962
9724
  irix5* | irix6*)
10963
9725
    case $cc_basename in
10964
9726
      CC*)
10985
9747
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10986
9748
    hardcode_libdir_separator_CXX=:
10987
9749
    ;;
10988
 
  linux* | k*bsd*-gnu)
 
9750
  linux*)
10989
9751
    case $cc_basename in
10990
9752
      KCC*)
10991
9753
        # Kuck and Associates, Inc. (KAI) C++ Compiler
11087
9849
        ;;
11088
9850
    esac
11089
9851
    ;;
11090
 
  netbsd* | netbsdelf*-gnu)
 
9852
  netbsd*)
11091
9853
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11092
9854
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11093
9855
      wlarc=
11241
10003
    # FIXME: insert proper C++ library support
11242
10004
    ld_shlibs_CXX=no
11243
10005
    ;;
 
10006
  sco*)
 
10007
    archive_cmds_need_lc_CXX=no
 
10008
    case $cc_basename in
 
10009
      CC*)
 
10010
        # FIXME: insert proper C++ library support
 
10011
        ld_shlibs_CXX=no
 
10012
        ;;
 
10013
      *)
 
10014
        # FIXME: insert proper C++ library support
 
10015
        ld_shlibs_CXX=no
 
10016
        ;;
 
10017
    esac
 
10018
    ;;
11244
10019
  sunos4*)
11245
10020
    case $cc_basename in
11246
10021
      CC*)
11333
10108
        ;;
11334
10109
    esac
11335
10110
    ;;
11336
 
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11337
 
    no_undefined_flag_CXX='${wl}-z,text'
11338
 
    archive_cmds_need_lc_CXX=no
11339
 
    hardcode_shlibpath_var_CXX=no
11340
 
    runpath_var='LD_RUN_PATH'
11341
 
 
11342
 
    case $cc_basename in
11343
 
      CC*)
11344
 
        archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11345
 
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11346
 
        ;;
11347
 
      *)
11348
 
        archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11349
 
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11350
 
        ;;
11351
 
    esac
11352
 
    ;;
11353
 
  sysv5* | sco3.2v5* | sco5v6*)
11354
 
    # Note: We can NOT use -z defs as we might desire, because we do not
11355
 
    # link with -lc, and that would cause any symbols used from libc to
11356
 
    # always be unresolved, which means just about no library would
11357
 
    # ever link correctly.  If we're not using GNU ld we use -z text
11358
 
    # though, which does catch some bad symbols but isn't as heavy-handed
11359
 
    # as -z defs.
11360
 
    # For security reasons, it is highly recommended that you always
11361
 
    # use absolute paths for naming shared libraries, and exclude the
11362
 
    # DT_RUNPATH tag from executables and libraries.  But doing so
11363
 
    # requires that you compile everything twice, which is a pain.
11364
 
    # So that behaviour is only enabled if SCOABSPATH is set to a
11365
 
    # non-empty value in the environment.  Most likely only useful for
11366
 
    # creating official distributions of packages.
11367
 
    # This is a hack until libtool officially supports absolute path
11368
 
    # names for shared libraries.
11369
 
    no_undefined_flag_CXX='${wl}-z,text'
11370
 
    allow_undefined_flag_CXX='${wl}-z,nodefs'
11371
 
    archive_cmds_need_lc_CXX=no
11372
 
    hardcode_shlibpath_var_CXX=no
11373
 
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11374
 
    hardcode_libdir_separator_CXX=':'
11375
 
    link_all_deplibs_CXX=yes
11376
 
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
11377
 
    runpath_var='LD_RUN_PATH'
11378
 
 
11379
 
    case $cc_basename in
11380
 
      CC*)
11381
 
        archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11382
 
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11383
 
        ;;
11384
 
      *)
11385
 
        archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11386
 
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11387
 
        ;;
11388
 
    esac
 
10111
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
 
10112
    archive_cmds_need_lc_CXX=no
11389
10113
    ;;
11390
10114
  tandem*)
11391
10115
    case $cc_basename in
11409
10133
    ld_shlibs_CXX=no
11410
10134
    ;;
11411
10135
esac
11412
 
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11413
 
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
 
10136
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
10137
echo "${ECHO_T}$ld_shlibs_CXX" >&6
11414
10138
test "$ld_shlibs_CXX" = no && can_build_shared=no
11415
10139
 
11416
10140
GCC_CXX="$GXX"
11520
10244
 
11521
10245
# PORTME: override above test on systems where it is broken
11522
10246
case $host_os in
11523
 
interix3*)
11524
 
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
11525
 
  # hack all around it, let's just trust "g++" to DTRT.
11526
 
  predep_objects_CXX=
11527
 
  postdep_objects_CXX=
11528
 
  postdeps_CXX=
11529
 
  ;;
11530
 
 
11531
10247
solaris*)
11532
10248
  case $cc_basename in
11533
10249
  CC*)
11537
10253
    postdeps_CXX='-lCstd -lCrun'
11538
10254
    ;;
11539
10255
  esac
11540
 
  ;;
11541
10256
esac
11542
10257
 
11543
10258
 
11549
10264
lt_prog_compiler_pic_CXX=
11550
10265
lt_prog_compiler_static_CXX=
11551
10266
 
11552
 
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11553
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
10267
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
10268
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11554
10269
 
11555
10270
  # C++ specific cases for pic, static, wl, etc.
11556
10271
  if test "$GXX" = yes; then
11588
10303
      # DJGPP does not support shared libraries at all
11589
10304
      lt_prog_compiler_pic_CXX=
11590
10305
      ;;
11591
 
    interix3*)
11592
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11593
 
      # Instead, we relocate shared libraries at runtime.
11594
 
      ;;
11595
10306
    sysv4*MP*)
11596
10307
      if test -d /usr/nec; then
11597
10308
        lt_prog_compiler_pic_CXX=-Kconform_pic
11654
10365
            ;;
11655
10366
        esac
11656
10367
        ;;
11657
 
      freebsd* | dragonfly*)
 
10368
      freebsd* | kfreebsd*-gnu | dragonfly*)
11658
10369
        # FreeBSD uses GNU C++
11659
10370
        ;;
11660
10371
      hpux9* | hpux10* | hpux11*)
11661
10372
        case $cc_basename in
11662
10373
          CC*)
11663
10374
            lt_prog_compiler_wl_CXX='-Wl,'
11664
 
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
10375
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11665
10376
            if test "$host_cpu" != ia64; then
11666
10377
              lt_prog_compiler_pic_CXX='+Z'
11667
10378
            fi
11668
10379
            ;;
11669
10380
          aCC*)
11670
10381
            lt_prog_compiler_wl_CXX='-Wl,'
11671
 
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
10382
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11672
10383
            case $host_cpu in
11673
10384
            hppa*64*|ia64*)
11674
10385
              # +Z the default
11682
10393
            ;;
11683
10394
        esac
11684
10395
        ;;
11685
 
      interix*)
11686
 
        # This is c89, which is MS Visual C++ (no shared libs)
11687
 
        # Anyone wants to do a port?
11688
 
        ;;
11689
10396
      irix5* | irix6* | nonstopux*)
11690
10397
        case $cc_basename in
11691
10398
          CC*)
11697
10404
            ;;
11698
10405
        esac
11699
10406
        ;;
11700
 
      linux* | k*bsd*-gnu)
 
10407
      linux*)
11701
10408
        case $cc_basename in
11702
10409
          KCC*)
11703
10410
            # KAI C++ Compiler
11740
10447
            ;;
11741
10448
        esac
11742
10449
        ;;
11743
 
      netbsd* | netbsdelf*-gnu)
 
10450
      netbsd*)
11744
10451
        ;;
11745
10452
      osf3* | osf4* | osf5*)
11746
10453
        case $cc_basename in
11765
10472
        ;;
11766
10473
      psos*)
11767
10474
        ;;
 
10475
      sco*)
 
10476
        case $cc_basename in
 
10477
          CC*)
 
10478
            lt_prog_compiler_pic_CXX='-fPIC'
 
10479
            ;;
 
10480
          *)
 
10481
            ;;
 
10482
        esac
 
10483
        ;;
11768
10484
      solaris*)
11769
10485
        case $cc_basename in
11770
10486
          CC*)
11806
10522
            ;;
11807
10523
        esac
11808
10524
        ;;
11809
 
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11810
 
        case $cc_basename in
11811
 
          CC*)
11812
 
            lt_prog_compiler_wl_CXX='-Wl,'
11813
 
            lt_prog_compiler_pic_CXX='-KPIC'
11814
 
            lt_prog_compiler_static_CXX='-Bstatic'
11815
 
            ;;
11816
 
        esac
 
10525
      unixware*)
11817
10526
        ;;
11818
10527
      vxworks*)
11819
10528
        ;;
11823
10532
    esac
11824
10533
  fi
11825
10534
 
11826
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11827
 
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
 
10535
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
10536
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11828
10537
 
11829
10538
#
11830
10539
# Check to make sure the PIC flag actually works.
11831
10540
#
11832
10541
if test -n "$lt_prog_compiler_pic_CXX"; then
11833
10542
 
11834
 
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11835
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
 
10543
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
10544
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11836
10545
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11837
10546
  echo $ECHO_N "(cached) $ECHO_C" >&6
11838
10547
else
11849
10558
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11850
10559
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11851
10560
   -e 's:$: $lt_compiler_flag:'`
11852
 
   (eval echo "\"\$as_me:11852: $lt_compile\"" >&5)
 
10561
   (eval echo "\"\$as_me:10561: $lt_compile\"" >&5)
11853
10562
   (eval "$lt_compile" 2>conftest.err)
11854
10563
   ac_status=$?
11855
10564
   cat conftest.err >&5
11856
 
   echo "$as_me:11856: \$? = $ac_status" >&5
 
10565
   echo "$as_me:10565: \$? = $ac_status" >&5
11857
10566
   if (exit $ac_status) && test -s "$ac_outfile"; then
11858
10567
     # The compiler can only warn and ignore the option if not recognized
11859
10568
     # So say no if there are warnings other than the usual output.
11860
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11861
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11862
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
10569
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
10570
     $SED '/^$/d' conftest.err >conftest.er2
 
10571
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
11863
10572
       lt_prog_compiler_pic_works_CXX=yes
11864
10573
     fi
11865
10574
   fi
11866
10575
   $rm conftest*
11867
10576
 
11868
10577
fi
11869
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11870
 
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
 
10578
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
 
10579
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11871
10580
 
11872
10581
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11873
10582
    case $lt_prog_compiler_pic_CXX in
11890
10599
    ;;
11891
10600
esac
11892
10601
 
11893
 
#
11894
 
# Check to make sure the static flag actually works.
11895
 
#
11896
 
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11897
 
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11898
 
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
11899
 
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11900
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11901
 
else
11902
 
  lt_prog_compiler_static_works_CXX=no
11903
 
   save_LDFLAGS="$LDFLAGS"
11904
 
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11905
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
11906
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11907
 
     # The linker can only warn and ignore the option if not recognized
11908
 
     # So say no if there are warnings
11909
 
     if test -s conftest.err; then
11910
 
       # Append any errors to the config.log.
11911
 
       cat conftest.err 1>&5
11912
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11913
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11914
 
       if diff conftest.exp conftest.er2 >/dev/null; then
11915
 
         lt_prog_compiler_static_works_CXX=yes
11916
 
       fi
11917
 
     else
11918
 
       lt_prog_compiler_static_works_CXX=yes
11919
 
     fi
11920
 
   fi
11921
 
   $rm conftest*
11922
 
   LDFLAGS="$save_LDFLAGS"
11923
 
 
11924
 
fi
11925
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11926
 
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
11927
 
 
11928
 
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11929
 
    :
11930
 
else
11931
 
    lt_prog_compiler_static_CXX=
11932
 
fi
11933
 
 
11934
 
 
11935
 
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11936
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
10602
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
10603
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11937
10604
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11938
10605
  echo $ECHO_N "(cached) $ECHO_C" >&6
11939
10606
else
11953
10620
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11954
10621
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11955
10622
   -e 's:$: $lt_compiler_flag:'`
11956
 
   (eval echo "\"\$as_me:11956: $lt_compile\"" >&5)
 
10623
   (eval echo "\"\$as_me:10623: $lt_compile\"" >&5)
11957
10624
   (eval "$lt_compile" 2>out/conftest.err)
11958
10625
   ac_status=$?
11959
10626
   cat out/conftest.err >&5
11960
 
   echo "$as_me:11960: \$? = $ac_status" >&5
 
10627
   echo "$as_me:10627: \$? = $ac_status" >&5
11961
10628
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11962
10629
   then
11963
10630
     # The compiler can only warn and ignore the option if not recognized
11964
10631
     # So say no if there are warnings
11965
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11966
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11967
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
10632
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
 
10633
     $SED '/^$/d' out/conftest.err >out/conftest.er2
 
10634
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11968
10635
       lt_cv_prog_compiler_c_o_CXX=yes
11969
10636
     fi
11970
10637
   fi
11979
10646
   $rm conftest*
11980
10647
 
11981
10648
fi
11982
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11983
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
 
10649
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
10650
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11984
10651
 
11985
10652
 
11986
10653
hard_links="nottested"
11987
10654
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11988
10655
  # do not overwrite the value of need_locks provided by the user
11989
 
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11990
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
10656
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
10657
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11991
10658
  hard_links=yes
11992
10659
  $rm conftest*
11993
10660
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11994
10661
  touch conftest.a
11995
10662
  ln conftest.a conftest.b 2>&5 || hard_links=no
11996
10663
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11997
 
  { echo "$as_me:$LINENO: result: $hard_links" >&5
11998
 
echo "${ECHO_T}$hard_links" >&6; }
 
10664
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
10665
echo "${ECHO_T}$hard_links" >&6
11999
10666
  if test "$hard_links" = no; then
12000
10667
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12001
10668
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12005
10672
  need_locks=no
12006
10673
fi
12007
10674
 
12008
 
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12009
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
10675
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
10676
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12010
10677
 
12011
10678
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12012
10679
  case $host_os in
12025
10692
  cygwin* | mingw*)
12026
10693
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12027
10694
  ;;
12028
 
  linux* | k*bsd*-gnu)
12029
 
    link_all_deplibs_CXX=no
12030
 
  ;;
12031
10695
  *)
12032
10696
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12033
10697
  ;;
12034
10698
  esac
12035
10699
 
12036
 
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12037
 
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
 
10700
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
10701
echo "${ECHO_T}$ld_shlibs_CXX" >&6
12038
10702
test "$ld_shlibs_CXX" = no && can_build_shared=no
12039
10703
 
 
10704
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
10705
if test "$GCC" = yes; then
 
10706
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
10707
fi
 
10708
 
12040
10709
#
12041
10710
# Do we need to explicitly link libc?
12042
10711
#
12054
10723
      # Test whether the compiler implicitly links with -lc since on some
12055
10724
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12056
10725
      # to ld, don't add -lc before -lgcc.
12057
 
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12058
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
10726
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
10727
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12059
10728
      $rm conftest*
12060
10729
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12061
10730
 
12069
10738
        libobjs=conftest.$ac_objext
12070
10739
        deplibs=
12071
10740
        wl=$lt_prog_compiler_wl_CXX
12072
 
        pic_flag=$lt_prog_compiler_pic_CXX
12073
10741
        compiler_flags=-v
12074
10742
        linker_flags=-v
12075
10743
        verstring=
12092
10760
        cat conftest.err 1>&5
12093
10761
      fi
12094
10762
      $rm conftest*
12095
 
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12096
 
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
 
10763
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
10764
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12097
10765
      ;;
12098
10766
    esac
12099
10767
  fi
12100
10768
  ;;
12101
10769
esac
12102
10770
 
12103
 
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12104
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
10771
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
10772
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12105
10773
library_names_spec=
12106
10774
libname_spec='lib$name'
12107
10775
soname_spec=
12307
10975
  dynamic_linker=no
12308
10976
  ;;
12309
10977
 
 
10978
kfreebsd*-gnu)
 
10979
  version_type=linux
 
10980
  need_lib_prefix=no
 
10981
  need_version=no
 
10982
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
10983
  soname_spec='${libname}${release}${shared_ext}$major'
 
10984
  shlibpath_var=LD_LIBRARY_PATH
 
10985
  shlibpath_overrides_runpath=no
 
10986
  hardcode_into_libs=yes
 
10987
  dynamic_linker='GNU ld.so'
 
10988
  ;;
 
10989
 
12310
10990
freebsd* | dragonfly*)
12311
10991
  # DragonFly does not have aout.  When/if they implement a new
12312
10992
  # versioning mechanism, adjust this.
12339
11019
    shlibpath_overrides_runpath=yes
12340
11020
    hardcode_into_libs=yes
12341
11021
    ;;
12342
 
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12343
 
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
11022
  *) # from 3.2 on
12344
11023
    shlibpath_overrides_runpath=no
12345
11024
    hardcode_into_libs=yes
12346
11025
    ;;
12347
 
  freebsd*) # from 4.6 on
12348
 
    shlibpath_overrides_runpath=yes
12349
 
    hardcode_into_libs=yes
12350
 
    ;;
12351
11026
  esac
12352
11027
  ;;
12353
11028
 
12407
11082
  postinstall_cmds='chmod 555 $lib'
12408
11083
  ;;
12409
11084
 
12410
 
interix3*)
12411
 
  version_type=linux
12412
 
  need_lib_prefix=no
12413
 
  need_version=no
12414
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12415
 
  soname_spec='${libname}${release}${shared_ext}$major'
12416
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12417
 
  shlibpath_var=LD_LIBRARY_PATH
12418
 
  shlibpath_overrides_runpath=no
12419
 
  hardcode_into_libs=yes
12420
 
  ;;
12421
 
 
12422
11085
irix5* | irix6* | nonstopux*)
12423
11086
  case $host_os in
12424
11087
    nonstopux*) version_type=nonstopux ;;
12462
11125
  ;;
12463
11126
 
12464
11127
# This must be Linux ELF.
12465
 
linux* | k*bsd*-gnu)
 
11128
linux*)
12466
11129
  version_type=linux
12467
11130
  need_lib_prefix=no
12468
11131
  need_version=no
12491
11154
  dynamic_linker='GNU/Linux ld.so'
12492
11155
  ;;
12493
11156
 
12494
 
netbsdelf*-gnu)
 
11157
knetbsd*-gnu)
12495
11158
  version_type=linux
12496
11159
  need_lib_prefix=no
12497
11160
  need_version=no
12500
11163
  shlibpath_var=LD_LIBRARY_PATH
12501
11164
  shlibpath_overrides_runpath=no
12502
11165
  hardcode_into_libs=yes
12503
 
  dynamic_linker='NetBSD ld.elf_so'
 
11166
  dynamic_linker='GNU ld.so'
12504
11167
  ;;
12505
11168
 
12506
11169
netbsd*)
12540
11203
 
12541
11204
openbsd*)
12542
11205
  version_type=sunos
12543
 
  sys_lib_dlsearch_path_spec="/usr/lib"
12544
11206
  need_lib_prefix=no
12545
11207
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12546
11208
  case $host_os in
12584
11246
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12585
11247
  ;;
12586
11248
 
 
11249
sco3.2v5*)
 
11250
  version_type=osf
 
11251
  soname_spec='${libname}${release}${shared_ext}$major'
 
11252
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11253
  shlibpath_var=LD_LIBRARY_PATH
 
11254
  ;;
 
11255
 
12587
11256
solaris*)
12588
11257
  version_type=linux
12589
11258
  need_lib_prefix=no
12609
11278
  need_version=yes
12610
11279
  ;;
12611
11280
 
12612
 
sysv4 | sysv4.3*)
 
11281
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12613
11282
  version_type=linux
12614
11283
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12615
11284
  soname_spec='${libname}${release}${shared_ext}$major'
12642
11311
  fi
12643
11312
  ;;
12644
11313
 
12645
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12646
 
  version_type=freebsd-elf
12647
 
  need_lib_prefix=no
12648
 
  need_version=no
12649
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12650
 
  soname_spec='${libname}${release}${shared_ext}$major'
12651
 
  shlibpath_var=LD_LIBRARY_PATH
12652
 
  hardcode_into_libs=yes
12653
 
  if test "$with_gnu_ld" = yes; then
12654
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12655
 
    shlibpath_overrides_runpath=no
12656
 
  else
12657
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12658
 
    shlibpath_overrides_runpath=yes
12659
 
    case $host_os in
12660
 
      sco3.2v5*)
12661
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12662
 
        ;;
12663
 
    esac
12664
 
  fi
12665
 
  sys_lib_dlsearch_path_spec='/usr/lib'
12666
 
  ;;
12667
 
 
12668
11314
uts4*)
12669
11315
  version_type=linux
12670
11316
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12676
11322
  dynamic_linker=no
12677
11323
  ;;
12678
11324
esac
12679
 
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12680
 
echo "${ECHO_T}$dynamic_linker" >&6; }
 
11325
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
11326
echo "${ECHO_T}$dynamic_linker" >&6
12681
11327
test "$dynamic_linker" = no && can_build_shared=no
12682
11328
 
12683
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12684
 
if test "$GCC" = yes; then
12685
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12686
 
fi
12687
 
 
12688
 
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12689
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
11329
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
11330
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12690
11331
hardcode_action_CXX=
12691
11332
if test -n "$hardcode_libdir_flag_spec_CXX" || \
12692
11333
   test -n "$runpath_var_CXX" || \
12710
11351
  # directories.
12711
11352
  hardcode_action_CXX=unsupported
12712
11353
fi
12713
 
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12714
 
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
 
11354
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
11355
echo "${ECHO_T}$hardcode_action_CXX" >&6
12715
11356
 
12716
11357
if test "$hardcode_action_CXX" = relink; then
12717
11358
  # Fast installation is not supported
12722
11363
  enable_fast_install=needless
12723
11364
fi
12724
11365
 
 
11366
striplib=
 
11367
old_striplib=
 
11368
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
11369
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
11370
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
11371
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
11372
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
11373
  echo "$as_me:$LINENO: result: yes" >&5
 
11374
echo "${ECHO_T}yes" >&6
 
11375
else
 
11376
# FIXME - insert some real tests, host_os isn't really good enough
 
11377
  case $host_os in
 
11378
   darwin*)
 
11379
       if test -n "$STRIP" ; then
 
11380
         striplib="$STRIP -x"
 
11381
         echo "$as_me:$LINENO: result: yes" >&5
 
11382
echo "${ECHO_T}yes" >&6
 
11383
       else
 
11384
  echo "$as_me:$LINENO: result: no" >&5
 
11385
echo "${ECHO_T}no" >&6
 
11386
fi
 
11387
       ;;
 
11388
   *)
 
11389
  echo "$as_me:$LINENO: result: no" >&5
 
11390
echo "${ECHO_T}no" >&6
 
11391
    ;;
 
11392
  esac
 
11393
fi
 
11394
 
 
11395
if test "x$enable_dlopen" != xyes; then
 
11396
  enable_dlopen=unknown
 
11397
  enable_dlopen_self=unknown
 
11398
  enable_dlopen_self_static=unknown
 
11399
else
 
11400
  lt_cv_dlopen=no
 
11401
  lt_cv_dlopen_libs=
 
11402
 
 
11403
  case $host_os in
 
11404
  beos*)
 
11405
    lt_cv_dlopen="load_add_on"
 
11406
    lt_cv_dlopen_libs=
 
11407
    lt_cv_dlopen_self=yes
 
11408
    ;;
 
11409
 
 
11410
  mingw* | pw32*)
 
11411
    lt_cv_dlopen="LoadLibrary"
 
11412
    lt_cv_dlopen_libs=
 
11413
   ;;
 
11414
 
 
11415
  cygwin*)
 
11416
    lt_cv_dlopen="dlopen"
 
11417
    lt_cv_dlopen_libs=
 
11418
   ;;
 
11419
 
 
11420
  darwin*)
 
11421
  # if libdl is installed we need to link against it
 
11422
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
11423
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
11424
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
11425
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11426
else
 
11427
  ac_check_lib_save_LIBS=$LIBS
 
11428
LIBS="-ldl  $LIBS"
 
11429
cat >conftest.$ac_ext <<_ACEOF
 
11430
/* confdefs.h.  */
 
11431
_ACEOF
 
11432
cat confdefs.h >>conftest.$ac_ext
 
11433
cat >>conftest.$ac_ext <<_ACEOF
 
11434
/* end confdefs.h.  */
 
11435
 
 
11436
/* Override any gcc2 internal prototype to avoid an error.  */
 
11437
#ifdef __cplusplus
 
11438
extern "C"
 
11439
#endif
 
11440
/* We use char because int might match the return type of a gcc2
 
11441
   builtin and then its argument prototype would still apply.  */
 
11442
char dlopen ();
 
11443
int
 
11444
main ()
 
11445
{
 
11446
dlopen ();
 
11447
  ;
 
11448
  return 0;
 
11449
}
 
11450
_ACEOF
 
11451
rm -f conftest.$ac_objext conftest$ac_exeext
 
11452
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11453
  (eval $ac_link) 2>conftest.er1
 
11454
  ac_status=$?
 
11455
  grep -v '^ *+' conftest.er1 >conftest.err
 
11456
  rm -f conftest.er1
 
11457
  cat conftest.err >&5
 
11458
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11459
  (exit $ac_status); } &&
 
11460
         { ac_try='test -z "$ac_cxx_werror_flag"
 
11461
                         || test ! -s conftest.err'
 
11462
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11463
  (eval $ac_try) 2>&5
 
11464
  ac_status=$?
 
11465
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11466
  (exit $ac_status); }; } &&
 
11467
         { ac_try='test -s conftest$ac_exeext'
 
11468
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11469
  (eval $ac_try) 2>&5
 
11470
  ac_status=$?
 
11471
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11472
  (exit $ac_status); }; }; then
 
11473
  ac_cv_lib_dl_dlopen=yes
 
11474
else
 
11475
  echo "$as_me: failed program was:" >&5
 
11476
sed 's/^/| /' conftest.$ac_ext >&5
 
11477
 
 
11478
ac_cv_lib_dl_dlopen=no
 
11479
fi
 
11480
rm -f conftest.err conftest.$ac_objext \
 
11481
      conftest$ac_exeext conftest.$ac_ext
 
11482
LIBS=$ac_check_lib_save_LIBS
 
11483
fi
 
11484
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
11485
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
11486
if test $ac_cv_lib_dl_dlopen = yes; then
 
11487
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
11488
else
 
11489
 
 
11490
    lt_cv_dlopen="dyld"
 
11491
    lt_cv_dlopen_libs=
 
11492
    lt_cv_dlopen_self=yes
 
11493
 
 
11494
fi
 
11495
 
 
11496
   ;;
 
11497
 
 
11498
  *)
 
11499
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
11500
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
11501
if test "${ac_cv_func_shl_load+set}" = set; then
 
11502
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11503
else
 
11504
  cat >conftest.$ac_ext <<_ACEOF
 
11505
/* confdefs.h.  */
 
11506
_ACEOF
 
11507
cat confdefs.h >>conftest.$ac_ext
 
11508
cat >>conftest.$ac_ext <<_ACEOF
 
11509
/* end confdefs.h.  */
 
11510
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
11511
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
11512
#define shl_load innocuous_shl_load
 
11513
 
 
11514
/* System header to define __stub macros and hopefully few prototypes,
 
11515
    which can conflict with char shl_load (); below.
 
11516
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
11517
    <limits.h> exists even on freestanding compilers.  */
 
11518
 
 
11519
#ifdef __STDC__
 
11520
# include <limits.h>
 
11521
#else
 
11522
# include <assert.h>
 
11523
#endif
 
11524
 
 
11525
#undef shl_load
 
11526
 
 
11527
/* Override any gcc2 internal prototype to avoid an error.  */
 
11528
#ifdef __cplusplus
 
11529
extern "C"
 
11530
{
 
11531
#endif
 
11532
/* We use char because int might match the return type of a gcc2
 
11533
   builtin and then its argument prototype would still apply.  */
 
11534
char shl_load ();
 
11535
/* The GNU C library defines this for functions which it implements
 
11536
    to always fail with ENOSYS.  Some functions are actually named
 
11537
    something starting with __ and the normal name is an alias.  */
 
11538
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
11539
choke me
 
11540
#else
 
11541
char (*f) () = shl_load;
 
11542
#endif
 
11543
#ifdef __cplusplus
 
11544
}
 
11545
#endif
 
11546
 
 
11547
int
 
11548
main ()
 
11549
{
 
11550
return f != shl_load;
 
11551
  ;
 
11552
  return 0;
 
11553
}
 
11554
_ACEOF
 
11555
rm -f conftest.$ac_objext conftest$ac_exeext
 
11556
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11557
  (eval $ac_link) 2>conftest.er1
 
11558
  ac_status=$?
 
11559
  grep -v '^ *+' conftest.er1 >conftest.err
 
11560
  rm -f conftest.er1
 
11561
  cat conftest.err >&5
 
11562
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11563
  (exit $ac_status); } &&
 
11564
         { ac_try='test -z "$ac_cxx_werror_flag"
 
11565
                         || test ! -s conftest.err'
 
11566
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11567
  (eval $ac_try) 2>&5
 
11568
  ac_status=$?
 
11569
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11570
  (exit $ac_status); }; } &&
 
11571
         { ac_try='test -s conftest$ac_exeext'
 
11572
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11573
  (eval $ac_try) 2>&5
 
11574
  ac_status=$?
 
11575
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11576
  (exit $ac_status); }; }; then
 
11577
  ac_cv_func_shl_load=yes
 
11578
else
 
11579
  echo "$as_me: failed program was:" >&5
 
11580
sed 's/^/| /' conftest.$ac_ext >&5
 
11581
 
 
11582
ac_cv_func_shl_load=no
 
11583
fi
 
11584
rm -f conftest.err conftest.$ac_objext \
 
11585
      conftest$ac_exeext conftest.$ac_ext
 
11586
fi
 
11587
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
11588
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
11589
if test $ac_cv_func_shl_load = yes; then
 
11590
  lt_cv_dlopen="shl_load"
 
11591
else
 
11592
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
11593
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
11594
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
11595
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11596
else
 
11597
  ac_check_lib_save_LIBS=$LIBS
 
11598
LIBS="-ldld  $LIBS"
 
11599
cat >conftest.$ac_ext <<_ACEOF
 
11600
/* confdefs.h.  */
 
11601
_ACEOF
 
11602
cat confdefs.h >>conftest.$ac_ext
 
11603
cat >>conftest.$ac_ext <<_ACEOF
 
11604
/* end confdefs.h.  */
 
11605
 
 
11606
/* Override any gcc2 internal prototype to avoid an error.  */
 
11607
#ifdef __cplusplus
 
11608
extern "C"
 
11609
#endif
 
11610
/* We use char because int might match the return type of a gcc2
 
11611
   builtin and then its argument prototype would still apply.  */
 
11612
char shl_load ();
 
11613
int
 
11614
main ()
 
11615
{
 
11616
shl_load ();
 
11617
  ;
 
11618
  return 0;
 
11619
}
 
11620
_ACEOF
 
11621
rm -f conftest.$ac_objext conftest$ac_exeext
 
11622
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11623
  (eval $ac_link) 2>conftest.er1
 
11624
  ac_status=$?
 
11625
  grep -v '^ *+' conftest.er1 >conftest.err
 
11626
  rm -f conftest.er1
 
11627
  cat conftest.err >&5
 
11628
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11629
  (exit $ac_status); } &&
 
11630
         { ac_try='test -z "$ac_cxx_werror_flag"
 
11631
                         || test ! -s conftest.err'
 
11632
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11633
  (eval $ac_try) 2>&5
 
11634
  ac_status=$?
 
11635
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11636
  (exit $ac_status); }; } &&
 
11637
         { ac_try='test -s conftest$ac_exeext'
 
11638
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11639
  (eval $ac_try) 2>&5
 
11640
  ac_status=$?
 
11641
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11642
  (exit $ac_status); }; }; then
 
11643
  ac_cv_lib_dld_shl_load=yes
 
11644
else
 
11645
  echo "$as_me: failed program was:" >&5
 
11646
sed 's/^/| /' conftest.$ac_ext >&5
 
11647
 
 
11648
ac_cv_lib_dld_shl_load=no
 
11649
fi
 
11650
rm -f conftest.err conftest.$ac_objext \
 
11651
      conftest$ac_exeext conftest.$ac_ext
 
11652
LIBS=$ac_check_lib_save_LIBS
 
11653
fi
 
11654
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
11655
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
11656
if test $ac_cv_lib_dld_shl_load = yes; then
 
11657
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
11658
else
 
11659
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
11660
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
11661
if test "${ac_cv_func_dlopen+set}" = set; then
 
11662
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11663
else
 
11664
  cat >conftest.$ac_ext <<_ACEOF
 
11665
/* confdefs.h.  */
 
11666
_ACEOF
 
11667
cat confdefs.h >>conftest.$ac_ext
 
11668
cat >>conftest.$ac_ext <<_ACEOF
 
11669
/* end confdefs.h.  */
 
11670
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
11671
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
11672
#define dlopen innocuous_dlopen
 
11673
 
 
11674
/* System header to define __stub macros and hopefully few prototypes,
 
11675
    which can conflict with char dlopen (); below.
 
11676
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
11677
    <limits.h> exists even on freestanding compilers.  */
 
11678
 
 
11679
#ifdef __STDC__
 
11680
# include <limits.h>
 
11681
#else
 
11682
# include <assert.h>
 
11683
#endif
 
11684
 
 
11685
#undef dlopen
 
11686
 
 
11687
/* Override any gcc2 internal prototype to avoid an error.  */
 
11688
#ifdef __cplusplus
 
11689
extern "C"
 
11690
{
 
11691
#endif
 
11692
/* We use char because int might match the return type of a gcc2
 
11693
   builtin and then its argument prototype would still apply.  */
 
11694
char dlopen ();
 
11695
/* The GNU C library defines this for functions which it implements
 
11696
    to always fail with ENOSYS.  Some functions are actually named
 
11697
    something starting with __ and the normal name is an alias.  */
 
11698
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
11699
choke me
 
11700
#else
 
11701
char (*f) () = dlopen;
 
11702
#endif
 
11703
#ifdef __cplusplus
 
11704
}
 
11705
#endif
 
11706
 
 
11707
int
 
11708
main ()
 
11709
{
 
11710
return f != dlopen;
 
11711
  ;
 
11712
  return 0;
 
11713
}
 
11714
_ACEOF
 
11715
rm -f conftest.$ac_objext conftest$ac_exeext
 
11716
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11717
  (eval $ac_link) 2>conftest.er1
 
11718
  ac_status=$?
 
11719
  grep -v '^ *+' conftest.er1 >conftest.err
 
11720
  rm -f conftest.er1
 
11721
  cat conftest.err >&5
 
11722
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11723
  (exit $ac_status); } &&
 
11724
         { ac_try='test -z "$ac_cxx_werror_flag"
 
11725
                         || test ! -s conftest.err'
 
11726
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11727
  (eval $ac_try) 2>&5
 
11728
  ac_status=$?
 
11729
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11730
  (exit $ac_status); }; } &&
 
11731
         { ac_try='test -s conftest$ac_exeext'
 
11732
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11733
  (eval $ac_try) 2>&5
 
11734
  ac_status=$?
 
11735
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11736
  (exit $ac_status); }; }; then
 
11737
  ac_cv_func_dlopen=yes
 
11738
else
 
11739
  echo "$as_me: failed program was:" >&5
 
11740
sed 's/^/| /' conftest.$ac_ext >&5
 
11741
 
 
11742
ac_cv_func_dlopen=no
 
11743
fi
 
11744
rm -f conftest.err conftest.$ac_objext \
 
11745
      conftest$ac_exeext conftest.$ac_ext
 
11746
fi
 
11747
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
11748
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
11749
if test $ac_cv_func_dlopen = yes; then
 
11750
  lt_cv_dlopen="dlopen"
 
11751
else
 
11752
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
11753
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
11754
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
11755
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11756
else
 
11757
  ac_check_lib_save_LIBS=$LIBS
 
11758
LIBS="-ldl  $LIBS"
 
11759
cat >conftest.$ac_ext <<_ACEOF
 
11760
/* confdefs.h.  */
 
11761
_ACEOF
 
11762
cat confdefs.h >>conftest.$ac_ext
 
11763
cat >>conftest.$ac_ext <<_ACEOF
 
11764
/* end confdefs.h.  */
 
11765
 
 
11766
/* Override any gcc2 internal prototype to avoid an error.  */
 
11767
#ifdef __cplusplus
 
11768
extern "C"
 
11769
#endif
 
11770
/* We use char because int might match the return type of a gcc2
 
11771
   builtin and then its argument prototype would still apply.  */
 
11772
char dlopen ();
 
11773
int
 
11774
main ()
 
11775
{
 
11776
dlopen ();
 
11777
  ;
 
11778
  return 0;
 
11779
}
 
11780
_ACEOF
 
11781
rm -f conftest.$ac_objext conftest$ac_exeext
 
11782
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11783
  (eval $ac_link) 2>conftest.er1
 
11784
  ac_status=$?
 
11785
  grep -v '^ *+' conftest.er1 >conftest.err
 
11786
  rm -f conftest.er1
 
11787
  cat conftest.err >&5
 
11788
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11789
  (exit $ac_status); } &&
 
11790
         { ac_try='test -z "$ac_cxx_werror_flag"
 
11791
                         || test ! -s conftest.err'
 
11792
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11793
  (eval $ac_try) 2>&5
 
11794
  ac_status=$?
 
11795
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11796
  (exit $ac_status); }; } &&
 
11797
         { ac_try='test -s conftest$ac_exeext'
 
11798
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11799
  (eval $ac_try) 2>&5
 
11800
  ac_status=$?
 
11801
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11802
  (exit $ac_status); }; }; then
 
11803
  ac_cv_lib_dl_dlopen=yes
 
11804
else
 
11805
  echo "$as_me: failed program was:" >&5
 
11806
sed 's/^/| /' conftest.$ac_ext >&5
 
11807
 
 
11808
ac_cv_lib_dl_dlopen=no
 
11809
fi
 
11810
rm -f conftest.err conftest.$ac_objext \
 
11811
      conftest$ac_exeext conftest.$ac_ext
 
11812
LIBS=$ac_check_lib_save_LIBS
 
11813
fi
 
11814
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
11815
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
11816
if test $ac_cv_lib_dl_dlopen = yes; then
 
11817
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
11818
else
 
11819
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
11820
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
11821
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
11822
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11823
else
 
11824
  ac_check_lib_save_LIBS=$LIBS
 
11825
LIBS="-lsvld  $LIBS"
 
11826
cat >conftest.$ac_ext <<_ACEOF
 
11827
/* confdefs.h.  */
 
11828
_ACEOF
 
11829
cat confdefs.h >>conftest.$ac_ext
 
11830
cat >>conftest.$ac_ext <<_ACEOF
 
11831
/* end confdefs.h.  */
 
11832
 
 
11833
/* Override any gcc2 internal prototype to avoid an error.  */
 
11834
#ifdef __cplusplus
 
11835
extern "C"
 
11836
#endif
 
11837
/* We use char because int might match the return type of a gcc2
 
11838
   builtin and then its argument prototype would still apply.  */
 
11839
char dlopen ();
 
11840
int
 
11841
main ()
 
11842
{
 
11843
dlopen ();
 
11844
  ;
 
11845
  return 0;
 
11846
}
 
11847
_ACEOF
 
11848
rm -f conftest.$ac_objext conftest$ac_exeext
 
11849
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11850
  (eval $ac_link) 2>conftest.er1
 
11851
  ac_status=$?
 
11852
  grep -v '^ *+' conftest.er1 >conftest.err
 
11853
  rm -f conftest.er1
 
11854
  cat conftest.err >&5
 
11855
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11856
  (exit $ac_status); } &&
 
11857
         { ac_try='test -z "$ac_cxx_werror_flag"
 
11858
                         || test ! -s conftest.err'
 
11859
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11860
  (eval $ac_try) 2>&5
 
11861
  ac_status=$?
 
11862
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11863
  (exit $ac_status); }; } &&
 
11864
         { ac_try='test -s conftest$ac_exeext'
 
11865
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11866
  (eval $ac_try) 2>&5
 
11867
  ac_status=$?
 
11868
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11869
  (exit $ac_status); }; }; then
 
11870
  ac_cv_lib_svld_dlopen=yes
 
11871
else
 
11872
  echo "$as_me: failed program was:" >&5
 
11873
sed 's/^/| /' conftest.$ac_ext >&5
 
11874
 
 
11875
ac_cv_lib_svld_dlopen=no
 
11876
fi
 
11877
rm -f conftest.err conftest.$ac_objext \
 
11878
      conftest$ac_exeext conftest.$ac_ext
 
11879
LIBS=$ac_check_lib_save_LIBS
 
11880
fi
 
11881
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
11882
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
11883
if test $ac_cv_lib_svld_dlopen = yes; then
 
11884
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
11885
else
 
11886
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
11887
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
11888
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
11889
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11890
else
 
11891
  ac_check_lib_save_LIBS=$LIBS
 
11892
LIBS="-ldld  $LIBS"
 
11893
cat >conftest.$ac_ext <<_ACEOF
 
11894
/* confdefs.h.  */
 
11895
_ACEOF
 
11896
cat confdefs.h >>conftest.$ac_ext
 
11897
cat >>conftest.$ac_ext <<_ACEOF
 
11898
/* end confdefs.h.  */
 
11899
 
 
11900
/* Override any gcc2 internal prototype to avoid an error.  */
 
11901
#ifdef __cplusplus
 
11902
extern "C"
 
11903
#endif
 
11904
/* We use char because int might match the return type of a gcc2
 
11905
   builtin and then its argument prototype would still apply.  */
 
11906
char dld_link ();
 
11907
int
 
11908
main ()
 
11909
{
 
11910
dld_link ();
 
11911
  ;
 
11912
  return 0;
 
11913
}
 
11914
_ACEOF
 
11915
rm -f conftest.$ac_objext conftest$ac_exeext
 
11916
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11917
  (eval $ac_link) 2>conftest.er1
 
11918
  ac_status=$?
 
11919
  grep -v '^ *+' conftest.er1 >conftest.err
 
11920
  rm -f conftest.er1
 
11921
  cat conftest.err >&5
 
11922
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11923
  (exit $ac_status); } &&
 
11924
         { ac_try='test -z "$ac_cxx_werror_flag"
 
11925
                         || test ! -s conftest.err'
 
11926
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11927
  (eval $ac_try) 2>&5
 
11928
  ac_status=$?
 
11929
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11930
  (exit $ac_status); }; } &&
 
11931
         { ac_try='test -s conftest$ac_exeext'
 
11932
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11933
  (eval $ac_try) 2>&5
 
11934
  ac_status=$?
 
11935
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11936
  (exit $ac_status); }; }; then
 
11937
  ac_cv_lib_dld_dld_link=yes
 
11938
else
 
11939
  echo "$as_me: failed program was:" >&5
 
11940
sed 's/^/| /' conftest.$ac_ext >&5
 
11941
 
 
11942
ac_cv_lib_dld_dld_link=no
 
11943
fi
 
11944
rm -f conftest.err conftest.$ac_objext \
 
11945
      conftest$ac_exeext conftest.$ac_ext
 
11946
LIBS=$ac_check_lib_save_LIBS
 
11947
fi
 
11948
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
11949
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
11950
if test $ac_cv_lib_dld_dld_link = yes; then
 
11951
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
11952
fi
 
11953
 
 
11954
 
 
11955
fi
 
11956
 
 
11957
 
 
11958
fi
 
11959
 
 
11960
 
 
11961
fi
 
11962
 
 
11963
 
 
11964
fi
 
11965
 
 
11966
 
 
11967
fi
 
11968
 
 
11969
    ;;
 
11970
  esac
 
11971
 
 
11972
  if test "x$lt_cv_dlopen" != xno; then
 
11973
    enable_dlopen=yes
 
11974
  else
 
11975
    enable_dlopen=no
 
11976
  fi
 
11977
 
 
11978
  case $lt_cv_dlopen in
 
11979
  dlopen)
 
11980
    save_CPPFLAGS="$CPPFLAGS"
 
11981
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
11982
 
 
11983
    save_LDFLAGS="$LDFLAGS"
 
11984
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
11985
 
 
11986
    save_LIBS="$LIBS"
 
11987
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
11988
 
 
11989
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
11990
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
11991
if test "${lt_cv_dlopen_self+set}" = set; then
 
11992
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11993
else
 
11994
          if test "$cross_compiling" = yes; then :
 
11995
  lt_cv_dlopen_self=cross
 
11996
else
 
11997
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
11998
  lt_status=$lt_dlunknown
 
11999
  cat > conftest.$ac_ext <<EOF
 
12000
#line 12000 "configure"
 
12001
#include "confdefs.h"
 
12002
 
 
12003
#if HAVE_DLFCN_H
 
12004
#include <dlfcn.h>
 
12005
#endif
 
12006
 
 
12007
#include <stdio.h>
 
12008
 
 
12009
#ifdef RTLD_GLOBAL
 
12010
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
12011
#else
 
12012
#  ifdef DL_GLOBAL
 
12013
#    define LT_DLGLOBAL         DL_GLOBAL
 
12014
#  else
 
12015
#    define LT_DLGLOBAL         0
 
12016
#  endif
 
12017
#endif
 
12018
 
 
12019
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
12020
   find out it does not work in some platform. */
 
12021
#ifndef LT_DLLAZY_OR_NOW
 
12022
#  ifdef RTLD_LAZY
 
12023
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
12024
#  else
 
12025
#    ifdef DL_LAZY
 
12026
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
12027
#    else
 
12028
#      ifdef RTLD_NOW
 
12029
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
12030
#      else
 
12031
#        ifdef DL_NOW
 
12032
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
12033
#        else
 
12034
#          define LT_DLLAZY_OR_NOW      0
 
12035
#        endif
 
12036
#      endif
 
12037
#    endif
 
12038
#  endif
 
12039
#endif
 
12040
 
 
12041
#ifdef __cplusplus
 
12042
extern "C" void exit (int);
 
12043
#endif
 
12044
 
 
12045
void fnord() { int i=42;}
 
12046
int main ()
 
12047
{
 
12048
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
12049
  int status = $lt_dlunknown;
 
12050
 
 
12051
  if (self)
 
12052
    {
 
12053
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
12054
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
12055
      /* dlclose (self); */
 
12056
    }
 
12057
 
 
12058
    exit (status);
 
12059
}
 
12060
EOF
 
12061
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12062
  (eval $ac_link) 2>&5
 
12063
  ac_status=$?
 
12064
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12065
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
12066
    (./conftest; exit; ) >&5 2>/dev/null
 
12067
    lt_status=$?
 
12068
    case x$lt_status in
 
12069
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
12070
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
12071
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
12072
    esac
 
12073
  else :
 
12074
    # compilation failed
 
12075
    lt_cv_dlopen_self=no
 
12076
  fi
 
12077
fi
 
12078
rm -fr conftest*
 
12079
 
 
12080
 
 
12081
fi
 
12082
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
12083
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
12084
 
 
12085
    if test "x$lt_cv_dlopen_self" = xyes; then
 
12086
      LDFLAGS="$LDFLAGS $link_static_flag"
 
12087
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
12088
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
12089
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
12090
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12091
else
 
12092
          if test "$cross_compiling" = yes; then :
 
12093
  lt_cv_dlopen_self_static=cross
 
12094
else
 
12095
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
12096
  lt_status=$lt_dlunknown
 
12097
  cat > conftest.$ac_ext <<EOF
 
12098
#line 12098 "configure"
 
12099
#include "confdefs.h"
 
12100
 
 
12101
#if HAVE_DLFCN_H
 
12102
#include <dlfcn.h>
 
12103
#endif
 
12104
 
 
12105
#include <stdio.h>
 
12106
 
 
12107
#ifdef RTLD_GLOBAL
 
12108
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
12109
#else
 
12110
#  ifdef DL_GLOBAL
 
12111
#    define LT_DLGLOBAL         DL_GLOBAL
 
12112
#  else
 
12113
#    define LT_DLGLOBAL         0
 
12114
#  endif
 
12115
#endif
 
12116
 
 
12117
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
12118
   find out it does not work in some platform. */
 
12119
#ifndef LT_DLLAZY_OR_NOW
 
12120
#  ifdef RTLD_LAZY
 
12121
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
12122
#  else
 
12123
#    ifdef DL_LAZY
 
12124
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
12125
#    else
 
12126
#      ifdef RTLD_NOW
 
12127
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
12128
#      else
 
12129
#        ifdef DL_NOW
 
12130
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
12131
#        else
 
12132
#          define LT_DLLAZY_OR_NOW      0
 
12133
#        endif
 
12134
#      endif
 
12135
#    endif
 
12136
#  endif
 
12137
#endif
 
12138
 
 
12139
#ifdef __cplusplus
 
12140
extern "C" void exit (int);
 
12141
#endif
 
12142
 
 
12143
void fnord() { int i=42;}
 
12144
int main ()
 
12145
{
 
12146
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
12147
  int status = $lt_dlunknown;
 
12148
 
 
12149
  if (self)
 
12150
    {
 
12151
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
12152
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
12153
      /* dlclose (self); */
 
12154
    }
 
12155
 
 
12156
    exit (status);
 
12157
}
 
12158
EOF
 
12159
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12160
  (eval $ac_link) 2>&5
 
12161
  ac_status=$?
 
12162
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12163
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
12164
    (./conftest; exit; ) >&5 2>/dev/null
 
12165
    lt_status=$?
 
12166
    case x$lt_status in
 
12167
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
12168
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
12169
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
12170
    esac
 
12171
  else :
 
12172
    # compilation failed
 
12173
    lt_cv_dlopen_self_static=no
 
12174
  fi
 
12175
fi
 
12176
rm -fr conftest*
 
12177
 
 
12178
 
 
12179
fi
 
12180
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
12181
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
12182
    fi
 
12183
 
 
12184
    CPPFLAGS="$save_CPPFLAGS"
 
12185
    LDFLAGS="$save_LDFLAGS"
 
12186
    LIBS="$save_LIBS"
 
12187
    ;;
 
12188
  esac
 
12189
 
 
12190
  case $lt_cv_dlopen_self in
 
12191
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
12192
  *) enable_dlopen_self=unknown ;;
 
12193
  esac
 
12194
 
 
12195
  case $lt_cv_dlopen_self_static in
 
12196
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
12197
  *) enable_dlopen_self_static=unknown ;;
 
12198
  esac
 
12199
fi
 
12200
 
12725
12201
 
12726
12202
# The else clause should only fire when bootstrapping the
12727
12203
# libtool distribution, otherwise you forgot to ship ltmain.sh
12736
12212
  # Now quote all the things that may contain metacharacters while being
12737
12213
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12738
12214
  # variables and quote the copies for generation of the libtool script.
12739
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
12215
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12740
12216
    SED SHELL STRIP \
12741
12217
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12742
12218
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12854
12330
# A C compiler.
12855
12331
LTCC=$lt_LTCC
12856
12332
 
12857
 
# LTCC compiler flags.
12858
 
LTCFLAGS=$lt_LTCFLAGS
12859
 
 
12860
12333
# A language-specific compiler.
12861
12334
CC=$lt_compiler_CXX
12862
12335
 
13199
12672
# If no C compiler was specified, use CC.
13200
12673
LTCC=${LTCC-"$CC"}
13201
12674
 
13202
 
# If no C compiler flags were specified, use CFLAGS.
13203
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13204
 
 
13205
12675
# Allow CC to be a program name with arguments.
13206
12676
compiler=$CC
13207
12677
 
13209
12679
# save warnings/boilerplate of simple test code
13210
12680
ac_outfile=conftest.$ac_objext
13211
12681
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13212
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
12682
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13213
12683
_lt_compiler_boilerplate=`cat conftest.err`
13214
12684
$rm conftest*
13215
12685
 
13216
12686
ac_outfile=conftest.$ac_objext
13217
12687
printf "$lt_simple_link_test_code" >conftest.$ac_ext
13218
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
12688
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
13219
12689
_lt_linker_boilerplate=`cat conftest.err`
13220
12690
$rm conftest*
13221
12691
 
13236
12706
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13237
12707
 
13238
12708
 
13239
 
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13240
 
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13241
 
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
13242
 
echo "${ECHO_T}$can_build_shared" >&6; }
 
12709
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
12710
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
12711
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
12712
echo "${ECHO_T}$can_build_shared" >&6
13243
12713
 
13244
 
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13245
 
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
 
12714
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
12715
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13246
12716
test "$can_build_shared" = "no" && enable_shared=no
13247
12717
 
13248
12718
# On AIX, shared libraries and static libraries use the same namespace, and
13261
12731
  fi
13262
12732
  ;;
13263
12733
esac
13264
 
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
13265
 
echo "${ECHO_T}$enable_shared" >&6; }
 
12734
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
12735
echo "${ECHO_T}$enable_shared" >&6
13266
12736
 
13267
 
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13268
 
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
 
12737
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
12738
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13269
12739
# Make sure either enable_shared or enable_static is yes.
13270
12740
test "$enable_shared" = yes || enable_static=yes
13271
 
{ echo "$as_me:$LINENO: result: $enable_static" >&5
13272
 
echo "${ECHO_T}$enable_static" >&6; }
 
12741
echo "$as_me:$LINENO: result: $enable_static" >&5
 
12742
echo "${ECHO_T}$enable_static" >&6
 
12743
 
 
12744
test "$ld_shlibs_F77" = no && can_build_shared=no
13273
12745
 
13274
12746
GCC_F77="$G77"
13275
12747
LD_F77="$LD"
13278
12750
lt_prog_compiler_pic_F77=
13279
12751
lt_prog_compiler_static_F77=
13280
12752
 
13281
 
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13282
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
12753
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
12754
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13283
12755
 
13284
12756
  if test "$GCC" = yes; then
13285
12757
    lt_prog_compiler_wl_F77='-Wl,'
13317
12789
      lt_prog_compiler_pic_F77='-fno-common'
13318
12790
      ;;
13319
12791
 
13320
 
    interix3*)
13321
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13322
 
      # Instead, we relocate shared libraries at runtime.
13323
 
      ;;
13324
 
 
13325
12792
    msdosdjgpp*)
13326
12793
      # Just because we use GCC doesn't mean we suddenly get shared libraries
13327
12794
      # on systems that don't support them.
13408
12875
      lt_prog_compiler_static_F77='-Bstatic'
13409
12876
      ;;
13410
12877
 
13411
 
    linux* | k*bsd*-gnu)
 
12878
    linux*)
13412
12879
      case $cc_basename in
13413
12880
      icc* | ecc*)
13414
12881
        lt_prog_compiler_wl_F77='-Wl,'
13436
12903
      lt_prog_compiler_static_F77='-non_shared'
13437
12904
      ;;
13438
12905
 
 
12906
    sco3.2v5*)
 
12907
      lt_prog_compiler_pic_F77='-Kpic'
 
12908
      lt_prog_compiler_static_F77='-dn'
 
12909
      ;;
 
12910
 
13439
12911
    solaris*)
13440
12912
      lt_prog_compiler_pic_F77='-KPIC'
13441
12913
      lt_prog_compiler_static_F77='-Bstatic'
13453
12925
      lt_prog_compiler_static_F77='-Bstatic'
13454
12926
      ;;
13455
12927
 
13456
 
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
12928
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13457
12929
      lt_prog_compiler_wl_F77='-Wl,'
13458
12930
      lt_prog_compiler_pic_F77='-KPIC'
13459
12931
      lt_prog_compiler_static_F77='-Bstatic'
13466
12938
      fi
13467
12939
      ;;
13468
12940
 
13469
 
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13470
 
      lt_prog_compiler_wl_F77='-Wl,'
13471
 
      lt_prog_compiler_pic_F77='-KPIC'
13472
 
      lt_prog_compiler_static_F77='-Bstatic'
13473
 
      ;;
13474
 
 
13475
12941
    unicos*)
13476
12942
      lt_prog_compiler_wl_F77='-Wl,'
13477
12943
      lt_prog_compiler_can_build_shared_F77=no
13488
12954
    esac
13489
12955
  fi
13490
12956
 
13491
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13492
 
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
 
12957
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
12958
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13493
12959
 
13494
12960
#
13495
12961
# Check to make sure the PIC flag actually works.
13496
12962
#
13497
12963
if test -n "$lt_prog_compiler_pic_F77"; then
13498
12964
 
13499
 
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13500
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
 
12965
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
12966
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13501
12967
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13502
12968
  echo $ECHO_N "(cached) $ECHO_C" >&6
13503
12969
else
13514
12980
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13515
12981
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13516
12982
   -e 's:$: $lt_compiler_flag:'`
13517
 
   (eval echo "\"\$as_me:13517: $lt_compile\"" >&5)
 
12983
   (eval echo "\"\$as_me:12983: $lt_compile\"" >&5)
13518
12984
   (eval "$lt_compile" 2>conftest.err)
13519
12985
   ac_status=$?
13520
12986
   cat conftest.err >&5
13521
 
   echo "$as_me:13521: \$? = $ac_status" >&5
 
12987
   echo "$as_me:12987: \$? = $ac_status" >&5
13522
12988
   if (exit $ac_status) && test -s "$ac_outfile"; then
13523
12989
     # The compiler can only warn and ignore the option if not recognized
13524
12990
     # So say no if there are warnings other than the usual output.
13525
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13526
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13527
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
12991
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
12992
     $SED '/^$/d' conftest.err >conftest.er2
 
12993
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13528
12994
       lt_prog_compiler_pic_works_F77=yes
13529
12995
     fi
13530
12996
   fi
13531
12997
   $rm conftest*
13532
12998
 
13533
12999
fi
13534
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13535
 
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
 
13000
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
 
13001
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13536
13002
 
13537
13003
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13538
13004
    case $lt_prog_compiler_pic_F77 in
13555
13021
    ;;
13556
13022
esac
13557
13023
 
13558
 
#
13559
 
# Check to make sure the static flag actually works.
13560
 
#
13561
 
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13562
 
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13563
 
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13564
 
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13565
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13566
 
else
13567
 
  lt_prog_compiler_static_works_F77=no
13568
 
   save_LDFLAGS="$LDFLAGS"
13569
 
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13570
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
13571
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13572
 
     # The linker can only warn and ignore the option if not recognized
13573
 
     # So say no if there are warnings
13574
 
     if test -s conftest.err; then
13575
 
       # Append any errors to the config.log.
13576
 
       cat conftest.err 1>&5
13577
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13578
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13579
 
       if diff conftest.exp conftest.er2 >/dev/null; then
13580
 
         lt_prog_compiler_static_works_F77=yes
13581
 
       fi
13582
 
     else
13583
 
       lt_prog_compiler_static_works_F77=yes
13584
 
     fi
13585
 
   fi
13586
 
   $rm conftest*
13587
 
   LDFLAGS="$save_LDFLAGS"
13588
 
 
13589
 
fi
13590
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13591
 
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
13592
 
 
13593
 
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13594
 
    :
13595
 
else
13596
 
    lt_prog_compiler_static_F77=
13597
 
fi
13598
 
 
13599
 
 
13600
 
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13601
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
13024
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
13025
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13602
13026
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13603
13027
  echo $ECHO_N "(cached) $ECHO_C" >&6
13604
13028
else
13618
13042
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13619
13043
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13620
13044
   -e 's:$: $lt_compiler_flag:'`
13621
 
   (eval echo "\"\$as_me:13621: $lt_compile\"" >&5)
 
13045
   (eval echo "\"\$as_me:13045: $lt_compile\"" >&5)
13622
13046
   (eval "$lt_compile" 2>out/conftest.err)
13623
13047
   ac_status=$?
13624
13048
   cat out/conftest.err >&5
13625
 
   echo "$as_me:13625: \$? = $ac_status" >&5
 
13049
   echo "$as_me:13049: \$? = $ac_status" >&5
13626
13050
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13627
13051
   then
13628
13052
     # The compiler can only warn and ignore the option if not recognized
13629
13053
     # So say no if there are warnings
13630
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13631
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13632
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
13054
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
 
13055
     $SED '/^$/d' out/conftest.err >out/conftest.er2
 
13056
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13633
13057
       lt_cv_prog_compiler_c_o_F77=yes
13634
13058
     fi
13635
13059
   fi
13644
13068
   $rm conftest*
13645
13069
 
13646
13070
fi
13647
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13648
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
 
13071
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
13072
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13649
13073
 
13650
13074
 
13651
13075
hard_links="nottested"
13652
13076
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13653
13077
  # do not overwrite the value of need_locks provided by the user
13654
 
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13655
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
13078
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
13079
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13656
13080
  hard_links=yes
13657
13081
  $rm conftest*
13658
13082
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13659
13083
  touch conftest.a
13660
13084
  ln conftest.a conftest.b 2>&5 || hard_links=no
13661
13085
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13662
 
  { echo "$as_me:$LINENO: result: $hard_links" >&5
13663
 
echo "${ECHO_T}$hard_links" >&6; }
 
13086
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
13087
echo "${ECHO_T}$hard_links" >&6
13664
13088
  if test "$hard_links" = no; then
13665
13089
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13666
13090
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13670
13094
  need_locks=no
13671
13095
fi
13672
13096
 
13673
 
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13674
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
13097
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
13098
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13675
13099
 
13676
13100
  runpath_var=
13677
13101
  allow_undefined_flag_F77=
13729
13153
      with_gnu_ld=no
13730
13154
    fi
13731
13155
    ;;
13732
 
  interix*)
13733
 
    # we just hope/assume this is gcc and not c89 (= MSVC++)
13734
 
    with_gnu_ld=yes
13735
 
    ;;
13736
13156
  openbsd*)
13737
13157
    with_gnu_ld=no
13738
13158
    ;;
13817
13237
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13818
13238
 
13819
13239
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13820
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
13240
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13821
13241
        # If the export-symbols file already is a .def file (1st line
13822
13242
        # is EXPORTS), use it as is; otherwise, prepend...
13823
13243
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13826
13246
          echo EXPORTS > $output_objdir/$soname.def;
13827
13247
          cat $export_symbols >> $output_objdir/$soname.def;
13828
13248
        fi~
13829
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
13249
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13830
13250
      else
13831
13251
        ld_shlibs_F77=no
13832
13252
      fi
13833
13253
      ;;
13834
13254
 
13835
 
    interix3*)
13836
 
      hardcode_direct_F77=no
13837
 
      hardcode_shlibpath_var_F77=no
13838
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13839
 
      export_dynamic_flag_spec_F77='${wl}-E'
13840
 
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13841
 
      # Instead, shared libraries are loaded at an image base (0x10000000 by
13842
 
      # default) and relocated if they conflict, which is a slow very memory
13843
 
      # consuming and fragmenting process.  To avoid this, we pick a random,
13844
 
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13845
 
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13846
 
      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13847
 
      archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13848
 
      ;;
13849
 
 
13850
 
    linux* | k*bsd*-gnu)
 
13255
    linux*)
13851
13256
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13852
13257
        tmp_addflag=
13853
13258
        case $cc_basename,$host_cpu in
13873
13278
  $echo "local: *; };" >> $output_objdir/$libname.ver~
13874
13279
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13875
13280
        fi
13876
 
        link_all_deplibs_F77=no
13877
13281
      else
13878
13282
        ld_shlibs_F77=no
13879
13283
      fi
13880
13284
      ;;
13881
13285
 
13882
 
    netbsd* | netbsdelf*-gnu)
 
13286
    netbsd*)
13883
13287
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13884
13288
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13885
13289
        wlarc=
13889
13293
      fi
13890
13294
      ;;
13891
13295
 
13892
 
    solaris*)
 
13296
    solaris* | sysv5*)
13893
13297
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13894
13298
        ld_shlibs_F77=no
13895
13299
        cat <<EOF 1>&2
13910
13314
      fi
13911
13315
      ;;
13912
13316
 
13913
 
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13914
 
      case `$LD -v 2>&1` in
13915
 
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13916
 
        ld_shlibs_F77=no
13917
 
        cat <<_LT_EOF 1>&2
13918
 
 
13919
 
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13920
 
*** reliably create shared libraries on SCO systems.  Therefore, libtool
13921
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
13922
 
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13923
 
*** your PATH or compiler configuration so that the native linker is
13924
 
*** used, and then restart.
13925
 
 
13926
 
_LT_EOF
13927
 
        ;;
13928
 
        *)
13929
 
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13930
 
            hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13931
 
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13932
 
            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13933
 
          else
13934
 
            ld_shlibs_F77=no
13935
 
          fi
13936
 
        ;;
13937
 
      esac
13938
 
      ;;
13939
 
 
13940
13317
    sunos4*)
13941
13318
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13942
13319
      wlarc=
13970
13347
      # Note: this linker hardcodes the directories in LIBPATH if there
13971
13348
      # are no directories specified by -L.
13972
13349
      hardcode_minus_L_F77=yes
13973
 
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
13350
      if test "$GCC" = yes && test -z "$link_static_flag"; then
13974
13351
        # Neither direct hardcoding nor static linking is supported with a
13975
13352
        # broken collect2.
13976
13353
        hardcode_direct_F77=unsupported
14004
13381
            break
14005
13382
          fi
14006
13383
          done
14007
 
          ;;
14008
13384
        esac
14009
13385
 
14010
13386
        exp_sym_flag='-bexport'
14042
13418
          hardcode_libdir_flag_spec_F77='-L$libdir'
14043
13419
          hardcode_libdir_separator_F77=
14044
13420
          fi
14045
 
          ;;
14046
13421
        esac
14047
13422
        shared_flag='-shared'
14048
13423
        if test "$aix_use_runtimelinking" = yes; then
14055
13430
        # chokes on -Wl,-G. The following line is correct:
14056
13431
          shared_flag='-G'
14057
13432
        else
14058
 
          if test "$aix_use_runtimelinking" = yes; then
 
13433
        if test "$aix_use_runtimelinking" = yes; then
14059
13434
            shared_flag='${wl}-G'
14060
13435
          else
14061
13436
            shared_flag='${wl}-bM:SRE'
14062
 
          fi
 
13437
        fi
14063
13438
        fi
14064
13439
      fi
14065
13440
 
14077
13452
      end
14078
13453
_ACEOF
14079
13454
rm -f conftest.$ac_objext conftest$ac_exeext
14080
 
if { (ac_try="$ac_link"
14081
 
case "(($ac_try" in
14082
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14083
 
  *) ac_try_echo=$ac_try;;
14084
 
esac
14085
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14086
 
  (eval "$ac_link") 2>conftest.er1
 
13455
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13456
  (eval $ac_link) 2>conftest.er1
14087
13457
  ac_status=$?
14088
13458
  grep -v '^ *+' conftest.er1 >conftest.err
14089
13459
  rm -f conftest.er1
14090
13460
  cat conftest.err >&5
14091
13461
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092
13462
  (exit $ac_status); } &&
14093
 
         { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14094
 
  { (case "(($ac_try" in
14095
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14096
 
  *) ac_try_echo=$ac_try;;
14097
 
esac
14098
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14099
 
  (eval "$ac_try") 2>&5
 
13463
         { ac_try='test -z "$ac_f77_werror_flag"
 
13464
                         || test ! -s conftest.err'
 
13465
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13466
  (eval $ac_try) 2>&5
14100
13467
  ac_status=$?
14101
13468
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102
13469
  (exit $ac_status); }; } &&
14103
13470
         { ac_try='test -s conftest$ac_exeext'
14104
 
  { (case "(($ac_try" in
14105
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14106
 
  *) ac_try_echo=$ac_try;;
14107
 
esac
14108
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14109
 
  (eval "$ac_try") 2>&5
 
13471
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13472
  (eval $ac_try) 2>&5
14110
13473
  ac_status=$?
14111
13474
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112
13475
  (exit $ac_status); }; }; then
14120
13483
  echo "$as_me: failed program was:" >&5
14121
13484
sed 's/^/| /' conftest.$ac_ext >&5
14122
13485
 
14123
 
 
14124
13486
fi
14125
 
 
14126
 
rm -f core conftest.err conftest.$ac_objext \
 
13487
rm -f conftest.err conftest.$ac_objext \
14127
13488
      conftest$ac_exeext conftest.$ac_ext
14128
13489
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14129
13490
 
14130
13491
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14131
 
        archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
13492
        archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14132
13493
       else
14133
13494
        if test "$host_cpu" = ia64; then
14134
13495
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14135
13496
          allow_undefined_flag_F77="-z nodefs"
14136
 
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
 
13497
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
14137
13498
        else
14138
13499
         # Determine the default libpath from the value encoded in an empty executable.
14139
13500
         cat >conftest.$ac_ext <<_ACEOF
14142
13503
      end
14143
13504
_ACEOF
14144
13505
rm -f conftest.$ac_objext conftest$ac_exeext
14145
 
if { (ac_try="$ac_link"
14146
 
case "(($ac_try" in
14147
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14148
 
  *) ac_try_echo=$ac_try;;
14149
 
esac
14150
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14151
 
  (eval "$ac_link") 2>conftest.er1
 
13506
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13507
  (eval $ac_link) 2>conftest.er1
14152
13508
  ac_status=$?
14153
13509
  grep -v '^ *+' conftest.er1 >conftest.err
14154
13510
  rm -f conftest.er1
14155
13511
  cat conftest.err >&5
14156
13512
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14157
13513
  (exit $ac_status); } &&
14158
 
         { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14159
 
  { (case "(($ac_try" in
14160
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14161
 
  *) ac_try_echo=$ac_try;;
14162
 
esac
14163
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14164
 
  (eval "$ac_try") 2>&5
 
13514
         { ac_try='test -z "$ac_f77_werror_flag"
 
13515
                         || test ! -s conftest.err'
 
13516
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13517
  (eval $ac_try) 2>&5
14165
13518
  ac_status=$?
14166
13519
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167
13520
  (exit $ac_status); }; } &&
14168
13521
         { ac_try='test -s conftest$ac_exeext'
14169
 
  { (case "(($ac_try" in
14170
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14171
 
  *) ac_try_echo=$ac_try;;
14172
 
esac
14173
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14174
 
  (eval "$ac_try") 2>&5
 
13522
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13523
  (eval $ac_try) 2>&5
14175
13524
  ac_status=$?
14176
13525
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177
13526
  (exit $ac_status); }; }; then
14185
13534
  echo "$as_me: failed program was:" >&5
14186
13535
sed 's/^/| /' conftest.$ac_ext >&5
14187
13536
 
14188
 
 
14189
13537
fi
14190
 
 
14191
 
rm -f core conftest.err conftest.$ac_objext \
 
13538
rm -f conftest.err conftest.$ac_objext \
14192
13539
      conftest$ac_exeext conftest.$ac_ext
14193
13540
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14194
13541
 
14197
13544
          # -berok will link without error, but may produce a broken library.
14198
13545
          no_undefined_flag_F77=' ${wl}-bernotok'
14199
13546
          allow_undefined_flag_F77=' ${wl}-berok'
 
13547
          # -bexpall does not export symbols beginning with underscore (_)
 
13548
          always_export_symbols_F77=yes
14200
13549
          # Exported symbols can be pulled into shared objects from archives
14201
 
          whole_archive_flag_spec_F77='$convenience'
 
13550
          whole_archive_flag_spec_F77=' '
14202
13551
          archive_cmds_need_lc_F77=yes
14203
13552
          # This is similar to how AIX traditionally builds its shared libraries.
14204
 
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
13553
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14205
13554
        fi
14206
13555
      fi
14207
13556
      ;;
14319
13668
      ;;
14320
13669
 
14321
13670
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14322
 
    freebsd* | dragonfly*)
 
13671
    freebsd* | kfreebsd*-gnu | dragonfly*)
14323
13672
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14324
13673
      hardcode_libdir_flag_spec_F77='-R$libdir'
14325
13674
      hardcode_direct_F77=yes
14342
13691
      export_dynamic_flag_spec_F77='${wl}-E'
14343
13692
      ;;
14344
13693
 
14345
 
    hpux10*)
14346
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14347
 
        archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14348
 
      else
14349
 
        archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14350
 
      fi
14351
 
      if test "$with_gnu_ld" = no; then
14352
 
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14353
 
        hardcode_libdir_separator_F77=:
14354
 
 
14355
 
        hardcode_direct_F77=yes
14356
 
        export_dynamic_flag_spec_F77='${wl}-E'
14357
 
 
14358
 
        # hardcode_minus_L: Not really in the search PATH,
14359
 
        # but as the default location of the library.
14360
 
        hardcode_minus_L_F77=yes
14361
 
      fi
14362
 
      ;;
14363
 
 
14364
 
    hpux11*)
 
13694
    hpux10* | hpux11*)
14365
13695
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14366
13696
        case $host_cpu in
14367
 
        hppa*64*)
 
13697
        hppa*64*|ia64*)
14368
13698
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14369
13699
          ;;
14370
 
        ia64*)
14371
 
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14372
 
          ;;
14373
13700
        *)
14374
13701
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14375
13702
          ;;
14376
13703
        esac
14377
13704
      else
14378
13705
        case $host_cpu in
14379
 
        hppa*64*)
14380
 
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14381
 
          ;;
14382
 
        ia64*)
14383
 
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
13706
        hppa*64*|ia64*)
 
13707
          archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14384
13708
          ;;
14385
13709
        *)
14386
 
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
13710
          archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14387
13711
          ;;
14388
13712
        esac
14389
13713
      fi
14390
13714
      if test "$with_gnu_ld" = no; then
14391
 
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14392
 
        hardcode_libdir_separator_F77=:
14393
 
 
14394
13715
        case $host_cpu in
14395
 
        hppa*64*|ia64*)
 
13716
        hppa*64*)
 
13717
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14396
13718
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14397
 
          hardcode_direct_F77=no
14398
 
          hardcode_shlibpath_var_F77=no
 
13719
          hardcode_libdir_separator_F77=:
 
13720
          hardcode_direct_F77=no
 
13721
          hardcode_shlibpath_var_F77=no
 
13722
          ;;
 
13723
        ia64*)
 
13724
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
13725
          hardcode_direct_F77=no
 
13726
          hardcode_shlibpath_var_F77=no
 
13727
 
 
13728
          # hardcode_minus_L: Not really in the search PATH,
 
13729
          # but as the default location of the library.
 
13730
          hardcode_minus_L_F77=yes
14399
13731
          ;;
14400
13732
        *)
 
13733
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
13734
          hardcode_libdir_separator_F77=:
14401
13735
          hardcode_direct_F77=yes
14402
13736
          export_dynamic_flag_spec_F77='${wl}-E'
14403
13737
 
14421
13755
      link_all_deplibs_F77=yes
14422
13756
      ;;
14423
13757
 
14424
 
    netbsd* | netbsdelf*-gnu)
 
13758
    netbsd*)
14425
13759
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14426
13760
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14427
13761
      else
14499
13833
      hardcode_libdir_separator_F77=:
14500
13834
      ;;
14501
13835
 
 
13836
    sco3.2v5*)
 
13837
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
13838
      hardcode_shlibpath_var_F77=no
 
13839
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
13840
      runpath_var=LD_RUN_PATH
 
13841
      hardcode_runpath_var=yes
 
13842
      ;;
 
13843
 
14502
13844
    solaris*)
14503
13845
      no_undefined_flag_F77=' -z text'
14504
13846
      if test "$GCC" = yes; then
14584
13926
      fi
14585
13927
      ;;
14586
13928
 
14587
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14588
 
      no_undefined_flag_F77='${wl}-z,text'
14589
 
      archive_cmds_need_lc_F77=no
14590
 
      hardcode_shlibpath_var_F77=no
14591
 
      runpath_var='LD_RUN_PATH'
14592
 
 
14593
 
      if test "$GCC" = yes; then
14594
 
        archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14595
 
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14596
 
      else
14597
 
        archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14598
 
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14599
 
      fi
14600
 
      ;;
14601
 
 
14602
 
    sysv5* | sco3.2v5* | sco5v6*)
14603
 
      # Note: We can NOT use -z defs as we might desire, because we do not
14604
 
      # link with -lc, and that would cause any symbols used from libc to
14605
 
      # always be unresolved, which means just about no library would
14606
 
      # ever link correctly.  If we're not using GNU ld we use -z text
14607
 
      # though, which does catch some bad symbols but isn't as heavy-handed
14608
 
      # as -z defs.
14609
 
      no_undefined_flag_F77='${wl}-z,text'
14610
 
      allow_undefined_flag_F77='${wl}-z,nodefs'
14611
 
      archive_cmds_need_lc_F77=no
14612
 
      hardcode_shlibpath_var_F77=no
14613
 
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14614
 
      hardcode_libdir_separator_F77=':'
14615
 
      link_all_deplibs_F77=yes
14616
 
      export_dynamic_flag_spec_F77='${wl}-Bexport'
14617
 
      runpath_var='LD_RUN_PATH'
14618
 
 
14619
 
      if test "$GCC" = yes; then
14620
 
        archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14621
 
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14622
 
      else
14623
 
        archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14624
 
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14625
 
      fi
 
13929
    sysv4.2uw2*)
 
13930
      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
13931
      hardcode_direct_F77=yes
 
13932
      hardcode_minus_L_F77=no
 
13933
      hardcode_shlibpath_var_F77=no
 
13934
      hardcode_runpath_var=yes
 
13935
      runpath_var=LD_RUN_PATH
 
13936
      ;;
 
13937
 
 
13938
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
13939
      no_undefined_flag_F77='${wl}-z ${wl}text'
 
13940
      if test "$GCC" = yes; then
 
13941
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13942
      else
 
13943
        archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
13944
      fi
 
13945
      runpath_var='LD_RUN_PATH'
 
13946
      hardcode_shlibpath_var_F77=no
 
13947
      ;;
 
13948
 
 
13949
    sysv5*)
 
13950
      no_undefined_flag_F77=' -z text'
 
13951
      # $CC -shared without GNU ld will not create a library from C++
 
13952
      # object files and a static libstdc++, better avoid it by now
 
13953
      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
13954
      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
13955
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
13956
      hardcode_libdir_flag_spec_F77=
 
13957
      hardcode_shlibpath_var_F77=no
 
13958
      runpath_var='LD_RUN_PATH'
14626
13959
      ;;
14627
13960
 
14628
13961
    uts4*)
14637
13970
    esac
14638
13971
  fi
14639
13972
 
14640
 
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14641
 
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
 
13973
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
13974
echo "${ECHO_T}$ld_shlibs_F77" >&6
14642
13975
test "$ld_shlibs_F77" = no && can_build_shared=no
14643
13976
 
 
13977
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
13978
if test "$GCC" = yes; then
 
13979
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
13980
fi
 
13981
 
14644
13982
#
14645
13983
# Do we need to explicitly link libc?
14646
13984
#
14658
13996
      # Test whether the compiler implicitly links with -lc since on some
14659
13997
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14660
13998
      # to ld, don't add -lc before -lgcc.
14661
 
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14662
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
13999
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
14000
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14663
14001
      $rm conftest*
14664
14002
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14665
14003
 
14673
14011
        libobjs=conftest.$ac_objext
14674
14012
        deplibs=
14675
14013
        wl=$lt_prog_compiler_wl_F77
14676
 
        pic_flag=$lt_prog_compiler_pic_F77
14677
14014
        compiler_flags=-v
14678
14015
        linker_flags=-v
14679
14016
        verstring=
14696
14033
        cat conftest.err 1>&5
14697
14034
      fi
14698
14035
      $rm conftest*
14699
 
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14700
 
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
 
14036
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
14037
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14701
14038
      ;;
14702
14039
    esac
14703
14040
  fi
14704
14041
  ;;
14705
14042
esac
14706
14043
 
14707
 
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14708
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
14044
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
14045
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14709
14046
library_names_spec=
14710
14047
libname_spec='lib$name'
14711
14048
soname_spec=
14911
14248
  dynamic_linker=no
14912
14249
  ;;
14913
14250
 
 
14251
kfreebsd*-gnu)
 
14252
  version_type=linux
 
14253
  need_lib_prefix=no
 
14254
  need_version=no
 
14255
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
14256
  soname_spec='${libname}${release}${shared_ext}$major'
 
14257
  shlibpath_var=LD_LIBRARY_PATH
 
14258
  shlibpath_overrides_runpath=no
 
14259
  hardcode_into_libs=yes
 
14260
  dynamic_linker='GNU ld.so'
 
14261
  ;;
 
14262
 
14914
14263
freebsd* | dragonfly*)
14915
14264
  # DragonFly does not have aout.  When/if they implement a new
14916
14265
  # versioning mechanism, adjust this.
14943
14292
    shlibpath_overrides_runpath=yes
14944
14293
    hardcode_into_libs=yes
14945
14294
    ;;
14946
 
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14947
 
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
14295
  *) # from 3.2 on
14948
14296
    shlibpath_overrides_runpath=no
14949
14297
    hardcode_into_libs=yes
14950
14298
    ;;
14951
 
  freebsd*) # from 4.6 on
14952
 
    shlibpath_overrides_runpath=yes
14953
 
    hardcode_into_libs=yes
14954
 
    ;;
14955
14299
  esac
14956
14300
  ;;
14957
14301
 
15011
14355
  postinstall_cmds='chmod 555 $lib'
15012
14356
  ;;
15013
14357
 
15014
 
interix3*)
15015
 
  version_type=linux
15016
 
  need_lib_prefix=no
15017
 
  need_version=no
15018
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15019
 
  soname_spec='${libname}${release}${shared_ext}$major'
15020
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15021
 
  shlibpath_var=LD_LIBRARY_PATH
15022
 
  shlibpath_overrides_runpath=no
15023
 
  hardcode_into_libs=yes
15024
 
  ;;
15025
 
 
15026
14358
irix5* | irix6* | nonstopux*)
15027
14359
  case $host_os in
15028
14360
    nonstopux*) version_type=nonstopux ;;
15066
14398
  ;;
15067
14399
 
15068
14400
# This must be Linux ELF.
15069
 
linux* | k*bsd*-gnu)
 
14401
linux*)
15070
14402
  version_type=linux
15071
14403
  need_lib_prefix=no
15072
14404
  need_version=no
15095
14427
  dynamic_linker='GNU/Linux ld.so'
15096
14428
  ;;
15097
14429
 
15098
 
netbsdelf*-gnu)
 
14430
knetbsd*-gnu)
15099
14431
  version_type=linux
15100
14432
  need_lib_prefix=no
15101
14433
  need_version=no
15104
14436
  shlibpath_var=LD_LIBRARY_PATH
15105
14437
  shlibpath_overrides_runpath=no
15106
14438
  hardcode_into_libs=yes
15107
 
  dynamic_linker='NetBSD ld.elf_so'
 
14439
  dynamic_linker='GNU ld.so'
15108
14440
  ;;
15109
14441
 
15110
14442
netbsd*)
15144
14476
 
15145
14477
openbsd*)
15146
14478
  version_type=sunos
15147
 
  sys_lib_dlsearch_path_spec="/usr/lib"
15148
14479
  need_lib_prefix=no
15149
14480
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15150
14481
  case $host_os in
15188
14519
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15189
14520
  ;;
15190
14521
 
 
14522
sco3.2v5*)
 
14523
  version_type=osf
 
14524
  soname_spec='${libname}${release}${shared_ext}$major'
 
14525
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14526
  shlibpath_var=LD_LIBRARY_PATH
 
14527
  ;;
 
14528
 
15191
14529
solaris*)
15192
14530
  version_type=linux
15193
14531
  need_lib_prefix=no
15213
14551
  need_version=yes
15214
14552
  ;;
15215
14553
 
15216
 
sysv4 | sysv4.3*)
 
14554
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15217
14555
  version_type=linux
15218
14556
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15219
14557
  soname_spec='${libname}${release}${shared_ext}$major'
15246
14584
  fi
15247
14585
  ;;
15248
14586
 
15249
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15250
 
  version_type=freebsd-elf
15251
 
  need_lib_prefix=no
15252
 
  need_version=no
15253
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15254
 
  soname_spec='${libname}${release}${shared_ext}$major'
15255
 
  shlibpath_var=LD_LIBRARY_PATH
15256
 
  hardcode_into_libs=yes
15257
 
  if test "$with_gnu_ld" = yes; then
15258
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15259
 
    shlibpath_overrides_runpath=no
15260
 
  else
15261
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15262
 
    shlibpath_overrides_runpath=yes
15263
 
    case $host_os in
15264
 
      sco3.2v5*)
15265
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15266
 
        ;;
15267
 
    esac
15268
 
  fi
15269
 
  sys_lib_dlsearch_path_spec='/usr/lib'
15270
 
  ;;
15271
 
 
15272
14587
uts4*)
15273
14588
  version_type=linux
15274
14589
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15280
14595
  dynamic_linker=no
15281
14596
  ;;
15282
14597
esac
15283
 
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15284
 
echo "${ECHO_T}$dynamic_linker" >&6; }
 
14598
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
14599
echo "${ECHO_T}$dynamic_linker" >&6
15285
14600
test "$dynamic_linker" = no && can_build_shared=no
15286
14601
 
15287
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15288
 
if test "$GCC" = yes; then
15289
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15290
 
fi
15291
 
 
15292
 
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15293
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
14602
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
14603
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15294
14604
hardcode_action_F77=
15295
14605
if test -n "$hardcode_libdir_flag_spec_F77" || \
15296
14606
   test -n "$runpath_var_F77" || \
15314
14624
  # directories.
15315
14625
  hardcode_action_F77=unsupported
15316
14626
fi
15317
 
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15318
 
echo "${ECHO_T}$hardcode_action_F77" >&6; }
 
14627
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
14628
echo "${ECHO_T}$hardcode_action_F77" >&6
15319
14629
 
15320
14630
if test "$hardcode_action_F77" = relink; then
15321
14631
  # Fast installation is not supported
15326
14636
  enable_fast_install=needless
15327
14637
fi
15328
14638
 
 
14639
striplib=
 
14640
old_striplib=
 
14641
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
14642
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
14643
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
14644
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
14645
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
14646
  echo "$as_me:$LINENO: result: yes" >&5
 
14647
echo "${ECHO_T}yes" >&6
 
14648
else
 
14649
# FIXME - insert some real tests, host_os isn't really good enough
 
14650
  case $host_os in
 
14651
   darwin*)
 
14652
       if test -n "$STRIP" ; then
 
14653
         striplib="$STRIP -x"
 
14654
         echo "$as_me:$LINENO: result: yes" >&5
 
14655
echo "${ECHO_T}yes" >&6
 
14656
       else
 
14657
  echo "$as_me:$LINENO: result: no" >&5
 
14658
echo "${ECHO_T}no" >&6
 
14659
fi
 
14660
       ;;
 
14661
   *)
 
14662
  echo "$as_me:$LINENO: result: no" >&5
 
14663
echo "${ECHO_T}no" >&6
 
14664
    ;;
 
14665
  esac
 
14666
fi
 
14667
 
 
14668
 
15329
14669
 
15330
14670
# The else clause should only fire when bootstrapping the
15331
14671
# libtool distribution, otherwise you forgot to ship ltmain.sh
15340
14680
  # Now quote all the things that may contain metacharacters while being
15341
14681
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15342
14682
  # variables and quote the copies for generation of the libtool script.
15343
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
14683
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15344
14684
    SED SHELL STRIP \
15345
14685
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15346
14686
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15458
14798
# A C compiler.
15459
14799
LTCC=$lt_LTCC
15460
14800
 
15461
 
# LTCC compiler flags.
15462
 
LTCFLAGS=$lt_LTCFLAGS
15463
 
 
15464
14801
# A language-specific compiler.
15465
14802
CC=$lt_compiler_F77
15466
14803
 
15752
15089
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15753
15090
 
15754
15091
 
 
15092
 
15755
15093
# Source file extension for Java test sources.
15756
15094
ac_ext=java
15757
15095
 
15770
15108
# If no C compiler was specified, use CC.
15771
15109
LTCC=${LTCC-"$CC"}
15772
15110
 
15773
 
# If no C compiler flags were specified, use CFLAGS.
15774
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15775
 
 
15776
15111
# Allow CC to be a program name with arguments.
15777
15112
compiler=$CC
15778
15113
 
15780
15115
# save warnings/boilerplate of simple test code
15781
15116
ac_outfile=conftest.$ac_objext
15782
15117
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15783
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
15118
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15784
15119
_lt_compiler_boilerplate=`cat conftest.err`
15785
15120
$rm conftest*
15786
15121
 
15787
15122
ac_outfile=conftest.$ac_objext
15788
15123
printf "$lt_simple_link_test_code" >conftest.$ac_ext
15789
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
15124
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15790
15125
_lt_linker_boilerplate=`cat conftest.err`
15791
15126
$rm conftest*
15792
15127
 
15819
15154
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15820
15155
 
15821
15156
 
15822
 
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15823
 
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
 
15157
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
15158
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15824
15159
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15825
15160
  echo $ECHO_N "(cached) $ECHO_C" >&6
15826
15161
else
15837
15172
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15838
15173
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15839
15174
   -e 's:$: $lt_compiler_flag:'`
15840
 
   (eval echo "\"\$as_me:15840: $lt_compile\"" >&5)
 
15175
   (eval echo "\"\$as_me:15175: $lt_compile\"" >&5)
15841
15176
   (eval "$lt_compile" 2>conftest.err)
15842
15177
   ac_status=$?
15843
15178
   cat conftest.err >&5
15844
 
   echo "$as_me:15844: \$? = $ac_status" >&5
 
15179
   echo "$as_me:15179: \$? = $ac_status" >&5
15845
15180
   if (exit $ac_status) && test -s "$ac_outfile"; then
15846
15181
     # The compiler can only warn and ignore the option if not recognized
15847
15182
     # So say no if there are warnings other than the usual output.
15848
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15849
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15850
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
15183
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
15184
     $SED '/^$/d' conftest.err >conftest.er2
 
15185
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
15851
15186
       lt_cv_prog_compiler_rtti_exceptions=yes
15852
15187
     fi
15853
15188
   fi
15854
15189
   $rm conftest*
15855
15190
 
15856
15191
fi
15857
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15858
 
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
15192
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
15193
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15859
15194
 
15860
15195
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15861
15196
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15869
15204
lt_prog_compiler_pic_GCJ=
15870
15205
lt_prog_compiler_static_GCJ=
15871
15206
 
15872
 
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15873
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
15207
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
15208
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15874
15209
 
15875
15210
  if test "$GCC" = yes; then
15876
15211
    lt_prog_compiler_wl_GCJ='-Wl,'
15908
15243
      lt_prog_compiler_pic_GCJ='-fno-common'
15909
15244
      ;;
15910
15245
 
15911
 
    interix3*)
15912
 
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15913
 
      # Instead, we relocate shared libraries at runtime.
15914
 
      ;;
15915
 
 
15916
15246
    msdosdjgpp*)
15917
15247
      # Just because we use GCC doesn't mean we suddenly get shared libraries
15918
15248
      # on systems that don't support them.
15999
15329
      lt_prog_compiler_static_GCJ='-Bstatic'
16000
15330
      ;;
16001
15331
 
16002
 
    linux* | k*bsd*-gnu)
 
15332
    linux*)
16003
15333
      case $cc_basename in
16004
15334
      icc* | ecc*)
16005
15335
        lt_prog_compiler_wl_GCJ='-Wl,'
16027
15357
      lt_prog_compiler_static_GCJ='-non_shared'
16028
15358
      ;;
16029
15359
 
 
15360
    sco3.2v5*)
 
15361
      lt_prog_compiler_pic_GCJ='-Kpic'
 
15362
      lt_prog_compiler_static_GCJ='-dn'
 
15363
      ;;
 
15364
 
16030
15365
    solaris*)
16031
15366
      lt_prog_compiler_pic_GCJ='-KPIC'
16032
15367
      lt_prog_compiler_static_GCJ='-Bstatic'
16044
15379
      lt_prog_compiler_static_GCJ='-Bstatic'
16045
15380
      ;;
16046
15381
 
16047
 
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
15382
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16048
15383
      lt_prog_compiler_wl_GCJ='-Wl,'
16049
15384
      lt_prog_compiler_pic_GCJ='-KPIC'
16050
15385
      lt_prog_compiler_static_GCJ='-Bstatic'
16057
15392
      fi
16058
15393
      ;;
16059
15394
 
16060
 
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16061
 
      lt_prog_compiler_wl_GCJ='-Wl,'
16062
 
      lt_prog_compiler_pic_GCJ='-KPIC'
16063
 
      lt_prog_compiler_static_GCJ='-Bstatic'
16064
 
      ;;
16065
 
 
16066
15395
    unicos*)
16067
15396
      lt_prog_compiler_wl_GCJ='-Wl,'
16068
15397
      lt_prog_compiler_can_build_shared_GCJ=no
16079
15408
    esac
16080
15409
  fi
16081
15410
 
16082
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16083
 
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
 
15411
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
15412
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16084
15413
 
16085
15414
#
16086
15415
# Check to make sure the PIC flag actually works.
16087
15416
#
16088
15417
if test -n "$lt_prog_compiler_pic_GCJ"; then
16089
15418
 
16090
 
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16091
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
 
15419
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
15420
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16092
15421
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16093
15422
  echo $ECHO_N "(cached) $ECHO_C" >&6
16094
15423
else
16105
15434
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16106
15435
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16107
15436
   -e 's:$: $lt_compiler_flag:'`
16108
 
   (eval echo "\"\$as_me:16108: $lt_compile\"" >&5)
 
15437
   (eval echo "\"\$as_me:15437: $lt_compile\"" >&5)
16109
15438
   (eval "$lt_compile" 2>conftest.err)
16110
15439
   ac_status=$?
16111
15440
   cat conftest.err >&5
16112
 
   echo "$as_me:16112: \$? = $ac_status" >&5
 
15441
   echo "$as_me:15441: \$? = $ac_status" >&5
16113
15442
   if (exit $ac_status) && test -s "$ac_outfile"; then
16114
15443
     # The compiler can only warn and ignore the option if not recognized
16115
15444
     # So say no if there are warnings other than the usual output.
16116
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16117
 
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16118
 
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
15445
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
15446
     $SED '/^$/d' conftest.err >conftest.er2
 
15447
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16119
15448
       lt_prog_compiler_pic_works_GCJ=yes
16120
15449
     fi
16121
15450
   fi
16122
15451
   $rm conftest*
16123
15452
 
16124
15453
fi
16125
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16126
 
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
 
15454
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
 
15455
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16127
15456
 
16128
15457
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16129
15458
    case $lt_prog_compiler_pic_GCJ in
16146
15475
    ;;
16147
15476
esac
16148
15477
 
16149
 
#
16150
 
# Check to make sure the static flag actually works.
16151
 
#
16152
 
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16153
 
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16154
 
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16155
 
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16156
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
16157
 
else
16158
 
  lt_prog_compiler_static_works_GCJ=no
16159
 
   save_LDFLAGS="$LDFLAGS"
16160
 
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16161
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
16162
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16163
 
     # The linker can only warn and ignore the option if not recognized
16164
 
     # So say no if there are warnings
16165
 
     if test -s conftest.err; then
16166
 
       # Append any errors to the config.log.
16167
 
       cat conftest.err 1>&5
16168
 
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16169
 
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16170
 
       if diff conftest.exp conftest.er2 >/dev/null; then
16171
 
         lt_prog_compiler_static_works_GCJ=yes
16172
 
       fi
16173
 
     else
16174
 
       lt_prog_compiler_static_works_GCJ=yes
16175
 
     fi
16176
 
   fi
16177
 
   $rm conftest*
16178
 
   LDFLAGS="$save_LDFLAGS"
16179
 
 
16180
 
fi
16181
 
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16182
 
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16183
 
 
16184
 
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16185
 
    :
16186
 
else
16187
 
    lt_prog_compiler_static_GCJ=
16188
 
fi
16189
 
 
16190
 
 
16191
 
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16192
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
15478
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
15479
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16193
15480
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16194
15481
  echo $ECHO_N "(cached) $ECHO_C" >&6
16195
15482
else
16209
15496
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16210
15497
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16211
15498
   -e 's:$: $lt_compiler_flag:'`
16212
 
   (eval echo "\"\$as_me:16212: $lt_compile\"" >&5)
 
15499
   (eval echo "\"\$as_me:15499: $lt_compile\"" >&5)
16213
15500
   (eval "$lt_compile" 2>out/conftest.err)
16214
15501
   ac_status=$?
16215
15502
   cat out/conftest.err >&5
16216
 
   echo "$as_me:16216: \$? = $ac_status" >&5
 
15503
   echo "$as_me:15503: \$? = $ac_status" >&5
16217
15504
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16218
15505
   then
16219
15506
     # The compiler can only warn and ignore the option if not recognized
16220
15507
     # So say no if there are warnings
16221
 
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16222
 
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16223
 
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
15508
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
 
15509
     $SED '/^$/d' out/conftest.err >out/conftest.er2
 
15510
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16224
15511
       lt_cv_prog_compiler_c_o_GCJ=yes
16225
15512
     fi
16226
15513
   fi
16235
15522
   $rm conftest*
16236
15523
 
16237
15524
fi
16238
 
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16239
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
 
15525
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
15526
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16240
15527
 
16241
15528
 
16242
15529
hard_links="nottested"
16243
15530
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16244
15531
  # do not overwrite the value of need_locks provided by the user
16245
 
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16246
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
15532
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
15533
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16247
15534
  hard_links=yes
16248
15535
  $rm conftest*
16249
15536
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16250
15537
  touch conftest.a
16251
15538
  ln conftest.a conftest.b 2>&5 || hard_links=no
16252
15539
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16253
 
  { echo "$as_me:$LINENO: result: $hard_links" >&5
16254
 
echo "${ECHO_T}$hard_links" >&6; }
 
15540
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
15541
echo "${ECHO_T}$hard_links" >&6
16255
15542
  if test "$hard_links" = no; then
16256
15543
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16257
15544
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16261
15548
  need_locks=no
16262
15549
fi
16263
15550
 
16264
 
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16265
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
15551
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
15552
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16266
15553
 
16267
15554
  runpath_var=
16268
15555
  allow_undefined_flag_GCJ=
16320
15607
      with_gnu_ld=no
16321
15608
    fi
16322
15609
    ;;
16323
 
  interix*)
16324
 
    # we just hope/assume this is gcc and not c89 (= MSVC++)
16325
 
    with_gnu_ld=yes
16326
 
    ;;
16327
15610
  openbsd*)
16328
15611
    with_gnu_ld=no
16329
15612
    ;;
16408
15691
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16409
15692
 
16410
15693
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16411
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
15694
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16412
15695
        # If the export-symbols file already is a .def file (1st line
16413
15696
        # is EXPORTS), use it as is; otherwise, prepend...
16414
15697
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16417
15700
          echo EXPORTS > $output_objdir/$soname.def;
16418
15701
          cat $export_symbols >> $output_objdir/$soname.def;
16419
15702
        fi~
16420
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
15703
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16421
15704
      else
16422
15705
        ld_shlibs_GCJ=no
16423
15706
      fi
16424
15707
      ;;
16425
15708
 
16426
 
    interix3*)
16427
 
      hardcode_direct_GCJ=no
16428
 
      hardcode_shlibpath_var_GCJ=no
16429
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16430
 
      export_dynamic_flag_spec_GCJ='${wl}-E'
16431
 
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16432
 
      # Instead, shared libraries are loaded at an image base (0x10000000 by
16433
 
      # default) and relocated if they conflict, which is a slow very memory
16434
 
      # consuming and fragmenting process.  To avoid this, we pick a random,
16435
 
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16436
 
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16437
 
      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16438
 
      archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16439
 
      ;;
16440
 
 
16441
 
    linux* | k*bsd*-gnu)
 
15709
    linux*)
16442
15710
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16443
15711
        tmp_addflag=
16444
15712
        case $cc_basename,$host_cpu in
16464
15732
  $echo "local: *; };" >> $output_objdir/$libname.ver~
16465
15733
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16466
15734
        fi
16467
 
        link_all_deplibs_GCJ=no
16468
15735
      else
16469
15736
        ld_shlibs_GCJ=no
16470
15737
      fi
16471
15738
      ;;
16472
15739
 
16473
 
    netbsd* | netbsdelf*-gnu)
 
15740
    netbsd*)
16474
15741
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16475
15742
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16476
15743
        wlarc=
16480
15747
      fi
16481
15748
      ;;
16482
15749
 
16483
 
    solaris*)
 
15750
    solaris* | sysv5*)
16484
15751
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16485
15752
        ld_shlibs_GCJ=no
16486
15753
        cat <<EOF 1>&2
16501
15768
      fi
16502
15769
      ;;
16503
15770
 
16504
 
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16505
 
      case `$LD -v 2>&1` in
16506
 
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16507
 
        ld_shlibs_GCJ=no
16508
 
        cat <<_LT_EOF 1>&2
16509
 
 
16510
 
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16511
 
*** reliably create shared libraries on SCO systems.  Therefore, libtool
16512
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
16513
 
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16514
 
*** your PATH or compiler configuration so that the native linker is
16515
 
*** used, and then restart.
16516
 
 
16517
 
_LT_EOF
16518
 
        ;;
16519
 
        *)
16520
 
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16521
 
            hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16522
 
            archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16523
 
            archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16524
 
          else
16525
 
            ld_shlibs_GCJ=no
16526
 
          fi
16527
 
        ;;
16528
 
      esac
16529
 
      ;;
16530
 
 
16531
15771
    sunos4*)
16532
15772
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16533
15773
      wlarc=
16561
15801
      # Note: this linker hardcodes the directories in LIBPATH if there
16562
15802
      # are no directories specified by -L.
16563
15803
      hardcode_minus_L_GCJ=yes
16564
 
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
15804
      if test "$GCC" = yes && test -z "$link_static_flag"; then
16565
15805
        # Neither direct hardcoding nor static linking is supported with a
16566
15806
        # broken collect2.
16567
15807
        hardcode_direct_GCJ=unsupported
16595
15835
            break
16596
15836
          fi
16597
15837
          done
16598
 
          ;;
16599
15838
        esac
16600
15839
 
16601
15840
        exp_sym_flag='-bexport'
16633
15872
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
16634
15873
          hardcode_libdir_separator_GCJ=
16635
15874
          fi
16636
 
          ;;
16637
15875
        esac
16638
15876
        shared_flag='-shared'
16639
15877
        if test "$aix_use_runtimelinking" = yes; then
16646
15884
        # chokes on -Wl,-G. The following line is correct:
16647
15885
          shared_flag='-G'
16648
15886
        else
16649
 
          if test "$aix_use_runtimelinking" = yes; then
 
15887
        if test "$aix_use_runtimelinking" = yes; then
16650
15888
            shared_flag='${wl}-G'
16651
15889
          else
16652
15890
            shared_flag='${wl}-bM:SRE'
16653
 
          fi
 
15891
        fi
16654
15892
        fi
16655
15893
      fi
16656
15894
 
16678
15916
}
16679
15917
_ACEOF
16680
15918
rm -f conftest.$ac_objext conftest$ac_exeext
16681
 
if { (ac_try="$ac_link"
16682
 
case "(($ac_try" in
16683
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16684
 
  *) ac_try_echo=$ac_try;;
16685
 
esac
16686
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16687
 
  (eval "$ac_link") 2>conftest.er1
 
15919
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
15920
  (eval $ac_link) 2>conftest.er1
16688
15921
  ac_status=$?
16689
15922
  grep -v '^ *+' conftest.er1 >conftest.err
16690
15923
  rm -f conftest.er1
16691
15924
  cat conftest.err >&5
16692
15925
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693
15926
  (exit $ac_status); } &&
16694
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16695
 
  { (case "(($ac_try" in
16696
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16697
 
  *) ac_try_echo=$ac_try;;
16698
 
esac
16699
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16700
 
  (eval "$ac_try") 2>&5
 
15927
         { ac_try='test -z "$ac_c_werror_flag"
 
15928
                         || test ! -s conftest.err'
 
15929
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15930
  (eval $ac_try) 2>&5
16701
15931
  ac_status=$?
16702
15932
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16703
15933
  (exit $ac_status); }; } &&
16704
15934
         { ac_try='test -s conftest$ac_exeext'
16705
 
  { (case "(($ac_try" in
16706
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16707
 
  *) ac_try_echo=$ac_try;;
16708
 
esac
16709
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16710
 
  (eval "$ac_try") 2>&5
 
15935
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15936
  (eval $ac_try) 2>&5
16711
15937
  ac_status=$?
16712
15938
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713
15939
  (exit $ac_status); }; }; then
16721
15947
  echo "$as_me: failed program was:" >&5
16722
15948
sed 's/^/| /' conftest.$ac_ext >&5
16723
15949
 
16724
 
 
16725
15950
fi
16726
 
 
16727
 
rm -f core conftest.err conftest.$ac_objext \
 
15951
rm -f conftest.err conftest.$ac_objext \
16728
15952
      conftest$ac_exeext conftest.$ac_ext
16729
15953
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16730
15954
 
16731
15955
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16732
 
        archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
15956
        archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16733
15957
       else
16734
15958
        if test "$host_cpu" = ia64; then
16735
15959
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16736
15960
          allow_undefined_flag_GCJ="-z nodefs"
16737
 
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
 
15961
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16738
15962
        else
16739
15963
         # Determine the default libpath from the value encoded in an empty executable.
16740
15964
         cat >conftest.$ac_ext <<_ACEOF
16753
15977
}
16754
15978
_ACEOF
16755
15979
rm -f conftest.$ac_objext conftest$ac_exeext
16756
 
if { (ac_try="$ac_link"
16757
 
case "(($ac_try" in
16758
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16759
 
  *) ac_try_echo=$ac_try;;
16760
 
esac
16761
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16762
 
  (eval "$ac_link") 2>conftest.er1
 
15980
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
15981
  (eval $ac_link) 2>conftest.er1
16763
15982
  ac_status=$?
16764
15983
  grep -v '^ *+' conftest.er1 >conftest.err
16765
15984
  rm -f conftest.er1
16766
15985
  cat conftest.err >&5
16767
15986
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16768
15987
  (exit $ac_status); } &&
16769
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16770
 
  { (case "(($ac_try" in
16771
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16772
 
  *) ac_try_echo=$ac_try;;
16773
 
esac
16774
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16775
 
  (eval "$ac_try") 2>&5
 
15988
         { ac_try='test -z "$ac_c_werror_flag"
 
15989
                         || test ! -s conftest.err'
 
15990
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15991
  (eval $ac_try) 2>&5
16776
15992
  ac_status=$?
16777
15993
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16778
15994
  (exit $ac_status); }; } &&
16779
15995
         { ac_try='test -s conftest$ac_exeext'
16780
 
  { (case "(($ac_try" in
16781
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16782
 
  *) ac_try_echo=$ac_try;;
16783
 
esac
16784
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16785
 
  (eval "$ac_try") 2>&5
 
15996
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15997
  (eval $ac_try) 2>&5
16786
15998
  ac_status=$?
16787
15999
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16788
16000
  (exit $ac_status); }; }; then
16796
16008
  echo "$as_me: failed program was:" >&5
16797
16009
sed 's/^/| /' conftest.$ac_ext >&5
16798
16010
 
16799
 
 
16800
16011
fi
16801
 
 
16802
 
rm -f core conftest.err conftest.$ac_objext \
 
16012
rm -f conftest.err conftest.$ac_objext \
16803
16013
      conftest$ac_exeext conftest.$ac_ext
16804
16014
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16805
16015
 
16808
16018
          # -berok will link without error, but may produce a broken library.
16809
16019
          no_undefined_flag_GCJ=' ${wl}-bernotok'
16810
16020
          allow_undefined_flag_GCJ=' ${wl}-berok'
 
16021
          # -bexpall does not export symbols beginning with underscore (_)
 
16022
          always_export_symbols_GCJ=yes
16811
16023
          # Exported symbols can be pulled into shared objects from archives
16812
 
          whole_archive_flag_spec_GCJ='$convenience'
 
16024
          whole_archive_flag_spec_GCJ=' '
16813
16025
          archive_cmds_need_lc_GCJ=yes
16814
16026
          # This is similar to how AIX traditionally builds its shared libraries.
16815
 
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
16027
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16816
16028
        fi
16817
16029
      fi
16818
16030
      ;;
16930
16142
      ;;
16931
16143
 
16932
16144
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16933
 
    freebsd* | dragonfly*)
 
16145
    freebsd* | kfreebsd*-gnu | dragonfly*)
16934
16146
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16935
16147
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16936
16148
      hardcode_direct_GCJ=yes
16953
16165
      export_dynamic_flag_spec_GCJ='${wl}-E'
16954
16166
      ;;
16955
16167
 
16956
 
    hpux10*)
16957
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16958
 
        archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16959
 
      else
16960
 
        archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16961
 
      fi
16962
 
      if test "$with_gnu_ld" = no; then
16963
 
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16964
 
        hardcode_libdir_separator_GCJ=:
16965
 
 
16966
 
        hardcode_direct_GCJ=yes
16967
 
        export_dynamic_flag_spec_GCJ='${wl}-E'
16968
 
 
16969
 
        # hardcode_minus_L: Not really in the search PATH,
16970
 
        # but as the default location of the library.
16971
 
        hardcode_minus_L_GCJ=yes
16972
 
      fi
16973
 
      ;;
16974
 
 
16975
 
    hpux11*)
 
16168
    hpux10* | hpux11*)
16976
16169
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16977
16170
        case $host_cpu in
16978
 
        hppa*64*)
 
16171
        hppa*64*|ia64*)
16979
16172
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16980
16173
          ;;
16981
 
        ia64*)
16982
 
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16983
 
          ;;
16984
16174
        *)
16985
16175
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16986
16176
          ;;
16987
16177
        esac
16988
16178
      else
16989
16179
        case $host_cpu in
16990
 
        hppa*64*)
16991
 
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16992
 
          ;;
16993
 
        ia64*)
16994
 
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
16180
        hppa*64*|ia64*)
 
16181
          archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16995
16182
          ;;
16996
16183
        *)
16997
 
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
16184
          archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16998
16185
          ;;
16999
16186
        esac
17000
16187
      fi
17001
16188
      if test "$with_gnu_ld" = no; then
17002
 
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17003
 
        hardcode_libdir_separator_GCJ=:
17004
 
 
17005
16189
        case $host_cpu in
17006
 
        hppa*64*|ia64*)
 
16190
        hppa*64*)
 
16191
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17007
16192
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17008
 
          hardcode_direct_GCJ=no
17009
 
          hardcode_shlibpath_var_GCJ=no
 
16193
          hardcode_libdir_separator_GCJ=:
 
16194
          hardcode_direct_GCJ=no
 
16195
          hardcode_shlibpath_var_GCJ=no
 
16196
          ;;
 
16197
        ia64*)
 
16198
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16199
          hardcode_direct_GCJ=no
 
16200
          hardcode_shlibpath_var_GCJ=no
 
16201
 
 
16202
          # hardcode_minus_L: Not really in the search PATH,
 
16203
          # but as the default location of the library.
 
16204
          hardcode_minus_L_GCJ=yes
17010
16205
          ;;
17011
16206
        *)
 
16207
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
16208
          hardcode_libdir_separator_GCJ=:
17012
16209
          hardcode_direct_GCJ=yes
17013
16210
          export_dynamic_flag_spec_GCJ='${wl}-E'
17014
16211
 
17032
16229
      link_all_deplibs_GCJ=yes
17033
16230
      ;;
17034
16231
 
17035
 
    netbsd* | netbsdelf*-gnu)
 
16232
    netbsd*)
17036
16233
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17037
16234
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17038
16235
      else
17110
16307
      hardcode_libdir_separator_GCJ=:
17111
16308
      ;;
17112
16309
 
 
16310
    sco3.2v5*)
 
16311
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16312
      hardcode_shlibpath_var_GCJ=no
 
16313
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
16314
      runpath_var=LD_RUN_PATH
 
16315
      hardcode_runpath_var=yes
 
16316
      ;;
 
16317
 
17113
16318
    solaris*)
17114
16319
      no_undefined_flag_GCJ=' -z text'
17115
16320
      if test "$GCC" = yes; then
17195
16400
      fi
17196
16401
      ;;
17197
16402
 
17198
 
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17199
 
      no_undefined_flag_GCJ='${wl}-z,text'
17200
 
      archive_cmds_need_lc_GCJ=no
17201
 
      hardcode_shlibpath_var_GCJ=no
17202
 
      runpath_var='LD_RUN_PATH'
17203
 
 
17204
 
      if test "$GCC" = yes; then
17205
 
        archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17206
 
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17207
 
      else
17208
 
        archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17209
 
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17210
 
      fi
17211
 
      ;;
17212
 
 
17213
 
    sysv5* | sco3.2v5* | sco5v6*)
17214
 
      # Note: We can NOT use -z defs as we might desire, because we do not
17215
 
      # link with -lc, and that would cause any symbols used from libc to
17216
 
      # always be unresolved, which means just about no library would
17217
 
      # ever link correctly.  If we're not using GNU ld we use -z text
17218
 
      # though, which does catch some bad symbols but isn't as heavy-handed
17219
 
      # as -z defs.
17220
 
      no_undefined_flag_GCJ='${wl}-z,text'
17221
 
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
17222
 
      archive_cmds_need_lc_GCJ=no
17223
 
      hardcode_shlibpath_var_GCJ=no
17224
 
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17225
 
      hardcode_libdir_separator_GCJ=':'
17226
 
      link_all_deplibs_GCJ=yes
17227
 
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17228
 
      runpath_var='LD_RUN_PATH'
17229
 
 
17230
 
      if test "$GCC" = yes; then
17231
 
        archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17232
 
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17233
 
      else
17234
 
        archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17235
 
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17236
 
      fi
 
16403
    sysv4.2uw2*)
 
16404
      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
16405
      hardcode_direct_GCJ=yes
 
16406
      hardcode_minus_L_GCJ=no
 
16407
      hardcode_shlibpath_var_GCJ=no
 
16408
      hardcode_runpath_var=yes
 
16409
      runpath_var=LD_RUN_PATH
 
16410
      ;;
 
16411
 
 
16412
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
16413
      no_undefined_flag_GCJ='${wl}-z ${wl}text'
 
16414
      if test "$GCC" = yes; then
 
16415
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16416
      else
 
16417
        archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16418
      fi
 
16419
      runpath_var='LD_RUN_PATH'
 
16420
      hardcode_shlibpath_var_GCJ=no
 
16421
      ;;
 
16422
 
 
16423
    sysv5*)
 
16424
      no_undefined_flag_GCJ=' -z text'
 
16425
      # $CC -shared without GNU ld will not create a library from C++
 
16426
      # object files and a static libstdc++, better avoid it by now
 
16427
      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16428
      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
16429
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
16430
      hardcode_libdir_flag_spec_GCJ=
 
16431
      hardcode_shlibpath_var_GCJ=no
 
16432
      runpath_var='LD_RUN_PATH'
17237
16433
      ;;
17238
16434
 
17239
16435
    uts4*)
17248
16444
    esac
17249
16445
  fi
17250
16446
 
17251
 
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17252
 
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
 
16447
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
16448
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17253
16449
test "$ld_shlibs_GCJ" = no && can_build_shared=no
17254
16450
 
 
16451
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
16452
if test "$GCC" = yes; then
 
16453
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
16454
fi
 
16455
 
17255
16456
#
17256
16457
# Do we need to explicitly link libc?
17257
16458
#
17269
16470
      # Test whether the compiler implicitly links with -lc since on some
17270
16471
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17271
16472
      # to ld, don't add -lc before -lgcc.
17272
 
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17273
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
16473
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
16474
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17274
16475
      $rm conftest*
17275
16476
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17276
16477
 
17284
16485
        libobjs=conftest.$ac_objext
17285
16486
        deplibs=
17286
16487
        wl=$lt_prog_compiler_wl_GCJ
17287
 
        pic_flag=$lt_prog_compiler_pic_GCJ
17288
16488
        compiler_flags=-v
17289
16489
        linker_flags=-v
17290
16490
        verstring=
17307
16507
        cat conftest.err 1>&5
17308
16508
      fi
17309
16509
      $rm conftest*
17310
 
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17311
 
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
 
16510
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
16511
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17312
16512
      ;;
17313
16513
    esac
17314
16514
  fi
17315
16515
  ;;
17316
16516
esac
17317
16517
 
17318
 
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17319
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
16518
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
16519
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17320
16520
library_names_spec=
17321
16521
libname_spec='lib$name'
17322
16522
soname_spec=
17522
16722
  dynamic_linker=no
17523
16723
  ;;
17524
16724
 
 
16725
kfreebsd*-gnu)
 
16726
  version_type=linux
 
16727
  need_lib_prefix=no
 
16728
  need_version=no
 
16729
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16730
  soname_spec='${libname}${release}${shared_ext}$major'
 
16731
  shlibpath_var=LD_LIBRARY_PATH
 
16732
  shlibpath_overrides_runpath=no
 
16733
  hardcode_into_libs=yes
 
16734
  dynamic_linker='GNU ld.so'
 
16735
  ;;
 
16736
 
17525
16737
freebsd* | dragonfly*)
17526
16738
  # DragonFly does not have aout.  When/if they implement a new
17527
16739
  # versioning mechanism, adjust this.
17554
16766
    shlibpath_overrides_runpath=yes
17555
16767
    hardcode_into_libs=yes
17556
16768
    ;;
17557
 
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17558
 
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
16769
  *) # from 3.2 on
17559
16770
    shlibpath_overrides_runpath=no
17560
16771
    hardcode_into_libs=yes
17561
16772
    ;;
17562
 
  freebsd*) # from 4.6 on
17563
 
    shlibpath_overrides_runpath=yes
17564
 
    hardcode_into_libs=yes
17565
 
    ;;
17566
16773
  esac
17567
16774
  ;;
17568
16775
 
17622
16829
  postinstall_cmds='chmod 555 $lib'
17623
16830
  ;;
17624
16831
 
17625
 
interix3*)
17626
 
  version_type=linux
17627
 
  need_lib_prefix=no
17628
 
  need_version=no
17629
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17630
 
  soname_spec='${libname}${release}${shared_ext}$major'
17631
 
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17632
 
  shlibpath_var=LD_LIBRARY_PATH
17633
 
  shlibpath_overrides_runpath=no
17634
 
  hardcode_into_libs=yes
17635
 
  ;;
17636
 
 
17637
16832
irix5* | irix6* | nonstopux*)
17638
16833
  case $host_os in
17639
16834
    nonstopux*) version_type=nonstopux ;;
17677
16872
  ;;
17678
16873
 
17679
16874
# This must be Linux ELF.
17680
 
linux* | k*bsd*-gnu)
 
16875
linux*)
17681
16876
  version_type=linux
17682
16877
  need_lib_prefix=no
17683
16878
  need_version=no
17706
16901
  dynamic_linker='GNU/Linux ld.so'
17707
16902
  ;;
17708
16903
 
17709
 
netbsdelf*-gnu)
 
16904
knetbsd*-gnu)
17710
16905
  version_type=linux
17711
16906
  need_lib_prefix=no
17712
16907
  need_version=no
17715
16910
  shlibpath_var=LD_LIBRARY_PATH
17716
16911
  shlibpath_overrides_runpath=no
17717
16912
  hardcode_into_libs=yes
17718
 
  dynamic_linker='NetBSD ld.elf_so'
 
16913
  dynamic_linker='GNU ld.so'
17719
16914
  ;;
17720
16915
 
17721
16916
netbsd*)
17755
16950
 
17756
16951
openbsd*)
17757
16952
  version_type=sunos
17758
 
  sys_lib_dlsearch_path_spec="/usr/lib"
17759
16953
  need_lib_prefix=no
17760
16954
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17761
16955
  case $host_os in
17799
16993
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17800
16994
  ;;
17801
16995
 
 
16996
sco3.2v5*)
 
16997
  version_type=osf
 
16998
  soname_spec='${libname}${release}${shared_ext}$major'
 
16999
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17000
  shlibpath_var=LD_LIBRARY_PATH
 
17001
  ;;
 
17002
 
17802
17003
solaris*)
17803
17004
  version_type=linux
17804
17005
  need_lib_prefix=no
17824
17025
  need_version=yes
17825
17026
  ;;
17826
17027
 
17827
 
sysv4 | sysv4.3*)
 
17028
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17828
17029
  version_type=linux
17829
17030
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17830
17031
  soname_spec='${libname}${release}${shared_ext}$major'
17857
17058
  fi
17858
17059
  ;;
17859
17060
 
17860
 
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17861
 
  version_type=freebsd-elf
17862
 
  need_lib_prefix=no
17863
 
  need_version=no
17864
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17865
 
  soname_spec='${libname}${release}${shared_ext}$major'
17866
 
  shlibpath_var=LD_LIBRARY_PATH
17867
 
  hardcode_into_libs=yes
17868
 
  if test "$with_gnu_ld" = yes; then
17869
 
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17870
 
    shlibpath_overrides_runpath=no
17871
 
  else
17872
 
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17873
 
    shlibpath_overrides_runpath=yes
17874
 
    case $host_os in
17875
 
      sco3.2v5*)
17876
 
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17877
 
        ;;
17878
 
    esac
17879
 
  fi
17880
 
  sys_lib_dlsearch_path_spec='/usr/lib'
17881
 
  ;;
17882
 
 
17883
17061
uts4*)
17884
17062
  version_type=linux
17885
17063
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17891
17069
  dynamic_linker=no
17892
17070
  ;;
17893
17071
esac
17894
 
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17895
 
echo "${ECHO_T}$dynamic_linker" >&6; }
 
17072
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
17073
echo "${ECHO_T}$dynamic_linker" >&6
17896
17074
test "$dynamic_linker" = no && can_build_shared=no
17897
17075
 
17898
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17899
 
if test "$GCC" = yes; then
17900
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17901
 
fi
17902
 
 
17903
 
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17904
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
17076
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
17077
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17905
17078
hardcode_action_GCJ=
17906
17079
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17907
17080
   test -n "$runpath_var_GCJ" || \
17925
17098
  # directories.
17926
17099
  hardcode_action_GCJ=unsupported
17927
17100
fi
17928
 
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17929
 
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
 
17101
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
17102
echo "${ECHO_T}$hardcode_action_GCJ" >&6
17930
17103
 
17931
17104
if test "$hardcode_action_GCJ" = relink; then
17932
17105
  # Fast installation is not supported
17937
17110
  enable_fast_install=needless
17938
17111
fi
17939
17112
 
 
17113
striplib=
 
17114
old_striplib=
 
17115
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
17116
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
17117
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
17118
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
17119
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
17120
  echo "$as_me:$LINENO: result: yes" >&5
 
17121
echo "${ECHO_T}yes" >&6
 
17122
else
 
17123
# FIXME - insert some real tests, host_os isn't really good enough
 
17124
  case $host_os in
 
17125
   darwin*)
 
17126
       if test -n "$STRIP" ; then
 
17127
         striplib="$STRIP -x"
 
17128
         echo "$as_me:$LINENO: result: yes" >&5
 
17129
echo "${ECHO_T}yes" >&6
 
17130
       else
 
17131
  echo "$as_me:$LINENO: result: no" >&5
 
17132
echo "${ECHO_T}no" >&6
 
17133
fi
 
17134
       ;;
 
17135
   *)
 
17136
  echo "$as_me:$LINENO: result: no" >&5
 
17137
echo "${ECHO_T}no" >&6
 
17138
    ;;
 
17139
  esac
 
17140
fi
 
17141
 
 
17142
if test "x$enable_dlopen" != xyes; then
 
17143
  enable_dlopen=unknown
 
17144
  enable_dlopen_self=unknown
 
17145
  enable_dlopen_self_static=unknown
 
17146
else
 
17147
  lt_cv_dlopen=no
 
17148
  lt_cv_dlopen_libs=
 
17149
 
 
17150
  case $host_os in
 
17151
  beos*)
 
17152
    lt_cv_dlopen="load_add_on"
 
17153
    lt_cv_dlopen_libs=
 
17154
    lt_cv_dlopen_self=yes
 
17155
    ;;
 
17156
 
 
17157
  mingw* | pw32*)
 
17158
    lt_cv_dlopen="LoadLibrary"
 
17159
    lt_cv_dlopen_libs=
 
17160
   ;;
 
17161
 
 
17162
  cygwin*)
 
17163
    lt_cv_dlopen="dlopen"
 
17164
    lt_cv_dlopen_libs=
 
17165
   ;;
 
17166
 
 
17167
  darwin*)
 
17168
  # if libdl is installed we need to link against it
 
17169
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
17170
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
17171
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
17172
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17173
else
 
17174
  ac_check_lib_save_LIBS=$LIBS
 
17175
LIBS="-ldl  $LIBS"
 
17176
cat >conftest.$ac_ext <<_ACEOF
 
17177
/* confdefs.h.  */
 
17178
_ACEOF
 
17179
cat confdefs.h >>conftest.$ac_ext
 
17180
cat >>conftest.$ac_ext <<_ACEOF
 
17181
/* end confdefs.h.  */
 
17182
 
 
17183
/* Override any gcc2 internal prototype to avoid an error.  */
 
17184
#ifdef __cplusplus
 
17185
extern "C"
 
17186
#endif
 
17187
/* We use char because int might match the return type of a gcc2
 
17188
   builtin and then its argument prototype would still apply.  */
 
17189
char dlopen ();
 
17190
int
 
17191
main ()
 
17192
{
 
17193
dlopen ();
 
17194
  ;
 
17195
  return 0;
 
17196
}
 
17197
_ACEOF
 
17198
rm -f conftest.$ac_objext conftest$ac_exeext
 
17199
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17200
  (eval $ac_link) 2>conftest.er1
 
17201
  ac_status=$?
 
17202
  grep -v '^ *+' conftest.er1 >conftest.err
 
17203
  rm -f conftest.er1
 
17204
  cat conftest.err >&5
 
17205
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17206
  (exit $ac_status); } &&
 
17207
         { ac_try='test -z "$ac_c_werror_flag"
 
17208
                         || test ! -s conftest.err'
 
17209
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17210
  (eval $ac_try) 2>&5
 
17211
  ac_status=$?
 
17212
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17213
  (exit $ac_status); }; } &&
 
17214
         { ac_try='test -s conftest$ac_exeext'
 
17215
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17216
  (eval $ac_try) 2>&5
 
17217
  ac_status=$?
 
17218
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17219
  (exit $ac_status); }; }; then
 
17220
  ac_cv_lib_dl_dlopen=yes
 
17221
else
 
17222
  echo "$as_me: failed program was:" >&5
 
17223
sed 's/^/| /' conftest.$ac_ext >&5
 
17224
 
 
17225
ac_cv_lib_dl_dlopen=no
 
17226
fi
 
17227
rm -f conftest.err conftest.$ac_objext \
 
17228
      conftest$ac_exeext conftest.$ac_ext
 
17229
LIBS=$ac_check_lib_save_LIBS
 
17230
fi
 
17231
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
17232
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
17233
if test $ac_cv_lib_dl_dlopen = yes; then
 
17234
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
17235
else
 
17236
 
 
17237
    lt_cv_dlopen="dyld"
 
17238
    lt_cv_dlopen_libs=
 
17239
    lt_cv_dlopen_self=yes
 
17240
 
 
17241
fi
 
17242
 
 
17243
   ;;
 
17244
 
 
17245
  *)
 
17246
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
17247
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
17248
if test "${ac_cv_func_shl_load+set}" = set; then
 
17249
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17250
else
 
17251
  cat >conftest.$ac_ext <<_ACEOF
 
17252
/* confdefs.h.  */
 
17253
_ACEOF
 
17254
cat confdefs.h >>conftest.$ac_ext
 
17255
cat >>conftest.$ac_ext <<_ACEOF
 
17256
/* end confdefs.h.  */
 
17257
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
17258
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
17259
#define shl_load innocuous_shl_load
 
17260
 
 
17261
/* System header to define __stub macros and hopefully few prototypes,
 
17262
    which can conflict with char shl_load (); below.
 
17263
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
17264
    <limits.h> exists even on freestanding compilers.  */
 
17265
 
 
17266
#ifdef __STDC__
 
17267
# include <limits.h>
 
17268
#else
 
17269
# include <assert.h>
 
17270
#endif
 
17271
 
 
17272
#undef shl_load
 
17273
 
 
17274
/* Override any gcc2 internal prototype to avoid an error.  */
 
17275
#ifdef __cplusplus
 
17276
extern "C"
 
17277
{
 
17278
#endif
 
17279
/* We use char because int might match the return type of a gcc2
 
17280
   builtin and then its argument prototype would still apply.  */
 
17281
char shl_load ();
 
17282
/* The GNU C library defines this for functions which it implements
 
17283
    to always fail with ENOSYS.  Some functions are actually named
 
17284
    something starting with __ and the normal name is an alias.  */
 
17285
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
17286
choke me
 
17287
#else
 
17288
char (*f) () = shl_load;
 
17289
#endif
 
17290
#ifdef __cplusplus
 
17291
}
 
17292
#endif
 
17293
 
 
17294
int
 
17295
main ()
 
17296
{
 
17297
return f != shl_load;
 
17298
  ;
 
17299
  return 0;
 
17300
}
 
17301
_ACEOF
 
17302
rm -f conftest.$ac_objext conftest$ac_exeext
 
17303
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17304
  (eval $ac_link) 2>conftest.er1
 
17305
  ac_status=$?
 
17306
  grep -v '^ *+' conftest.er1 >conftest.err
 
17307
  rm -f conftest.er1
 
17308
  cat conftest.err >&5
 
17309
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17310
  (exit $ac_status); } &&
 
17311
         { ac_try='test -z "$ac_c_werror_flag"
 
17312
                         || test ! -s conftest.err'
 
17313
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17314
  (eval $ac_try) 2>&5
 
17315
  ac_status=$?
 
17316
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17317
  (exit $ac_status); }; } &&
 
17318
         { ac_try='test -s conftest$ac_exeext'
 
17319
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17320
  (eval $ac_try) 2>&5
 
17321
  ac_status=$?
 
17322
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17323
  (exit $ac_status); }; }; then
 
17324
  ac_cv_func_shl_load=yes
 
17325
else
 
17326
  echo "$as_me: failed program was:" >&5
 
17327
sed 's/^/| /' conftest.$ac_ext >&5
 
17328
 
 
17329
ac_cv_func_shl_load=no
 
17330
fi
 
17331
rm -f conftest.err conftest.$ac_objext \
 
17332
      conftest$ac_exeext conftest.$ac_ext
 
17333
fi
 
17334
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
17335
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
17336
if test $ac_cv_func_shl_load = yes; then
 
17337
  lt_cv_dlopen="shl_load"
 
17338
else
 
17339
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
17340
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
17341
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
17342
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17343
else
 
17344
  ac_check_lib_save_LIBS=$LIBS
 
17345
LIBS="-ldld  $LIBS"
 
17346
cat >conftest.$ac_ext <<_ACEOF
 
17347
/* confdefs.h.  */
 
17348
_ACEOF
 
17349
cat confdefs.h >>conftest.$ac_ext
 
17350
cat >>conftest.$ac_ext <<_ACEOF
 
17351
/* end confdefs.h.  */
 
17352
 
 
17353
/* Override any gcc2 internal prototype to avoid an error.  */
 
17354
#ifdef __cplusplus
 
17355
extern "C"
 
17356
#endif
 
17357
/* We use char because int might match the return type of a gcc2
 
17358
   builtin and then its argument prototype would still apply.  */
 
17359
char shl_load ();
 
17360
int
 
17361
main ()
 
17362
{
 
17363
shl_load ();
 
17364
  ;
 
17365
  return 0;
 
17366
}
 
17367
_ACEOF
 
17368
rm -f conftest.$ac_objext conftest$ac_exeext
 
17369
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17370
  (eval $ac_link) 2>conftest.er1
 
17371
  ac_status=$?
 
17372
  grep -v '^ *+' conftest.er1 >conftest.err
 
17373
  rm -f conftest.er1
 
17374
  cat conftest.err >&5
 
17375
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17376
  (exit $ac_status); } &&
 
17377
         { ac_try='test -z "$ac_c_werror_flag"
 
17378
                         || test ! -s conftest.err'
 
17379
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17380
  (eval $ac_try) 2>&5
 
17381
  ac_status=$?
 
17382
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17383
  (exit $ac_status); }; } &&
 
17384
         { ac_try='test -s conftest$ac_exeext'
 
17385
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17386
  (eval $ac_try) 2>&5
 
17387
  ac_status=$?
 
17388
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17389
  (exit $ac_status); }; }; then
 
17390
  ac_cv_lib_dld_shl_load=yes
 
17391
else
 
17392
  echo "$as_me: failed program was:" >&5
 
17393
sed 's/^/| /' conftest.$ac_ext >&5
 
17394
 
 
17395
ac_cv_lib_dld_shl_load=no
 
17396
fi
 
17397
rm -f conftest.err conftest.$ac_objext \
 
17398
      conftest$ac_exeext conftest.$ac_ext
 
17399
LIBS=$ac_check_lib_save_LIBS
 
17400
fi
 
17401
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
17402
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
17403
if test $ac_cv_lib_dld_shl_load = yes; then
 
17404
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
17405
else
 
17406
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
17407
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
17408
if test "${ac_cv_func_dlopen+set}" = set; then
 
17409
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17410
else
 
17411
  cat >conftest.$ac_ext <<_ACEOF
 
17412
/* confdefs.h.  */
 
17413
_ACEOF
 
17414
cat confdefs.h >>conftest.$ac_ext
 
17415
cat >>conftest.$ac_ext <<_ACEOF
 
17416
/* end confdefs.h.  */
 
17417
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
17418
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
17419
#define dlopen innocuous_dlopen
 
17420
 
 
17421
/* System header to define __stub macros and hopefully few prototypes,
 
17422
    which can conflict with char dlopen (); below.
 
17423
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
17424
    <limits.h> exists even on freestanding compilers.  */
 
17425
 
 
17426
#ifdef __STDC__
 
17427
# include <limits.h>
 
17428
#else
 
17429
# include <assert.h>
 
17430
#endif
 
17431
 
 
17432
#undef dlopen
 
17433
 
 
17434
/* Override any gcc2 internal prototype to avoid an error.  */
 
17435
#ifdef __cplusplus
 
17436
extern "C"
 
17437
{
 
17438
#endif
 
17439
/* We use char because int might match the return type of a gcc2
 
17440
   builtin and then its argument prototype would still apply.  */
 
17441
char dlopen ();
 
17442
/* The GNU C library defines this for functions which it implements
 
17443
    to always fail with ENOSYS.  Some functions are actually named
 
17444
    something starting with __ and the normal name is an alias.  */
 
17445
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
17446
choke me
 
17447
#else
 
17448
char (*f) () = dlopen;
 
17449
#endif
 
17450
#ifdef __cplusplus
 
17451
}
 
17452
#endif
 
17453
 
 
17454
int
 
17455
main ()
 
17456
{
 
17457
return f != dlopen;
 
17458
  ;
 
17459
  return 0;
 
17460
}
 
17461
_ACEOF
 
17462
rm -f conftest.$ac_objext conftest$ac_exeext
 
17463
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17464
  (eval $ac_link) 2>conftest.er1
 
17465
  ac_status=$?
 
17466
  grep -v '^ *+' conftest.er1 >conftest.err
 
17467
  rm -f conftest.er1
 
17468
  cat conftest.err >&5
 
17469
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17470
  (exit $ac_status); } &&
 
17471
         { ac_try='test -z "$ac_c_werror_flag"
 
17472
                         || test ! -s conftest.err'
 
17473
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17474
  (eval $ac_try) 2>&5
 
17475
  ac_status=$?
 
17476
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17477
  (exit $ac_status); }; } &&
 
17478
         { ac_try='test -s conftest$ac_exeext'
 
17479
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17480
  (eval $ac_try) 2>&5
 
17481
  ac_status=$?
 
17482
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17483
  (exit $ac_status); }; }; then
 
17484
  ac_cv_func_dlopen=yes
 
17485
else
 
17486
  echo "$as_me: failed program was:" >&5
 
17487
sed 's/^/| /' conftest.$ac_ext >&5
 
17488
 
 
17489
ac_cv_func_dlopen=no
 
17490
fi
 
17491
rm -f conftest.err conftest.$ac_objext \
 
17492
      conftest$ac_exeext conftest.$ac_ext
 
17493
fi
 
17494
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
17495
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
17496
if test $ac_cv_func_dlopen = yes; then
 
17497
  lt_cv_dlopen="dlopen"
 
17498
else
 
17499
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
17500
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
17501
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
17502
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17503
else
 
17504
  ac_check_lib_save_LIBS=$LIBS
 
17505
LIBS="-ldl  $LIBS"
 
17506
cat >conftest.$ac_ext <<_ACEOF
 
17507
/* confdefs.h.  */
 
17508
_ACEOF
 
17509
cat confdefs.h >>conftest.$ac_ext
 
17510
cat >>conftest.$ac_ext <<_ACEOF
 
17511
/* end confdefs.h.  */
 
17512
 
 
17513
/* Override any gcc2 internal prototype to avoid an error.  */
 
17514
#ifdef __cplusplus
 
17515
extern "C"
 
17516
#endif
 
17517
/* We use char because int might match the return type of a gcc2
 
17518
   builtin and then its argument prototype would still apply.  */
 
17519
char dlopen ();
 
17520
int
 
17521
main ()
 
17522
{
 
17523
dlopen ();
 
17524
  ;
 
17525
  return 0;
 
17526
}
 
17527
_ACEOF
 
17528
rm -f conftest.$ac_objext conftest$ac_exeext
 
17529
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17530
  (eval $ac_link) 2>conftest.er1
 
17531
  ac_status=$?
 
17532
  grep -v '^ *+' conftest.er1 >conftest.err
 
17533
  rm -f conftest.er1
 
17534
  cat conftest.err >&5
 
17535
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17536
  (exit $ac_status); } &&
 
17537
         { ac_try='test -z "$ac_c_werror_flag"
 
17538
                         || test ! -s conftest.err'
 
17539
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17540
  (eval $ac_try) 2>&5
 
17541
  ac_status=$?
 
17542
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17543
  (exit $ac_status); }; } &&
 
17544
         { ac_try='test -s conftest$ac_exeext'
 
17545
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17546
  (eval $ac_try) 2>&5
 
17547
  ac_status=$?
 
17548
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17549
  (exit $ac_status); }; }; then
 
17550
  ac_cv_lib_dl_dlopen=yes
 
17551
else
 
17552
  echo "$as_me: failed program was:" >&5
 
17553
sed 's/^/| /' conftest.$ac_ext >&5
 
17554
 
 
17555
ac_cv_lib_dl_dlopen=no
 
17556
fi
 
17557
rm -f conftest.err conftest.$ac_objext \
 
17558
      conftest$ac_exeext conftest.$ac_ext
 
17559
LIBS=$ac_check_lib_save_LIBS
 
17560
fi
 
17561
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
17562
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
17563
if test $ac_cv_lib_dl_dlopen = yes; then
 
17564
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
17565
else
 
17566
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
17567
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
17568
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
17569
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17570
else
 
17571
  ac_check_lib_save_LIBS=$LIBS
 
17572
LIBS="-lsvld  $LIBS"
 
17573
cat >conftest.$ac_ext <<_ACEOF
 
17574
/* confdefs.h.  */
 
17575
_ACEOF
 
17576
cat confdefs.h >>conftest.$ac_ext
 
17577
cat >>conftest.$ac_ext <<_ACEOF
 
17578
/* end confdefs.h.  */
 
17579
 
 
17580
/* Override any gcc2 internal prototype to avoid an error.  */
 
17581
#ifdef __cplusplus
 
17582
extern "C"
 
17583
#endif
 
17584
/* We use char because int might match the return type of a gcc2
 
17585
   builtin and then its argument prototype would still apply.  */
 
17586
char dlopen ();
 
17587
int
 
17588
main ()
 
17589
{
 
17590
dlopen ();
 
17591
  ;
 
17592
  return 0;
 
17593
}
 
17594
_ACEOF
 
17595
rm -f conftest.$ac_objext conftest$ac_exeext
 
17596
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17597
  (eval $ac_link) 2>conftest.er1
 
17598
  ac_status=$?
 
17599
  grep -v '^ *+' conftest.er1 >conftest.err
 
17600
  rm -f conftest.er1
 
17601
  cat conftest.err >&5
 
17602
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17603
  (exit $ac_status); } &&
 
17604
         { ac_try='test -z "$ac_c_werror_flag"
 
17605
                         || test ! -s conftest.err'
 
17606
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17607
  (eval $ac_try) 2>&5
 
17608
  ac_status=$?
 
17609
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17610
  (exit $ac_status); }; } &&
 
17611
         { ac_try='test -s conftest$ac_exeext'
 
17612
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17613
  (eval $ac_try) 2>&5
 
17614
  ac_status=$?
 
17615
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17616
  (exit $ac_status); }; }; then
 
17617
  ac_cv_lib_svld_dlopen=yes
 
17618
else
 
17619
  echo "$as_me: failed program was:" >&5
 
17620
sed 's/^/| /' conftest.$ac_ext >&5
 
17621
 
 
17622
ac_cv_lib_svld_dlopen=no
 
17623
fi
 
17624
rm -f conftest.err conftest.$ac_objext \
 
17625
      conftest$ac_exeext conftest.$ac_ext
 
17626
LIBS=$ac_check_lib_save_LIBS
 
17627
fi
 
17628
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
17629
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
17630
if test $ac_cv_lib_svld_dlopen = yes; then
 
17631
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
17632
else
 
17633
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
17634
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
17635
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
17636
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17637
else
 
17638
  ac_check_lib_save_LIBS=$LIBS
 
17639
LIBS="-ldld  $LIBS"
 
17640
cat >conftest.$ac_ext <<_ACEOF
 
17641
/* confdefs.h.  */
 
17642
_ACEOF
 
17643
cat confdefs.h >>conftest.$ac_ext
 
17644
cat >>conftest.$ac_ext <<_ACEOF
 
17645
/* end confdefs.h.  */
 
17646
 
 
17647
/* Override any gcc2 internal prototype to avoid an error.  */
 
17648
#ifdef __cplusplus
 
17649
extern "C"
 
17650
#endif
 
17651
/* We use char because int might match the return type of a gcc2
 
17652
   builtin and then its argument prototype would still apply.  */
 
17653
char dld_link ();
 
17654
int
 
17655
main ()
 
17656
{
 
17657
dld_link ();
 
17658
  ;
 
17659
  return 0;
 
17660
}
 
17661
_ACEOF
 
17662
rm -f conftest.$ac_objext conftest$ac_exeext
 
17663
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17664
  (eval $ac_link) 2>conftest.er1
 
17665
  ac_status=$?
 
17666
  grep -v '^ *+' conftest.er1 >conftest.err
 
17667
  rm -f conftest.er1
 
17668
  cat conftest.err >&5
 
17669
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17670
  (exit $ac_status); } &&
 
17671
         { ac_try='test -z "$ac_c_werror_flag"
 
17672
                         || test ! -s conftest.err'
 
17673
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17674
  (eval $ac_try) 2>&5
 
17675
  ac_status=$?
 
17676
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17677
  (exit $ac_status); }; } &&
 
17678
         { ac_try='test -s conftest$ac_exeext'
 
17679
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17680
  (eval $ac_try) 2>&5
 
17681
  ac_status=$?
 
17682
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17683
  (exit $ac_status); }; }; then
 
17684
  ac_cv_lib_dld_dld_link=yes
 
17685
else
 
17686
  echo "$as_me: failed program was:" >&5
 
17687
sed 's/^/| /' conftest.$ac_ext >&5
 
17688
 
 
17689
ac_cv_lib_dld_dld_link=no
 
17690
fi
 
17691
rm -f conftest.err conftest.$ac_objext \
 
17692
      conftest$ac_exeext conftest.$ac_ext
 
17693
LIBS=$ac_check_lib_save_LIBS
 
17694
fi
 
17695
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
17696
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
17697
if test $ac_cv_lib_dld_dld_link = yes; then
 
17698
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
17699
fi
 
17700
 
 
17701
 
 
17702
fi
 
17703
 
 
17704
 
 
17705
fi
 
17706
 
 
17707
 
 
17708
fi
 
17709
 
 
17710
 
 
17711
fi
 
17712
 
 
17713
 
 
17714
fi
 
17715
 
 
17716
    ;;
 
17717
  esac
 
17718
 
 
17719
  if test "x$lt_cv_dlopen" != xno; then
 
17720
    enable_dlopen=yes
 
17721
  else
 
17722
    enable_dlopen=no
 
17723
  fi
 
17724
 
 
17725
  case $lt_cv_dlopen in
 
17726
  dlopen)
 
17727
    save_CPPFLAGS="$CPPFLAGS"
 
17728
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
17729
 
 
17730
    save_LDFLAGS="$LDFLAGS"
 
17731
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
17732
 
 
17733
    save_LIBS="$LIBS"
 
17734
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
17735
 
 
17736
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
17737
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
17738
if test "${lt_cv_dlopen_self+set}" = set; then
 
17739
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17740
else
 
17741
          if test "$cross_compiling" = yes; then :
 
17742
  lt_cv_dlopen_self=cross
 
17743
else
 
17744
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
17745
  lt_status=$lt_dlunknown
 
17746
  cat > conftest.$ac_ext <<EOF
 
17747
#line 17747 "configure"
 
17748
#include "confdefs.h"
 
17749
 
 
17750
#if HAVE_DLFCN_H
 
17751
#include <dlfcn.h>
 
17752
#endif
 
17753
 
 
17754
#include <stdio.h>
 
17755
 
 
17756
#ifdef RTLD_GLOBAL
 
17757
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
17758
#else
 
17759
#  ifdef DL_GLOBAL
 
17760
#    define LT_DLGLOBAL         DL_GLOBAL
 
17761
#  else
 
17762
#    define LT_DLGLOBAL         0
 
17763
#  endif
 
17764
#endif
 
17765
 
 
17766
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
17767
   find out it does not work in some platform. */
 
17768
#ifndef LT_DLLAZY_OR_NOW
 
17769
#  ifdef RTLD_LAZY
 
17770
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
17771
#  else
 
17772
#    ifdef DL_LAZY
 
17773
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
17774
#    else
 
17775
#      ifdef RTLD_NOW
 
17776
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
17777
#      else
 
17778
#        ifdef DL_NOW
 
17779
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
17780
#        else
 
17781
#          define LT_DLLAZY_OR_NOW      0
 
17782
#        endif
 
17783
#      endif
 
17784
#    endif
 
17785
#  endif
 
17786
#endif
 
17787
 
 
17788
#ifdef __cplusplus
 
17789
extern "C" void exit (int);
 
17790
#endif
 
17791
 
 
17792
void fnord() { int i=42;}
 
17793
int main ()
 
17794
{
 
17795
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
17796
  int status = $lt_dlunknown;
 
17797
 
 
17798
  if (self)
 
17799
    {
 
17800
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
17801
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
17802
      /* dlclose (self); */
 
17803
    }
 
17804
 
 
17805
    exit (status);
 
17806
}
 
17807
EOF
 
17808
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17809
  (eval $ac_link) 2>&5
 
17810
  ac_status=$?
 
17811
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17812
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
17813
    (./conftest; exit; ) >&5 2>/dev/null
 
17814
    lt_status=$?
 
17815
    case x$lt_status in
 
17816
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
17817
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
17818
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
17819
    esac
 
17820
  else :
 
17821
    # compilation failed
 
17822
    lt_cv_dlopen_self=no
 
17823
  fi
 
17824
fi
 
17825
rm -fr conftest*
 
17826
 
 
17827
 
 
17828
fi
 
17829
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
17830
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
17831
 
 
17832
    if test "x$lt_cv_dlopen_self" = xyes; then
 
17833
      LDFLAGS="$LDFLAGS $link_static_flag"
 
17834
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
17835
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
17836
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
17837
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17838
else
 
17839
          if test "$cross_compiling" = yes; then :
 
17840
  lt_cv_dlopen_self_static=cross
 
17841
else
 
17842
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
17843
  lt_status=$lt_dlunknown
 
17844
  cat > conftest.$ac_ext <<EOF
 
17845
#line 17845 "configure"
 
17846
#include "confdefs.h"
 
17847
 
 
17848
#if HAVE_DLFCN_H
 
17849
#include <dlfcn.h>
 
17850
#endif
 
17851
 
 
17852
#include <stdio.h>
 
17853
 
 
17854
#ifdef RTLD_GLOBAL
 
17855
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
17856
#else
 
17857
#  ifdef DL_GLOBAL
 
17858
#    define LT_DLGLOBAL         DL_GLOBAL
 
17859
#  else
 
17860
#    define LT_DLGLOBAL         0
 
17861
#  endif
 
17862
#endif
 
17863
 
 
17864
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
17865
   find out it does not work in some platform. */
 
17866
#ifndef LT_DLLAZY_OR_NOW
 
17867
#  ifdef RTLD_LAZY
 
17868
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
17869
#  else
 
17870
#    ifdef DL_LAZY
 
17871
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
17872
#    else
 
17873
#      ifdef RTLD_NOW
 
17874
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
17875
#      else
 
17876
#        ifdef DL_NOW
 
17877
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
17878
#        else
 
17879
#          define LT_DLLAZY_OR_NOW      0
 
17880
#        endif
 
17881
#      endif
 
17882
#    endif
 
17883
#  endif
 
17884
#endif
 
17885
 
 
17886
#ifdef __cplusplus
 
17887
extern "C" void exit (int);
 
17888
#endif
 
17889
 
 
17890
void fnord() { int i=42;}
 
17891
int main ()
 
17892
{
 
17893
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
17894
  int status = $lt_dlunknown;
 
17895
 
 
17896
  if (self)
 
17897
    {
 
17898
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
17899
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
17900
      /* dlclose (self); */
 
17901
    }
 
17902
 
 
17903
    exit (status);
 
17904
}
 
17905
EOF
 
17906
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17907
  (eval $ac_link) 2>&5
 
17908
  ac_status=$?
 
17909
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17910
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
17911
    (./conftest; exit; ) >&5 2>/dev/null
 
17912
    lt_status=$?
 
17913
    case x$lt_status in
 
17914
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
17915
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
17916
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
17917
    esac
 
17918
  else :
 
17919
    # compilation failed
 
17920
    lt_cv_dlopen_self_static=no
 
17921
  fi
 
17922
fi
 
17923
rm -fr conftest*
 
17924
 
 
17925
 
 
17926
fi
 
17927
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
17928
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
17929
    fi
 
17930
 
 
17931
    CPPFLAGS="$save_CPPFLAGS"
 
17932
    LDFLAGS="$save_LDFLAGS"
 
17933
    LIBS="$save_LIBS"
 
17934
    ;;
 
17935
  esac
 
17936
 
 
17937
  case $lt_cv_dlopen_self in
 
17938
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
17939
  *) enable_dlopen_self=unknown ;;
 
17940
  esac
 
17941
 
 
17942
  case $lt_cv_dlopen_self_static in
 
17943
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
17944
  *) enable_dlopen_self_static=unknown ;;
 
17945
  esac
 
17946
fi
 
17947
 
17940
17948
 
17941
17949
# The else clause should only fire when bootstrapping the
17942
17950
# libtool distribution, otherwise you forgot to ship ltmain.sh
17951
17959
  # Now quote all the things that may contain metacharacters while being
17952
17960
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17953
17961
  # variables and quote the copies for generation of the libtool script.
17954
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
17962
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17955
17963
    SED SHELL STRIP \
17956
17964
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17957
17965
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18069
18077
# A C compiler.
18070
18078
LTCC=$lt_LTCC
18071
18079
 
18072
 
# LTCC compiler flags.
18073
 
LTCFLAGS=$lt_LTCFLAGS
18074
 
 
18075
18080
# A language-specific compiler.
18076
18081
CC=$lt_compiler_GCJ
18077
18082
 
18362
18367
      RC)
18363
18368
 
18364
18369
 
 
18370
 
18365
18371
# Source file extension for RC test sources.
18366
18372
ac_ext=rc
18367
18373
 
18380
18386
# If no C compiler was specified, use CC.
18381
18387
LTCC=${LTCC-"$CC"}
18382
18388
 
18383
 
# If no C compiler flags were specified, use CFLAGS.
18384
 
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18385
 
 
18386
18389
# Allow CC to be a program name with arguments.
18387
18390
compiler=$CC
18388
18391
 
18390
18393
# save warnings/boilerplate of simple test code
18391
18394
ac_outfile=conftest.$ac_objext
18392
18395
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18393
 
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
18396
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
18394
18397
_lt_compiler_boilerplate=`cat conftest.err`
18395
18398
$rm conftest*
18396
18399
 
18397
18400
ac_outfile=conftest.$ac_objext
18398
18401
printf "$lt_simple_link_test_code" >conftest.$ac_ext
18399
 
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
18402
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
18400
18403
_lt_linker_boilerplate=`cat conftest.err`
18401
18404
$rm conftest*
18402
18405
 
18431
18434
  # Now quote all the things that may contain metacharacters while being
18432
18435
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18433
18436
  # variables and quote the copies for generation of the libtool script.
18434
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
18437
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18435
18438
    SED SHELL STRIP \
18436
18439
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18437
18440
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18549
18552
# A C compiler.
18550
18553
LTCC=$lt_LTCC
18551
18554
 
18552
 
# LTCC compiler flags.
18553
 
LTCFLAGS=$lt_LTCFLAGS
18554
 
 
18555
18555
# A language-specific compiler.
18556
18556
CC=$lt_compiler_RC
18557
18557
 
18896
18896
do
18897
18897
  # Extract the first word of "$ac_prog", so it can be a program name with args.
18898
18898
set dummy $ac_prog; ac_word=$2
18899
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18900
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
18899
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
18900
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18901
18901
if test "${ac_cv_prog_YACC+set}" = set; then
18902
18902
  echo $ECHO_N "(cached) $ECHO_C" >&6
18903
18903
else
18910
18910
  IFS=$as_save_IFS
18911
18911
  test -z "$as_dir" && as_dir=.
18912
18912
  for ac_exec_ext in '' $ac_executable_extensions; do
18913
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
18913
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18914
18914
    ac_cv_prog_YACC="$ac_prog"
18915
18915
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18916
18916
    break 2
18917
18917
  fi
18918
18918
done
18919
18919
done
18920
 
IFS=$as_save_IFS
18921
18920
 
18922
18921
fi
18923
18922
fi
18924
18923
YACC=$ac_cv_prog_YACC
18925
18924
if test -n "$YACC"; then
18926
 
  { echo "$as_me:$LINENO: result: $YACC" >&5
18927
 
echo "${ECHO_T}$YACC" >&6; }
 
18925
  echo "$as_me:$LINENO: result: $YACC" >&5
 
18926
echo "${ECHO_T}$YACC" >&6
18928
18927
else
18929
 
  { echo "$as_me:$LINENO: result: no" >&5
18930
 
echo "${ECHO_T}no" >&6; }
 
18928
  echo "$as_me:$LINENO: result: no" >&5
 
18929
echo "${ECHO_T}no" >&6
18931
18930
fi
18932
18931
 
18933
 
 
18934
18932
  test -n "$YACC" && break
18935
18933
done
18936
18934
test -n "$YACC" || YACC="yacc"
18939
18937
do
18940
18938
  # Extract the first word of "$ac_prog", so it can be a program name with args.
18941
18939
set dummy $ac_prog; ac_word=$2
18942
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
18943
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
18940
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
18941
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18944
18942
if test "${ac_cv_prog_LEX+set}" = set; then
18945
18943
  echo $ECHO_N "(cached) $ECHO_C" >&6
18946
18944
else
18953
18951
  IFS=$as_save_IFS
18954
18952
  test -z "$as_dir" && as_dir=.
18955
18953
  for ac_exec_ext in '' $ac_executable_extensions; do
18956
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
18954
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18957
18955
    ac_cv_prog_LEX="$ac_prog"
18958
18956
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18959
18957
    break 2
18960
18958
  fi
18961
18959
done
18962
18960
done
18963
 
IFS=$as_save_IFS
18964
18961
 
18965
18962
fi
18966
18963
fi
18967
18964
LEX=$ac_cv_prog_LEX
18968
18965
if test -n "$LEX"; then
18969
 
  { echo "$as_me:$LINENO: result: $LEX" >&5
18970
 
echo "${ECHO_T}$LEX" >&6; }
 
18966
  echo "$as_me:$LINENO: result: $LEX" >&5
 
18967
echo "${ECHO_T}$LEX" >&6
18971
18968
else
18972
 
  { echo "$as_me:$LINENO: result: no" >&5
18973
 
echo "${ECHO_T}no" >&6; }
 
18969
  echo "$as_me:$LINENO: result: no" >&5
 
18970
echo "${ECHO_T}no" >&6
18974
18971
fi
18975
18972
 
18976
 
 
18977
18973
  test -n "$LEX" && break
18978
18974
done
18979
18975
test -n "$LEX" || LEX=":"
18980
18976
 
18981
18977
if test -z "$LEXLIB"
18982
18978
then
18983
 
  { echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
18984
 
echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6; }
 
18979
  echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
 
18980
echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
18985
18981
if test "${ac_cv_lib_fl_yywrap+set}" = set; then
18986
18982
  echo $ECHO_N "(cached) $ECHO_C" >&6
18987
18983
else
18994
18990
cat >>conftest.$ac_ext <<_ACEOF
18995
18991
/* end confdefs.h.  */
18996
18992
 
18997
 
/* Override any GCC internal prototype to avoid an error.
18998
 
   Use char because int might match the return type of a GCC
18999
 
   builtin and then its argument prototype would still apply.  */
 
18993
/* Override any gcc2 internal prototype to avoid an error.  */
19000
18994
#ifdef __cplusplus
19001
18995
extern "C"
19002
18996
#endif
 
18997
/* We use char because int might match the return type of a gcc2
 
18998
   builtin and then its argument prototype would still apply.  */
19003
18999
char yywrap ();
19004
19000
int
19005
19001
main ()
19006
19002
{
19007
 
return yywrap ();
 
19003
yywrap ();
19008
19004
  ;
19009
19005
  return 0;
19010
19006
}
19011
19007
_ACEOF
19012
19008
rm -f conftest.$ac_objext conftest$ac_exeext
19013
 
if { (ac_try="$ac_link"
19014
 
case "(($ac_try" in
19015
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19016
 
  *) ac_try_echo=$ac_try;;
19017
 
esac
19018
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19019
 
  (eval "$ac_link") 2>conftest.er1
 
19009
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19010
  (eval $ac_link) 2>conftest.er1
19020
19011
  ac_status=$?
19021
19012
  grep -v '^ *+' conftest.er1 >conftest.err
19022
19013
  rm -f conftest.er1
19023
19014
  cat conftest.err >&5
19024
19015
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19025
19016
  (exit $ac_status); } &&
19026
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19027
 
  { (case "(($ac_try" in
19028
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19029
 
  *) ac_try_echo=$ac_try;;
19030
 
esac
19031
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19032
 
  (eval "$ac_try") 2>&5
 
19017
         { ac_try='test -z "$ac_c_werror_flag"
 
19018
                         || test ! -s conftest.err'
 
19019
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19020
  (eval $ac_try) 2>&5
19033
19021
  ac_status=$?
19034
19022
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19035
19023
  (exit $ac_status); }; } &&
19036
19024
         { ac_try='test -s conftest$ac_exeext'
19037
 
  { (case "(($ac_try" in
19038
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19039
 
  *) ac_try_echo=$ac_try;;
19040
 
esac
19041
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19042
 
  (eval "$ac_try") 2>&5
 
19025
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19026
  (eval $ac_try) 2>&5
19043
19027
  ac_status=$?
19044
19028
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19045
19029
  (exit $ac_status); }; }; then
19048
19032
  echo "$as_me: failed program was:" >&5
19049
19033
sed 's/^/| /' conftest.$ac_ext >&5
19050
19034
 
19051
 
        ac_cv_lib_fl_yywrap=no
 
19035
ac_cv_lib_fl_yywrap=no
19052
19036
fi
19053
 
 
19054
 
rm -f core conftest.err conftest.$ac_objext \
 
19037
rm -f conftest.err conftest.$ac_objext \
19055
19038
      conftest$ac_exeext conftest.$ac_ext
19056
19039
LIBS=$ac_check_lib_save_LIBS
19057
19040
fi
19058
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
19059
 
echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6; }
 
19041
echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
 
19042
echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
19060
19043
if test $ac_cv_lib_fl_yywrap = yes; then
19061
19044
  LEXLIB="-lfl"
19062
19045
else
19063
 
  { echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
19064
 
echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6; }
 
19046
  echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
 
19047
echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
19065
19048
if test "${ac_cv_lib_l_yywrap+set}" = set; then
19066
19049
  echo $ECHO_N "(cached) $ECHO_C" >&6
19067
19050
else
19074
19057
cat >>conftest.$ac_ext <<_ACEOF
19075
19058
/* end confdefs.h.  */
19076
19059
 
19077
 
/* Override any GCC internal prototype to avoid an error.
19078
 
   Use char because int might match the return type of a GCC
19079
 
   builtin and then its argument prototype would still apply.  */
 
19060
/* Override any gcc2 internal prototype to avoid an error.  */
19080
19061
#ifdef __cplusplus
19081
19062
extern "C"
19082
19063
#endif
 
19064
/* We use char because int might match the return type of a gcc2
 
19065
   builtin and then its argument prototype would still apply.  */
19083
19066
char yywrap ();
19084
19067
int
19085
19068
main ()
19086
19069
{
19087
 
return yywrap ();
 
19070
yywrap ();
19088
19071
  ;
19089
19072
  return 0;
19090
19073
}
19091
19074
_ACEOF
19092
19075
rm -f conftest.$ac_objext conftest$ac_exeext
19093
 
if { (ac_try="$ac_link"
19094
 
case "(($ac_try" in
19095
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19096
 
  *) ac_try_echo=$ac_try;;
19097
 
esac
19098
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19099
 
  (eval "$ac_link") 2>conftest.er1
 
19076
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19077
  (eval $ac_link) 2>conftest.er1
19100
19078
  ac_status=$?
19101
19079
  grep -v '^ *+' conftest.er1 >conftest.err
19102
19080
  rm -f conftest.er1
19103
19081
  cat conftest.err >&5
19104
19082
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105
19083
  (exit $ac_status); } &&
19106
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19107
 
  { (case "(($ac_try" in
19108
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19109
 
  *) ac_try_echo=$ac_try;;
19110
 
esac
19111
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19112
 
  (eval "$ac_try") 2>&5
 
19084
         { ac_try='test -z "$ac_c_werror_flag"
 
19085
                         || test ! -s conftest.err'
 
19086
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19087
  (eval $ac_try) 2>&5
19113
19088
  ac_status=$?
19114
19089
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115
19090
  (exit $ac_status); }; } &&
19116
19091
         { ac_try='test -s conftest$ac_exeext'
19117
 
  { (case "(($ac_try" in
19118
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19119
 
  *) ac_try_echo=$ac_try;;
19120
 
esac
19121
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19122
 
  (eval "$ac_try") 2>&5
 
19092
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19093
  (eval $ac_try) 2>&5
19123
19094
  ac_status=$?
19124
19095
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19125
19096
  (exit $ac_status); }; }; then
19128
19099
  echo "$as_me: failed program was:" >&5
19129
19100
sed 's/^/| /' conftest.$ac_ext >&5
19130
19101
 
19131
 
        ac_cv_lib_l_yywrap=no
 
19102
ac_cv_lib_l_yywrap=no
19132
19103
fi
19133
 
 
19134
 
rm -f core conftest.err conftest.$ac_objext \
 
19104
rm -f conftest.err conftest.$ac_objext \
19135
19105
      conftest$ac_exeext conftest.$ac_ext
19136
19106
LIBS=$ac_check_lib_save_LIBS
19137
19107
fi
19138
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
19139
 
echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6; }
 
19108
echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
 
19109
echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
19140
19110
if test $ac_cv_lib_l_yywrap = yes; then
19141
19111
  LEXLIB="-ll"
19142
19112
fi
19146
19116
fi
19147
19117
 
19148
19118
if test "x$LEX" != "x:"; then
19149
 
  { echo "$as_me:$LINENO: checking lex output file root" >&5
19150
 
echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; }
 
19119
  echo "$as_me:$LINENO: checking lex output file root" >&5
 
19120
echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
19151
19121
if test "${ac_cv_prog_lex_root+set}" = set; then
19152
19122
  echo $ECHO_N "(cached) $ECHO_C" >&6
19153
19123
else
19157
19127
%%
19158
19128
%%
19159
19129
_ACEOF
19160
 
{ (ac_try="$LEX conftest.l"
19161
 
case "(($ac_try" in
19162
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19163
 
  *) ac_try_echo=$ac_try;;
19164
 
esac
19165
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19166
 
  (eval "$LEX conftest.l") 2>&5
 
19130
{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
 
19131
  (eval $LEX conftest.l) 2>&5
19167
19132
  ac_status=$?
19168
19133
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19169
19134
  (exit $ac_status); }
19177
19142
   { (exit 1); exit 1; }; }
19178
19143
fi
19179
19144
fi
19180
 
{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
19181
 
echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; }
 
19145
echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
 
19146
echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
19182
19147
rm -f conftest.l
19183
19148
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
19184
19149
 
19185
 
{ echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
19186
 
echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; }
 
19150
echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
 
19151
echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
19187
19152
if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
19188
19153
  echo $ECHO_N "(cached) $ECHO_C" >&6
19189
19154
else
19198
19163
`cat $LEX_OUTPUT_ROOT.c`
19199
19164
_ACEOF
19200
19165
rm -f conftest.$ac_objext conftest$ac_exeext
19201
 
if { (ac_try="$ac_link"
19202
 
case "(($ac_try" in
19203
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19204
 
  *) ac_try_echo=$ac_try;;
19205
 
esac
19206
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19207
 
  (eval "$ac_link") 2>conftest.er1
 
19166
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19167
  (eval $ac_link) 2>conftest.er1
19208
19168
  ac_status=$?
19209
19169
  grep -v '^ *+' conftest.er1 >conftest.err
19210
19170
  rm -f conftest.er1
19211
19171
  cat conftest.err >&5
19212
19172
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213
19173
  (exit $ac_status); } &&
19214
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19215
 
  { (case "(($ac_try" in
19216
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19217
 
  *) ac_try_echo=$ac_try;;
19218
 
esac
19219
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19220
 
  (eval "$ac_try") 2>&5
 
19174
         { ac_try='test -z "$ac_c_werror_flag"
 
19175
                         || test ! -s conftest.err'
 
19176
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19177
  (eval $ac_try) 2>&5
19221
19178
  ac_status=$?
19222
19179
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223
19180
  (exit $ac_status); }; } &&
19224
19181
         { ac_try='test -s conftest$ac_exeext'
19225
 
  { (case "(($ac_try" in
19226
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19227
 
  *) ac_try_echo=$ac_try;;
19228
 
esac
19229
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19230
 
  (eval "$ac_try") 2>&5
 
19182
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19183
  (eval $ac_try) 2>&5
19231
19184
  ac_status=$?
19232
19185
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19233
19186
  (exit $ac_status); }; }; then
19236
19189
  echo "$as_me: failed program was:" >&5
19237
19190
sed 's/^/| /' conftest.$ac_ext >&5
19238
19191
 
19239
 
 
19240
19192
fi
19241
 
 
19242
 
rm -f core conftest.err conftest.$ac_objext \
 
19193
rm -f conftest.err conftest.$ac_objext \
19243
19194
      conftest$ac_exeext conftest.$ac_ext
19244
19195
LIBS=$ac_save_LIBS
19245
19196
rm -f "${LEX_OUTPUT_ROOT}.c"
19246
19197
 
19247
19198
fi
19248
 
{ echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
19249
 
echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; }
 
19199
echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
 
19200
echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
19250
19201
if test $ac_cv_prog_lex_yytext_pointer = yes; then
19251
19202
 
19252
19203
cat >>confdefs.h <<\_ACEOF
19269
19220
if test -n "$ac_tool_prefix"; then
19270
19221
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19271
19222
set dummy ${ac_tool_prefix}gcc; ac_word=$2
19272
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19273
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
19223
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19224
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19274
19225
if test "${ac_cv_prog_CC+set}" = set; then
19275
19226
  echo $ECHO_N "(cached) $ECHO_C" >&6
19276
19227
else
19283
19234
  IFS=$as_save_IFS
19284
19235
  test -z "$as_dir" && as_dir=.
19285
19236
  for ac_exec_ext in '' $ac_executable_extensions; do
19286
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
19237
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19287
19238
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
19288
19239
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19289
19240
    break 2
19290
19241
  fi
19291
19242
done
19292
19243
done
19293
 
IFS=$as_save_IFS
19294
19244
 
19295
19245
fi
19296
19246
fi
19297
19247
CC=$ac_cv_prog_CC
19298
19248
if test -n "$CC"; then
19299
 
  { echo "$as_me:$LINENO: result: $CC" >&5
19300
 
echo "${ECHO_T}$CC" >&6; }
 
19249
  echo "$as_me:$LINENO: result: $CC" >&5
 
19250
echo "${ECHO_T}$CC" >&6
19301
19251
else
19302
 
  { echo "$as_me:$LINENO: result: no" >&5
19303
 
echo "${ECHO_T}no" >&6; }
 
19252
  echo "$as_me:$LINENO: result: no" >&5
 
19253
echo "${ECHO_T}no" >&6
19304
19254
fi
19305
 
 
19306
19255
 
19307
19256
fi
19308
19257
if test -z "$ac_cv_prog_CC"; then
19309
19258
  ac_ct_CC=$CC
19310
19259
  # Extract the first word of "gcc", so it can be a program name with args.
19311
19260
set dummy gcc; ac_word=$2
19312
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19313
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
19261
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19262
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19314
19263
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19315
19264
  echo $ECHO_N "(cached) $ECHO_C" >&6
19316
19265
else
19323
19272
  IFS=$as_save_IFS
19324
19273
  test -z "$as_dir" && as_dir=.
19325
19274
  for ac_exec_ext in '' $ac_executable_extensions; do
19326
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
19275
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19327
19276
    ac_cv_prog_ac_ct_CC="gcc"
19328
19277
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19329
19278
    break 2
19330
19279
  fi
19331
19280
done
19332
19281
done
19333
 
IFS=$as_save_IFS
19334
19282
 
19335
19283
fi
19336
19284
fi
19337
19285
ac_ct_CC=$ac_cv_prog_ac_ct_CC
19338
19286
if test -n "$ac_ct_CC"; then
19339
 
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19340
 
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
19287
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
19288
echo "${ECHO_T}$ac_ct_CC" >&6
19341
19289
else
19342
 
  { echo "$as_me:$LINENO: result: no" >&5
19343
 
echo "${ECHO_T}no" >&6; }
 
19290
  echo "$as_me:$LINENO: result: no" >&5
 
19291
echo "${ECHO_T}no" >&6
19344
19292
fi
19345
19293
 
19346
 
  if test "x$ac_ct_CC" = x; then
19347
 
    CC=""
19348
 
  else
19349
 
    case $cross_compiling:$ac_tool_warned in
19350
 
yes:)
19351
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19352
 
whose name does not start with the host triplet.  If you think this
19353
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
19354
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19355
 
whose name does not start with the host triplet.  If you think this
19356
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19357
 
ac_tool_warned=yes ;;
19358
 
esac
19359
 
    CC=$ac_ct_CC
19360
 
  fi
 
19294
  CC=$ac_ct_CC
19361
19295
else
19362
19296
  CC="$ac_cv_prog_CC"
19363
19297
fi
19364
19298
 
19365
19299
if test -z "$CC"; then
19366
 
          if test -n "$ac_tool_prefix"; then
19367
 
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
19300
  if test -n "$ac_tool_prefix"; then
 
19301
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19368
19302
set dummy ${ac_tool_prefix}cc; ac_word=$2
19369
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19370
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
19303
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19304
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19371
19305
if test "${ac_cv_prog_CC+set}" = set; then
19372
19306
  echo $ECHO_N "(cached) $ECHO_C" >&6
19373
19307
else
19380
19314
  IFS=$as_save_IFS
19381
19315
  test -z "$as_dir" && as_dir=.
19382
19316
  for ac_exec_ext in '' $ac_executable_extensions; do
19383
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
19317
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19384
19318
    ac_cv_prog_CC="${ac_tool_prefix}cc"
19385
19319
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19386
19320
    break 2
19387
19321
  fi
19388
19322
done
19389
19323
done
19390
 
IFS=$as_save_IFS
19391
19324
 
19392
19325
fi
19393
19326
fi
19394
19327
CC=$ac_cv_prog_CC
19395
19328
if test -n "$CC"; then
19396
 
  { echo "$as_me:$LINENO: result: $CC" >&5
19397
 
echo "${ECHO_T}$CC" >&6; }
19398
 
else
19399
 
  { echo "$as_me:$LINENO: result: no" >&5
19400
 
echo "${ECHO_T}no" >&6; }
19401
 
fi
19402
 
 
19403
 
 
 
19329
  echo "$as_me:$LINENO: result: $CC" >&5
 
19330
echo "${ECHO_T}$CC" >&6
 
19331
else
 
19332
  echo "$as_me:$LINENO: result: no" >&5
 
19333
echo "${ECHO_T}no" >&6
 
19334
fi
 
19335
 
 
19336
fi
 
19337
if test -z "$ac_cv_prog_CC"; then
 
19338
  ac_ct_CC=$CC
 
19339
  # Extract the first word of "cc", so it can be a program name with args.
 
19340
set dummy cc; ac_word=$2
 
19341
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19342
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
19343
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
19344
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19345
else
 
19346
  if test -n "$ac_ct_CC"; then
 
19347
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
19348
else
 
19349
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
19350
for as_dir in $PATH
 
19351
do
 
19352
  IFS=$as_save_IFS
 
19353
  test -z "$as_dir" && as_dir=.
 
19354
  for ac_exec_ext in '' $ac_executable_extensions; do
 
19355
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
19356
    ac_cv_prog_ac_ct_CC="cc"
 
19357
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
19358
    break 2
19404
19359
  fi
 
19360
done
 
19361
done
 
19362
 
 
19363
fi
 
19364
fi
 
19365
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
19366
if test -n "$ac_ct_CC"; then
 
19367
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
19368
echo "${ECHO_T}$ac_ct_CC" >&6
 
19369
else
 
19370
  echo "$as_me:$LINENO: result: no" >&5
 
19371
echo "${ECHO_T}no" >&6
 
19372
fi
 
19373
 
 
19374
  CC=$ac_ct_CC
 
19375
else
 
19376
  CC="$ac_cv_prog_CC"
 
19377
fi
 
19378
 
19405
19379
fi
19406
19380
if test -z "$CC"; then
19407
19381
  # Extract the first word of "cc", so it can be a program name with args.
19408
19382
set dummy cc; ac_word=$2
19409
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19410
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
19383
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19384
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19411
19385
if test "${ac_cv_prog_CC+set}" = set; then
19412
19386
  echo $ECHO_N "(cached) $ECHO_C" >&6
19413
19387
else
19421
19395
  IFS=$as_save_IFS
19422
19396
  test -z "$as_dir" && as_dir=.
19423
19397
  for ac_exec_ext in '' $ac_executable_extensions; do
19424
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
19398
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19425
19399
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19426
19400
       ac_prog_rejected=yes
19427
19401
       continue
19432
19406
  fi
19433
19407
done
19434
19408
done
19435
 
IFS=$as_save_IFS
19436
19409
 
19437
19410
if test $ac_prog_rejected = yes; then
19438
19411
  # We found a bogon in the path, so make sure we never use it.
19450
19423
fi
19451
19424
CC=$ac_cv_prog_CC
19452
19425
if test -n "$CC"; then
19453
 
  { echo "$as_me:$LINENO: result: $CC" >&5
19454
 
echo "${ECHO_T}$CC" >&6; }
 
19426
  echo "$as_me:$LINENO: result: $CC" >&5
 
19427
echo "${ECHO_T}$CC" >&6
19455
19428
else
19456
 
  { echo "$as_me:$LINENO: result: no" >&5
19457
 
echo "${ECHO_T}no" >&6; }
 
19429
  echo "$as_me:$LINENO: result: no" >&5
 
19430
echo "${ECHO_T}no" >&6
19458
19431
fi
19459
 
 
19460
19432
 
19461
19433
fi
19462
19434
if test -z "$CC"; then
19463
19435
  if test -n "$ac_tool_prefix"; then
19464
 
  for ac_prog in cl.exe
 
19436
  for ac_prog in cl
19465
19437
  do
19466
19438
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19467
19439
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19468
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19469
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
19440
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19441
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19470
19442
if test "${ac_cv_prog_CC+set}" = set; then
19471
19443
  echo $ECHO_N "(cached) $ECHO_C" >&6
19472
19444
else
19479
19451
  IFS=$as_save_IFS
19480
19452
  test -z "$as_dir" && as_dir=.
19481
19453
  for ac_exec_ext in '' $ac_executable_extensions; do
19482
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
19454
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19483
19455
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19484
19456
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19485
19457
    break 2
19486
19458
  fi
19487
19459
done
19488
19460
done
19489
 
IFS=$as_save_IFS
19490
19461
 
19491
19462
fi
19492
19463
fi
19493
19464
CC=$ac_cv_prog_CC
19494
19465
if test -n "$CC"; then
19495
 
  { echo "$as_me:$LINENO: result: $CC" >&5
19496
 
echo "${ECHO_T}$CC" >&6; }
 
19466
  echo "$as_me:$LINENO: result: $CC" >&5
 
19467
echo "${ECHO_T}$CC" >&6
19497
19468
else
19498
 
  { echo "$as_me:$LINENO: result: no" >&5
19499
 
echo "${ECHO_T}no" >&6; }
 
19469
  echo "$as_me:$LINENO: result: no" >&5
 
19470
echo "${ECHO_T}no" >&6
19500
19471
fi
19501
19472
 
19502
 
 
19503
19473
    test -n "$CC" && break
19504
19474
  done
19505
19475
fi
19506
19476
if test -z "$CC"; then
19507
19477
  ac_ct_CC=$CC
19508
 
  for ac_prog in cl.exe
 
19478
  for ac_prog in cl
19509
19479
do
19510
19480
  # Extract the first word of "$ac_prog", so it can be a program name with args.
19511
19481
set dummy $ac_prog; ac_word=$2
19512
 
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
19513
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
19482
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
19483
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19514
19484
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19515
19485
  echo $ECHO_N "(cached) $ECHO_C" >&6
19516
19486
else
19523
19493
  IFS=$as_save_IFS
19524
19494
  test -z "$as_dir" && as_dir=.
19525
19495
  for ac_exec_ext in '' $ac_executable_extensions; do
19526
 
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
19496
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19527
19497
    ac_cv_prog_ac_ct_CC="$ac_prog"
19528
19498
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19529
19499
    break 2
19530
19500
  fi
19531
19501
done
19532
19502
done
19533
 
IFS=$as_save_IFS
19534
19503
 
19535
19504
fi
19536
19505
fi
19537
19506
ac_ct_CC=$ac_cv_prog_ac_ct_CC
19538
19507
if test -n "$ac_ct_CC"; then
19539
 
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19540
 
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
19508
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
19509
echo "${ECHO_T}$ac_ct_CC" >&6
19541
19510
else
19542
 
  { echo "$as_me:$LINENO: result: no" >&5
19543
 
echo "${ECHO_T}no" >&6; }
 
19511
  echo "$as_me:$LINENO: result: no" >&5
 
19512
echo "${ECHO_T}no" >&6
19544
19513
fi
19545
19514
 
19546
 
 
19547
19515
  test -n "$ac_ct_CC" && break
19548
19516
done
19549
19517
 
19550
 
  if test "x$ac_ct_CC" = x; then
19551
 
    CC=""
19552
 
  else
19553
 
    case $cross_compiling:$ac_tool_warned in
19554
 
yes:)
19555
 
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19556
 
whose name does not start with the host triplet.  If you think this
19557
 
configuration is useful to you, please write to autoconf@gnu.org." >&5
19558
 
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19559
 
whose name does not start with the host triplet.  If you think this
19560
 
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19561
 
ac_tool_warned=yes ;;
19562
 
esac
19563
 
    CC=$ac_ct_CC
19564
 
  fi
 
19518
  CC=$ac_ct_CC
19565
19519
fi
19566
19520
 
19567
19521
fi
19574
19528
   { (exit 1); exit 1; }; }
19575
19529
 
19576
19530
# Provide some information about the compiler.
19577
 
echo "$as_me:$LINENO: checking for C compiler version" >&5
 
19531
echo "$as_me:$LINENO:" \
 
19532
     "checking for C compiler version" >&5
19578
19533
ac_compiler=`set X $ac_compile; echo $2`
19579
 
{ (ac_try="$ac_compiler --version >&5"
19580
 
case "(($ac_try" in
19581
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19582
 
  *) ac_try_echo=$ac_try;;
19583
 
esac
19584
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19585
 
  (eval "$ac_compiler --version >&5") 2>&5
19586
 
  ac_status=$?
19587
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588
 
  (exit $ac_status); }
19589
 
{ (ac_try="$ac_compiler -v >&5"
19590
 
case "(($ac_try" in
19591
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19592
 
  *) ac_try_echo=$ac_try;;
19593
 
esac
19594
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19595
 
  (eval "$ac_compiler -v >&5") 2>&5
19596
 
  ac_status=$?
19597
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19598
 
  (exit $ac_status); }
19599
 
{ (ac_try="$ac_compiler -V >&5"
19600
 
case "(($ac_try" in
19601
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19602
 
  *) ac_try_echo=$ac_try;;
19603
 
esac
19604
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19605
 
  (eval "$ac_compiler -V >&5") 2>&5
 
19534
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
19535
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
19536
  ac_status=$?
 
19537
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19538
  (exit $ac_status); }
 
19539
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
19540
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
19541
  ac_status=$?
 
19542
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19543
  (exit $ac_status); }
 
19544
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
19545
  (eval $ac_compiler -V </dev/null >&5) 2>&5
19606
19546
  ac_status=$?
19607
19547
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19608
19548
  (exit $ac_status); }
19609
19549
 
19610
 
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19611
 
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
 
19550
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
19551
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
19612
19552
if test "${ac_cv_c_compiler_gnu+set}" = set; then
19613
19553
  echo $ECHO_N "(cached) $ECHO_C" >&6
19614
19554
else
19631
19571
}
19632
19572
_ACEOF
19633
19573
rm -f conftest.$ac_objext
19634
 
if { (ac_try="$ac_compile"
19635
 
case "(($ac_try" in
19636
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19637
 
  *) ac_try_echo=$ac_try;;
19638
 
esac
19639
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19640
 
  (eval "$ac_compile") 2>conftest.er1
 
19574
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19575
  (eval $ac_compile) 2>conftest.er1
19641
19576
  ac_status=$?
19642
19577
  grep -v '^ *+' conftest.er1 >conftest.err
19643
19578
  rm -f conftest.er1
19644
19579
  cat conftest.err >&5
19645
19580
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19646
19581
  (exit $ac_status); } &&
19647
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19648
 
  { (case "(($ac_try" in
19649
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19650
 
  *) ac_try_echo=$ac_try;;
19651
 
esac
19652
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19653
 
  (eval "$ac_try") 2>&5
 
19582
         { ac_try='test -z "$ac_c_werror_flag"
 
19583
                         || test ! -s conftest.err'
 
19584
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19585
  (eval $ac_try) 2>&5
19654
19586
  ac_status=$?
19655
19587
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19656
19588
  (exit $ac_status); }; } &&
19657
19589
         { ac_try='test -s conftest.$ac_objext'
19658
 
  { (case "(($ac_try" in
19659
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19660
 
  *) ac_try_echo=$ac_try;;
19661
 
esac
19662
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19663
 
  (eval "$ac_try") 2>&5
 
19590
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19591
  (eval $ac_try) 2>&5
19664
19592
  ac_status=$?
19665
19593
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666
19594
  (exit $ac_status); }; }; then
19669
19597
  echo "$as_me: failed program was:" >&5
19670
19598
sed 's/^/| /' conftest.$ac_ext >&5
19671
19599
 
19672
 
        ac_compiler_gnu=no
 
19600
ac_compiler_gnu=no
19673
19601
fi
19674
 
 
19675
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19602
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19676
19603
ac_cv_c_compiler_gnu=$ac_compiler_gnu
19677
19604
 
19678
19605
fi
19679
 
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19680
 
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
 
19606
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
19607
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
19681
19608
GCC=`test $ac_compiler_gnu = yes && echo yes`
19682
19609
ac_test_CFLAGS=${CFLAGS+set}
19683
19610
ac_save_CFLAGS=$CFLAGS
19684
 
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19685
 
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
 
19611
CFLAGS="-g"
 
19612
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
19613
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
19686
19614
if test "${ac_cv_prog_cc_g+set}" = set; then
19687
19615
  echo $ECHO_N "(cached) $ECHO_C" >&6
19688
19616
else
19689
 
  ac_save_c_werror_flag=$ac_c_werror_flag
19690
 
   ac_c_werror_flag=yes
19691
 
   ac_cv_prog_cc_g=no
19692
 
   CFLAGS="-g"
19693
 
   cat >conftest.$ac_ext <<_ACEOF
19694
 
/* confdefs.h.  */
19695
 
_ACEOF
19696
 
cat confdefs.h >>conftest.$ac_ext
19697
 
cat >>conftest.$ac_ext <<_ACEOF
19698
 
/* end confdefs.h.  */
19699
 
 
19700
 
int
19701
 
main ()
19702
 
{
19703
 
 
19704
 
  ;
19705
 
  return 0;
19706
 
}
19707
 
_ACEOF
19708
 
rm -f conftest.$ac_objext
19709
 
if { (ac_try="$ac_compile"
19710
 
case "(($ac_try" in
19711
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19712
 
  *) ac_try_echo=$ac_try;;
19713
 
esac
19714
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19715
 
  (eval "$ac_compile") 2>conftest.er1
19716
 
  ac_status=$?
19717
 
  grep -v '^ *+' conftest.er1 >conftest.err
19718
 
  rm -f conftest.er1
19719
 
  cat conftest.err >&5
19720
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19721
 
  (exit $ac_status); } &&
19722
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19723
 
  { (case "(($ac_try" in
19724
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19725
 
  *) ac_try_echo=$ac_try;;
19726
 
esac
19727
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19728
 
  (eval "$ac_try") 2>&5
19729
 
  ac_status=$?
19730
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731
 
  (exit $ac_status); }; } &&
19732
 
         { ac_try='test -s conftest.$ac_objext'
19733
 
  { (case "(($ac_try" in
19734
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19735
 
  *) ac_try_echo=$ac_try;;
19736
 
esac
19737
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19738
 
  (eval "$ac_try") 2>&5
19739
 
  ac_status=$?
19740
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741
 
  (exit $ac_status); }; }; then
19742
 
  ac_cv_prog_cc_g=yes
19743
 
else
19744
 
  echo "$as_me: failed program was:" >&5
19745
 
sed 's/^/| /' conftest.$ac_ext >&5
19746
 
 
19747
 
        CFLAGS=""
19748
 
      cat >conftest.$ac_ext <<_ACEOF
19749
 
/* confdefs.h.  */
19750
 
_ACEOF
19751
 
cat confdefs.h >>conftest.$ac_ext
19752
 
cat >>conftest.$ac_ext <<_ACEOF
19753
 
/* end confdefs.h.  */
19754
 
 
19755
 
int
19756
 
main ()
19757
 
{
19758
 
 
19759
 
  ;
19760
 
  return 0;
19761
 
}
19762
 
_ACEOF
19763
 
rm -f conftest.$ac_objext
19764
 
if { (ac_try="$ac_compile"
19765
 
case "(($ac_try" in
19766
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19767
 
  *) ac_try_echo=$ac_try;;
19768
 
esac
19769
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19770
 
  (eval "$ac_compile") 2>conftest.er1
19771
 
  ac_status=$?
19772
 
  grep -v '^ *+' conftest.er1 >conftest.err
19773
 
  rm -f conftest.er1
19774
 
  cat conftest.err >&5
19775
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776
 
  (exit $ac_status); } &&
19777
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19778
 
  { (case "(($ac_try" in
19779
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19780
 
  *) ac_try_echo=$ac_try;;
19781
 
esac
19782
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19783
 
  (eval "$ac_try") 2>&5
19784
 
  ac_status=$?
19785
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19786
 
  (exit $ac_status); }; } &&
19787
 
         { ac_try='test -s conftest.$ac_objext'
19788
 
  { (case "(($ac_try" in
19789
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19790
 
  *) ac_try_echo=$ac_try;;
19791
 
esac
19792
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19793
 
  (eval "$ac_try") 2>&5
19794
 
  ac_status=$?
19795
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19796
 
  (exit $ac_status); }; }; then
19797
 
  :
19798
 
else
19799
 
  echo "$as_me: failed program was:" >&5
19800
 
sed 's/^/| /' conftest.$ac_ext >&5
19801
 
 
19802
 
        ac_c_werror_flag=$ac_save_c_werror_flag
19803
 
         CFLAGS="-g"
19804
 
         cat >conftest.$ac_ext <<_ACEOF
19805
 
/* confdefs.h.  */
19806
 
_ACEOF
19807
 
cat confdefs.h >>conftest.$ac_ext
19808
 
cat >>conftest.$ac_ext <<_ACEOF
19809
 
/* end confdefs.h.  */
19810
 
 
19811
 
int
19812
 
main ()
19813
 
{
19814
 
 
19815
 
  ;
19816
 
  return 0;
19817
 
}
19818
 
_ACEOF
19819
 
rm -f conftest.$ac_objext
19820
 
if { (ac_try="$ac_compile"
19821
 
case "(($ac_try" in
19822
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19823
 
  *) ac_try_echo=$ac_try;;
19824
 
esac
19825
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19826
 
  (eval "$ac_compile") 2>conftest.er1
19827
 
  ac_status=$?
19828
 
  grep -v '^ *+' conftest.er1 >conftest.err
19829
 
  rm -f conftest.er1
19830
 
  cat conftest.err >&5
19831
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832
 
  (exit $ac_status); } &&
19833
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19834
 
  { (case "(($ac_try" in
19835
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19836
 
  *) ac_try_echo=$ac_try;;
19837
 
esac
19838
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19839
 
  (eval "$ac_try") 2>&5
19840
 
  ac_status=$?
19841
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19842
 
  (exit $ac_status); }; } &&
19843
 
         { ac_try='test -s conftest.$ac_objext'
19844
 
  { (case "(($ac_try" in
19845
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19846
 
  *) ac_try_echo=$ac_try;;
19847
 
esac
19848
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19849
 
  (eval "$ac_try") 2>&5
19850
 
  ac_status=$?
19851
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852
 
  (exit $ac_status); }; }; then
19853
 
  ac_cv_prog_cc_g=yes
19854
 
else
19855
 
  echo "$as_me: failed program was:" >&5
19856
 
sed 's/^/| /' conftest.$ac_ext >&5
19857
 
 
19858
 
 
19859
 
fi
19860
 
 
19861
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19862
 
fi
19863
 
 
19864
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19865
 
fi
19866
 
 
19867
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19868
 
   ac_c_werror_flag=$ac_save_c_werror_flag
19869
 
fi
19870
 
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19871
 
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
 
19617
  cat >conftest.$ac_ext <<_ACEOF
 
19618
/* confdefs.h.  */
 
19619
_ACEOF
 
19620
cat confdefs.h >>conftest.$ac_ext
 
19621
cat >>conftest.$ac_ext <<_ACEOF
 
19622
/* end confdefs.h.  */
 
19623
 
 
19624
int
 
19625
main ()
 
19626
{
 
19627
 
 
19628
  ;
 
19629
  return 0;
 
19630
}
 
19631
_ACEOF
 
19632
rm -f conftest.$ac_objext
 
19633
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19634
  (eval $ac_compile) 2>conftest.er1
 
19635
  ac_status=$?
 
19636
  grep -v '^ *+' conftest.er1 >conftest.err
 
19637
  rm -f conftest.er1
 
19638
  cat conftest.err >&5
 
19639
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19640
  (exit $ac_status); } &&
 
19641
         { ac_try='test -z "$ac_c_werror_flag"
 
19642
                         || test ! -s conftest.err'
 
19643
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19644
  (eval $ac_try) 2>&5
 
19645
  ac_status=$?
 
19646
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19647
  (exit $ac_status); }; } &&
 
19648
         { ac_try='test -s conftest.$ac_objext'
 
19649
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19650
  (eval $ac_try) 2>&5
 
19651
  ac_status=$?
 
19652
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19653
  (exit $ac_status); }; }; then
 
19654
  ac_cv_prog_cc_g=yes
 
19655
else
 
19656
  echo "$as_me: failed program was:" >&5
 
19657
sed 's/^/| /' conftest.$ac_ext >&5
 
19658
 
 
19659
ac_cv_prog_cc_g=no
 
19660
fi
 
19661
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
19662
fi
 
19663
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
19664
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
19872
19665
if test "$ac_test_CFLAGS" = set; then
19873
19666
  CFLAGS=$ac_save_CFLAGS
19874
19667
elif test $ac_cv_prog_cc_g = yes; then
19884
19677
    CFLAGS=
19885
19678
  fi
19886
19679
fi
19887
 
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
19888
 
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
19889
 
if test "${ac_cv_prog_cc_c89+set}" = set; then
 
19680
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
19681
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
19682
if test "${ac_cv_prog_cc_stdc+set}" = set; then
19890
19683
  echo $ECHO_N "(cached) $ECHO_C" >&6
19891
19684
else
19892
 
  ac_cv_prog_cc_c89=no
 
19685
  ac_cv_prog_cc_stdc=no
19893
19686
ac_save_CC=$CC
19894
19687
cat >conftest.$ac_ext <<_ACEOF
19895
19688
/* confdefs.h.  */
19923
19716
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
19924
19717
   function prototypes and stuff, but not '\xHH' hex character constants.
19925
19718
   These don't provoke an error unfortunately, instead are silently treated
19926
 
   as 'x'.  The following induces an error, until -std is added to get
 
19719
   as 'x'.  The following induces an error, until -std1 is added to get
19927
19720
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
19928
19721
   array size at least.  It's necessary to write '\x00'==0 to get something
19929
 
   that's true only with -std.  */
 
19722
   that's true only with -std1.  */
19930
19723
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19931
19724
 
19932
 
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
19933
 
   inside strings and character constants.  */
19934
 
#define FOO(x) 'x'
19935
 
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
19936
 
 
19937
19725
int test (int i, double x);
19938
19726
struct s1 {int (*f) (int a);};
19939
19727
struct s2 {int (*f) (double a);};
19948
19736
  return 0;
19949
19737
}
19950
19738
_ACEOF
19951
 
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
19952
 
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
19739
# Don't try gcc -ansi; that turns off useful extensions and
 
19740
# breaks some systems' header files.
 
19741
# AIX                   -qlanglvl=ansi
 
19742
# Ultrix and OSF/1      -std1
 
19743
# HP-UX 10.20 and later -Ae
 
19744
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
19745
# SVR4                  -Xc -D__EXTENSIONS__
 
19746
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19953
19747
do
19954
19748
  CC="$ac_save_CC $ac_arg"
19955
19749
  rm -f conftest.$ac_objext
19956
 
if { (ac_try="$ac_compile"
19957
 
case "(($ac_try" in
19958
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19959
 
  *) ac_try_echo=$ac_try;;
19960
 
esac
19961
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19962
 
  (eval "$ac_compile") 2>conftest.er1
 
19750
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19751
  (eval $ac_compile) 2>conftest.er1
19963
19752
  ac_status=$?
19964
19753
  grep -v '^ *+' conftest.er1 >conftest.err
19965
19754
  rm -f conftest.er1
19966
19755
  cat conftest.err >&5
19967
19756
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19968
19757
  (exit $ac_status); } &&
19969
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19970
 
  { (case "(($ac_try" in
19971
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19972
 
  *) ac_try_echo=$ac_try;;
19973
 
esac
19974
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19975
 
  (eval "$ac_try") 2>&5
 
19758
         { ac_try='test -z "$ac_c_werror_flag"
 
19759
                         || test ! -s conftest.err'
 
19760
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19761
  (eval $ac_try) 2>&5
19976
19762
  ac_status=$?
19977
19763
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19978
19764
  (exit $ac_status); }; } &&
19979
19765
         { ac_try='test -s conftest.$ac_objext'
19980
 
  { (case "(($ac_try" in
19981
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19982
 
  *) ac_try_echo=$ac_try;;
19983
 
esac
19984
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19985
 
  (eval "$ac_try") 2>&5
 
19766
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19767
  (eval $ac_try) 2>&5
19986
19768
  ac_status=$?
19987
19769
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19988
19770
  (exit $ac_status); }; }; then
19989
 
  ac_cv_prog_cc_c89=$ac_arg
 
19771
  ac_cv_prog_cc_stdc=$ac_arg
 
19772
break
19990
19773
else
19991
19774
  echo "$as_me: failed program was:" >&5
19992
19775
sed 's/^/| /' conftest.$ac_ext >&5
19993
19776
 
19994
 
 
19995
19777
fi
19996
 
 
19997
 
rm -f core conftest.err conftest.$ac_objext
19998
 
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
19778
rm -f conftest.err conftest.$ac_objext
19999
19779
done
20000
 
rm -f conftest.$ac_ext
 
19780
rm -f conftest.$ac_ext conftest.$ac_objext
20001
19781
CC=$ac_save_CC
20002
19782
 
20003
19783
fi
20004
 
# AC_CACHE_VAL
20005
 
case "x$ac_cv_prog_cc_c89" in
20006
 
  x)
20007
 
    { echo "$as_me:$LINENO: result: none needed" >&5
20008
 
echo "${ECHO_T}none needed" >&6; } ;;
20009
 
  xno)
20010
 
    { echo "$as_me:$LINENO: result: unsupported" >&5
20011
 
echo "${ECHO_T}unsupported" >&6; } ;;
 
19784
 
 
19785
case "x$ac_cv_prog_cc_stdc" in
 
19786
  x|xno)
 
19787
    echo "$as_me:$LINENO: result: none needed" >&5
 
19788
echo "${ECHO_T}none needed" >&6 ;;
20012
19789
  *)
20013
 
    CC="$CC $ac_cv_prog_cc_c89"
20014
 
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
20015
 
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
 
19790
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
19791
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
19792
    CC="$CC $ac_cv_prog_cc_stdc" ;;
20016
19793
esac
20017
19794
 
20018
 
 
 
19795
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
19796
# in C++ we need to declare it.  In case someone uses the same compiler
 
19797
# for both compiling C and C++ we need to have the C++ compiler decide
 
19798
# the declaration of exit, since it's the most demanding environment.
 
19799
cat >conftest.$ac_ext <<_ACEOF
 
19800
#ifndef __cplusplus
 
19801
  choke me
 
19802
#endif
 
19803
_ACEOF
 
19804
rm -f conftest.$ac_objext
 
19805
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19806
  (eval $ac_compile) 2>conftest.er1
 
19807
  ac_status=$?
 
19808
  grep -v '^ *+' conftest.er1 >conftest.err
 
19809
  rm -f conftest.er1
 
19810
  cat conftest.err >&5
 
19811
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19812
  (exit $ac_status); } &&
 
19813
         { ac_try='test -z "$ac_c_werror_flag"
 
19814
                         || test ! -s conftest.err'
 
19815
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19816
  (eval $ac_try) 2>&5
 
19817
  ac_status=$?
 
19818
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19819
  (exit $ac_status); }; } &&
 
19820
         { ac_try='test -s conftest.$ac_objext'
 
19821
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19822
  (eval $ac_try) 2>&5
 
19823
  ac_status=$?
 
19824
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19825
  (exit $ac_status); }; }; then
 
19826
  for ac_declaration in \
 
19827
   '' \
 
19828
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
19829
   'extern "C" void std::exit (int); using std::exit;' \
 
19830
   'extern "C" void exit (int) throw ();' \
 
19831
   'extern "C" void exit (int);' \
 
19832
   'void exit (int);'
 
19833
do
 
19834
  cat >conftest.$ac_ext <<_ACEOF
 
19835
/* confdefs.h.  */
 
19836
_ACEOF
 
19837
cat confdefs.h >>conftest.$ac_ext
 
19838
cat >>conftest.$ac_ext <<_ACEOF
 
19839
/* end confdefs.h.  */
 
19840
$ac_declaration
 
19841
#include <stdlib.h>
 
19842
int
 
19843
main ()
 
19844
{
 
19845
exit (42);
 
19846
  ;
 
19847
  return 0;
 
19848
}
 
19849
_ACEOF
 
19850
rm -f conftest.$ac_objext
 
19851
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19852
  (eval $ac_compile) 2>conftest.er1
 
19853
  ac_status=$?
 
19854
  grep -v '^ *+' conftest.er1 >conftest.err
 
19855
  rm -f conftest.er1
 
19856
  cat conftest.err >&5
 
19857
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19858
  (exit $ac_status); } &&
 
19859
         { ac_try='test -z "$ac_c_werror_flag"
 
19860
                         || test ! -s conftest.err'
 
19861
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19862
  (eval $ac_try) 2>&5
 
19863
  ac_status=$?
 
19864
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19865
  (exit $ac_status); }; } &&
 
19866
         { ac_try='test -s conftest.$ac_objext'
 
19867
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19868
  (eval $ac_try) 2>&5
 
19869
  ac_status=$?
 
19870
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19871
  (exit $ac_status); }; }; then
 
19872
  :
 
19873
else
 
19874
  echo "$as_me: failed program was:" >&5
 
19875
sed 's/^/| /' conftest.$ac_ext >&5
 
19876
 
 
19877
continue
 
19878
fi
 
19879
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
19880
  cat >conftest.$ac_ext <<_ACEOF
 
19881
/* confdefs.h.  */
 
19882
_ACEOF
 
19883
cat confdefs.h >>conftest.$ac_ext
 
19884
cat >>conftest.$ac_ext <<_ACEOF
 
19885
/* end confdefs.h.  */
 
19886
$ac_declaration
 
19887
int
 
19888
main ()
 
19889
{
 
19890
exit (42);
 
19891
  ;
 
19892
  return 0;
 
19893
}
 
19894
_ACEOF
 
19895
rm -f conftest.$ac_objext
 
19896
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19897
  (eval $ac_compile) 2>conftest.er1
 
19898
  ac_status=$?
 
19899
  grep -v '^ *+' conftest.er1 >conftest.err
 
19900
  rm -f conftest.er1
 
19901
  cat conftest.err >&5
 
19902
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19903
  (exit $ac_status); } &&
 
19904
         { ac_try='test -z "$ac_c_werror_flag"
 
19905
                         || test ! -s conftest.err'
 
19906
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19907
  (eval $ac_try) 2>&5
 
19908
  ac_status=$?
 
19909
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19910
  (exit $ac_status); }; } &&
 
19911
         { ac_try='test -s conftest.$ac_objext'
 
19912
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19913
  (eval $ac_try) 2>&5
 
19914
  ac_status=$?
 
19915
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19916
  (exit $ac_status); }; }; then
 
19917
  break
 
19918
else
 
19919
  echo "$as_me: failed program was:" >&5
 
19920
sed 's/^/| /' conftest.$ac_ext >&5
 
19921
 
 
19922
fi
 
19923
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
19924
done
 
19925
rm -f conftest*
 
19926
if test -n "$ac_declaration"; then
 
19927
  echo '#ifdef __cplusplus' >>confdefs.h
 
19928
  echo $ac_declaration      >>confdefs.h
 
19929
  echo '#endif'             >>confdefs.h
 
19930
fi
 
19931
 
 
19932
else
 
19933
  echo "$as_me: failed program was:" >&5
 
19934
sed 's/^/| /' conftest.$ac_ext >&5
 
19935
 
 
19936
fi
 
19937
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20019
19938
ac_ext=c
20020
19939
ac_cpp='$CPP $CPPFLAGS'
20021
19940
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20025
19944
 
20026
19945
 
20027
19946
 
20028
 
{ echo "$as_me:$LINENO: checking for main in -lm" >&5
20029
 
echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6; }
 
19947
echo "$as_me:$LINENO: checking for main in -lm" >&5
 
19948
echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
20030
19949
if test "${ac_cv_lib_m_main+set}" = set; then
20031
19950
  echo $ECHO_N "(cached) $ECHO_C" >&6
20032
19951
else
20043
19962
int
20044
19963
main ()
20045
19964
{
20046
 
return main ();
 
19965
main ();
20047
19966
  ;
20048
19967
  return 0;
20049
19968
}
20050
19969
_ACEOF
20051
19970
rm -f conftest.$ac_objext conftest$ac_exeext
20052
 
if { (ac_try="$ac_link"
20053
 
case "(($ac_try" in
20054
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20055
 
  *) ac_try_echo=$ac_try;;
20056
 
esac
20057
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20058
 
  (eval "$ac_link") 2>conftest.er1
 
19971
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19972
  (eval $ac_link) 2>conftest.er1
20059
19973
  ac_status=$?
20060
19974
  grep -v '^ *+' conftest.er1 >conftest.err
20061
19975
  rm -f conftest.er1
20062
19976
  cat conftest.err >&5
20063
19977
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064
19978
  (exit $ac_status); } &&
20065
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20066
 
  { (case "(($ac_try" in
20067
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20068
 
  *) ac_try_echo=$ac_try;;
20069
 
esac
20070
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20071
 
  (eval "$ac_try") 2>&5
 
19979
         { ac_try='test -z "$ac_c_werror_flag"
 
19980
                         || test ! -s conftest.err'
 
19981
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19982
  (eval $ac_try) 2>&5
20072
19983
  ac_status=$?
20073
19984
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20074
19985
  (exit $ac_status); }; } &&
20075
19986
         { ac_try='test -s conftest$ac_exeext'
20076
 
  { (case "(($ac_try" in
20077
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20078
 
  *) ac_try_echo=$ac_try;;
20079
 
esac
20080
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20081
 
  (eval "$ac_try") 2>&5
 
19987
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19988
  (eval $ac_try) 2>&5
20082
19989
  ac_status=$?
20083
19990
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20084
19991
  (exit $ac_status); }; }; then
20087
19994
  echo "$as_me: failed program was:" >&5
20088
19995
sed 's/^/| /' conftest.$ac_ext >&5
20089
19996
 
20090
 
        ac_cv_lib_m_main=no
 
19997
ac_cv_lib_m_main=no
20091
19998
fi
20092
 
 
20093
 
rm -f core conftest.err conftest.$ac_objext \
 
19999
rm -f conftest.err conftest.$ac_objext \
20094
20000
      conftest$ac_exeext conftest.$ac_ext
20095
20001
LIBS=$ac_check_lib_save_LIBS
20096
20002
fi
20097
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
20098
 
echo "${ECHO_T}$ac_cv_lib_m_main" >&6; }
 
20003
echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
 
20004
echo "${ECHO_T}$ac_cv_lib_m_main" >&6
20099
20005
if test $ac_cv_lib_m_main = yes; then
20100
20006
  cat >>confdefs.h <<_ACEOF
20101
20007
#define HAVE_LIBM 1
20107
20013
 
20108
20014
 
20109
20015
olibs="$LIBS"
20110
 
{ echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
20111
 
echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
 
20016
echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
 
20017
echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
20112
20018
if test "${ac_cv_lib_crypt_crypt+set}" = set; then
20113
20019
  echo $ECHO_N "(cached) $ECHO_C" >&6
20114
20020
else
20121
20027
cat >>conftest.$ac_ext <<_ACEOF
20122
20028
/* end confdefs.h.  */
20123
20029
 
20124
 
/* Override any GCC internal prototype to avoid an error.
20125
 
   Use char because int might match the return type of a GCC
20126
 
   builtin and then its argument prototype would still apply.  */
 
20030
/* Override any gcc2 internal prototype to avoid an error.  */
20127
20031
#ifdef __cplusplus
20128
20032
extern "C"
20129
20033
#endif
 
20034
/* We use char because int might match the return type of a gcc2
 
20035
   builtin and then its argument prototype would still apply.  */
20130
20036
char crypt ();
20131
20037
int
20132
20038
main ()
20133
20039
{
20134
 
return crypt ();
 
20040
crypt ();
20135
20041
  ;
20136
20042
  return 0;
20137
20043
}
20138
20044
_ACEOF
20139
20045
rm -f conftest.$ac_objext conftest$ac_exeext
20140
 
if { (ac_try="$ac_link"
20141
 
case "(($ac_try" in
20142
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20143
 
  *) ac_try_echo=$ac_try;;
20144
 
esac
20145
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20146
 
  (eval "$ac_link") 2>conftest.er1
 
20046
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20047
  (eval $ac_link) 2>conftest.er1
20147
20048
  ac_status=$?
20148
20049
  grep -v '^ *+' conftest.er1 >conftest.err
20149
20050
  rm -f conftest.er1
20150
20051
  cat conftest.err >&5
20151
20052
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20152
20053
  (exit $ac_status); } &&
20153
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20154
 
  { (case "(($ac_try" in
20155
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20156
 
  *) ac_try_echo=$ac_try;;
20157
 
esac
20158
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20159
 
  (eval "$ac_try") 2>&5
 
20054
         { ac_try='test -z "$ac_c_werror_flag"
 
20055
                         || test ! -s conftest.err'
 
20056
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20057
  (eval $ac_try) 2>&5
20160
20058
  ac_status=$?
20161
20059
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162
20060
  (exit $ac_status); }; } &&
20163
20061
         { ac_try='test -s conftest$ac_exeext'
20164
 
  { (case "(($ac_try" in
20165
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20166
 
  *) ac_try_echo=$ac_try;;
20167
 
esac
20168
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20169
 
  (eval "$ac_try") 2>&5
 
20062
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20063
  (eval $ac_try) 2>&5
20170
20064
  ac_status=$?
20171
20065
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20172
20066
  (exit $ac_status); }; }; then
20175
20069
  echo "$as_me: failed program was:" >&5
20176
20070
sed 's/^/| /' conftest.$ac_ext >&5
20177
20071
 
20178
 
        ac_cv_lib_crypt_crypt=no
 
20072
ac_cv_lib_crypt_crypt=no
20179
20073
fi
20180
 
 
20181
 
rm -f core conftest.err conftest.$ac_objext \
 
20074
rm -f conftest.err conftest.$ac_objext \
20182
20075
      conftest$ac_exeext conftest.$ac_ext
20183
20076
LIBS=$ac_check_lib_save_LIBS
20184
20077
fi
20185
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
20186
 
echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
 
20078
echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
 
20079
echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
20187
20080
if test $ac_cv_lib_crypt_crypt = yes; then
20188
20081
  LIBS="$olibs -lcrypt"
20189
20082
fi
20190
20083
 
20191
20084
 
20192
20085
olibs="$LIBS"
20193
 
{ echo "$as_me:$LINENO: checking for crypt in -lgen" >&5
20194
 
echo $ECHO_N "checking for crypt in -lgen... $ECHO_C" >&6; }
 
20086
echo "$as_me:$LINENO: checking for crypt in -lgen" >&5
 
20087
echo $ECHO_N "checking for crypt in -lgen... $ECHO_C" >&6
20195
20088
if test "${ac_cv_lib_gen_crypt+set}" = set; then
20196
20089
  echo $ECHO_N "(cached) $ECHO_C" >&6
20197
20090
else
20204
20097
cat >>conftest.$ac_ext <<_ACEOF
20205
20098
/* end confdefs.h.  */
20206
20099
 
20207
 
/* Override any GCC internal prototype to avoid an error.
20208
 
   Use char because int might match the return type of a GCC
20209
 
   builtin and then its argument prototype would still apply.  */
 
20100
/* Override any gcc2 internal prototype to avoid an error.  */
20210
20101
#ifdef __cplusplus
20211
20102
extern "C"
20212
20103
#endif
 
20104
/* We use char because int might match the return type of a gcc2
 
20105
   builtin and then its argument prototype would still apply.  */
20213
20106
char crypt ();
20214
20107
int
20215
20108
main ()
20216
20109
{
20217
 
return crypt ();
 
20110
crypt ();
20218
20111
  ;
20219
20112
  return 0;
20220
20113
}
20221
20114
_ACEOF
20222
20115
rm -f conftest.$ac_objext conftest$ac_exeext
20223
 
if { (ac_try="$ac_link"
20224
 
case "(($ac_try" in
20225
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20226
 
  *) ac_try_echo=$ac_try;;
20227
 
esac
20228
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20229
 
  (eval "$ac_link") 2>conftest.er1
 
20116
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20117
  (eval $ac_link) 2>conftest.er1
20230
20118
  ac_status=$?
20231
20119
  grep -v '^ *+' conftest.er1 >conftest.err
20232
20120
  rm -f conftest.er1
20233
20121
  cat conftest.err >&5
20234
20122
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20235
20123
  (exit $ac_status); } &&
20236
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20237
 
  { (case "(($ac_try" in
20238
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20239
 
  *) ac_try_echo=$ac_try;;
20240
 
esac
20241
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20242
 
  (eval "$ac_try") 2>&5
 
20124
         { ac_try='test -z "$ac_c_werror_flag"
 
20125
                         || test ! -s conftest.err'
 
20126
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20127
  (eval $ac_try) 2>&5
20243
20128
  ac_status=$?
20244
20129
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245
20130
  (exit $ac_status); }; } &&
20246
20131
         { ac_try='test -s conftest$ac_exeext'
20247
 
  { (case "(($ac_try" in
20248
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20249
 
  *) ac_try_echo=$ac_try;;
20250
 
esac
20251
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20252
 
  (eval "$ac_try") 2>&5
 
20132
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20133
  (eval $ac_try) 2>&5
20253
20134
  ac_status=$?
20254
20135
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20255
20136
  (exit $ac_status); }; }; then
20258
20139
  echo "$as_me: failed program was:" >&5
20259
20140
sed 's/^/| /' conftest.$ac_ext >&5
20260
20141
 
20261
 
        ac_cv_lib_gen_crypt=no
 
20142
ac_cv_lib_gen_crypt=no
20262
20143
fi
20263
 
 
20264
 
rm -f core conftest.err conftest.$ac_objext \
 
20144
rm -f conftest.err conftest.$ac_objext \
20265
20145
      conftest$ac_exeext conftest.$ac_ext
20266
20146
LIBS=$ac_check_lib_save_LIBS
20267
20147
fi
20268
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_gen_crypt" >&5
20269
 
echo "${ECHO_T}$ac_cv_lib_gen_crypt" >&6; }
 
20148
echo "$as_me:$LINENO: result: $ac_cv_lib_gen_crypt" >&5
 
20149
echo "${ECHO_T}$ac_cv_lib_gen_crypt" >&6
20270
20150
if test $ac_cv_lib_gen_crypt = yes; then
20271
20151
  LIBS="$olibs -lgen"
20272
20152
fi
20274
20154
 
20275
20155
olibs="$LIBS"
20276
20156
 
20277
 
{ echo "$as_me:$LINENO: checking for gzread in -lz" >&5
20278
 
echo $ECHO_N "checking for gzread in -lz... $ECHO_C" >&6; }
 
20157
echo "$as_me:$LINENO: checking for gzread in -lz" >&5
 
20158
echo $ECHO_N "checking for gzread in -lz... $ECHO_C" >&6
20279
20159
if test "${ac_cv_lib_z_gzread+set}" = set; then
20280
20160
  echo $ECHO_N "(cached) $ECHO_C" >&6
20281
20161
else
20288
20168
cat >>conftest.$ac_ext <<_ACEOF
20289
20169
/* end confdefs.h.  */
20290
20170
 
20291
 
/* Override any GCC internal prototype to avoid an error.
20292
 
   Use char because int might match the return type of a GCC
20293
 
   builtin and then its argument prototype would still apply.  */
 
20171
/* Override any gcc2 internal prototype to avoid an error.  */
20294
20172
#ifdef __cplusplus
20295
20173
extern "C"
20296
20174
#endif
 
20175
/* We use char because int might match the return type of a gcc2
 
20176
   builtin and then its argument prototype would still apply.  */
20297
20177
char gzread ();
20298
20178
int
20299
20179
main ()
20300
20180
{
20301
 
return gzread ();
 
20181
gzread ();
20302
20182
  ;
20303
20183
  return 0;
20304
20184
}
20305
20185
_ACEOF
20306
20186
rm -f conftest.$ac_objext conftest$ac_exeext
20307
 
if { (ac_try="$ac_link"
20308
 
case "(($ac_try" in
20309
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20310
 
  *) ac_try_echo=$ac_try;;
20311
 
esac
20312
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20313
 
  (eval "$ac_link") 2>conftest.er1
 
20187
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20188
  (eval $ac_link) 2>conftest.er1
20314
20189
  ac_status=$?
20315
20190
  grep -v '^ *+' conftest.er1 >conftest.err
20316
20191
  rm -f conftest.er1
20317
20192
  cat conftest.err >&5
20318
20193
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20319
20194
  (exit $ac_status); } &&
20320
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20321
 
  { (case "(($ac_try" in
20322
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20323
 
  *) ac_try_echo=$ac_try;;
20324
 
esac
20325
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20326
 
  (eval "$ac_try") 2>&5
 
20195
         { ac_try='test -z "$ac_c_werror_flag"
 
20196
                         || test ! -s conftest.err'
 
20197
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20198
  (eval $ac_try) 2>&5
20327
20199
  ac_status=$?
20328
20200
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20329
20201
  (exit $ac_status); }; } &&
20330
20202
         { ac_try='test -s conftest$ac_exeext'
20331
 
  { (case "(($ac_try" in
20332
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20333
 
  *) ac_try_echo=$ac_try;;
20334
 
esac
20335
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20336
 
  (eval "$ac_try") 2>&5
 
20203
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20204
  (eval $ac_try) 2>&5
20337
20205
  ac_status=$?
20338
20206
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20339
20207
  (exit $ac_status); }; }; then
20342
20210
  echo "$as_me: failed program was:" >&5
20343
20211
sed 's/^/| /' conftest.$ac_ext >&5
20344
20212
 
20345
 
        ac_cv_lib_z_gzread=no
 
20213
ac_cv_lib_z_gzread=no
20346
20214
fi
20347
 
 
20348
 
rm -f core conftest.err conftest.$ac_objext \
 
20215
rm -f conftest.err conftest.$ac_objext \
20349
20216
      conftest$ac_exeext conftest.$ac_ext
20350
20217
LIBS=$ac_check_lib_save_LIBS
20351
20218
fi
20352
 
{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzread" >&5
20353
 
echo "${ECHO_T}$ac_cv_lib_z_gzread" >&6; }
 
20219
echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzread" >&5
 
20220
echo "${ECHO_T}$ac_cv_lib_z_gzread" >&6
20354
20221
if test $ac_cv_lib_z_gzread = yes; then
20355
20222
  cat >>confdefs.h <<_ACEOF
20356
20223
#define HAVE_LIBZ 1
20361
20228
fi
20362
20229
 
20363
20230
 
20364
 
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20365
 
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
 
20231
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
20232
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20366
20233
if test "${ac_cv_header_stdc+set}" = set; then
20367
20234
  echo $ECHO_N "(cached) $ECHO_C" >&6
20368
20235
else
20386
20253
}
20387
20254
_ACEOF
20388
20255
rm -f conftest.$ac_objext
20389
 
if { (ac_try="$ac_compile"
20390
 
case "(($ac_try" in
20391
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20392
 
  *) ac_try_echo=$ac_try;;
20393
 
esac
20394
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20395
 
  (eval "$ac_compile") 2>conftest.er1
 
20256
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20257
  (eval $ac_compile) 2>conftest.er1
20396
20258
  ac_status=$?
20397
20259
  grep -v '^ *+' conftest.er1 >conftest.err
20398
20260
  rm -f conftest.er1
20399
20261
  cat conftest.err >&5
20400
20262
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20401
20263
  (exit $ac_status); } &&
20402
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20403
 
  { (case "(($ac_try" in
20404
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20405
 
  *) ac_try_echo=$ac_try;;
20406
 
esac
20407
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20408
 
  (eval "$ac_try") 2>&5
 
20264
         { ac_try='test -z "$ac_c_werror_flag"
 
20265
                         || test ! -s conftest.err'
 
20266
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20267
  (eval $ac_try) 2>&5
20409
20268
  ac_status=$?
20410
20269
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411
20270
  (exit $ac_status); }; } &&
20412
20271
         { ac_try='test -s conftest.$ac_objext'
20413
 
  { (case "(($ac_try" in
20414
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20415
 
  *) ac_try_echo=$ac_try;;
20416
 
esac
20417
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20418
 
  (eval "$ac_try") 2>&5
 
20272
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20273
  (eval $ac_try) 2>&5
20419
20274
  ac_status=$?
20420
20275
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20421
20276
  (exit $ac_status); }; }; then
20424
20279
  echo "$as_me: failed program was:" >&5
20425
20280
sed 's/^/| /' conftest.$ac_ext >&5
20426
20281
 
20427
 
        ac_cv_header_stdc=no
 
20282
ac_cv_header_stdc=no
20428
20283
fi
20429
 
 
20430
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20284
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20431
20285
 
20432
20286
if test $ac_cv_header_stdc = yes; then
20433
20287
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20483
20337
cat >>conftest.$ac_ext <<_ACEOF
20484
20338
/* end confdefs.h.  */
20485
20339
#include <ctype.h>
20486
 
#include <stdlib.h>
20487
20340
#if ((' ' & 0x0FF) == 0x020)
20488
20341
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20489
20342
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20503
20356
  for (i = 0; i < 256; i++)
20504
20357
    if (XOR (islower (i), ISLOWER (i))
20505
20358
        || toupper (i) != TOUPPER (i))
20506
 
      return 2;
20507
 
  return 0;
 
20359
      exit(2);
 
20360
  exit (0);
20508
20361
}
20509
20362
_ACEOF
20510
20363
rm -f conftest$ac_exeext
20511
 
if { (ac_try="$ac_link"
20512
 
case "(($ac_try" in
20513
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20514
 
  *) ac_try_echo=$ac_try;;
20515
 
esac
20516
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20517
 
  (eval "$ac_link") 2>&5
 
20364
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20365
  (eval $ac_link) 2>&5
20518
20366
  ac_status=$?
20519
20367
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20520
20368
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20521
 
  { (case "(($ac_try" in
20522
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20523
 
  *) ac_try_echo=$ac_try;;
20524
 
esac
20525
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20526
 
  (eval "$ac_try") 2>&5
 
20369
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20370
  (eval $ac_try) 2>&5
20527
20371
  ac_status=$?
20528
20372
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20529
20373
  (exit $ac_status); }; }; then
20536
20380
( exit $ac_status )
20537
20381
ac_cv_header_stdc=no
20538
20382
fi
20539
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20540
 
fi
20541
 
 
20542
 
 
20543
 
fi
20544
 
fi
20545
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20546
 
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
 
20383
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
20384
fi
 
20385
fi
 
20386
fi
 
20387
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
20388
echo "${ECHO_T}$ac_cv_header_stdc" >&6
20547
20389
if test $ac_cv_header_stdc = yes; then
20548
20390
 
20549
20391
cat >>confdefs.h <<\_ACEOF
20561
20403
for ac_header in fcntl.h limits.h sys/ioctl.h sys/times.h termio.h unistd.h
20562
20404
do
20563
20405
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20564
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20565
 
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
20566
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20567
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
20406
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20407
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20408
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
20409
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20568
20410
  echo $ECHO_N "(cached) $ECHO_C" >&6
20569
20411
fi
20570
 
ac_res=`eval echo '${'$as_ac_Header'}'`
20571
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
20572
 
echo "${ECHO_T}$ac_res" >&6; }
 
20412
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
20413
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20573
20414
else
20574
20415
  # Is the header compilable?
20575
 
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20576
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
20416
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
20417
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20577
20418
cat >conftest.$ac_ext <<_ACEOF
20578
20419
/* confdefs.h.  */
20579
20420
_ACEOF
20584
20425
#include <$ac_header>
20585
20426
_ACEOF
20586
20427
rm -f conftest.$ac_objext
20587
 
if { (ac_try="$ac_compile"
20588
 
case "(($ac_try" in
20589
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20590
 
  *) ac_try_echo=$ac_try;;
20591
 
esac
20592
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20593
 
  (eval "$ac_compile") 2>conftest.er1
 
20428
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20429
  (eval $ac_compile) 2>conftest.er1
20594
20430
  ac_status=$?
20595
20431
  grep -v '^ *+' conftest.er1 >conftest.err
20596
20432
  rm -f conftest.er1
20597
20433
  cat conftest.err >&5
20598
20434
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20599
20435
  (exit $ac_status); } &&
20600
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20601
 
  { (case "(($ac_try" in
20602
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20603
 
  *) ac_try_echo=$ac_try;;
20604
 
esac
20605
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20606
 
  (eval "$ac_try") 2>&5
 
20436
         { ac_try='test -z "$ac_c_werror_flag"
 
20437
                         || test ! -s conftest.err'
 
20438
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20439
  (eval $ac_try) 2>&5
20607
20440
  ac_status=$?
20608
20441
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20609
20442
  (exit $ac_status); }; } &&
20610
20443
         { ac_try='test -s conftest.$ac_objext'
20611
 
  { (case "(($ac_try" in
20612
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20613
 
  *) ac_try_echo=$ac_try;;
20614
 
esac
20615
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20616
 
  (eval "$ac_try") 2>&5
 
20444
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20445
  (eval $ac_try) 2>&5
20617
20446
  ac_status=$?
20618
20447
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20619
20448
  (exit $ac_status); }; }; then
20622
20451
  echo "$as_me: failed program was:" >&5
20623
20452
sed 's/^/| /' conftest.$ac_ext >&5
20624
20453
 
20625
 
        ac_header_compiler=no
 
20454
ac_header_compiler=no
20626
20455
fi
20627
 
 
20628
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20629
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20630
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
20456
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20457
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
20458
echo "${ECHO_T}$ac_header_compiler" >&6
20631
20459
 
20632
20460
# Is the header present?
20633
 
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20634
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
20461
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
20462
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20635
20463
cat >conftest.$ac_ext <<_ACEOF
20636
20464
/* confdefs.h.  */
20637
20465
_ACEOF
20640
20468
/* end confdefs.h.  */
20641
20469
#include <$ac_header>
20642
20470
_ACEOF
20643
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
20644
 
case "(($ac_try" in
20645
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20646
 
  *) ac_try_echo=$ac_try;;
20647
 
esac
20648
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20649
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
20471
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
20472
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20650
20473
  ac_status=$?
20651
20474
  grep -v '^ *+' conftest.er1 >conftest.err
20652
20475
  rm -f conftest.er1
20670
20493
 
20671
20494
  ac_header_preproc=no
20672
20495
fi
20673
 
 
20674
20496
rm -f conftest.err conftest.$ac_ext
20675
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20676
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
20497
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
20498
echo "${ECHO_T}$ac_header_preproc" >&6
20677
20499
 
20678
20500
# So?  What about this header?
20679
20501
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20697
20519
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20698
20520
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20699
20521
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20700
 
    ( cat <<\_ASBOX
 
20522
    (
 
20523
      cat <<\_ASBOX
20701
20524
## ------------------------------ ##
20702
20525
## Report this to jon@radscan.com ##
20703
20526
## ------------------------------ ##
20704
20527
_ASBOX
20705
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
20528
    ) |
 
20529
      sed "s/^/$as_me: WARNING:     /" >&2
20706
20530
    ;;
20707
20531
esac
20708
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20709
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20710
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
20532
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20533
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
20534
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20711
20535
  echo $ECHO_N "(cached) $ECHO_C" >&6
20712
20536
else
20713
20537
  eval "$as_ac_Header=\$ac_header_preproc"
20714
20538
fi
20715
 
ac_res=`eval echo '${'$as_ac_Header'}'`
20716
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
20717
 
echo "${ECHO_T}$ac_res" >&6; }
 
20539
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
20540
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20718
20541
 
20719
20542
fi
20720
20543
if test `eval echo '${'$as_ac_Header'}'` = yes; then
20734
20557
for ac_header in sys/time.h sys/select.h stropts.h poll.h values.h
20735
20558
do
20736
20559
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20737
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20738
 
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
20739
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20740
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
20560
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20561
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20562
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
20563
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20741
20564
  echo $ECHO_N "(cached) $ECHO_C" >&6
20742
20565
fi
20743
 
ac_res=`eval echo '${'$as_ac_Header'}'`
20744
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
20745
 
echo "${ECHO_T}$ac_res" >&6; }
 
20566
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
20567
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20746
20568
else
20747
20569
  # Is the header compilable?
20748
 
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20749
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
20570
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
20571
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20750
20572
cat >conftest.$ac_ext <<_ACEOF
20751
20573
/* confdefs.h.  */
20752
20574
_ACEOF
20757
20579
#include <$ac_header>
20758
20580
_ACEOF
20759
20581
rm -f conftest.$ac_objext
20760
 
if { (ac_try="$ac_compile"
20761
 
case "(($ac_try" in
20762
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20763
 
  *) ac_try_echo=$ac_try;;
20764
 
esac
20765
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20766
 
  (eval "$ac_compile") 2>conftest.er1
 
20582
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20583
  (eval $ac_compile) 2>conftest.er1
20767
20584
  ac_status=$?
20768
20585
  grep -v '^ *+' conftest.er1 >conftest.err
20769
20586
  rm -f conftest.er1
20770
20587
  cat conftest.err >&5
20771
20588
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772
20589
  (exit $ac_status); } &&
20773
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20774
 
  { (case "(($ac_try" in
20775
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20776
 
  *) ac_try_echo=$ac_try;;
20777
 
esac
20778
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20779
 
  (eval "$ac_try") 2>&5
 
20590
         { ac_try='test -z "$ac_c_werror_flag"
 
20591
                         || test ! -s conftest.err'
 
20592
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20593
  (eval $ac_try) 2>&5
20780
20594
  ac_status=$?
20781
20595
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20782
20596
  (exit $ac_status); }; } &&
20783
20597
         { ac_try='test -s conftest.$ac_objext'
20784
 
  { (case "(($ac_try" in
20785
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20786
 
  *) ac_try_echo=$ac_try;;
20787
 
esac
20788
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20789
 
  (eval "$ac_try") 2>&5
 
20598
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20599
  (eval $ac_try) 2>&5
20790
20600
  ac_status=$?
20791
20601
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20792
20602
  (exit $ac_status); }; }; then
20795
20605
  echo "$as_me: failed program was:" >&5
20796
20606
sed 's/^/| /' conftest.$ac_ext >&5
20797
20607
 
20798
 
        ac_header_compiler=no
 
20608
ac_header_compiler=no
20799
20609
fi
20800
 
 
20801
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20802
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20803
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
20610
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20611
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
20612
echo "${ECHO_T}$ac_header_compiler" >&6
20804
20613
 
20805
20614
# Is the header present?
20806
 
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20807
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
20615
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
20616
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20808
20617
cat >conftest.$ac_ext <<_ACEOF
20809
20618
/* confdefs.h.  */
20810
20619
_ACEOF
20813
20622
/* end confdefs.h.  */
20814
20623
#include <$ac_header>
20815
20624
_ACEOF
20816
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
20817
 
case "(($ac_try" in
20818
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20819
 
  *) ac_try_echo=$ac_try;;
20820
 
esac
20821
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20822
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
20625
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
20626
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20823
20627
  ac_status=$?
20824
20628
  grep -v '^ *+' conftest.er1 >conftest.err
20825
20629
  rm -f conftest.er1
20843
20647
 
20844
20648
  ac_header_preproc=no
20845
20649
fi
20846
 
 
20847
20650
rm -f conftest.err conftest.$ac_ext
20848
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20849
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
20651
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
20652
echo "${ECHO_T}$ac_header_preproc" >&6
20850
20653
 
20851
20654
# So?  What about this header?
20852
20655
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20870
20673
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20871
20674
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20872
20675
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20873
 
    ( cat <<\_ASBOX
 
20676
    (
 
20677
      cat <<\_ASBOX
20874
20678
## ------------------------------ ##
20875
20679
## Report this to jon@radscan.com ##
20876
20680
## ------------------------------ ##
20877
20681
_ASBOX
20878
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
20682
    ) |
 
20683
      sed "s/^/$as_me: WARNING:     /" >&2
20879
20684
    ;;
20880
20685
esac
20881
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
20882
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20883
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
20686
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20687
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
20688
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20884
20689
  echo $ECHO_N "(cached) $ECHO_C" >&6
20885
20690
else
20886
20691
  eval "$as_ac_Header=\$ac_header_preproc"
20887
20692
fi
20888
 
ac_res=`eval echo '${'$as_ac_Header'}'`
20889
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
20890
 
echo "${ECHO_T}$ac_res" >&6; }
 
20693
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
20694
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20891
20695
 
20892
20696
fi
20893
20697
if test `eval echo '${'$as_ac_Header'}'` = yes; then
20907
20711
for ac_header in time.h string.h strings.h termios.h zlib.h
20908
20712
do
20909
20713
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20910
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20911
 
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
20912
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20913
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
20714
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20715
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20716
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
20717
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20914
20718
  echo $ECHO_N "(cached) $ECHO_C" >&6
20915
20719
fi
20916
 
ac_res=`eval echo '${'$as_ac_Header'}'`
20917
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
20918
 
echo "${ECHO_T}$ac_res" >&6; }
 
20720
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
20721
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20919
20722
else
20920
20723
  # Is the header compilable?
20921
 
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
20922
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
20724
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
20725
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20923
20726
cat >conftest.$ac_ext <<_ACEOF
20924
20727
/* confdefs.h.  */
20925
20728
_ACEOF
20930
20733
#include <$ac_header>
20931
20734
_ACEOF
20932
20735
rm -f conftest.$ac_objext
20933
 
if { (ac_try="$ac_compile"
20934
 
case "(($ac_try" in
20935
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20936
 
  *) ac_try_echo=$ac_try;;
20937
 
esac
20938
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20939
 
  (eval "$ac_compile") 2>conftest.er1
 
20736
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20737
  (eval $ac_compile) 2>conftest.er1
20940
20738
  ac_status=$?
20941
20739
  grep -v '^ *+' conftest.er1 >conftest.err
20942
20740
  rm -f conftest.er1
20943
20741
  cat conftest.err >&5
20944
20742
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20945
20743
  (exit $ac_status); } &&
20946
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20947
 
  { (case "(($ac_try" in
20948
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20949
 
  *) ac_try_echo=$ac_try;;
20950
 
esac
20951
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20952
 
  (eval "$ac_try") 2>&5
 
20744
         { ac_try='test -z "$ac_c_werror_flag"
 
20745
                         || test ! -s conftest.err'
 
20746
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20747
  (eval $ac_try) 2>&5
20953
20748
  ac_status=$?
20954
20749
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20955
20750
  (exit $ac_status); }; } &&
20956
20751
         { ac_try='test -s conftest.$ac_objext'
20957
 
  { (case "(($ac_try" in
20958
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20959
 
  *) ac_try_echo=$ac_try;;
20960
 
esac
20961
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20962
 
  (eval "$ac_try") 2>&5
 
20752
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20753
  (eval $ac_try) 2>&5
20963
20754
  ac_status=$?
20964
20755
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20965
20756
  (exit $ac_status); }; }; then
20968
20759
  echo "$as_me: failed program was:" >&5
20969
20760
sed 's/^/| /' conftest.$ac_ext >&5
20970
20761
 
20971
 
        ac_header_compiler=no
 
20762
ac_header_compiler=no
20972
20763
fi
20973
 
 
20974
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20975
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20976
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
20764
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20765
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
20766
echo "${ECHO_T}$ac_header_compiler" >&6
20977
20767
 
20978
20768
# Is the header present?
20979
 
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
20980
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
20769
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
20770
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20981
20771
cat >conftest.$ac_ext <<_ACEOF
20982
20772
/* confdefs.h.  */
20983
20773
_ACEOF
20986
20776
/* end confdefs.h.  */
20987
20777
#include <$ac_header>
20988
20778
_ACEOF
20989
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
20990
 
case "(($ac_try" in
20991
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20992
 
  *) ac_try_echo=$ac_try;;
20993
 
esac
20994
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20995
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
20779
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
20780
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20996
20781
  ac_status=$?
20997
20782
  grep -v '^ *+' conftest.er1 >conftest.err
20998
20783
  rm -f conftest.er1
21016
20801
 
21017
20802
  ac_header_preproc=no
21018
20803
fi
21019
 
 
21020
20804
rm -f conftest.err conftest.$ac_ext
21021
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21022
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
20805
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
20806
echo "${ECHO_T}$ac_header_preproc" >&6
21023
20807
 
21024
20808
# So?  What about this header?
21025
20809
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21043
20827
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21044
20828
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21045
20829
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21046
 
    ( cat <<\_ASBOX
 
20830
    (
 
20831
      cat <<\_ASBOX
21047
20832
## ------------------------------ ##
21048
20833
## Report this to jon@radscan.com ##
21049
20834
## ------------------------------ ##
21050
20835
_ASBOX
21051
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
20836
    ) |
 
20837
      sed "s/^/$as_me: WARNING:     /" >&2
21052
20838
    ;;
21053
20839
esac
21054
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21055
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21056
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
20840
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20841
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
20842
if eval "test \"\${$as_ac_Header+set}\" = set"; then
21057
20843
  echo $ECHO_N "(cached) $ECHO_C" >&6
21058
20844
else
21059
20845
  eval "$as_ac_Header=\$ac_header_preproc"
21060
20846
fi
21061
 
ac_res=`eval echo '${'$as_ac_Header'}'`
21062
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
21063
 
echo "${ECHO_T}$ac_res" >&6; }
 
20847
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
20848
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21064
20849
 
21065
20850
fi
21066
20851
if test `eval echo '${'$as_ac_Header'}'` = yes; then
21079
20864
for ac_header in stdint.h stdlib.h limits.h malloc.h
21080
20865
do
21081
20866
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21082
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21083
 
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
21084
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21085
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
20867
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20868
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20869
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
20870
if eval "test \"\${$as_ac_Header+set}\" = set"; then
21086
20871
  echo $ECHO_N "(cached) $ECHO_C" >&6
21087
20872
fi
21088
 
ac_res=`eval echo '${'$as_ac_Header'}'`
21089
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
21090
 
echo "${ECHO_T}$ac_res" >&6; }
 
20873
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
20874
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21091
20875
else
21092
20876
  # Is the header compilable?
21093
 
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21094
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
20877
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
20878
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21095
20879
cat >conftest.$ac_ext <<_ACEOF
21096
20880
/* confdefs.h.  */
21097
20881
_ACEOF
21102
20886
#include <$ac_header>
21103
20887
_ACEOF
21104
20888
rm -f conftest.$ac_objext
21105
 
if { (ac_try="$ac_compile"
21106
 
case "(($ac_try" in
21107
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21108
 
  *) ac_try_echo=$ac_try;;
21109
 
esac
21110
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21111
 
  (eval "$ac_compile") 2>conftest.er1
 
20889
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20890
  (eval $ac_compile) 2>conftest.er1
21112
20891
  ac_status=$?
21113
20892
  grep -v '^ *+' conftest.er1 >conftest.err
21114
20893
  rm -f conftest.er1
21115
20894
  cat conftest.err >&5
21116
20895
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117
20896
  (exit $ac_status); } &&
21118
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21119
 
  { (case "(($ac_try" in
21120
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21121
 
  *) ac_try_echo=$ac_try;;
21122
 
esac
21123
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21124
 
  (eval "$ac_try") 2>&5
 
20897
         { ac_try='test -z "$ac_c_werror_flag"
 
20898
                         || test ! -s conftest.err'
 
20899
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20900
  (eval $ac_try) 2>&5
21125
20901
  ac_status=$?
21126
20902
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21127
20903
  (exit $ac_status); }; } &&
21128
20904
         { ac_try='test -s conftest.$ac_objext'
21129
 
  { (case "(($ac_try" in
21130
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21131
 
  *) ac_try_echo=$ac_try;;
21132
 
esac
21133
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21134
 
  (eval "$ac_try") 2>&5
 
20905
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20906
  (eval $ac_try) 2>&5
21135
20907
  ac_status=$?
21136
20908
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21137
20909
  (exit $ac_status); }; }; then
21140
20912
  echo "$as_me: failed program was:" >&5
21141
20913
sed 's/^/| /' conftest.$ac_ext >&5
21142
20914
 
21143
 
        ac_header_compiler=no
 
20915
ac_header_compiler=no
21144
20916
fi
21145
 
 
21146
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21147
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21148
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
20917
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20918
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
20919
echo "${ECHO_T}$ac_header_compiler" >&6
21149
20920
 
21150
20921
# Is the header present?
21151
 
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21152
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
20922
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
20923
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21153
20924
cat >conftest.$ac_ext <<_ACEOF
21154
20925
/* confdefs.h.  */
21155
20926
_ACEOF
21158
20929
/* end confdefs.h.  */
21159
20930
#include <$ac_header>
21160
20931
_ACEOF
21161
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
21162
 
case "(($ac_try" in
21163
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21164
 
  *) ac_try_echo=$ac_try;;
21165
 
esac
21166
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21167
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
20932
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
20933
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21168
20934
  ac_status=$?
21169
20935
  grep -v '^ *+' conftest.er1 >conftest.err
21170
20936
  rm -f conftest.er1
21188
20954
 
21189
20955
  ac_header_preproc=no
21190
20956
fi
21191
 
 
21192
20957
rm -f conftest.err conftest.$ac_ext
21193
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21194
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
20958
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
20959
echo "${ECHO_T}$ac_header_preproc" >&6
21195
20960
 
21196
20961
# So?  What about this header?
21197
20962
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21215
20980
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21216
20981
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21217
20982
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21218
 
    ( cat <<\_ASBOX
 
20983
    (
 
20984
      cat <<\_ASBOX
21219
20985
## ------------------------------ ##
21220
20986
## Report this to jon@radscan.com ##
21221
20987
## ------------------------------ ##
21222
20988
_ASBOX
21223
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
20989
    ) |
 
20990
      sed "s/^/$as_me: WARNING:     /" >&2
21224
20991
    ;;
21225
20992
esac
21226
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21227
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21228
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
20993
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20994
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
20995
if eval "test \"\${$as_ac_Header+set}\" = set"; then
21229
20996
  echo $ECHO_N "(cached) $ECHO_C" >&6
21230
20997
else
21231
20998
  eval "$as_ac_Header=\$ac_header_preproc"
21232
20999
fi
21233
 
ac_res=`eval echo '${'$as_ac_Header'}'`
21234
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
21235
 
echo "${ECHO_T}$ac_res" >&6; }
 
21000
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
21001
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21236
21002
 
21237
21003
fi
21238
21004
if test `eval echo '${'$as_ac_Header'}'` = yes; then
21249
21015
for ac_header in sys/soundcard.h machine/soundcard.h
21250
21016
do
21251
21017
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21252
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21253
 
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
21254
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21255
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
21018
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
21019
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
21020
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
21021
if eval "test \"\${$as_ac_Header+set}\" = set"; then
21256
21022
  echo $ECHO_N "(cached) $ECHO_C" >&6
21257
21023
fi
21258
 
ac_res=`eval echo '${'$as_ac_Header'}'`
21259
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
21260
 
echo "${ECHO_T}$ac_res" >&6; }
 
21024
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
21025
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21261
21026
else
21262
21027
  # Is the header compilable?
21263
 
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
21264
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
21028
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
21029
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21265
21030
cat >conftest.$ac_ext <<_ACEOF
21266
21031
/* confdefs.h.  */
21267
21032
_ACEOF
21272
21037
#include <$ac_header>
21273
21038
_ACEOF
21274
21039
rm -f conftest.$ac_objext
21275
 
if { (ac_try="$ac_compile"
21276
 
case "(($ac_try" in
21277
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21278
 
  *) ac_try_echo=$ac_try;;
21279
 
esac
21280
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21281
 
  (eval "$ac_compile") 2>conftest.er1
 
21040
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21041
  (eval $ac_compile) 2>conftest.er1
21282
21042
  ac_status=$?
21283
21043
  grep -v '^ *+' conftest.er1 >conftest.err
21284
21044
  rm -f conftest.er1
21285
21045
  cat conftest.err >&5
21286
21046
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21287
21047
  (exit $ac_status); } &&
21288
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21289
 
  { (case "(($ac_try" in
21290
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21291
 
  *) ac_try_echo=$ac_try;;
21292
 
esac
21293
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21294
 
  (eval "$ac_try") 2>&5
 
21048
         { ac_try='test -z "$ac_c_werror_flag"
 
21049
                         || test ! -s conftest.err'
 
21050
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21051
  (eval $ac_try) 2>&5
21295
21052
  ac_status=$?
21296
21053
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21297
21054
  (exit $ac_status); }; } &&
21298
21055
         { ac_try='test -s conftest.$ac_objext'
21299
 
  { (case "(($ac_try" in
21300
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21301
 
  *) ac_try_echo=$ac_try;;
21302
 
esac
21303
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21304
 
  (eval "$ac_try") 2>&5
 
21056
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21057
  (eval $ac_try) 2>&5
21305
21058
  ac_status=$?
21306
21059
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307
21060
  (exit $ac_status); }; }; then
21310
21063
  echo "$as_me: failed program was:" >&5
21311
21064
sed 's/^/| /' conftest.$ac_ext >&5
21312
21065
 
21313
 
        ac_header_compiler=no
 
21066
ac_header_compiler=no
21314
21067
fi
21315
 
 
21316
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21317
 
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21318
 
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
21068
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21069
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
21070
echo "${ECHO_T}$ac_header_compiler" >&6
21319
21071
 
21320
21072
# Is the header present?
21321
 
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
21322
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
21073
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
21074
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21323
21075
cat >conftest.$ac_ext <<_ACEOF
21324
21076
/* confdefs.h.  */
21325
21077
_ACEOF
21328
21080
/* end confdefs.h.  */
21329
21081
#include <$ac_header>
21330
21082
_ACEOF
21331
 
if { (ac_try="$ac_cpp conftest.$ac_ext"
21332
 
case "(($ac_try" in
21333
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21334
 
  *) ac_try_echo=$ac_try;;
21335
 
esac
21336
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21337
 
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
21083
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
21084
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21338
21085
  ac_status=$?
21339
21086
  grep -v '^ *+' conftest.er1 >conftest.err
21340
21087
  rm -f conftest.er1
21358
21105
 
21359
21106
  ac_header_preproc=no
21360
21107
fi
21361
 
 
21362
21108
rm -f conftest.err conftest.$ac_ext
21363
 
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21364
 
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
21109
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
21110
echo "${ECHO_T}$ac_header_preproc" >&6
21365
21111
 
21366
21112
# So?  What about this header?
21367
21113
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21385
21131
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21386
21132
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21387
21133
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21388
 
    ( cat <<\_ASBOX
 
21134
    (
 
21135
      cat <<\_ASBOX
21389
21136
## ------------------------------ ##
21390
21137
## Report this to jon@radscan.com ##
21391
21138
## ------------------------------ ##
21392
21139
_ASBOX
21393
 
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
21140
    ) |
 
21141
      sed "s/^/$as_me: WARNING:     /" >&2
21394
21142
    ;;
21395
21143
esac
21396
 
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
21397
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21398
 
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
21144
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
21145
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
21146
if eval "test \"\${$as_ac_Header+set}\" = set"; then
21399
21147
  echo $ECHO_N "(cached) $ECHO_C" >&6
21400
21148
else
21401
21149
  eval "$as_ac_Header=\$ac_header_preproc"
21402
21150
fi
21403
 
ac_res=`eval echo '${'$as_ac_Header'}'`
21404
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
21405
 
echo "${ECHO_T}$ac_res" >&6; }
 
21151
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
21152
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21406
21153
 
21407
21154
fi
21408
21155
if test `eval echo '${'$as_ac_Header'}'` = yes; then
21415
21162
done
21416
21163
 
21417
21164
 
21418
 
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21419
 
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
 
21165
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
 
21166
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
21420
21167
if test "${ac_cv_c_const+set}" = set; then
21421
21168
  echo $ECHO_N "(cached) $ECHO_C" >&6
21422
21169
else
21456
21203
    char const *s = 0 ? (char *) 0 : (char const *) 0;
21457
21204
 
21458
21205
    *t++ = 0;
21459
 
    if (s) return 0;
21460
21206
  }
21461
21207
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21462
21208
    int x[] = {25, 17};
21475
21221
  }
21476
21222
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21477
21223
    const int foo = 10;
21478
 
    if (!foo) return 0;
21479
21224
  }
21480
 
  return !x[0] && !zero.x;
21481
21225
#endif
21482
21226
 
21483
21227
  ;
21485
21229
}
21486
21230
_ACEOF
21487
21231
rm -f conftest.$ac_objext
21488
 
if { (ac_try="$ac_compile"
21489
 
case "(($ac_try" in
21490
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21491
 
  *) ac_try_echo=$ac_try;;
21492
 
esac
21493
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21494
 
  (eval "$ac_compile") 2>conftest.er1
 
21232
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21233
  (eval $ac_compile) 2>conftest.er1
21495
21234
  ac_status=$?
21496
21235
  grep -v '^ *+' conftest.er1 >conftest.err
21497
21236
  rm -f conftest.er1
21498
21237
  cat conftest.err >&5
21499
21238
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21500
21239
  (exit $ac_status); } &&
21501
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21502
 
  { (case "(($ac_try" in
21503
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21504
 
  *) ac_try_echo=$ac_try;;
21505
 
esac
21506
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21507
 
  (eval "$ac_try") 2>&5
 
21240
         { ac_try='test -z "$ac_c_werror_flag"
 
21241
                         || test ! -s conftest.err'
 
21242
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21243
  (eval $ac_try) 2>&5
21508
21244
  ac_status=$?
21509
21245
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21510
21246
  (exit $ac_status); }; } &&
21511
21247
         { ac_try='test -s conftest.$ac_objext'
21512
 
  { (case "(($ac_try" in
21513
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21514
 
  *) ac_try_echo=$ac_try;;
21515
 
esac
21516
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21517
 
  (eval "$ac_try") 2>&5
 
21248
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21249
  (eval $ac_try) 2>&5
21518
21250
  ac_status=$?
21519
21251
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21520
21252
  (exit $ac_status); }; }; then
21523
21255
  echo "$as_me: failed program was:" >&5
21524
21256
sed 's/^/| /' conftest.$ac_ext >&5
21525
21257
 
21526
 
        ac_cv_c_const=no
21527
 
fi
21528
 
 
21529
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21530
 
fi
21531
 
{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21532
 
echo "${ECHO_T}$ac_cv_c_const" >&6; }
 
21258
ac_cv_c_const=no
 
21259
fi
 
21260
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21261
fi
 
21262
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
 
21263
echo "${ECHO_T}$ac_cv_c_const" >&6
21533
21264
if test $ac_cv_c_const = no; then
21534
21265
 
21535
21266
cat >>confdefs.h <<\_ACEOF
21538
21269
 
21539
21270
fi
21540
21271
 
21541
 
{ echo "$as_me:$LINENO: checking for size_t" >&5
21542
 
echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
 
21272
echo "$as_me:$LINENO: checking for size_t" >&5
 
21273
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21543
21274
if test "${ac_cv_type_size_t+set}" = set; then
21544
21275
  echo $ECHO_N "(cached) $ECHO_C" >&6
21545
21276
else
21550
21281
cat >>conftest.$ac_ext <<_ACEOF
21551
21282
/* end confdefs.h.  */
21552
21283
$ac_includes_default
21553
 
typedef size_t ac__type_new_;
21554
21284
int
21555
21285
main ()
21556
21286
{
21557
 
if ((ac__type_new_ *) 0)
 
21287
if ((size_t *) 0)
21558
21288
  return 0;
21559
 
if (sizeof (ac__type_new_))
 
21289
if (sizeof (size_t))
21560
21290
  return 0;
21561
21291
  ;
21562
21292
  return 0;
21563
21293
}
21564
21294
_ACEOF
21565
21295
rm -f conftest.$ac_objext
21566
 
if { (ac_try="$ac_compile"
21567
 
case "(($ac_try" in
21568
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21569
 
  *) ac_try_echo=$ac_try;;
21570
 
esac
21571
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21572
 
  (eval "$ac_compile") 2>conftest.er1
 
21296
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21297
  (eval $ac_compile) 2>conftest.er1
21573
21298
  ac_status=$?
21574
21299
  grep -v '^ *+' conftest.er1 >conftest.err
21575
21300
  rm -f conftest.er1
21576
21301
  cat conftest.err >&5
21577
21302
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21578
21303
  (exit $ac_status); } &&
21579
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21580
 
  { (case "(($ac_try" in
21581
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21582
 
  *) ac_try_echo=$ac_try;;
21583
 
esac
21584
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21585
 
  (eval "$ac_try") 2>&5
 
21304
         { ac_try='test -z "$ac_c_werror_flag"
 
21305
                         || test ! -s conftest.err'
 
21306
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21307
  (eval $ac_try) 2>&5
21586
21308
  ac_status=$?
21587
21309
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21588
21310
  (exit $ac_status); }; } &&
21589
21311
         { ac_try='test -s conftest.$ac_objext'
21590
 
  { (case "(($ac_try" in
21591
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21592
 
  *) ac_try_echo=$ac_try;;
21593
 
esac
21594
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21595
 
  (eval "$ac_try") 2>&5
 
21312
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21313
  (eval $ac_try) 2>&5
21596
21314
  ac_status=$?
21597
21315
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21598
21316
  (exit $ac_status); }; }; then
21601
21319
  echo "$as_me: failed program was:" >&5
21602
21320
sed 's/^/| /' conftest.$ac_ext >&5
21603
21321
 
21604
 
        ac_cv_type_size_t=no
21605
 
fi
21606
 
 
21607
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21608
 
fi
21609
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21610
 
echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
 
21322
ac_cv_type_size_t=no
 
21323
fi
 
21324
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21325
fi
 
21326
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
 
21327
echo "${ECHO_T}$ac_cv_type_size_t" >&6
21611
21328
if test $ac_cv_type_size_t = yes; then
21612
21329
  :
21613
21330
else
21614
21331
 
21615
21332
cat >>confdefs.h <<_ACEOF
21616
 
#define size_t unsigned int
 
21333
#define size_t unsigned
21617
21334
_ACEOF
21618
21335
 
21619
21336
fi
21620
21337
 
21621
 
{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21622
 
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
 
21338
echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
 
21339
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
21623
21340
if test "${ac_cv_header_time+set}" = set; then
21624
21341
  echo $ECHO_N "(cached) $ECHO_C" >&6
21625
21342
else
21643
21360
}
21644
21361
_ACEOF
21645
21362
rm -f conftest.$ac_objext
21646
 
if { (ac_try="$ac_compile"
21647
 
case "(($ac_try" in
21648
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21649
 
  *) ac_try_echo=$ac_try;;
21650
 
esac
21651
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21652
 
  (eval "$ac_compile") 2>conftest.er1
 
21363
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21364
  (eval $ac_compile) 2>conftest.er1
21653
21365
  ac_status=$?
21654
21366
  grep -v '^ *+' conftest.er1 >conftest.err
21655
21367
  rm -f conftest.er1
21656
21368
  cat conftest.err >&5
21657
21369
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21658
21370
  (exit $ac_status); } &&
21659
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21660
 
  { (case "(($ac_try" in
21661
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21662
 
  *) ac_try_echo=$ac_try;;
21663
 
esac
21664
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21665
 
  (eval "$ac_try") 2>&5
 
21371
         { ac_try='test -z "$ac_c_werror_flag"
 
21372
                         || test ! -s conftest.err'
 
21373
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21374
  (eval $ac_try) 2>&5
21666
21375
  ac_status=$?
21667
21376
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21668
21377
  (exit $ac_status); }; } &&
21669
21378
         { ac_try='test -s conftest.$ac_objext'
21670
 
  { (case "(($ac_try" in
21671
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21672
 
  *) ac_try_echo=$ac_try;;
21673
 
esac
21674
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21675
 
  (eval "$ac_try") 2>&5
 
21379
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21380
  (eval $ac_try) 2>&5
21676
21381
  ac_status=$?
21677
21382
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21678
21383
  (exit $ac_status); }; }; then
21681
21386
  echo "$as_me: failed program was:" >&5
21682
21387
sed 's/^/| /' conftest.$ac_ext >&5
21683
21388
 
21684
 
        ac_cv_header_time=no
21685
 
fi
21686
 
 
21687
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21688
 
fi
21689
 
{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21690
 
echo "${ECHO_T}$ac_cv_header_time" >&6; }
 
21389
ac_cv_header_time=no
 
21390
fi
 
21391
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21392
fi
 
21393
echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
 
21394
echo "${ECHO_T}$ac_cv_header_time" >&6
21691
21395
if test $ac_cv_header_time = yes; then
21692
21396
 
21693
21397
cat >>confdefs.h <<\_ACEOF
21696
21400
 
21697
21401
fi
21698
21402
 
21699
 
{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21700
 
echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
 
21403
echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
 
21404
echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
21701
21405
if test "${ac_cv_struct_tm+set}" = set; then
21702
21406
  echo $ECHO_N "(cached) $ECHO_C" >&6
21703
21407
else
21719
21423
}
21720
21424
_ACEOF
21721
21425
rm -f conftest.$ac_objext
21722
 
if { (ac_try="$ac_compile"
21723
 
case "(($ac_try" in
21724
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21725
 
  *) ac_try_echo=$ac_try;;
21726
 
esac
21727
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21728
 
  (eval "$ac_compile") 2>conftest.er1
 
21426
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21427
  (eval $ac_compile) 2>conftest.er1
21729
21428
  ac_status=$?
21730
21429
  grep -v '^ *+' conftest.er1 >conftest.err
21731
21430
  rm -f conftest.er1
21732
21431
  cat conftest.err >&5
21733
21432
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21734
21433
  (exit $ac_status); } &&
21735
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21736
 
  { (case "(($ac_try" in
21737
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21738
 
  *) ac_try_echo=$ac_try;;
21739
 
esac
21740
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21741
 
  (eval "$ac_try") 2>&5
 
21434
         { ac_try='test -z "$ac_c_werror_flag"
 
21435
                         || test ! -s conftest.err'
 
21436
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21437
  (eval $ac_try) 2>&5
21742
21438
  ac_status=$?
21743
21439
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21744
21440
  (exit $ac_status); }; } &&
21745
21441
         { ac_try='test -s conftest.$ac_objext'
21746
 
  { (case "(($ac_try" in
21747
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21748
 
  *) ac_try_echo=$ac_try;;
21749
 
esac
21750
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21751
 
  (eval "$ac_try") 2>&5
 
21442
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21443
  (eval $ac_try) 2>&5
21752
21444
  ac_status=$?
21753
21445
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21754
21446
  (exit $ac_status); }; }; then
21757
21449
  echo "$as_me: failed program was:" >&5
21758
21450
sed 's/^/| /' conftest.$ac_ext >&5
21759
21451
 
21760
 
        ac_cv_struct_tm=sys/time.h
21761
 
fi
21762
 
 
21763
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21764
 
fi
21765
 
{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21766
 
echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
 
21452
ac_cv_struct_tm=sys/time.h
 
21453
fi
 
21454
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21455
fi
 
21456
echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
 
21457
echo "${ECHO_T}$ac_cv_struct_tm" >&6
21767
21458
if test $ac_cv_struct_tm = sys/time.h; then
21768
21459
 
21769
21460
cat >>confdefs.h <<\_ACEOF
21773
21464
fi
21774
21465
 
21775
21466
 
21776
 
{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21777
 
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
 
21467
echo "$as_me:$LINENO: checking return type of signal handlers" >&5
 
21468
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
21778
21469
if test "${ac_cv_type_signal+set}" = set; then
21779
21470
  echo $ECHO_N "(cached) $ECHO_C" >&6
21780
21471
else
21786
21477
/* end confdefs.h.  */
21787
21478
#include <sys/types.h>
21788
21479
#include <signal.h>
 
21480
#ifdef signal
 
21481
# undef signal
 
21482
#endif
 
21483
#ifdef __cplusplus
 
21484
extern "C" void (*signal (int, void (*)(int)))(int);
 
21485
#else
 
21486
void (*signal ()) ();
 
21487
#endif
21789
21488
 
21790
21489
int
21791
21490
main ()
21792
21491
{
21793
 
return *(signal (0, 0)) (0) == 1;
 
21492
int i;
21794
21493
  ;
21795
21494
  return 0;
21796
21495
}
21797
21496
_ACEOF
21798
21497
rm -f conftest.$ac_objext
21799
 
if { (ac_try="$ac_compile"
21800
 
case "(($ac_try" in
21801
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21802
 
  *) ac_try_echo=$ac_try;;
21803
 
esac
21804
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21805
 
  (eval "$ac_compile") 2>conftest.er1
 
21498
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21499
  (eval $ac_compile) 2>conftest.er1
21806
21500
  ac_status=$?
21807
21501
  grep -v '^ *+' conftest.er1 >conftest.err
21808
21502
  rm -f conftest.er1
21809
21503
  cat conftest.err >&5
21810
21504
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21811
21505
  (exit $ac_status); } &&
21812
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21813
 
  { (case "(($ac_try" in
21814
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21815
 
  *) ac_try_echo=$ac_try;;
21816
 
esac
21817
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21818
 
  (eval "$ac_try") 2>&5
 
21506
         { ac_try='test -z "$ac_c_werror_flag"
 
21507
                         || test ! -s conftest.err'
 
21508
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21509
  (eval $ac_try) 2>&5
21819
21510
  ac_status=$?
21820
21511
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21821
21512
  (exit $ac_status); }; } &&
21822
21513
         { ac_try='test -s conftest.$ac_objext'
21823
 
  { (case "(($ac_try" in
21824
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21825
 
  *) ac_try_echo=$ac_try;;
21826
 
esac
21827
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21828
 
  (eval "$ac_try") 2>&5
 
21514
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21515
  (eval $ac_try) 2>&5
21829
21516
  ac_status=$?
21830
21517
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21831
21518
  (exit $ac_status); }; }; then
21832
 
  ac_cv_type_signal=int
 
21519
  ac_cv_type_signal=void
21833
21520
else
21834
21521
  echo "$as_me: failed program was:" >&5
21835
21522
sed 's/^/| /' conftest.$ac_ext >&5
21836
21523
 
21837
 
        ac_cv_type_signal=void
21838
 
fi
21839
 
 
21840
 
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21841
 
fi
21842
 
{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21843
 
echo "${ECHO_T}$ac_cv_type_signal" >&6; }
 
21524
ac_cv_type_signal=int
 
21525
fi
 
21526
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21527
fi
 
21528
echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
 
21529
echo "${ECHO_T}$ac_cv_type_signal" >&6
21844
21530
 
21845
21531
cat >>confdefs.h <<_ACEOF
21846
21532
#define RETSIGTYPE $ac_cv_type_signal
21851
21537
for ac_func in vprintf
21852
21538
do
21853
21539
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21854
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
21855
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21856
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
21540
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
21541
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
21542
if eval "test \"\${$as_ac_var+set}\" = set"; then
21857
21543
  echo $ECHO_N "(cached) $ECHO_C" >&6
21858
21544
else
21859
21545
  cat >conftest.$ac_ext <<_ACEOF
21879
21565
 
21880
21566
#undef $ac_func
21881
21567
 
21882
 
/* Override any GCC internal prototype to avoid an error.
21883
 
   Use char because int might match the return type of a GCC
 
21568
/* Override any gcc2 internal prototype to avoid an error.  */
 
21569
#ifdef __cplusplus
 
21570
extern "C"
 
21571
{
 
21572
#endif
 
21573
/* We use char because int might match the return type of a gcc2
21884
21574
   builtin and then its argument prototype would still apply.  */
21885
 
#ifdef __cplusplus
21886
 
extern "C"
21887
 
#endif
21888
21575
char $ac_func ();
21889
21576
/* The GNU C library defines this for functions which it implements
21890
21577
    to always fail with ENOSYS.  Some functions are actually named
21891
21578
    something starting with __ and the normal name is an alias.  */
21892
 
#if defined __stub_$ac_func || defined __stub___$ac_func
 
21579
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21893
21580
choke me
 
21581
#else
 
21582
char (*f) () = $ac_func;
 
21583
#endif
 
21584
#ifdef __cplusplus
 
21585
}
21894
21586
#endif
21895
21587
 
21896
21588
int
21897
21589
main ()
21898
21590
{
21899
 
return $ac_func ();
 
21591
return f != $ac_func;
21900
21592
  ;
21901
21593
  return 0;
21902
21594
}
21903
21595
_ACEOF
21904
21596
rm -f conftest.$ac_objext conftest$ac_exeext
21905
 
if { (ac_try="$ac_link"
21906
 
case "(($ac_try" in
21907
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21908
 
  *) ac_try_echo=$ac_try;;
21909
 
esac
21910
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21911
 
  (eval "$ac_link") 2>conftest.er1
 
21597
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21598
  (eval $ac_link) 2>conftest.er1
21912
21599
  ac_status=$?
21913
21600
  grep -v '^ *+' conftest.er1 >conftest.err
21914
21601
  rm -f conftest.er1
21915
21602
  cat conftest.err >&5
21916
21603
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21917
21604
  (exit $ac_status); } &&
21918
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21919
 
  { (case "(($ac_try" in
21920
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21921
 
  *) ac_try_echo=$ac_try;;
21922
 
esac
21923
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21924
 
  (eval "$ac_try") 2>&5
 
21605
         { ac_try='test -z "$ac_c_werror_flag"
 
21606
                         || test ! -s conftest.err'
 
21607
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21608
  (eval $ac_try) 2>&5
21925
21609
  ac_status=$?
21926
21610
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21927
21611
  (exit $ac_status); }; } &&
21928
21612
         { ac_try='test -s conftest$ac_exeext'
21929
 
  { (case "(($ac_try" in
21930
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21931
 
  *) ac_try_echo=$ac_try;;
21932
 
esac
21933
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21934
 
  (eval "$ac_try") 2>&5
 
21613
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21614
  (eval $ac_try) 2>&5
21935
21615
  ac_status=$?
21936
21616
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21937
21617
  (exit $ac_status); }; }; then
21940
21620
  echo "$as_me: failed program was:" >&5
21941
21621
sed 's/^/| /' conftest.$ac_ext >&5
21942
21622
 
21943
 
        eval "$as_ac_var=no"
 
21623
eval "$as_ac_var=no"
21944
21624
fi
21945
 
 
21946
 
rm -f core conftest.err conftest.$ac_objext \
 
21625
rm -f conftest.err conftest.$ac_objext \
21947
21626
      conftest$ac_exeext conftest.$ac_ext
21948
21627
fi
21949
 
ac_res=`eval echo '${'$as_ac_var'}'`
21950
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
21951
 
echo "${ECHO_T}$ac_res" >&6; }
 
21628
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
21629
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21952
21630
if test `eval echo '${'$as_ac_var'}'` = yes; then
21953
21631
  cat >>confdefs.h <<_ACEOF
21954
21632
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21955
21633
_ACEOF
21956
21634
 
21957
 
{ echo "$as_me:$LINENO: checking for _doprnt" >&5
21958
 
echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
 
21635
echo "$as_me:$LINENO: checking for _doprnt" >&5
 
21636
echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
21959
21637
if test "${ac_cv_func__doprnt+set}" = set; then
21960
21638
  echo $ECHO_N "(cached) $ECHO_C" >&6
21961
21639
else
21982
21660
 
21983
21661
#undef _doprnt
21984
21662
 
21985
 
/* Override any GCC internal prototype to avoid an error.
21986
 
   Use char because int might match the return type of a GCC
21987
 
   builtin and then its argument prototype would still apply.  */
 
21663
/* Override any gcc2 internal prototype to avoid an error.  */
21988
21664
#ifdef __cplusplus
21989
21665
extern "C"
 
21666
{
21990
21667
#endif
 
21668
/* We use char because int might match the return type of a gcc2
 
21669
   builtin and then its argument prototype would still apply.  */
21991
21670
char _doprnt ();
21992
21671
/* The GNU C library defines this for functions which it implements
21993
21672
    to always fail with ENOSYS.  Some functions are actually named
21994
21673
    something starting with __ and the normal name is an alias.  */
21995
 
#if defined __stub__doprnt || defined __stub____doprnt
 
21674
#if defined (__stub__doprnt) || defined (__stub____doprnt)
21996
21675
choke me
 
21676
#else
 
21677
char (*f) () = _doprnt;
 
21678
#endif
 
21679
#ifdef __cplusplus
 
21680
}
21997
21681
#endif
21998
21682
 
21999
21683
int
22000
21684
main ()
22001
21685
{
22002
 
return _doprnt ();
 
21686
return f != _doprnt;
22003
21687
  ;
22004
21688
  return 0;
22005
21689
}
22006
21690
_ACEOF
22007
21691
rm -f conftest.$ac_objext conftest$ac_exeext
22008
 
if { (ac_try="$ac_link"
22009
 
case "(($ac_try" in
22010
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22011
 
  *) ac_try_echo=$ac_try;;
22012
 
esac
22013
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22014
 
  (eval "$ac_link") 2>conftest.er1
 
21692
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21693
  (eval $ac_link) 2>conftest.er1
22015
21694
  ac_status=$?
22016
21695
  grep -v '^ *+' conftest.er1 >conftest.err
22017
21696
  rm -f conftest.er1
22018
21697
  cat conftest.err >&5
22019
21698
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22020
21699
  (exit $ac_status); } &&
22021
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22022
 
  { (case "(($ac_try" in
22023
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22024
 
  *) ac_try_echo=$ac_try;;
22025
 
esac
22026
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22027
 
  (eval "$ac_try") 2>&5
 
21700
         { ac_try='test -z "$ac_c_werror_flag"
 
21701
                         || test ! -s conftest.err'
 
21702
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21703
  (eval $ac_try) 2>&5
22028
21704
  ac_status=$?
22029
21705
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22030
21706
  (exit $ac_status); }; } &&
22031
21707
         { ac_try='test -s conftest$ac_exeext'
22032
 
  { (case "(($ac_try" in
22033
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22034
 
  *) ac_try_echo=$ac_try;;
22035
 
esac
22036
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22037
 
  (eval "$ac_try") 2>&5
 
21708
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21709
  (eval $ac_try) 2>&5
22038
21710
  ac_status=$?
22039
21711
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22040
21712
  (exit $ac_status); }; }; then
22043
21715
  echo "$as_me: failed program was:" >&5
22044
21716
sed 's/^/| /' conftest.$ac_ext >&5
22045
21717
 
22046
 
        ac_cv_func__doprnt=no
 
21718
ac_cv_func__doprnt=no
22047
21719
fi
22048
 
 
22049
 
rm -f core conftest.err conftest.$ac_objext \
 
21720
rm -f conftest.err conftest.$ac_objext \
22050
21721
      conftest$ac_exeext conftest.$ac_ext
22051
21722
fi
22052
 
{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
22053
 
echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
 
21723
echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
 
21724
echo "${ECHO_T}$ac_cv_func__doprnt" >&6
22054
21725
if test $ac_cv_func__doprnt = yes; then
22055
21726
 
22056
21727
cat >>confdefs.h <<\_ACEOF
22071
21742
for ac_func in select strstr fileno setpgrp daemon
22072
21743
do
22073
21744
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22074
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22075
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22076
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
21745
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
21746
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
21747
if eval "test \"\${$as_ac_var+set}\" = set"; then
22077
21748
  echo $ECHO_N "(cached) $ECHO_C" >&6
22078
21749
else
22079
21750
  cat >conftest.$ac_ext <<_ACEOF
22099
21770
 
22100
21771
#undef $ac_func
22101
21772
 
22102
 
/* Override any GCC internal prototype to avoid an error.
22103
 
   Use char because int might match the return type of a GCC
 
21773
/* Override any gcc2 internal prototype to avoid an error.  */
 
21774
#ifdef __cplusplus
 
21775
extern "C"
 
21776
{
 
21777
#endif
 
21778
/* We use char because int might match the return type of a gcc2
22104
21779
   builtin and then its argument prototype would still apply.  */
22105
 
#ifdef __cplusplus
22106
 
extern "C"
22107
 
#endif
22108
21780
char $ac_func ();
22109
21781
/* The GNU C library defines this for functions which it implements
22110
21782
    to always fail with ENOSYS.  Some functions are actually named
22111
21783
    something starting with __ and the normal name is an alias.  */
22112
 
#if defined __stub_$ac_func || defined __stub___$ac_func
 
21784
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22113
21785
choke me
 
21786
#else
 
21787
char (*f) () = $ac_func;
 
21788
#endif
 
21789
#ifdef __cplusplus
 
21790
}
22114
21791
#endif
22115
21792
 
22116
21793
int
22117
21794
main ()
22118
21795
{
22119
 
return $ac_func ();
 
21796
return f != $ac_func;
22120
21797
  ;
22121
21798
  return 0;
22122
21799
}
22123
21800
_ACEOF
22124
21801
rm -f conftest.$ac_objext conftest$ac_exeext
22125
 
if { (ac_try="$ac_link"
22126
 
case "(($ac_try" in
22127
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22128
 
  *) ac_try_echo=$ac_try;;
22129
 
esac
22130
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22131
 
  (eval "$ac_link") 2>conftest.er1
 
21802
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21803
  (eval $ac_link) 2>conftest.er1
22132
21804
  ac_status=$?
22133
21805
  grep -v '^ *+' conftest.er1 >conftest.err
22134
21806
  rm -f conftest.er1
22135
21807
  cat conftest.err >&5
22136
21808
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22137
21809
  (exit $ac_status); } &&
22138
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22139
 
  { (case "(($ac_try" in
22140
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22141
 
  *) ac_try_echo=$ac_try;;
22142
 
esac
22143
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22144
 
  (eval "$ac_try") 2>&5
 
21810
         { ac_try='test -z "$ac_c_werror_flag"
 
21811
                         || test ! -s conftest.err'
 
21812
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21813
  (eval $ac_try) 2>&5
22145
21814
  ac_status=$?
22146
21815
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22147
21816
  (exit $ac_status); }; } &&
22148
21817
         { ac_try='test -s conftest$ac_exeext'
22149
 
  { (case "(($ac_try" in
22150
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22151
 
  *) ac_try_echo=$ac_try;;
22152
 
esac
22153
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22154
 
  (eval "$ac_try") 2>&5
 
21818
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21819
  (eval $ac_try) 2>&5
22155
21820
  ac_status=$?
22156
21821
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22157
21822
  (exit $ac_status); }; }; then
22160
21825
  echo "$as_me: failed program was:" >&5
22161
21826
sed 's/^/| /' conftest.$ac_ext >&5
22162
21827
 
22163
 
        eval "$as_ac_var=no"
 
21828
eval "$as_ac_var=no"
22164
21829
fi
22165
 
 
22166
 
rm -f core conftest.err conftest.$ac_objext \
 
21830
rm -f conftest.err conftest.$ac_objext \
22167
21831
      conftest$ac_exeext conftest.$ac_ext
22168
21832
fi
22169
 
ac_res=`eval echo '${'$as_ac_var'}'`
22170
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
22171
 
echo "${ECHO_T}$ac_res" >&6; }
 
21833
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
21834
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22172
21835
if test `eval echo '${'$as_ac_var'}'` = yes; then
22173
21836
  cat >>confdefs.h <<_ACEOF
22174
21837
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22184
21847
for ac_func in getmsg poll setitimer strerror
22185
21848
do
22186
21849
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22187
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22188
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22189
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
21850
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
21851
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
21852
if eval "test \"\${$as_ac_var+set}\" = set"; then
22190
21853
  echo $ECHO_N "(cached) $ECHO_C" >&6
22191
21854
else
22192
21855
  cat >conftest.$ac_ext <<_ACEOF
22212
21875
 
22213
21876
#undef $ac_func
22214
21877
 
22215
 
/* Override any GCC internal prototype to avoid an error.
22216
 
   Use char because int might match the return type of a GCC
 
21878
/* Override any gcc2 internal prototype to avoid an error.  */
 
21879
#ifdef __cplusplus
 
21880
extern "C"
 
21881
{
 
21882
#endif
 
21883
/* We use char because int might match the return type of a gcc2
22217
21884
   builtin and then its argument prototype would still apply.  */
22218
 
#ifdef __cplusplus
22219
 
extern "C"
22220
 
#endif
22221
21885
char $ac_func ();
22222
21886
/* The GNU C library defines this for functions which it implements
22223
21887
    to always fail with ENOSYS.  Some functions are actually named
22224
21888
    something starting with __ and the normal name is an alias.  */
22225
 
#if defined __stub_$ac_func || defined __stub___$ac_func
 
21889
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22226
21890
choke me
 
21891
#else
 
21892
char (*f) () = $ac_func;
 
21893
#endif
 
21894
#ifdef __cplusplus
 
21895
}
22227
21896
#endif
22228
21897
 
22229
21898
int
22230
21899
main ()
22231
21900
{
22232
 
return $ac_func ();
 
21901
return f != $ac_func;
22233
21902
  ;
22234
21903
  return 0;
22235
21904
}
22236
21905
_ACEOF
22237
21906
rm -f conftest.$ac_objext conftest$ac_exeext
22238
 
if { (ac_try="$ac_link"
22239
 
case "(($ac_try" in
22240
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22241
 
  *) ac_try_echo=$ac_try;;
22242
 
esac
22243
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22244
 
  (eval "$ac_link") 2>conftest.er1
 
21907
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21908
  (eval $ac_link) 2>conftest.er1
22245
21909
  ac_status=$?
22246
21910
  grep -v '^ *+' conftest.er1 >conftest.err
22247
21911
  rm -f conftest.er1
22248
21912
  cat conftest.err >&5
22249
21913
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22250
21914
  (exit $ac_status); } &&
22251
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22252
 
  { (case "(($ac_try" in
22253
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22254
 
  *) ac_try_echo=$ac_try;;
22255
 
esac
22256
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22257
 
  (eval "$ac_try") 2>&5
 
21915
         { ac_try='test -z "$ac_c_werror_flag"
 
21916
                         || test ! -s conftest.err'
 
21917
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21918
  (eval $ac_try) 2>&5
22258
21919
  ac_status=$?
22259
21920
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22260
21921
  (exit $ac_status); }; } &&
22261
21922
         { ac_try='test -s conftest$ac_exeext'
22262
 
  { (case "(($ac_try" in
22263
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22264
 
  *) ac_try_echo=$ac_try;;
22265
 
esac
22266
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22267
 
  (eval "$ac_try") 2>&5
 
21923
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21924
  (eval $ac_try) 2>&5
22268
21925
  ac_status=$?
22269
21926
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22270
21927
  (exit $ac_status); }; }; then
22273
21930
  echo "$as_me: failed program was:" >&5
22274
21931
sed 's/^/| /' conftest.$ac_ext >&5
22275
21932
 
22276
 
        eval "$as_ac_var=no"
 
21933
eval "$as_ac_var=no"
22277
21934
fi
22278
 
 
22279
 
rm -f core conftest.err conftest.$ac_objext \
 
21935
rm -f conftest.err conftest.$ac_objext \
22280
21936
      conftest$ac_exeext conftest.$ac_ext
22281
21937
fi
22282
 
ac_res=`eval echo '${'$as_ac_var'}'`
22283
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
22284
 
echo "${ECHO_T}$ac_res" >&6; }
 
21938
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
21939
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22285
21940
if test `eval echo '${'$as_ac_var'}'` = yes; then
22286
21941
  cat >>confdefs.h <<_ACEOF
22287
21942
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22291
21946
done
22292
21947
 
22293
21948
 
22294
 
{ echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
22295
 
echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
 
21949
echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
 
21950
echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
22296
21951
if test "${ac_cv_func_setpgrp_void+set}" = set; then
22297
21952
  echo $ECHO_N "(cached) $ECHO_C" >&6
22298
21953
else
22307
21962
cat confdefs.h >>conftest.$ac_ext
22308
21963
cat >>conftest.$ac_ext <<_ACEOF
22309
21964
/* end confdefs.h.  */
22310
 
$ac_includes_default
 
21965
#if HAVE_UNISTD_H
 
21966
# include <unistd.h>
 
21967
#endif
 
21968
 
22311
21969
int
22312
21970
main ()
22313
21971
{
22314
21972
/* If this system has a BSD-style setpgrp which takes arguments,
22315
21973
  setpgrp(1, 1) will fail with ESRCH and return -1, in that case
22316
21974
  exit successfully. */
22317
 
  return setpgrp (1,1) != -1;
 
21975
  exit (setpgrp (1,1) == -1 ? 0 : 1);
22318
21976
  ;
22319
21977
  return 0;
22320
21978
}
22321
21979
_ACEOF
22322
21980
rm -f conftest$ac_exeext
22323
 
if { (ac_try="$ac_link"
22324
 
case "(($ac_try" in
22325
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22326
 
  *) ac_try_echo=$ac_try;;
22327
 
esac
22328
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22329
 
  (eval "$ac_link") 2>&5
 
21981
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21982
  (eval $ac_link) 2>&5
22330
21983
  ac_status=$?
22331
21984
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22332
21985
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22333
 
  { (case "(($ac_try" in
22334
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22335
 
  *) ac_try_echo=$ac_try;;
22336
 
esac
22337
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22338
 
  (eval "$ac_try") 2>&5
 
21986
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21987
  (eval $ac_try) 2>&5
22339
21988
  ac_status=$?
22340
21989
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22341
21990
  (exit $ac_status); }; }; then
22348
21997
( exit $ac_status )
22349
21998
ac_cv_func_setpgrp_void=yes
22350
21999
fi
22351
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22352
 
fi
22353
 
 
22354
 
 
22355
 
fi
22356
 
{ echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
22357
 
echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
 
22000
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
22001
fi
 
22002
fi
 
22003
echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
 
22004
echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
22358
22005
if test $ac_cv_func_setpgrp_void = yes; then
22359
22006
 
22360
22007
cat >>confdefs.h <<\_ACEOF
22368
22015
for ac_func in snprintf vsnprintf
22369
22016
do
22370
22017
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22371
 
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
22372
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22373
 
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
22018
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
22019
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
22020
if eval "test \"\${$as_ac_var+set}\" = set"; then
22374
22021
  echo $ECHO_N "(cached) $ECHO_C" >&6
22375
22022
else
22376
22023
  cat >conftest.$ac_ext <<_ACEOF
22396
22043
 
22397
22044
#undef $ac_func
22398
22045
 
22399
 
/* Override any GCC internal prototype to avoid an error.
22400
 
   Use char because int might match the return type of a GCC
 
22046
/* Override any gcc2 internal prototype to avoid an error.  */
 
22047
#ifdef __cplusplus
 
22048
extern "C"
 
22049
{
 
22050
#endif
 
22051
/* We use char because int might match the return type of a gcc2
22401
22052
   builtin and then its argument prototype would still apply.  */
22402
 
#ifdef __cplusplus
22403
 
extern "C"
22404
 
#endif
22405
22053
char $ac_func ();
22406
22054
/* The GNU C library defines this for functions which it implements
22407
22055
    to always fail with ENOSYS.  Some functions are actually named
22408
22056
    something starting with __ and the normal name is an alias.  */
22409
 
#if defined __stub_$ac_func || defined __stub___$ac_func
 
22057
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22410
22058
choke me
 
22059
#else
 
22060
char (*f) () = $ac_func;
 
22061
#endif
 
22062
#ifdef __cplusplus
 
22063
}
22411
22064
#endif
22412
22065
 
22413
22066
int
22414
22067
main ()
22415
22068
{
22416
 
return $ac_func ();
 
22069
return f != $ac_func;
22417
22070
  ;
22418
22071
  return 0;
22419
22072
}
22420
22073
_ACEOF
22421
22074
rm -f conftest.$ac_objext conftest$ac_exeext
22422
 
if { (ac_try="$ac_link"
22423
 
case "(($ac_try" in
22424
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22425
 
  *) ac_try_echo=$ac_try;;
22426
 
esac
22427
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22428
 
  (eval "$ac_link") 2>conftest.er1
 
22075
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22076
  (eval $ac_link) 2>conftest.er1
22429
22077
  ac_status=$?
22430
22078
  grep -v '^ *+' conftest.er1 >conftest.err
22431
22079
  rm -f conftest.er1
22432
22080
  cat conftest.err >&5
22433
22081
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22434
22082
  (exit $ac_status); } &&
22435
 
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22436
 
  { (case "(($ac_try" in
22437
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22438
 
  *) ac_try_echo=$ac_try;;
22439
 
esac
22440
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22441
 
  (eval "$ac_try") 2>&5
 
22083
         { ac_try='test -z "$ac_c_werror_flag"
 
22084
                         || test ! -s conftest.err'
 
22085
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22086
  (eval $ac_try) 2>&5
22442
22087
  ac_status=$?
22443
22088
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22444
22089
  (exit $ac_status); }; } &&
22445
22090
         { ac_try='test -s conftest$ac_exeext'
22446
 
  { (case "(($ac_try" in
22447
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22448
 
  *) ac_try_echo=$ac_try;;
22449
 
esac
22450
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22451
 
  (eval "$ac_try") 2>&5
 
22091
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22092
  (eval $ac_try) 2>&5
22452
22093
  ac_status=$?
22453
22094
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22454
22095
  (exit $ac_status); }; }; then
22457
22098
  echo "$as_me: failed program was:" >&5
22458
22099
sed 's/^/| /' conftest.$ac_ext >&5
22459
22100
 
22460
 
        eval "$as_ac_var=no"
 
22101
eval "$as_ac_var=no"
22461
22102
fi
22462
 
 
22463
 
rm -f core conftest.err conftest.$ac_objext \
 
22103
rm -f conftest.err conftest.$ac_objext \
22464
22104
      conftest$ac_exeext conftest.$ac_ext
22465
22105
fi
22466
 
ac_res=`eval echo '${'$as_ac_var'}'`
22467
 
               { echo "$as_me:$LINENO: result: $ac_res" >&5
22468
 
echo "${ECHO_T}$ac_res" >&6; }
 
22106
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
22107
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22469
22108
if test `eval echo '${'$as_ac_var'}'` = yes; then
22470
22109
  cat >>confdefs.h <<_ACEOF
22471
22110
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22474
22113
fi
22475
22114
done
22476
22115
 
22477
 
{ echo "$as_me:$LINENO: checking for working snprintf" >&5
22478
 
echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6; }
 
22116
echo "$as_me:$LINENO: checking for working snprintf" >&5
 
22117
echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6
22479
22118
if test "${ac_cv_have_working_snprintf+set}" = set; then
22480
22119
  echo $ECHO_N "(cached) $ECHO_C" >&6
22481
22120
else
22505
22144
}
22506
22145
_ACEOF
22507
22146
rm -f conftest$ac_exeext
22508
 
if { (ac_try="$ac_link"
22509
 
case "(($ac_try" in
22510
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22511
 
  *) ac_try_echo=$ac_try;;
22512
 
esac
22513
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22514
 
  (eval "$ac_link") 2>&5
 
22147
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22148
  (eval $ac_link) 2>&5
22515
22149
  ac_status=$?
22516
22150
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22517
22151
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22518
 
  { (case "(($ac_try" in
22519
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22520
 
  *) ac_try_echo=$ac_try;;
22521
 
esac
22522
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22523
 
  (eval "$ac_try") 2>&5
 
22152
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22153
  (eval $ac_try) 2>&5
22524
22154
  ac_status=$?
22525
22155
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22526
22156
  (exit $ac_status); }; }; then
22533
22163
( exit $ac_status )
22534
22164
ac_cv_have_working_snprintf=no
22535
22165
fi
22536
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22537
 
fi
22538
 
 
22539
 
 
22540
 
fi
22541
 
 
22542
 
{ echo "$as_me:$LINENO: result: $ac_cv_have_working_snprintf" >&5
22543
 
echo "${ECHO_T}$ac_cv_have_working_snprintf" >&6; }
22544
 
{ echo "$as_me:$LINENO: checking for working vsnprintf" >&5
22545
 
echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6; }
 
22166
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
22167
fi
 
22168
fi
 
22169
 
 
22170
echo "$as_me:$LINENO: result: $ac_cv_have_working_snprintf" >&5
 
22171
echo "${ECHO_T}$ac_cv_have_working_snprintf" >&6
 
22172
echo "$as_me:$LINENO: checking for working vsnprintf" >&5
 
22173
echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6
22546
22174
if test "${ac_cv_have_working_vsnprintf+set}" = set; then
22547
22175
  echo $ECHO_N "(cached) $ECHO_C" >&6
22548
22176
else
22583
22211
}
22584
22212
_ACEOF
22585
22213
rm -f conftest$ac_exeext
22586
 
if { (ac_try="$ac_link"
22587
 
case "(($ac_try" in
22588
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22589
 
  *) ac_try_echo=$ac_try;;
22590
 
esac
22591
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22592
 
  (eval "$ac_link") 2>&5
 
22214
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22215
  (eval $ac_link) 2>&5
22593
22216
  ac_status=$?
22594
22217
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22595
22218
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22596
 
  { (case "(($ac_try" in
22597
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22598
 
  *) ac_try_echo=$ac_try;;
22599
 
esac
22600
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22601
 
  (eval "$ac_try") 2>&5
 
22219
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22220
  (eval $ac_try) 2>&5
22602
22221
  ac_status=$?
22603
22222
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22604
22223
  (exit $ac_status); }; }; then
22611
22230
( exit $ac_status )
22612
22231
ac_cv_have_working_vsnprintf=no
22613
22232
fi
22614
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22615
 
fi
22616
 
 
22617
 
 
22618
 
fi
22619
 
 
22620
 
{ echo "$as_me:$LINENO: result: $ac_cv_have_working_vsnprintf" >&5
22621
 
echo "${ECHO_T}$ac_cv_have_working_vsnprintf" >&6; }
 
22233
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
22234
fi
 
22235
fi
 
22236
 
 
22237
echo "$as_me:$LINENO: result: $ac_cv_have_working_vsnprintf" >&5
 
22238
echo "${ECHO_T}$ac_cv_have_working_vsnprintf" >&6
22622
22239
if test x$ac_cv_have_working_snprintf$ac_cv_have_working_vsnprintf != "xyesyes"; then
22623
 
  case " $LIBOBJS " in
 
22240
  case $LIBOBJS in
 
22241
    "snprintf.$ac_objext"   | \
 
22242
  *" snprintf.$ac_objext"   | \
 
22243
    "snprintf.$ac_objext "* | \
22624
22244
  *" snprintf.$ac_objext "* ) ;;
22625
 
  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
22626
 
 ;;
 
22245
  *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" ;;
22627
22246
esac
22628
22247
 
22629
22248
  { echo "$as_me:$LINENO: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/." >&5
22636
22255
fi
22637
22256
 
22638
22257
 
22639
 
{ echo "$as_me:$LINENO: checking for sys_errlist declaration" >&5
22640
 
echo $ECHO_N "checking for sys_errlist declaration... $ECHO_C" >&6; }
 
22258
echo "$as_me:$LINENO: checking for sys_errlist declaration" >&5
 
22259
echo $ECHO_N "checking for sys_errlist declaration... $ECHO_C" >&6
22641
22260
if test "$cross_compiling" = yes; then
22642
22261
  :
22643
22262
else
22660
22279
 
22661
22280
_ACEOF
22662
22281
rm -f conftest$ac_exeext
22663
 
if { (ac_try="$ac_link"
22664
 
case "(($ac_try" in
22665
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22666
 
  *) ac_try_echo=$ac_try;;
22667
 
esac
22668
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22669
 
  (eval "$ac_link") 2>&5
 
22282
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22283
  (eval $ac_link) 2>&5
22670
22284
  ac_status=$?
22671
22285
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22672
22286
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22673
 
  { (case "(($ac_try" in
22674
 
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22675
 
  *) ac_try_echo=$ac_try;;
22676
 
esac
22677
 
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22678
 
  (eval "$ac_try") 2>&5
 
22287
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22288
  (eval $ac_try) 2>&5
22679
22289
  ac_status=$?
22680
22290
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22681
22291
  (exit $ac_status); }; }; then
22682
 
  { echo "$as_me:$LINENO: result: yes" >&5
22683
 
echo "${ECHO_T}yes" >&6; }
 
22292
  echo "$as_me:$LINENO: result: yes" >&5
 
22293
echo "${ECHO_T}yes" >&6
22684
22294
 
22685
22295
cat >>confdefs.h <<\_ACEOF
22686
22296
#define SYS_ERRLIST_DECLARED 1
22692
22302
sed 's/^/| /' conftest.$ac_ext >&5
22693
22303
 
22694
22304
( exit $ac_status )
22695
 
{ echo "$as_me:$LINENO: result: no" >&5
22696
 
echo "${ECHO_T}no" >&6; }
22697
 
fi
22698
 
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22699
 
fi
22700
 
 
22701
 
 
 
22305
echo "$as_me:$LINENO: result: no" >&5
 
22306
echo "${ECHO_T}no" >&6
 
22307
fi
 
22308
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
22309
fi
22702
22310
 
22703
22311
cat >confcache <<\_ACEOF
22704
22312
# This file is a shell script that caches the results of configure
22718
22326
 
22719
22327
# The following way of writing the cache mishandles newlines in values,
22720
22328
# but we know of no workaround that is simple, portable, and efficient.
22721
 
# So, we kill variables containing newlines.
 
22329
# So, don't put newlines in cache variables' values.
22722
22330
# Ultrix sh set writes to stderr and can't be redirected directly,
22723
22331
# and sets the high bit in the cache file unless we assign to the vars.
22724
 
(
22725
 
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22726
 
    eval ac_val=\$$ac_var
22727
 
    case $ac_val in #(
22728
 
    *${as_nl}*)
22729
 
      case $ac_var in #(
22730
 
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22731
 
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22732
 
      esac
22733
 
      case $ac_var in #(
22734
 
      _ | IFS | as_nl) ;; #(
22735
 
      *) $as_unset $ac_var ;;
22736
 
      esac ;;
22737
 
    esac
22738
 
  done
22739
 
 
 
22332
{
22740
22333
  (set) 2>&1 |
22741
 
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
22742
 
    *${as_nl}ac_space=\ *)
 
22334
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
22335
    *ac_space=\ *)
22743
22336
      # `set' does not quote correctly, so add quotes (double-quote
22744
22337
      # substitution turns \\\\ into \\, and sed turns \\ into \).
22745
22338
      sed -n \
22746
22339
        "s/'/'\\\\''/g;
22747
22340
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22748
 
      ;; #(
 
22341
      ;;
22749
22342
    *)
22750
22343
      # `set' quotes correctly as required by POSIX, so do not add quotes.
22751
 
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
22344
      sed -n \
 
22345
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22752
22346
      ;;
22753
 
    esac |
22754
 
    sort
22755
 
) |
 
22347
    esac;
 
22348
} |
22756
22349
  sed '
22757
 
     /^ac_cv_env_/b end
22758
22350
     t clear
22759
 
     :clear
 
22351
     : clear
22760
22352
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22761
22353
     t end
22762
 
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22763
 
     :end' >>confcache
22764
 
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22765
 
  if test -w "$cache_file"; then
22766
 
    test "x$cache_file" != "x/dev/null" &&
22767
 
      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22768
 
echo "$as_me: updating cache $cache_file" >&6;}
 
22354
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
22355
     : end' >>confcache
 
22356
if diff $cache_file confcache >/dev/null 2>&1; then :; else
 
22357
  if test -w $cache_file; then
 
22358
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22769
22359
    cat confcache >$cache_file
22770
22360
  else
22771
 
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22772
 
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
22361
    echo "not updating unwritable cache $cache_file"
22773
22362
  fi
22774
22363
fi
22775
22364
rm -f confcache
22778
22367
# Let make expand exec_prefix.
22779
22368
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22780
22369
 
 
22370
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
22371
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
22372
# trailing colons and then remove the whole line if VPATH becomes empty
 
22373
# (actually we leave an empty line to preserve line numbers).
 
22374
if test "x$srcdir" = x.; then
 
22375
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
22376
s/:*\$(srcdir):*/:/;
 
22377
s/:*\${srcdir}:*/:/;
 
22378
s/:*@srcdir@:*/:/;
 
22379
s/^\([^=]*=[     ]*\):*/\1/;
 
22380
s/:*$//;
 
22381
s/^[^=]*=[       ]*$//;
 
22382
}'
 
22383
fi
 
22384
 
22781
22385
DEFS=-DHAVE_CONFIG_H
22782
22386
 
22783
22387
ac_libobjs=
22784
22388
ac_ltlibobjs=
22785
22389
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22786
22390
  # 1. Remove the extension, and $U if already installed.
22787
 
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22788
 
  ac_i=`echo "$ac_i" | sed "$ac_script"`
22789
 
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22790
 
  #    will be set to the directory where LIBOBJS objects are built.
22791
 
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22792
 
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
 
22391
  ac_i=`echo "$ac_i" |
 
22392
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
22393
  # 2. Add them.
 
22394
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 
22395
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22793
22396
done
22794
22397
LIBOBJS=$ac_libobjs
22795
22398
 
22827
22430
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22828
22431
  # is contrary to our usage.  Disable this feature.
22829
22432
  alias -g '${1+"$@"}'='"$@"'
22830
 
  setopt NO_GLOB_SUBST
22831
 
else
22832
 
  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
 
22433
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
22434
  set -o posix
22833
22435
fi
22834
 
BIN_SH=xpg4; export BIN_SH # for Tru64
22835
22436
DUALCASE=1; export DUALCASE # for MKS sh
22836
22437
 
22837
 
 
22838
 
# PATH needs CR
22839
 
# Avoid depending upon Character Ranges.
22840
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22841
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22842
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22843
 
as_cr_digits='0123456789'
22844
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
22845
 
 
22846
 
# The user is always right.
22847
 
if test "${PATH_SEPARATOR+set}" != set; then
22848
 
  echo "#! /bin/sh" >conf$$.sh
22849
 
  echo  "exit 0"   >>conf$$.sh
22850
 
  chmod +x conf$$.sh
22851
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22852
 
    PATH_SEPARATOR=';'
22853
 
  else
22854
 
    PATH_SEPARATOR=:
22855
 
  fi
22856
 
  rm -f conf$$.sh
22857
 
fi
22858
 
 
22859
22438
# Support unset when possible.
22860
22439
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22861
22440
  as_unset=unset
22864
22443
fi
22865
22444
 
22866
22445
 
22867
 
# IFS
22868
 
# We need space, tab and new line, in precisely that order.  Quoting is
22869
 
# there to prevent editors from complaining about space-tab.
22870
 
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22871
 
# splitting by setting IFS to empty value.)
22872
 
as_nl='
22873
 
'
22874
 
IFS=" ""        $as_nl"
22875
 
 
22876
 
# Find who we are.  Look in the path if we contain no directory separator.
22877
 
case $0 in
22878
 
  *[\\/]* ) as_myself=$0 ;;
22879
 
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22880
 
for as_dir in $PATH
22881
 
do
22882
 
  IFS=$as_save_IFS
22883
 
  test -z "$as_dir" && as_dir=.
22884
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22885
 
done
22886
 
IFS=$as_save_IFS
22887
 
 
22888
 
     ;;
22889
 
esac
22890
 
# We did not find ourselves, most probably we were run as `sh COMMAND'
22891
 
# in which case we are not to be found in the path.
22892
 
if test "x$as_myself" = x; then
22893
 
  as_myself=$0
22894
 
fi
22895
 
if test ! -f "$as_myself"; then
22896
 
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22897
 
  { (exit 1); exit 1; }
22898
 
fi
22899
 
 
22900
22446
# Work around bugs in pre-3.0 UWIN ksh.
22901
 
for as_var in ENV MAIL MAILPATH
22902
 
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22903
 
done
 
22447
$as_unset ENV MAIL MAILPATH
22904
22448
PS1='$ '
22905
22449
PS2='> '
22906
22450
PS4='+ '
22914
22458
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22915
22459
    eval $as_var=C; export $as_var
22916
22460
  else
22917
 
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
22461
    $as_unset $as_var
22918
22462
  fi
22919
22463
done
22920
22464
 
22921
22465
# Required to use basename.
22922
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
22923
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
22466
if expr a : '\(a\)' >/dev/null 2>&1; then
22924
22467
  as_expr=expr
22925
22468
else
22926
22469
  as_expr=false
22927
22470
fi
22928
22471
 
22929
 
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
22472
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22930
22473
  as_basename=basename
22931
22474
else
22932
22475
  as_basename=false
22934
22477
 
22935
22478
 
22936
22479
# Name of the executable.
22937
 
as_me=`$as_basename -- "$0" ||
 
22480
as_me=`$as_basename "$0" ||
22938
22481
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22939
22482
         X"$0" : 'X\(//\)$' \| \
22940
 
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
22483
         X"$0" : 'X\(/\)$' \| \
 
22484
         .     : '\(.\)' 2>/dev/null ||
22941
22485
echo X/"$0" |
22942
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{
22943
 
            s//\1/
22944
 
            q
22945
 
          }
22946
 
          /^X\/\(\/\/\)$/{
22947
 
            s//\1/
22948
 
            q
22949
 
          }
22950
 
          /^X\/\(\/\).*/{
22951
 
            s//\1/
22952
 
            q
22953
 
          }
22954
 
          s/.*/./; q'`
22955
 
 
22956
 
# CDPATH.
22957
 
$as_unset CDPATH
22958
 
 
22959
 
 
22960
 
 
22961
 
  as_lineno_1=$LINENO
22962
 
  as_lineno_2=$LINENO
22963
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
22964
 
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
22486
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
22487
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
22488
          /^X\/\(\/\).*/{ s//\1/; q; }
 
22489
          s/.*/./; q'`
 
22490
 
 
22491
 
 
22492
# PATH needs CR, and LINENO needs CR and PATH.
 
22493
# Avoid depending upon Character Ranges.
 
22494
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
22495
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
22496
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
22497
as_cr_digits='0123456789'
 
22498
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
22499
 
 
22500
# The user is always right.
 
22501
if test "${PATH_SEPARATOR+set}" != set; then
 
22502
  echo "#! /bin/sh" >conf$$.sh
 
22503
  echo  "exit 0"   >>conf$$.sh
 
22504
  chmod +x conf$$.sh
 
22505
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
22506
    PATH_SEPARATOR=';'
 
22507
  else
 
22508
    PATH_SEPARATOR=:
 
22509
  fi
 
22510
  rm -f conf$$.sh
 
22511
fi
 
22512
 
 
22513
 
 
22514
  as_lineno_1=$LINENO
 
22515
  as_lineno_2=$LINENO
 
22516
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
22517
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
22518
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
22519
  # Find who we are.  Look in the path if we contain no path at all
 
22520
  # relative or not.
 
22521
  case $0 in
 
22522
    *[\\/]* ) as_myself=$0 ;;
 
22523
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
22524
for as_dir in $PATH
 
22525
do
 
22526
  IFS=$as_save_IFS
 
22527
  test -z "$as_dir" && as_dir=.
 
22528
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
22529
done
 
22530
 
 
22531
       ;;
 
22532
  esac
 
22533
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
22534
  # in which case we are not to be found in the path.
 
22535
  if test "x$as_myself" = x; then
 
22536
    as_myself=$0
 
22537
  fi
 
22538
  if test ! -f "$as_myself"; then
 
22539
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
 
22540
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
 
22541
   { (exit 1); exit 1; }; }
 
22542
  fi
 
22543
  case $CONFIG_SHELL in
 
22544
  '')
 
22545
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
22546
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
22547
do
 
22548
  IFS=$as_save_IFS
 
22549
  test -z "$as_dir" && as_dir=.
 
22550
  for as_base in sh bash ksh sh5; do
 
22551
         case $as_dir in
 
22552
         /*)
 
22553
           if ("$as_dir/$as_base" -c '
 
22554
  as_lineno_1=$LINENO
 
22555
  as_lineno_2=$LINENO
 
22556
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
22557
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
22558
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
22559
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
22560
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
22561
             CONFIG_SHELL=$as_dir/$as_base
 
22562
             export CONFIG_SHELL
 
22563
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
22564
           fi;;
 
22565
         esac
 
22566
       done
 
22567
done
 
22568
;;
 
22569
  esac
22965
22570
 
22966
22571
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22967
22572
  # uniformly replaced by the line number.  The first 'sed' inserts a
22968
 
  # line-number line after each line using $LINENO; the second 'sed'
22969
 
  # does the real work.  The second script uses 'N' to pair each
22970
 
  # line-number line with the line containing $LINENO, and appends
22971
 
  # trailing '-' during substitution so that $LINENO is not a special
22972
 
  # case at line end.
 
22573
  # line-number line before each line; the second 'sed' does the real
 
22574
  # work.  The second script uses 'N' to pair each line-number line
 
22575
  # with the numbered line, and appends trailing '-' during
 
22576
  # substitution so that $LINENO is not a special case at line end.
22973
22577
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22974
 
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
22975
 
  # E. McMahon (1931-1989) for sed's syntax.  :-)
22976
 
  sed -n '
22977
 
    p
22978
 
    /[$]LINENO/=
22979
 
  ' <$as_myself |
 
22578
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
22579
  sed '=' <$as_myself |
22980
22580
    sed '
22981
 
      s/[$]LINENO.*/&-/
22982
 
      t lineno
22983
 
      b
22984
 
      :lineno
22985
22581
      N
22986
 
      :loop
22987
 
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
22582
      s,$,-,
 
22583
      : loop
 
22584
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22988
22585
      t loop
22989
 
      s/-\n.*//
 
22586
      s,-$,,
 
22587
      s,^['$as_cr_digits']*\n,,
22990
22588
    ' >$as_me.lineno &&
22991
 
  chmod +x "$as_me.lineno" ||
22992
 
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
22589
  chmod +x $as_me.lineno ||
 
22590
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
 
22591
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22993
22592
   { (exit 1); exit 1; }; }
22994
22593
 
22995
22594
  # Don't try to exec as it changes $[0], causing all sort of problems
22996
22595
  # (the dirname of $[0] is not the place where we might find the
22997
 
  # original and so on.  Autoconf is especially sensitive to this).
22998
 
  . "./$as_me.lineno"
 
22596
  # original and so on.  Autoconf is especially sensible to this).
 
22597
  . ./$as_me.lineno
22999
22598
  # Exit status is that of the last command.
23000
22599
  exit
23001
22600
}
23002
22601
 
23003
22602
 
23004
 
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23005
 
  as_dirname=dirname
23006
 
else
23007
 
  as_dirname=false
23008
 
fi
23009
 
 
23010
 
ECHO_C= ECHO_N= ECHO_T=
23011
 
case `echo -n x` in
23012
 
-n*)
23013
 
  case `echo 'x\c'` in
23014
 
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
23015
 
  *)   ECHO_C='\c';;
23016
 
  esac;;
23017
 
*)
23018
 
  ECHO_N='-n';;
 
22603
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
22604
  *c*,-n*) ECHO_N= ECHO_C='
 
22605
' ECHO_T='      ' ;;
 
22606
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
22607
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
23019
22608
esac
23020
22609
 
23021
 
if expr a : '\(a\)' >/dev/null 2>&1 &&
23022
 
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
22610
if expr a : '\(a\)' >/dev/null 2>&1; then
23023
22611
  as_expr=expr
23024
22612
else
23025
22613
  as_expr=false
23026
22614
fi
23027
22615
 
23028
22616
rm -f conf$$ conf$$.exe conf$$.file
23029
 
if test -d conf$$.dir; then
23030
 
  rm -f conf$$.dir/conf$$.file
23031
 
else
23032
 
  rm -f conf$$.dir
23033
 
  mkdir conf$$.dir
23034
 
fi
23035
22617
echo >conf$$.file
23036
22618
if ln -s conf$$.file conf$$ 2>/dev/null; then
23037
 
  as_ln_s='ln -s'
23038
 
  # ... but there are two gotchas:
23039
 
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23040
 
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23041
 
  # In both cases, we have to default to `cp -p'.
23042
 
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
22619
  # We could just check for DJGPP; but this test a) works b) is more generic
 
22620
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
22621
  if test -f conf$$.exe; then
 
22622
    # Don't use ln at all; we don't have any links
23043
22623
    as_ln_s='cp -p'
 
22624
  else
 
22625
    as_ln_s='ln -s'
 
22626
  fi
23044
22627
elif ln conf$$.file conf$$ 2>/dev/null; then
23045
22628
  as_ln_s=ln
23046
22629
else
23047
22630
  as_ln_s='cp -p'
23048
22631
fi
23049
 
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23050
 
rmdir conf$$.dir 2>/dev/null
 
22632
rm -f conf$$ conf$$.exe conf$$.file
23051
22633
 
23052
22634
if mkdir -p . 2>/dev/null; then
23053
22635
  as_mkdir_p=:
23056
22638
  as_mkdir_p=false
23057
22639
fi
23058
22640
 
23059
 
# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
23060
 
# systems may use methods other than mode bits to determine executability.
23061
 
cat >conf$$.file <<_ASEOF
23062
 
#! /bin/sh
23063
 
exit 0
23064
 
_ASEOF
23065
 
chmod +x conf$$.file
23066
 
if test -x conf$$.file >/dev/null 2>&1; then
23067
 
  as_executable_p="test -x"
23068
 
else
23069
 
  as_executable_p=:
23070
 
fi
23071
 
rm -f conf$$.file
 
22641
as_executable_p="test -f"
23072
22642
 
23073
22643
# Sed expression to map a string onto a valid CPP name.
23074
22644
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23077
22647
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23078
22648
 
23079
22649
 
 
22650
# IFS
 
22651
# We need space, tab and new line, in precisely that order.
 
22652
as_nl='
 
22653
'
 
22654
IFS="   $as_nl"
 
22655
 
 
22656
# CDPATH.
 
22657
$as_unset CDPATH
 
22658
 
23080
22659
exec 6>&1
23081
22660
 
23082
 
# Save the log message, to keep $[0] and so on meaningful, and to
 
22661
# Open the log real soon, to keep \$[0] and so on meaningful, and to
23083
22662
# report actual input values of CONFIG_FILES etc. instead of their
23084
 
# values after options handling.
23085
 
ac_log="
 
22663
# values after options handling.  Logging --version etc. is OK.
 
22664
exec 5>>config.log
 
22665
{
 
22666
  echo
 
22667
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
22668
## Running $as_me. ##
 
22669
_ASBOX
 
22670
} >&5
 
22671
cat >&5 <<_CSEOF
 
22672
 
23086
22673
This file was extended by nas $as_me 1.6, which was
23087
 
generated by GNU Autoconf 2.60.  Invocation command line was
 
22674
generated by GNU Autoconf 2.59.  Invocation command line was
23088
22675
 
23089
22676
  CONFIG_FILES    = $CONFIG_FILES
23090
22677
  CONFIG_HEADERS  = $CONFIG_HEADERS
23092
22679
  CONFIG_COMMANDS = $CONFIG_COMMANDS
23093
22680
  $ $0 $@
23094
22681
 
23095
 
on `(hostname || uname -n) 2>/dev/null | sed 1q`
23096
 
"
23097
 
 
 
22682
_CSEOF
 
22683
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
22684
echo >&5
23098
22685
_ACEOF
23099
22686
 
23100
 
cat >>$CONFIG_STATUS <<_ACEOF
23101
22687
# Files that config.status was made for.
23102
 
config_headers="$ac_config_headers"
23103
 
 
23104
 
_ACEOF
 
22688
if test -n "$ac_config_files"; then
 
22689
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
 
22690
fi
 
22691
 
 
22692
if test -n "$ac_config_headers"; then
 
22693
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 
22694
fi
 
22695
 
 
22696
if test -n "$ac_config_links"; then
 
22697
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 
22698
fi
 
22699
 
 
22700
if test -n "$ac_config_commands"; then
 
22701
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 
22702
fi
23105
22703
 
23106
22704
cat >>$CONFIG_STATUS <<\_ACEOF
 
22705
 
23107
22706
ac_cs_usage="\
23108
22707
\`$as_me' instantiates files from templates according to the
23109
22708
current configuration.
23122
22721
$config_headers
23123
22722
 
23124
22723
Report bugs to <bug-autoconf@gnu.org>."
 
22724
_ACEOF
23125
22725
 
23126
 
_ACEOF
23127
22726
cat >>$CONFIG_STATUS <<_ACEOF
23128
22727
ac_cs_version="\\
23129
22728
nas config.status 1.6
23130
 
configured by $0, generated by GNU Autoconf 2.60,
23131
 
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
 
22729
configured by $0, generated by GNU Autoconf 2.59,
 
22730
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23132
22731
 
23133
 
Copyright (C) 2006 Free Software Foundation, Inc.
 
22732
Copyright (C) 2003 Free Software Foundation, Inc.
23134
22733
This config.status script is free software; the Free Software Foundation
23135
22734
gives unlimited permission to copy, distribute and modify it."
23136
 
 
23137
 
ac_pwd='$ac_pwd'
23138
 
srcdir='$srcdir'
 
22735
srcdir=$srcdir
23139
22736
_ACEOF
23140
22737
 
23141
22738
cat >>$CONFIG_STATUS <<\_ACEOF
23146
22743
do
23147
22744
  case $1 in
23148
22745
  --*=*)
23149
 
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
23150
 
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
22746
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 
22747
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23151
22748
    ac_shift=:
23152
22749
    ;;
23153
 
  *)
 
22750
  -*)
23154
22751
    ac_option=$1
23155
22752
    ac_optarg=$2
23156
22753
    ac_shift=shift
23157
22754
    ;;
 
22755
  *) # This is not an option, so the user has probably given explicit
 
22756
     # arguments.
 
22757
     ac_option=$1
 
22758
     ac_need_defaults=false;;
23158
22759
  esac
23159
22760
 
23160
22761
  case $ac_option in
23161
22762
  # Handling of the options.
 
22763
_ACEOF
 
22764
cat >>$CONFIG_STATUS <<\_ACEOF
23162
22765
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23163
22766
    ac_cs_recheck=: ;;
23164
 
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23165
 
    echo "$ac_cs_version"; exit ;;
23166
 
  --debug | --debu | --deb | --de | --d | -d )
 
22767
  --version | --vers* | -V )
 
22768
    echo "$ac_cs_version"; exit 0 ;;
 
22769
  --he | --h)
 
22770
    # Conflict between --help and --header
 
22771
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
 
22772
Try \`$0 --help' for more information." >&5
 
22773
echo "$as_me: error: ambiguous option: $1
 
22774
Try \`$0 --help' for more information." >&2;}
 
22775
   { (exit 1); exit 1; }; };;
 
22776
  --help | --hel | -h )
 
22777
    echo "$ac_cs_usage"; exit 0 ;;
 
22778
  --debug | --d* | -d )
23167
22779
    debug=: ;;
 
22780
  --file | --fil | --fi | --f )
 
22781
    $ac_shift
 
22782
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
22783
    ac_need_defaults=false;;
23168
22784
  --header | --heade | --head | --hea )
23169
22785
    $ac_shift
23170
22786
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23171
22787
    ac_need_defaults=false;;
23172
 
  --he | --h)
23173
 
    # Conflict between --help and --header
23174
 
    { echo "$as_me: error: ambiguous option: $1
23175
 
Try \`$0 --help' for more information." >&2
23176
 
   { (exit 1); exit 1; }; };;
23177
 
  --help | --hel | -h )
23178
 
    echo "$ac_cs_usage"; exit ;;
23179
22788
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23180
22789
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
23181
22790
    ac_cs_silent=: ;;
23182
22791
 
23183
22792
  # This is an error.
23184
 
  -*) { echo "$as_me: error: unrecognized option: $1
23185
 
Try \`$0 --help' for more information." >&2
 
22793
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
 
22794
Try \`$0 --help' for more information." >&5
 
22795
echo "$as_me: error: unrecognized option: $1
 
22796
Try \`$0 --help' for more information." >&2;}
23186
22797
   { (exit 1); exit 1; }; } ;;
23187
22798
 
23188
 
  *) ac_config_targets="$ac_config_targets $1"
23189
 
     ac_need_defaults=false ;;
 
22799
  *) ac_config_targets="$ac_config_targets $1" ;;
23190
22800
 
23191
22801
  esac
23192
22802
  shift
23202
22812
_ACEOF
23203
22813
cat >>$CONFIG_STATUS <<_ACEOF
23204
22814
if \$ac_cs_recheck; then
23205
 
  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23206
 
  CONFIG_SHELL=$SHELL
23207
 
  export CONFIG_SHELL
23208
 
  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
22815
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
22816
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23209
22817
fi
23210
22818
 
23211
22819
_ACEOF
23212
 
cat >>$CONFIG_STATUS <<\_ACEOF
23213
 
exec 5>>config.log
23214
 
{
23215
 
  echo
23216
 
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23217
 
## Running $as_me. ##
23218
 
_ASBOX
23219
 
  echo "$ac_log"
23220
 
} >&5
23221
 
 
23222
 
_ACEOF
23223
 
cat >>$CONFIG_STATUS <<_ACEOF
23224
 
_ACEOF
23225
 
 
23226
 
cat >>$CONFIG_STATUS <<\_ACEOF
23227
 
 
23228
 
# Handling of arguments.
 
22820
 
 
22821
 
 
22822
 
 
22823
 
 
22824
 
 
22825
cat >>$CONFIG_STATUS <<\_ACEOF
23229
22826
for ac_config_target in $ac_config_targets
23230
22827
do
23231
 
  case $ac_config_target in
23232
 
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23233
 
 
 
22828
  case "$ac_config_target" in
 
22829
  # Handling of arguments.
 
22830
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23234
22831
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23235
22832
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23236
22833
   { (exit 1); exit 1; }; };;
23237
22834
  esac
23238
22835
done
23239
22836
 
23240
 
 
23241
22837
# If the user did not use the arguments to specify the items to instantiate,
23242
22838
# then the envvar interface is used.  Set only those that are not.
23243
22839
# We use the long form for the default assignment because of an extremely
23247
22843
fi
23248
22844
 
23249
22845
# Have a temporary directory for convenience.  Make it in the build tree
23250
 
# simply because there is no reason against having it here, and in addition,
 
22846
# simply because there is no reason to put it here, and in addition,
23251
22847
# creating and moving files from /tmp can sometimes cause problems.
23252
 
# Hook for its removal unless debugging.
23253
 
# Note that there is a small window in which the directory will not be cleaned:
23254
 
# after its creation but before its name has been assigned to `$tmp'.
 
22848
# Create a temporary directory, and hook for its removal unless debugging.
23255
22849
$debug ||
23256
22850
{
23257
 
  tmp=
23258
 
  trap 'exit_status=$?
23259
 
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23260
 
' 0
 
22851
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23261
22852
  trap '{ (exit 1); exit 1; }' 1 2 13 15
23262
22853
}
 
22854
 
23263
22855
# Create a (secure) tmp directory for tmp files.
23264
22856
 
23265
22857
{
23266
 
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
22858
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23267
22859
  test -n "$tmp" && test -d "$tmp"
23268
22860
}  ||
23269
22861
{
23270
 
  tmp=./conf$$-$RANDOM
23271
 
  (umask 077 && mkdir "$tmp")
 
22862
  tmp=./confstat$$-$RANDOM
 
22863
  (umask 077 && mkdir $tmp)
23272
22864
} ||
23273
22865
{
23274
22866
   echo "$me: cannot create a temporary directory in ." >&2
23275
22867
   { (exit 1); exit 1; }
23276
22868
}
23277
22869
 
23278
 
 
23279
 
for ac_tag in    :H $CONFIG_HEADERS
23280
 
do
23281
 
  case $ac_tag in
23282
 
  :[FHLC]) ac_mode=$ac_tag; continue;;
23283
 
  esac
23284
 
  case $ac_mode$ac_tag in
23285
 
  :[FHL]*:*);;
23286
 
  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23287
 
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23288
 
   { (exit 1); exit 1; }; };;
23289
 
  :[FH]-) ac_tag=-:-;;
23290
 
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23291
 
  esac
23292
 
  ac_save_IFS=$IFS
23293
 
  IFS=:
23294
 
  set x $ac_tag
23295
 
  IFS=$ac_save_IFS
23296
 
  shift
23297
 
  ac_file=$1
23298
 
  shift
23299
 
 
23300
 
  case $ac_mode in
23301
 
  :L) ac_source=$1;;
23302
 
  :[FH])
23303
 
    ac_file_inputs=
23304
 
    for ac_f
23305
 
    do
23306
 
      case $ac_f in
23307
 
      -) ac_f="$tmp/stdin";;
23308
 
      *) # Look for the file first in the build tree, then in the source tree
23309
 
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
23310
 
         # because $ac_f cannot contain `:'.
23311
 
         test -f "$ac_f" ||
23312
 
           case $ac_f in
23313
 
           [\\/$]*) false;;
23314
 
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23315
 
           esac ||
23316
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23317
 
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23318
 
   { (exit 1); exit 1; }; };;
23319
 
      esac
23320
 
      ac_file_inputs="$ac_file_inputs $ac_f"
23321
 
    done
23322
 
 
23323
 
    # Let's still pretend it is `configure' which instantiates (i.e., don't
23324
 
    # use $as_me), people would be surprised to read:
23325
 
    #    /* config.h.  Generated by config.status.  */
23326
 
    configure_input="Generated from "`IFS=:
23327
 
          echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23328
 
    if test x"$ac_file" != x-; then
23329
 
      configure_input="$ac_file.  $configure_input"
23330
 
      { echo "$as_me:$LINENO: creating $ac_file" >&5
 
22870
_ACEOF
 
22871
 
 
22872
cat >>$CONFIG_STATUS <<\_ACEOF
 
22873
 
 
22874
#
 
22875
# CONFIG_HEADER section.
 
22876
#
 
22877
 
 
22878
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
 
22879
# NAME is the cpp macro being defined and VALUE is the value it is being given.
 
22880
#
 
22881
# ac_d sets the value in "#define NAME VALUE" lines.
 
22882
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
 
22883
ac_dB='[         ].*$,\1#\2'
 
22884
ac_dC=' '
 
22885
ac_dD=',;t'
 
22886
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 
22887
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
22888
ac_uB='$,\1#\2define\3'
 
22889
ac_uC=' '
 
22890
ac_uD=',;t'
 
22891
 
 
22892
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
 
22893
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
22894
  case $ac_file in
 
22895
  - | *:- | *:-:* ) # input from stdin
 
22896
        cat >$tmp/stdin
 
22897
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
22898
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
22899
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
22900
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
22901
  * )   ac_file_in=$ac_file.in ;;
 
22902
  esac
 
22903
 
 
22904
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23331
22905
echo "$as_me: creating $ac_file" >&6;}
23332
 
    fi
23333
 
 
23334
 
    case $ac_tag in
23335
 
    *:-:* | *:-) cat >"$tmp/stdin";;
23336
 
    esac
23337
 
    ;;
23338
 
  esac
23339
 
 
23340
 
  ac_dir=`$as_dirname -- "$ac_file" ||
 
22906
 
 
22907
  # First look for the input files in the build tree, otherwise in the
 
22908
  # src tree.
 
22909
  ac_file_inputs=`IFS=:
 
22910
    for f in $ac_file_in; do
 
22911
      case $f in
 
22912
      -) echo $tmp/stdin ;;
 
22913
      [\\/$]*)
 
22914
         # Absolute (can't be DOS-style, as IFS=:)
 
22915
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
22916
echo "$as_me: error: cannot find input file: $f" >&2;}
 
22917
   { (exit 1); exit 1; }; }
 
22918
         # Do quote $f, to prevent DOS paths from being IFS'd.
 
22919
         echo "$f";;
 
22920
      *) # Relative
 
22921
         if test -f "$f"; then
 
22922
           # Build tree
 
22923
           echo "$f"
 
22924
         elif test -f "$srcdir/$f"; then
 
22925
           # Source tree
 
22926
           echo "$srcdir/$f"
 
22927
         else
 
22928
           # /dev/null tree
 
22929
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
22930
echo "$as_me: error: cannot find input file: $f" >&2;}
 
22931
   { (exit 1); exit 1; }; }
 
22932
         fi;;
 
22933
      esac
 
22934
    done` || { (exit 1); exit 1; }
 
22935
  # Remove the trailing spaces.
 
22936
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
 
22937
 
 
22938
_ACEOF
 
22939
 
 
22940
# Transform confdefs.h into two sed scripts, `conftest.defines' and
 
22941
# `conftest.undefs', that substitutes the proper values into
 
22942
# config.h.in to produce config.h.  The first handles `#define'
 
22943
# templates, and the second `#undef' templates.
 
22944
# And first: Protect against being on the right side of a sed subst in
 
22945
# config.status.  Protect against being in an unquoted here document
 
22946
# in config.status.
 
22947
rm -f conftest.defines conftest.undefs
 
22948
# Using a here document instead of a string reduces the quoting nightmare.
 
22949
# Putting comments in sed scripts is not portable.
 
22950
#
 
22951
# `end' is used to avoid that the second main sed command (meant for
 
22952
# 0-ary CPP macros) applies to n-ary macro definitions.
 
22953
# See the Autoconf documentation for `clear'.
 
22954
cat >confdef2sed.sed <<\_ACEOF
 
22955
s/[\\&,]/\\&/g
 
22956
s,[\\$`],\\&,g
 
22957
t clear
 
22958
: clear
 
22959
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
 
22960
t end
 
22961
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
 
22962
: end
 
22963
_ACEOF
 
22964
# If some macros were called several times there might be several times
 
22965
# the same #defines, which is useless.  Nevertheless, we may not want to
 
22966
# sort them, since we want the *last* AC-DEFINE to be honored.
 
22967
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
 
22968
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
 
22969
rm -f confdef2sed.sed
 
22970
 
 
22971
# This sed command replaces #undef with comments.  This is necessary, for
 
22972
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
22973
# on some systems where configure will not decide to define it.
 
22974
cat >>conftest.undefs <<\_ACEOF
 
22975
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
22976
_ACEOF
 
22977
 
 
22978
# Break up conftest.defines because some shells have a limit on the size
 
22979
# of here documents, and old seds have small limits too (100 cmds).
 
22980
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
 
22981
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
 
22982
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
 
22983
echo '  :' >>$CONFIG_STATUS
 
22984
rm -f conftest.tail
 
22985
while grep . conftest.defines >/dev/null
 
22986
do
 
22987
  # Write a limited-size here document to $tmp/defines.sed.
 
22988
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
 
22989
  # Speed up: don't consider the non `#define' lines.
 
22990
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
 
22991
  # Work around the forget-to-reset-the-flag bug.
 
22992
  echo 't clr' >>$CONFIG_STATUS
 
22993
  echo ': clr' >>$CONFIG_STATUS
 
22994
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
 
22995
  echo 'CEOF
 
22996
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
 
22997
  rm -f $tmp/in
 
22998
  mv $tmp/out $tmp/in
 
22999
' >>$CONFIG_STATUS
 
23000
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
 
23001
  rm -f conftest.defines
 
23002
  mv conftest.tail conftest.defines
 
23003
done
 
23004
rm -f conftest.defines
 
23005
echo '  fi # grep' >>$CONFIG_STATUS
 
23006
echo >>$CONFIG_STATUS
 
23007
 
 
23008
# Break up conftest.undefs because some shells have a limit on the size
 
23009
# of here documents, and old seds have small limits too (100 cmds).
 
23010
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
 
23011
rm -f conftest.tail
 
23012
while grep . conftest.undefs >/dev/null
 
23013
do
 
23014
  # Write a limited-size here document to $tmp/undefs.sed.
 
23015
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
 
23016
  # Speed up: don't consider the non `#undef'
 
23017
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
 
23018
  # Work around the forget-to-reset-the-flag bug.
 
23019
  echo 't clr' >>$CONFIG_STATUS
 
23020
  echo ': clr' >>$CONFIG_STATUS
 
23021
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
 
23022
  echo 'CEOF
 
23023
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
 
23024
  rm -f $tmp/in
 
23025
  mv $tmp/out $tmp/in
 
23026
' >>$CONFIG_STATUS
 
23027
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
 
23028
  rm -f conftest.undefs
 
23029
  mv conftest.tail conftest.undefs
 
23030
done
 
23031
rm -f conftest.undefs
 
23032
 
 
23033
cat >>$CONFIG_STATUS <<\_ACEOF
 
23034
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
23035
  # use $as_me), people would be surprised to read:
 
23036
  #    /* config.h.  Generated by config.status.  */
 
23037
  if test x"$ac_file" = x-; then
 
23038
    echo "/* Generated by configure.  */" >$tmp/config.h
 
23039
  else
 
23040
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
 
23041
  fi
 
23042
  cat $tmp/in >>$tmp/config.h
 
23043
  rm -f $tmp/in
 
23044
  if test x"$ac_file" != x-; then
 
23045
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
 
23046
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
23047
echo "$as_me: $ac_file is unchanged" >&6;}
 
23048
    else
 
23049
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23341
23050
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23342
23051
         X"$ac_file" : 'X\(//\)[^/]' \| \
23343
23052
         X"$ac_file" : 'X\(//\)$' \| \
23344
 
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
23053
         X"$ac_file" : 'X\(/\)' \| \
 
23054
         .     : '\(.\)' 2>/dev/null ||
23345
23055
echo X"$ac_file" |
23346
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23347
 
            s//\1/
23348
 
            q
23349
 
          }
23350
 
          /^X\(\/\/\)[^/].*/{
23351
 
            s//\1/
23352
 
            q
23353
 
          }
23354
 
          /^X\(\/\/\)$/{
23355
 
            s//\1/
23356
 
            q
23357
 
          }
23358
 
          /^X\(\/\).*/{
23359
 
            s//\1/
23360
 
            q
23361
 
          }
23362
 
          s/.*/./; q'`
23363
 
  { as_dir="$ac_dir"
23364
 
  case $as_dir in #(
23365
 
  -*) as_dir=./$as_dir;;
23366
 
  esac
23367
 
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
23056
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
23057
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
23058
          /^X\(\/\/\)$/{ s//\1/; q; }
 
23059
          /^X\(\/\).*/{ s//\1/; q; }
 
23060
          s/.*/./; q'`
 
23061
      { if $as_mkdir_p; then
 
23062
    mkdir -p "$ac_dir"
 
23063
  else
 
23064
    as_dir="$ac_dir"
23368
23065
    as_dirs=
23369
 
    while :; do
23370
 
      case $as_dir in #(
23371
 
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23372
 
      *) as_qdir=$as_dir;;
23373
 
      esac
23374
 
      as_dirs="'$as_qdir' $as_dirs"
23375
 
      as_dir=`$as_dirname -- "$as_dir" ||
 
23066
    while test ! -d "$as_dir"; do
 
23067
      as_dirs="$as_dir $as_dirs"
 
23068
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
23376
23069
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23377
23070
         X"$as_dir" : 'X\(//\)[^/]' \| \
23378
23071
         X"$as_dir" : 'X\(//\)$' \| \
23379
 
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
23072
         X"$as_dir" : 'X\(/\)' \| \
 
23073
         .     : '\(.\)' 2>/dev/null ||
23380
23074
echo X"$as_dir" |
23381
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23382
 
            s//\1/
23383
 
            q
23384
 
          }
23385
 
          /^X\(\/\/\)[^/].*/{
23386
 
            s//\1/
23387
 
            q
23388
 
          }
23389
 
          /^X\(\/\/\)$/{
23390
 
            s//\1/
23391
 
            q
23392
 
          }
23393
 
          /^X\(\/\).*/{
23394
 
            s//\1/
23395
 
            q
23396
 
          }
23397
 
          s/.*/./; q'`
23398
 
      test -d "$as_dir" && break
 
23075
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
23076
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
23077
          /^X\(\/\/\)$/{ s//\1/; q; }
 
23078
          /^X\(\/\).*/{ s//\1/; q; }
 
23079
          s/.*/./; q'`
23399
23080
    done
23400
 
    test -z "$as_dirs" || eval "mkdir $as_dirs"
23401
 
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23402
 
echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
23081
    test ! -n "$as_dirs" || mkdir $as_dirs
 
23082
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
23083
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23403
23084
   { (exit 1); exit 1; }; }; }
23404
 
  ac_builddir=.
23405
 
 
23406
 
case "$ac_dir" in
23407
 
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23408
 
*)
23409
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23410
 
  # A ".." for each directory in $ac_dir_suffix.
23411
 
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23412
 
  case $ac_top_builddir_sub in
23413
 
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23414
 
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23415
 
  esac ;;
23416
 
esac
23417
 
ac_abs_top_builddir=$ac_pwd
23418
 
ac_abs_builddir=$ac_pwd$ac_dir_suffix
23419
 
# for backward compatibility:
23420
 
ac_top_builddir=$ac_top_build_prefix
23421
 
 
23422
 
case $srcdir in
23423
 
  .)  # We are building in place.
23424
 
    ac_srcdir=.
23425
 
    ac_top_srcdir=$ac_top_builddir_sub
23426
 
    ac_abs_top_srcdir=$ac_pwd ;;
23427
 
  [\\/]* | ?:[\\/]* )  # Absolute name.
23428
 
    ac_srcdir=$srcdir$ac_dir_suffix;
23429
 
    ac_top_srcdir=$srcdir
23430
 
    ac_abs_top_srcdir=$srcdir ;;
23431
 
  *) # Relative name.
23432
 
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23433
 
    ac_top_srcdir=$ac_top_build_prefix$srcdir
23434
 
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23435
 
esac
23436
 
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23437
 
 
23438
 
 
23439
 
  case $ac_mode in
23440
 
 
23441
 
  :H)
23442
 
  #
23443
 
  # CONFIG_HEADER
23444
 
  #
23445
 
_ACEOF
23446
 
 
23447
 
# Transform confdefs.h into a sed script `conftest.defines', that
23448
 
# substitutes the proper values into config.h.in to produce config.h.
23449
 
rm -f conftest.defines conftest.tail
23450
 
# First, append a space to every undef/define line, to ease matching.
23451
 
echo 's/$/ /' >conftest.defines
23452
 
# Then, protect against being on the right side of a sed subst, or in
23453
 
# an unquoted here document, in config.status.  If some macros were
23454
 
# called several times there might be several #defines for the same
23455
 
# symbol, which is useless.  But do not sort them, since the last
23456
 
# AC_DEFINE must be honored.
23457
 
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23458
 
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23459
 
# NAME is the cpp macro being defined, VALUE is the value it is being given.
23460
 
# PARAMS is the parameter list in the macro definition--in most cases, it's
23461
 
# just an empty string.
23462
 
ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
23463
 
ac_dB='\\)[      (].*,\\1define\\2'
23464
 
ac_dC=' '
23465
 
ac_dD=' ,'
23466
 
 
23467
 
uniq confdefs.h |
23468
 
  sed -n '
23469
 
        t rset
23470
 
        :rset
23471
 
        s/^[     ]*#[    ]*define[       ][      ]*//
23472
 
        t ok
23473
 
        d
23474
 
        :ok
23475
 
        s/[\\&,]/\\&/g
23476
 
        s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23477
 
        s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23478
 
  ' >>conftest.defines
23479
 
 
23480
 
# Remove the space that was appended to ease matching.
23481
 
# Then replace #undef with comments.  This is necessary, for
23482
 
# example, in the case of _POSIX_SOURCE, which is predefined and required
23483
 
# on some systems where configure will not decide to define it.
23484
 
# (The regexp can be short, since the line contains either #define or #undef.)
23485
 
echo 's/ $//
23486
 
s,^[     #]*u.*,/* & */,' >>conftest.defines
23487
 
 
23488
 
# Break up conftest.defines:
23489
 
ac_max_sed_lines=50
23490
 
 
23491
 
# First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23492
 
# Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23493
 
# Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23494
 
# et cetera.
23495
 
ac_in='$ac_file_inputs'
23496
 
ac_out='"$tmp/out1"'
23497
 
ac_nxt='"$tmp/out2"'
23498
 
 
23499
 
while :
23500
 
do
23501
 
  # Write a here document:
23502
 
    cat >>$CONFIG_STATUS <<_ACEOF
23503
 
    # First, check the format of the line:
23504
 
    cat >"\$tmp/defines.sed" <<\\CEOF
23505
 
/^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
23506
 
/^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
23507
 
b
23508
 
:def
23509
 
_ACEOF
23510
 
  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23511
 
  echo 'CEOF
23512
 
    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23513
 
  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23514
 
  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23515
 
  grep . conftest.tail >/dev/null || break
23516
 
  rm -f conftest.defines
23517
 
  mv conftest.tail conftest.defines
23518
 
done
23519
 
rm -f conftest.defines conftest.tail
23520
 
 
23521
 
echo "ac_result=$ac_in" >>$CONFIG_STATUS
23522
 
cat >>$CONFIG_STATUS <<\_ACEOF
23523
 
  if test x"$ac_file" != x-; then
23524
 
    echo "/* $configure_input  */" >"$tmp/config.h"
23525
 
    cat "$ac_result" >>"$tmp/config.h"
23526
 
    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23527
 
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23528
 
echo "$as_me: $ac_file is unchanged" >&6;}
23529
 
    else
 
23085
 
23530
23086
      rm -f $ac_file
23531
 
      mv "$tmp/config.h" $ac_file
 
23087
      mv $tmp/config.h $ac_file
23532
23088
    fi
23533
23089
  else
23534
 
    echo "/* $configure_input  */"
23535
 
    cat "$ac_result"
 
23090
    cat $tmp/config.h
 
23091
    rm -f $tmp/config.h
23536
23092
  fi
23537
 
  rm -f "$tmp/out12"
23538
 
 ;;
23539
 
 
23540
 
 
23541
 
  esac
23542
 
 
23543
 
done # for ac_tag
23544
 
 
 
23093
done
 
23094
_ACEOF
 
23095
 
 
23096
cat >>$CONFIG_STATUS <<\_ACEOF
23545
23097
 
23546
23098
{ (exit 0); exit 0; }
23547
23099
_ACEOF