~ubuntu-branches/debian/squeeze/ffcall/squeeze

« back to all changes in this revision

Viewing changes to callback/trampoline_r/configure

  • Committer: Bazaar Package Importer
  • Author(s): Christoph Egger
  • Date: 2010-06-26 15:29:30 UTC
  • mfrom: (5.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20100626152930-c09y01gk3szcnykn
Tags: 1.10+cvs20100619-2
Ship to unstable

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# Guess values for system-dependent variables and create Makefiles.
 
3
# Generated by GNU Autoconf 2.63 for libffcall/trampoline_r 0x010B.
 
4
#
 
5
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
6
# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
 
7
# This configure script is free software; the Free Software Foundation
 
8
# gives unlimited permission to copy, distribute and modify it.
 
9
## --------------------- ##
 
10
## M4sh Initialization.  ##
 
11
## --------------------- ##
 
12
 
 
13
# Be more Bourne compatible
 
14
DUALCASE=1; export DUALCASE # for MKS sh
 
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
16
  emulate sh
 
17
  NULLCMD=:
 
18
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
19
  # is contrary to our usage.  Disable this feature.
 
20
  alias -g '${1+"$@"}'='"$@"'
 
21
  setopt NO_GLOB_SUBST
 
22
else
 
23
  case `(set -o) 2>/dev/null` in
 
24
  *posix*) set -o posix ;;
 
25
esac
 
26
 
 
27
fi
 
28
 
 
29
 
 
30
 
 
31
 
 
32
# PATH needs CR
 
33
# Avoid depending upon Character Ranges.
 
34
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
35
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
36
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
37
as_cr_digits='0123456789'
 
38
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
39
 
 
40
as_nl='
 
41
'
 
42
export as_nl
 
43
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
44
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
45
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
46
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
47
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
48
  as_echo='printf %s\n'
 
49
  as_echo_n='printf %s'
 
50
else
 
51
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
52
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
53
    as_echo_n='/usr/ucb/echo -n'
 
54
  else
 
55
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
56
    as_echo_n_body='eval
 
57
      arg=$1;
 
58
      case $arg in
 
59
      *"$as_nl"*)
 
60
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
61
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
62
      esac;
 
63
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
64
    '
 
65
    export as_echo_n_body
 
66
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
67
  fi
 
68
  export as_echo_body
 
69
  as_echo='sh -c $as_echo_body as_echo'
 
70
fi
 
71
 
 
72
# The user is always right.
 
73
if test "${PATH_SEPARATOR+set}" != set; then
 
74
  PATH_SEPARATOR=:
 
75
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
76
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
77
      PATH_SEPARATOR=';'
 
78
  }
 
79
fi
 
80
 
 
81
# Support unset when possible.
 
82
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
83
  as_unset=unset
 
84
else
 
85
  as_unset=false
 
86
fi
 
87
 
 
88
 
 
89
# IFS
 
90
# We need space, tab and new line, in precisely that order.  Quoting is
 
91
# there to prevent editors from complaining about space-tab.
 
92
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
93
# splitting by setting IFS to empty value.)
 
94
IFS=" ""        $as_nl"
 
95
 
 
96
# Find who we are.  Look in the path if we contain no directory separator.
 
97
case $0 in
 
98
  *[\\/]* ) as_myself=$0 ;;
 
99
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
100
for as_dir in $PATH
 
101
do
 
102
  IFS=$as_save_IFS
 
103
  test -z "$as_dir" && as_dir=.
 
104
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
105
done
 
106
IFS=$as_save_IFS
 
107
 
 
108
     ;;
 
109
esac
 
110
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
111
# in which case we are not to be found in the path.
 
112
if test "x$as_myself" = x; then
 
113
  as_myself=$0
 
114
fi
 
115
if test ! -f "$as_myself"; then
 
116
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
117
  { (exit 1); exit 1; }
 
118
fi
 
119
 
 
120
# Work around bugs in pre-3.0 UWIN ksh.
 
121
for as_var in ENV MAIL MAILPATH
 
122
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
123
done
 
124
PS1='$ '
 
125
PS2='> '
 
126
PS4='+ '
 
127
 
 
128
# NLS nuisances.
 
129
LC_ALL=C
 
130
export LC_ALL
 
131
LANGUAGE=C
 
132
export LANGUAGE
 
133
 
 
134
# Required to use basename.
 
135
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
136
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
137
  as_expr=expr
 
138
else
 
139
  as_expr=false
 
140
fi
 
141
 
 
142
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
143
  as_basename=basename
 
144
else
 
145
  as_basename=false
 
146
fi
 
147
 
 
148
 
 
149
# Name of the executable.
 
150
as_me=`$as_basename -- "$0" ||
 
151
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
152
         X"$0" : 'X\(//\)$' \| \
 
153
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
154
$as_echo X/"$0" |
 
155
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
156
            s//\1/
 
157
            q
 
158
          }
 
159
          /^X\/\(\/\/\)$/{
 
160
            s//\1/
 
161
            q
 
162
          }
 
163
          /^X\/\(\/\).*/{
 
164
            s//\1/
 
165
            q
 
166
          }
 
167
          s/.*/./; q'`
 
168
 
 
169
# CDPATH.
 
170
$as_unset CDPATH
 
171
 
 
172
 
 
173
if test "x$CONFIG_SHELL" = x; then
 
174
  if (eval ":") 2>/dev/null; then
 
175
  as_have_required=yes
 
176
else
 
177
  as_have_required=no
 
178
fi
 
179
 
 
180
  if test $as_have_required = yes &&     (eval ":
 
181
(as_func_return () {
 
182
  (exit \$1)
 
183
}
 
184
as_func_success () {
 
185
  as_func_return 0
 
186
}
 
187
as_func_failure () {
 
188
  as_func_return 1
 
189
}
 
190
as_func_ret_success () {
 
191
  return 0
 
192
}
 
193
as_func_ret_failure () {
 
194
  return 1
 
195
}
 
196
 
 
197
exitcode=0
 
198
if as_func_success; then
 
199
  :
 
200
else
 
201
  exitcode=1
 
202
  echo as_func_success failed.
 
203
fi
 
204
 
 
205
if as_func_failure; then
 
206
  exitcode=1
 
207
  echo as_func_failure succeeded.
 
208
fi
 
209
 
 
210
if as_func_ret_success; then
 
211
  :
 
212
else
 
213
  exitcode=1
 
214
  echo as_func_ret_success failed.
 
215
fi
 
216
 
 
217
if as_func_ret_failure; then
 
218
  exitcode=1
 
219
  echo as_func_ret_failure succeeded.
 
220
fi
 
221
 
 
222
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
223
  :
 
224
else
 
225
  exitcode=1
 
226
  echo positional parameters were not saved.
 
227
fi
 
228
 
 
229
test \$exitcode = 0) || { (exit 1); exit 1; }
 
230
 
 
231
(
 
232
  as_lineno_1=\$LINENO
 
233
  as_lineno_2=\$LINENO
 
234
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
 
235
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
 
236
") 2> /dev/null; then
 
237
  :
 
238
else
 
239
  as_candidate_shells=
 
240
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
241
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
242
do
 
243
  IFS=$as_save_IFS
 
244
  test -z "$as_dir" && as_dir=.
 
245
  case $as_dir in
 
246
         /*)
 
247
           for as_base in sh bash ksh sh5; do
 
248
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
 
249
           done;;
 
250
       esac
 
251
done
 
252
IFS=$as_save_IFS
 
253
 
 
254
 
 
255
      for as_shell in $as_candidate_shells $SHELL; do
 
256
         # Try only shells that exist, to save several forks.
 
257
         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
258
                { ("$as_shell") 2> /dev/null <<\_ASEOF
 
259
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
260
  emulate sh
 
261
  NULLCMD=:
 
262
  # Pre-4.2 versions of Zsh do 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
 
268
  *posix*) set -o posix ;;
 
269
esac
 
270
 
 
271
fi
 
272
 
 
273
 
 
274
:
 
275
_ASEOF
 
276
}; then
 
277
  CONFIG_SHELL=$as_shell
 
278
               as_have_required=yes
 
279
               if { "$as_shell" 2> /dev/null <<\_ASEOF
 
280
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
281
  emulate sh
 
282
  NULLCMD=:
 
283
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
284
  # is contrary to our usage.  Disable this feature.
 
285
  alias -g '${1+"$@"}'='"$@"'
 
286
  setopt NO_GLOB_SUBST
 
287
else
 
288
  case `(set -o) 2>/dev/null` in
 
289
  *posix*) set -o posix ;;
 
290
esac
 
291
 
 
292
fi
 
293
 
 
294
 
 
295
:
 
296
(as_func_return () {
 
297
  (exit $1)
 
298
}
 
299
as_func_success () {
 
300
  as_func_return 0
 
301
}
 
302
as_func_failure () {
 
303
  as_func_return 1
 
304
}
 
305
as_func_ret_success () {
 
306
  return 0
 
307
}
 
308
as_func_ret_failure () {
 
309
  return 1
 
310
}
 
311
 
 
312
exitcode=0
 
313
if as_func_success; then
 
314
  :
 
315
else
 
316
  exitcode=1
 
317
  echo as_func_success failed.
 
318
fi
 
319
 
 
320
if as_func_failure; then
 
321
  exitcode=1
 
322
  echo as_func_failure succeeded.
 
323
fi
 
324
 
 
325
if as_func_ret_success; then
 
326
  :
 
327
else
 
328
  exitcode=1
 
329
  echo as_func_ret_success failed.
 
330
fi
 
331
 
 
332
if as_func_ret_failure; then
 
333
  exitcode=1
 
334
  echo as_func_ret_failure succeeded.
 
335
fi
 
336
 
 
337
if ( set x; as_func_ret_success y && test x = "$1" ); then
 
338
  :
 
339
else
 
340
  exitcode=1
 
341
  echo positional parameters were not saved.
 
342
fi
 
343
 
 
344
test $exitcode = 0) || { (exit 1); exit 1; }
 
345
 
 
346
(
 
347
  as_lineno_1=$LINENO
 
348
  as_lineno_2=$LINENO
 
349
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
350
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
 
351
 
 
352
_ASEOF
 
353
}; then
 
354
  break
 
355
fi
 
356
 
 
357
fi
 
358
 
 
359
      done
 
360
 
 
361
      if test "x$CONFIG_SHELL" != x; then
 
362
  for as_var in BASH_ENV ENV
 
363
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
364
        done
 
365
        export CONFIG_SHELL
 
366
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
 
367
fi
 
368
 
 
369
 
 
370
    if test $as_have_required = no; then
 
371
  echo This script requires a shell more modern than all the
 
372
      echo shells that I found on your system.  Please install a
 
373
      echo modern shell, or manually run the script under such a
 
374
      echo shell if you do have one.
 
375
      { (exit 1); exit 1; }
 
376
fi
 
377
 
 
378
 
 
379
fi
 
380
 
 
381
fi
 
382
 
 
383
 
 
384
 
 
385
(eval "as_func_return () {
 
386
  (exit \$1)
 
387
}
 
388
as_func_success () {
 
389
  as_func_return 0
 
390
}
 
391
as_func_failure () {
 
392
  as_func_return 1
 
393
}
 
394
as_func_ret_success () {
 
395
  return 0
 
396
}
 
397
as_func_ret_failure () {
 
398
  return 1
 
399
}
 
400
 
 
401
exitcode=0
 
402
if as_func_success; then
 
403
  :
 
404
else
 
405
  exitcode=1
 
406
  echo as_func_success failed.
 
407
fi
 
408
 
 
409
if as_func_failure; then
 
410
  exitcode=1
 
411
  echo as_func_failure succeeded.
 
412
fi
 
413
 
 
414
if as_func_ret_success; then
 
415
  :
 
416
else
 
417
  exitcode=1
 
418
  echo as_func_ret_success failed.
 
419
fi
 
420
 
 
421
if as_func_ret_failure; then
 
422
  exitcode=1
 
423
  echo as_func_ret_failure succeeded.
 
424
fi
 
425
 
 
426
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
427
  :
 
428
else
 
429
  exitcode=1
 
430
  echo positional parameters were not saved.
 
431
fi
 
432
 
 
433
test \$exitcode = 0") || {
 
434
  echo No shell found that supports shell functions.
 
435
  echo Please tell bug-autoconf@gnu.org about your system,
 
436
  echo including any error possibly output before this message.
 
437
  echo This can help us improve future autoconf versions.
 
438
  echo Configuration will now proceed without shell functions.
 
439
}
 
440
 
 
441
 
 
442
 
 
443
  as_lineno_1=$LINENO
 
444
  as_lineno_2=$LINENO
 
445
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
446
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
447
 
 
448
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
449
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
450
  # line-number line after each line using $LINENO; the second 'sed'
 
451
  # does the real work.  The second script uses 'N' to pair each
 
452
  # line-number line with the line containing $LINENO, and appends
 
453
  # trailing '-' during substitution so that $LINENO is not a special
 
454
  # case at line end.
 
455
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
456
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
457
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
458
  sed -n '
 
459
    p
 
460
    /[$]LINENO/=
 
461
  ' <$as_myself |
 
462
    sed '
 
463
      s/[$]LINENO.*/&-/
 
464
      t lineno
 
465
      b
 
466
      :lineno
 
467
      N
 
468
      :loop
 
469
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
470
      t loop
 
471
      s/-\n.*//
 
472
    ' >$as_me.lineno &&
 
473
  chmod +x "$as_me.lineno" ||
 
474
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
475
   { (exit 1); exit 1; }; }
 
476
 
 
477
  # Don't try to exec as it changes $[0], causing all sort of problems
 
478
  # (the dirname of $[0] is not the place where we might find the
 
479
  # original and so on.  Autoconf is especially sensitive to this).
 
480
  . "./$as_me.lineno"
 
481
  # Exit status is that of the last command.
 
482
  exit
 
483
}
 
484
 
 
485
 
 
486
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
487
  as_dirname=dirname
 
488
else
 
489
  as_dirname=false
 
490
fi
 
491
 
 
492
ECHO_C= ECHO_N= ECHO_T=
 
493
case `echo -n x` in
 
494
-n*)
 
495
  case `echo 'x\c'` in
 
496
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
497
  *)   ECHO_C='\c';;
 
498
  esac;;
 
499
*)
 
500
  ECHO_N='-n';;
 
501
esac
 
502
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
503
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
504
  as_expr=expr
 
505
else
 
506
  as_expr=false
 
507
fi
 
508
 
 
509
rm -f conf$$ conf$$.exe conf$$.file
 
510
if test -d conf$$.dir; then
 
511
  rm -f conf$$.dir/conf$$.file
 
512
else
 
513
  rm -f conf$$.dir
 
514
  mkdir conf$$.dir 2>/dev/null
 
515
fi
 
516
if (echo >conf$$.file) 2>/dev/null; then
 
517
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
518
    as_ln_s='ln -s'
 
519
    # ... but there are two gotchas:
 
520
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
521
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
522
    # In both cases, we have to default to `cp -p'.
 
523
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
524
      as_ln_s='cp -p'
 
525
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
526
    as_ln_s=ln
 
527
  else
 
528
    as_ln_s='cp -p'
 
529
  fi
 
530
else
 
531
  as_ln_s='cp -p'
 
532
fi
 
533
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
534
rmdir conf$$.dir 2>/dev/null
 
535
 
 
536
if mkdir -p . 2>/dev/null; then
 
537
  as_mkdir_p=:
 
538
else
 
539
  test -d ./-p && rmdir ./-p
 
540
  as_mkdir_p=false
 
541
fi
 
542
 
 
543
if test -x / >/dev/null 2>&1; then
 
544
  as_test_x='test -x'
 
545
else
 
546
  if ls -dL / >/dev/null 2>&1; then
 
547
    as_ls_L_option=L
 
548
  else
 
549
    as_ls_L_option=
 
550
  fi
 
551
  as_test_x='
 
552
    eval sh -c '\''
 
553
      if test -d "$1"; then
 
554
        test -d "$1/.";
 
555
      else
 
556
        case $1 in
 
557
        -*)set "./$1";;
 
558
        esac;
 
559
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
560
        ???[sx]*):;;*)false;;esac;fi
 
561
    '\'' sh
 
562
  '
 
563
fi
 
564
as_executable_p=$as_test_x
 
565
 
 
566
# Sed expression to map a string onto a valid CPP name.
 
567
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
568
 
 
569
# Sed expression to map a string onto a valid variable name.
 
570
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
571
 
 
572
 
 
573
 
 
574
 
 
575
# Check that we are running under the correct shell.
 
576
SHELL=${CONFIG_SHELL-/bin/sh}
 
577
 
 
578
case X$ECHO in
 
579
X*--fallback-echo)
 
580
  # Remove one level of quotation (which was required for Make).
 
581
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
582
  ;;
 
583
esac
 
584
 
 
585
echo=${ECHO-echo}
 
586
if test "X$1" = X--no-reexec; then
 
587
  # Discard the --no-reexec flag, and continue.
 
588
  shift
 
589
elif test "X$1" = X--fallback-echo; then
 
590
  # Avoid inline document here, it may be left over
 
591
  :
 
592
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
 
593
  # Yippee, $echo works!
 
594
  :
 
595
else
 
596
  # Restart under the correct shell.
 
597
  exec $SHELL "$0" --no-reexec ${1+"$@"}
 
598
fi
 
599
 
 
600
if test "X$1" = X--fallback-echo; then
 
601
  # used as fallback echo
 
602
  shift
 
603
  cat <<EOF
 
604
$*
 
605
EOF
 
606
  exit 0
 
607
fi
 
608
 
 
609
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
610
# if CDPATH is set.
 
611
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
612
 
 
613
if test -z "$ECHO"; then
 
614
if test "X${echo_test_string+set}" != Xset; then
 
615
# find a string as large as possible, as long as the shell can cope with it
 
616
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
617
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
618
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
 
619
       echo_test_string=`eval $cmd` &&
 
620
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
 
621
    then
 
622
      break
 
623
    fi
 
624
  done
 
625
fi
 
626
 
 
627
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
628
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
629
   test "X$echo_testing_string" = "X$echo_test_string"; then
 
630
  :
 
631
else
 
632
  # The Solaris, AIX, and Digital Unix default echo programs unquote
 
633
  # backslashes.  This makes it impossible to quote backslashes using
 
634
  #   echo "$something" | sed 's/\\/\\\\/g'
 
635
  #
 
636
  # So, first we look for a working echo in the user's PATH.
 
637
 
 
638
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
639
  for dir in $PATH /usr/ucb; do
 
640
    IFS="$lt_save_ifs"
 
641
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
642
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
643
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
644
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
645
      echo="$dir/echo"
 
646
      break
 
647
    fi
 
648
  done
 
649
  IFS="$lt_save_ifs"
 
650
 
 
651
  if test "X$echo" = Xecho; then
 
652
    # We didn't find a better echo, so look for alternatives.
 
653
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
 
654
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
 
655
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
656
      # This shell has a builtin print -r that does the trick.
 
657
      echo='print -r'
 
658
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
 
659
         test "X$CONFIG_SHELL" != X/bin/ksh; then
 
660
      # If we have ksh, try running configure again with it.
 
661
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
662
      export ORIGINAL_CONFIG_SHELL
 
663
      CONFIG_SHELL=/bin/ksh
 
664
      export CONFIG_SHELL
 
665
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
666
    else
 
667
      # Try using printf.
 
668
      echo='printf %s\n'
 
669
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
670
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
671
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
672
        # Cool, printf works
 
673
        :
 
674
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
675
           test "X$echo_testing_string" = 'X\t' &&
 
676
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
677
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
678
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
679
        export CONFIG_SHELL
 
680
        SHELL="$CONFIG_SHELL"
 
681
        export SHELL
 
682
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
683
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
684
           test "X$echo_testing_string" = 'X\t' &&
 
685
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
686
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
687
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
688
      else
 
689
        # maybe with a smaller string...
 
690
        prev=:
 
691
 
 
692
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
693
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
 
694
          then
 
695
            break
 
696
          fi
 
697
          prev="$cmd"
 
698
        done
 
699
 
 
700
        if test "$prev" != 'sed 50q "$0"'; then
 
701
          echo_test_string=`eval $prev`
 
702
          export echo_test_string
 
703
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
704
        else
 
705
          # Oops.  We lost completely, so just stick with echo.
 
706
          echo=echo
 
707
        fi
 
708
      fi
 
709
    fi
 
710
  fi
 
711
fi
 
712
fi
 
713
 
 
714
# Copy echo and quote the copy suitably for passing to libtool from
 
715
# the Makefile, instead of quoting the original, which is used later.
 
716
ECHO=$echo
 
717
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
718
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
719
fi
 
720
 
 
721
 
 
722
 
 
723
 
 
724
tagnames=${tagnames+${tagnames},}CXX
 
725
 
 
726
tagnames=${tagnames+${tagnames},}F77
 
727
 
 
728
exec 7<&0 </dev/null 6>&1
 
729
 
 
730
# Name of the host.
 
731
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
732
# so uname gets run too.
 
733
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
734
 
 
735
#
 
736
# Initializations.
 
737
#
 
738
ac_default_prefix=/usr/local
 
739
ac_clean_files=
 
740
ac_config_libobj_dir=.
 
741
LIBOBJS=
 
742
cross_compiling=no
 
743
subdirs=
 
744
MFLAGS=
 
745
MAKEFLAGS=
 
746
SHELL=${CONFIG_SHELL-/bin/sh}
 
747
 
 
748
# Identity of this package.
 
749
PACKAGE_NAME='libffcall/trampoline_r'
 
750
PACKAGE_TARNAME='libffcall-trampoline_r'
 
751
PACKAGE_VERSION='0x010B'
 
752
PACKAGE_STRING='libffcall/trampoline_r 0x010B'
 
753
PACKAGE_BUGREPORT=''
 
754
 
 
755
ac_unique_file="trampoline_r.h.in"
 
756
# Factoring default headers for most tests.
 
757
ac_includes_default="\
 
758
#include <stdio.h>
 
759
#ifdef HAVE_SYS_TYPES_H
 
760
# include <sys/types.h>
 
761
#endif
 
762
#ifdef HAVE_SYS_STAT_H
 
763
# include <sys/stat.h>
 
764
#endif
 
765
#ifdef STDC_HEADERS
 
766
# include <stdlib.h>
 
767
# include <stddef.h>
 
768
#else
 
769
# ifdef HAVE_STDLIB_H
 
770
#  include <stdlib.h>
 
771
# endif
 
772
#endif
 
773
#ifdef HAVE_STRING_H
 
774
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
775
#  include <memory.h>
 
776
# endif
 
777
# include <string.h>
 
778
#endif
 
779
#ifdef HAVE_STRINGS_H
 
780
# include <strings.h>
 
781
#endif
 
782
#ifdef HAVE_INTTYPES_H
 
783
# include <inttypes.h>
 
784
#endif
 
785
#ifdef HAVE_STDINT_H
 
786
# include <stdint.h>
 
787
#endif
 
788
#ifdef HAVE_UNISTD_H
 
789
# include <unistd.h>
 
790
#endif"
 
791
 
 
792
ac_subst_vars='LTLIBOBJS
 
793
LIBOBJS
 
794
CPU_OBJECTS
 
795
LIBTOOL
 
796
ac_ct_F77
 
797
FFLAGS
 
798
F77
 
799
CXXCPP
 
800
ac_ct_CXX
 
801
CXXFLAGS
 
802
CXX
 
803
NMEDIT
 
804
DSYMUTIL
 
805
STRIP
 
806
AR
 
807
ECHO
 
808
SED
 
809
host_cpu_abi
 
810
host_os
 
811
host_vendor
 
812
host_cpu
 
813
host
 
814
build_os
 
815
build_vendor
 
816
build_cpu
 
817
build
 
818
LN_S
 
819
LN
 
820
INSTALL_DATA
 
821
INSTALL_SCRIPT
 
822
INSTALL_PROGRAM
 
823
SET_MAKE
 
824
RANLIB
 
825
AS_UNDERSCORE
 
826
GCC_X_NONE
 
827
CC_GCC
 
828
EGREP
 
829
GREP
 
830
CPP
 
831
OBJEXT
 
832
EXEEXT
 
833
ac_ct_CC
 
834
CPPFLAGS
 
835
LDFLAGS
 
836
CFLAGS
 
837
CC
 
838
target_alias
 
839
host_alias
 
840
build_alias
 
841
LIBS
 
842
ECHO_T
 
843
ECHO_N
 
844
ECHO_C
 
845
DEFS
 
846
mandir
 
847
localedir
 
848
libdir
 
849
psdir
 
850
pdfdir
 
851
dvidir
 
852
htmldir
 
853
infodir
 
854
docdir
 
855
oldincludedir
 
856
includedir
 
857
localstatedir
 
858
sharedstatedir
 
859
sysconfdir
 
860
datadir
 
861
datarootdir
 
862
libexecdir
 
863
sbindir
 
864
bindir
 
865
program_transform_name
 
866
prefix
 
867
exec_prefix
 
868
PACKAGE_BUGREPORT
 
869
PACKAGE_STRING
 
870
PACKAGE_VERSION
 
871
PACKAGE_TARNAME
 
872
PACKAGE_NAME
 
873
PATH_SEPARATOR
 
874
SHELL'
 
875
ac_subst_files=''
 
876
ac_user_opts='
 
877
enable_option_checking
 
878
enable_shared
 
879
enable_static
 
880
enable_fast_install
 
881
with_gnu_ld
 
882
enable_libtool_lock
 
883
with_pic
 
884
with_tags
 
885
'
 
886
      ac_precious_vars='build_alias
 
887
host_alias
 
888
target_alias
 
889
CC
 
890
CFLAGS
 
891
LDFLAGS
 
892
LIBS
 
893
CPPFLAGS
 
894
CPP
 
895
CXX
 
896
CXXFLAGS
 
897
CCC
 
898
CXXCPP
 
899
F77
 
900
FFLAGS'
 
901
 
 
902
 
 
903
# Initialize some variables set by options.
 
904
ac_init_help=
 
905
ac_init_version=false
 
906
ac_unrecognized_opts=
 
907
ac_unrecognized_sep=
 
908
# The variables have the same names as the options, with
 
909
# dashes changed to underlines.
 
910
cache_file=/dev/null
 
911
exec_prefix=NONE
 
912
no_create=
 
913
no_recursion=
 
914
prefix=NONE
 
915
program_prefix=NONE
 
916
program_suffix=NONE
 
917
program_transform_name=s,x,x,
 
918
silent=
 
919
site=
 
920
srcdir=
 
921
verbose=
 
922
x_includes=NONE
 
923
x_libraries=NONE
 
924
 
 
925
# Installation directory options.
 
926
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
927
# and all the variables that are supposed to be based on exec_prefix
 
928
# by default will actually change.
 
929
# Use braces instead of parens because sh, perl, etc. also accept them.
 
930
# (The list follows the same order as the GNU Coding Standards.)
 
931
bindir='${exec_prefix}/bin'
 
932
sbindir='${exec_prefix}/sbin'
 
933
libexecdir='${exec_prefix}/libexec'
 
934
datarootdir='${prefix}/share'
 
935
datadir='${datarootdir}'
 
936
sysconfdir='${prefix}/etc'
 
937
sharedstatedir='${prefix}/com'
 
938
localstatedir='${prefix}/var'
 
939
includedir='${prefix}/include'
 
940
oldincludedir='/usr/include'
 
941
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
942
infodir='${datarootdir}/info'
 
943
htmldir='${docdir}'
 
944
dvidir='${docdir}'
 
945
pdfdir='${docdir}'
 
946
psdir='${docdir}'
 
947
libdir='${exec_prefix}/lib'
 
948
localedir='${datarootdir}/locale'
 
949
mandir='${datarootdir}/man'
 
950
 
 
951
ac_prev=
 
952
ac_dashdash=
 
953
for ac_option
 
954
do
 
955
  # If the previous option needs an argument, assign it.
 
956
  if test -n "$ac_prev"; then
 
957
    eval $ac_prev=\$ac_option
 
958
    ac_prev=
 
959
    continue
 
960
  fi
 
961
 
 
962
  case $ac_option in
 
963
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
964
  *)    ac_optarg=yes ;;
 
965
  esac
 
966
 
 
967
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
968
 
 
969
  case $ac_dashdash$ac_option in
 
970
  --)
 
971
    ac_dashdash=yes ;;
 
972
 
 
973
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
974
    ac_prev=bindir ;;
 
975
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
976
    bindir=$ac_optarg ;;
 
977
 
 
978
  -build | --build | --buil | --bui | --bu)
 
979
    ac_prev=build_alias ;;
 
980
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
981
    build_alias=$ac_optarg ;;
 
982
 
 
983
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
984
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
985
    ac_prev=cache_file ;;
 
986
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
987
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
988
    cache_file=$ac_optarg ;;
 
989
 
 
990
  --config-cache | -C)
 
991
    cache_file=config.cache ;;
 
992
 
 
993
  -datadir | --datadir | --datadi | --datad)
 
994
    ac_prev=datadir ;;
 
995
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
996
    datadir=$ac_optarg ;;
 
997
 
 
998
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
999
  | --dataroo | --dataro | --datar)
 
1000
    ac_prev=datarootdir ;;
 
1001
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
1002
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
1003
    datarootdir=$ac_optarg ;;
 
1004
 
 
1005
  -disable-* | --disable-*)
 
1006
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
1007
    # Reject names that are not valid shell variable names.
 
1008
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1009
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
 
1010
   { (exit 1); exit 1; }; }
 
1011
    ac_useropt_orig=$ac_useropt
 
1012
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1013
    case $ac_user_opts in
 
1014
      *"
 
1015
"enable_$ac_useropt"
 
1016
"*) ;;
 
1017
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
 
1018
         ac_unrecognized_sep=', ';;
 
1019
    esac
 
1020
    eval enable_$ac_useropt=no ;;
 
1021
 
 
1022
  -docdir | --docdir | --docdi | --doc | --do)
 
1023
    ac_prev=docdir ;;
 
1024
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
1025
    docdir=$ac_optarg ;;
 
1026
 
 
1027
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
1028
    ac_prev=dvidir ;;
 
1029
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
1030
    dvidir=$ac_optarg ;;
 
1031
 
 
1032
  -enable-* | --enable-*)
 
1033
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
1034
    # Reject names that are not valid shell variable names.
 
1035
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1036
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
 
1037
   { (exit 1); exit 1; }; }
 
1038
    ac_useropt_orig=$ac_useropt
 
1039
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1040
    case $ac_user_opts in
 
1041
      *"
 
1042
"enable_$ac_useropt"
 
1043
"*) ;;
 
1044
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
 
1045
         ac_unrecognized_sep=', ';;
 
1046
    esac
 
1047
    eval enable_$ac_useropt=\$ac_optarg ;;
 
1048
 
 
1049
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
1050
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
1051
  | --exec | --exe | --ex)
 
1052
    ac_prev=exec_prefix ;;
 
1053
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
1054
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
1055
  | --exec=* | --exe=* | --ex=*)
 
1056
    exec_prefix=$ac_optarg ;;
 
1057
 
 
1058
  -gas | --gas | --ga | --g)
 
1059
    # Obsolete; use --with-gas.
 
1060
    with_gas=yes ;;
 
1061
 
 
1062
  -help | --help | --hel | --he | -h)
 
1063
    ac_init_help=long ;;
 
1064
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
1065
    ac_init_help=recursive ;;
 
1066
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
1067
    ac_init_help=short ;;
 
1068
 
 
1069
  -host | --host | --hos | --ho)
 
1070
    ac_prev=host_alias ;;
 
1071
  -host=* | --host=* | --hos=* | --ho=*)
 
1072
    host_alias=$ac_optarg ;;
 
1073
 
 
1074
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
1075
    ac_prev=htmldir ;;
 
1076
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
1077
  | --ht=*)
 
1078
    htmldir=$ac_optarg ;;
 
1079
 
 
1080
  -includedir | --includedir | --includedi | --included | --include \
 
1081
  | --includ | --inclu | --incl | --inc)
 
1082
    ac_prev=includedir ;;
 
1083
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
1084
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
1085
    includedir=$ac_optarg ;;
 
1086
 
 
1087
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
1088
    ac_prev=infodir ;;
 
1089
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
1090
    infodir=$ac_optarg ;;
 
1091
 
 
1092
  -libdir | --libdir | --libdi | --libd)
 
1093
    ac_prev=libdir ;;
 
1094
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
1095
    libdir=$ac_optarg ;;
 
1096
 
 
1097
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
1098
  | --libexe | --libex | --libe)
 
1099
    ac_prev=libexecdir ;;
 
1100
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
1101
  | --libexe=* | --libex=* | --libe=*)
 
1102
    libexecdir=$ac_optarg ;;
 
1103
 
 
1104
  -localedir | --localedir | --localedi | --localed | --locale)
 
1105
    ac_prev=localedir ;;
 
1106
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
1107
    localedir=$ac_optarg ;;
 
1108
 
 
1109
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
1110
  | --localstate | --localstat | --localsta | --localst | --locals)
 
1111
    ac_prev=localstatedir ;;
 
1112
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
1113
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
1114
    localstatedir=$ac_optarg ;;
 
1115
 
 
1116
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
1117
    ac_prev=mandir ;;
 
1118
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
1119
    mandir=$ac_optarg ;;
 
1120
 
 
1121
  -nfp | --nfp | --nf)
 
1122
    # Obsolete; use --without-fp.
 
1123
    with_fp=no ;;
 
1124
 
 
1125
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
1126
  | --no-cr | --no-c | -n)
 
1127
    no_create=yes ;;
 
1128
 
 
1129
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
1130
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
1131
    no_recursion=yes ;;
 
1132
 
 
1133
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
1134
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
1135
  | --oldin | --oldi | --old | --ol | --o)
 
1136
    ac_prev=oldincludedir ;;
 
1137
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
1138
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
1139
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
1140
    oldincludedir=$ac_optarg ;;
 
1141
 
 
1142
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
1143
    ac_prev=prefix ;;
 
1144
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
1145
    prefix=$ac_optarg ;;
 
1146
 
 
1147
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
1148
  | --program-pre | --program-pr | --program-p)
 
1149
    ac_prev=program_prefix ;;
 
1150
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
1151
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
1152
    program_prefix=$ac_optarg ;;
 
1153
 
 
1154
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
1155
  | --program-suf | --program-su | --program-s)
 
1156
    ac_prev=program_suffix ;;
 
1157
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
1158
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
1159
    program_suffix=$ac_optarg ;;
 
1160
 
 
1161
  -program-transform-name | --program-transform-name \
 
1162
  | --program-transform-nam | --program-transform-na \
 
1163
  | --program-transform-n | --program-transform- \
 
1164
  | --program-transform | --program-transfor \
 
1165
  | --program-transfo | --program-transf \
 
1166
  | --program-trans | --program-tran \
 
1167
  | --progr-tra | --program-tr | --program-t)
 
1168
    ac_prev=program_transform_name ;;
 
1169
  -program-transform-name=* | --program-transform-name=* \
 
1170
  | --program-transform-nam=* | --program-transform-na=* \
 
1171
  | --program-transform-n=* | --program-transform-=* \
 
1172
  | --program-transform=* | --program-transfor=* \
 
1173
  | --program-transfo=* | --program-transf=* \
 
1174
  | --program-trans=* | --program-tran=* \
 
1175
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
1176
    program_transform_name=$ac_optarg ;;
 
1177
 
 
1178
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1179
    ac_prev=pdfdir ;;
 
1180
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1181
    pdfdir=$ac_optarg ;;
 
1182
 
 
1183
  -psdir | --psdir | --psdi | --psd | --ps)
 
1184
    ac_prev=psdir ;;
 
1185
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1186
    psdir=$ac_optarg ;;
 
1187
 
 
1188
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1189
  | -silent | --silent | --silen | --sile | --sil)
 
1190
    silent=yes ;;
 
1191
 
 
1192
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
1193
    ac_prev=sbindir ;;
 
1194
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
1195
  | --sbi=* | --sb=*)
 
1196
    sbindir=$ac_optarg ;;
 
1197
 
 
1198
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
1199
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
1200
  | --sharedst | --shareds | --shared | --share | --shar \
 
1201
  | --sha | --sh)
 
1202
    ac_prev=sharedstatedir ;;
 
1203
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
1204
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
1205
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
1206
  | --sha=* | --sh=*)
 
1207
    sharedstatedir=$ac_optarg ;;
 
1208
 
 
1209
  -site | --site | --sit)
 
1210
    ac_prev=site ;;
 
1211
  -site=* | --site=* | --sit=*)
 
1212
    site=$ac_optarg ;;
 
1213
 
 
1214
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
1215
    ac_prev=srcdir ;;
 
1216
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
1217
    srcdir=$ac_optarg ;;
 
1218
 
 
1219
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
1220
  | --syscon | --sysco | --sysc | --sys | --sy)
 
1221
    ac_prev=sysconfdir ;;
 
1222
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
1223
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
1224
    sysconfdir=$ac_optarg ;;
 
1225
 
 
1226
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
1227
    ac_prev=target_alias ;;
 
1228
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
1229
    target_alias=$ac_optarg ;;
 
1230
 
 
1231
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
1232
    verbose=yes ;;
 
1233
 
 
1234
  -version | --version | --versio | --versi | --vers | -V)
 
1235
    ac_init_version=: ;;
 
1236
 
 
1237
  -with-* | --with-*)
 
1238
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1239
    # Reject names that are not valid shell variable names.
 
1240
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1241
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
 
1242
   { (exit 1); exit 1; }; }
 
1243
    ac_useropt_orig=$ac_useropt
 
1244
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1245
    case $ac_user_opts in
 
1246
      *"
 
1247
"with_$ac_useropt"
 
1248
"*) ;;
 
1249
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 
1250
         ac_unrecognized_sep=', ';;
 
1251
    esac
 
1252
    eval with_$ac_useropt=\$ac_optarg ;;
 
1253
 
 
1254
  -without-* | --without-*)
 
1255
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1256
    # Reject names that are not valid shell variable names.
 
1257
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1258
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
 
1259
   { (exit 1); exit 1; }; }
 
1260
    ac_useropt_orig=$ac_useropt
 
1261
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1262
    case $ac_user_opts in
 
1263
      *"
 
1264
"with_$ac_useropt"
 
1265
"*) ;;
 
1266
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 
1267
         ac_unrecognized_sep=', ';;
 
1268
    esac
 
1269
    eval with_$ac_useropt=no ;;
 
1270
 
 
1271
  --x)
 
1272
    # Obsolete; use --with-x.
 
1273
    with_x=yes ;;
 
1274
 
 
1275
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
1276
  | --x-incl | --x-inc | --x-in | --x-i)
 
1277
    ac_prev=x_includes ;;
 
1278
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
1279
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
1280
    x_includes=$ac_optarg ;;
 
1281
 
 
1282
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
1283
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
1284
    ac_prev=x_libraries ;;
 
1285
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
1286
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
1287
    x_libraries=$ac_optarg ;;
 
1288
 
 
1289
  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
 
1290
Try \`$0 --help' for more information." >&2
 
1291
   { (exit 1); exit 1; }; }
 
1292
    ;;
 
1293
 
 
1294
  *=*)
 
1295
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1296
    # Reject names that are not valid shell variable names.
 
1297
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
1298
      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
1299
   { (exit 1); exit 1; }; }
 
1300
    eval $ac_envvar=\$ac_optarg
 
1301
    export $ac_envvar ;;
 
1302
 
 
1303
  *)
 
1304
    # FIXME: should be removed in autoconf 3.0.
 
1305
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1306
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1307
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1308
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
1309
    ;;
 
1310
 
 
1311
  esac
 
1312
done
 
1313
 
 
1314
if test -n "$ac_prev"; then
 
1315
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1316
  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
 
1317
   { (exit 1); exit 1; }; }
 
1318
fi
 
1319
 
 
1320
if test -n "$ac_unrecognized_opts"; then
 
1321
  case $enable_option_checking in
 
1322
    no) ;;
 
1323
    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
 
1324
   { (exit 1); exit 1; }; } ;;
 
1325
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 
1326
  esac
 
1327
fi
 
1328
 
 
1329
# Check all directory arguments for consistency.
 
1330
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1331
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1332
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1333
                libdir localedir mandir
 
1334
do
 
1335
  eval ac_val=\$$ac_var
 
1336
  # Remove trailing slashes.
 
1337
  case $ac_val in
 
1338
    */ )
 
1339
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 
1340
      eval $ac_var=\$ac_val;;
 
1341
  esac
 
1342
  # Be sure to have absolute directory names.
 
1343
  case $ac_val in
 
1344
    [\\/$]* | ?:[\\/]* )  continue;;
 
1345
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1346
  esac
 
1347
  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
1348
   { (exit 1); exit 1; }; }
 
1349
done
 
1350
 
 
1351
# There might be people who depend on the old broken behavior: `$host'
 
1352
# used to hold the argument of --host etc.
 
1353
# FIXME: To remove some day.
 
1354
build=$build_alias
 
1355
host=$host_alias
 
1356
target=$target_alias
 
1357
 
 
1358
# FIXME: To remove some day.
 
1359
if test "x$host_alias" != x; then
 
1360
  if test "x$build_alias" = x; then
 
1361
    cross_compiling=maybe
 
1362
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
1363
    If a cross compiler is detected then cross compile mode will be used." >&2
 
1364
  elif test "x$build_alias" != "x$host_alias"; then
 
1365
    cross_compiling=yes
 
1366
  fi
 
1367
fi
 
1368
 
 
1369
ac_tool_prefix=
 
1370
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1371
 
 
1372
test "$silent" = yes && exec 6>/dev/null
 
1373
 
 
1374
 
 
1375
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1376
ac_ls_di=`ls -di .` &&
 
1377
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1378
  { $as_echo "$as_me: error: working directory cannot be determined" >&2
 
1379
   { (exit 1); exit 1; }; }
 
1380
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1381
  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
 
1382
   { (exit 1); exit 1; }; }
 
1383
 
 
1384
 
 
1385
# Find the source files, if location was not specified.
 
1386
if test -z "$srcdir"; then
 
1387
  ac_srcdir_defaulted=yes
 
1388
  # Try the directory containing this script, then the parent directory.
 
1389
  ac_confdir=`$as_dirname -- "$as_myself" ||
 
1390
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1391
         X"$as_myself" : 'X\(//\)[^/]' \| \
 
1392
         X"$as_myself" : 'X\(//\)$' \| \
 
1393
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 
1394
$as_echo X"$as_myself" |
 
1395
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1396
            s//\1/
 
1397
            q
 
1398
          }
 
1399
          /^X\(\/\/\)[^/].*/{
 
1400
            s//\1/
 
1401
            q
 
1402
          }
 
1403
          /^X\(\/\/\)$/{
 
1404
            s//\1/
 
1405
            q
 
1406
          }
 
1407
          /^X\(\/\).*/{
 
1408
            s//\1/
 
1409
            q
 
1410
          }
 
1411
          s/.*/./; q'`
 
1412
  srcdir=$ac_confdir
 
1413
  if test ! -r "$srcdir/$ac_unique_file"; then
 
1414
    srcdir=..
 
1415
  fi
 
1416
else
 
1417
  ac_srcdir_defaulted=no
 
1418
fi
 
1419
if test ! -r "$srcdir/$ac_unique_file"; then
 
1420
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1421
  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
1422
   { (exit 1); exit 1; }; }
 
1423
fi
 
1424
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1425
ac_abs_confdir=`(
 
1426
        cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
 
1427
   { (exit 1); exit 1; }; }
 
1428
        pwd)`
 
1429
# When building in place, set srcdir=.
 
1430
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1431
  srcdir=.
 
1432
fi
 
1433
# Remove unnecessary trailing slashes from srcdir.
 
1434
# Double slashes in file names in object file debugging info
 
1435
# mess up M-x gdb in Emacs.
 
1436
case $srcdir in
 
1437
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1438
esac
 
1439
for ac_var in $ac_precious_vars; do
 
1440
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1441
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1442
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1443
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1444
done
 
1445
 
 
1446
#
 
1447
# Report the --help message.
 
1448
#
 
1449
if test "$ac_init_help" = "long"; then
 
1450
  # Omit some internal or obsolete options to make the list less imposing.
 
1451
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1452
  cat <<_ACEOF
 
1453
\`configure' configures libffcall/trampoline_r 0x010B to adapt to many kinds of systems.
 
1454
 
 
1455
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1456
 
 
1457
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1458
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1459
 
 
1460
Defaults for the options are specified in brackets.
 
1461
 
 
1462
Configuration:
 
1463
  -h, --help              display this help and exit
 
1464
      --help=short        display options specific to this package
 
1465
      --help=recursive    display the short help of all the included packages
 
1466
  -V, --version           display version information and exit
 
1467
  -q, --quiet, --silent   do not print \`checking...' messages
 
1468
      --cache-file=FILE   cache test results in FILE [disabled]
 
1469
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1470
  -n, --no-create         do not create output files
 
1471
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1472
 
 
1473
Installation directories:
 
1474
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1475
                          [$ac_default_prefix]
 
1476
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1477
                          [PREFIX]
 
1478
 
 
1479
By default, \`make install' will install all the files in
 
1480
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1481
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1482
for instance \`--prefix=\$HOME'.
 
1483
 
 
1484
For better control, use the options below.
 
1485
 
 
1486
Fine tuning of the installation directories:
 
1487
  --bindir=DIR            user executables [EPREFIX/bin]
 
1488
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
 
1489
  --libexecdir=DIR        program executables [EPREFIX/libexec]
 
1490
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 
1491
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 
1492
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 
1493
  --libdir=DIR            object code libraries [EPREFIX/lib]
 
1494
  --includedir=DIR        C header files [PREFIX/include]
 
1495
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 
1496
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 
1497
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 
1498
  --infodir=DIR           info documentation [DATAROOTDIR/info]
 
1499
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 
1500
  --mandir=DIR            man documentation [DATAROOTDIR/man]
 
1501
  --docdir=DIR            documentation root
 
1502
                          [DATAROOTDIR/doc/libffcall-trampoline_r]
 
1503
  --htmldir=DIR           html documentation [DOCDIR]
 
1504
  --dvidir=DIR            dvi documentation [DOCDIR]
 
1505
  --pdfdir=DIR            pdf documentation [DOCDIR]
 
1506
  --psdir=DIR             ps documentation [DOCDIR]
 
1507
_ACEOF
 
1508
 
 
1509
  cat <<\_ACEOF
 
1510
 
 
1511
System types:
 
1512
  --build=BUILD     configure for building on BUILD [guessed]
 
1513
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1514
_ACEOF
 
1515
fi
 
1516
 
 
1517
if test -n "$ac_init_help"; then
 
1518
  case $ac_init_help in
 
1519
     short | recursive ) echo "Configuration of libffcall/trampoline_r 0x010B:";;
 
1520
   esac
 
1521
  cat <<\_ACEOF
 
1522
 
 
1523
Optional Features:
 
1524
  --disable-option-checking  ignore unrecognized --enable/--with options
 
1525
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1526
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1527
  --enable-shared[=PKGS]  build shared libraries [default=no]
 
1528
  --enable-static[=PKGS]  build static libraries [default=yes]
 
1529
  --enable-fast-install[=PKGS]
 
1530
                          optimize for fast installation [default=yes]
 
1531
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1532
 
 
1533
Optional Packages:
 
1534
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1535
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1536
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1537
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1538
                          both]
 
1539
  --with-tags[=TAGS]      include additional configurations [automatic]
 
1540
 
 
1541
Some influential environment variables:
 
1542
  CC          C compiler command
 
1543
  CFLAGS      C compiler flags
 
1544
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1545
              nonstandard directory <lib dir>
 
1546
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1547
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
 
1548
              you have headers in a nonstandard directory <include dir>
 
1549
  CPP         C preprocessor
 
1550
  CXX         C++ compiler command
 
1551
  CXXFLAGS    C++ compiler flags
 
1552
  CXXCPP      C++ preprocessor
 
1553
  F77         Fortran 77 compiler command
 
1554
  FFLAGS      Fortran 77 compiler flags
 
1555
 
 
1556
Use these variables to override the choices made by `configure' or to help
 
1557
it to find libraries and programs with nonstandard names/locations.
 
1558
 
 
1559
_ACEOF
 
1560
ac_status=$?
 
1561
fi
 
1562
 
 
1563
if test "$ac_init_help" = "recursive"; then
 
1564
  # If there are subdirs, report their specific --help.
 
1565
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1566
    test -d "$ac_dir" ||
 
1567
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 
1568
      continue
 
1569
    ac_builddir=.
 
1570
 
 
1571
case "$ac_dir" in
 
1572
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1573
*)
 
1574
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
1575
  # A ".." for each directory in $ac_dir_suffix.
 
1576
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
1577
  case $ac_top_builddir_sub in
 
1578
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1579
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1580
  esac ;;
 
1581
esac
 
1582
ac_abs_top_builddir=$ac_pwd
 
1583
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1584
# for backward compatibility:
 
1585
ac_top_builddir=$ac_top_build_prefix
 
1586
 
 
1587
case $srcdir in
 
1588
  .)  # We are building in place.
 
1589
    ac_srcdir=.
 
1590
    ac_top_srcdir=$ac_top_builddir_sub
 
1591
    ac_abs_top_srcdir=$ac_pwd ;;
 
1592
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
1593
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1594
    ac_top_srcdir=$srcdir
 
1595
    ac_abs_top_srcdir=$srcdir ;;
 
1596
  *) # Relative name.
 
1597
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1598
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1599
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1600
esac
 
1601
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1602
 
 
1603
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1604
    # Check for guested configure.
 
1605
    if test -f "$ac_srcdir/configure.gnu"; then
 
1606
      echo &&
 
1607
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1608
    elif test -f "$ac_srcdir/configure"; then
 
1609
      echo &&
 
1610
      $SHELL "$ac_srcdir/configure" --help=recursive
 
1611
    else
 
1612
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1613
    fi || ac_status=$?
 
1614
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1615
  done
 
1616
fi
 
1617
 
 
1618
test -n "$ac_init_help" && exit $ac_status
 
1619
if $ac_init_version; then
 
1620
  cat <<\_ACEOF
 
1621
libffcall/trampoline_r configure 0x010B
 
1622
generated by GNU Autoconf 2.63
 
1623
 
 
1624
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
1625
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
 
1626
This configure script is free software; the Free Software Foundation
 
1627
gives unlimited permission to copy, distribute and modify it.
 
1628
_ACEOF
 
1629
  exit
 
1630
fi
 
1631
cat >config.log <<_ACEOF
 
1632
This file contains any messages produced by compilers while
 
1633
running configure, to aid debugging if configure makes a mistake.
 
1634
 
 
1635
It was created by libffcall/trampoline_r $as_me 0x010B, which was
 
1636
generated by GNU Autoconf 2.63.  Invocation command line was
 
1637
 
 
1638
  $ $0 $@
 
1639
 
 
1640
_ACEOF
 
1641
exec 5>>config.log
 
1642
{
 
1643
cat <<_ASUNAME
 
1644
## --------- ##
 
1645
## Platform. ##
 
1646
## --------- ##
 
1647
 
 
1648
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1649
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1650
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1651
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1652
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1653
 
 
1654
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1655
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1656
 
 
1657
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1658
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1659
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1660
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
1661
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1662
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1663
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1664
 
 
1665
_ASUNAME
 
1666
 
 
1667
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1668
for as_dir in $PATH
 
1669
do
 
1670
  IFS=$as_save_IFS
 
1671
  test -z "$as_dir" && as_dir=.
 
1672
  $as_echo "PATH: $as_dir"
 
1673
done
 
1674
IFS=$as_save_IFS
 
1675
 
 
1676
} >&5
 
1677
 
 
1678
cat >&5 <<_ACEOF
 
1679
 
 
1680
 
 
1681
## ----------- ##
 
1682
## Core tests. ##
 
1683
## ----------- ##
 
1684
 
 
1685
_ACEOF
 
1686
 
 
1687
 
 
1688
# Keep a trace of the command line.
 
1689
# Strip out --no-create and --no-recursion so they do not pile up.
 
1690
# Strip out --silent because we don't want to record it for future runs.
 
1691
# Also quote any args containing shell meta-characters.
 
1692
# Make two passes to allow for proper duplicate-argument suppression.
 
1693
ac_configure_args=
 
1694
ac_configure_args0=
 
1695
ac_configure_args1=
 
1696
ac_must_keep_next=false
 
1697
for ac_pass in 1 2
 
1698
do
 
1699
  for ac_arg
 
1700
  do
 
1701
    case $ac_arg in
 
1702
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1703
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1704
    | -silent | --silent | --silen | --sile | --sil)
 
1705
      continue ;;
 
1706
    *\'*)
 
1707
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1708
    esac
 
1709
    case $ac_pass in
 
1710
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1711
    2)
 
1712
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1713
      if test $ac_must_keep_next = true; then
 
1714
        ac_must_keep_next=false # Got value, back to normal.
 
1715
      else
 
1716
        case $ac_arg in
 
1717
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1718
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1719
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1720
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1721
            case "$ac_configure_args0 " in
 
1722
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1723
            esac
 
1724
            ;;
 
1725
          -* ) ac_must_keep_next=true ;;
 
1726
        esac
 
1727
      fi
 
1728
      ac_configure_args="$ac_configure_args '$ac_arg'"
 
1729
      ;;
 
1730
    esac
 
1731
  done
 
1732
done
 
1733
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1734
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1735
 
 
1736
# When interrupted or exit'd, cleanup temporary files, and complete
 
1737
# config.log.  We remove comments because anyway the quotes in there
 
1738
# would cause problems or look ugly.
 
1739
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
1740
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
1741
trap 'exit_status=$?
 
1742
  # Save into config.log some information that might help in debugging.
 
1743
  {
 
1744
    echo
 
1745
 
 
1746
    cat <<\_ASBOX
 
1747
## ---------------- ##
 
1748
## Cache variables. ##
 
1749
## ---------------- ##
 
1750
_ASBOX
 
1751
    echo
 
1752
    # The following way of writing the cache mishandles newlines in values,
 
1753
(
 
1754
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
1755
    eval ac_val=\$$ac_var
 
1756
    case $ac_val in #(
 
1757
    *${as_nl}*)
 
1758
      case $ac_var in #(
 
1759
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
 
1760
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
1761
      esac
 
1762
      case $ac_var in #(
 
1763
      _ | IFS | as_nl) ;; #(
 
1764
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
1765
      *) $as_unset $ac_var ;;
 
1766
      esac ;;
 
1767
    esac
 
1768
  done
 
1769
  (set) 2>&1 |
 
1770
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
1771
    *${as_nl}ac_space=\ *)
 
1772
      sed -n \
 
1773
        "s/'\''/'\''\\\\'\'''\''/g;
 
1774
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
1775
      ;; #(
 
1776
    *)
 
1777
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
1778
      ;;
 
1779
    esac |
 
1780
    sort
 
1781
)
 
1782
    echo
 
1783
 
 
1784
    cat <<\_ASBOX
 
1785
## ----------------- ##
 
1786
## Output variables. ##
 
1787
## ----------------- ##
 
1788
_ASBOX
 
1789
    echo
 
1790
    for ac_var in $ac_subst_vars
 
1791
    do
 
1792
      eval ac_val=\$$ac_var
 
1793
      case $ac_val in
 
1794
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1795
      esac
 
1796
      $as_echo "$ac_var='\''$ac_val'\''"
 
1797
    done | sort
 
1798
    echo
 
1799
 
 
1800
    if test -n "$ac_subst_files"; then
 
1801
      cat <<\_ASBOX
 
1802
## ------------------- ##
 
1803
## File substitutions. ##
 
1804
## ------------------- ##
 
1805
_ASBOX
 
1806
      echo
 
1807
      for ac_var in $ac_subst_files
 
1808
      do
 
1809
        eval ac_val=\$$ac_var
 
1810
        case $ac_val in
 
1811
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1812
        esac
 
1813
        $as_echo "$ac_var='\''$ac_val'\''"
 
1814
      done | sort
 
1815
      echo
 
1816
    fi
 
1817
 
 
1818
    if test -s confdefs.h; then
 
1819
      cat <<\_ASBOX
 
1820
## ----------- ##
 
1821
## confdefs.h. ##
 
1822
## ----------- ##
 
1823
_ASBOX
 
1824
      echo
 
1825
      cat confdefs.h
 
1826
      echo
 
1827
    fi
 
1828
    test "$ac_signal" != 0 &&
 
1829
      $as_echo "$as_me: caught signal $ac_signal"
 
1830
    $as_echo "$as_me: exit $exit_status"
 
1831
  } >&5
 
1832
  rm -f core *.core core.conftest.* &&
 
1833
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
1834
    exit $exit_status
 
1835
' 0
 
1836
for ac_signal in 1 2 13 15; do
 
1837
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1838
done
 
1839
ac_signal=0
 
1840
 
 
1841
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1842
rm -f -r conftest* confdefs.h
 
1843
 
 
1844
# Predefined preprocessor variables.
 
1845
 
 
1846
cat >>confdefs.h <<_ACEOF
 
1847
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1848
_ACEOF
 
1849
 
 
1850
 
 
1851
cat >>confdefs.h <<_ACEOF
 
1852
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1853
_ACEOF
 
1854
 
 
1855
 
 
1856
cat >>confdefs.h <<_ACEOF
 
1857
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1858
_ACEOF
 
1859
 
 
1860
 
 
1861
cat >>confdefs.h <<_ACEOF
 
1862
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1863
_ACEOF
 
1864
 
 
1865
 
 
1866
cat >>confdefs.h <<_ACEOF
 
1867
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1868
_ACEOF
 
1869
 
 
1870
 
 
1871
# Let the site file select an alternate cache file if it wants to.
 
1872
# Prefer an explicitly selected file to automatically selected ones.
 
1873
ac_site_file1=NONE
 
1874
ac_site_file2=NONE
 
1875
if test -n "$CONFIG_SITE"; then
 
1876
  ac_site_file1=$CONFIG_SITE
 
1877
elif test "x$prefix" != xNONE; then
 
1878
  ac_site_file1=$prefix/share/config.site
 
1879
  ac_site_file2=$prefix/etc/config.site
 
1880
else
 
1881
  ac_site_file1=$ac_default_prefix/share/config.site
 
1882
  ac_site_file2=$ac_default_prefix/etc/config.site
 
1883
fi
 
1884
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
 
1885
do
 
1886
  test "x$ac_site_file" = xNONE && continue
 
1887
  if test -r "$ac_site_file"; then
 
1888
    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1889
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
 
1890
    sed 's/^/| /' "$ac_site_file" >&5
 
1891
    . "$ac_site_file"
 
1892
  fi
 
1893
done
 
1894
 
 
1895
if test -r "$cache_file"; then
 
1896
  # Some versions of bash will fail to source /dev/null (special
 
1897
  # files actually), so we avoid doing that.
 
1898
  if test -f "$cache_file"; then
 
1899
    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1900
$as_echo "$as_me: loading cache $cache_file" >&6;}
 
1901
    case $cache_file in
 
1902
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
1903
      *)                      . "./$cache_file";;
 
1904
    esac
 
1905
  fi
 
1906
else
 
1907
  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1908
$as_echo "$as_me: creating cache $cache_file" >&6;}
 
1909
  >$cache_file
 
1910
fi
 
1911
 
 
1912
# Check that the precious variables saved in the cache have kept the same
 
1913
# value.
 
1914
ac_cache_corrupted=false
 
1915
for ac_var in $ac_precious_vars; do
 
1916
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1917
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1918
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
1919
  eval ac_new_val=\$ac_env_${ac_var}_value
 
1920
  case $ac_old_set,$ac_new_set in
 
1921
    set,)
 
1922
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1923
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1924
      ac_cache_corrupted=: ;;
 
1925
    ,set)
 
1926
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1927
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1928
      ac_cache_corrupted=: ;;
 
1929
    ,);;
 
1930
    *)
 
1931
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1932
        # differences in whitespace do not lead to failure.
 
1933
        ac_old_val_w=`echo x $ac_old_val`
 
1934
        ac_new_val_w=`echo x $ac_new_val`
 
1935
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
 
1936
          { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1937
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1938
          ac_cache_corrupted=:
 
1939
        else
 
1940
          { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 
1941
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 
1942
          eval $ac_var=\$ac_old_val
 
1943
        fi
 
1944
        { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
 
1945
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 
1946
        { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
 
1947
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
 
1948
      fi;;
 
1949
  esac
 
1950
  # Pass precious variables to config.status.
 
1951
  if test "$ac_new_set" = set; then
 
1952
    case $ac_new_val in
 
1953
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1954
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1955
    esac
 
1956
    case " $ac_configure_args " in
 
1957
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1958
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1959
    esac
 
1960
  fi
 
1961
done
 
1962
if $ac_cache_corrupted; then
 
1963
  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
1964
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
1965
  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1966
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1967
  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1968
$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1969
   { (exit 1); exit 1; }; }
 
1970
fi
 
1971
 
 
1972
 
 
1973
 
 
1974
 
 
1975
 
 
1976
 
 
1977
 
 
1978
 
 
1979
 
 
1980
 
 
1981
 
 
1982
 
 
1983
 
 
1984
 
 
1985
 
 
1986
 
 
1987
 
 
1988
 
 
1989
 
 
1990
 
 
1991
 
 
1992
 
 
1993
 
 
1994
 
 
1995
 
 
1996
ac_ext=c
 
1997
ac_cpp='$CPP $CPPFLAGS'
 
1998
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1999
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2000
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2001
 
 
2002
 
 
2003
 
 
2004
ac_config_headers="$ac_config_headers config.h"
 
2005
 
 
2006
ac_config_headers="$ac_config_headers trampoline_r.h"
 
2007
 
 
2008
ac_config_files="$ac_config_files Makefile"
 
2009
 
 
2010
ac_ext=c
 
2011
ac_cpp='$CPP $CPPFLAGS'
 
2012
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2013
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2014
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2015
if test -n "$ac_tool_prefix"; then
 
2016
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
2017
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
2018
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2019
$as_echo_n "checking for $ac_word... " >&6; }
 
2020
if test "${ac_cv_prog_CC+set}" = set; then
 
2021
  $as_echo_n "(cached) " >&6
 
2022
else
 
2023
  if test -n "$CC"; then
 
2024
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2025
else
 
2026
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2027
for as_dir in $PATH
 
2028
do
 
2029
  IFS=$as_save_IFS
 
2030
  test -z "$as_dir" && as_dir=.
 
2031
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2032
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2033
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2034
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2035
    break 2
 
2036
  fi
 
2037
done
 
2038
done
 
2039
IFS=$as_save_IFS
 
2040
 
 
2041
fi
 
2042
fi
 
2043
CC=$ac_cv_prog_CC
 
2044
if test -n "$CC"; then
 
2045
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
2046
$as_echo "$CC" >&6; }
 
2047
else
 
2048
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2049
$as_echo "no" >&6; }
 
2050
fi
 
2051
 
 
2052
 
 
2053
fi
 
2054
if test -z "$ac_cv_prog_CC"; then
 
2055
  ac_ct_CC=$CC
 
2056
  # Extract the first word of "gcc", so it can be a program name with args.
 
2057
set dummy gcc; ac_word=$2
 
2058
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2059
$as_echo_n "checking for $ac_word... " >&6; }
 
2060
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2061
  $as_echo_n "(cached) " >&6
 
2062
else
 
2063
  if test -n "$ac_ct_CC"; then
 
2064
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2065
else
 
2066
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2067
for as_dir in $PATH
 
2068
do
 
2069
  IFS=$as_save_IFS
 
2070
  test -z "$as_dir" && as_dir=.
 
2071
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2072
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2073
    ac_cv_prog_ac_ct_CC="gcc"
 
2074
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2075
    break 2
 
2076
  fi
 
2077
done
 
2078
done
 
2079
IFS=$as_save_IFS
 
2080
 
 
2081
fi
 
2082
fi
 
2083
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2084
if test -n "$ac_ct_CC"; then
 
2085
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2086
$as_echo "$ac_ct_CC" >&6; }
 
2087
else
 
2088
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2089
$as_echo "no" >&6; }
 
2090
fi
 
2091
 
 
2092
  if test "x$ac_ct_CC" = x; then
 
2093
    CC=""
 
2094
  else
 
2095
    case $cross_compiling:$ac_tool_warned in
 
2096
yes:)
 
2097
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
2098
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2099
ac_tool_warned=yes ;;
 
2100
esac
 
2101
    CC=$ac_ct_CC
 
2102
  fi
 
2103
else
 
2104
  CC="$ac_cv_prog_CC"
 
2105
fi
 
2106
 
 
2107
if test -z "$CC"; then
 
2108
          if test -n "$ac_tool_prefix"; then
 
2109
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2110
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
2111
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2112
$as_echo_n "checking for $ac_word... " >&6; }
 
2113
if test "${ac_cv_prog_CC+set}" = set; then
 
2114
  $as_echo_n "(cached) " >&6
 
2115
else
 
2116
  if test -n "$CC"; then
 
2117
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2118
else
 
2119
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2120
for as_dir in $PATH
 
2121
do
 
2122
  IFS=$as_save_IFS
 
2123
  test -z "$as_dir" && as_dir=.
 
2124
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2125
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2126
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2127
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2128
    break 2
 
2129
  fi
 
2130
done
 
2131
done
 
2132
IFS=$as_save_IFS
 
2133
 
 
2134
fi
 
2135
fi
 
2136
CC=$ac_cv_prog_CC
 
2137
if test -n "$CC"; then
 
2138
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
2139
$as_echo "$CC" >&6; }
 
2140
else
 
2141
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2142
$as_echo "no" >&6; }
 
2143
fi
 
2144
 
 
2145
 
 
2146
  fi
 
2147
fi
 
2148
if test -z "$CC"; then
 
2149
  # Extract the first word of "cc", so it can be a program name with args.
 
2150
set dummy cc; ac_word=$2
 
2151
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2152
$as_echo_n "checking for $ac_word... " >&6; }
 
2153
if test "${ac_cv_prog_CC+set}" = set; then
 
2154
  $as_echo_n "(cached) " >&6
 
2155
else
 
2156
  if test -n "$CC"; then
 
2157
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2158
else
 
2159
  ac_prog_rejected=no
 
2160
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2161
for as_dir in $PATH
 
2162
do
 
2163
  IFS=$as_save_IFS
 
2164
  test -z "$as_dir" && as_dir=.
 
2165
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2166
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2167
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2168
       ac_prog_rejected=yes
 
2169
       continue
 
2170
     fi
 
2171
    ac_cv_prog_CC="cc"
 
2172
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2173
    break 2
 
2174
  fi
 
2175
done
 
2176
done
 
2177
IFS=$as_save_IFS
 
2178
 
 
2179
if test $ac_prog_rejected = yes; then
 
2180
  # We found a bogon in the path, so make sure we never use it.
 
2181
  set dummy $ac_cv_prog_CC
 
2182
  shift
 
2183
  if test $# != 0; then
 
2184
    # We chose a different compiler from the bogus one.
 
2185
    # However, it has the same basename, so the bogon will be chosen
 
2186
    # first if we set CC to just the basename; use the full file name.
 
2187
    shift
 
2188
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
2189
  fi
 
2190
fi
 
2191
fi
 
2192
fi
 
2193
CC=$ac_cv_prog_CC
 
2194
if test -n "$CC"; then
 
2195
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
2196
$as_echo "$CC" >&6; }
 
2197
else
 
2198
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2199
$as_echo "no" >&6; }
 
2200
fi
 
2201
 
 
2202
 
 
2203
fi
 
2204
if test -z "$CC"; then
 
2205
  if test -n "$ac_tool_prefix"; then
 
2206
  for ac_prog in cl.exe
 
2207
  do
 
2208
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2209
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2210
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2211
$as_echo_n "checking for $ac_word... " >&6; }
 
2212
if test "${ac_cv_prog_CC+set}" = set; then
 
2213
  $as_echo_n "(cached) " >&6
 
2214
else
 
2215
  if test -n "$CC"; then
 
2216
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2217
else
 
2218
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2219
for as_dir in $PATH
 
2220
do
 
2221
  IFS=$as_save_IFS
 
2222
  test -z "$as_dir" && as_dir=.
 
2223
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2224
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2225
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2226
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2227
    break 2
 
2228
  fi
 
2229
done
 
2230
done
 
2231
IFS=$as_save_IFS
 
2232
 
 
2233
fi
 
2234
fi
 
2235
CC=$ac_cv_prog_CC
 
2236
if test -n "$CC"; then
 
2237
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
2238
$as_echo "$CC" >&6; }
 
2239
else
 
2240
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2241
$as_echo "no" >&6; }
 
2242
fi
 
2243
 
 
2244
 
 
2245
    test -n "$CC" && break
 
2246
  done
 
2247
fi
 
2248
if test -z "$CC"; then
 
2249
  ac_ct_CC=$CC
 
2250
  for ac_prog in cl.exe
 
2251
do
 
2252
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2253
set dummy $ac_prog; ac_word=$2
 
2254
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2255
$as_echo_n "checking for $ac_word... " >&6; }
 
2256
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2257
  $as_echo_n "(cached) " >&6
 
2258
else
 
2259
  if test -n "$ac_ct_CC"; then
 
2260
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2261
else
 
2262
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2263
for as_dir in $PATH
 
2264
do
 
2265
  IFS=$as_save_IFS
 
2266
  test -z "$as_dir" && as_dir=.
 
2267
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2268
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2269
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2270
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2271
    break 2
 
2272
  fi
 
2273
done
 
2274
done
 
2275
IFS=$as_save_IFS
 
2276
 
 
2277
fi
 
2278
fi
 
2279
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2280
if test -n "$ac_ct_CC"; then
 
2281
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2282
$as_echo "$ac_ct_CC" >&6; }
 
2283
else
 
2284
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2285
$as_echo "no" >&6; }
 
2286
fi
 
2287
 
 
2288
 
 
2289
  test -n "$ac_ct_CC" && break
 
2290
done
 
2291
 
 
2292
  if test "x$ac_ct_CC" = x; then
 
2293
    CC=""
 
2294
  else
 
2295
    case $cross_compiling:$ac_tool_warned in
 
2296
yes:)
 
2297
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
2298
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2299
ac_tool_warned=yes ;;
 
2300
esac
 
2301
    CC=$ac_ct_CC
 
2302
  fi
 
2303
fi
 
2304
 
 
2305
fi
 
2306
 
 
2307
 
 
2308
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
2309
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2310
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
2311
See \`config.log' for more details." >&5
 
2312
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
 
2313
See \`config.log' for more details." >&2;}
 
2314
   { (exit 1); exit 1; }; }; }
 
2315
 
 
2316
# Provide some information about the compiler.
 
2317
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
 
2318
set X $ac_compile
 
2319
ac_compiler=$2
 
2320
{ (ac_try="$ac_compiler --version >&5"
 
2321
case "(($ac_try" in
 
2322
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2323
  *) ac_try_echo=$ac_try;;
 
2324
esac
 
2325
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
2326
$as_echo "$ac_try_echo") >&5
 
2327
  (eval "$ac_compiler --version >&5") 2>&5
 
2328
  ac_status=$?
 
2329
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2330
  (exit $ac_status); }
 
2331
{ (ac_try="$ac_compiler -v >&5"
 
2332
case "(($ac_try" in
 
2333
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2334
  *) ac_try_echo=$ac_try;;
 
2335
esac
 
2336
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
2337
$as_echo "$ac_try_echo") >&5
 
2338
  (eval "$ac_compiler -v >&5") 2>&5
 
2339
  ac_status=$?
 
2340
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2341
  (exit $ac_status); }
 
2342
{ (ac_try="$ac_compiler -V >&5"
 
2343
case "(($ac_try" in
 
2344
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2345
  *) ac_try_echo=$ac_try;;
 
2346
esac
 
2347
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
2348
$as_echo "$ac_try_echo") >&5
 
2349
  (eval "$ac_compiler -V >&5") 2>&5
 
2350
  ac_status=$?
 
2351
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2352
  (exit $ac_status); }
 
2353
 
 
2354
cat >conftest.$ac_ext <<_ACEOF
 
2355
/* confdefs.h.  */
 
2356
_ACEOF
 
2357
cat confdefs.h >>conftest.$ac_ext
 
2358
cat >>conftest.$ac_ext <<_ACEOF
 
2359
/* end confdefs.h.  */
 
2360
 
 
2361
int
 
2362
main ()
 
2363
{
 
2364
 
 
2365
  ;
 
2366
  return 0;
 
2367
}
 
2368
_ACEOF
 
2369
ac_clean_files_save=$ac_clean_files
 
2370
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
 
2371
# Try to create an executable without -o first, disregard a.out.
 
2372
# It will help us diagnose broken compilers, and finding out an intuition
 
2373
# of exeext.
 
2374
{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
2375
$as_echo_n "checking for C compiler default output file name... " >&6; }
 
2376
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2377
 
 
2378
# The possible output files:
 
2379
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 
2380
 
 
2381
ac_rmfiles=
 
2382
for ac_file in $ac_files
 
2383
do
 
2384
  case $ac_file in
 
2385
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
2386
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
2387
  esac
 
2388
done
 
2389
rm -f $ac_rmfiles
 
2390
 
 
2391
if { (ac_try="$ac_link_default"
 
2392
case "(($ac_try" in
 
2393
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2394
  *) ac_try_echo=$ac_try;;
 
2395
esac
 
2396
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
2397
$as_echo "$ac_try_echo") >&5
 
2398
  (eval "$ac_link_default") 2>&5
 
2399
  ac_status=$?
 
2400
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2401
  (exit $ac_status); }; then
 
2402
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
2403
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
2404
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
2405
# so that the user can short-circuit this test for compilers unknown to
 
2406
# Autoconf.
 
2407
for ac_file in $ac_files ''
 
2408
do
 
2409
  test -f "$ac_file" || continue
 
2410
  case $ac_file in
 
2411
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
 
2412
        ;;
 
2413
    [ab].out )
 
2414
        # We found the default executable, but exeext='' is most
 
2415
        # certainly right.
 
2416
        break;;
 
2417
    *.* )
 
2418
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
2419
        then :; else
 
2420
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2421
        fi
 
2422
        # We set ac_cv_exeext here because the later test for it is not
 
2423
        # safe: cross compilers may not add the suffix if given an `-o'
 
2424
        # argument, so we may need to know it at that point already.
 
2425
        # Even if this section looks crufty: it has the advantage of
 
2426
        # actually working.
 
2427
        break;;
 
2428
    * )
 
2429
        break;;
 
2430
  esac
 
2431
done
 
2432
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
2433
 
 
2434
else
 
2435
  ac_file=''
 
2436
fi
 
2437
 
 
2438
{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
 
2439
$as_echo "$ac_file" >&6; }
 
2440
if test -z "$ac_file"; then
 
2441
  $as_echo "$as_me: failed program was:" >&5
 
2442
sed 's/^/| /' conftest.$ac_ext >&5
 
2443
 
 
2444
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
2445
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2446
{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
 
2447
See \`config.log' for more details." >&5
 
2448
$as_echo "$as_me: error: C compiler cannot create executables
 
2449
See \`config.log' for more details." >&2;}
 
2450
   { (exit 77); exit 77; }; }; }
 
2451
fi
 
2452
 
 
2453
ac_exeext=$ac_cv_exeext
 
2454
 
 
2455
# Check that the compiler produces executables we can run.  If not, either
 
2456
# the compiler is broken, or we cross compile.
 
2457
{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
2458
$as_echo_n "checking whether the C compiler works... " >&6; }
 
2459
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
2460
# If not cross compiling, check that we can run a simple program.
 
2461
if test "$cross_compiling" != yes; then
 
2462
  if { ac_try='./$ac_file'
 
2463
  { (case "(($ac_try" in
 
2464
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2465
  *) ac_try_echo=$ac_try;;
 
2466
esac
 
2467
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
2468
$as_echo "$ac_try_echo") >&5
 
2469
  (eval "$ac_try") 2>&5
 
2470
  ac_status=$?
 
2471
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2472
  (exit $ac_status); }; }; then
 
2473
    cross_compiling=no
 
2474
  else
 
2475
    if test "$cross_compiling" = maybe; then
 
2476
        cross_compiling=yes
 
2477
    else
 
2478
        { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
2479
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2480
{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
2481
If you meant to cross compile, use \`--host'.
 
2482
See \`config.log' for more details." >&5
 
2483
$as_echo "$as_me: error: cannot run C compiled programs.
 
2484
If you meant to cross compile, use \`--host'.
 
2485
See \`config.log' for more details." >&2;}
 
2486
   { (exit 1); exit 1; }; }; }
 
2487
    fi
 
2488
  fi
 
2489
fi
 
2490
{ $as_echo "$as_me:$LINENO: result: yes" >&5
 
2491
$as_echo "yes" >&6; }
 
2492
 
 
2493
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
 
2494
ac_clean_files=$ac_clean_files_save
 
2495
# Check that the compiler produces executables we can run.  If not, either
 
2496
# the compiler is broken, or we cross compile.
 
2497
{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
2498
$as_echo_n "checking whether we are cross compiling... " >&6; }
 
2499
{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
2500
$as_echo "$cross_compiling" >&6; }
 
2501
 
 
2502
{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
2503
$as_echo_n "checking for suffix of executables... " >&6; }
 
2504
if { (ac_try="$ac_link"
 
2505
case "(($ac_try" in
 
2506
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2507
  *) ac_try_echo=$ac_try;;
 
2508
esac
 
2509
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
2510
$as_echo "$ac_try_echo") >&5
 
2511
  (eval "$ac_link") 2>&5
 
2512
  ac_status=$?
 
2513
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2514
  (exit $ac_status); }; then
 
2515
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
2516
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
2517
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
2518
# `rm'.
 
2519
for ac_file in conftest.exe conftest conftest.*; do
 
2520
  test -f "$ac_file" || continue
 
2521
  case $ac_file in
 
2522
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
2523
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2524
          break;;
 
2525
    * ) break;;
 
2526
  esac
 
2527
done
 
2528
else
 
2529
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
2530
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2531
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
2532
See \`config.log' for more details." >&5
 
2533
$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
2534
See \`config.log' for more details." >&2;}
 
2535
   { (exit 1); exit 1; }; }; }
 
2536
fi
 
2537
 
 
2538
rm -f conftest$ac_cv_exeext
 
2539
{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
2540
$as_echo "$ac_cv_exeext" >&6; }
 
2541
 
 
2542
rm -f conftest.$ac_ext
 
2543
EXEEXT=$ac_cv_exeext
 
2544
ac_exeext=$EXEEXT
 
2545
{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
2546
$as_echo_n "checking for suffix of object files... " >&6; }
 
2547
if test "${ac_cv_objext+set}" = set; then
 
2548
  $as_echo_n "(cached) " >&6
 
2549
else
 
2550
  cat >conftest.$ac_ext <<_ACEOF
 
2551
/* confdefs.h.  */
 
2552
_ACEOF
 
2553
cat confdefs.h >>conftest.$ac_ext
 
2554
cat >>conftest.$ac_ext <<_ACEOF
 
2555
/* end confdefs.h.  */
 
2556
 
 
2557
int
 
2558
main ()
 
2559
{
 
2560
 
 
2561
  ;
 
2562
  return 0;
 
2563
}
 
2564
_ACEOF
 
2565
rm -f conftest.o conftest.obj
 
2566
if { (ac_try="$ac_compile"
 
2567
case "(($ac_try" in
 
2568
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2569
  *) ac_try_echo=$ac_try;;
 
2570
esac
 
2571
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
2572
$as_echo "$ac_try_echo") >&5
 
2573
  (eval "$ac_compile") 2>&5
 
2574
  ac_status=$?
 
2575
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2576
  (exit $ac_status); }; then
 
2577
  for ac_file in conftest.o conftest.obj conftest.*; do
 
2578
  test -f "$ac_file" || continue;
 
2579
  case $ac_file in
 
2580
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
 
2581
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
2582
       break;;
 
2583
  esac
 
2584
done
 
2585
else
 
2586
  $as_echo "$as_me: failed program was:" >&5
 
2587
sed 's/^/| /' conftest.$ac_ext >&5
 
2588
 
 
2589
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
2590
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2591
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
2592
See \`config.log' for more details." >&5
 
2593
$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
2594
See \`config.log' for more details." >&2;}
 
2595
   { (exit 1); exit 1; }; }; }
 
2596
fi
 
2597
 
 
2598
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
2599
fi
 
2600
{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
2601
$as_echo "$ac_cv_objext" >&6; }
 
2602
OBJEXT=$ac_cv_objext
 
2603
ac_objext=$OBJEXT
 
2604
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
2605
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
2606
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
2607
  $as_echo_n "(cached) " >&6
 
2608
else
 
2609
  cat >conftest.$ac_ext <<_ACEOF
 
2610
/* confdefs.h.  */
 
2611
_ACEOF
 
2612
cat confdefs.h >>conftest.$ac_ext
 
2613
cat >>conftest.$ac_ext <<_ACEOF
 
2614
/* end confdefs.h.  */
 
2615
 
 
2616
int
 
2617
main ()
 
2618
{
 
2619
#ifndef __GNUC__
 
2620
       choke me
 
2621
#endif
 
2622
 
 
2623
  ;
 
2624
  return 0;
 
2625
}
 
2626
_ACEOF
 
2627
rm -f conftest.$ac_objext
 
2628
if { (ac_try="$ac_compile"
 
2629
case "(($ac_try" in
 
2630
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2631
  *) ac_try_echo=$ac_try;;
 
2632
esac
 
2633
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
2634
$as_echo "$ac_try_echo") >&5
 
2635
  (eval "$ac_compile") 2>conftest.er1
 
2636
  ac_status=$?
 
2637
  grep -v '^ *+' conftest.er1 >conftest.err
 
2638
  rm -f conftest.er1
 
2639
  cat conftest.err >&5
 
2640
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2641
  (exit $ac_status); } && {
 
2642
         test -z "$ac_c_werror_flag" ||
 
2643
         test ! -s conftest.err
 
2644
       } && test -s conftest.$ac_objext; then
 
2645
  ac_compiler_gnu=yes
 
2646
else
 
2647
  $as_echo "$as_me: failed program was:" >&5
 
2648
sed 's/^/| /' conftest.$ac_ext >&5
 
2649
 
 
2650
        ac_compiler_gnu=no
 
2651
fi
 
2652
 
 
2653
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2654
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
2655
 
 
2656
fi
 
2657
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
2658
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
2659
if test $ac_compiler_gnu = yes; then
 
2660
  GCC=yes
 
2661
else
 
2662
  GCC=
 
2663
fi
 
2664
ac_test_CFLAGS=${CFLAGS+set}
 
2665
ac_save_CFLAGS=$CFLAGS
 
2666
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
2667
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
2668
if test "${ac_cv_prog_cc_g+set}" = set; then
 
2669
  $as_echo_n "(cached) " >&6
 
2670
else
 
2671
  ac_save_c_werror_flag=$ac_c_werror_flag
 
2672
   ac_c_werror_flag=yes
 
2673
   ac_cv_prog_cc_g=no
 
2674
   CFLAGS="-g"
 
2675
   cat >conftest.$ac_ext <<_ACEOF
 
2676
/* confdefs.h.  */
 
2677
_ACEOF
 
2678
cat confdefs.h >>conftest.$ac_ext
 
2679
cat >>conftest.$ac_ext <<_ACEOF
 
2680
/* end confdefs.h.  */
 
2681
 
 
2682
int
 
2683
main ()
 
2684
{
 
2685
 
 
2686
  ;
 
2687
  return 0;
 
2688
}
 
2689
_ACEOF
 
2690
rm -f conftest.$ac_objext
 
2691
if { (ac_try="$ac_compile"
 
2692
case "(($ac_try" in
 
2693
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2694
  *) ac_try_echo=$ac_try;;
 
2695
esac
 
2696
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
2697
$as_echo "$ac_try_echo") >&5
 
2698
  (eval "$ac_compile") 2>conftest.er1
 
2699
  ac_status=$?
 
2700
  grep -v '^ *+' conftest.er1 >conftest.err
 
2701
  rm -f conftest.er1
 
2702
  cat conftest.err >&5
 
2703
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2704
  (exit $ac_status); } && {
 
2705
         test -z "$ac_c_werror_flag" ||
 
2706
         test ! -s conftest.err
 
2707
       } && test -s conftest.$ac_objext; then
 
2708
  ac_cv_prog_cc_g=yes
 
2709
else
 
2710
  $as_echo "$as_me: failed program was:" >&5
 
2711
sed 's/^/| /' conftest.$ac_ext >&5
 
2712
 
 
2713
        CFLAGS=""
 
2714
      cat >conftest.$ac_ext <<_ACEOF
 
2715
/* confdefs.h.  */
 
2716
_ACEOF
 
2717
cat confdefs.h >>conftest.$ac_ext
 
2718
cat >>conftest.$ac_ext <<_ACEOF
 
2719
/* end confdefs.h.  */
 
2720
 
 
2721
int
 
2722
main ()
 
2723
{
 
2724
 
 
2725
  ;
 
2726
  return 0;
 
2727
}
 
2728
_ACEOF
 
2729
rm -f conftest.$ac_objext
 
2730
if { (ac_try="$ac_compile"
 
2731
case "(($ac_try" in
 
2732
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2733
  *) ac_try_echo=$ac_try;;
 
2734
esac
 
2735
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
2736
$as_echo "$ac_try_echo") >&5
 
2737
  (eval "$ac_compile") 2>conftest.er1
 
2738
  ac_status=$?
 
2739
  grep -v '^ *+' conftest.er1 >conftest.err
 
2740
  rm -f conftest.er1
 
2741
  cat conftest.err >&5
 
2742
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2743
  (exit $ac_status); } && {
 
2744
         test -z "$ac_c_werror_flag" ||
 
2745
         test ! -s conftest.err
 
2746
       } && test -s conftest.$ac_objext; then
 
2747
  :
 
2748
else
 
2749
  $as_echo "$as_me: failed program was:" >&5
 
2750
sed 's/^/| /' conftest.$ac_ext >&5
 
2751
 
 
2752
        ac_c_werror_flag=$ac_save_c_werror_flag
 
2753
         CFLAGS="-g"
 
2754
         cat >conftest.$ac_ext <<_ACEOF
 
2755
/* confdefs.h.  */
 
2756
_ACEOF
 
2757
cat confdefs.h >>conftest.$ac_ext
 
2758
cat >>conftest.$ac_ext <<_ACEOF
 
2759
/* end confdefs.h.  */
 
2760
 
 
2761
int
 
2762
main ()
 
2763
{
 
2764
 
 
2765
  ;
 
2766
  return 0;
 
2767
}
 
2768
_ACEOF
 
2769
rm -f conftest.$ac_objext
 
2770
if { (ac_try="$ac_compile"
 
2771
case "(($ac_try" in
 
2772
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2773
  *) ac_try_echo=$ac_try;;
 
2774
esac
 
2775
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
2776
$as_echo "$ac_try_echo") >&5
 
2777
  (eval "$ac_compile") 2>conftest.er1
 
2778
  ac_status=$?
 
2779
  grep -v '^ *+' conftest.er1 >conftest.err
 
2780
  rm -f conftest.er1
 
2781
  cat conftest.err >&5
 
2782
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2783
  (exit $ac_status); } && {
 
2784
         test -z "$ac_c_werror_flag" ||
 
2785
         test ! -s conftest.err
 
2786
       } && test -s conftest.$ac_objext; then
 
2787
  ac_cv_prog_cc_g=yes
 
2788
else
 
2789
  $as_echo "$as_me: failed program was:" >&5
 
2790
sed 's/^/| /' conftest.$ac_ext >&5
 
2791
 
 
2792
 
 
2793
fi
 
2794
 
 
2795
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2796
fi
 
2797
 
 
2798
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2799
fi
 
2800
 
 
2801
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2802
   ac_c_werror_flag=$ac_save_c_werror_flag
 
2803
fi
 
2804
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
2805
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
2806
if test "$ac_test_CFLAGS" = set; then
 
2807
  CFLAGS=$ac_save_CFLAGS
 
2808
elif test $ac_cv_prog_cc_g = yes; then
 
2809
  if test "$GCC" = yes; then
 
2810
    CFLAGS="-g -O2"
 
2811
  else
 
2812
    CFLAGS="-g"
 
2813
  fi
 
2814
else
 
2815
  if test "$GCC" = yes; then
 
2816
    CFLAGS="-O2"
 
2817
  else
 
2818
    CFLAGS=
 
2819
  fi
 
2820
fi
 
2821
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
 
2822
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
2823
if test "${ac_cv_prog_cc_c89+set}" = set; then
 
2824
  $as_echo_n "(cached) " >&6
 
2825
else
 
2826
  ac_cv_prog_cc_c89=no
 
2827
ac_save_CC=$CC
 
2828
cat >conftest.$ac_ext <<_ACEOF
 
2829
/* confdefs.h.  */
 
2830
_ACEOF
 
2831
cat confdefs.h >>conftest.$ac_ext
 
2832
cat >>conftest.$ac_ext <<_ACEOF
 
2833
/* end confdefs.h.  */
 
2834
#include <stdarg.h>
 
2835
#include <stdio.h>
 
2836
#include <sys/types.h>
 
2837
#include <sys/stat.h>
 
2838
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
2839
struct buf { int x; };
 
2840
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
2841
static char *e (p, i)
 
2842
     char **p;
 
2843
     int i;
 
2844
{
 
2845
  return p[i];
 
2846
}
 
2847
static char *f (char * (*g) (char **, int), char **p, ...)
 
2848
{
 
2849
  char *s;
 
2850
  va_list v;
 
2851
  va_start (v,p);
 
2852
  s = g (p, va_arg (v,int));
 
2853
  va_end (v);
 
2854
  return s;
 
2855
}
 
2856
 
 
2857
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
2858
   function prototypes and stuff, but not '\xHH' hex character constants.
 
2859
   These don't provoke an error unfortunately, instead are silently treated
 
2860
   as 'x'.  The following induces an error, until -std is added to get
 
2861
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
2862
   array size at least.  It's necessary to write '\x00'==0 to get something
 
2863
   that's true only with -std.  */
 
2864
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
2865
 
 
2866
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
2867
   inside strings and character constants.  */
 
2868
#define FOO(x) 'x'
 
2869
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
2870
 
 
2871
int test (int i, double x);
 
2872
struct s1 {int (*f) (int a);};
 
2873
struct s2 {int (*f) (double a);};
 
2874
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
2875
int argc;
 
2876
char **argv;
 
2877
int
 
2878
main ()
 
2879
{
 
2880
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
2881
  ;
 
2882
  return 0;
 
2883
}
 
2884
_ACEOF
 
2885
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
2886
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
2887
do
 
2888
  CC="$ac_save_CC $ac_arg"
 
2889
  rm -f conftest.$ac_objext
 
2890
if { (ac_try="$ac_compile"
 
2891
case "(($ac_try" in
 
2892
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2893
  *) ac_try_echo=$ac_try;;
 
2894
esac
 
2895
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
2896
$as_echo "$ac_try_echo") >&5
 
2897
  (eval "$ac_compile") 2>conftest.er1
 
2898
  ac_status=$?
 
2899
  grep -v '^ *+' conftest.er1 >conftest.err
 
2900
  rm -f conftest.er1
 
2901
  cat conftest.err >&5
 
2902
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2903
  (exit $ac_status); } && {
 
2904
         test -z "$ac_c_werror_flag" ||
 
2905
         test ! -s conftest.err
 
2906
       } && test -s conftest.$ac_objext; then
 
2907
  ac_cv_prog_cc_c89=$ac_arg
 
2908
else
 
2909
  $as_echo "$as_me: failed program was:" >&5
 
2910
sed 's/^/| /' conftest.$ac_ext >&5
 
2911
 
 
2912
 
 
2913
fi
 
2914
 
 
2915
rm -f core conftest.err conftest.$ac_objext
 
2916
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
2917
done
 
2918
rm -f conftest.$ac_ext
 
2919
CC=$ac_save_CC
 
2920
 
 
2921
fi
 
2922
# AC_CACHE_VAL
 
2923
case "x$ac_cv_prog_cc_c89" in
 
2924
  x)
 
2925
    { $as_echo "$as_me:$LINENO: result: none needed" >&5
 
2926
$as_echo "none needed" >&6; } ;;
 
2927
  xno)
 
2928
    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
 
2929
$as_echo "unsupported" >&6; } ;;
 
2930
  *)
 
2931
    CC="$CC $ac_cv_prog_cc_c89"
 
2932
    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
 
2933
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
2934
esac
 
2935
 
 
2936
 
 
2937
ac_ext=c
 
2938
ac_cpp='$CPP $CPPFLAGS'
 
2939
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2940
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2941
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2942
 
 
2943
ac_ext=c
 
2944
ac_cpp='$CPP $CPPFLAGS'
 
2945
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2946
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2947
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2948
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
2949
$as_echo_n "checking how to run the C preprocessor... " >&6; }
 
2950
# On Suns, sometimes $CPP names a directory.
 
2951
if test -n "$CPP" && test -d "$CPP"; then
 
2952
  CPP=
 
2953
fi
 
2954
if test -z "$CPP"; then
 
2955
  if test "${ac_cv_prog_CPP+set}" = set; then
 
2956
  $as_echo_n "(cached) " >&6
 
2957
else
 
2958
      # Double quotes because CPP needs to be expanded
 
2959
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
2960
    do
 
2961
      ac_preproc_ok=false
 
2962
for ac_c_preproc_warn_flag in '' yes
 
2963
do
 
2964
  # Use a header file that comes with gcc, so configuring glibc
 
2965
  # with a fresh cross-compiler works.
 
2966
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
2967
  # <limits.h> exists even on freestanding compilers.
 
2968
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
2969
  # not just through cpp. "Syntax error" is here to catch this case.
 
2970
  cat >conftest.$ac_ext <<_ACEOF
 
2971
/* confdefs.h.  */
 
2972
_ACEOF
 
2973
cat confdefs.h >>conftest.$ac_ext
 
2974
cat >>conftest.$ac_ext <<_ACEOF
 
2975
/* end confdefs.h.  */
 
2976
#ifdef __STDC__
 
2977
# include <limits.h>
 
2978
#else
 
2979
# include <assert.h>
 
2980
#endif
 
2981
                     Syntax error
 
2982
_ACEOF
 
2983
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
2984
case "(($ac_try" in
 
2985
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2986
  *) ac_try_echo=$ac_try;;
 
2987
esac
 
2988
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
2989
$as_echo "$ac_try_echo") >&5
 
2990
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
2991
  ac_status=$?
 
2992
  grep -v '^ *+' conftest.er1 >conftest.err
 
2993
  rm -f conftest.er1
 
2994
  cat conftest.err >&5
 
2995
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2996
  (exit $ac_status); } >/dev/null && {
 
2997
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
2998
         test ! -s conftest.err
 
2999
       }; then
 
3000
  :
 
3001
else
 
3002
  $as_echo "$as_me: failed program was:" >&5
 
3003
sed 's/^/| /' conftest.$ac_ext >&5
 
3004
 
 
3005
  # Broken: fails on valid input.
 
3006
continue
 
3007
fi
 
3008
 
 
3009
rm -f conftest.err conftest.$ac_ext
 
3010
 
 
3011
  # OK, works on sane cases.  Now check whether nonexistent headers
 
3012
  # can be detected and how.
 
3013
  cat >conftest.$ac_ext <<_ACEOF
 
3014
/* confdefs.h.  */
 
3015
_ACEOF
 
3016
cat confdefs.h >>conftest.$ac_ext
 
3017
cat >>conftest.$ac_ext <<_ACEOF
 
3018
/* end confdefs.h.  */
 
3019
#include <ac_nonexistent.h>
 
3020
_ACEOF
 
3021
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
3022
case "(($ac_try" in
 
3023
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3024
  *) ac_try_echo=$ac_try;;
 
3025
esac
 
3026
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3027
$as_echo "$ac_try_echo") >&5
 
3028
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
3029
  ac_status=$?
 
3030
  grep -v '^ *+' conftest.er1 >conftest.err
 
3031
  rm -f conftest.er1
 
3032
  cat conftest.err >&5
 
3033
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3034
  (exit $ac_status); } >/dev/null && {
 
3035
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
3036
         test ! -s conftest.err
 
3037
       }; then
 
3038
  # Broken: success on invalid input.
 
3039
continue
 
3040
else
 
3041
  $as_echo "$as_me: failed program was:" >&5
 
3042
sed 's/^/| /' conftest.$ac_ext >&5
 
3043
 
 
3044
  # Passes both tests.
 
3045
ac_preproc_ok=:
 
3046
break
 
3047
fi
 
3048
 
 
3049
rm -f conftest.err conftest.$ac_ext
 
3050
 
 
3051
done
 
3052
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3053
rm -f conftest.err conftest.$ac_ext
 
3054
if $ac_preproc_ok; then
 
3055
  break
 
3056
fi
 
3057
 
 
3058
    done
 
3059
    ac_cv_prog_CPP=$CPP
 
3060
 
 
3061
fi
 
3062
  CPP=$ac_cv_prog_CPP
 
3063
else
 
3064
  ac_cv_prog_CPP=$CPP
 
3065
fi
 
3066
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
 
3067
$as_echo "$CPP" >&6; }
 
3068
ac_preproc_ok=false
 
3069
for ac_c_preproc_warn_flag in '' yes
 
3070
do
 
3071
  # Use a header file that comes with gcc, so configuring glibc
 
3072
  # with a fresh cross-compiler works.
 
3073
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3074
  # <limits.h> exists even on freestanding compilers.
 
3075
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3076
  # not just through cpp. "Syntax error" is here to catch this case.
 
3077
  cat >conftest.$ac_ext <<_ACEOF
 
3078
/* confdefs.h.  */
 
3079
_ACEOF
 
3080
cat confdefs.h >>conftest.$ac_ext
 
3081
cat >>conftest.$ac_ext <<_ACEOF
 
3082
/* end confdefs.h.  */
 
3083
#ifdef __STDC__
 
3084
# include <limits.h>
 
3085
#else
 
3086
# include <assert.h>
 
3087
#endif
 
3088
                     Syntax error
 
3089
_ACEOF
 
3090
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
3091
case "(($ac_try" in
 
3092
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3093
  *) ac_try_echo=$ac_try;;
 
3094
esac
 
3095
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3096
$as_echo "$ac_try_echo") >&5
 
3097
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
3098
  ac_status=$?
 
3099
  grep -v '^ *+' conftest.er1 >conftest.err
 
3100
  rm -f conftest.er1
 
3101
  cat conftest.err >&5
 
3102
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3103
  (exit $ac_status); } >/dev/null && {
 
3104
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
3105
         test ! -s conftest.err
 
3106
       }; then
 
3107
  :
 
3108
else
 
3109
  $as_echo "$as_me: failed program was:" >&5
 
3110
sed 's/^/| /' conftest.$ac_ext >&5
 
3111
 
 
3112
  # Broken: fails on valid input.
 
3113
continue
 
3114
fi
 
3115
 
 
3116
rm -f conftest.err conftest.$ac_ext
 
3117
 
 
3118
  # OK, works on sane cases.  Now check whether nonexistent headers
 
3119
  # can be detected and how.
 
3120
  cat >conftest.$ac_ext <<_ACEOF
 
3121
/* confdefs.h.  */
 
3122
_ACEOF
 
3123
cat confdefs.h >>conftest.$ac_ext
 
3124
cat >>conftest.$ac_ext <<_ACEOF
 
3125
/* end confdefs.h.  */
 
3126
#include <ac_nonexistent.h>
 
3127
_ACEOF
 
3128
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
3129
case "(($ac_try" in
 
3130
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3131
  *) ac_try_echo=$ac_try;;
 
3132
esac
 
3133
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3134
$as_echo "$ac_try_echo") >&5
 
3135
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
3136
  ac_status=$?
 
3137
  grep -v '^ *+' conftest.er1 >conftest.err
 
3138
  rm -f conftest.er1
 
3139
  cat conftest.err >&5
 
3140
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3141
  (exit $ac_status); } >/dev/null && {
 
3142
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
3143
         test ! -s conftest.err
 
3144
       }; then
 
3145
  # Broken: success on invalid input.
 
3146
continue
 
3147
else
 
3148
  $as_echo "$as_me: failed program was:" >&5
 
3149
sed 's/^/| /' conftest.$ac_ext >&5
 
3150
 
 
3151
  # Passes both tests.
 
3152
ac_preproc_ok=:
 
3153
break
 
3154
fi
 
3155
 
 
3156
rm -f conftest.err conftest.$ac_ext
 
3157
 
 
3158
done
 
3159
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3160
rm -f conftest.err conftest.$ac_ext
 
3161
if $ac_preproc_ok; then
 
3162
  :
 
3163
else
 
3164
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
3165
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3166
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
3167
See \`config.log' for more details." >&5
 
3168
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
3169
See \`config.log' for more details." >&2;}
 
3170
   { (exit 1); exit 1; }; }; }
 
3171
fi
 
3172
 
 
3173
ac_ext=c
 
3174
ac_cpp='$CPP $CPPFLAGS'
 
3175
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3176
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3177
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3178
 
 
3179
 
 
3180
 
 
3181
{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
 
3182
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 
3183
if test "${ac_cv_path_GREP+set}" = set; then
 
3184
  $as_echo_n "(cached) " >&6
 
3185
else
 
3186
  if test -z "$GREP"; then
 
3187
  ac_path_GREP_found=false
 
3188
  # Loop through the user's path and test for each of PROGNAME-LIST
 
3189
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3190
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
3191
do
 
3192
  IFS=$as_save_IFS
 
3193
  test -z "$as_dir" && as_dir=.
 
3194
  for ac_prog in grep ggrep; do
 
3195
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3196
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
3197
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
3198
# Check for GNU ac_path_GREP and select it if it is found.
 
3199
  # Check for GNU $ac_path_GREP
 
3200
case `"$ac_path_GREP" --version 2>&1` in
 
3201
*GNU*)
 
3202
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
3203
*)
 
3204
  ac_count=0
 
3205
  $as_echo_n 0123456789 >"conftest.in"
 
3206
  while :
 
3207
  do
 
3208
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
3209
    mv "conftest.tmp" "conftest.in"
 
3210
    cp "conftest.in" "conftest.nl"
 
3211
    $as_echo 'GREP' >> "conftest.nl"
 
3212
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
3213
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
3214
    ac_count=`expr $ac_count + 1`
 
3215
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
3216
      # Best one so far, save it but keep looking for a better one
 
3217
      ac_cv_path_GREP="$ac_path_GREP"
 
3218
      ac_path_GREP_max=$ac_count
 
3219
    fi
 
3220
    # 10*(2^10) chars as input seems more than enough
 
3221
    test $ac_count -gt 10 && break
 
3222
  done
 
3223
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
3224
esac
 
3225
 
 
3226
      $ac_path_GREP_found && break 3
 
3227
    done
 
3228
  done
 
3229
done
 
3230
IFS=$as_save_IFS
 
3231
  if test -z "$ac_cv_path_GREP"; then
 
3232
    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
3233
$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
3234
   { (exit 1); exit 1; }; }
 
3235
  fi
 
3236
else
 
3237
  ac_cv_path_GREP=$GREP
 
3238
fi
 
3239
 
 
3240
fi
 
3241
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
 
3242
$as_echo "$ac_cv_path_GREP" >&6; }
 
3243
 GREP="$ac_cv_path_GREP"
 
3244
 
 
3245
 
 
3246
{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
 
3247
$as_echo_n "checking for egrep... " >&6; }
 
3248
if test "${ac_cv_path_EGREP+set}" = set; then
 
3249
  $as_echo_n "(cached) " >&6
 
3250
else
 
3251
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
3252
   then ac_cv_path_EGREP="$GREP -E"
 
3253
   else
 
3254
     if test -z "$EGREP"; then
 
3255
  ac_path_EGREP_found=false
 
3256
  # Loop through the user's path and test for each of PROGNAME-LIST
 
3257
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3258
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
3259
do
 
3260
  IFS=$as_save_IFS
 
3261
  test -z "$as_dir" && as_dir=.
 
3262
  for ac_prog in egrep; do
 
3263
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3264
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
3265
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
3266
# Check for GNU ac_path_EGREP and select it if it is found.
 
3267
  # Check for GNU $ac_path_EGREP
 
3268
case `"$ac_path_EGREP" --version 2>&1` in
 
3269
*GNU*)
 
3270
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
3271
*)
 
3272
  ac_count=0
 
3273
  $as_echo_n 0123456789 >"conftest.in"
 
3274
  while :
 
3275
  do
 
3276
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
3277
    mv "conftest.tmp" "conftest.in"
 
3278
    cp "conftest.in" "conftest.nl"
 
3279
    $as_echo 'EGREP' >> "conftest.nl"
 
3280
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
3281
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
3282
    ac_count=`expr $ac_count + 1`
 
3283
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
3284
      # Best one so far, save it but keep looking for a better one
 
3285
      ac_cv_path_EGREP="$ac_path_EGREP"
 
3286
      ac_path_EGREP_max=$ac_count
 
3287
    fi
 
3288
    # 10*(2^10) chars as input seems more than enough
 
3289
    test $ac_count -gt 10 && break
 
3290
  done
 
3291
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
3292
esac
 
3293
 
 
3294
      $ac_path_EGREP_found && break 3
 
3295
    done
 
3296
  done
 
3297
done
 
3298
IFS=$as_save_IFS
 
3299
  if test -z "$ac_cv_path_EGREP"; then
 
3300
    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
3301
$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
3302
   { (exit 1); exit 1; }; }
 
3303
  fi
 
3304
else
 
3305
  ac_cv_path_EGREP=$EGREP
 
3306
fi
 
3307
 
 
3308
   fi
 
3309
fi
 
3310
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
 
3311
$as_echo "$ac_cv_path_EGREP" >&6; }
 
3312
 EGREP="$ac_cv_path_EGREP"
 
3313
 
 
3314
 
 
3315
if test $ac_cv_c_compiler_gnu = yes; then
 
3316
    { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
 
3317
$as_echo_n "checking whether $CC needs -traditional... " >&6; }
 
3318
if test "${ac_cv_prog_gcc_traditional+set}" = set; then
 
3319
  $as_echo_n "(cached) " >&6
 
3320
else
 
3321
    ac_pattern="Autoconf.*'x'"
 
3322
  cat >conftest.$ac_ext <<_ACEOF
 
3323
/* confdefs.h.  */
 
3324
_ACEOF
 
3325
cat confdefs.h >>conftest.$ac_ext
 
3326
cat >>conftest.$ac_ext <<_ACEOF
 
3327
/* end confdefs.h.  */
 
3328
#include <sgtty.h>
 
3329
Autoconf TIOCGETP
 
3330
_ACEOF
 
3331
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3332
  $EGREP "$ac_pattern" >/dev/null 2>&1; then
 
3333
  ac_cv_prog_gcc_traditional=yes
 
3334
else
 
3335
  ac_cv_prog_gcc_traditional=no
 
3336
fi
 
3337
rm -f conftest*
 
3338
 
 
3339
 
 
3340
  if test $ac_cv_prog_gcc_traditional = no; then
 
3341
    cat >conftest.$ac_ext <<_ACEOF
 
3342
/* confdefs.h.  */
 
3343
_ACEOF
 
3344
cat confdefs.h >>conftest.$ac_ext
 
3345
cat >>conftest.$ac_ext <<_ACEOF
 
3346
/* end confdefs.h.  */
 
3347
#include <termio.h>
 
3348
Autoconf TCGETA
 
3349
_ACEOF
 
3350
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3351
  $EGREP "$ac_pattern" >/dev/null 2>&1; then
 
3352
  ac_cv_prog_gcc_traditional=yes
 
3353
fi
 
3354
rm -f conftest*
 
3355
 
 
3356
  fi
 
3357
fi
 
3358
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
 
3359
$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
 
3360
  if test $ac_cv_prog_gcc_traditional = yes; then
 
3361
    CC="$CC -traditional"
 
3362
  fi
 
3363
fi
 
3364
 
 
3365
 
 
3366
{ $as_echo "$as_me:$LINENO: checking whether using GNU C" >&5
 
3367
$as_echo_n "checking whether using GNU C... " >&6; }
 
3368
if test "${cl_cv_prog_cc_gcc+set}" = set; then
 
3369
  $as_echo_n "(cached) " >&6
 
3370
else
 
3371
 
 
3372
cat >conftest.$ac_ext <<_ACEOF
 
3373
/* confdefs.h.  */
 
3374
_ACEOF
 
3375
cat confdefs.h >>conftest.$ac_ext
 
3376
cat >>conftest.$ac_ext <<_ACEOF
 
3377
/* end confdefs.h.  */
 
3378
#ifdef __GNUC__
 
3379
  yes
 
3380
#endif
 
3381
 
 
3382
_ACEOF
 
3383
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3384
  $EGREP "yes" >/dev/null 2>&1; then
 
3385
  cl_cv_prog_cc_gcc=yes
 
3386
else
 
3387
  cl_cv_prog_cc_gcc=no
 
3388
fi
 
3389
rm -f conftest*
 
3390
 
 
3391
 
 
3392
fi
 
3393
{ $as_echo "$as_me:$LINENO: result: $cl_cv_prog_cc_gcc" >&5
 
3394
$as_echo "$cl_cv_prog_cc_gcc" >&6; }
 
3395
if test $cl_cv_prog_cc_gcc = yes; then
 
3396
  CC_GCC=true
 
3397
  GCC_X_NONE='-x none'
 
3398
else
 
3399
  CC_GCC=false
 
3400
  GCC_X_NONE=''
 
3401
fi
 
3402
 
 
3403
 
 
3404
 
 
3405
{ $as_echo "$as_me:$LINENO: checking for underscore in external names" >&5
 
3406
$as_echo_n "checking for underscore in external names... " >&6; }
 
3407
if test "${cl_cv_prog_as_underscore+set}" = set; then
 
3408
  $as_echo_n "(cached) " >&6
 
3409
else
 
3410
 
 
3411
cat > conftest.c <<EOF
 
3412
#ifdef __cplusplus
 
3413
extern "C"
 
3414
#endif
 
3415
int foo() { return 0; }
 
3416
EOF
 
3417
# look for the assembly language name in the .s file
 
3418
{ ac_try='${CC-cc} -S conftest.c'
 
3419
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3420
  (eval $ac_try) 2>&5
 
3421
  ac_status=$?
 
3422
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3423
  (exit $ac_status); }; } >/dev/null 2>&1
 
3424
if grep _foo conftest.s >/dev/null ; then
 
3425
  cl_cv_prog_as_underscore=yes
 
3426
else
 
3427
  cl_cv_prog_as_underscore=no
 
3428
fi
 
3429
rm -f conftest*
 
3430
 
 
3431
fi
 
3432
{ $as_echo "$as_me:$LINENO: result: $cl_cv_prog_as_underscore" >&5
 
3433
$as_echo "$cl_cv_prog_as_underscore" >&6; }
 
3434
if test $cl_cv_prog_as_underscore = yes; then
 
3435
  AS_UNDERSCORE=true
 
3436
 
 
3437
cat >>confdefs.h <<\_ACEOF
 
3438
#define ASM_UNDERSCORE /**/
 
3439
_ACEOF
 
3440
 
 
3441
else
 
3442
  AS_UNDERSCORE=false
 
3443
fi
 
3444
 
 
3445
if test -n "$ac_tool_prefix"; then
 
3446
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
3447
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
3448
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3449
$as_echo_n "checking for $ac_word... " >&6; }
 
3450
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
3451
  $as_echo_n "(cached) " >&6
 
3452
else
 
3453
  if test -n "$RANLIB"; then
 
3454
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
3455
else
 
3456
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3457
for as_dir in $PATH
 
3458
do
 
3459
  IFS=$as_save_IFS
 
3460
  test -z "$as_dir" && as_dir=.
 
3461
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3462
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3463
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
3464
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3465
    break 2
 
3466
  fi
 
3467
done
 
3468
done
 
3469
IFS=$as_save_IFS
 
3470
 
 
3471
fi
 
3472
fi
 
3473
RANLIB=$ac_cv_prog_RANLIB
 
3474
if test -n "$RANLIB"; then
 
3475
  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
 
3476
$as_echo "$RANLIB" >&6; }
 
3477
else
 
3478
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
3479
$as_echo "no" >&6; }
 
3480
fi
 
3481
 
 
3482
 
 
3483
fi
 
3484
if test -z "$ac_cv_prog_RANLIB"; then
 
3485
  ac_ct_RANLIB=$RANLIB
 
3486
  # Extract the first word of "ranlib", so it can be a program name with args.
 
3487
set dummy ranlib; ac_word=$2
 
3488
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3489
$as_echo_n "checking for $ac_word... " >&6; }
 
3490
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
3491
  $as_echo_n "(cached) " >&6
 
3492
else
 
3493
  if test -n "$ac_ct_RANLIB"; then
 
3494
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
3495
else
 
3496
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3497
for as_dir in $PATH
 
3498
do
 
3499
  IFS=$as_save_IFS
 
3500
  test -z "$as_dir" && as_dir=.
 
3501
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3502
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3503
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
3504
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3505
    break 2
 
3506
  fi
 
3507
done
 
3508
done
 
3509
IFS=$as_save_IFS
 
3510
 
 
3511
fi
 
3512
fi
 
3513
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
3514
if test -n "$ac_ct_RANLIB"; then
 
3515
  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
3516
$as_echo "$ac_ct_RANLIB" >&6; }
 
3517
else
 
3518
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
3519
$as_echo "no" >&6; }
 
3520
fi
 
3521
 
 
3522
  if test "x$ac_ct_RANLIB" = x; then
 
3523
    RANLIB=":"
 
3524
  else
 
3525
    case $cross_compiling:$ac_tool_warned in
 
3526
yes:)
 
3527
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
3528
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3529
ac_tool_warned=yes ;;
 
3530
esac
 
3531
    RANLIB=$ac_ct_RANLIB
 
3532
  fi
 
3533
else
 
3534
  RANLIB="$ac_cv_prog_RANLIB"
 
3535
fi
 
3536
 
 
3537
{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
3538
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 
3539
set x ${MAKE-make}
 
3540
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
3541
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
 
3542
  $as_echo_n "(cached) " >&6
 
3543
else
 
3544
  cat >conftest.make <<\_ACEOF
 
3545
SHELL = /bin/sh
 
3546
all:
 
3547
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
3548
_ACEOF
 
3549
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
3550
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
3551
  *@@@%%%=?*=@@@%%%*)
 
3552
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
3553
  *)
 
3554
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
3555
esac
 
3556
rm -f conftest.make
 
3557
fi
 
3558
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
3559
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
3560
$as_echo "yes" >&6; }
 
3561
  SET_MAKE=
 
3562
else
 
3563
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
3564
$as_echo "no" >&6; }
 
3565
  SET_MAKE="MAKE=${MAKE-make}"
 
3566
fi
 
3567
 
 
3568
ac_aux_dir=
 
3569
for ac_dir in ../../build-aux "$srcdir"/../../build-aux; do
 
3570
  if test -f "$ac_dir/install-sh"; then
 
3571
    ac_aux_dir=$ac_dir
 
3572
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
3573
    break
 
3574
  elif test -f "$ac_dir/install.sh"; then
 
3575
    ac_aux_dir=$ac_dir
 
3576
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
3577
    break
 
3578
  elif test -f "$ac_dir/shtool"; then
 
3579
    ac_aux_dir=$ac_dir
 
3580
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
3581
    break
 
3582
  fi
 
3583
done
 
3584
if test -z "$ac_aux_dir"; then
 
3585
  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../../build-aux \"$srcdir\"/../../build-aux" >&5
 
3586
$as_echo "$as_me: error: cannot find install-sh or install.sh in ../../build-aux \"$srcdir\"/../../build-aux" >&2;}
 
3587
   { (exit 1); exit 1; }; }
 
3588
fi
 
3589
 
 
3590
# These three variables are undocumented and unsupported,
 
3591
# and are intended to be withdrawn in a future Autoconf release.
 
3592
# They can cause serious problems if a builder's source tree is in a directory
 
3593
# whose full name contains unusual characters.
 
3594
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
3595
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
3596
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
3597
 
 
3598
 
 
3599
# Find a good install program.  We prefer a C program (faster),
 
3600
# so one script is as good as another.  But avoid the broken or
 
3601
# incompatible versions:
 
3602
# SysV /etc/install, /usr/sbin/install
 
3603
# SunOS /usr/etc/install
 
3604
# IRIX /sbin/install
 
3605
# AIX /bin/install
 
3606
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
3607
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
3608
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
3609
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
3610
# OS/2's system install, which has a completely different semantic
 
3611
# ./install, which can be erroneously created by make from ./install.sh.
 
3612
# Reject install programs that cannot install multiple files.
 
3613
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
3614
$as_echo_n "checking for a BSD-compatible install... " >&6; }
 
3615
if test -z "$INSTALL"; then
 
3616
if test "${ac_cv_path_install+set}" = set; then
 
3617
  $as_echo_n "(cached) " >&6
 
3618
else
 
3619
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3620
for as_dir in $PATH
 
3621
do
 
3622
  IFS=$as_save_IFS
 
3623
  test -z "$as_dir" && as_dir=.
 
3624
  # Account for people who put trailing slashes in PATH elements.
 
3625
case $as_dir/ in
 
3626
  ./ | .// | /cC/* | \
 
3627
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
3628
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
3629
  /usr/ucb/* ) ;;
 
3630
  *)
 
3631
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
3632
    # Don't use installbsd from OSF since it installs stuff as root
 
3633
    # by default.
 
3634
    for ac_prog in ginstall scoinst install; do
 
3635
      for ac_exec_ext in '' $ac_executable_extensions; do
 
3636
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
3637
          if test $ac_prog = install &&
 
3638
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
3639
            # AIX install.  It has an incompatible calling convention.
 
3640
            :
 
3641
          elif test $ac_prog = install &&
 
3642
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
3643
            # program-specific install script used by HP pwplus--don't use.
 
3644
            :
 
3645
          else
 
3646
            rm -rf conftest.one conftest.two conftest.dir
 
3647
            echo one > conftest.one
 
3648
            echo two > conftest.two
 
3649
            mkdir conftest.dir
 
3650
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
 
3651
              test -s conftest.one && test -s conftest.two &&
 
3652
              test -s conftest.dir/conftest.one &&
 
3653
              test -s conftest.dir/conftest.two
 
3654
            then
 
3655
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
3656
              break 3
 
3657
            fi
 
3658
          fi
 
3659
        fi
 
3660
      done
 
3661
    done
 
3662
    ;;
 
3663
esac
 
3664
 
 
3665
done
 
3666
IFS=$as_save_IFS
 
3667
 
 
3668
rm -rf conftest.one conftest.two conftest.dir
 
3669
 
 
3670
fi
 
3671
  if test "${ac_cv_path_install+set}" = set; then
 
3672
    INSTALL=$ac_cv_path_install
 
3673
  else
 
3674
    # As a last resort, use the slow shell script.  Don't cache a
 
3675
    # value for INSTALL within a source directory, because that will
 
3676
    # break other packages using the cache if that directory is
 
3677
    # removed, or if the value is a relative name.
 
3678
    INSTALL=$ac_install_sh
 
3679
  fi
 
3680
fi
 
3681
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
 
3682
$as_echo "$INSTALL" >&6; }
 
3683
 
 
3684
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
3685
# It thinks the first close brace ends the variable substitution.
 
3686
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
3687
 
 
3688
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
3689
 
 
3690
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
3691
 
 
3692
{ $as_echo "$as_me:$LINENO: checking how to make hard links" >&5
 
3693
$as_echo_n "checking how to make hard links... " >&6; }
 
3694
if test "${cl_cv_prog_LN+set}" = set; then
 
3695
  $as_echo_n "(cached) " >&6
 
3696
else
 
3697
 
 
3698
rm -f conftestdata conftestfile
 
3699
echo data > conftestfile
 
3700
if ln conftestfile conftestdata 2>/dev/null; then
 
3701
  cl_cv_prog_LN=ln
 
3702
else
 
3703
  cl_cv_prog_LN="cp -p"
 
3704
fi
 
3705
rm -f conftestdata conftestfile
 
3706
 
 
3707
fi
 
3708
{ $as_echo "$as_me:$LINENO: result: $cl_cv_prog_LN" >&5
 
3709
$as_echo "$cl_cv_prog_LN" >&6; }
 
3710
LN="$cl_cv_prog_LN"
 
3711
 
 
3712
{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
3713
$as_echo_n "checking whether ln -s works... " >&6; }
 
3714
if test "${cl_cv_prog_LN_S_works+set}" = set; then
 
3715
  $as_echo_n "(cached) " >&6
 
3716
else
 
3717
  rm -f conftestdata
 
3718
if ln -s X conftestdata 2>/dev/null; then
 
3719
  cl_cv_prog_LN_S_works=yes
 
3720
else
 
3721
  cl_cv_prog_LN_S_works=no
 
3722
fi
 
3723
rm -f conftestdata
 
3724
 
 
3725
fi
 
3726
{ $as_echo "$as_me:$LINENO: result: $cl_cv_prog_LN_S_works" >&5
 
3727
$as_echo "$cl_cv_prog_LN_S_works" >&6; }
 
3728
if test $cl_cv_prog_LN_S_works = yes; then
 
3729
  LN_S="ln -s"
 
3730
else
 
3731
  LN_S="$cl_cv_prog_LN"
 
3732
fi
 
3733
 
 
3734
# Make sure we can run config.sub.
 
3735
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
3736
  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
 
3737
$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
 
3738
   { (exit 1); exit 1; }; }
 
3739
 
 
3740
{ $as_echo "$as_me:$LINENO: checking build system type" >&5
 
3741
$as_echo_n "checking build system type... " >&6; }
 
3742
if test "${ac_cv_build+set}" = set; then
 
3743
  $as_echo_n "(cached) " >&6
 
3744
else
 
3745
  ac_build_alias=$build_alias
 
3746
test "x$ac_build_alias" = x &&
 
3747
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
3748
test "x$ac_build_alias" = x &&
 
3749
  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
3750
$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
3751
   { (exit 1); exit 1; }; }
 
3752
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
3753
  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
 
3754
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
 
3755
   { (exit 1); exit 1; }; }
 
3756
 
 
3757
fi
 
3758
{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
3759
$as_echo "$ac_cv_build" >&6; }
 
3760
case $ac_cv_build in
 
3761
*-*-*) ;;
 
3762
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
 
3763
$as_echo "$as_me: error: invalid value of canonical build" >&2;}
 
3764
   { (exit 1); exit 1; }; };;
 
3765
esac
 
3766
build=$ac_cv_build
 
3767
ac_save_IFS=$IFS; IFS='-'
 
3768
set x $ac_cv_build
 
3769
shift
 
3770
build_cpu=$1
 
3771
build_vendor=$2
 
3772
shift; shift
 
3773
# Remember, the first character of IFS is used to create $*,
 
3774
# except with old shells:
 
3775
build_os=$*
 
3776
IFS=$ac_save_IFS
 
3777
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
3778
 
 
3779
 
 
3780
{ $as_echo "$as_me:$LINENO: checking host system type" >&5
 
3781
$as_echo_n "checking host system type... " >&6; }
 
3782
if test "${ac_cv_host+set}" = set; then
 
3783
  $as_echo_n "(cached) " >&6
 
3784
else
 
3785
  if test "x$host_alias" = x; then
 
3786
  ac_cv_host=$ac_cv_build
 
3787
else
 
3788
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
3789
    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
 
3790
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
 
3791
   { (exit 1); exit 1; }; }
 
3792
fi
 
3793
 
 
3794
fi
 
3795
{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
3796
$as_echo "$ac_cv_host" >&6; }
 
3797
case $ac_cv_host in
 
3798
*-*-*) ;;
 
3799
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
 
3800
$as_echo "$as_me: error: invalid value of canonical host" >&2;}
 
3801
   { (exit 1); exit 1; }; };;
 
3802
esac
 
3803
host=$ac_cv_host
 
3804
ac_save_IFS=$IFS; IFS='-'
 
3805
set x $ac_cv_host
 
3806
shift
 
3807
host_cpu=$1
 
3808
host_vendor=$2
 
3809
shift; shift
 
3810
# Remember, the first character of IFS is used to create $*,
 
3811
# except with old shells:
 
3812
host_os=$*
 
3813
IFS=$ac_save_IFS
 
3814
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
3815
 
 
3816
 
 
3817
 
 
3818
case "$host_cpu" in
 
3819
  i[4567]86 )
 
3820
    host_cpu_abi=i386
 
3821
    ;;
 
3822
  alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] )
 
3823
    host_cpu_abi=alpha
 
3824
    ;;
 
3825
  hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
 
3826
    host_cpu_abi=hppa
 
3827
    ;;
 
3828
  rs6000 )
 
3829
    host_cpu_abi=powerpc
 
3830
    ;;
 
3831
  c1 | c2 | c32 | c34 | c38 | c4 )
 
3832
    host_cpu_abi=convex
 
3833
    ;;
 
3834
  arm* )
 
3835
    { $as_echo "$as_me:$LINENO: checking for ARMel" >&5
 
3836
$as_echo_n "checking for ARMel... " >&6; }
 
3837
if test "${ffcall_cv_host_armel+set}" = set; then
 
3838
  $as_echo_n "(cached) " >&6
 
3839
else
 
3840
  cat >conftest.$ac_ext <<_ACEOF
 
3841
/* confdefs.h.  */
 
3842
_ACEOF
 
3843
cat confdefs.h >>conftest.$ac_ext
 
3844
cat >>conftest.$ac_ext <<_ACEOF
 
3845
/* end confdefs.h.  */
 
3846
#if defined(__ARMEL__)
 
3847
  yes
 
3848
#endif
 
3849
 
 
3850
_ACEOF
 
3851
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3852
  $EGREP "yes" >/dev/null 2>&1; then
 
3853
  ffcall_cv_host_armel=yes
 
3854
else
 
3855
  ffcall_cv_host_armel=no
 
3856
fi
 
3857
rm -f conftest*
 
3858
 
 
3859
fi
 
3860
{ $as_echo "$as_me:$LINENO: result: $ffcall_cv_host_armel" >&5
 
3861
$as_echo "$ffcall_cv_host_armel" >&6; }
 
3862
if test $ffcall_cv_host_armel = yes; then
 
3863
  host_cpu_abi=armel
 
3864
else
 
3865
  host_cpu_abi=arm
 
3866
fi
 
3867
    ;;
 
3868
  mips* )
 
3869
    { $as_echo "$as_me:$LINENO: checking for 64-bit MIPS" >&5
 
3870
$as_echo_n "checking for 64-bit MIPS... " >&6; }
 
3871
if test "${ffcall_cv_host_mips64+set}" = set; then
 
3872
  $as_echo_n "(cached) " >&6
 
3873
else
 
3874
  cat >conftest.$ac_ext <<_ACEOF
 
3875
/* confdefs.h.  */
 
3876
_ACEOF
 
3877
cat confdefs.h >>conftest.$ac_ext
 
3878
cat >>conftest.$ac_ext <<_ACEOF
 
3879
/* end confdefs.h.  */
 
3880
#if defined(_MIPS_SZLONG) && (_MIPS_SZLONG == 64)
 
3881
  yes
 
3882
#endif
 
3883
 
 
3884
_ACEOF
 
3885
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3886
  $EGREP "yes" >/dev/null 2>&1; then
 
3887
  ffcall_cv_host_mips64=yes
 
3888
else
 
3889
  ffcall_cv_host_mips64=no
 
3890
fi
 
3891
rm -f conftest*
 
3892
 
 
3893
fi
 
3894
{ $as_echo "$as_me:$LINENO: result: $ffcall_cv_host_mips64" >&5
 
3895
$as_echo "$ffcall_cv_host_mips64" >&6; }
 
3896
    if test $ffcall_cv_host_mips64 = yes; then
 
3897
      host_cpu_abi=mips64
 
3898
    else
 
3899
      { $as_echo "$as_me:$LINENO: checking for MIPS with n32 ABI" >&5
 
3900
$as_echo_n "checking for MIPS with n32 ABI... " >&6; }
 
3901
if test "${ffcall_cv_host_mipsn32+set}" = set; then
 
3902
  $as_echo_n "(cached) " >&6
 
3903
else
 
3904
  cat >conftest.$ac_ext <<_ACEOF
 
3905
/* confdefs.h.  */
 
3906
_ACEOF
 
3907
cat confdefs.h >>conftest.$ac_ext
 
3908
cat >>conftest.$ac_ext <<_ACEOF
 
3909
/* end confdefs.h.  */
 
3910
#if __mips >= 3
 
3911
  yes
 
3912
#endif
 
3913
 
 
3914
_ACEOF
 
3915
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3916
  $EGREP "yes" >/dev/null 2>&1; then
 
3917
  ffcall_cv_host_mipsn32=yes
 
3918
else
 
3919
  ffcall_cv_host_mipsn32=no
 
3920
fi
 
3921
rm -f conftest*
 
3922
 
 
3923
fi
 
3924
{ $as_echo "$as_me:$LINENO: result: $ffcall_cv_host_mipsn32" >&5
 
3925
$as_echo "$ffcall_cv_host_mipsn32" >&6; }
 
3926
if test $ffcall_cv_host_mipsn32 = yes; then
 
3927
  host_cpu_abi=mipsn32
 
3928
else
 
3929
  host_cpu_abi=mips
 
3930
fi
 
3931
    fi
 
3932
    ;;
 
3933
  powerpc64 )
 
3934
    { $as_echo "$as_me:$LINENO: checking for 64-bit PowerPC" >&5
 
3935
$as_echo_n "checking for 64-bit PowerPC... " >&6; }
 
3936
if test "${ffcall_cv_host_powerpc64+set}" = set; then
 
3937
  $as_echo_n "(cached) " >&6
 
3938
else
 
3939
  cat >conftest.$ac_ext <<_ACEOF
 
3940
/* confdefs.h.  */
 
3941
_ACEOF
 
3942
cat confdefs.h >>conftest.$ac_ext
 
3943
cat >>conftest.$ac_ext <<_ACEOF
 
3944
/* end confdefs.h.  */
 
3945
#if defined(__powerpc64__) || defined(_ARCH_PPC64)
 
3946
  yes
 
3947
#endif
 
3948
 
 
3949
_ACEOF
 
3950
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3951
  $EGREP "yes" >/dev/null 2>&1; then
 
3952
  ffcall_cv_host_powerpc64=yes
 
3953
else
 
3954
  ffcall_cv_host_powerpc64=no
 
3955
fi
 
3956
rm -f conftest*
 
3957
 
 
3958
fi
 
3959
{ $as_echo "$as_me:$LINENO: result: $ffcall_cv_host_powerpc64" >&5
 
3960
$as_echo "$ffcall_cv_host_powerpc64" >&6; }
 
3961
if test $ffcall_cv_host_powerpc64 = yes; then
 
3962
  host_cpu_abi=powerpc64
 
3963
else
 
3964
  host_cpu_abi=powerpc
 
3965
fi
 
3966
    ;;
 
3967
  sparc | sparc64 )
 
3968
    { $as_echo "$as_me:$LINENO: checking for 64-bit SPARC" >&5
 
3969
$as_echo_n "checking for 64-bit SPARC... " >&6; }
 
3970
if test "${ffcall_cv_host_sparc64+set}" = set; then
 
3971
  $as_echo_n "(cached) " >&6
 
3972
else
 
3973
  cat >conftest.$ac_ext <<_ACEOF
 
3974
/* confdefs.h.  */
 
3975
_ACEOF
 
3976
cat confdefs.h >>conftest.$ac_ext
 
3977
cat >>conftest.$ac_ext <<_ACEOF
 
3978
/* end confdefs.h.  */
 
3979
#if defined(__sparcv9) || defined(__arch64__)
 
3980
  yes
 
3981
#endif
 
3982
 
 
3983
_ACEOF
 
3984
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3985
  $EGREP "yes" >/dev/null 2>&1; then
 
3986
  ffcall_cv_host_sparc64=yes
 
3987
else
 
3988
  ffcall_cv_host_sparc64=no
 
3989
fi
 
3990
rm -f conftest*
 
3991
 
 
3992
fi
 
3993
{ $as_echo "$as_me:$LINENO: result: $ffcall_cv_host_sparc64" >&5
 
3994
$as_echo "$ffcall_cv_host_sparc64" >&6; }
 
3995
if test $ffcall_cv_host_sparc64 = yes; then
 
3996
  host_cpu_abi=sparc64
 
3997
else
 
3998
  host_cpu_abi=sparc
 
3999
fi
 
4000
    ;;
 
4001
  x86_64 )
 
4002
    { $as_echo "$as_me:$LINENO: checking for 64-bit x86_64" >&5
 
4003
$as_echo_n "checking for 64-bit x86_64... " >&6; }
 
4004
if test "${ffcall_cv_host_x86_64+set}" = set; then
 
4005
  $as_echo_n "(cached) " >&6
 
4006
else
 
4007
  cat >conftest.$ac_ext <<_ACEOF
 
4008
/* confdefs.h.  */
 
4009
_ACEOF
 
4010
cat confdefs.h >>conftest.$ac_ext
 
4011
cat >>conftest.$ac_ext <<_ACEOF
 
4012
/* end confdefs.h.  */
 
4013
#if defined(__LP64__) || defined(__x86_64__) || defined(__amd64__)
 
4014
  yes
 
4015
#endif
 
4016
 
 
4017
_ACEOF
 
4018
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4019
  $EGREP "yes" >/dev/null 2>&1; then
 
4020
  ffcall_cv_host_x86_64=yes
 
4021
else
 
4022
  ffcall_cv_host_x86_64=no
 
4023
fi
 
4024
rm -f conftest*
 
4025
 
 
4026
fi
 
4027
{ $as_echo "$as_me:$LINENO: result: $ffcall_cv_host_x86_64" >&5
 
4028
$as_echo "$ffcall_cv_host_x86_64" >&6; }
 
4029
if test $ffcall_cv_host_x86_64 = yes; then
 
4030
  host_cpu_abi=x86_64
 
4031
else
 
4032
  host_cpu_abi=i386
 
4033
fi
 
4034
    ;;
 
4035
  *)
 
4036
    host_cpu_abi=$host_cpu
 
4037
    ;;
 
4038
esac
 
4039
 
 
4040
cat >> confdefs.h <<EOF
 
4041
#ifndef __${host_cpu_abi}__
 
4042
#define __${host_cpu_abi}__ 1
 
4043
#endif
 
4044
EOF
 
4045
 
 
4046
PACKAGE=callback
 
4047
# Check whether --enable-shared was given.
 
4048
if test "${enable_shared+set}" = set; then
 
4049
  enableval=$enable_shared; p=${PACKAGE-default}
 
4050
    case $enableval in
 
4051
    yes) enable_shared=yes ;;
 
4052
    no) enable_shared=no ;;
 
4053
    *)
 
4054
      enable_shared=no
 
4055
      # Look at the argument we got.  We use all the common list separators.
 
4056
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
4057
      for pkg in $enableval; do
 
4058
        IFS="$lt_save_ifs"
 
4059
        if test "X$pkg" = "X$p"; then
 
4060
          enable_shared=yes
 
4061
        fi
 
4062
      done
 
4063
      IFS="$lt_save_ifs"
 
4064
      ;;
 
4065
    esac
 
4066
else
 
4067
  enable_shared=no
 
4068
fi
 
4069
 
 
4070
 
 
4071
 
 
4072
# Check whether --enable-static was given.
 
4073
if test "${enable_static+set}" = set; then
 
4074
  enableval=$enable_static; p=${PACKAGE-default}
 
4075
    case $enableval in
 
4076
    yes) enable_static=yes ;;
 
4077
    no) enable_static=no ;;
 
4078
    *)
 
4079
     enable_static=no
 
4080
      # Look at the argument we got.  We use all the common list separators.
 
4081
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
4082
      for pkg in $enableval; do
 
4083
        IFS="$lt_save_ifs"
 
4084
        if test "X$pkg" = "X$p"; then
 
4085
          enable_static=yes
 
4086
        fi
 
4087
      done
 
4088
      IFS="$lt_save_ifs"
 
4089
      ;;
 
4090
    esac
 
4091
else
 
4092
  enable_static=yes
 
4093
fi
 
4094
 
 
4095
 
 
4096
# Check whether --enable-fast-install was given.
 
4097
if test "${enable_fast_install+set}" = set; then
 
4098
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
4099
    case $enableval in
 
4100
    yes) enable_fast_install=yes ;;
 
4101
    no) enable_fast_install=no ;;
 
4102
    *)
 
4103
      enable_fast_install=no
 
4104
      # Look at the argument we got.  We use all the common list separators.
 
4105
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
4106
      for pkg in $enableval; do
 
4107
        IFS="$lt_save_ifs"
 
4108
        if test "X$pkg" = "X$p"; then
 
4109
          enable_fast_install=yes
 
4110
        fi
 
4111
      done
 
4112
      IFS="$lt_save_ifs"
 
4113
      ;;
 
4114
    esac
 
4115
else
 
4116
  enable_fast_install=yes
 
4117
fi
 
4118
 
 
4119
 
 
4120
{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
4121
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
 
4122
if test "${lt_cv_path_SED+set}" = set; then
 
4123
  $as_echo_n "(cached) " >&6
 
4124
else
 
4125
  # Loop through the user's path and test for sed and gsed.
 
4126
# Then use that list of sed's as ones to test for truncation.
 
4127
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4128
for as_dir in $PATH
 
4129
do
 
4130
  IFS=$as_save_IFS
 
4131
  test -z "$as_dir" && as_dir=.
 
4132
  for lt_ac_prog in sed gsed; do
 
4133
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4134
      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
 
4135
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
4136
      fi
 
4137
    done
 
4138
  done
 
4139
done
 
4140
IFS=$as_save_IFS
 
4141
lt_ac_max=0
 
4142
lt_ac_count=0
 
4143
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
4144
# along with /bin/sed that truncates output.
 
4145
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
4146
  test ! -f $lt_ac_sed && continue
 
4147
  cat /dev/null > conftest.in
 
4148
  lt_ac_count=0
 
4149
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
4150
  # Check for GNU sed and select it if it is found.
 
4151
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
4152
    lt_cv_path_SED=$lt_ac_sed
 
4153
    break
 
4154
  fi
 
4155
  while true; do
 
4156
    cat conftest.in conftest.in >conftest.tmp
 
4157
    mv conftest.tmp conftest.in
 
4158
    cp conftest.in conftest.nl
 
4159
    echo >>conftest.nl
 
4160
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
4161
    cmp -s conftest.out conftest.nl || break
 
4162
    # 10000 chars as input seems more than enough
 
4163
    test $lt_ac_count -gt 10 && break
 
4164
    lt_ac_count=`expr $lt_ac_count + 1`
 
4165
    if test $lt_ac_count -gt $lt_ac_max; then
 
4166
      lt_ac_max=$lt_ac_count
 
4167
      lt_cv_path_SED=$lt_ac_sed
 
4168
    fi
 
4169
  done
 
4170
done
 
4171
 
 
4172
fi
 
4173
 
 
4174
SED=$lt_cv_path_SED
 
4175
 
 
4176
{ $as_echo "$as_me:$LINENO: result: $SED" >&5
 
4177
$as_echo "$SED" >&6; }
 
4178
 
 
4179
 
 
4180
# Check whether --with-gnu-ld was given.
 
4181
if test "${with_gnu_ld+set}" = set; then
 
4182
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
4183
else
 
4184
  with_gnu_ld=no
 
4185
fi
 
4186
 
 
4187
ac_prog=ld
 
4188
if test "$GCC" = yes; then
 
4189
  # Check if gcc -print-prog-name=ld gives a path.
 
4190
  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
4191
$as_echo_n "checking for ld used by $CC... " >&6; }
 
4192
  case $host in
 
4193
  *-*-mingw*)
 
4194
    # gcc leaves a trailing carriage return which upsets mingw
 
4195
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
4196
  *)
 
4197
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
4198
  esac
 
4199
  case $ac_prog in
 
4200
    # Accept absolute paths.
 
4201
    [\\/]* | ?:[\\/]*)
 
4202
      re_direlt='/[^/][^/]*/\.\./'
 
4203
      # Canonicalize the pathname of ld
 
4204
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
4205
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
4206
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
4207
      done
 
4208
      test -z "$LD" && LD="$ac_prog"
 
4209
      ;;
 
4210
  "")
 
4211
    # If it fails, then pretend we aren't using GCC.
 
4212
    ac_prog=ld
 
4213
    ;;
 
4214
  *)
 
4215
    # If it is relative, then search for the first ld in PATH.
 
4216
    with_gnu_ld=unknown
 
4217
    ;;
 
4218
  esac
 
4219
elif test "$with_gnu_ld" = yes; then
 
4220
  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
 
4221
$as_echo_n "checking for GNU ld... " >&6; }
 
4222
else
 
4223
  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
4224
$as_echo_n "checking for non-GNU ld... " >&6; }
 
4225
fi
 
4226
if test "${lt_cv_path_LD+set}" = set; then
 
4227
  $as_echo_n "(cached) " >&6
 
4228
else
 
4229
  if test -z "$LD"; then
 
4230
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4231
  for ac_dir in $PATH; do
 
4232
    IFS="$lt_save_ifs"
 
4233
    test -z "$ac_dir" && ac_dir=.
 
4234
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
4235
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
4236
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
4237
      # but apparently some variants of GNU ld only accept -v.
 
4238
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
4239
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
4240
      *GNU* | *'with BFD'*)
 
4241
        test "$with_gnu_ld" != no && break
 
4242
        ;;
 
4243
      *)
 
4244
        test "$with_gnu_ld" != yes && break
 
4245
        ;;
 
4246
      esac
 
4247
    fi
 
4248
  done
 
4249
  IFS="$lt_save_ifs"
 
4250
else
 
4251
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
4252
fi
 
4253
fi
 
4254
 
 
4255
LD="$lt_cv_path_LD"
 
4256
if test -n "$LD"; then
 
4257
  { $as_echo "$as_me:$LINENO: result: $LD" >&5
 
4258
$as_echo "$LD" >&6; }
 
4259
else
 
4260
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
4261
$as_echo "no" >&6; }
 
4262
fi
 
4263
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
4264
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
4265
   { (exit 1); exit 1; }; }
 
4266
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
4267
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
4268
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
4269
  $as_echo_n "(cached) " >&6
 
4270
else
 
4271
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
4272
case `$LD -v 2>&1 </dev/null` in
 
4273
*GNU* | *'with BFD'*)
 
4274
  lt_cv_prog_gnu_ld=yes
 
4275
  ;;
 
4276
*)
 
4277
  lt_cv_prog_gnu_ld=no
 
4278
  ;;
 
4279
esac
 
4280
fi
 
4281
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
4282
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
 
4283
with_gnu_ld=$lt_cv_prog_gnu_ld
 
4284
 
 
4285
 
 
4286
{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
4287
$as_echo_n "checking for $LD option to reload object files... " >&6; }
 
4288
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
4289
  $as_echo_n "(cached) " >&6
 
4290
else
 
4291
  lt_cv_ld_reload_flag='-r'
 
4292
fi
 
4293
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
4294
$as_echo "$lt_cv_ld_reload_flag" >&6; }
 
4295
reload_flag=$lt_cv_ld_reload_flag
 
4296
case $reload_flag in
 
4297
"" | " "*) ;;
 
4298
*) reload_flag=" $reload_flag" ;;
 
4299
esac
 
4300
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4301
case $host_os in
 
4302
  darwin*)
 
4303
    if test "$GCC" = yes; then
 
4304
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
4305
    else
 
4306
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4307
    fi
 
4308
    ;;
 
4309
esac
 
4310
 
 
4311
{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
4312
$as_echo_n "checking for BSD-compatible nm... " >&6; }
 
4313
if test "${lt_cv_path_NM+set}" = set; then
 
4314
  $as_echo_n "(cached) " >&6
 
4315
else
 
4316
  if test -n "$NM"; then
 
4317
  # Let the user override the test.
 
4318
  lt_cv_path_NM="$NM"
 
4319
else
 
4320
  lt_nm_to_check="${ac_tool_prefix}nm"
 
4321
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
4322
    lt_nm_to_check="$lt_nm_to_check nm"
 
4323
  fi
 
4324
  for lt_tmp_nm in $lt_nm_to_check; do
 
4325
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4326
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
4327
      IFS="$lt_save_ifs"
 
4328
      test -z "$ac_dir" && ac_dir=.
 
4329
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
4330
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
4331
        # Check to see if the nm accepts a BSD-compat flag.
 
4332
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
4333
        #   nm: unknown option "B" ignored
 
4334
        # Tru64's nm complains that /dev/null is an invalid object file
 
4335
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
4336
        */dev/null* | *'Invalid file or object type'*)
 
4337
          lt_cv_path_NM="$tmp_nm -B"
 
4338
          break
 
4339
          ;;
 
4340
        *)
 
4341
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
4342
          */dev/null*)
 
4343
            lt_cv_path_NM="$tmp_nm -p"
 
4344
            break
 
4345
            ;;
 
4346
          *)
 
4347
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
4348
            continue # so that we can try to find one that supports BSD flags
 
4349
            ;;
 
4350
          esac
 
4351
          ;;
 
4352
        esac
 
4353
      fi
 
4354
    done
 
4355
    IFS="$lt_save_ifs"
 
4356
  done
 
4357
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
4358
fi
 
4359
fi
 
4360
{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
4361
$as_echo "$lt_cv_path_NM" >&6; }
 
4362
NM="$lt_cv_path_NM"
 
4363
 
 
4364
{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
4365
$as_echo_n "checking whether ln -s works... " >&6; }
 
4366
LN_S=$as_ln_s
 
4367
if test "$LN_S" = "ln -s"; then
 
4368
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
4369
$as_echo "yes" >&6; }
 
4370
else
 
4371
  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
4372
$as_echo "no, using $LN_S" >&6; }
 
4373
fi
 
4374
 
 
4375
{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
 
4376
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
 
4377
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
4378
  $as_echo_n "(cached) " >&6
 
4379
else
 
4380
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
4381
lt_cv_file_magic_test_file=
 
4382
lt_cv_deplibs_check_method='unknown'
 
4383
# Need to set the preceding variable on all platforms that support
 
4384
# interlibrary dependencies.
 
4385
# 'none' -- dependencies not supported.
 
4386
# `unknown' -- same as none, but documents that we really don't know.
 
4387
# 'pass_all' -- all dependencies passed with no checks.
 
4388
# 'test_compile' -- check by making test program.
 
4389
# 'file_magic [[regex]]' -- check by looking for files in library path
 
4390
# which responds to the $file_magic_cmd with a given extended regex.
 
4391
# If you have `file' or equivalent on your system and you're not sure
 
4392
# whether `pass_all' will *always* work, you probably want this one.
 
4393
 
 
4394
case $host_os in
 
4395
aix[4-9]*)
 
4396
  lt_cv_deplibs_check_method=pass_all
 
4397
  ;;
 
4398
 
 
4399
beos*)
 
4400
  lt_cv_deplibs_check_method=pass_all
 
4401
  ;;
 
4402
 
 
4403
bsdi[45]*)
 
4404
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
4405
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
4406
  lt_cv_file_magic_test_file=/shlib/libc.so
 
4407
  ;;
 
4408
 
 
4409
cygwin*)
 
4410
  # func_win32_libid is a shell function defined in ltmain.sh
 
4411
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
4412
  lt_cv_file_magic_cmd='func_win32_libid'
 
4413
  ;;
 
4414
 
 
4415
mingw* | pw32*)
 
4416
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
4417
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
4418
  # unless we find 'file', for example because we are cross-compiling.
 
4419
  if ( file / ) >/dev/null 2>&1; then
 
4420
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
4421
    lt_cv_file_magic_cmd='func_win32_libid'
 
4422
  else
 
4423
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
4424
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
4425
  fi
 
4426
  ;;
 
4427
 
 
4428
darwin* | rhapsody*)
 
4429
  lt_cv_deplibs_check_method=pass_all
 
4430
  ;;
 
4431
 
 
4432
freebsd* | dragonfly*)
 
4433
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
4434
    case $host_cpu in
 
4435
    i*86 )
 
4436
      # Not sure whether the presence of OpenBSD here was a mistake.
 
4437
      # Let's accept both of them until this is cleared up.
 
4438
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
4439
      lt_cv_file_magic_cmd=/usr/bin/file
 
4440
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
4441
      ;;
 
4442
    esac
 
4443
  else
 
4444
    lt_cv_deplibs_check_method=pass_all
 
4445
  fi
 
4446
  ;;
 
4447
 
 
4448
gnu*)
 
4449
  lt_cv_deplibs_check_method=pass_all
 
4450
  ;;
 
4451
 
 
4452
hpux10.20* | hpux11*)
 
4453
  lt_cv_file_magic_cmd=/usr/bin/file
 
4454
  case $host_cpu in
 
4455
  ia64*)
 
4456
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
4457
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
4458
    ;;
 
4459
  hppa*64*)
 
4460
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
 
4461
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
4462
    ;;
 
4463
  *)
 
4464
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
4465
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
4466
    ;;
 
4467
  esac
 
4468
  ;;
 
4469
 
 
4470
interix[3-9]*)
 
4471
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
4472
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
4473
  ;;
 
4474
 
 
4475
irix5* | irix6* | nonstopux*)
 
4476
  case $LD in
 
4477
  *-32|*"-32 ") libmagic=32-bit;;
 
4478
  *-n32|*"-n32 ") libmagic=N32;;
 
4479
  *-64|*"-64 ") libmagic=64-bit;;
 
4480
  *) libmagic=never-match;;
 
4481
  esac
 
4482
  lt_cv_deplibs_check_method=pass_all
 
4483
  ;;
 
4484
 
 
4485
# This must be Linux ELF.
 
4486
linux* | k*bsd*-gnu)
 
4487
  lt_cv_deplibs_check_method=pass_all
 
4488
  ;;
 
4489
 
 
4490
netbsd*)
 
4491
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
4492
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
4493
  else
 
4494
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
4495
  fi
 
4496
  ;;
 
4497
 
 
4498
newos6*)
 
4499
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
4500
  lt_cv_file_magic_cmd=/usr/bin/file
 
4501
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
4502
  ;;
 
4503
 
 
4504
nto-qnx*)
 
4505
  lt_cv_deplibs_check_method=unknown
 
4506
  ;;
 
4507
 
 
4508
openbsd*)
 
4509
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
4510
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
4511
  else
 
4512
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
4513
  fi
 
4514
  ;;
 
4515
 
 
4516
osf3* | osf4* | osf5*)
 
4517
  lt_cv_deplibs_check_method=pass_all
 
4518
  ;;
 
4519
 
 
4520
rdos*)
 
4521
  lt_cv_deplibs_check_method=pass_all
 
4522
  ;;
 
4523
 
 
4524
solaris*)
 
4525
  lt_cv_deplibs_check_method=pass_all
 
4526
  ;;
 
4527
 
 
4528
sysv4 | sysv4.3*)
 
4529
  case $host_vendor in
 
4530
  motorola)
 
4531
    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]'
 
4532
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
4533
    ;;
 
4534
  ncr)
 
4535
    lt_cv_deplibs_check_method=pass_all
 
4536
    ;;
 
4537
  sequent)
 
4538
    lt_cv_file_magic_cmd='/bin/file'
 
4539
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
4540
    ;;
 
4541
  sni)
 
4542
    lt_cv_file_magic_cmd='/bin/file'
 
4543
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
4544
    lt_cv_file_magic_test_file=/lib/libc.so
 
4545
    ;;
 
4546
  siemens)
 
4547
    lt_cv_deplibs_check_method=pass_all
 
4548
    ;;
 
4549
  pc)
 
4550
    lt_cv_deplibs_check_method=pass_all
 
4551
    ;;
 
4552
  esac
 
4553
  ;;
 
4554
 
 
4555
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
4556
  lt_cv_deplibs_check_method=pass_all
 
4557
  ;;
 
4558
esac
 
4559
 
 
4560
fi
 
4561
{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
4562
$as_echo "$lt_cv_deplibs_check_method" >&6; }
 
4563
file_magic_cmd=$lt_cv_file_magic_cmd
 
4564
deplibs_check_method=$lt_cv_deplibs_check_method
 
4565
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
4566
 
 
4567
 
 
4568
 
 
4569
 
 
4570
# If no C compiler was specified, use CC.
 
4571
LTCC=${LTCC-"$CC"}
 
4572
 
 
4573
# If no C compiler flags were specified, use CFLAGS.
 
4574
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
4575
 
 
4576
# Allow CC to be a program name with arguments.
 
4577
compiler=$CC
 
4578
 
 
4579
# Check whether --enable-libtool-lock was given.
 
4580
if test "${enable_libtool_lock+set}" = set; then
 
4581
  enableval=$enable_libtool_lock;
 
4582
fi
 
4583
 
 
4584
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
4585
 
 
4586
# Some flags need to be propagated to the compiler or linker for good
 
4587
# libtool support.
 
4588
case $host in
 
4589
ia64-*-hpux*)
 
4590
  # Find out which ABI we are using.
 
4591
  echo 'int i;' > conftest.$ac_ext
 
4592
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4593
  (eval $ac_compile) 2>&5
 
4594
  ac_status=$?
 
4595
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4596
  (exit $ac_status); }; then
 
4597
    case `/usr/bin/file conftest.$ac_objext` in
 
4598
    *ELF-32*)
 
4599
      HPUX_IA64_MODE="32"
 
4600
      ;;
 
4601
    *ELF-64*)
 
4602
      HPUX_IA64_MODE="64"
 
4603
      ;;
 
4604
    esac
 
4605
  fi
 
4606
  rm -rf conftest*
 
4607
  ;;
 
4608
*-*-irix6*)
 
4609
  # Find out which ABI we are using.
 
4610
  echo '#line 4610 "configure"' > conftest.$ac_ext
 
4611
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4612
  (eval $ac_compile) 2>&5
 
4613
  ac_status=$?
 
4614
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4615
  (exit $ac_status); }; then
 
4616
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
4617
    case `/usr/bin/file conftest.$ac_objext` in
 
4618
    *32-bit*)
 
4619
      LD="${LD-ld} -melf32bsmip"
 
4620
      ;;
 
4621
    *N32*)
 
4622
      LD="${LD-ld} -melf32bmipn32"
 
4623
      ;;
 
4624
    *64-bit*)
 
4625
      LD="${LD-ld} -melf64bmip"
 
4626
      ;;
 
4627
    esac
 
4628
   else
 
4629
    case `/usr/bin/file conftest.$ac_objext` in
 
4630
    *32-bit*)
 
4631
      LD="${LD-ld} -32"
 
4632
      ;;
 
4633
    *N32*)
 
4634
      LD="${LD-ld} -n32"
 
4635
      ;;
 
4636
    *64-bit*)
 
4637
      LD="${LD-ld} -64"
 
4638
      ;;
 
4639
    esac
 
4640
   fi
 
4641
  fi
 
4642
  rm -rf conftest*
 
4643
  ;;
 
4644
 
 
4645
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
4646
s390*-*linux*|sparc*-*linux*)
 
4647
  # Find out which ABI we are using.
 
4648
  echo 'int i;' > conftest.$ac_ext
 
4649
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4650
  (eval $ac_compile) 2>&5
 
4651
  ac_status=$?
 
4652
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4653
  (exit $ac_status); }; then
 
4654
    case `/usr/bin/file conftest.o` in
 
4655
    *32-bit*)
 
4656
      case $host in
 
4657
        x86_64-*kfreebsd*-gnu)
 
4658
          LD="${LD-ld} -m elf_i386_fbsd"
 
4659
          ;;
 
4660
        x86_64-*linux*)
 
4661
          LD="${LD-ld} -m elf_i386"
 
4662
          ;;
 
4663
        ppc64-*linux*|powerpc64-*linux*)
 
4664
          LD="${LD-ld} -m elf32ppclinux"
 
4665
          ;;
 
4666
        s390x-*linux*)
 
4667
          LD="${LD-ld} -m elf_s390"
 
4668
          ;;
 
4669
        sparc64-*linux*)
 
4670
          LD="${LD-ld} -m elf32_sparc"
 
4671
          ;;
 
4672
      esac
 
4673
      ;;
 
4674
    *64-bit*)
 
4675
      case $host in
 
4676
        x86_64-*kfreebsd*-gnu)
 
4677
          LD="${LD-ld} -m elf_x86_64_fbsd"
 
4678
          ;;
 
4679
        x86_64-*linux*)
 
4680
          LD="${LD-ld} -m elf_x86_64"
 
4681
          ;;
 
4682
        ppc*-*linux*|powerpc*-*linux*)
 
4683
          LD="${LD-ld} -m elf64ppc"
 
4684
          ;;
 
4685
        s390*-*linux*)
 
4686
          LD="${LD-ld} -m elf64_s390"
 
4687
          ;;
 
4688
        sparc*-*linux*)
 
4689
          LD="${LD-ld} -m elf64_sparc"
 
4690
          ;;
 
4691
      esac
 
4692
      ;;
 
4693
    esac
 
4694
  fi
 
4695
  rm -rf conftest*
 
4696
  ;;
 
4697
 
 
4698
*-*-sco3.2v5*)
 
4699
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
4700
  SAVE_CFLAGS="$CFLAGS"
 
4701
  CFLAGS="$CFLAGS -belf"
 
4702
  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
4703
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
 
4704
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
4705
  $as_echo_n "(cached) " >&6
 
4706
else
 
4707
  ac_ext=c
 
4708
ac_cpp='$CPP $CPPFLAGS'
 
4709
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4710
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4711
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4712
 
 
4713
     cat >conftest.$ac_ext <<_ACEOF
 
4714
/* confdefs.h.  */
 
4715
_ACEOF
 
4716
cat confdefs.h >>conftest.$ac_ext
 
4717
cat >>conftest.$ac_ext <<_ACEOF
 
4718
/* end confdefs.h.  */
 
4719
 
 
4720
int
 
4721
main ()
 
4722
{
 
4723
 
 
4724
  ;
 
4725
  return 0;
 
4726
}
 
4727
_ACEOF
 
4728
rm -f conftest.$ac_objext conftest$ac_exeext
 
4729
if { (ac_try="$ac_link"
 
4730
case "(($ac_try" in
 
4731
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4732
  *) ac_try_echo=$ac_try;;
 
4733
esac
 
4734
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4735
$as_echo "$ac_try_echo") >&5
 
4736
  (eval "$ac_link") 2>conftest.er1
 
4737
  ac_status=$?
 
4738
  grep -v '^ *+' conftest.er1 >conftest.err
 
4739
  rm -f conftest.er1
 
4740
  cat conftest.err >&5
 
4741
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4742
  (exit $ac_status); } && {
 
4743
         test -z "$ac_c_werror_flag" ||
 
4744
         test ! -s conftest.err
 
4745
       } && test -s conftest$ac_exeext && {
 
4746
         test "$cross_compiling" = yes ||
 
4747
         $as_test_x conftest$ac_exeext
 
4748
       }; then
 
4749
  lt_cv_cc_needs_belf=yes
 
4750
else
 
4751
  $as_echo "$as_me: failed program was:" >&5
 
4752
sed 's/^/| /' conftest.$ac_ext >&5
 
4753
 
 
4754
        lt_cv_cc_needs_belf=no
 
4755
fi
 
4756
 
 
4757
rm -rf conftest.dSYM
 
4758
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
4759
      conftest$ac_exeext conftest.$ac_ext
 
4760
     ac_ext=c
 
4761
ac_cpp='$CPP $CPPFLAGS'
 
4762
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4763
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4764
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4765
 
 
4766
fi
 
4767
{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
4768
$as_echo "$lt_cv_cc_needs_belf" >&6; }
 
4769
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
4770
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
4771
    CFLAGS="$SAVE_CFLAGS"
 
4772
  fi
 
4773
  ;;
 
4774
sparc*-*solaris*)
 
4775
  # Find out which ABI we are using.
 
4776
  echo 'int i;' > conftest.$ac_ext
 
4777
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4778
  (eval $ac_compile) 2>&5
 
4779
  ac_status=$?
 
4780
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4781
  (exit $ac_status); }; then
 
4782
    case `/usr/bin/file conftest.o` in
 
4783
    *64-bit*)
 
4784
      case $lt_cv_prog_gnu_ld in
 
4785
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
4786
      *)
 
4787
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
4788
          LD="${LD-ld} -64"
 
4789
        fi
 
4790
        ;;
 
4791
      esac
 
4792
      ;;
 
4793
    esac
 
4794
  fi
 
4795
  rm -rf conftest*
 
4796
  ;;
 
4797
 
 
4798
 
 
4799
esac
 
4800
 
 
4801
need_locks="$enable_libtool_lock"
 
4802
 
 
4803
 
 
4804
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
4805
$as_echo_n "checking for ANSI C header files... " >&6; }
 
4806
if test "${ac_cv_header_stdc+set}" = set; then
 
4807
  $as_echo_n "(cached) " >&6
 
4808
else
 
4809
  cat >conftest.$ac_ext <<_ACEOF
 
4810
/* confdefs.h.  */
 
4811
_ACEOF
 
4812
cat confdefs.h >>conftest.$ac_ext
 
4813
cat >>conftest.$ac_ext <<_ACEOF
 
4814
/* end confdefs.h.  */
 
4815
#include <stdlib.h>
 
4816
#include <stdarg.h>
 
4817
#include <string.h>
 
4818
#include <float.h>
 
4819
 
 
4820
int
 
4821
main ()
 
4822
{
 
4823
 
 
4824
  ;
 
4825
  return 0;
 
4826
}
 
4827
_ACEOF
 
4828
rm -f conftest.$ac_objext
 
4829
if { (ac_try="$ac_compile"
 
4830
case "(($ac_try" in
 
4831
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4832
  *) ac_try_echo=$ac_try;;
 
4833
esac
 
4834
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4835
$as_echo "$ac_try_echo") >&5
 
4836
  (eval "$ac_compile") 2>conftest.er1
 
4837
  ac_status=$?
 
4838
  grep -v '^ *+' conftest.er1 >conftest.err
 
4839
  rm -f conftest.er1
 
4840
  cat conftest.err >&5
 
4841
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4842
  (exit $ac_status); } && {
 
4843
         test -z "$ac_c_werror_flag" ||
 
4844
         test ! -s conftest.err
 
4845
       } && test -s conftest.$ac_objext; then
 
4846
  ac_cv_header_stdc=yes
 
4847
else
 
4848
  $as_echo "$as_me: failed program was:" >&5
 
4849
sed 's/^/| /' conftest.$ac_ext >&5
 
4850
 
 
4851
        ac_cv_header_stdc=no
 
4852
fi
 
4853
 
 
4854
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4855
 
 
4856
if test $ac_cv_header_stdc = yes; then
 
4857
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
4858
  cat >conftest.$ac_ext <<_ACEOF
 
4859
/* confdefs.h.  */
 
4860
_ACEOF
 
4861
cat confdefs.h >>conftest.$ac_ext
 
4862
cat >>conftest.$ac_ext <<_ACEOF
 
4863
/* end confdefs.h.  */
 
4864
#include <string.h>
 
4865
 
 
4866
_ACEOF
 
4867
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4868
  $EGREP "memchr" >/dev/null 2>&1; then
 
4869
  :
 
4870
else
 
4871
  ac_cv_header_stdc=no
 
4872
fi
 
4873
rm -f conftest*
 
4874
 
 
4875
fi
 
4876
 
 
4877
if test $ac_cv_header_stdc = yes; then
 
4878
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
4879
  cat >conftest.$ac_ext <<_ACEOF
 
4880
/* confdefs.h.  */
 
4881
_ACEOF
 
4882
cat confdefs.h >>conftest.$ac_ext
 
4883
cat >>conftest.$ac_ext <<_ACEOF
 
4884
/* end confdefs.h.  */
 
4885
#include <stdlib.h>
 
4886
 
 
4887
_ACEOF
 
4888
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4889
  $EGREP "free" >/dev/null 2>&1; then
 
4890
  :
 
4891
else
 
4892
  ac_cv_header_stdc=no
 
4893
fi
 
4894
rm -f conftest*
 
4895
 
 
4896
fi
 
4897
 
 
4898
if test $ac_cv_header_stdc = yes; then
 
4899
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
4900
  if test "$cross_compiling" = yes; then
 
4901
  :
 
4902
else
 
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
#include <ctype.h>
 
4910
#include <stdlib.h>
 
4911
#if ((' ' & 0x0FF) == 0x020)
 
4912
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
4913
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
4914
#else
 
4915
# define ISLOWER(c) \
 
4916
                   (('a' <= (c) && (c) <= 'i') \
 
4917
                     || ('j' <= (c) && (c) <= 'r') \
 
4918
                     || ('s' <= (c) && (c) <= 'z'))
 
4919
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
4920
#endif
 
4921
 
 
4922
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
4923
int
 
4924
main ()
 
4925
{
 
4926
  int i;
 
4927
  for (i = 0; i < 256; i++)
 
4928
    if (XOR (islower (i), ISLOWER (i))
 
4929
        || toupper (i) != TOUPPER (i))
 
4930
      return 2;
 
4931
  return 0;
 
4932
}
 
4933
_ACEOF
 
4934
rm -f conftest$ac_exeext
 
4935
if { (ac_try="$ac_link"
 
4936
case "(($ac_try" in
 
4937
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4938
  *) ac_try_echo=$ac_try;;
 
4939
esac
 
4940
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4941
$as_echo "$ac_try_echo") >&5
 
4942
  (eval "$ac_link") 2>&5
 
4943
  ac_status=$?
 
4944
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4945
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
4946
  { (case "(($ac_try" in
 
4947
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4948
  *) ac_try_echo=$ac_try;;
 
4949
esac
 
4950
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4951
$as_echo "$ac_try_echo") >&5
 
4952
  (eval "$ac_try") 2>&5
 
4953
  ac_status=$?
 
4954
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4955
  (exit $ac_status); }; }; then
 
4956
  :
 
4957
else
 
4958
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
4959
$as_echo "$as_me: failed program was:" >&5
 
4960
sed 's/^/| /' conftest.$ac_ext >&5
 
4961
 
 
4962
( exit $ac_status )
 
4963
ac_cv_header_stdc=no
 
4964
fi
 
4965
rm -rf conftest.dSYM
 
4966
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4967
fi
 
4968
 
 
4969
 
 
4970
fi
 
4971
fi
 
4972
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
4973
$as_echo "$ac_cv_header_stdc" >&6; }
 
4974
if test $ac_cv_header_stdc = yes; then
 
4975
 
 
4976
cat >>confdefs.h <<\_ACEOF
 
4977
#define STDC_HEADERS 1
 
4978
_ACEOF
 
4979
 
 
4980
fi
 
4981
 
 
4982
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
4983
 
 
4984
 
 
4985
 
 
4986
 
 
4987
 
 
4988
 
 
4989
 
 
4990
 
 
4991
 
 
4992
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
4993
                  inttypes.h stdint.h unistd.h
 
4994
do
 
4995
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4996
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4997
$as_echo_n "checking for $ac_header... " >&6; }
 
4998
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
4999
  $as_echo_n "(cached) " >&6
 
5000
else
 
5001
  cat >conftest.$ac_ext <<_ACEOF
 
5002
/* confdefs.h.  */
 
5003
_ACEOF
 
5004
cat confdefs.h >>conftest.$ac_ext
 
5005
cat >>conftest.$ac_ext <<_ACEOF
 
5006
/* end confdefs.h.  */
 
5007
$ac_includes_default
 
5008
 
 
5009
#include <$ac_header>
 
5010
_ACEOF
 
5011
rm -f conftest.$ac_objext
 
5012
if { (ac_try="$ac_compile"
 
5013
case "(($ac_try" in
 
5014
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5015
  *) ac_try_echo=$ac_try;;
 
5016
esac
 
5017
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5018
$as_echo "$ac_try_echo") >&5
 
5019
  (eval "$ac_compile") 2>conftest.er1
 
5020
  ac_status=$?
 
5021
  grep -v '^ *+' conftest.er1 >conftest.err
 
5022
  rm -f conftest.er1
 
5023
  cat conftest.err >&5
 
5024
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5025
  (exit $ac_status); } && {
 
5026
         test -z "$ac_c_werror_flag" ||
 
5027
         test ! -s conftest.err
 
5028
       } && test -s conftest.$ac_objext; then
 
5029
  eval "$as_ac_Header=yes"
 
5030
else
 
5031
  $as_echo "$as_me: failed program was:" >&5
 
5032
sed 's/^/| /' conftest.$ac_ext >&5
 
5033
 
 
5034
        eval "$as_ac_Header=no"
 
5035
fi
 
5036
 
 
5037
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5038
fi
 
5039
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
5040
                 $as_echo "$as_val"'`
 
5041
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
5042
$as_echo "$ac_res" >&6; }
 
5043
as_val=`eval 'as_val=${'$as_ac_Header'}
 
5044
                 $as_echo "$as_val"'`
 
5045
   if test "x$as_val" = x""yes; then
 
5046
  cat >>confdefs.h <<_ACEOF
 
5047
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5048
_ACEOF
 
5049
 
 
5050
fi
 
5051
 
 
5052
done
 
5053
 
 
5054
 
 
5055
 
 
5056
for ac_header in dlfcn.h
 
5057
do
 
5058
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5059
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5060
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5061
$as_echo_n "checking for $ac_header... " >&6; }
 
5062
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5063
  $as_echo_n "(cached) " >&6
 
5064
fi
 
5065
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
5066
                 $as_echo "$as_val"'`
 
5067
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
5068
$as_echo "$ac_res" >&6; }
 
5069
else
 
5070
  # Is the header compilable?
 
5071
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
5072
$as_echo_n "checking $ac_header usability... " >&6; }
 
5073
cat >conftest.$ac_ext <<_ACEOF
 
5074
/* confdefs.h.  */
 
5075
_ACEOF
 
5076
cat confdefs.h >>conftest.$ac_ext
 
5077
cat >>conftest.$ac_ext <<_ACEOF
 
5078
/* end confdefs.h.  */
 
5079
$ac_includes_default
 
5080
#include <$ac_header>
 
5081
_ACEOF
 
5082
rm -f conftest.$ac_objext
 
5083
if { (ac_try="$ac_compile"
 
5084
case "(($ac_try" in
 
5085
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5086
  *) ac_try_echo=$ac_try;;
 
5087
esac
 
5088
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5089
$as_echo "$ac_try_echo") >&5
 
5090
  (eval "$ac_compile") 2>conftest.er1
 
5091
  ac_status=$?
 
5092
  grep -v '^ *+' conftest.er1 >conftest.err
 
5093
  rm -f conftest.er1
 
5094
  cat conftest.err >&5
 
5095
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5096
  (exit $ac_status); } && {
 
5097
         test -z "$ac_c_werror_flag" ||
 
5098
         test ! -s conftest.err
 
5099
       } && test -s conftest.$ac_objext; then
 
5100
  ac_header_compiler=yes
 
5101
else
 
5102
  $as_echo "$as_me: failed program was:" >&5
 
5103
sed 's/^/| /' conftest.$ac_ext >&5
 
5104
 
 
5105
        ac_header_compiler=no
 
5106
fi
 
5107
 
 
5108
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5109
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
5110
$as_echo "$ac_header_compiler" >&6; }
 
5111
 
 
5112
# Is the header present?
 
5113
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
5114
$as_echo_n "checking $ac_header presence... " >&6; }
 
5115
cat >conftest.$ac_ext <<_ACEOF
 
5116
/* confdefs.h.  */
 
5117
_ACEOF
 
5118
cat confdefs.h >>conftest.$ac_ext
 
5119
cat >>conftest.$ac_ext <<_ACEOF
 
5120
/* end confdefs.h.  */
 
5121
#include <$ac_header>
 
5122
_ACEOF
 
5123
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5124
case "(($ac_try" in
 
5125
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5126
  *) ac_try_echo=$ac_try;;
 
5127
esac
 
5128
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5129
$as_echo "$ac_try_echo") >&5
 
5130
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5131
  ac_status=$?
 
5132
  grep -v '^ *+' conftest.er1 >conftest.err
 
5133
  rm -f conftest.er1
 
5134
  cat conftest.err >&5
 
5135
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5136
  (exit $ac_status); } >/dev/null && {
 
5137
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
5138
         test ! -s conftest.err
 
5139
       }; then
 
5140
  ac_header_preproc=yes
 
5141
else
 
5142
  $as_echo "$as_me: failed program was:" >&5
 
5143
sed 's/^/| /' conftest.$ac_ext >&5
 
5144
 
 
5145
  ac_header_preproc=no
 
5146
fi
 
5147
 
 
5148
rm -f conftest.err conftest.$ac_ext
 
5149
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
5150
$as_echo "$ac_header_preproc" >&6; }
 
5151
 
 
5152
# So?  What about this header?
 
5153
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
5154
  yes:no: )
 
5155
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
5156
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
5157
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
5158
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
5159
    ac_header_preproc=yes
 
5160
    ;;
 
5161
  no:yes:* )
 
5162
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
5163
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
5164
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
5165
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
5166
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
5167
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
5168
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
5169
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
5170
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
5171
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5172
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
5173
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
5174
 
 
5175
    ;;
 
5176
esac
 
5177
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5178
$as_echo_n "checking for $ac_header... " >&6; }
 
5179
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5180
  $as_echo_n "(cached) " >&6
 
5181
else
 
5182
  eval "$as_ac_Header=\$ac_header_preproc"
 
5183
fi
 
5184
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
5185
                 $as_echo "$as_val"'`
 
5186
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
5187
$as_echo "$ac_res" >&6; }
 
5188
 
 
5189
fi
 
5190
as_val=`eval 'as_val=${'$as_ac_Header'}
 
5191
                 $as_echo "$as_val"'`
 
5192
   if test "x$as_val" = x""yes; then
 
5193
  cat >>confdefs.h <<_ACEOF
 
5194
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5195
_ACEOF
 
5196
 
 
5197
fi
 
5198
 
 
5199
done
 
5200
 
 
5201
ac_ext=cpp
 
5202
ac_cpp='$CXXCPP $CPPFLAGS'
 
5203
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5204
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5205
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5206
if test -z "$CXX"; then
 
5207
  if test -n "$CCC"; then
 
5208
    CXX=$CCC
 
5209
  else
 
5210
    if test -n "$ac_tool_prefix"; then
 
5211
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
5212
  do
 
5213
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5214
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5215
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5216
$as_echo_n "checking for $ac_word... " >&6; }
 
5217
if test "${ac_cv_prog_CXX+set}" = set; then
 
5218
  $as_echo_n "(cached) " >&6
 
5219
else
 
5220
  if test -n "$CXX"; then
 
5221
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
5222
else
 
5223
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5224
for as_dir in $PATH
 
5225
do
 
5226
  IFS=$as_save_IFS
 
5227
  test -z "$as_dir" && as_dir=.
 
5228
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5229
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5230
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
5231
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5232
    break 2
 
5233
  fi
 
5234
done
 
5235
done
 
5236
IFS=$as_save_IFS
 
5237
 
 
5238
fi
 
5239
fi
 
5240
CXX=$ac_cv_prog_CXX
 
5241
if test -n "$CXX"; then
 
5242
  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
 
5243
$as_echo "$CXX" >&6; }
 
5244
else
 
5245
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5246
$as_echo "no" >&6; }
 
5247
fi
 
5248
 
 
5249
 
 
5250
    test -n "$CXX" && break
 
5251
  done
 
5252
fi
 
5253
if test -z "$CXX"; then
 
5254
  ac_ct_CXX=$CXX
 
5255
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
5256
do
 
5257
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5258
set dummy $ac_prog; ac_word=$2
 
5259
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5260
$as_echo_n "checking for $ac_word... " >&6; }
 
5261
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
5262
  $as_echo_n "(cached) " >&6
 
5263
else
 
5264
  if test -n "$ac_ct_CXX"; then
 
5265
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
5266
else
 
5267
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5268
for as_dir in $PATH
 
5269
do
 
5270
  IFS=$as_save_IFS
 
5271
  test -z "$as_dir" && as_dir=.
 
5272
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5273
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5274
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
5275
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5276
    break 2
 
5277
  fi
 
5278
done
 
5279
done
 
5280
IFS=$as_save_IFS
 
5281
 
 
5282
fi
 
5283
fi
 
5284
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
5285
if test -n "$ac_ct_CXX"; then
 
5286
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
5287
$as_echo "$ac_ct_CXX" >&6; }
 
5288
else
 
5289
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5290
$as_echo "no" >&6; }
 
5291
fi
 
5292
 
 
5293
 
 
5294
  test -n "$ac_ct_CXX" && break
 
5295
done
 
5296
 
 
5297
  if test "x$ac_ct_CXX" = x; then
 
5298
    CXX="g++"
 
5299
  else
 
5300
    case $cross_compiling:$ac_tool_warned in
 
5301
yes:)
 
5302
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
5303
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5304
ac_tool_warned=yes ;;
 
5305
esac
 
5306
    CXX=$ac_ct_CXX
 
5307
  fi
 
5308
fi
 
5309
 
 
5310
  fi
 
5311
fi
 
5312
# Provide some information about the compiler.
 
5313
$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
 
5314
set X $ac_compile
 
5315
ac_compiler=$2
 
5316
{ (ac_try="$ac_compiler --version >&5"
 
5317
case "(($ac_try" in
 
5318
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5319
  *) ac_try_echo=$ac_try;;
 
5320
esac
 
5321
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5322
$as_echo "$ac_try_echo") >&5
 
5323
  (eval "$ac_compiler --version >&5") 2>&5
 
5324
  ac_status=$?
 
5325
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5326
  (exit $ac_status); }
 
5327
{ (ac_try="$ac_compiler -v >&5"
 
5328
case "(($ac_try" in
 
5329
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5330
  *) ac_try_echo=$ac_try;;
 
5331
esac
 
5332
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5333
$as_echo "$ac_try_echo") >&5
 
5334
  (eval "$ac_compiler -v >&5") 2>&5
 
5335
  ac_status=$?
 
5336
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5337
  (exit $ac_status); }
 
5338
{ (ac_try="$ac_compiler -V >&5"
 
5339
case "(($ac_try" in
 
5340
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5341
  *) ac_try_echo=$ac_try;;
 
5342
esac
 
5343
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5344
$as_echo "$ac_try_echo") >&5
 
5345
  (eval "$ac_compiler -V >&5") 2>&5
 
5346
  ac_status=$?
 
5347
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5348
  (exit $ac_status); }
 
5349
 
 
5350
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
5351
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
 
5352
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
5353
  $as_echo_n "(cached) " >&6
 
5354
else
 
5355
  cat >conftest.$ac_ext <<_ACEOF
 
5356
/* confdefs.h.  */
 
5357
_ACEOF
 
5358
cat confdefs.h >>conftest.$ac_ext
 
5359
cat >>conftest.$ac_ext <<_ACEOF
 
5360
/* end confdefs.h.  */
 
5361
 
 
5362
int
 
5363
main ()
 
5364
{
 
5365
#ifndef __GNUC__
 
5366
       choke me
 
5367
#endif
 
5368
 
 
5369
  ;
 
5370
  return 0;
 
5371
}
 
5372
_ACEOF
 
5373
rm -f conftest.$ac_objext
 
5374
if { (ac_try="$ac_compile"
 
5375
case "(($ac_try" in
 
5376
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5377
  *) ac_try_echo=$ac_try;;
 
5378
esac
 
5379
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5380
$as_echo "$ac_try_echo") >&5
 
5381
  (eval "$ac_compile") 2>conftest.er1
 
5382
  ac_status=$?
 
5383
  grep -v '^ *+' conftest.er1 >conftest.err
 
5384
  rm -f conftest.er1
 
5385
  cat conftest.err >&5
 
5386
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5387
  (exit $ac_status); } && {
 
5388
         test -z "$ac_cxx_werror_flag" ||
 
5389
         test ! -s conftest.err
 
5390
       } && test -s conftest.$ac_objext; then
 
5391
  ac_compiler_gnu=yes
 
5392
else
 
5393
  $as_echo "$as_me: failed program was:" >&5
 
5394
sed 's/^/| /' conftest.$ac_ext >&5
 
5395
 
 
5396
        ac_compiler_gnu=no
 
5397
fi
 
5398
 
 
5399
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5400
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
5401
 
 
5402
fi
 
5403
{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
5404
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
 
5405
if test $ac_compiler_gnu = yes; then
 
5406
  GXX=yes
 
5407
else
 
5408
  GXX=
 
5409
fi
 
5410
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
5411
ac_save_CXXFLAGS=$CXXFLAGS
 
5412
{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
5413
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
 
5414
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
5415
  $as_echo_n "(cached) " >&6
 
5416
else
 
5417
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
5418
   ac_cxx_werror_flag=yes
 
5419
   ac_cv_prog_cxx_g=no
 
5420
   CXXFLAGS="-g"
 
5421
   cat >conftest.$ac_ext <<_ACEOF
 
5422
/* confdefs.h.  */
 
5423
_ACEOF
 
5424
cat confdefs.h >>conftest.$ac_ext
 
5425
cat >>conftest.$ac_ext <<_ACEOF
 
5426
/* end confdefs.h.  */
 
5427
 
 
5428
int
 
5429
main ()
 
5430
{
 
5431
 
 
5432
  ;
 
5433
  return 0;
 
5434
}
 
5435
_ACEOF
 
5436
rm -f conftest.$ac_objext
 
5437
if { (ac_try="$ac_compile"
 
5438
case "(($ac_try" in
 
5439
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5440
  *) ac_try_echo=$ac_try;;
 
5441
esac
 
5442
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5443
$as_echo "$ac_try_echo") >&5
 
5444
  (eval "$ac_compile") 2>conftest.er1
 
5445
  ac_status=$?
 
5446
  grep -v '^ *+' conftest.er1 >conftest.err
 
5447
  rm -f conftest.er1
 
5448
  cat conftest.err >&5
 
5449
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5450
  (exit $ac_status); } && {
 
5451
         test -z "$ac_cxx_werror_flag" ||
 
5452
         test ! -s conftest.err
 
5453
       } && test -s conftest.$ac_objext; then
 
5454
  ac_cv_prog_cxx_g=yes
 
5455
else
 
5456
  $as_echo "$as_me: failed program was:" >&5
 
5457
sed 's/^/| /' conftest.$ac_ext >&5
 
5458
 
 
5459
        CXXFLAGS=""
 
5460
      cat >conftest.$ac_ext <<_ACEOF
 
5461
/* confdefs.h.  */
 
5462
_ACEOF
 
5463
cat confdefs.h >>conftest.$ac_ext
 
5464
cat >>conftest.$ac_ext <<_ACEOF
 
5465
/* end confdefs.h.  */
 
5466
 
 
5467
int
 
5468
main ()
 
5469
{
 
5470
 
 
5471
  ;
 
5472
  return 0;
 
5473
}
 
5474
_ACEOF
 
5475
rm -f conftest.$ac_objext
 
5476
if { (ac_try="$ac_compile"
 
5477
case "(($ac_try" in
 
5478
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5479
  *) ac_try_echo=$ac_try;;
 
5480
esac
 
5481
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5482
$as_echo "$ac_try_echo") >&5
 
5483
  (eval "$ac_compile") 2>conftest.er1
 
5484
  ac_status=$?
 
5485
  grep -v '^ *+' conftest.er1 >conftest.err
 
5486
  rm -f conftest.er1
 
5487
  cat conftest.err >&5
 
5488
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5489
  (exit $ac_status); } && {
 
5490
         test -z "$ac_cxx_werror_flag" ||
 
5491
         test ! -s conftest.err
 
5492
       } && test -s conftest.$ac_objext; then
 
5493
  :
 
5494
else
 
5495
  $as_echo "$as_me: failed program was:" >&5
 
5496
sed 's/^/| /' conftest.$ac_ext >&5
 
5497
 
 
5498
        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
5499
         CXXFLAGS="-g"
 
5500
         cat >conftest.$ac_ext <<_ACEOF
 
5501
/* confdefs.h.  */
 
5502
_ACEOF
 
5503
cat confdefs.h >>conftest.$ac_ext
 
5504
cat >>conftest.$ac_ext <<_ACEOF
 
5505
/* end confdefs.h.  */
 
5506
 
 
5507
int
 
5508
main ()
 
5509
{
 
5510
 
 
5511
  ;
 
5512
  return 0;
 
5513
}
 
5514
_ACEOF
 
5515
rm -f conftest.$ac_objext
 
5516
if { (ac_try="$ac_compile"
 
5517
case "(($ac_try" in
 
5518
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5519
  *) ac_try_echo=$ac_try;;
 
5520
esac
 
5521
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5522
$as_echo "$ac_try_echo") >&5
 
5523
  (eval "$ac_compile") 2>conftest.er1
 
5524
  ac_status=$?
 
5525
  grep -v '^ *+' conftest.er1 >conftest.err
 
5526
  rm -f conftest.er1
 
5527
  cat conftest.err >&5
 
5528
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5529
  (exit $ac_status); } && {
 
5530
         test -z "$ac_cxx_werror_flag" ||
 
5531
         test ! -s conftest.err
 
5532
       } && test -s conftest.$ac_objext; then
 
5533
  ac_cv_prog_cxx_g=yes
 
5534
else
 
5535
  $as_echo "$as_me: failed program was:" >&5
 
5536
sed 's/^/| /' conftest.$ac_ext >&5
 
5537
 
 
5538
 
 
5539
fi
 
5540
 
 
5541
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5542
fi
 
5543
 
 
5544
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5545
fi
 
5546
 
 
5547
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5548
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
5549
fi
 
5550
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
5551
$as_echo "$ac_cv_prog_cxx_g" >&6; }
 
5552
if test "$ac_test_CXXFLAGS" = set; then
 
5553
  CXXFLAGS=$ac_save_CXXFLAGS
 
5554
elif test $ac_cv_prog_cxx_g = yes; then
 
5555
  if test "$GXX" = yes; then
 
5556
    CXXFLAGS="-g -O2"
 
5557
  else
 
5558
    CXXFLAGS="-g"
 
5559
  fi
 
5560
else
 
5561
  if test "$GXX" = yes; then
 
5562
    CXXFLAGS="-O2"
 
5563
  else
 
5564
    CXXFLAGS=
 
5565
  fi
 
5566
fi
 
5567
ac_ext=cpp
 
5568
ac_cpp='$CXXCPP $CPPFLAGS'
 
5569
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5570
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5571
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5572
 
 
5573
 
 
5574
 
 
5575
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
5576
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
5577
    (test "X$CXX" != "Xg++"))) ; then
 
5578
  ac_ext=cpp
 
5579
ac_cpp='$CXXCPP $CPPFLAGS'
 
5580
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5581
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5582
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5583
{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
5584
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
 
5585
if test -z "$CXXCPP"; then
 
5586
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
5587
  $as_echo_n "(cached) " >&6
 
5588
else
 
5589
      # Double quotes because CXXCPP needs to be expanded
 
5590
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
5591
    do
 
5592
      ac_preproc_ok=false
 
5593
for ac_cxx_preproc_warn_flag in '' yes
 
5594
do
 
5595
  # Use a header file that comes with gcc, so configuring glibc
 
5596
  # with a fresh cross-compiler works.
 
5597
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5598
  # <limits.h> exists even on freestanding compilers.
 
5599
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5600
  # not just through cpp. "Syntax error" is here to catch this case.
 
5601
  cat >conftest.$ac_ext <<_ACEOF
 
5602
/* confdefs.h.  */
 
5603
_ACEOF
 
5604
cat confdefs.h >>conftest.$ac_ext
 
5605
cat >>conftest.$ac_ext <<_ACEOF
 
5606
/* end confdefs.h.  */
 
5607
#ifdef __STDC__
 
5608
# include <limits.h>
 
5609
#else
 
5610
# include <assert.h>
 
5611
#endif
 
5612
                     Syntax error
 
5613
_ACEOF
 
5614
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5615
case "(($ac_try" in
 
5616
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5617
  *) ac_try_echo=$ac_try;;
 
5618
esac
 
5619
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5620
$as_echo "$ac_try_echo") >&5
 
5621
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5622
  ac_status=$?
 
5623
  grep -v '^ *+' conftest.er1 >conftest.err
 
5624
  rm -f conftest.er1
 
5625
  cat conftest.err >&5
 
5626
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5627
  (exit $ac_status); } >/dev/null && {
 
5628
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
5629
         test ! -s conftest.err
 
5630
       }; then
 
5631
  :
 
5632
else
 
5633
  $as_echo "$as_me: failed program was:" >&5
 
5634
sed 's/^/| /' conftest.$ac_ext >&5
 
5635
 
 
5636
  # Broken: fails on valid input.
 
5637
continue
 
5638
fi
 
5639
 
 
5640
rm -f conftest.err conftest.$ac_ext
 
5641
 
 
5642
  # OK, works on sane cases.  Now check whether nonexistent headers
 
5643
  # can be detected and how.
 
5644
  cat >conftest.$ac_ext <<_ACEOF
 
5645
/* confdefs.h.  */
 
5646
_ACEOF
 
5647
cat confdefs.h >>conftest.$ac_ext
 
5648
cat >>conftest.$ac_ext <<_ACEOF
 
5649
/* end confdefs.h.  */
 
5650
#include <ac_nonexistent.h>
 
5651
_ACEOF
 
5652
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5653
case "(($ac_try" in
 
5654
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5655
  *) ac_try_echo=$ac_try;;
 
5656
esac
 
5657
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5658
$as_echo "$ac_try_echo") >&5
 
5659
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5660
  ac_status=$?
 
5661
  grep -v '^ *+' conftest.er1 >conftest.err
 
5662
  rm -f conftest.er1
 
5663
  cat conftest.err >&5
 
5664
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5665
  (exit $ac_status); } >/dev/null && {
 
5666
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
5667
         test ! -s conftest.err
 
5668
       }; then
 
5669
  # Broken: success on invalid input.
 
5670
continue
 
5671
else
 
5672
  $as_echo "$as_me: failed program was:" >&5
 
5673
sed 's/^/| /' conftest.$ac_ext >&5
 
5674
 
 
5675
  # Passes both tests.
 
5676
ac_preproc_ok=:
 
5677
break
 
5678
fi
 
5679
 
 
5680
rm -f conftest.err conftest.$ac_ext
 
5681
 
 
5682
done
 
5683
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5684
rm -f conftest.err conftest.$ac_ext
 
5685
if $ac_preproc_ok; then
 
5686
  break
 
5687
fi
 
5688
 
 
5689
    done
 
5690
    ac_cv_prog_CXXCPP=$CXXCPP
 
5691
 
 
5692
fi
 
5693
  CXXCPP=$ac_cv_prog_CXXCPP
 
5694
else
 
5695
  ac_cv_prog_CXXCPP=$CXXCPP
 
5696
fi
 
5697
{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
5698
$as_echo "$CXXCPP" >&6; }
 
5699
ac_preproc_ok=false
 
5700
for ac_cxx_preproc_warn_flag in '' yes
 
5701
do
 
5702
  # Use a header file that comes with gcc, so configuring glibc
 
5703
  # with a fresh cross-compiler works.
 
5704
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5705
  # <limits.h> exists even on freestanding compilers.
 
5706
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5707
  # not just through cpp. "Syntax error" is here to catch this case.
 
5708
  cat >conftest.$ac_ext <<_ACEOF
 
5709
/* confdefs.h.  */
 
5710
_ACEOF
 
5711
cat confdefs.h >>conftest.$ac_ext
 
5712
cat >>conftest.$ac_ext <<_ACEOF
 
5713
/* end confdefs.h.  */
 
5714
#ifdef __STDC__
 
5715
# include <limits.h>
 
5716
#else
 
5717
# include <assert.h>
 
5718
#endif
 
5719
                     Syntax error
 
5720
_ACEOF
 
5721
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5722
case "(($ac_try" in
 
5723
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5724
  *) ac_try_echo=$ac_try;;
 
5725
esac
 
5726
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5727
$as_echo "$ac_try_echo") >&5
 
5728
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5729
  ac_status=$?
 
5730
  grep -v '^ *+' conftest.er1 >conftest.err
 
5731
  rm -f conftest.er1
 
5732
  cat conftest.err >&5
 
5733
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5734
  (exit $ac_status); } >/dev/null && {
 
5735
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
5736
         test ! -s conftest.err
 
5737
       }; then
 
5738
  :
 
5739
else
 
5740
  $as_echo "$as_me: failed program was:" >&5
 
5741
sed 's/^/| /' conftest.$ac_ext >&5
 
5742
 
 
5743
  # Broken: fails on valid input.
 
5744
continue
 
5745
fi
 
5746
 
 
5747
rm -f conftest.err conftest.$ac_ext
 
5748
 
 
5749
  # OK, works on sane cases.  Now check whether nonexistent headers
 
5750
  # can be detected and how.
 
5751
  cat >conftest.$ac_ext <<_ACEOF
 
5752
/* confdefs.h.  */
 
5753
_ACEOF
 
5754
cat confdefs.h >>conftest.$ac_ext
 
5755
cat >>conftest.$ac_ext <<_ACEOF
 
5756
/* end confdefs.h.  */
 
5757
#include <ac_nonexistent.h>
 
5758
_ACEOF
 
5759
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5760
case "(($ac_try" in
 
5761
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5762
  *) ac_try_echo=$ac_try;;
 
5763
esac
 
5764
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5765
$as_echo "$ac_try_echo") >&5
 
5766
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5767
  ac_status=$?
 
5768
  grep -v '^ *+' conftest.er1 >conftest.err
 
5769
  rm -f conftest.er1
 
5770
  cat conftest.err >&5
 
5771
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5772
  (exit $ac_status); } >/dev/null && {
 
5773
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
5774
         test ! -s conftest.err
 
5775
       }; then
 
5776
  # Broken: success on invalid input.
 
5777
continue
 
5778
else
 
5779
  $as_echo "$as_me: failed program was:" >&5
 
5780
sed 's/^/| /' conftest.$ac_ext >&5
 
5781
 
 
5782
  # Passes both tests.
 
5783
ac_preproc_ok=:
 
5784
break
 
5785
fi
 
5786
 
 
5787
rm -f conftest.err conftest.$ac_ext
 
5788
 
 
5789
done
 
5790
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5791
rm -f conftest.err conftest.$ac_ext
 
5792
if $ac_preproc_ok; then
 
5793
  :
 
5794
else
 
5795
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
5796
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
5797
{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
5798
See \`config.log' for more details." >&5
 
5799
$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
5800
See \`config.log' for more details." >&2;}
 
5801
   { (exit 1); exit 1; }; }; }
 
5802
fi
 
5803
 
 
5804
ac_ext=cpp
 
5805
ac_cpp='$CXXCPP $CPPFLAGS'
 
5806
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5807
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5808
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5809
 
 
5810
fi
 
5811
 
 
5812
 
 
5813
ac_ext=f
 
5814
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
5815
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5816
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
5817
if test -n "$ac_tool_prefix"; then
 
5818
  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
 
5819
  do
 
5820
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5821
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5822
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5823
$as_echo_n "checking for $ac_word... " >&6; }
 
5824
if test "${ac_cv_prog_F77+set}" = set; then
 
5825
  $as_echo_n "(cached) " >&6
 
5826
else
 
5827
  if test -n "$F77"; then
 
5828
  ac_cv_prog_F77="$F77" # Let the user override the test.
 
5829
else
 
5830
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5831
for as_dir in $PATH
 
5832
do
 
5833
  IFS=$as_save_IFS
 
5834
  test -z "$as_dir" && as_dir=.
 
5835
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5836
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5837
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
 
5838
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5839
    break 2
 
5840
  fi
 
5841
done
 
5842
done
 
5843
IFS=$as_save_IFS
 
5844
 
 
5845
fi
 
5846
fi
 
5847
F77=$ac_cv_prog_F77
 
5848
if test -n "$F77"; then
 
5849
  { $as_echo "$as_me:$LINENO: result: $F77" >&5
 
5850
$as_echo "$F77" >&6; }
 
5851
else
 
5852
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5853
$as_echo "no" >&6; }
 
5854
fi
 
5855
 
 
5856
 
 
5857
    test -n "$F77" && break
 
5858
  done
 
5859
fi
 
5860
if test -z "$F77"; then
 
5861
  ac_ct_F77=$F77
 
5862
  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
 
5863
do
 
5864
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5865
set dummy $ac_prog; ac_word=$2
 
5866
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5867
$as_echo_n "checking for $ac_word... " >&6; }
 
5868
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
 
5869
  $as_echo_n "(cached) " >&6
 
5870
else
 
5871
  if test -n "$ac_ct_F77"; then
 
5872
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
 
5873
else
 
5874
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5875
for as_dir in $PATH
 
5876
do
 
5877
  IFS=$as_save_IFS
 
5878
  test -z "$as_dir" && as_dir=.
 
5879
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5880
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5881
    ac_cv_prog_ac_ct_F77="$ac_prog"
 
5882
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5883
    break 2
 
5884
  fi
 
5885
done
 
5886
done
 
5887
IFS=$as_save_IFS
 
5888
 
 
5889
fi
 
5890
fi
 
5891
ac_ct_F77=$ac_cv_prog_ac_ct_F77
 
5892
if test -n "$ac_ct_F77"; then
 
5893
  { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
5894
$as_echo "$ac_ct_F77" >&6; }
 
5895
else
 
5896
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5897
$as_echo "no" >&6; }
 
5898
fi
 
5899
 
 
5900
 
 
5901
  test -n "$ac_ct_F77" && break
 
5902
done
 
5903
 
 
5904
  if test "x$ac_ct_F77" = x; then
 
5905
    F77=""
 
5906
  else
 
5907
    case $cross_compiling:$ac_tool_warned in
 
5908
yes:)
 
5909
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
5910
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
5911
ac_tool_warned=yes ;;
 
5912
esac
 
5913
    F77=$ac_ct_F77
 
5914
  fi
 
5915
fi
 
5916
 
 
5917
 
 
5918
# Provide some information about the compiler.
 
5919
$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
 
5920
set X $ac_compile
 
5921
ac_compiler=$2
 
5922
{ (ac_try="$ac_compiler --version >&5"
 
5923
case "(($ac_try" in
 
5924
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5925
  *) ac_try_echo=$ac_try;;
 
5926
esac
 
5927
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5928
$as_echo "$ac_try_echo") >&5
 
5929
  (eval "$ac_compiler --version >&5") 2>&5
 
5930
  ac_status=$?
 
5931
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5932
  (exit $ac_status); }
 
5933
{ (ac_try="$ac_compiler -v >&5"
 
5934
case "(($ac_try" in
 
5935
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5936
  *) ac_try_echo=$ac_try;;
 
5937
esac
 
5938
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5939
$as_echo "$ac_try_echo") >&5
 
5940
  (eval "$ac_compiler -v >&5") 2>&5
 
5941
  ac_status=$?
 
5942
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5943
  (exit $ac_status); }
 
5944
{ (ac_try="$ac_compiler -V >&5"
 
5945
case "(($ac_try" in
 
5946
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5947
  *) ac_try_echo=$ac_try;;
 
5948
esac
 
5949
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5950
$as_echo "$ac_try_echo") >&5
 
5951
  (eval "$ac_compiler -V >&5") 2>&5
 
5952
  ac_status=$?
 
5953
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5954
  (exit $ac_status); }
 
5955
rm -f a.out
 
5956
 
 
5957
# If we don't use `.F' as extension, the preprocessor is not run on the
 
5958
# input file.  (Note that this only needs to work for GNU compilers.)
 
5959
ac_save_ext=$ac_ext
 
5960
ac_ext=F
 
5961
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
5962
$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
 
5963
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
 
5964
  $as_echo_n "(cached) " >&6
 
5965
else
 
5966
  cat >conftest.$ac_ext <<_ACEOF
 
5967
      program main
 
5968
#ifndef __GNUC__
 
5969
       choke me
 
5970
#endif
 
5971
 
 
5972
      end
 
5973
_ACEOF
 
5974
rm -f conftest.$ac_objext
 
5975
if { (ac_try="$ac_compile"
 
5976
case "(($ac_try" in
 
5977
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5978
  *) ac_try_echo=$ac_try;;
 
5979
esac
 
5980
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5981
$as_echo "$ac_try_echo") >&5
 
5982
  (eval "$ac_compile") 2>conftest.er1
 
5983
  ac_status=$?
 
5984
  grep -v '^ *+' conftest.er1 >conftest.err
 
5985
  rm -f conftest.er1
 
5986
  cat conftest.err >&5
 
5987
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5988
  (exit $ac_status); } && {
 
5989
         test -z "$ac_f77_werror_flag" ||
 
5990
         test ! -s conftest.err
 
5991
       } && test -s conftest.$ac_objext; then
 
5992
  ac_compiler_gnu=yes
 
5993
else
 
5994
  $as_echo "$as_me: failed program was:" >&5
 
5995
sed 's/^/| /' conftest.$ac_ext >&5
 
5996
 
 
5997
        ac_compiler_gnu=no
 
5998
fi
 
5999
 
 
6000
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6001
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
 
6002
 
 
6003
fi
 
6004
{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
6005
$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
 
6006
ac_ext=$ac_save_ext
 
6007
ac_test_FFLAGS=${FFLAGS+set}
 
6008
ac_save_FFLAGS=$FFLAGS
 
6009
FFLAGS=
 
6010
{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
6011
$as_echo_n "checking whether $F77 accepts -g... " >&6; }
 
6012
if test "${ac_cv_prog_f77_g+set}" = set; then
 
6013
  $as_echo_n "(cached) " >&6
 
6014
else
 
6015
  FFLAGS=-g
 
6016
cat >conftest.$ac_ext <<_ACEOF
 
6017
      program main
 
6018
 
 
6019
      end
 
6020
_ACEOF
 
6021
rm -f conftest.$ac_objext
 
6022
if { (ac_try="$ac_compile"
 
6023
case "(($ac_try" in
 
6024
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6025
  *) ac_try_echo=$ac_try;;
 
6026
esac
 
6027
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6028
$as_echo "$ac_try_echo") >&5
 
6029
  (eval "$ac_compile") 2>conftest.er1
 
6030
  ac_status=$?
 
6031
  grep -v '^ *+' conftest.er1 >conftest.err
 
6032
  rm -f conftest.er1
 
6033
  cat conftest.err >&5
 
6034
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6035
  (exit $ac_status); } && {
 
6036
         test -z "$ac_f77_werror_flag" ||
 
6037
         test ! -s conftest.err
 
6038
       } && test -s conftest.$ac_objext; then
 
6039
  ac_cv_prog_f77_g=yes
 
6040
else
 
6041
  $as_echo "$as_me: failed program was:" >&5
 
6042
sed 's/^/| /' conftest.$ac_ext >&5
 
6043
 
 
6044
        ac_cv_prog_f77_g=no
 
6045
fi
 
6046
 
 
6047
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6048
 
 
6049
fi
 
6050
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
6051
$as_echo "$ac_cv_prog_f77_g" >&6; }
 
6052
if test "$ac_test_FFLAGS" = set; then
 
6053
  FFLAGS=$ac_save_FFLAGS
 
6054
elif test $ac_cv_prog_f77_g = yes; then
 
6055
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
6056
    FFLAGS="-g -O2"
 
6057
  else
 
6058
    FFLAGS="-g"
 
6059
  fi
 
6060
else
 
6061
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
6062
    FFLAGS="-O2"
 
6063
  else
 
6064
    FFLAGS=
 
6065
  fi
 
6066
fi
 
6067
 
 
6068
if test $ac_compiler_gnu = yes; then
 
6069
  G77=yes
 
6070
else
 
6071
  G77=
 
6072
fi
 
6073
ac_ext=c
 
6074
ac_cpp='$CPP $CPPFLAGS'
 
6075
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6076
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6077
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6078
 
 
6079
 
 
6080
 
 
6081
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
6082
# find the maximum length of command line arguments
 
6083
{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
6084
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
 
6085
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
6086
  $as_echo_n "(cached) " >&6
 
6087
else
 
6088
    i=0
 
6089
  teststring="ABCD"
 
6090
 
 
6091
  case $build_os in
 
6092
  msdosdjgpp*)
 
6093
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
6094
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
6095
    # during glob expansion).  Even if it were fixed, the result of this
 
6096
    # check would be larger than it should be.
 
6097
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
6098
    ;;
 
6099
 
 
6100
  gnu*)
 
6101
    # Under GNU Hurd, this test is not required because there is
 
6102
    # no limit to the length of command line arguments.
 
6103
    # Libtool will interpret -1 as no limit whatsoever
 
6104
    lt_cv_sys_max_cmd_len=-1;
 
6105
    ;;
 
6106
 
 
6107
  cygwin* | mingw*)
 
6108
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
6109
    # about 5 minutes as the teststring grows exponentially.
 
6110
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
6111
    # you end up with a "frozen" computer, even though with patience
 
6112
    # the test eventually succeeds (with a max line length of 256k).
 
6113
    # Instead, let's just punt: use the minimum linelength reported by
 
6114
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
6115
    lt_cv_sys_max_cmd_len=8192;
 
6116
    ;;
 
6117
 
 
6118
  amigaos*)
 
6119
    # On AmigaOS with pdksh, this test takes hours, literally.
 
6120
    # So we just punt and use a minimum line length of 8192.
 
6121
    lt_cv_sys_max_cmd_len=8192;
 
6122
    ;;
 
6123
 
 
6124
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
6125
    # This has been around since 386BSD, at least.  Likely further.
 
6126
    if test -x /sbin/sysctl; then
 
6127
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
6128
    elif test -x /usr/sbin/sysctl; then
 
6129
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
6130
    else
 
6131
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
6132
    fi
 
6133
    # And add a safety zone
 
6134
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
6135
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
6136
    ;;
 
6137
 
 
6138
  interix*)
 
6139
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
6140
    lt_cv_sys_max_cmd_len=196608
 
6141
    ;;
 
6142
 
 
6143
  osf*)
 
6144
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
6145
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
6146
    # nice to cause kernel panics so lets avoid the loop below.
 
6147
    # First set a reasonable default.
 
6148
    lt_cv_sys_max_cmd_len=16384
 
6149
    #
 
6150
    if test -x /sbin/sysconfig; then
 
6151
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
6152
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
6153
      esac
 
6154
    fi
 
6155
    ;;
 
6156
  sco3.2v5*)
 
6157
    lt_cv_sys_max_cmd_len=102400
 
6158
    ;;
 
6159
  sysv5* | sco5v6* | sysv4.2uw2*)
 
6160
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
6161
    if test -n "$kargmax"; then
 
6162
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
 
6163
    else
 
6164
      lt_cv_sys_max_cmd_len=32768
 
6165
    fi
 
6166
    ;;
 
6167
  *)
 
6168
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
6169
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
6170
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
6171
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
6172
    else
 
6173
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
6174
      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
6175
               = "XX$teststring") >/dev/null 2>&1 &&
 
6176
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
6177
              lt_cv_sys_max_cmd_len=$new_result &&
 
6178
              test $i != 17 # 1/2 MB should be enough
 
6179
      do
 
6180
        i=`expr $i + 1`
 
6181
        teststring=$teststring$teststring
 
6182
      done
 
6183
      teststring=
 
6184
      # Add a significant safety factor because C++ compilers can tack on massive
 
6185
      # amounts of additional arguments before passing them to the linker.
 
6186
      # It appears as though 1/2 is a usable value.
 
6187
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
6188
    fi
 
6189
    ;;
 
6190
  esac
 
6191
 
 
6192
fi
 
6193
 
 
6194
if test -n $lt_cv_sys_max_cmd_len ; then
 
6195
  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
6196
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
 
6197
else
 
6198
  { $as_echo "$as_me:$LINENO: result: none" >&5
 
6199
$as_echo "none" >&6; }
 
6200
fi
 
6201
 
 
6202
 
 
6203
 
 
6204
 
 
6205
 
 
6206
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
6207
{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
6208
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
 
6209
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
6210
  $as_echo_n "(cached) " >&6
 
6211
else
 
6212
 
 
6213
# These are sane defaults that work on at least a few old systems.
 
6214
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
6215
 
 
6216
# Character class describing NM global symbol codes.
 
6217
symcode='[BCDEGRST]'
 
6218
 
 
6219
# Regexp to match symbols that can be accessed directly from C.
 
6220
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
6221
 
 
6222
# Transform an extracted symbol line into a proper C declaration
 
6223
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
6224
 
 
6225
# Transform an extracted symbol line into symbol name and symbol address
 
6226
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'"
 
6227
 
 
6228
# Define system-specific variables.
 
6229
case $host_os in
 
6230
aix*)
 
6231
  symcode='[BCDT]'
 
6232
  ;;
 
6233
cygwin* | mingw* | pw32*)
 
6234
  symcode='[ABCDGISTW]'
 
6235
  ;;
 
6236
hpux*) # Its linker distinguishes data from code symbols
 
6237
  if test "$host_cpu" = ia64; then
 
6238
    symcode='[ABCDEGRST]'
 
6239
  fi
 
6240
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6241
  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'"
 
6242
  ;;
 
6243
linux* | k*bsd*-gnu)
 
6244
  if test "$host_cpu" = ia64; then
 
6245
    symcode='[ABCDGIRSTW]'
 
6246
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6247
    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'"
 
6248
  fi
 
6249
  ;;
 
6250
irix* | nonstopux*)
 
6251
  symcode='[BCDEGRST]'
 
6252
  ;;
 
6253
osf*)
 
6254
  symcode='[BCDEGQRST]'
 
6255
  ;;
 
6256
solaris*)
 
6257
  symcode='[BDRT]'
 
6258
  ;;
 
6259
sco3.2v5*)
 
6260
  symcode='[DT]'
 
6261
  ;;
 
6262
sysv4.2uw2*)
 
6263
  symcode='[DT]'
 
6264
  ;;
 
6265
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
6266
  symcode='[ABDT]'
 
6267
  ;;
 
6268
sysv4)
 
6269
  symcode='[DFNSTU]'
 
6270
  ;;
 
6271
esac
 
6272
 
 
6273
# Handle CRLF in mingw tool chain
 
6274
opt_cr=
 
6275
case $build_os in
 
6276
mingw*)
 
6277
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
6278
  ;;
 
6279
esac
 
6280
 
 
6281
# If we're using GNU nm, then use its standard symbol codes.
 
6282
case `$NM -V 2>&1` in
 
6283
*GNU* | *'with BFD'*)
 
6284
  symcode='[ABCDGIRSTW]' ;;
 
6285
esac
 
6286
 
 
6287
# Try without a prefix undercore, then with it.
 
6288
for ac_symprfx in "" "_"; do
 
6289
 
 
6290
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
6291
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
6292
 
 
6293
  # Write the raw and C identifiers.
 
6294
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
6295
 
 
6296
  # Check to see that the pipe works correctly.
 
6297
  pipe_works=no
 
6298
 
 
6299
  rm -f conftest*
 
6300
  cat > conftest.$ac_ext <<EOF
 
6301
#ifdef __cplusplus
 
6302
extern "C" {
 
6303
#endif
 
6304
char nm_test_var;
 
6305
void nm_test_func(){}
 
6306
#ifdef __cplusplus
 
6307
}
 
6308
#endif
 
6309
int main(){nm_test_var='a';nm_test_func();return(0);}
 
6310
EOF
 
6311
 
 
6312
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6313
  (eval $ac_compile) 2>&5
 
6314
  ac_status=$?
 
6315
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6316
  (exit $ac_status); }; then
 
6317
    # Now try to grab the symbols.
 
6318
    nlist=conftest.nm
 
6319
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
6320
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
6321
  ac_status=$?
 
6322
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6323
  (exit $ac_status); } && test -s "$nlist"; then
 
6324
      # Try sorting and uniquifying the output.
 
6325
      if sort "$nlist" | uniq > "$nlist"T; then
 
6326
        mv -f "$nlist"T "$nlist"
 
6327
      else
 
6328
        rm -f "$nlist"T
 
6329
      fi
 
6330
 
 
6331
      # Make sure that we snagged all the symbols we need.
 
6332
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
6333
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
 
6334
          cat <<EOF > conftest.$ac_ext
 
6335
#ifdef __cplusplus
 
6336
extern "C" {
 
6337
#endif
 
6338
 
 
6339
EOF
 
6340
          # Now generate the symbol file.
 
6341
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 
6342
 
 
6343
          cat <<EOF >> conftest.$ac_ext
 
6344
#if defined (__STDC__) && __STDC__
 
6345
# define lt_ptr_t void *
 
6346
#else
 
6347
# define lt_ptr_t char *
 
6348
# define const
 
6349
#endif
 
6350
 
 
6351
/* The mapping between symbol names and symbols. */
 
6352
const struct {
 
6353
  const char *name;
 
6354
  lt_ptr_t address;
 
6355
}
 
6356
lt_preloaded_symbols[] =
 
6357
{
 
6358
EOF
 
6359
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 
6360
          cat <<\EOF >> conftest.$ac_ext
 
6361
  {0, (lt_ptr_t) 0}
 
6362
};
 
6363
 
 
6364
#ifdef __cplusplus
 
6365
}
 
6366
#endif
 
6367
EOF
 
6368
          # Now try linking the two files.
 
6369
          mv conftest.$ac_objext conftstm.$ac_objext
 
6370
          lt_save_LIBS="$LIBS"
 
6371
          lt_save_CFLAGS="$CFLAGS"
 
6372
          LIBS="conftstm.$ac_objext"
 
6373
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
6374
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6375
  (eval $ac_link) 2>&5
 
6376
  ac_status=$?
 
6377
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6378
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
 
6379
            pipe_works=yes
 
6380
          fi
 
6381
          LIBS="$lt_save_LIBS"
 
6382
          CFLAGS="$lt_save_CFLAGS"
 
6383
        else
 
6384
          echo "cannot find nm_test_func in $nlist" >&5
 
6385
        fi
 
6386
      else
 
6387
        echo "cannot find nm_test_var in $nlist" >&5
 
6388
      fi
 
6389
    else
 
6390
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
6391
    fi
 
6392
  else
 
6393
    echo "$progname: failed program was:" >&5
 
6394
    cat conftest.$ac_ext >&5
 
6395
  fi
 
6396
  rm -rf conftest* conftst*
 
6397
 
 
6398
  # Do not use the global_symbol_pipe unless it works.
 
6399
  if test "$pipe_works" = yes; then
 
6400
    break
 
6401
  else
 
6402
    lt_cv_sys_global_symbol_pipe=
 
6403
  fi
 
6404
done
 
6405
 
 
6406
fi
 
6407
 
 
6408
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
6409
  lt_cv_sys_global_symbol_to_cdecl=
 
6410
fi
 
6411
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
6412
  { $as_echo "$as_me:$LINENO: result: failed" >&5
 
6413
$as_echo "failed" >&6; }
 
6414
else
 
6415
  { $as_echo "$as_me:$LINENO: result: ok" >&5
 
6416
$as_echo "ok" >&6; }
 
6417
fi
 
6418
 
 
6419
{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
 
6420
$as_echo_n "checking for objdir... " >&6; }
 
6421
if test "${lt_cv_objdir+set}" = set; then
 
6422
  $as_echo_n "(cached) " >&6
 
6423
else
 
6424
  rm -f .libs 2>/dev/null
 
6425
mkdir .libs 2>/dev/null
 
6426
if test -d .libs; then
 
6427
  lt_cv_objdir=.libs
 
6428
else
 
6429
  # MS-DOS does not allow filenames that begin with a dot.
 
6430
  lt_cv_objdir=_libs
 
6431
fi
 
6432
rmdir .libs 2>/dev/null
 
6433
fi
 
6434
{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
6435
$as_echo "$lt_cv_objdir" >&6; }
 
6436
objdir=$lt_cv_objdir
 
6437
 
 
6438
 
 
6439
 
 
6440
 
 
6441
 
 
6442
case $host_os in
 
6443
aix3*)
 
6444
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
6445
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
6446
  # vanish in a puff of smoke.
 
6447
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
6448
    COLLECT_NAMES=
 
6449
    export COLLECT_NAMES
 
6450
  fi
 
6451
  ;;
 
6452
esac
 
6453
 
 
6454
# Sed substitution that helps us do robust quoting.  It backslashifies
 
6455
# metacharacters that are still active within double-quoted strings.
 
6456
Xsed='sed -e 1s/^X//'
 
6457
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
6458
 
 
6459
# Same as above, but do not quote variable references.
 
6460
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
6461
 
 
6462
# Sed substitution to delay expansion of an escaped shell variable in a
 
6463
# double_quote_subst'ed string.
 
6464
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
6465
 
 
6466
# Sed substitution to avoid accidental globbing in evaled expressions
 
6467
no_glob_subst='s/\*/\\\*/g'
 
6468
 
 
6469
# Constants:
 
6470
rm="rm -f"
 
6471
 
 
6472
# Global variables:
 
6473
default_ofile=libtool
 
6474
can_build_shared=yes
 
6475
 
 
6476
# All known linkers require a `.a' archive for static linking (except MSVC,
 
6477
# which needs '.lib').
 
6478
libext=a
 
6479
ltmain="$ac_aux_dir/ltmain.sh"
 
6480
ofile="$default_ofile"
 
6481
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
6482
 
 
6483
if test -n "$ac_tool_prefix"; then
 
6484
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
6485
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
6486
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6487
$as_echo_n "checking for $ac_word... " >&6; }
 
6488
if test "${ac_cv_prog_AR+set}" = set; then
 
6489
  $as_echo_n "(cached) " >&6
 
6490
else
 
6491
  if test -n "$AR"; then
 
6492
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
6493
else
 
6494
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6495
for as_dir in $PATH
 
6496
do
 
6497
  IFS=$as_save_IFS
 
6498
  test -z "$as_dir" && as_dir=.
 
6499
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6500
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6501
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
6502
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6503
    break 2
 
6504
  fi
 
6505
done
 
6506
done
 
6507
IFS=$as_save_IFS
 
6508
 
 
6509
fi
 
6510
fi
 
6511
AR=$ac_cv_prog_AR
 
6512
if test -n "$AR"; then
 
6513
  { $as_echo "$as_me:$LINENO: result: $AR" >&5
 
6514
$as_echo "$AR" >&6; }
 
6515
else
 
6516
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6517
$as_echo "no" >&6; }
 
6518
fi
 
6519
 
 
6520
 
 
6521
fi
 
6522
if test -z "$ac_cv_prog_AR"; then
 
6523
  ac_ct_AR=$AR
 
6524
  # Extract the first word of "ar", so it can be a program name with args.
 
6525
set dummy ar; ac_word=$2
 
6526
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6527
$as_echo_n "checking for $ac_word... " >&6; }
 
6528
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
6529
  $as_echo_n "(cached) " >&6
 
6530
else
 
6531
  if test -n "$ac_ct_AR"; then
 
6532
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
6533
else
 
6534
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6535
for as_dir in $PATH
 
6536
do
 
6537
  IFS=$as_save_IFS
 
6538
  test -z "$as_dir" && as_dir=.
 
6539
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6540
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6541
    ac_cv_prog_ac_ct_AR="ar"
 
6542
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6543
    break 2
 
6544
  fi
 
6545
done
 
6546
done
 
6547
IFS=$as_save_IFS
 
6548
 
 
6549
fi
 
6550
fi
 
6551
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
6552
if test -n "$ac_ct_AR"; then
 
6553
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
6554
$as_echo "$ac_ct_AR" >&6; }
 
6555
else
 
6556
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6557
$as_echo "no" >&6; }
 
6558
fi
 
6559
 
 
6560
  if test "x$ac_ct_AR" = x; then
 
6561
    AR="false"
 
6562
  else
 
6563
    case $cross_compiling:$ac_tool_warned in
 
6564
yes:)
 
6565
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
6566
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6567
ac_tool_warned=yes ;;
 
6568
esac
 
6569
    AR=$ac_ct_AR
 
6570
  fi
 
6571
else
 
6572
  AR="$ac_cv_prog_AR"
 
6573
fi
 
6574
 
 
6575
if test -n "$ac_tool_prefix"; then
 
6576
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
6577
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
6578
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6579
$as_echo_n "checking for $ac_word... " >&6; }
 
6580
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
6581
  $as_echo_n "(cached) " >&6
 
6582
else
 
6583
  if test -n "$RANLIB"; then
 
6584
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
6585
else
 
6586
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6587
for as_dir in $PATH
 
6588
do
 
6589
  IFS=$as_save_IFS
 
6590
  test -z "$as_dir" && as_dir=.
 
6591
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6592
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6593
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
6594
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6595
    break 2
 
6596
  fi
 
6597
done
 
6598
done
 
6599
IFS=$as_save_IFS
 
6600
 
 
6601
fi
 
6602
fi
 
6603
RANLIB=$ac_cv_prog_RANLIB
 
6604
if test -n "$RANLIB"; then
 
6605
  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
 
6606
$as_echo "$RANLIB" >&6; }
 
6607
else
 
6608
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6609
$as_echo "no" >&6; }
 
6610
fi
 
6611
 
 
6612
 
 
6613
fi
 
6614
if test -z "$ac_cv_prog_RANLIB"; then
 
6615
  ac_ct_RANLIB=$RANLIB
 
6616
  # Extract the first word of "ranlib", so it can be a program name with args.
 
6617
set dummy ranlib; ac_word=$2
 
6618
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6619
$as_echo_n "checking for $ac_word... " >&6; }
 
6620
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
6621
  $as_echo_n "(cached) " >&6
 
6622
else
 
6623
  if test -n "$ac_ct_RANLIB"; then
 
6624
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
6625
else
 
6626
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6627
for as_dir in $PATH
 
6628
do
 
6629
  IFS=$as_save_IFS
 
6630
  test -z "$as_dir" && as_dir=.
 
6631
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6632
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6633
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
6634
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6635
    break 2
 
6636
  fi
 
6637
done
 
6638
done
 
6639
IFS=$as_save_IFS
 
6640
 
 
6641
fi
 
6642
fi
 
6643
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
6644
if test -n "$ac_ct_RANLIB"; then
 
6645
  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
6646
$as_echo "$ac_ct_RANLIB" >&6; }
 
6647
else
 
6648
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6649
$as_echo "no" >&6; }
 
6650
fi
 
6651
 
 
6652
  if test "x$ac_ct_RANLIB" = x; then
 
6653
    RANLIB=":"
 
6654
  else
 
6655
    case $cross_compiling:$ac_tool_warned in
 
6656
yes:)
 
6657
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
6658
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6659
ac_tool_warned=yes ;;
 
6660
esac
 
6661
    RANLIB=$ac_ct_RANLIB
 
6662
  fi
 
6663
else
 
6664
  RANLIB="$ac_cv_prog_RANLIB"
 
6665
fi
 
6666
 
 
6667
if test -n "$ac_tool_prefix"; then
 
6668
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
6669
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
6670
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6671
$as_echo_n "checking for $ac_word... " >&6; }
 
6672
if test "${ac_cv_prog_STRIP+set}" = set; then
 
6673
  $as_echo_n "(cached) " >&6
 
6674
else
 
6675
  if test -n "$STRIP"; then
 
6676
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
6677
else
 
6678
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6679
for as_dir in $PATH
 
6680
do
 
6681
  IFS=$as_save_IFS
 
6682
  test -z "$as_dir" && as_dir=.
 
6683
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6684
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6685
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
6686
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6687
    break 2
 
6688
  fi
 
6689
done
 
6690
done
 
6691
IFS=$as_save_IFS
 
6692
 
 
6693
fi
 
6694
fi
 
6695
STRIP=$ac_cv_prog_STRIP
 
6696
if test -n "$STRIP"; then
 
6697
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
 
6698
$as_echo "$STRIP" >&6; }
 
6699
else
 
6700
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6701
$as_echo "no" >&6; }
 
6702
fi
 
6703
 
 
6704
 
 
6705
fi
 
6706
if test -z "$ac_cv_prog_STRIP"; then
 
6707
  ac_ct_STRIP=$STRIP
 
6708
  # Extract the first word of "strip", so it can be a program name with args.
 
6709
set dummy strip; ac_word=$2
 
6710
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6711
$as_echo_n "checking for $ac_word... " >&6; }
 
6712
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
6713
  $as_echo_n "(cached) " >&6
 
6714
else
 
6715
  if test -n "$ac_ct_STRIP"; then
 
6716
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
6717
else
 
6718
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6719
for as_dir in $PATH
 
6720
do
 
6721
  IFS=$as_save_IFS
 
6722
  test -z "$as_dir" && as_dir=.
 
6723
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6724
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6725
    ac_cv_prog_ac_ct_STRIP="strip"
 
6726
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6727
    break 2
 
6728
  fi
 
6729
done
 
6730
done
 
6731
IFS=$as_save_IFS
 
6732
 
 
6733
fi
 
6734
fi
 
6735
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
6736
if test -n "$ac_ct_STRIP"; then
 
6737
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
6738
$as_echo "$ac_ct_STRIP" >&6; }
 
6739
else
 
6740
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6741
$as_echo "no" >&6; }
 
6742
fi
 
6743
 
 
6744
  if test "x$ac_ct_STRIP" = x; then
 
6745
    STRIP=":"
 
6746
  else
 
6747
    case $cross_compiling:$ac_tool_warned in
 
6748
yes:)
 
6749
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
6750
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6751
ac_tool_warned=yes ;;
 
6752
esac
 
6753
    STRIP=$ac_ct_STRIP
 
6754
  fi
 
6755
else
 
6756
  STRIP="$ac_cv_prog_STRIP"
 
6757
fi
 
6758
 
 
6759
 
 
6760
old_CC="$CC"
 
6761
old_CFLAGS="$CFLAGS"
 
6762
 
 
6763
# Set sane defaults for various variables
 
6764
test -z "$AR" && AR=ar
 
6765
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
6766
test -z "$AS" && AS=as
 
6767
test -z "$CC" && CC=cc
 
6768
test -z "$LTCC" && LTCC=$CC
 
6769
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
6770
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
6771
test -z "$LD" && LD=ld
 
6772
test -z "$LN_S" && LN_S="ln -s"
 
6773
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
6774
test -z "$NM" && NM=nm
 
6775
test -z "$SED" && SED=sed
 
6776
test -z "$OBJDUMP" && OBJDUMP=objdump
 
6777
test -z "$RANLIB" && RANLIB=:
 
6778
test -z "$STRIP" && STRIP=:
 
6779
test -z "$ac_objext" && ac_objext=o
 
6780
 
 
6781
# Determine commands to create old-style static archives.
 
6782
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
6783
old_postinstall_cmds='chmod 644 $oldlib'
 
6784
old_postuninstall_cmds=
 
6785
 
 
6786
if test -n "$RANLIB"; then
 
6787
  case $host_os in
 
6788
  openbsd*)
 
6789
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
6790
    ;;
 
6791
  *)
 
6792
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
6793
    ;;
 
6794
  esac
 
6795
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
6796
fi
 
6797
 
 
6798
for cc_temp in $compiler""; do
 
6799
  case $cc_temp in
 
6800
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
6801
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
6802
    \-*) ;;
 
6803
    *) break;;
 
6804
  esac
 
6805
done
 
6806
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
6807
 
 
6808
 
 
6809
# Only perform the check for file, if the check method requires it
 
6810
case $deplibs_check_method in
 
6811
file_magic*)
 
6812
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
6813
    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
6814
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
 
6815
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
6816
  $as_echo_n "(cached) " >&6
 
6817
else
 
6818
  case $MAGIC_CMD in
 
6819
[\\/*] |  ?:[\\/]*)
 
6820
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
6821
  ;;
 
6822
*)
 
6823
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
6824
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
6825
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
6826
  for ac_dir in $ac_dummy; do
 
6827
    IFS="$lt_save_ifs"
 
6828
    test -z "$ac_dir" && ac_dir=.
 
6829
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
6830
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
6831
      if test -n "$file_magic_test_file"; then
 
6832
        case $deplibs_check_method in
 
6833
        "file_magic "*)
 
6834
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
6835
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6836
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
6837
            $EGREP "$file_magic_regex" > /dev/null; then
 
6838
            :
 
6839
          else
 
6840
            cat <<EOF 1>&2
 
6841
 
 
6842
*** Warning: the command libtool uses to detect shared libraries,
 
6843
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
6844
*** The result is that libtool may fail to recognize shared libraries
 
6845
*** as such.  This will affect the creation of libtool libraries that
 
6846
*** depend on shared libraries, but programs linked with such libtool
 
6847
*** libraries will work regardless of this problem.  Nevertheless, you
 
6848
*** may want to report the problem to your system manager and/or to
 
6849
*** bug-libtool@gnu.org
 
6850
 
 
6851
EOF
 
6852
          fi ;;
 
6853
        esac
 
6854
      fi
 
6855
      break
 
6856
    fi
 
6857
  done
 
6858
  IFS="$lt_save_ifs"
 
6859
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
6860
  ;;
 
6861
esac
 
6862
fi
 
6863
 
 
6864
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6865
if test -n "$MAGIC_CMD"; then
 
6866
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
6867
$as_echo "$MAGIC_CMD" >&6; }
 
6868
else
 
6869
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6870
$as_echo "no" >&6; }
 
6871
fi
 
6872
 
 
6873
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
6874
  if test -n "$ac_tool_prefix"; then
 
6875
    { $as_echo "$as_me:$LINENO: checking for file" >&5
 
6876
$as_echo_n "checking for file... " >&6; }
 
6877
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
6878
  $as_echo_n "(cached) " >&6
 
6879
else
 
6880
  case $MAGIC_CMD in
 
6881
[\\/*] |  ?:[\\/]*)
 
6882
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
6883
  ;;
 
6884
*)
 
6885
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
6886
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
6887
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
6888
  for ac_dir in $ac_dummy; do
 
6889
    IFS="$lt_save_ifs"
 
6890
    test -z "$ac_dir" && ac_dir=.
 
6891
    if test -f $ac_dir/file; then
 
6892
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
6893
      if test -n "$file_magic_test_file"; then
 
6894
        case $deplibs_check_method in
 
6895
        "file_magic "*)
 
6896
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
6897
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6898
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
6899
            $EGREP "$file_magic_regex" > /dev/null; then
 
6900
            :
 
6901
          else
 
6902
            cat <<EOF 1>&2
 
6903
 
 
6904
*** Warning: the command libtool uses to detect shared libraries,
 
6905
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
6906
*** The result is that libtool may fail to recognize shared libraries
 
6907
*** as such.  This will affect the creation of libtool libraries that
 
6908
*** depend on shared libraries, but programs linked with such libtool
 
6909
*** libraries will work regardless of this problem.  Nevertheless, you
 
6910
*** may want to report the problem to your system manager and/or to
 
6911
*** bug-libtool@gnu.org
 
6912
 
 
6913
EOF
 
6914
          fi ;;
 
6915
        esac
 
6916
      fi
 
6917
      break
 
6918
    fi
 
6919
  done
 
6920
  IFS="$lt_save_ifs"
 
6921
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
6922
  ;;
 
6923
esac
 
6924
fi
 
6925
 
 
6926
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6927
if test -n "$MAGIC_CMD"; then
 
6928
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
6929
$as_echo "$MAGIC_CMD" >&6; }
 
6930
else
 
6931
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6932
$as_echo "no" >&6; }
 
6933
fi
 
6934
 
 
6935
  else
 
6936
    MAGIC_CMD=:
 
6937
  fi
 
6938
fi
 
6939
 
 
6940
  fi
 
6941
  ;;
 
6942
esac
 
6943
 
 
6944
 
 
6945
  case $host_os in
 
6946
    rhapsody* | darwin*)
 
6947
    if test -n "$ac_tool_prefix"; then
 
6948
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
 
6949
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
 
6950
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6951
$as_echo_n "checking for $ac_word... " >&6; }
 
6952
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
 
6953
  $as_echo_n "(cached) " >&6
 
6954
else
 
6955
  if test -n "$DSYMUTIL"; then
 
6956
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
 
6957
else
 
6958
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6959
for as_dir in $PATH
 
6960
do
 
6961
  IFS=$as_save_IFS
 
6962
  test -z "$as_dir" && as_dir=.
 
6963
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6964
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6965
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
 
6966
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6967
    break 2
 
6968
  fi
 
6969
done
 
6970
done
 
6971
IFS=$as_save_IFS
 
6972
 
 
6973
fi
 
6974
fi
 
6975
DSYMUTIL=$ac_cv_prog_DSYMUTIL
 
6976
if test -n "$DSYMUTIL"; then
 
6977
  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
 
6978
$as_echo "$DSYMUTIL" >&6; }
 
6979
else
 
6980
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6981
$as_echo "no" >&6; }
 
6982
fi
 
6983
 
 
6984
 
 
6985
fi
 
6986
if test -z "$ac_cv_prog_DSYMUTIL"; then
 
6987
  ac_ct_DSYMUTIL=$DSYMUTIL
 
6988
  # Extract the first word of "dsymutil", so it can be a program name with args.
 
6989
set dummy dsymutil; ac_word=$2
 
6990
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6991
$as_echo_n "checking for $ac_word... " >&6; }
 
6992
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
 
6993
  $as_echo_n "(cached) " >&6
 
6994
else
 
6995
  if test -n "$ac_ct_DSYMUTIL"; then
 
6996
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
 
6997
else
 
6998
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6999
for as_dir in $PATH
 
7000
do
 
7001
  IFS=$as_save_IFS
 
7002
  test -z "$as_dir" && as_dir=.
 
7003
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7004
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7005
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
 
7006
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7007
    break 2
 
7008
  fi
 
7009
done
 
7010
done
 
7011
IFS=$as_save_IFS
 
7012
 
 
7013
fi
 
7014
fi
 
7015
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
 
7016
if test -n "$ac_ct_DSYMUTIL"; then
 
7017
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
 
7018
$as_echo "$ac_ct_DSYMUTIL" >&6; }
 
7019
else
 
7020
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7021
$as_echo "no" >&6; }
 
7022
fi
 
7023
 
 
7024
  if test "x$ac_ct_DSYMUTIL" = x; then
 
7025
    DSYMUTIL=":"
 
7026
  else
 
7027
    case $cross_compiling:$ac_tool_warned in
 
7028
yes:)
 
7029
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
7030
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7031
ac_tool_warned=yes ;;
 
7032
esac
 
7033
    DSYMUTIL=$ac_ct_DSYMUTIL
 
7034
  fi
 
7035
else
 
7036
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
 
7037
fi
 
7038
 
 
7039
    if test -n "$ac_tool_prefix"; then
 
7040
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
 
7041
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
 
7042
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7043
$as_echo_n "checking for $ac_word... " >&6; }
 
7044
if test "${ac_cv_prog_NMEDIT+set}" = set; then
 
7045
  $as_echo_n "(cached) " >&6
 
7046
else
 
7047
  if test -n "$NMEDIT"; then
 
7048
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
 
7049
else
 
7050
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7051
for as_dir in $PATH
 
7052
do
 
7053
  IFS=$as_save_IFS
 
7054
  test -z "$as_dir" && as_dir=.
 
7055
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7056
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7057
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
 
7058
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7059
    break 2
 
7060
  fi
 
7061
done
 
7062
done
 
7063
IFS=$as_save_IFS
 
7064
 
 
7065
fi
 
7066
fi
 
7067
NMEDIT=$ac_cv_prog_NMEDIT
 
7068
if test -n "$NMEDIT"; then
 
7069
  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
 
7070
$as_echo "$NMEDIT" >&6; }
 
7071
else
 
7072
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7073
$as_echo "no" >&6; }
 
7074
fi
 
7075
 
 
7076
 
 
7077
fi
 
7078
if test -z "$ac_cv_prog_NMEDIT"; then
 
7079
  ac_ct_NMEDIT=$NMEDIT
 
7080
  # Extract the first word of "nmedit", so it can be a program name with args.
 
7081
set dummy nmedit; ac_word=$2
 
7082
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7083
$as_echo_n "checking for $ac_word... " >&6; }
 
7084
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
 
7085
  $as_echo_n "(cached) " >&6
 
7086
else
 
7087
  if test -n "$ac_ct_NMEDIT"; then
 
7088
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
 
7089
else
 
7090
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7091
for as_dir in $PATH
 
7092
do
 
7093
  IFS=$as_save_IFS
 
7094
  test -z "$as_dir" && as_dir=.
 
7095
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7096
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7097
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
 
7098
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7099
    break 2
 
7100
  fi
 
7101
done
 
7102
done
 
7103
IFS=$as_save_IFS
 
7104
 
 
7105
fi
 
7106
fi
 
7107
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
 
7108
if test -n "$ac_ct_NMEDIT"; then
 
7109
  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
 
7110
$as_echo "$ac_ct_NMEDIT" >&6; }
 
7111
else
 
7112
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7113
$as_echo "no" >&6; }
 
7114
fi
 
7115
 
 
7116
  if test "x$ac_ct_NMEDIT" = x; then
 
7117
    NMEDIT=":"
 
7118
  else
 
7119
    case $cross_compiling:$ac_tool_warned in
 
7120
yes:)
 
7121
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
7122
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7123
ac_tool_warned=yes ;;
 
7124
esac
 
7125
    NMEDIT=$ac_ct_NMEDIT
 
7126
  fi
 
7127
else
 
7128
  NMEDIT="$ac_cv_prog_NMEDIT"
 
7129
fi
 
7130
 
 
7131
 
 
7132
    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
 
7133
$as_echo_n "checking for -single_module linker flag... " >&6; }
 
7134
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
 
7135
  $as_echo_n "(cached) " >&6
 
7136
else
 
7137
  lt_cv_apple_cc_single_mod=no
 
7138
      if test -z "${LT_MULTI_MODULE}"; then
 
7139
   # By default we will add the -single_module flag. You can override
 
7140
   # by either setting the environment variable LT_MULTI_MODULE
 
7141
   # non-empty at configure time, or by adding -multi_module to the
 
7142
   # link flags.
 
7143
   echo "int foo(void){return 1;}" > conftest.c
 
7144
   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
7145
     -dynamiclib ${wl}-single_module conftest.c
 
7146
   if test -f libconftest.dylib; then
 
7147
     lt_cv_apple_cc_single_mod=yes
 
7148
     rm -rf libconftest.dylib*
 
7149
   fi
 
7150
   rm conftest.c
 
7151
      fi
 
7152
fi
 
7153
{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
 
7154
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
 
7155
    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
 
7156
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
 
7157
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
 
7158
  $as_echo_n "(cached) " >&6
 
7159
else
 
7160
  lt_cv_ld_exported_symbols_list=no
 
7161
      save_LDFLAGS=$LDFLAGS
 
7162
      echo "_main" > conftest.sym
 
7163
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
7164
      cat >conftest.$ac_ext <<_ACEOF
 
7165
/* confdefs.h.  */
 
7166
_ACEOF
 
7167
cat confdefs.h >>conftest.$ac_ext
 
7168
cat >>conftest.$ac_ext <<_ACEOF
 
7169
/* end confdefs.h.  */
 
7170
 
 
7171
int
 
7172
main ()
 
7173
{
 
7174
 
 
7175
  ;
 
7176
  return 0;
 
7177
}
 
7178
_ACEOF
 
7179
rm -f conftest.$ac_objext conftest$ac_exeext
 
7180
if { (ac_try="$ac_link"
 
7181
case "(($ac_try" in
 
7182
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7183
  *) ac_try_echo=$ac_try;;
 
7184
esac
 
7185
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
7186
$as_echo "$ac_try_echo") >&5
 
7187
  (eval "$ac_link") 2>conftest.er1
 
7188
  ac_status=$?
 
7189
  grep -v '^ *+' conftest.er1 >conftest.err
 
7190
  rm -f conftest.er1
 
7191
  cat conftest.err >&5
 
7192
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7193
  (exit $ac_status); } && {
 
7194
         test -z "$ac_c_werror_flag" ||
 
7195
         test ! -s conftest.err
 
7196
       } && test -s conftest$ac_exeext && {
 
7197
         test "$cross_compiling" = yes ||
 
7198
         $as_test_x conftest$ac_exeext
 
7199
       }; then
 
7200
  lt_cv_ld_exported_symbols_list=yes
 
7201
else
 
7202
  $as_echo "$as_me: failed program was:" >&5
 
7203
sed 's/^/| /' conftest.$ac_ext >&5
 
7204
 
 
7205
        lt_cv_ld_exported_symbols_list=no
 
7206
fi
 
7207
 
 
7208
rm -rf conftest.dSYM
 
7209
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
7210
      conftest$ac_exeext conftest.$ac_ext
 
7211
   LDFLAGS="$save_LDFLAGS"
 
7212
 
 
7213
fi
 
7214
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
 
7215
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
 
7216
    case $host_os in
 
7217
    rhapsody* | darwin1.[0123])
 
7218
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
7219
    darwin1.*)
 
7220
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
7221
    darwin*)
 
7222
      # if running on 10.5 or later, the deployment target defaults
 
7223
      # to the OS version, if on x86, and 10.4, the deployment
 
7224
      # target defaults to 10.4. Don't you love it?
 
7225
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
7226
   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 
7227
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
7228
   10.[012]*)
 
7229
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
7230
   10.*)
 
7231
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
7232
      esac
 
7233
    ;;
 
7234
  esac
 
7235
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
7236
      _lt_dar_single_mod='$single_module'
 
7237
    fi
 
7238
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
7239
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
7240
    else
 
7241
      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
 
7242
    fi
 
7243
    if test "$DSYMUTIL" != ":"; then
 
7244
      _lt_dsymutil="~$DSYMUTIL \$lib || :"
 
7245
    else
 
7246
      _lt_dsymutil=
 
7247
    fi
 
7248
    ;;
 
7249
  esac
 
7250
 
 
7251
 
 
7252
enable_dlopen=no
 
7253
enable_win32_dll=no
 
7254
 
 
7255
# Check whether --enable-libtool-lock was given.
 
7256
if test "${enable_libtool_lock+set}" = set; then
 
7257
  enableval=$enable_libtool_lock;
 
7258
fi
 
7259
 
 
7260
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
7261
 
 
7262
 
 
7263
# Check whether --with-pic was given.
 
7264
if test "${with_pic+set}" = set; then
 
7265
  withval=$with_pic; pic_mode="$withval"
 
7266
else
 
7267
  pic_mode=default
 
7268
fi
 
7269
 
 
7270
test -z "$pic_mode" && pic_mode=default
 
7271
 
 
7272
# Use C for the default configuration in the libtool script
 
7273
tagname=
 
7274
lt_save_CC="$CC"
 
7275
ac_ext=c
 
7276
ac_cpp='$CPP $CPPFLAGS'
 
7277
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7278
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7279
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7280
 
 
7281
 
 
7282
# Source file extension for C test sources.
 
7283
ac_ext=c
 
7284
 
 
7285
# Object file extension for compiled C test sources.
 
7286
objext=o
 
7287
objext=$objext
 
7288
 
 
7289
# Code to be used in simple compile tests
 
7290
lt_simple_compile_test_code="int some_variable = 0;"
 
7291
 
 
7292
# Code to be used in simple link tests
 
7293
lt_simple_link_test_code='int main(){return(0);}'
 
7294
 
 
7295
 
 
7296
# If no C compiler was specified, use CC.
 
7297
LTCC=${LTCC-"$CC"}
 
7298
 
 
7299
# If no C compiler flags were specified, use CFLAGS.
 
7300
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
7301
 
 
7302
# Allow CC to be a program name with arguments.
 
7303
compiler=$CC
 
7304
 
 
7305
 
 
7306
# save warnings/boilerplate of simple test code
 
7307
ac_outfile=conftest.$ac_objext
 
7308
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
7309
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7310
_lt_compiler_boilerplate=`cat conftest.err`
 
7311
$rm conftest*
 
7312
 
 
7313
ac_outfile=conftest.$ac_objext
 
7314
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
7315
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7316
_lt_linker_boilerplate=`cat conftest.err`
 
7317
$rm -r conftest*
 
7318
 
 
7319
 
 
7320
 
 
7321
lt_prog_compiler_no_builtin_flag=
 
7322
 
 
7323
if test "$GCC" = yes; then
 
7324
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
7325
 
 
7326
 
 
7327
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
7328
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
 
7329
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
7330
  $as_echo_n "(cached) " >&6
 
7331
else
 
7332
  lt_cv_prog_compiler_rtti_exceptions=no
 
7333
  ac_outfile=conftest.$ac_objext
 
7334
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7335
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
7336
   # Insert the option either (1) after the last *FLAGS variable, or
 
7337
   # (2) before a word containing "conftest.", or (3) at the end.
 
7338
   # Note that $ac_compile itself does not contain backslashes and begins
 
7339
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7340
   # The option is referenced via a variable to avoid confusing sed.
 
7341
   lt_compile=`echo "$ac_compile" | $SED \
 
7342
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7343
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7344
   -e 's:$: $lt_compiler_flag:'`
 
7345
   (eval echo "\"\$as_me:7345: $lt_compile\"" >&5)
 
7346
   (eval "$lt_compile" 2>conftest.err)
 
7347
   ac_status=$?
 
7348
   cat conftest.err >&5
 
7349
   echo "$as_me:7349: \$? = $ac_status" >&5
 
7350
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
7351
     # The compiler can only warn and ignore the option if not recognized
 
7352
     # So say no if there are warnings other than the usual output.
 
7353
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
7354
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7355
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
7356
       lt_cv_prog_compiler_rtti_exceptions=yes
 
7357
     fi
 
7358
   fi
 
7359
   $rm conftest*
 
7360
 
 
7361
fi
 
7362
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
7363
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
7364
 
 
7365
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
7366
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
7367
else
 
7368
    :
 
7369
fi
 
7370
 
 
7371
fi
 
7372
 
 
7373
lt_prog_compiler_wl=
 
7374
lt_prog_compiler_pic=
 
7375
lt_prog_compiler_static=
 
7376
 
 
7377
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
7378
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
7379
 
 
7380
  if test "$GCC" = yes; then
 
7381
    lt_prog_compiler_wl='-Wl,'
 
7382
    lt_prog_compiler_static='-static'
 
7383
 
 
7384
    case $host_os in
 
7385
      aix*)
 
7386
      # All AIX code is PIC.
 
7387
      if test "$host_cpu" = ia64; then
 
7388
        # AIX 5 now supports IA64 processor
 
7389
        lt_prog_compiler_static='-Bstatic'
 
7390
      fi
 
7391
      ;;
 
7392
 
 
7393
    amigaos*)
 
7394
      # FIXME: we need at least 68020 code to build shared libraries, but
 
7395
      # adding the `-m68020' flag to GCC prevents building anything better,
 
7396
      # like `-m68040'.
 
7397
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
7398
      ;;
 
7399
 
 
7400
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
7401
      # PIC is the default for these OSes.
 
7402
      ;;
 
7403
 
 
7404
    mingw* | cygwin* | pw32* | os2*)
 
7405
      # This hack is so that the source file can tell whether it is being
 
7406
      # built for inclusion in a dll (and should export symbols for example).
 
7407
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
7408
      # (--disable-auto-import) libraries
 
7409
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
7410
      ;;
 
7411
 
 
7412
    darwin* | rhapsody*)
 
7413
      # PIC is the default on this platform
 
7414
      # Common symbols not allowed in MH_DYLIB files
 
7415
      lt_prog_compiler_pic='-fno-common'
 
7416
      ;;
 
7417
 
 
7418
    interix[3-9]*)
 
7419
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
7420
      # Instead, we relocate shared libraries at runtime.
 
7421
      ;;
 
7422
 
 
7423
    msdosdjgpp*)
 
7424
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
7425
      # on systems that don't support them.
 
7426
      lt_prog_compiler_can_build_shared=no
 
7427
      enable_shared=no
 
7428
      ;;
 
7429
 
 
7430
    sysv4*MP*)
 
7431
      if test -d /usr/nec; then
 
7432
        lt_prog_compiler_pic=-Kconform_pic
 
7433
      fi
 
7434
      ;;
 
7435
 
 
7436
    hpux*)
 
7437
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
7438
      # not for PA HP-UX.
 
7439
      case $host_cpu in
 
7440
      hppa*64*|ia64*)
 
7441
        # +Z the default
 
7442
        ;;
 
7443
      *)
 
7444
        lt_prog_compiler_pic='-fPIC'
 
7445
        ;;
 
7446
      esac
 
7447
      ;;
 
7448
 
 
7449
    *)
 
7450
      lt_prog_compiler_pic='-fPIC'
 
7451
      ;;
 
7452
    esac
 
7453
  else
 
7454
    # PORTME Check for flag to pass linker flags through the system compiler.
 
7455
    case $host_os in
 
7456
    aix*)
 
7457
      lt_prog_compiler_wl='-Wl,'
 
7458
      if test "$host_cpu" = ia64; then
 
7459
        # AIX 5 now supports IA64 processor
 
7460
        lt_prog_compiler_static='-Bstatic'
 
7461
      else
 
7462
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
7463
      fi
 
7464
      ;;
 
7465
      darwin*)
 
7466
        # PIC is the default on this platform
 
7467
        # Common symbols not allowed in MH_DYLIB files
 
7468
       case $cc_basename in
 
7469
         xlc*)
 
7470
         lt_prog_compiler_pic='-qnocommon'
 
7471
         lt_prog_compiler_wl='-Wl,'
 
7472
         ;;
 
7473
       esac
 
7474
       ;;
 
7475
 
 
7476
    mingw* | cygwin* | pw32* | os2*)
 
7477
      # This hack is so that the source file can tell whether it is being
 
7478
      # built for inclusion in a dll (and should export symbols for example).
 
7479
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
7480
      ;;
 
7481
 
 
7482
    hpux9* | hpux10* | hpux11*)
 
7483
      lt_prog_compiler_wl='-Wl,'
 
7484
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
7485
      # not for PA HP-UX.
 
7486
      case $host_cpu in
 
7487
      hppa*64*|ia64*)
 
7488
        # +Z the default
 
7489
        ;;
 
7490
      *)
 
7491
        lt_prog_compiler_pic='+Z'
 
7492
        ;;
 
7493
      esac
 
7494
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
7495
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
7496
      ;;
 
7497
 
 
7498
    irix5* | irix6* | nonstopux*)
 
7499
      lt_prog_compiler_wl='-Wl,'
 
7500
      # PIC (with -KPIC) is the default.
 
7501
      lt_prog_compiler_static='-non_shared'
 
7502
      ;;
 
7503
 
 
7504
    newsos6)
 
7505
      lt_prog_compiler_pic='-KPIC'
 
7506
      lt_prog_compiler_static='-Bstatic'
 
7507
      ;;
 
7508
 
 
7509
    linux* | k*bsd*-gnu)
 
7510
      case $cc_basename in
 
7511
      icc* | ecc*)
 
7512
        lt_prog_compiler_wl='-Wl,'
 
7513
        lt_prog_compiler_pic='-KPIC'
 
7514
        lt_prog_compiler_static='-static'
 
7515
        ;;
 
7516
      pgcc* | pgf77* | pgf90* | pgf95*)
 
7517
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
7518
        # which looks to be a dead project)
 
7519
        lt_prog_compiler_wl='-Wl,'
 
7520
        lt_prog_compiler_pic='-fpic'
 
7521
        lt_prog_compiler_static='-Bstatic'
 
7522
        ;;
 
7523
      ccc*)
 
7524
        lt_prog_compiler_wl='-Wl,'
 
7525
        # All Alpha code is PIC.
 
7526
        lt_prog_compiler_static='-non_shared'
 
7527
        ;;
 
7528
      *)
 
7529
        case `$CC -V 2>&1 | sed 5q` in
 
7530
        *Sun\ C*)
 
7531
          # Sun C 5.9
 
7532
          lt_prog_compiler_pic='-KPIC'
 
7533
          lt_prog_compiler_static='-Bstatic'
 
7534
          lt_prog_compiler_wl='-Wl,'
 
7535
          ;;
 
7536
        *Sun\ F*)
 
7537
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
7538
          lt_prog_compiler_pic='-KPIC'
 
7539
          lt_prog_compiler_static='-Bstatic'
 
7540
          lt_prog_compiler_wl=''
 
7541
          ;;
 
7542
        esac
 
7543
        ;;
 
7544
      esac
 
7545
      ;;
 
7546
 
 
7547
    osf3* | osf4* | osf5*)
 
7548
      lt_prog_compiler_wl='-Wl,'
 
7549
      # All OSF/1 code is PIC.
 
7550
      lt_prog_compiler_static='-non_shared'
 
7551
      ;;
 
7552
 
 
7553
    rdos*)
 
7554
      lt_prog_compiler_static='-non_shared'
 
7555
      ;;
 
7556
 
 
7557
    solaris*)
 
7558
      lt_prog_compiler_pic='-KPIC'
 
7559
      lt_prog_compiler_static='-Bstatic'
 
7560
      case $cc_basename in
 
7561
      f77* | f90* | f95*)
 
7562
        lt_prog_compiler_wl='-Qoption ld ';;
 
7563
      *)
 
7564
        lt_prog_compiler_wl='-Wl,';;
 
7565
      esac
 
7566
      ;;
 
7567
 
 
7568
    sunos4*)
 
7569
      lt_prog_compiler_wl='-Qoption ld '
 
7570
      lt_prog_compiler_pic='-PIC'
 
7571
      lt_prog_compiler_static='-Bstatic'
 
7572
      ;;
 
7573
 
 
7574
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
7575
      lt_prog_compiler_wl='-Wl,'
 
7576
      lt_prog_compiler_pic='-KPIC'
 
7577
      lt_prog_compiler_static='-Bstatic'
 
7578
      ;;
 
7579
 
 
7580
    sysv4*MP*)
 
7581
      if test -d /usr/nec ;then
 
7582
        lt_prog_compiler_pic='-Kconform_pic'
 
7583
        lt_prog_compiler_static='-Bstatic'
 
7584
      fi
 
7585
      ;;
 
7586
 
 
7587
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
7588
      lt_prog_compiler_wl='-Wl,'
 
7589
      lt_prog_compiler_pic='-KPIC'
 
7590
      lt_prog_compiler_static='-Bstatic'
 
7591
      ;;
 
7592
 
 
7593
    unicos*)
 
7594
      lt_prog_compiler_wl='-Wl,'
 
7595
      lt_prog_compiler_can_build_shared=no
 
7596
      ;;
 
7597
 
 
7598
    uts4*)
 
7599
      lt_prog_compiler_pic='-pic'
 
7600
      lt_prog_compiler_static='-Bstatic'
 
7601
      ;;
 
7602
 
 
7603
    *)
 
7604
      lt_prog_compiler_can_build_shared=no
 
7605
      ;;
 
7606
    esac
 
7607
  fi
 
7608
 
 
7609
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
7610
$as_echo "$lt_prog_compiler_pic" >&6; }
 
7611
 
 
7612
#
 
7613
# Check to make sure the PIC flag actually works.
 
7614
#
 
7615
if test -n "$lt_prog_compiler_pic"; then
 
7616
 
 
7617
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
7618
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
 
7619
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
 
7620
  $as_echo_n "(cached) " >&6
 
7621
else
 
7622
  lt_cv_prog_compiler_pic_works=no
 
7623
  ac_outfile=conftest.$ac_objext
 
7624
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7625
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
7626
   # Insert the option either (1) after the last *FLAGS variable, or
 
7627
   # (2) before a word containing "conftest.", or (3) at the end.
 
7628
   # Note that $ac_compile itself does not contain backslashes and begins
 
7629
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7630
   # The option is referenced via a variable to avoid confusing sed.
 
7631
   lt_compile=`echo "$ac_compile" | $SED \
 
7632
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7633
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7634
   -e 's:$: $lt_compiler_flag:'`
 
7635
   (eval echo "\"\$as_me:7635: $lt_compile\"" >&5)
 
7636
   (eval "$lt_compile" 2>conftest.err)
 
7637
   ac_status=$?
 
7638
   cat conftest.err >&5
 
7639
   echo "$as_me:7639: \$? = $ac_status" >&5
 
7640
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
7641
     # The compiler can only warn and ignore the option if not recognized
 
7642
     # So say no if there are warnings other than the usual output.
 
7643
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
7644
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7645
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
7646
       lt_cv_prog_compiler_pic_works=yes
 
7647
     fi
 
7648
   fi
 
7649
   $rm conftest*
 
7650
 
 
7651
fi
 
7652
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
 
7653
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
 
7654
 
 
7655
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
 
7656
    case $lt_prog_compiler_pic in
 
7657
     "" | " "*) ;;
 
7658
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
7659
     esac
 
7660
else
 
7661
    lt_prog_compiler_pic=
 
7662
     lt_prog_compiler_can_build_shared=no
 
7663
fi
 
7664
 
 
7665
fi
 
7666
case $host_os in
 
7667
  # For platforms which do not support PIC, -DPIC is meaningless:
 
7668
  *djgpp*)
 
7669
    lt_prog_compiler_pic=
 
7670
    ;;
 
7671
  *)
 
7672
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
7673
    ;;
 
7674
esac
 
7675
 
 
7676
#
 
7677
# Check to make sure the static flag actually works.
 
7678
#
 
7679
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
7680
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
7681
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
7682
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
 
7683
  $as_echo_n "(cached) " >&6
 
7684
else
 
7685
  lt_cv_prog_compiler_static_works=no
 
7686
   save_LDFLAGS="$LDFLAGS"
 
7687
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
7688
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
7689
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
7690
     # The linker can only warn and ignore the option if not recognized
 
7691
     # So say no if there are warnings
 
7692
     if test -s conftest.err; then
 
7693
       # Append any errors to the config.log.
 
7694
       cat conftest.err 1>&5
 
7695
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
7696
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7697
       if diff conftest.exp conftest.er2 >/dev/null; then
 
7698
         lt_cv_prog_compiler_static_works=yes
 
7699
       fi
 
7700
     else
 
7701
       lt_cv_prog_compiler_static_works=yes
 
7702
     fi
 
7703
   fi
 
7704
   $rm -r conftest*
 
7705
   LDFLAGS="$save_LDFLAGS"
 
7706
 
 
7707
fi
 
7708
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
 
7709
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
 
7710
 
 
7711
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
 
7712
    :
 
7713
else
 
7714
    lt_prog_compiler_static=
 
7715
fi
 
7716
 
 
7717
 
 
7718
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
7719
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
7720
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
7721
  $as_echo_n "(cached) " >&6
 
7722
else
 
7723
  lt_cv_prog_compiler_c_o=no
 
7724
   $rm -r conftest 2>/dev/null
 
7725
   mkdir conftest
 
7726
   cd conftest
 
7727
   mkdir out
 
7728
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7729
 
 
7730
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
7731
   # Insert the option either (1) after the last *FLAGS variable, or
 
7732
   # (2) before a word containing "conftest.", or (3) at the end.
 
7733
   # Note that $ac_compile itself does not contain backslashes and begins
 
7734
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7735
   lt_compile=`echo "$ac_compile" | $SED \
 
7736
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7737
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7738
   -e 's:$: $lt_compiler_flag:'`
 
7739
   (eval echo "\"\$as_me:7739: $lt_compile\"" >&5)
 
7740
   (eval "$lt_compile" 2>out/conftest.err)
 
7741
   ac_status=$?
 
7742
   cat out/conftest.err >&5
 
7743
   echo "$as_me:7743: \$? = $ac_status" >&5
 
7744
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
7745
   then
 
7746
     # The compiler can only warn and ignore the option if not recognized
 
7747
     # So say no if there are warnings
 
7748
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
7749
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
7750
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
7751
       lt_cv_prog_compiler_c_o=yes
 
7752
     fi
 
7753
   fi
 
7754
   chmod u+w . 2>&5
 
7755
   $rm conftest*
 
7756
   # SGI C++ compiler will create directory out/ii_files/ for
 
7757
   # template instantiation
 
7758
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
7759
   $rm out/* && rmdir out
 
7760
   cd ..
 
7761
   rmdir conftest
 
7762
   $rm conftest*
 
7763
 
 
7764
fi
 
7765
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
7766
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
7767
 
 
7768
 
 
7769
hard_links="nottested"
 
7770
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
7771
  # do not overwrite the value of need_locks provided by the user
 
7772
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
7773
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
7774
  hard_links=yes
 
7775
  $rm conftest*
 
7776
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
7777
  touch conftest.a
 
7778
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
7779
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
7780
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
 
7781
$as_echo "$hard_links" >&6; }
 
7782
  if test "$hard_links" = no; then
 
7783
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
7784
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
7785
    need_locks=warn
 
7786
  fi
 
7787
else
 
7788
  need_locks=no
 
7789
fi
 
7790
 
 
7791
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
7792
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
7793
 
 
7794
  runpath_var=
 
7795
  allow_undefined_flag=
 
7796
  enable_shared_with_static_runtimes=no
 
7797
  archive_cmds=
 
7798
  archive_expsym_cmds=
 
7799
  old_archive_From_new_cmds=
 
7800
  old_archive_from_expsyms_cmds=
 
7801
  export_dynamic_flag_spec=
 
7802
  whole_archive_flag_spec=
 
7803
  thread_safe_flag_spec=
 
7804
  hardcode_libdir_flag_spec=
 
7805
  hardcode_libdir_flag_spec_ld=
 
7806
  hardcode_libdir_separator=
 
7807
  hardcode_direct=no
 
7808
  hardcode_minus_L=no
 
7809
  hardcode_shlibpath_var=unsupported
 
7810
  link_all_deplibs=unknown
 
7811
  hardcode_automatic=no
 
7812
  module_cmds=
 
7813
  module_expsym_cmds=
 
7814
  always_export_symbols=no
 
7815
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
7816
  # include_expsyms should be a list of space-separated symbols to be *always*
 
7817
  # included in the symbol list
 
7818
  include_expsyms=
 
7819
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
7820
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
7821
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
7822
  # as well as any symbol that contains `d'.
 
7823
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
7824
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
7825
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
7826
  # the symbol is explicitly referenced.  Since portable code cannot
 
7827
  # rely on this symbol name, it's probably fine to never include it in
 
7828
  # preloaded symbol tables.
 
7829
  # Exclude shared library initialization/finalization symbols.
 
7830
  extract_expsyms_cmds=
 
7831
  # Just being paranoid about ensuring that cc_basename is set.
 
7832
  for cc_temp in $compiler""; do
 
7833
  case $cc_temp in
 
7834
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
7835
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
7836
    \-*) ;;
 
7837
    *) break;;
 
7838
  esac
 
7839
done
 
7840
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
7841
 
 
7842
  case $host_os in
 
7843
  cygwin* | mingw* | pw32*)
 
7844
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
7845
    # When not using gcc, we currently assume that we are using
 
7846
    # Microsoft Visual C++.
 
7847
    if test "$GCC" != yes; then
 
7848
      with_gnu_ld=no
 
7849
    fi
 
7850
    ;;
 
7851
  interix*)
 
7852
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
7853
    with_gnu_ld=yes
 
7854
    ;;
 
7855
  openbsd*)
 
7856
    with_gnu_ld=no
 
7857
    ;;
 
7858
  esac
 
7859
 
 
7860
  ld_shlibs=yes
 
7861
  if test "$with_gnu_ld" = yes; then
 
7862
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
7863
    wlarc='${wl}'
 
7864
 
 
7865
    # Set some defaults for GNU ld with shared library support. These
 
7866
    # are reset later if shared libraries are not supported. Putting them
 
7867
    # here allows them to be overridden if necessary.
 
7868
    runpath_var=LD_RUN_PATH
 
7869
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
7870
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
7871
    # ancient GNU ld didn't support --whole-archive et. al.
 
7872
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
7873
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
7874
      else
 
7875
        whole_archive_flag_spec=
 
7876
    fi
 
7877
    supports_anon_versioning=no
 
7878
    case `$LD -v 2>/dev/null` in
 
7879
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
7880
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
7881
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
7882
      *\ 2.11.*) ;; # other 2.11 versions
 
7883
      *) supports_anon_versioning=yes ;;
 
7884
    esac
 
7885
 
 
7886
    # See if GNU ld supports shared libraries.
 
7887
    case $host_os in
 
7888
    aix[3-9]*)
 
7889
      # On AIX/PPC, the GNU linker is very broken
 
7890
      if test "$host_cpu" != ia64; then
 
7891
        ld_shlibs=no
 
7892
        cat <<EOF 1>&2
 
7893
 
 
7894
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
7895
*** to be unable to reliably create shared libraries on AIX.
 
7896
*** Therefore, libtool is disabling shared libraries support.  If you
 
7897
*** really care for shared libraries, you may want to modify your PATH
 
7898
*** so that a non-GNU linker is found, and then restart.
 
7899
 
 
7900
EOF
 
7901
      fi
 
7902
      ;;
 
7903
 
 
7904
    amigaos*)
 
7905
      archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
7906
      hardcode_libdir_flag_spec='-L$libdir'
 
7907
      hardcode_minus_L=yes
 
7908
 
 
7909
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
7910
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
7911
      # to version 4, is to share data among multiple programs linked
 
7912
      # with the same dynamic library.  Since this doesn't match the
 
7913
      # behavior of shared libraries on other platforms, we can't use
 
7914
      # them.
 
7915
      ld_shlibs=no
 
7916
      ;;
 
7917
 
 
7918
    beos*)
 
7919
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7920
        allow_undefined_flag=unsupported
 
7921
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
7922
        # support --undefined.  This deserves some investigation.  FIXME
 
7923
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7924
      else
 
7925
        ld_shlibs=no
 
7926
      fi
 
7927
      ;;
 
7928
 
 
7929
    cygwin* | mingw* | pw32*)
 
7930
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
7931
      # as there is no search path for DLLs.
 
7932
      hardcode_libdir_flag_spec='-L$libdir'
 
7933
      allow_undefined_flag=unsupported
 
7934
      always_export_symbols=no
 
7935
      enable_shared_with_static_runtimes=yes
 
7936
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
7937
 
 
7938
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
7939
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
7940
        # If the export-symbols file already is a .def file (1st line
 
7941
        # is EXPORTS), use it as is; otherwise, prepend...
 
7942
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
7943
          cp $export_symbols $output_objdir/$soname.def;
 
7944
        else
 
7945
          echo EXPORTS > $output_objdir/$soname.def;
 
7946
          cat $export_symbols >> $output_objdir/$soname.def;
 
7947
        fi~
 
7948
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
7949
      else
 
7950
        ld_shlibs=no
 
7951
      fi
 
7952
      ;;
 
7953
 
 
7954
    interix[3-9]*)
 
7955
      hardcode_direct=no
 
7956
      hardcode_shlibpath_var=no
 
7957
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
7958
      export_dynamic_flag_spec='${wl}-E'
 
7959
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
7960
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
7961
      # default) and relocated if they conflict, which is a slow very memory
 
7962
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
7963
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
7964
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
7965
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
7966
      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'
 
7967
      ;;
 
7968
 
 
7969
    gnu* | linux* | k*bsd*-gnu)
 
7970
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7971
        tmp_addflag=
 
7972
        case $cc_basename,$host_cpu in
 
7973
        pgcc*)                          # Portland Group C compiler
 
7974
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
7975
          tmp_addflag=' $pic_flag'
 
7976
          ;;
 
7977
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
7978
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
7979
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
7980
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
7981
          tmp_addflag=' -i_dynamic' ;;
 
7982
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
7983
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
7984
        ifc* | ifort*)                  # Intel Fortran compiler
 
7985
          tmp_addflag=' -nofor_main' ;;
 
7986
        esac
 
7987
        case `$CC -V 2>&1 | sed 5q` in
 
7988
        *Sun\ C*)                       # Sun C 5.9
 
7989
          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
7990
          tmp_sharedflag='-G' ;;
 
7991
        *Sun\ F*)                       # Sun Fortran 8.3
 
7992
          tmp_sharedflag='-G' ;;
 
7993
        *)
 
7994
          tmp_sharedflag='-shared' ;;
 
7995
        esac
 
7996
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7997
 
 
7998
        if test $supports_anon_versioning = yes; then
 
7999
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
8000
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
8001
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
8002
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
8003
        fi
 
8004
      else
 
8005
        ld_shlibs=no
 
8006
      fi
 
8007
      ;;
 
8008
 
 
8009
    netbsd*)
 
8010
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
8011
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
8012
        wlarc=
 
8013
      else
 
8014
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8015
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8016
      fi
 
8017
      ;;
 
8018
 
 
8019
    solaris*)
 
8020
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
8021
        ld_shlibs=no
 
8022
        cat <<EOF 1>&2
 
8023
 
 
8024
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
8025
*** create shared libraries on Solaris systems.  Therefore, libtool
 
8026
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
8027
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
8028
*** your PATH or compiler configuration so that the native linker is
 
8029
*** used, and then restart.
 
8030
 
 
8031
EOF
 
8032
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8033
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8034
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8035
      else
 
8036
        ld_shlibs=no
 
8037
      fi
 
8038
      ;;
 
8039
 
 
8040
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
8041
      case `$LD -v 2>&1` in
 
8042
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
8043
        ld_shlibs=no
 
8044
        cat <<_LT_EOF 1>&2
 
8045
 
 
8046
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
8047
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
8048
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
8049
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
8050
*** your PATH or compiler configuration so that the native linker is
 
8051
*** used, and then restart.
 
8052
 
 
8053
_LT_EOF
 
8054
        ;;
 
8055
        *)
 
8056
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8057
            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
8058
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
8059
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
8060
          else
 
8061
            ld_shlibs=no
 
8062
          fi
 
8063
        ;;
 
8064
      esac
 
8065
      ;;
 
8066
 
 
8067
    sunos4*)
 
8068
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8069
      wlarc=
 
8070
      hardcode_direct=yes
 
8071
      hardcode_shlibpath_var=no
 
8072
      ;;
 
8073
 
 
8074
    *)
 
8075
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8076
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8077
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8078
      else
 
8079
        ld_shlibs=no
 
8080
      fi
 
8081
      ;;
 
8082
    esac
 
8083
 
 
8084
    if test "$ld_shlibs" = no; then
 
8085
      runpath_var=
 
8086
      hardcode_libdir_flag_spec=
 
8087
      export_dynamic_flag_spec=
 
8088
      whole_archive_flag_spec=
 
8089
    fi
 
8090
  else
 
8091
    # PORTME fill in a description of your system's linker (not GNU ld)
 
8092
    case $host_os in
 
8093
    aix3*)
 
8094
      allow_undefined_flag=unsupported
 
8095
      always_export_symbols=yes
 
8096
      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
 
8097
      # Note: this linker hardcodes the directories in LIBPATH if there
 
8098
      # are no directories specified by -L.
 
8099
      hardcode_minus_L=yes
 
8100
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
8101
        # Neither direct hardcoding nor static linking is supported with a
 
8102
        # broken collect2.
 
8103
        hardcode_direct=unsupported
 
8104
      fi
 
8105
      ;;
 
8106
 
 
8107
    aix[4-9]*)
 
8108
      if test "$host_cpu" = ia64; then
 
8109
        # On IA64, the linker does run time linking by default, so we don't
 
8110
        # have to do anything special.
 
8111
        aix_use_runtimelinking=no
 
8112
        exp_sym_flag='-Bexport'
 
8113
        no_entry_flag=""
 
8114
      else
 
8115
        # If we're using GNU nm, then we don't want the "-C" option.
 
8116
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
8117
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
8118
          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
8119
        else
 
8120
          export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
8121
        fi
 
8122
        aix_use_runtimelinking=no
 
8123
 
 
8124
        # Test if we are trying to use run time linking or normal
 
8125
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
8126
        # need to do runtime linking.
 
8127
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
8128
          for ld_flag in $LDFLAGS; do
 
8129
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
8130
            aix_use_runtimelinking=yes
 
8131
            break
 
8132
          fi
 
8133
          done
 
8134
          ;;
 
8135
        esac
 
8136
 
 
8137
        exp_sym_flag='-bexport'
 
8138
        no_entry_flag='-bnoentry'
 
8139
      fi
 
8140
 
 
8141
      # When large executables or shared objects are built, AIX ld can
 
8142
      # have problems creating the table of contents.  If linking a library
 
8143
      # or program results in "error TOC overflow" add -mminimal-toc to
 
8144
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
8145
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
8146
 
 
8147
      archive_cmds=''
 
8148
      hardcode_direct=yes
 
8149
      hardcode_libdir_separator=':'
 
8150
      link_all_deplibs=yes
 
8151
 
 
8152
      if test "$GCC" = yes; then
 
8153
        case $host_os in aix4.[012]|aix4.[012].*)
 
8154
        # We only want to do this on AIX 4.2 and lower, the check
 
8155
        # below for broken collect2 doesn't work under 4.3+
 
8156
          collect2name=`${CC} -print-prog-name=collect2`
 
8157
          if test -f "$collect2name" && \
 
8158
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
8159
          then
 
8160
          # We have reworked collect2
 
8161
          :
 
8162
          else
 
8163
          # We have old collect2
 
8164
          hardcode_direct=unsupported
 
8165
          # It fails to find uninstalled libraries when the uninstalled
 
8166
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
8167
          # to unsupported forces relinking
 
8168
          hardcode_minus_L=yes
 
8169
          hardcode_libdir_flag_spec='-L$libdir'
 
8170
          hardcode_libdir_separator=
 
8171
          fi
 
8172
          ;;
 
8173
        esac
 
8174
        shared_flag='-shared'
 
8175
        if test "$aix_use_runtimelinking" = yes; then
 
8176
          shared_flag="$shared_flag "'${wl}-G'
 
8177
        fi
 
8178
      else
 
8179
        # not using gcc
 
8180
        if test "$host_cpu" = ia64; then
 
8181
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
8182
        # chokes on -Wl,-G. The following line is correct:
 
8183
          shared_flag='-G'
 
8184
        else
 
8185
          if test "$aix_use_runtimelinking" = yes; then
 
8186
            shared_flag='${wl}-G'
 
8187
          else
 
8188
            shared_flag='${wl}-bM:SRE'
 
8189
          fi
 
8190
        fi
 
8191
      fi
 
8192
 
 
8193
      # It seems that -bexpall does not export symbols beginning with
 
8194
      # underscore (_), so it is better to generate a list of symbols to export.
 
8195
      always_export_symbols=yes
 
8196
      if test "$aix_use_runtimelinking" = yes; then
 
8197
        # Warning - without using the other runtime loading flags (-brtl),
 
8198
        # -berok will link without error, but may produce a broken library.
 
8199
        allow_undefined_flag='-berok'
 
8200
       # Determine the default libpath from the value encoded in an empty executable.
 
8201
       cat >conftest.$ac_ext <<_ACEOF
 
8202
/* confdefs.h.  */
 
8203
_ACEOF
 
8204
cat confdefs.h >>conftest.$ac_ext
 
8205
cat >>conftest.$ac_ext <<_ACEOF
 
8206
/* end confdefs.h.  */
 
8207
 
 
8208
int
 
8209
main ()
 
8210
{
 
8211
 
 
8212
  ;
 
8213
  return 0;
 
8214
}
 
8215
_ACEOF
 
8216
rm -f conftest.$ac_objext conftest$ac_exeext
 
8217
if { (ac_try="$ac_link"
 
8218
case "(($ac_try" in
 
8219
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8220
  *) ac_try_echo=$ac_try;;
 
8221
esac
 
8222
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
8223
$as_echo "$ac_try_echo") >&5
 
8224
  (eval "$ac_link") 2>conftest.er1
 
8225
  ac_status=$?
 
8226
  grep -v '^ *+' conftest.er1 >conftest.err
 
8227
  rm -f conftest.er1
 
8228
  cat conftest.err >&5
 
8229
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8230
  (exit $ac_status); } && {
 
8231
         test -z "$ac_c_werror_flag" ||
 
8232
         test ! -s conftest.err
 
8233
       } && test -s conftest$ac_exeext && {
 
8234
         test "$cross_compiling" = yes ||
 
8235
         $as_test_x conftest$ac_exeext
 
8236
       }; then
 
8237
 
 
8238
lt_aix_libpath_sed='
 
8239
    /Import File Strings/,/^$/ {
 
8240
        /^0/ {
 
8241
            s/^0  *\(.*\)$/\1/
 
8242
            p
 
8243
        }
 
8244
    }'
 
8245
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8246
# Check for a 64-bit object if we didn't find anything.
 
8247
if test -z "$aix_libpath"; then
 
8248
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8249
fi
 
8250
else
 
8251
  $as_echo "$as_me: failed program was:" >&5
 
8252
sed 's/^/| /' conftest.$ac_ext >&5
 
8253
 
 
8254
 
 
8255
fi
 
8256
 
 
8257
rm -rf conftest.dSYM
 
8258
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8259
      conftest$ac_exeext conftest.$ac_ext
 
8260
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
8261
 
 
8262
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8263
        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"
 
8264
       else
 
8265
        if test "$host_cpu" = ia64; then
 
8266
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
8267
          allow_undefined_flag="-z nodefs"
 
8268
          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"
 
8269
        else
 
8270
         # Determine the default libpath from the value encoded in an empty executable.
 
8271
         cat >conftest.$ac_ext <<_ACEOF
 
8272
/* confdefs.h.  */
 
8273
_ACEOF
 
8274
cat confdefs.h >>conftest.$ac_ext
 
8275
cat >>conftest.$ac_ext <<_ACEOF
 
8276
/* end confdefs.h.  */
 
8277
 
 
8278
int
 
8279
main ()
 
8280
{
 
8281
 
 
8282
  ;
 
8283
  return 0;
 
8284
}
 
8285
_ACEOF
 
8286
rm -f conftest.$ac_objext conftest$ac_exeext
 
8287
if { (ac_try="$ac_link"
 
8288
case "(($ac_try" in
 
8289
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8290
  *) ac_try_echo=$ac_try;;
 
8291
esac
 
8292
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
8293
$as_echo "$ac_try_echo") >&5
 
8294
  (eval "$ac_link") 2>conftest.er1
 
8295
  ac_status=$?
 
8296
  grep -v '^ *+' conftest.er1 >conftest.err
 
8297
  rm -f conftest.er1
 
8298
  cat conftest.err >&5
 
8299
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8300
  (exit $ac_status); } && {
 
8301
         test -z "$ac_c_werror_flag" ||
 
8302
         test ! -s conftest.err
 
8303
       } && test -s conftest$ac_exeext && {
 
8304
         test "$cross_compiling" = yes ||
 
8305
         $as_test_x conftest$ac_exeext
 
8306
       }; then
 
8307
 
 
8308
lt_aix_libpath_sed='
 
8309
    /Import File Strings/,/^$/ {
 
8310
        /^0/ {
 
8311
            s/^0  *\(.*\)$/\1/
 
8312
            p
 
8313
        }
 
8314
    }'
 
8315
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8316
# Check for a 64-bit object if we didn't find anything.
 
8317
if test -z "$aix_libpath"; then
 
8318
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8319
fi
 
8320
else
 
8321
  $as_echo "$as_me: failed program was:" >&5
 
8322
sed 's/^/| /' conftest.$ac_ext >&5
 
8323
 
 
8324
 
 
8325
fi
 
8326
 
 
8327
rm -rf conftest.dSYM
 
8328
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8329
      conftest$ac_exeext conftest.$ac_ext
 
8330
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
8331
 
 
8332
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8333
          # Warning - without using the other run time loading flags,
 
8334
          # -berok will link without error, but may produce a broken library.
 
8335
          no_undefined_flag=' ${wl}-bernotok'
 
8336
          allow_undefined_flag=' ${wl}-berok'
 
8337
          # Exported symbols can be pulled into shared objects from archives
 
8338
          whole_archive_flag_spec='$convenience'
 
8339
          archive_cmds_need_lc=yes
 
8340
          # This is similar to how AIX traditionally builds its shared libraries.
 
8341
          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'
 
8342
        fi
 
8343
      fi
 
8344
      ;;
 
8345
 
 
8346
    amigaos*)
 
8347
      archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
8348
      hardcode_libdir_flag_spec='-L$libdir'
 
8349
      hardcode_minus_L=yes
 
8350
      # see comment about different semantics on the GNU ld section
 
8351
      ld_shlibs=no
 
8352
      ;;
 
8353
 
 
8354
    bsdi[45]*)
 
8355
      export_dynamic_flag_spec=-rdynamic
 
8356
      ;;
 
8357
 
 
8358
    cygwin* | mingw* | pw32*)
 
8359
      # When not using gcc, we currently assume that we are using
 
8360
      # Microsoft Visual C++.
 
8361
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
8362
      # no search path for DLLs.
 
8363
      hardcode_libdir_flag_spec=' '
 
8364
      allow_undefined_flag=unsupported
 
8365
      # Tell ltmain to make .lib files, not .a files.
 
8366
      libext=lib
 
8367
      # Tell ltmain to make .dll files, not .so files.
 
8368
      shrext_cmds=".dll"
 
8369
      # FIXME: Setting linknames here is a bad hack.
 
8370
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
8371
      # The linker will automatically build a .lib file if we build a DLL.
 
8372
      old_archive_From_new_cmds='true'
 
8373
      # FIXME: Should let the user specify the lib program.
 
8374
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
8375
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
8376
      enable_shared_with_static_runtimes=yes
 
8377
      ;;
 
8378
 
 
8379
    darwin* | rhapsody*)
 
8380
      case $host_os in
 
8381
        rhapsody* | darwin1.[012])
 
8382
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
 
8383
         ;;
 
8384
       *) # Darwin 1.3 on
 
8385
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
8386
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
8387
         else
 
8388
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
8389
             10.[012])
 
8390
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
8391
               ;;
 
8392
             10.*)
 
8393
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
 
8394
               ;;
 
8395
           esac
 
8396
         fi
 
8397
         ;;
 
8398
      esac
 
8399
      archive_cmds_need_lc=no
 
8400
      hardcode_direct=no
 
8401
      hardcode_automatic=yes
 
8402
      hardcode_shlibpath_var=unsupported
 
8403
      whole_archive_flag_spec=''
 
8404
      link_all_deplibs=yes
 
8405
    if test "$GCC" = yes ; then
 
8406
        output_verbose_link_cmd='echo'
 
8407
        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
8408
        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
8409
        archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
8410
        module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
 
8411
    else
 
8412
      case $cc_basename in
 
8413
        xlc*)
 
8414
         output_verbose_link_cmd='echo'
 
8415
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
8416
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
8417
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
8418
         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
8419
          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
8420
          ;;
 
8421
       *)
 
8422
         ld_shlibs=no
 
8423
          ;;
 
8424
      esac
 
8425
    fi
 
8426
      ;;
 
8427
 
 
8428
    dgux*)
 
8429
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8430
      hardcode_libdir_flag_spec='-L$libdir'
 
8431
      hardcode_shlibpath_var=no
 
8432
      ;;
 
8433
 
 
8434
    freebsd1*)
 
8435
      ld_shlibs=no
 
8436
      ;;
 
8437
 
 
8438
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
8439
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
8440
    # does not break anything, and helps significantly (at the cost of a little
 
8441
    # extra space).
 
8442
    freebsd2.2*)
 
8443
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
8444
      hardcode_libdir_flag_spec='-R$libdir'
 
8445
      hardcode_direct=yes
 
8446
      hardcode_shlibpath_var=no
 
8447
      ;;
 
8448
 
 
8449
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
8450
    freebsd2*)
 
8451
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8452
      hardcode_direct=yes
 
8453
      hardcode_minus_L=yes
 
8454
      hardcode_shlibpath_var=no
 
8455
      ;;
 
8456
 
 
8457
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
8458
    freebsd* | dragonfly*)
 
8459
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
8460
      hardcode_libdir_flag_spec='-R$libdir'
 
8461
      hardcode_direct=yes
 
8462
      hardcode_shlibpath_var=no
 
8463
      ;;
 
8464
 
 
8465
    hpux9*)
 
8466
      if test "$GCC" = yes; then
 
8467
        archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
8468
      else
 
8469
        archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
8470
      fi
 
8471
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8472
      hardcode_libdir_separator=:
 
8473
      hardcode_direct=yes
 
8474
 
 
8475
      # hardcode_minus_L: Not really in the search PATH,
 
8476
      # but as the default location of the library.
 
8477
      hardcode_minus_L=yes
 
8478
      export_dynamic_flag_spec='${wl}-E'
 
8479
      ;;
 
8480
 
 
8481
    hpux10*)
 
8482
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
8483
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8484
      else
 
8485
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
8486
      fi
 
8487
      if test "$with_gnu_ld" = no; then
 
8488
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8489
        hardcode_libdir_separator=:
 
8490
 
 
8491
        hardcode_direct=yes
 
8492
        export_dynamic_flag_spec='${wl}-E'
 
8493
 
 
8494
        # hardcode_minus_L: Not really in the search PATH,
 
8495
        # but as the default location of the library.
 
8496
        hardcode_minus_L=yes
 
8497
      fi
 
8498
      ;;
 
8499
 
 
8500
    hpux11*)
 
8501
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
8502
        case $host_cpu in
 
8503
        hppa*64*)
 
8504
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8505
          ;;
 
8506
        ia64*)
 
8507
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
8508
          ;;
 
8509
        *)
 
8510
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8511
          ;;
 
8512
        esac
 
8513
      else
 
8514
        case $host_cpu in
 
8515
        hppa*64*)
 
8516
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8517
          ;;
 
8518
        ia64*)
 
8519
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
8520
          ;;
 
8521
        *)
 
8522
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8523
          ;;
 
8524
        esac
 
8525
      fi
 
8526
      if test "$with_gnu_ld" = no; then
 
8527
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8528
        hardcode_libdir_separator=:
 
8529
 
 
8530
        case $host_cpu in
 
8531
        hppa*64*|ia64*)
 
8532
          hardcode_libdir_flag_spec_ld='+b $libdir'
 
8533
          hardcode_direct=no
 
8534
          hardcode_shlibpath_var=no
 
8535
          ;;
 
8536
        *)
 
8537
          hardcode_direct=yes
 
8538
          export_dynamic_flag_spec='${wl}-E'
 
8539
 
 
8540
          # hardcode_minus_L: Not really in the search PATH,
 
8541
          # but as the default location of the library.
 
8542
          hardcode_minus_L=yes
 
8543
          ;;
 
8544
        esac
 
8545
      fi
 
8546
      ;;
 
8547
 
 
8548
    irix5* | irix6* | nonstopux*)
 
8549
      if test "$GCC" = yes; then
 
8550
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
8551
      else
 
8552
        archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
8553
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
8554
      fi
 
8555
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8556
      hardcode_libdir_separator=:
 
8557
      link_all_deplibs=yes
 
8558
      ;;
 
8559
 
 
8560
    netbsd*)
 
8561
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
8562
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
8563
      else
 
8564
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
8565
      fi
 
8566
      hardcode_libdir_flag_spec='-R$libdir'
 
8567
      hardcode_direct=yes
 
8568
      hardcode_shlibpath_var=no
 
8569
      ;;
 
8570
 
 
8571
    newsos6)
 
8572
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8573
      hardcode_direct=yes
 
8574
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8575
      hardcode_libdir_separator=:
 
8576
      hardcode_shlibpath_var=no
 
8577
      ;;
 
8578
 
 
8579
    openbsd*)
 
8580
      if test -f /usr/libexec/ld.so; then
 
8581
        hardcode_direct=yes
 
8582
        hardcode_shlibpath_var=no
 
8583
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
8584
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
8585
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
8586
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8587
          export_dynamic_flag_spec='${wl}-E'
 
8588
        else
 
8589
          case $host_os in
 
8590
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
8591
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8592
             hardcode_libdir_flag_spec='-R$libdir'
 
8593
             ;;
 
8594
           *)
 
8595
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
8596
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8597
             ;;
 
8598
          esac
 
8599
        fi
 
8600
      else
 
8601
        ld_shlibs=no
 
8602
      fi
 
8603
      ;;
 
8604
 
 
8605
    os2*)
 
8606
      hardcode_libdir_flag_spec='-L$libdir'
 
8607
      hardcode_minus_L=yes
 
8608
      allow_undefined_flag=unsupported
 
8609
      archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
 
8610
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
8611
      ;;
 
8612
 
 
8613
    osf3*)
 
8614
      if test "$GCC" = yes; then
 
8615
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
8616
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
8617
      else
 
8618
        allow_undefined_flag=' -expect_unresolved \*'
 
8619
        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
8620
      fi
 
8621
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8622
      hardcode_libdir_separator=:
 
8623
      ;;
 
8624
 
 
8625
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
8626
      if test "$GCC" = yes; then
 
8627
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
8628
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
8629
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8630
      else
 
8631
        allow_undefined_flag=' -expect_unresolved \*'
 
8632
        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
8633
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
8634
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
8635
 
 
8636
        # Both c and cxx compiler support -rpath directly
 
8637
        hardcode_libdir_flag_spec='-rpath $libdir'
 
8638
      fi
 
8639
      hardcode_libdir_separator=:
 
8640
      ;;
 
8641
 
 
8642
    solaris*)
 
8643
      no_undefined_flag=' -z text'
 
8644
      if test "$GCC" = yes; then
 
8645
        wlarc='${wl}'
 
8646
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8647
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
8648
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
8649
      else
 
8650
        wlarc=''
 
8651
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8652
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
8653
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
8654
      fi
 
8655
      hardcode_libdir_flag_spec='-R$libdir'
 
8656
      hardcode_shlibpath_var=no
 
8657
      case $host_os in
 
8658
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
8659
      *)
 
8660
        # The compiler driver will combine and reorder linker options,
 
8661
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
8662
        # but is careful enough not to reorder.
 
8663
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
8664
        if test "$GCC" = yes; then
 
8665
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
8666
        else
 
8667
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
 
8668
        fi
 
8669
        ;;
 
8670
      esac
 
8671
      link_all_deplibs=yes
 
8672
      ;;
 
8673
 
 
8674
    sunos4*)
 
8675
      if test "x$host_vendor" = xsequent; then
 
8676
        # Use $CC to link under sequent, because it throws in some extra .o
 
8677
        # files that make .init and .fini sections work.
 
8678
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
8679
      else
 
8680
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
8681
      fi
 
8682
      hardcode_libdir_flag_spec='-L$libdir'
 
8683
      hardcode_direct=yes
 
8684
      hardcode_minus_L=yes
 
8685
      hardcode_shlibpath_var=no
 
8686
      ;;
 
8687
 
 
8688
    sysv4)
 
8689
      case $host_vendor in
 
8690
        sni)
 
8691
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8692
          hardcode_direct=yes # is this really true???
 
8693
        ;;
 
8694
        siemens)
 
8695
          ## LD is ld it makes a PLAMLIB
 
8696
          ## CC just makes a GrossModule.
 
8697
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
8698
          reload_cmds='$CC -r -o $output$reload_objs'
 
8699
          hardcode_direct=no
 
8700
        ;;
 
8701
        motorola)
 
8702
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8703
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
8704
        ;;
 
8705
      esac
 
8706
      runpath_var='LD_RUN_PATH'
 
8707
      hardcode_shlibpath_var=no
 
8708
      ;;
 
8709
 
 
8710
    sysv4.3*)
 
8711
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8712
      hardcode_shlibpath_var=no
 
8713
      export_dynamic_flag_spec='-Bexport'
 
8714
      ;;
 
8715
 
 
8716
    sysv4*MP*)
 
8717
      if test -d /usr/nec; then
 
8718
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8719
        hardcode_shlibpath_var=no
 
8720
        runpath_var=LD_RUN_PATH
 
8721
        hardcode_runpath_var=yes
 
8722
        ld_shlibs=yes
 
8723
      fi
 
8724
      ;;
 
8725
 
 
8726
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
8727
      no_undefined_flag='${wl}-z,text'
 
8728
      archive_cmds_need_lc=no
 
8729
      hardcode_shlibpath_var=no
 
8730
      runpath_var='LD_RUN_PATH'
 
8731
 
 
8732
      if test "$GCC" = yes; then
 
8733
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8734
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8735
      else
 
8736
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8737
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8738
      fi
 
8739
      ;;
 
8740
 
 
8741
    sysv5* | sco3.2v5* | sco5v6*)
 
8742
      # Note: We can NOT use -z defs as we might desire, because we do not
 
8743
      # link with -lc, and that would cause any symbols used from libc to
 
8744
      # always be unresolved, which means just about no library would
 
8745
      # ever link correctly.  If we're not using GNU ld we use -z text
 
8746
      # though, which does catch some bad symbols but isn't as heavy-handed
 
8747
      # as -z defs.
 
8748
      no_undefined_flag='${wl}-z,text'
 
8749
      allow_undefined_flag='${wl}-z,nodefs'
 
8750
      archive_cmds_need_lc=no
 
8751
      hardcode_shlibpath_var=no
 
8752
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
8753
      hardcode_libdir_separator=':'
 
8754
      link_all_deplibs=yes
 
8755
      export_dynamic_flag_spec='${wl}-Bexport'
 
8756
      runpath_var='LD_RUN_PATH'
 
8757
 
 
8758
      if test "$GCC" = yes; then
 
8759
        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8760
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8761
      else
 
8762
        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8763
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8764
      fi
 
8765
      ;;
 
8766
 
 
8767
    uts4*)
 
8768
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8769
      hardcode_libdir_flag_spec='-L$libdir'
 
8770
      hardcode_shlibpath_var=no
 
8771
      ;;
 
8772
 
 
8773
    *)
 
8774
      ld_shlibs=no
 
8775
      ;;
 
8776
    esac
 
8777
  fi
 
8778
 
 
8779
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
8780
$as_echo "$ld_shlibs" >&6; }
 
8781
test "$ld_shlibs" = no && can_build_shared=no
 
8782
 
 
8783
#
 
8784
# Do we need to explicitly link libc?
 
8785
#
 
8786
case "x$archive_cmds_need_lc" in
 
8787
x|xyes)
 
8788
  # Assume -lc should be added
 
8789
  archive_cmds_need_lc=yes
 
8790
 
 
8791
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
8792
    case $archive_cmds in
 
8793
    *'~'*)
 
8794
      # FIXME: we may have to deal with multi-command sequences.
 
8795
      ;;
 
8796
    '$CC '*)
 
8797
      # Test whether the compiler implicitly links with -lc since on some
 
8798
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
8799
      # to ld, don't add -lc before -lgcc.
 
8800
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
8801
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
8802
      $rm conftest*
 
8803
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8804
 
 
8805
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8806
  (eval $ac_compile) 2>&5
 
8807
  ac_status=$?
 
8808
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8809
  (exit $ac_status); } 2>conftest.err; then
 
8810
        soname=conftest
 
8811
        lib=conftest
 
8812
        libobjs=conftest.$ac_objext
 
8813
        deplibs=
 
8814
        wl=$lt_prog_compiler_wl
 
8815
        pic_flag=$lt_prog_compiler_pic
 
8816
        compiler_flags=-v
 
8817
        linker_flags=-v
 
8818
        verstring=
 
8819
        output_objdir=.
 
8820
        libname=conftest
 
8821
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
8822
        allow_undefined_flag=
 
8823
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
8824
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
8825
  ac_status=$?
 
8826
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8827
  (exit $ac_status); }
 
8828
        then
 
8829
          archive_cmds_need_lc=no
 
8830
        else
 
8831
          archive_cmds_need_lc=yes
 
8832
        fi
 
8833
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
8834
      else
 
8835
        cat conftest.err 1>&5
 
8836
      fi
 
8837
      $rm conftest*
 
8838
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
8839
$as_echo "$archive_cmds_need_lc" >&6; }
 
8840
      ;;
 
8841
    esac
 
8842
  fi
 
8843
  ;;
 
8844
esac
 
8845
 
 
8846
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
8847
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
8848
library_names_spec=
 
8849
libname_spec='lib$name'
 
8850
soname_spec=
 
8851
shrext_cmds=".so"
 
8852
postinstall_cmds=
 
8853
postuninstall_cmds=
 
8854
finish_cmds=
 
8855
finish_eval=
 
8856
shlibpath_var=
 
8857
shlibpath_overrides_runpath=unknown
 
8858
version_type=none
 
8859
dynamic_linker="$host_os ld.so"
 
8860
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
8861
 
 
8862
if test "$GCC" = yes; then
 
8863
  case $host_os in
 
8864
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
8865
    *) lt_awk_arg="/^libraries:/" ;;
 
8866
  esac
 
8867
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
8868
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
 
8869
    # if the path contains ";" then we assume it to be the separator
 
8870
    # otherwise default to the standard path separator (i.e. ":") - it is
 
8871
    # assumed that no part of a normal pathname contains ";" but that should
 
8872
    # okay in the real world where ";" in dirpaths is itself problematic.
 
8873
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 
8874
  else
 
8875
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
8876
  fi
 
8877
  # Ok, now we have the path, separated by spaces, we can step through it
 
8878
  # and add multilib dir if necessary.
 
8879
  lt_tmp_lt_search_path_spec=
 
8880
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
8881
  for lt_sys_path in $lt_search_path_spec; do
 
8882
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
8883
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
8884
    else
 
8885
      test -d "$lt_sys_path" && \
 
8886
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
8887
    fi
 
8888
  done
 
8889
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
 
8890
BEGIN {RS=" "; FS="/|\n";} {
 
8891
  lt_foo="";
 
8892
  lt_count=0;
 
8893
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
8894
    if ($lt_i != "" && $lt_i != ".") {
 
8895
      if ($lt_i == "..") {
 
8896
        lt_count++;
 
8897
      } else {
 
8898
        if (lt_count == 0) {
 
8899
          lt_foo="/" $lt_i lt_foo;
 
8900
        } else {
 
8901
          lt_count--;
 
8902
        }
 
8903
      }
 
8904
    }
 
8905
  }
 
8906
  if (lt_foo != "") { lt_freq[lt_foo]++; }
 
8907
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
 
8908
}'`
 
8909
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
 
8910
else
 
8911
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
8912
fi
 
8913
need_lib_prefix=unknown
 
8914
hardcode_into_libs=no
 
8915
 
 
8916
# when you set need_version to no, make sure it does not cause -set_version
 
8917
# flags to be left without arguments
 
8918
need_version=unknown
 
8919
 
 
8920
case $host_os in
 
8921
aix3*)
 
8922
  version_type=linux
 
8923
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
8924
  shlibpath_var=LIBPATH
 
8925
 
 
8926
  # AIX 3 has no versioning support, so we append a major version to the name.
 
8927
  soname_spec='${libname}${release}${shared_ext}$major'
 
8928
  ;;
 
8929
 
 
8930
aix[4-9]*)
 
8931
  version_type=linux
 
8932
  need_lib_prefix=no
 
8933
  need_version=no
 
8934
  hardcode_into_libs=yes
 
8935
  if test "$host_cpu" = ia64; then
 
8936
    # AIX 5 supports IA64
 
8937
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
8938
    shlibpath_var=LD_LIBRARY_PATH
 
8939
  else
 
8940
    # With GCC up to 2.95.x, collect2 would create an import file
 
8941
    # for dependence libraries.  The import file would start with
 
8942
    # the line `#! .'.  This would cause the generated library to
 
8943
    # depend on `.', always an invalid library.  This was fixed in
 
8944
    # development snapshots of GCC prior to 3.0.
 
8945
    case $host_os in
 
8946
      aix4 | aix4.[01] | aix4.[01].*)
 
8947
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
8948
           echo ' yes '
 
8949
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
8950
        :
 
8951
      else
 
8952
        can_build_shared=no
 
8953
      fi
 
8954
      ;;
 
8955
    esac
 
8956
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
8957
    # soname into executable. Probably we can add versioning support to
 
8958
    # collect2, so additional links can be useful in future.
 
8959
    if test "$aix_use_runtimelinking" = yes; then
 
8960
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
8961
      # instead of lib<name>.a to let people know that these are not
 
8962
      # typical AIX shared libraries.
 
8963
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8964
    else
 
8965
      # We preserve .a as extension for shared libraries through AIX4.2
 
8966
      # and later when we are not doing run time linking.
 
8967
      library_names_spec='${libname}${release}.a $libname.a'
 
8968
      soname_spec='${libname}${release}${shared_ext}$major'
 
8969
    fi
 
8970
    shlibpath_var=LIBPATH
 
8971
  fi
 
8972
  ;;
 
8973
 
 
8974
amigaos*)
 
8975
  library_names_spec='$libname.ixlibrary $libname.a'
 
8976
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
8977
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
8978
  ;;
 
8979
 
 
8980
beos*)
 
8981
  library_names_spec='${libname}${shared_ext}'
 
8982
  dynamic_linker="$host_os ld.so"
 
8983
  shlibpath_var=LIBRARY_PATH
 
8984
  ;;
 
8985
 
 
8986
bsdi[45]*)
 
8987
  version_type=linux
 
8988
  need_version=no
 
8989
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8990
  soname_spec='${libname}${release}${shared_ext}$major'
 
8991
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
8992
  shlibpath_var=LD_LIBRARY_PATH
 
8993
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
8994
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
8995
  # the default ld.so.conf also contains /usr/contrib/lib and
 
8996
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
8997
  # libtool to hard-code these into programs
 
8998
  ;;
 
8999
 
 
9000
cygwin* | mingw* | pw32*)
 
9001
  version_type=windows
 
9002
  shrext_cmds=".dll"
 
9003
  need_version=no
 
9004
  need_lib_prefix=no
 
9005
 
 
9006
  case $GCC,$host_os in
 
9007
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
9008
    library_names_spec='$libname.dll.a'
 
9009
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
9010
    postinstall_cmds='base_file=`basename \${file}`~
 
9011
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
9012
      dldir=$destdir/`dirname \$dlpath`~
 
9013
      test -d \$dldir || mkdir -p \$dldir~
 
9014
      $install_prog $dir/$dlname \$dldir/$dlname~
 
9015
      chmod a+x \$dldir/$dlname'
 
9016
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
9017
      dlpath=$dir/\$dldll~
 
9018
       $rm \$dlpath'
 
9019
    shlibpath_overrides_runpath=yes
 
9020
 
 
9021
    case $host_os in
 
9022
    cygwin*)
 
9023
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
9024
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9025
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
9026
      ;;
 
9027
    mingw*)
 
9028
      # MinGW DLLs use traditional 'lib' prefix
 
9029
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9030
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
9031
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
9032
        # It is most probably a Windows format PATH printed by
 
9033
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
9034
        # path with ; separators, and with drive letters. We can handle the
 
9035
        # drive letters (cygwin fileutils understands them), so leave them,
 
9036
        # especially as we might pass files found there to a mingw objdump,
 
9037
        # which wouldn't understand a cygwinified path. Ahh.
 
9038
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
9039
      else
 
9040
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
9041
      fi
 
9042
      ;;
 
9043
    pw32*)
 
9044
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
9045
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9046
      ;;
 
9047
    esac
 
9048
    ;;
 
9049
 
 
9050
  *)
 
9051
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
9052
    ;;
 
9053
  esac
 
9054
  dynamic_linker='Win32 ld.exe'
 
9055
  # FIXME: first we should search . and the directory the executable is in
 
9056
  shlibpath_var=PATH
 
9057
  ;;
 
9058
 
 
9059
darwin* | rhapsody*)
 
9060
  dynamic_linker="$host_os dyld"
 
9061
  version_type=darwin
 
9062
  need_lib_prefix=no
 
9063
  need_version=no
 
9064
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
9065
  soname_spec='${libname}${release}${major}$shared_ext'
 
9066
  shlibpath_overrides_runpath=yes
 
9067
  shlibpath_var=DYLD_LIBRARY_PATH
 
9068
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
9069
 
 
9070
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
 
9071
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
9072
  ;;
 
9073
 
 
9074
dgux*)
 
9075
  version_type=linux
 
9076
  need_lib_prefix=no
 
9077
  need_version=no
 
9078
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
9079
  soname_spec='${libname}${release}${shared_ext}$major'
 
9080
  shlibpath_var=LD_LIBRARY_PATH
 
9081
  ;;
 
9082
 
 
9083
freebsd1*)
 
9084
  dynamic_linker=no
 
9085
  ;;
 
9086
 
 
9087
freebsd* | dragonfly*)
 
9088
  # DragonFly does not have aout.  When/if they implement a new
 
9089
  # versioning mechanism, adjust this.
 
9090
  if test -x /usr/bin/objformat; then
 
9091
    objformat=`/usr/bin/objformat`
 
9092
  else
 
9093
    case $host_os in
 
9094
    freebsd[123]*) objformat=aout ;;
 
9095
    *) objformat=elf ;;
 
9096
    esac
 
9097
  fi
 
9098
  version_type=freebsd-$objformat
 
9099
  case $version_type in
 
9100
    freebsd-elf*)
 
9101
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9102
      need_version=no
 
9103
      need_lib_prefix=no
 
9104
      ;;
 
9105
    freebsd-*)
 
9106
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
9107
      need_version=yes
 
9108
      ;;
 
9109
  esac
 
9110
  shlibpath_var=LD_LIBRARY_PATH
 
9111
  case $host_os in
 
9112
  freebsd2*)
 
9113
    shlibpath_overrides_runpath=yes
 
9114
    ;;
 
9115
  freebsd3.[01]* | freebsdelf3.[01]*)
 
9116
    shlibpath_overrides_runpath=yes
 
9117
    hardcode_into_libs=yes
 
9118
    ;;
 
9119
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
9120
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
9121
    shlibpath_overrides_runpath=no
 
9122
    hardcode_into_libs=yes
 
9123
    ;;
 
9124
  *) # from 4.6 on, and DragonFly
 
9125
    shlibpath_overrides_runpath=yes
 
9126
    hardcode_into_libs=yes
 
9127
    ;;
 
9128
  esac
 
9129
  ;;
 
9130
 
 
9131
gnu*)
 
9132
  version_type=linux
 
9133
  need_lib_prefix=no
 
9134
  need_version=no
 
9135
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
9136
  soname_spec='${libname}${release}${shared_ext}$major'
 
9137
  shlibpath_var=LD_LIBRARY_PATH
 
9138
  hardcode_into_libs=yes
 
9139
  ;;
 
9140
 
 
9141
hpux9* | hpux10* | hpux11*)
 
9142
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
9143
  # link against other versions.
 
9144
  version_type=sunos
 
9145
  need_lib_prefix=no
 
9146
  need_version=no
 
9147
  case $host_cpu in
 
9148
  ia64*)
 
9149
    shrext_cmds='.so'
 
9150
    hardcode_into_libs=yes
 
9151
    dynamic_linker="$host_os dld.so"
 
9152
    shlibpath_var=LD_LIBRARY_PATH
 
9153
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
9154
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9155
    soname_spec='${libname}${release}${shared_ext}$major'
 
9156
    if test "X$HPUX_IA64_MODE" = X32; then
 
9157
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
9158
    else
 
9159
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
9160
    fi
 
9161
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
9162
    ;;
 
9163
   hppa*64*)
 
9164
     shrext_cmds='.sl'
 
9165
     hardcode_into_libs=yes
 
9166
     dynamic_linker="$host_os dld.sl"
 
9167
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
9168
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
9169
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9170
     soname_spec='${libname}${release}${shared_ext}$major'
 
9171
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
9172
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
9173
     ;;
 
9174
   *)
 
9175
    shrext_cmds='.sl'
 
9176
    dynamic_linker="$host_os dld.sl"
 
9177
    shlibpath_var=SHLIB_PATH
 
9178
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
9179
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9180
    soname_spec='${libname}${release}${shared_ext}$major'
 
9181
    ;;
 
9182
  esac
 
9183
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
9184
  postinstall_cmds='chmod 555 $lib'
 
9185
  ;;
 
9186
 
 
9187
interix[3-9]*)
 
9188
  version_type=linux
 
9189
  need_lib_prefix=no
 
9190
  need_version=no
 
9191
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9192
  soname_spec='${libname}${release}${shared_ext}$major'
 
9193
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
9194
  shlibpath_var=LD_LIBRARY_PATH
 
9195
  shlibpath_overrides_runpath=no
 
9196
  hardcode_into_libs=yes
 
9197
  ;;
 
9198
 
 
9199
irix5* | irix6* | nonstopux*)
 
9200
  case $host_os in
 
9201
    nonstopux*) version_type=nonstopux ;;
 
9202
    *)
 
9203
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
9204
                version_type=linux
 
9205
        else
 
9206
                version_type=irix
 
9207
        fi ;;
 
9208
  esac
 
9209
  need_lib_prefix=no
 
9210
  need_version=no
 
9211
  soname_spec='${libname}${release}${shared_ext}$major'
 
9212
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9213
  case $host_os in
 
9214
  irix5* | nonstopux*)
 
9215
    libsuff= shlibsuff=
 
9216
    ;;
 
9217
  *)
 
9218
    case $LD in # libtool.m4 will add one of these switches to LD
 
9219
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
9220
      libsuff= shlibsuff= libmagic=32-bit;;
 
9221
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
9222
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
9223
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
9224
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
9225
    *) libsuff= shlibsuff= libmagic=never-match;;
 
9226
    esac
 
9227
    ;;
 
9228
  esac
 
9229
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
9230
  shlibpath_overrides_runpath=no
 
9231
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
9232
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
9233
  hardcode_into_libs=yes
 
9234
  ;;
 
9235
 
 
9236
# No shared lib support for Linux oldld, aout, or coff.
 
9237
linux*oldld* | linux*aout* | linux*coff*)
 
9238
  dynamic_linker=no
 
9239
  ;;
 
9240
 
 
9241
# This must be Linux ELF.
 
9242
linux* | k*bsd*-gnu)
 
9243
  version_type=linux
 
9244
  need_lib_prefix=no
 
9245
  need_version=no
 
9246
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9247
  soname_spec='${libname}${release}${shared_ext}$major'
 
9248
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
9249
  shlibpath_var=LD_LIBRARY_PATH
 
9250
  shlibpath_overrides_runpath=no
 
9251
  # This implies no fast_install, which is unacceptable.
 
9252
  # Some rework will be needed to allow for fast_install
 
9253
  # before this can be enabled.
 
9254
  hardcode_into_libs=yes
 
9255
 
 
9256
  # Append ld.so.conf contents to the search path
 
9257
  if test -f /etc/ld.so.conf; then
 
9258
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
9259
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
9260
  fi
 
9261
 
 
9262
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
9263
  # powerpc, because MkLinux only supported shared libraries with the
 
9264
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
9265
  # most powerpc-linux boxes support dynamic linking these days and
 
9266
  # people can always --disable-shared, the test was removed, and we
 
9267
  # assume the GNU/Linux dynamic linker is in use.
 
9268
  dynamic_linker='GNU/Linux ld.so'
 
9269
  ;;
 
9270
 
 
9271
netbsd*)
 
9272
  version_type=sunos
 
9273
  need_lib_prefix=no
 
9274
  need_version=no
 
9275
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
9276
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9277
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
9278
    dynamic_linker='NetBSD (a.out) ld.so'
 
9279
  else
 
9280
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9281
    soname_spec='${libname}${release}${shared_ext}$major'
 
9282
    dynamic_linker='NetBSD ld.elf_so'
 
9283
  fi
 
9284
  shlibpath_var=LD_LIBRARY_PATH
 
9285
  shlibpath_overrides_runpath=yes
 
9286
  hardcode_into_libs=yes
 
9287
  ;;
 
9288
 
 
9289
newsos6)
 
9290
  version_type=linux
 
9291
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9292
  shlibpath_var=LD_LIBRARY_PATH
 
9293
  shlibpath_overrides_runpath=yes
 
9294
  ;;
 
9295
 
 
9296
nto-qnx*)
 
9297
  version_type=linux
 
9298
  need_lib_prefix=no
 
9299
  need_version=no
 
9300
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9301
  soname_spec='${libname}${release}${shared_ext}$major'
 
9302
  shlibpath_var=LD_LIBRARY_PATH
 
9303
  shlibpath_overrides_runpath=yes
 
9304
  ;;
 
9305
 
 
9306
openbsd*)
 
9307
  version_type=sunos
 
9308
  sys_lib_dlsearch_path_spec="/usr/lib"
 
9309
  need_lib_prefix=no
 
9310
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
9311
  case $host_os in
 
9312
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
9313
    *)                         need_version=no  ;;
 
9314
  esac
 
9315
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9316
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
9317
  shlibpath_var=LD_LIBRARY_PATH
 
9318
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9319
    case $host_os in
 
9320
      openbsd2.[89] | openbsd2.[89].*)
 
9321
        shlibpath_overrides_runpath=no
 
9322
        ;;
 
9323
      *)
 
9324
        shlibpath_overrides_runpath=yes
 
9325
        ;;
 
9326
      esac
 
9327
  else
 
9328
    shlibpath_overrides_runpath=yes
 
9329
  fi
 
9330
  ;;
 
9331
 
 
9332
os2*)
 
9333
  libname_spec='$name'
 
9334
  shrext_cmds=".dll"
 
9335
  need_lib_prefix=no
 
9336
  library_names_spec='$libname${shared_ext} $libname.a'
 
9337
  dynamic_linker='OS/2 ld.exe'
 
9338
  shlibpath_var=LIBPATH
 
9339
  ;;
 
9340
 
 
9341
osf3* | osf4* | osf5*)
 
9342
  version_type=osf
 
9343
  need_lib_prefix=no
 
9344
  need_version=no
 
9345
  soname_spec='${libname}${release}${shared_ext}$major'
 
9346
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9347
  shlibpath_var=LD_LIBRARY_PATH
 
9348
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
9349
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
9350
  ;;
 
9351
 
 
9352
rdos*)
 
9353
  dynamic_linker=no
 
9354
  ;;
 
9355
 
 
9356
solaris*)
 
9357
  version_type=linux
 
9358
  need_lib_prefix=no
 
9359
  need_version=no
 
9360
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9361
  soname_spec='${libname}${release}${shared_ext}$major'
 
9362
  shlibpath_var=LD_LIBRARY_PATH
 
9363
  shlibpath_overrides_runpath=yes
 
9364
  hardcode_into_libs=yes
 
9365
  # ldd complains unless libraries are executable
 
9366
  postinstall_cmds='chmod +x $lib'
 
9367
  ;;
 
9368
 
 
9369
sunos4*)
 
9370
  version_type=sunos
 
9371
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9372
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
9373
  shlibpath_var=LD_LIBRARY_PATH
 
9374
  shlibpath_overrides_runpath=yes
 
9375
  if test "$with_gnu_ld" = yes; then
 
9376
    need_lib_prefix=no
 
9377
  fi
 
9378
  need_version=yes
 
9379
  ;;
 
9380
 
 
9381
sysv4 | sysv4.3*)
 
9382
  version_type=linux
 
9383
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9384
  soname_spec='${libname}${release}${shared_ext}$major'
 
9385
  shlibpath_var=LD_LIBRARY_PATH
 
9386
  case $host_vendor in
 
9387
    sni)
 
9388
      shlibpath_overrides_runpath=no
 
9389
      need_lib_prefix=no
 
9390
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
9391
      runpath_var=LD_RUN_PATH
 
9392
      ;;
 
9393
    siemens)
 
9394
      need_lib_prefix=no
 
9395
      ;;
 
9396
    motorola)
 
9397
      need_lib_prefix=no
 
9398
      need_version=no
 
9399
      shlibpath_overrides_runpath=no
 
9400
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
9401
      ;;
 
9402
  esac
 
9403
  ;;
 
9404
 
 
9405
sysv4*MP*)
 
9406
  if test -d /usr/nec ;then
 
9407
    version_type=linux
 
9408
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
9409
    soname_spec='$libname${shared_ext}.$major'
 
9410
    shlibpath_var=LD_LIBRARY_PATH
 
9411
  fi
 
9412
  ;;
 
9413
 
 
9414
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
9415
  version_type=freebsd-elf
 
9416
  need_lib_prefix=no
 
9417
  need_version=no
 
9418
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9419
  soname_spec='${libname}${release}${shared_ext}$major'
 
9420
  shlibpath_var=LD_LIBRARY_PATH
 
9421
  hardcode_into_libs=yes
 
9422
  if test "$with_gnu_ld" = yes; then
 
9423
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
9424
    shlibpath_overrides_runpath=no
 
9425
  else
 
9426
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
9427
    shlibpath_overrides_runpath=yes
 
9428
    case $host_os in
 
9429
      sco3.2v5*)
 
9430
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
9431
        ;;
 
9432
    esac
 
9433
  fi
 
9434
  sys_lib_dlsearch_path_spec='/usr/lib'
 
9435
  ;;
 
9436
 
 
9437
uts4*)
 
9438
  version_type=linux
 
9439
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9440
  soname_spec='${libname}${release}${shared_ext}$major'
 
9441
  shlibpath_var=LD_LIBRARY_PATH
 
9442
  ;;
 
9443
 
 
9444
*)
 
9445
  dynamic_linker=no
 
9446
  ;;
 
9447
esac
 
9448
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
9449
$as_echo "$dynamic_linker" >&6; }
 
9450
test "$dynamic_linker" = no && can_build_shared=no
 
9451
 
 
9452
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
9453
  $as_echo_n "(cached) " >&6
 
9454
else
 
9455
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
9456
fi
 
9457
 
 
9458
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
9459
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
9460
  $as_echo_n "(cached) " >&6
 
9461
else
 
9462
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
9463
fi
 
9464
 
 
9465
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
9466
 
 
9467
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
9468
if test "$GCC" = yes; then
 
9469
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
9470
fi
 
9471
 
 
9472
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
9473
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
9474
hardcode_action=
 
9475
if test -n "$hardcode_libdir_flag_spec" || \
 
9476
   test -n "$runpath_var" || \
 
9477
   test "X$hardcode_automatic" = "Xyes" ; then
 
9478
 
 
9479
  # We can hardcode non-existant directories.
 
9480
  if test "$hardcode_direct" != no &&
 
9481
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
9482
     # have to relink, otherwise we might link with an installed library
 
9483
     # when we should be linking with a yet-to-be-installed one
 
9484
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
9485
     test "$hardcode_minus_L" != no; then
 
9486
    # Linking always hardcodes the temporary library directory.
 
9487
    hardcode_action=relink
 
9488
  else
 
9489
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
9490
    hardcode_action=immediate
 
9491
  fi
 
9492
else
 
9493
  # We cannot hardcode anything, or else we can only hardcode existing
 
9494
  # directories.
 
9495
  hardcode_action=unsupported
 
9496
fi
 
9497
{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
9498
$as_echo "$hardcode_action" >&6; }
 
9499
 
 
9500
if test "$hardcode_action" = relink; then
 
9501
  # Fast installation is not supported
 
9502
  enable_fast_install=no
 
9503
elif test "$shlibpath_overrides_runpath" = yes ||
 
9504
     test "$enable_shared" = no; then
 
9505
  # Fast installation is not necessary
 
9506
  enable_fast_install=needless
 
9507
fi
 
9508
 
 
9509
striplib=
 
9510
old_striplib=
 
9511
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
9512
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
 
9513
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
9514
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
9515
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
9516
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
9517
$as_echo "yes" >&6; }
 
9518
else
 
9519
# FIXME - insert some real tests, host_os isn't really good enough
 
9520
  case $host_os in
 
9521
   darwin*)
 
9522
       if test -n "$STRIP" ; then
 
9523
         striplib="$STRIP -x"
 
9524
         old_striplib="$STRIP -S"
 
9525
         { $as_echo "$as_me:$LINENO: result: yes" >&5
 
9526
$as_echo "yes" >&6; }
 
9527
       else
 
9528
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
9529
$as_echo "no" >&6; }
 
9530
fi
 
9531
       ;;
 
9532
   *)
 
9533
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
9534
$as_echo "no" >&6; }
 
9535
    ;;
 
9536
  esac
 
9537
fi
 
9538
 
 
9539
if test "x$enable_dlopen" != xyes; then
 
9540
  enable_dlopen=unknown
 
9541
  enable_dlopen_self=unknown
 
9542
  enable_dlopen_self_static=unknown
 
9543
else
 
9544
  lt_cv_dlopen=no
 
9545
  lt_cv_dlopen_libs=
 
9546
 
 
9547
  case $host_os in
 
9548
  beos*)
 
9549
    lt_cv_dlopen="load_add_on"
 
9550
    lt_cv_dlopen_libs=
 
9551
    lt_cv_dlopen_self=yes
 
9552
    ;;
 
9553
 
 
9554
  mingw* | pw32*)
 
9555
    lt_cv_dlopen="LoadLibrary"
 
9556
    lt_cv_dlopen_libs=
 
9557
   ;;
 
9558
 
 
9559
  cygwin*)
 
9560
    lt_cv_dlopen="dlopen"
 
9561
    lt_cv_dlopen_libs=
 
9562
   ;;
 
9563
 
 
9564
  darwin*)
 
9565
  # if libdl is installed we need to link against it
 
9566
    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
9567
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
9568
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
9569
  $as_echo_n "(cached) " >&6
 
9570
else
 
9571
  ac_check_lib_save_LIBS=$LIBS
 
9572
LIBS="-ldl  $LIBS"
 
9573
cat >conftest.$ac_ext <<_ACEOF
 
9574
/* confdefs.h.  */
 
9575
_ACEOF
 
9576
cat confdefs.h >>conftest.$ac_ext
 
9577
cat >>conftest.$ac_ext <<_ACEOF
 
9578
/* end confdefs.h.  */
 
9579
 
 
9580
/* Override any GCC internal prototype to avoid an error.
 
9581
   Use char because int might match the return type of a GCC
 
9582
   builtin and then its argument prototype would still apply.  */
 
9583
#ifdef __cplusplus
 
9584
extern "C"
 
9585
#endif
 
9586
char dlopen ();
 
9587
int
 
9588
main ()
 
9589
{
 
9590
return dlopen ();
 
9591
  ;
 
9592
  return 0;
 
9593
}
 
9594
_ACEOF
 
9595
rm -f conftest.$ac_objext conftest$ac_exeext
 
9596
if { (ac_try="$ac_link"
 
9597
case "(($ac_try" in
 
9598
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9599
  *) ac_try_echo=$ac_try;;
 
9600
esac
 
9601
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
9602
$as_echo "$ac_try_echo") >&5
 
9603
  (eval "$ac_link") 2>conftest.er1
 
9604
  ac_status=$?
 
9605
  grep -v '^ *+' conftest.er1 >conftest.err
 
9606
  rm -f conftest.er1
 
9607
  cat conftest.err >&5
 
9608
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9609
  (exit $ac_status); } && {
 
9610
         test -z "$ac_c_werror_flag" ||
 
9611
         test ! -s conftest.err
 
9612
       } && test -s conftest$ac_exeext && {
 
9613
         test "$cross_compiling" = yes ||
 
9614
         $as_test_x conftest$ac_exeext
 
9615
       }; then
 
9616
  ac_cv_lib_dl_dlopen=yes
 
9617
else
 
9618
  $as_echo "$as_me: failed program was:" >&5
 
9619
sed 's/^/| /' conftest.$ac_ext >&5
 
9620
 
 
9621
        ac_cv_lib_dl_dlopen=no
 
9622
fi
 
9623
 
 
9624
rm -rf conftest.dSYM
 
9625
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9626
      conftest$ac_exeext conftest.$ac_ext
 
9627
LIBS=$ac_check_lib_save_LIBS
 
9628
fi
 
9629
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
9630
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
9631
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
 
9632
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
9633
else
 
9634
 
 
9635
    lt_cv_dlopen="dyld"
 
9636
    lt_cv_dlopen_libs=
 
9637
    lt_cv_dlopen_self=yes
 
9638
 
 
9639
fi
 
9640
 
 
9641
   ;;
 
9642
 
 
9643
  *)
 
9644
    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
 
9645
$as_echo_n "checking for shl_load... " >&6; }
 
9646
if test "${ac_cv_func_shl_load+set}" = set; then
 
9647
  $as_echo_n "(cached) " >&6
 
9648
else
 
9649
  cat >conftest.$ac_ext <<_ACEOF
 
9650
/* confdefs.h.  */
 
9651
_ACEOF
 
9652
cat confdefs.h >>conftest.$ac_ext
 
9653
cat >>conftest.$ac_ext <<_ACEOF
 
9654
/* end confdefs.h.  */
 
9655
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
9656
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
9657
#define shl_load innocuous_shl_load
 
9658
 
 
9659
/* System header to define __stub macros and hopefully few prototypes,
 
9660
    which can conflict with char shl_load (); below.
 
9661
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
9662
    <limits.h> exists even on freestanding compilers.  */
 
9663
 
 
9664
#ifdef __STDC__
 
9665
# include <limits.h>
 
9666
#else
 
9667
# include <assert.h>
 
9668
#endif
 
9669
 
 
9670
#undef shl_load
 
9671
 
 
9672
/* Override any GCC internal prototype to avoid an error.
 
9673
   Use char because int might match the return type of a GCC
 
9674
   builtin and then its argument prototype would still apply.  */
 
9675
#ifdef __cplusplus
 
9676
extern "C"
 
9677
#endif
 
9678
char shl_load ();
 
9679
/* The GNU C library defines this for functions which it implements
 
9680
    to always fail with ENOSYS.  Some functions are actually named
 
9681
    something starting with __ and the normal name is an alias.  */
 
9682
#if defined __stub_shl_load || defined __stub___shl_load
 
9683
choke me
 
9684
#endif
 
9685
 
 
9686
int
 
9687
main ()
 
9688
{
 
9689
return shl_load ();
 
9690
  ;
 
9691
  return 0;
 
9692
}
 
9693
_ACEOF
 
9694
rm -f conftest.$ac_objext conftest$ac_exeext
 
9695
if { (ac_try="$ac_link"
 
9696
case "(($ac_try" in
 
9697
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9698
  *) ac_try_echo=$ac_try;;
 
9699
esac
 
9700
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
9701
$as_echo "$ac_try_echo") >&5
 
9702
  (eval "$ac_link") 2>conftest.er1
 
9703
  ac_status=$?
 
9704
  grep -v '^ *+' conftest.er1 >conftest.err
 
9705
  rm -f conftest.er1
 
9706
  cat conftest.err >&5
 
9707
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9708
  (exit $ac_status); } && {
 
9709
         test -z "$ac_c_werror_flag" ||
 
9710
         test ! -s conftest.err
 
9711
       } && test -s conftest$ac_exeext && {
 
9712
         test "$cross_compiling" = yes ||
 
9713
         $as_test_x conftest$ac_exeext
 
9714
       }; then
 
9715
  ac_cv_func_shl_load=yes
 
9716
else
 
9717
  $as_echo "$as_me: failed program was:" >&5
 
9718
sed 's/^/| /' conftest.$ac_ext >&5
 
9719
 
 
9720
        ac_cv_func_shl_load=no
 
9721
fi
 
9722
 
 
9723
rm -rf conftest.dSYM
 
9724
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9725
      conftest$ac_exeext conftest.$ac_ext
 
9726
fi
 
9727
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
9728
$as_echo "$ac_cv_func_shl_load" >&6; }
 
9729
if test "x$ac_cv_func_shl_load" = x""yes; then
 
9730
  lt_cv_dlopen="shl_load"
 
9731
else
 
9732
  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
9733
$as_echo_n "checking for shl_load in -ldld... " >&6; }
 
9734
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
9735
  $as_echo_n "(cached) " >&6
 
9736
else
 
9737
  ac_check_lib_save_LIBS=$LIBS
 
9738
LIBS="-ldld  $LIBS"
 
9739
cat >conftest.$ac_ext <<_ACEOF
 
9740
/* confdefs.h.  */
 
9741
_ACEOF
 
9742
cat confdefs.h >>conftest.$ac_ext
 
9743
cat >>conftest.$ac_ext <<_ACEOF
 
9744
/* end confdefs.h.  */
 
9745
 
 
9746
/* Override any GCC internal prototype to avoid an error.
 
9747
   Use char because int might match the return type of a GCC
 
9748
   builtin and then its argument prototype would still apply.  */
 
9749
#ifdef __cplusplus
 
9750
extern "C"
 
9751
#endif
 
9752
char shl_load ();
 
9753
int
 
9754
main ()
 
9755
{
 
9756
return shl_load ();
 
9757
  ;
 
9758
  return 0;
 
9759
}
 
9760
_ACEOF
 
9761
rm -f conftest.$ac_objext conftest$ac_exeext
 
9762
if { (ac_try="$ac_link"
 
9763
case "(($ac_try" in
 
9764
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9765
  *) ac_try_echo=$ac_try;;
 
9766
esac
 
9767
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
9768
$as_echo "$ac_try_echo") >&5
 
9769
  (eval "$ac_link") 2>conftest.er1
 
9770
  ac_status=$?
 
9771
  grep -v '^ *+' conftest.er1 >conftest.err
 
9772
  rm -f conftest.er1
 
9773
  cat conftest.err >&5
 
9774
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9775
  (exit $ac_status); } && {
 
9776
         test -z "$ac_c_werror_flag" ||
 
9777
         test ! -s conftest.err
 
9778
       } && test -s conftest$ac_exeext && {
 
9779
         test "$cross_compiling" = yes ||
 
9780
         $as_test_x conftest$ac_exeext
 
9781
       }; then
 
9782
  ac_cv_lib_dld_shl_load=yes
 
9783
else
 
9784
  $as_echo "$as_me: failed program was:" >&5
 
9785
sed 's/^/| /' conftest.$ac_ext >&5
 
9786
 
 
9787
        ac_cv_lib_dld_shl_load=no
 
9788
fi
 
9789
 
 
9790
rm -rf conftest.dSYM
 
9791
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9792
      conftest$ac_exeext conftest.$ac_ext
 
9793
LIBS=$ac_check_lib_save_LIBS
 
9794
fi
 
9795
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
9796
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
 
9797
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
 
9798
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
 
9799
else
 
9800
  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
 
9801
$as_echo_n "checking for dlopen... " >&6; }
 
9802
if test "${ac_cv_func_dlopen+set}" = set; then
 
9803
  $as_echo_n "(cached) " >&6
 
9804
else
 
9805
  cat >conftest.$ac_ext <<_ACEOF
 
9806
/* confdefs.h.  */
 
9807
_ACEOF
 
9808
cat confdefs.h >>conftest.$ac_ext
 
9809
cat >>conftest.$ac_ext <<_ACEOF
 
9810
/* end confdefs.h.  */
 
9811
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
9812
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
9813
#define dlopen innocuous_dlopen
 
9814
 
 
9815
/* System header to define __stub macros and hopefully few prototypes,
 
9816
    which can conflict with char dlopen (); below.
 
9817
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
9818
    <limits.h> exists even on freestanding compilers.  */
 
9819
 
 
9820
#ifdef __STDC__
 
9821
# include <limits.h>
 
9822
#else
 
9823
# include <assert.h>
 
9824
#endif
 
9825
 
 
9826
#undef dlopen
 
9827
 
 
9828
/* Override any GCC internal prototype to avoid an error.
 
9829
   Use char because int might match the return type of a GCC
 
9830
   builtin and then its argument prototype would still apply.  */
 
9831
#ifdef __cplusplus
 
9832
extern "C"
 
9833
#endif
 
9834
char dlopen ();
 
9835
/* The GNU C library defines this for functions which it implements
 
9836
    to always fail with ENOSYS.  Some functions are actually named
 
9837
    something starting with __ and the normal name is an alias.  */
 
9838
#if defined __stub_dlopen || defined __stub___dlopen
 
9839
choke me
 
9840
#endif
 
9841
 
 
9842
int
 
9843
main ()
 
9844
{
 
9845
return dlopen ();
 
9846
  ;
 
9847
  return 0;
 
9848
}
 
9849
_ACEOF
 
9850
rm -f conftest.$ac_objext conftest$ac_exeext
 
9851
if { (ac_try="$ac_link"
 
9852
case "(($ac_try" in
 
9853
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9854
  *) ac_try_echo=$ac_try;;
 
9855
esac
 
9856
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
9857
$as_echo "$ac_try_echo") >&5
 
9858
  (eval "$ac_link") 2>conftest.er1
 
9859
  ac_status=$?
 
9860
  grep -v '^ *+' conftest.er1 >conftest.err
 
9861
  rm -f conftest.er1
 
9862
  cat conftest.err >&5
 
9863
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9864
  (exit $ac_status); } && {
 
9865
         test -z "$ac_c_werror_flag" ||
 
9866
         test ! -s conftest.err
 
9867
       } && test -s conftest$ac_exeext && {
 
9868
         test "$cross_compiling" = yes ||
 
9869
         $as_test_x conftest$ac_exeext
 
9870
       }; then
 
9871
  ac_cv_func_dlopen=yes
 
9872
else
 
9873
  $as_echo "$as_me: failed program was:" >&5
 
9874
sed 's/^/| /' conftest.$ac_ext >&5
 
9875
 
 
9876
        ac_cv_func_dlopen=no
 
9877
fi
 
9878
 
 
9879
rm -rf conftest.dSYM
 
9880
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9881
      conftest$ac_exeext conftest.$ac_ext
 
9882
fi
 
9883
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
9884
$as_echo "$ac_cv_func_dlopen" >&6; }
 
9885
if test "x$ac_cv_func_dlopen" = x""yes; then
 
9886
  lt_cv_dlopen="dlopen"
 
9887
else
 
9888
  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
9889
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
9890
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
9891
  $as_echo_n "(cached) " >&6
 
9892
else
 
9893
  ac_check_lib_save_LIBS=$LIBS
 
9894
LIBS="-ldl  $LIBS"
 
9895
cat >conftest.$ac_ext <<_ACEOF
 
9896
/* confdefs.h.  */
 
9897
_ACEOF
 
9898
cat confdefs.h >>conftest.$ac_ext
 
9899
cat >>conftest.$ac_ext <<_ACEOF
 
9900
/* end confdefs.h.  */
 
9901
 
 
9902
/* Override any GCC internal prototype to avoid an error.
 
9903
   Use char because int might match the return type of a GCC
 
9904
   builtin and then its argument prototype would still apply.  */
 
9905
#ifdef __cplusplus
 
9906
extern "C"
 
9907
#endif
 
9908
char dlopen ();
 
9909
int
 
9910
main ()
 
9911
{
 
9912
return dlopen ();
 
9913
  ;
 
9914
  return 0;
 
9915
}
 
9916
_ACEOF
 
9917
rm -f conftest.$ac_objext conftest$ac_exeext
 
9918
if { (ac_try="$ac_link"
 
9919
case "(($ac_try" in
 
9920
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9921
  *) ac_try_echo=$ac_try;;
 
9922
esac
 
9923
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
9924
$as_echo "$ac_try_echo") >&5
 
9925
  (eval "$ac_link") 2>conftest.er1
 
9926
  ac_status=$?
 
9927
  grep -v '^ *+' conftest.er1 >conftest.err
 
9928
  rm -f conftest.er1
 
9929
  cat conftest.err >&5
 
9930
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9931
  (exit $ac_status); } && {
 
9932
         test -z "$ac_c_werror_flag" ||
 
9933
         test ! -s conftest.err
 
9934
       } && test -s conftest$ac_exeext && {
 
9935
         test "$cross_compiling" = yes ||
 
9936
         $as_test_x conftest$ac_exeext
 
9937
       }; then
 
9938
  ac_cv_lib_dl_dlopen=yes
 
9939
else
 
9940
  $as_echo "$as_me: failed program was:" >&5
 
9941
sed 's/^/| /' conftest.$ac_ext >&5
 
9942
 
 
9943
        ac_cv_lib_dl_dlopen=no
 
9944
fi
 
9945
 
 
9946
rm -rf conftest.dSYM
 
9947
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9948
      conftest$ac_exeext conftest.$ac_ext
 
9949
LIBS=$ac_check_lib_save_LIBS
 
9950
fi
 
9951
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
9952
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
9953
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
 
9954
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
9955
else
 
9956
  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
9957
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
 
9958
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
9959
  $as_echo_n "(cached) " >&6
 
9960
else
 
9961
  ac_check_lib_save_LIBS=$LIBS
 
9962
LIBS="-lsvld  $LIBS"
 
9963
cat >conftest.$ac_ext <<_ACEOF
 
9964
/* confdefs.h.  */
 
9965
_ACEOF
 
9966
cat confdefs.h >>conftest.$ac_ext
 
9967
cat >>conftest.$ac_ext <<_ACEOF
 
9968
/* end confdefs.h.  */
 
9969
 
 
9970
/* Override any GCC internal prototype to avoid an error.
 
9971
   Use char because int might match the return type of a GCC
 
9972
   builtin and then its argument prototype would still apply.  */
 
9973
#ifdef __cplusplus
 
9974
extern "C"
 
9975
#endif
 
9976
char dlopen ();
 
9977
int
 
9978
main ()
 
9979
{
 
9980
return dlopen ();
 
9981
  ;
 
9982
  return 0;
 
9983
}
 
9984
_ACEOF
 
9985
rm -f conftest.$ac_objext conftest$ac_exeext
 
9986
if { (ac_try="$ac_link"
 
9987
case "(($ac_try" in
 
9988
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9989
  *) ac_try_echo=$ac_try;;
 
9990
esac
 
9991
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
9992
$as_echo "$ac_try_echo") >&5
 
9993
  (eval "$ac_link") 2>conftest.er1
 
9994
  ac_status=$?
 
9995
  grep -v '^ *+' conftest.er1 >conftest.err
 
9996
  rm -f conftest.er1
 
9997
  cat conftest.err >&5
 
9998
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9999
  (exit $ac_status); } && {
 
10000
         test -z "$ac_c_werror_flag" ||
 
10001
         test ! -s conftest.err
 
10002
       } && test -s conftest$ac_exeext && {
 
10003
         test "$cross_compiling" = yes ||
 
10004
         $as_test_x conftest$ac_exeext
 
10005
       }; then
 
10006
  ac_cv_lib_svld_dlopen=yes
 
10007
else
 
10008
  $as_echo "$as_me: failed program was:" >&5
 
10009
sed 's/^/| /' conftest.$ac_ext >&5
 
10010
 
 
10011
        ac_cv_lib_svld_dlopen=no
 
10012
fi
 
10013
 
 
10014
rm -rf conftest.dSYM
 
10015
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10016
      conftest$ac_exeext conftest.$ac_ext
 
10017
LIBS=$ac_check_lib_save_LIBS
 
10018
fi
 
10019
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
10020
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
 
10021
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
 
10022
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
10023
else
 
10024
  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
10025
$as_echo_n "checking for dld_link in -ldld... " >&6; }
 
10026
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
10027
  $as_echo_n "(cached) " >&6
 
10028
else
 
10029
  ac_check_lib_save_LIBS=$LIBS
 
10030
LIBS="-ldld  $LIBS"
 
10031
cat >conftest.$ac_ext <<_ACEOF
 
10032
/* confdefs.h.  */
 
10033
_ACEOF
 
10034
cat confdefs.h >>conftest.$ac_ext
 
10035
cat >>conftest.$ac_ext <<_ACEOF
 
10036
/* end confdefs.h.  */
 
10037
 
 
10038
/* Override any GCC internal prototype to avoid an error.
 
10039
   Use char because int might match the return type of a GCC
 
10040
   builtin and then its argument prototype would still apply.  */
 
10041
#ifdef __cplusplus
 
10042
extern "C"
 
10043
#endif
 
10044
char dld_link ();
 
10045
int
 
10046
main ()
 
10047
{
 
10048
return dld_link ();
 
10049
  ;
 
10050
  return 0;
 
10051
}
 
10052
_ACEOF
 
10053
rm -f conftest.$ac_objext conftest$ac_exeext
 
10054
if { (ac_try="$ac_link"
 
10055
case "(($ac_try" in
 
10056
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10057
  *) ac_try_echo=$ac_try;;
 
10058
esac
 
10059
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10060
$as_echo "$ac_try_echo") >&5
 
10061
  (eval "$ac_link") 2>conftest.er1
 
10062
  ac_status=$?
 
10063
  grep -v '^ *+' conftest.er1 >conftest.err
 
10064
  rm -f conftest.er1
 
10065
  cat conftest.err >&5
 
10066
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10067
  (exit $ac_status); } && {
 
10068
         test -z "$ac_c_werror_flag" ||
 
10069
         test ! -s conftest.err
 
10070
       } && test -s conftest$ac_exeext && {
 
10071
         test "$cross_compiling" = yes ||
 
10072
         $as_test_x conftest$ac_exeext
 
10073
       }; then
 
10074
  ac_cv_lib_dld_dld_link=yes
 
10075
else
 
10076
  $as_echo "$as_me: failed program was:" >&5
 
10077
sed 's/^/| /' conftest.$ac_ext >&5
 
10078
 
 
10079
        ac_cv_lib_dld_dld_link=no
 
10080
fi
 
10081
 
 
10082
rm -rf conftest.dSYM
 
10083
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10084
      conftest$ac_exeext conftest.$ac_ext
 
10085
LIBS=$ac_check_lib_save_LIBS
 
10086
fi
 
10087
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
10088
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
 
10089
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
 
10090
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
 
10091
fi
 
10092
 
 
10093
 
 
10094
fi
 
10095
 
 
10096
 
 
10097
fi
 
10098
 
 
10099
 
 
10100
fi
 
10101
 
 
10102
 
 
10103
fi
 
10104
 
 
10105
 
 
10106
fi
 
10107
 
 
10108
    ;;
 
10109
  esac
 
10110
 
 
10111
  if test "x$lt_cv_dlopen" != xno; then
 
10112
    enable_dlopen=yes
 
10113
  else
 
10114
    enable_dlopen=no
 
10115
  fi
 
10116
 
 
10117
  case $lt_cv_dlopen in
 
10118
  dlopen)
 
10119
    save_CPPFLAGS="$CPPFLAGS"
 
10120
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
10121
 
 
10122
    save_LDFLAGS="$LDFLAGS"
 
10123
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
10124
 
 
10125
    save_LIBS="$LIBS"
 
10126
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
10127
 
 
10128
    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
10129
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
 
10130
if test "${lt_cv_dlopen_self+set}" = set; then
 
10131
  $as_echo_n "(cached) " >&6
 
10132
else
 
10133
          if test "$cross_compiling" = yes; then :
 
10134
  lt_cv_dlopen_self=cross
 
10135
else
 
10136
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
10137
  lt_status=$lt_dlunknown
 
10138
  cat > conftest.$ac_ext <<EOF
 
10139
#line 10139 "configure"
 
10140
#include "confdefs.h"
 
10141
 
 
10142
#if HAVE_DLFCN_H
 
10143
#include <dlfcn.h>
 
10144
#endif
 
10145
 
 
10146
#include <stdio.h>
 
10147
 
 
10148
#ifdef RTLD_GLOBAL
 
10149
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
10150
#else
 
10151
#  ifdef DL_GLOBAL
 
10152
#    define LT_DLGLOBAL         DL_GLOBAL
 
10153
#  else
 
10154
#    define LT_DLGLOBAL         0
 
10155
#  endif
 
10156
#endif
 
10157
 
 
10158
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
10159
   find out it does not work in some platform. */
 
10160
#ifndef LT_DLLAZY_OR_NOW
 
10161
#  ifdef RTLD_LAZY
 
10162
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
10163
#  else
 
10164
#    ifdef DL_LAZY
 
10165
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
10166
#    else
 
10167
#      ifdef RTLD_NOW
 
10168
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
10169
#      else
 
10170
#        ifdef DL_NOW
 
10171
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
10172
#        else
 
10173
#          define LT_DLLAZY_OR_NOW      0
 
10174
#        endif
 
10175
#      endif
 
10176
#    endif
 
10177
#  endif
 
10178
#endif
 
10179
 
 
10180
#ifdef __cplusplus
 
10181
extern "C" void exit (int);
 
10182
#endif
 
10183
 
 
10184
void fnord() { int i=42;}
 
10185
int main ()
 
10186
{
 
10187
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
10188
  int status = $lt_dlunknown;
 
10189
 
 
10190
  if (self)
 
10191
    {
 
10192
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
10193
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
10194
      /* dlclose (self); */
 
10195
    }
 
10196
  else
 
10197
    puts (dlerror ());
 
10198
 
 
10199
    exit (status);
 
10200
}
 
10201
EOF
 
10202
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10203
  (eval $ac_link) 2>&5
 
10204
  ac_status=$?
 
10205
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10206
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
10207
    (./conftest; exit; ) >&5 2>/dev/null
 
10208
    lt_status=$?
 
10209
    case x$lt_status in
 
10210
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
10211
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
10212
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
 
10213
    esac
 
10214
  else :
 
10215
    # compilation failed
 
10216
    lt_cv_dlopen_self=no
 
10217
  fi
 
10218
fi
 
10219
rm -fr conftest*
 
10220
 
 
10221
 
 
10222
fi
 
10223
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
10224
$as_echo "$lt_cv_dlopen_self" >&6; }
 
10225
 
 
10226
    if test "x$lt_cv_dlopen_self" = xyes; then
 
10227
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
10228
      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
10229
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
 
10230
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
10231
  $as_echo_n "(cached) " >&6
 
10232
else
 
10233
          if test "$cross_compiling" = yes; then :
 
10234
  lt_cv_dlopen_self_static=cross
 
10235
else
 
10236
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
10237
  lt_status=$lt_dlunknown
 
10238
  cat > conftest.$ac_ext <<EOF
 
10239
#line 10239 "configure"
 
10240
#include "confdefs.h"
 
10241
 
 
10242
#if HAVE_DLFCN_H
 
10243
#include <dlfcn.h>
 
10244
#endif
 
10245
 
 
10246
#include <stdio.h>
 
10247
 
 
10248
#ifdef RTLD_GLOBAL
 
10249
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
10250
#else
 
10251
#  ifdef DL_GLOBAL
 
10252
#    define LT_DLGLOBAL         DL_GLOBAL
 
10253
#  else
 
10254
#    define LT_DLGLOBAL         0
 
10255
#  endif
 
10256
#endif
 
10257
 
 
10258
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
10259
   find out it does not work in some platform. */
 
10260
#ifndef LT_DLLAZY_OR_NOW
 
10261
#  ifdef RTLD_LAZY
 
10262
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
10263
#  else
 
10264
#    ifdef DL_LAZY
 
10265
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
10266
#    else
 
10267
#      ifdef RTLD_NOW
 
10268
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
10269
#      else
 
10270
#        ifdef DL_NOW
 
10271
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
10272
#        else
 
10273
#          define LT_DLLAZY_OR_NOW      0
 
10274
#        endif
 
10275
#      endif
 
10276
#    endif
 
10277
#  endif
 
10278
#endif
 
10279
 
 
10280
#ifdef __cplusplus
 
10281
extern "C" void exit (int);
 
10282
#endif
 
10283
 
 
10284
void fnord() { int i=42;}
 
10285
int main ()
 
10286
{
 
10287
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
10288
  int status = $lt_dlunknown;
 
10289
 
 
10290
  if (self)
 
10291
    {
 
10292
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
10293
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
10294
      /* dlclose (self); */
 
10295
    }
 
10296
  else
 
10297
    puts (dlerror ());
 
10298
 
 
10299
    exit (status);
 
10300
}
 
10301
EOF
 
10302
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10303
  (eval $ac_link) 2>&5
 
10304
  ac_status=$?
 
10305
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10306
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
10307
    (./conftest; exit; ) >&5 2>/dev/null
 
10308
    lt_status=$?
 
10309
    case x$lt_status in
 
10310
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
10311
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
10312
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
 
10313
    esac
 
10314
  else :
 
10315
    # compilation failed
 
10316
    lt_cv_dlopen_self_static=no
 
10317
  fi
 
10318
fi
 
10319
rm -fr conftest*
 
10320
 
 
10321
 
 
10322
fi
 
10323
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
10324
$as_echo "$lt_cv_dlopen_self_static" >&6; }
 
10325
    fi
 
10326
 
 
10327
    CPPFLAGS="$save_CPPFLAGS"
 
10328
    LDFLAGS="$save_LDFLAGS"
 
10329
    LIBS="$save_LIBS"
 
10330
    ;;
 
10331
  esac
 
10332
 
 
10333
  case $lt_cv_dlopen_self in
 
10334
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
10335
  *) enable_dlopen_self=unknown ;;
 
10336
  esac
 
10337
 
 
10338
  case $lt_cv_dlopen_self_static in
 
10339
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
10340
  *) enable_dlopen_self_static=unknown ;;
 
10341
  esac
 
10342
fi
 
10343
 
 
10344
 
 
10345
# Report which library types will actually be built
 
10346
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
10347
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
 
10348
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
10349
$as_echo "$can_build_shared" >&6; }
 
10350
 
 
10351
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
10352
$as_echo_n "checking whether to build shared libraries... " >&6; }
 
10353
test "$can_build_shared" = "no" && enable_shared=no
 
10354
 
 
10355
# On AIX, shared libraries and static libraries use the same namespace, and
 
10356
# are all built from PIC.
 
10357
case $host_os in
 
10358
aix3*)
 
10359
  test "$enable_shared" = yes && enable_static=no
 
10360
  if test -n "$RANLIB"; then
 
10361
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
10362
    postinstall_cmds='$RANLIB $lib'
 
10363
  fi
 
10364
  ;;
 
10365
 
 
10366
aix[4-9]*)
 
10367
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
10368
    test "$enable_shared" = yes && enable_static=no
 
10369
  fi
 
10370
    ;;
 
10371
esac
 
10372
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
 
10373
$as_echo "$enable_shared" >&6; }
 
10374
 
 
10375
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
10376
$as_echo_n "checking whether to build static libraries... " >&6; }
 
10377
# Make sure either enable_shared or enable_static is yes.
 
10378
test "$enable_shared" = yes || enable_static=yes
 
10379
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
 
10380
$as_echo "$enable_static" >&6; }
 
10381
 
 
10382
# The else clause should only fire when bootstrapping the
 
10383
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
10384
# with your package, and you will get complaints that there are
 
10385
# no rules to generate ltmain.sh.
 
10386
if test -f "$ltmain"; then
 
10387
  # See if we are running on zsh, and set the options which allow our commands through
 
10388
  # without removal of \ escapes.
 
10389
  if test -n "${ZSH_VERSION+set}" ; then
 
10390
    setopt NO_GLOB_SUBST
 
10391
  fi
 
10392
  # Now quote all the things that may contain metacharacters while being
 
10393
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
10394
  # variables and quote the copies for generation of the libtool script.
 
10395
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
10396
    SED SHELL STRIP \
 
10397
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
10398
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
10399
    deplibs_check_method reload_flag reload_cmds need_locks \
 
10400
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
10401
    lt_cv_sys_global_symbol_to_c_name_address \
 
10402
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
10403
    old_postinstall_cmds old_postuninstall_cmds \
 
10404
    compiler \
 
10405
    CC \
 
10406
    LD \
 
10407
    lt_prog_compiler_wl \
 
10408
    lt_prog_compiler_pic \
 
10409
    lt_prog_compiler_static \
 
10410
    lt_prog_compiler_no_builtin_flag \
 
10411
    export_dynamic_flag_spec \
 
10412
    thread_safe_flag_spec \
 
10413
    whole_archive_flag_spec \
 
10414
    enable_shared_with_static_runtimes \
 
10415
    old_archive_cmds \
 
10416
    old_archive_from_new_cmds \
 
10417
    predep_objects \
 
10418
    postdep_objects \
 
10419
    predeps \
 
10420
    postdeps \
 
10421
    compiler_lib_search_path \
 
10422
    compiler_lib_search_dirs \
 
10423
    archive_cmds \
 
10424
    archive_expsym_cmds \
 
10425
    postinstall_cmds \
 
10426
    postuninstall_cmds \
 
10427
    old_archive_from_expsyms_cmds \
 
10428
    allow_undefined_flag \
 
10429
    no_undefined_flag \
 
10430
    export_symbols_cmds \
 
10431
    hardcode_libdir_flag_spec \
 
10432
    hardcode_libdir_flag_spec_ld \
 
10433
    hardcode_libdir_separator \
 
10434
    hardcode_automatic \
 
10435
    module_cmds \
 
10436
    module_expsym_cmds \
 
10437
    lt_cv_prog_compiler_c_o \
 
10438
    fix_srcfile_path \
 
10439
    exclude_expsyms \
 
10440
    include_expsyms; do
 
10441
 
 
10442
    case $var in
 
10443
    old_archive_cmds | \
 
10444
    old_archive_from_new_cmds | \
 
10445
    archive_cmds | \
 
10446
    archive_expsym_cmds | \
 
10447
    module_cmds | \
 
10448
    module_expsym_cmds | \
 
10449
    old_archive_from_expsyms_cmds | \
 
10450
    export_symbols_cmds | \
 
10451
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
10452
    postinstall_cmds | postuninstall_cmds | \
 
10453
    old_postinstall_cmds | old_postuninstall_cmds | \
 
10454
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
10455
      # Double-quote double-evaled strings.
 
10456
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
10457
      ;;
 
10458
    *)
 
10459
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
10460
      ;;
 
10461
    esac
 
10462
  done
 
10463
 
 
10464
  case $lt_echo in
 
10465
  *'\$0 --fallback-echo"')
 
10466
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
10467
    ;;
 
10468
  esac
 
10469
 
 
10470
cfgfile="${ofile}T"
 
10471
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
10472
  $rm -f "$cfgfile"
 
10473
  { $as_echo "$as_me:$LINENO: creating $ofile" >&5
 
10474
$as_echo "$as_me: creating $ofile" >&6;}
 
10475
 
 
10476
  cat <<__EOF__ >> "$cfgfile"
 
10477
#! $SHELL
 
10478
 
 
10479
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
10480
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
10481
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
10482
#
 
10483
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
 
10484
# Free Software Foundation, Inc.
 
10485
#
 
10486
# This file is part of GNU Libtool:
 
10487
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
10488
#
 
10489
# This program is free software; you can redistribute it and/or modify
 
10490
# it under the terms of the GNU General Public License as published by
 
10491
# the Free Software Foundation; either version 2 of the License, or
 
10492
# (at your option) any later version.
 
10493
#
 
10494
# This program is distributed in the hope that it will be useful, but
 
10495
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
10496
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
10497
# General Public License for more details.
 
10498
#
 
10499
# You should have received a copy of the GNU General Public License
 
10500
# along with this program; if not, write to the Free Software
 
10501
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
10502
#
 
10503
# As a special exception to the GNU General Public License, if you
 
10504
# distribute this file as part of a program that contains a
 
10505
# configuration script generated by Autoconf, you may include it under
 
10506
# the same distribution terms that you use for the rest of that program.
 
10507
 
 
10508
# A sed program that does not truncate output.
 
10509
SED=$lt_SED
 
10510
 
 
10511
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
10512
Xsed="$SED -e 1s/^X//"
 
10513
 
 
10514
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
10515
# if CDPATH is set.
 
10516
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
10517
 
 
10518
# The names of the tagged configurations supported by this script.
 
10519
available_tags=
 
10520
 
 
10521
# ### BEGIN LIBTOOL CONFIG
 
10522
 
 
10523
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
10524
 
 
10525
# Shell to use when invoking shell scripts.
 
10526
SHELL=$lt_SHELL
 
10527
 
 
10528
# Whether or not to build shared libraries.
 
10529
build_libtool_libs=$enable_shared
 
10530
 
 
10531
# Whether or not to build static libraries.
 
10532
build_old_libs=$enable_static
 
10533
 
 
10534
# Whether or not to add -lc for building shared libraries.
 
10535
build_libtool_need_lc=$archive_cmds_need_lc
 
10536
 
 
10537
# Whether or not to disallow shared libs when runtime libs are static
 
10538
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
10539
 
 
10540
# Whether or not to optimize for fast installation.
 
10541
fast_install=$enable_fast_install
 
10542
 
 
10543
# The host system.
 
10544
host_alias=$host_alias
 
10545
host=$host
 
10546
host_os=$host_os
 
10547
 
 
10548
# The build system.
 
10549
build_alias=$build_alias
 
10550
build=$build
 
10551
build_os=$build_os
 
10552
 
 
10553
# An echo program that does not interpret backslashes.
 
10554
echo=$lt_echo
 
10555
 
 
10556
# The archiver.
 
10557
AR=$lt_AR
 
10558
AR_FLAGS=$lt_AR_FLAGS
 
10559
 
 
10560
# A C compiler.
 
10561
LTCC=$lt_LTCC
 
10562
 
 
10563
# LTCC compiler flags.
 
10564
LTCFLAGS=$lt_LTCFLAGS
 
10565
 
 
10566
# A language-specific compiler.
 
10567
CC=$lt_compiler
 
10568
 
 
10569
# Is the compiler the GNU C compiler?
 
10570
with_gcc=$GCC
 
10571
 
 
10572
# An ERE matcher.
 
10573
EGREP=$lt_EGREP
 
10574
 
 
10575
# The linker used to build libraries.
 
10576
LD=$lt_LD
 
10577
 
 
10578
# Whether we need hard or soft links.
 
10579
LN_S=$lt_LN_S
 
10580
 
 
10581
# A BSD-compatible nm program.
 
10582
NM=$lt_NM
 
10583
 
 
10584
# A symbol stripping program
 
10585
STRIP=$lt_STRIP
 
10586
 
 
10587
# Used to examine libraries when file_magic_cmd begins "file"
 
10588
MAGIC_CMD=$MAGIC_CMD
 
10589
 
 
10590
# Used on cygwin: DLL creation program.
 
10591
DLLTOOL="$DLLTOOL"
 
10592
 
 
10593
# Used on cygwin: object dumper.
 
10594
OBJDUMP="$OBJDUMP"
 
10595
 
 
10596
# Used on cygwin: assembler.
 
10597
AS="$AS"
 
10598
 
 
10599
# The name of the directory that contains temporary libtool files.
 
10600
objdir=$objdir
 
10601
 
 
10602
# How to create reloadable object files.
 
10603
reload_flag=$lt_reload_flag
 
10604
reload_cmds=$lt_reload_cmds
 
10605
 
 
10606
# How to pass a linker flag through the compiler.
 
10607
wl=$lt_lt_prog_compiler_wl
 
10608
 
 
10609
# Object file suffix (normally "o").
 
10610
objext="$ac_objext"
 
10611
 
 
10612
# Old archive suffix (normally "a").
 
10613
libext="$libext"
 
10614
 
 
10615
# Shared library suffix (normally ".so").
 
10616
shrext_cmds='$shrext_cmds'
 
10617
 
 
10618
# Executable file suffix (normally "").
 
10619
exeext="$exeext"
 
10620
 
 
10621
# Additional compiler flags for building library objects.
 
10622
pic_flag=$lt_lt_prog_compiler_pic
 
10623
pic_mode=$pic_mode
 
10624
 
 
10625
# What is the maximum length of a command?
 
10626
max_cmd_len=$lt_cv_sys_max_cmd_len
 
10627
 
 
10628
# Does compiler simultaneously support -c and -o options?
 
10629
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
10630
 
 
10631
# Must we lock files when doing compilation?
 
10632
need_locks=$lt_need_locks
 
10633
 
 
10634
# Do we need the lib prefix for modules?
 
10635
need_lib_prefix=$need_lib_prefix
 
10636
 
 
10637
# Do we need a version for libraries?
 
10638
need_version=$need_version
 
10639
 
 
10640
# Whether dlopen is supported.
 
10641
dlopen_support=$enable_dlopen
 
10642
 
 
10643
# Whether dlopen of programs is supported.
 
10644
dlopen_self=$enable_dlopen_self
 
10645
 
 
10646
# Whether dlopen of statically linked programs is supported.
 
10647
dlopen_self_static=$enable_dlopen_self_static
 
10648
 
 
10649
# Compiler flag to prevent dynamic linking.
 
10650
link_static_flag=$lt_lt_prog_compiler_static
 
10651
 
 
10652
# Compiler flag to turn off builtin functions.
 
10653
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
10654
 
 
10655
# Compiler flag to allow reflexive dlopens.
 
10656
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
10657
 
 
10658
# Compiler flag to generate shared objects directly from archives.
 
10659
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
10660
 
 
10661
# Compiler flag to generate thread-safe objects.
 
10662
thread_safe_flag_spec=$lt_thread_safe_flag_spec
 
10663
 
 
10664
# Library versioning type.
 
10665
version_type=$version_type
 
10666
 
 
10667
# Format of library name prefix.
 
10668
libname_spec=$lt_libname_spec
 
10669
 
 
10670
# List of archive names.  First name is the real one, the rest are links.
 
10671
# The last name is the one that the linker finds with -lNAME.
 
10672
library_names_spec=$lt_library_names_spec
 
10673
 
 
10674
# The coded name of the library, if different from the real name.
 
10675
soname_spec=$lt_soname_spec
 
10676
 
 
10677
# Commands used to build and install an old-style archive.
 
10678
RANLIB=$lt_RANLIB
 
10679
old_archive_cmds=$lt_old_archive_cmds
 
10680
old_postinstall_cmds=$lt_old_postinstall_cmds
 
10681
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
10682
 
 
10683
# Create an old-style archive from a shared archive.
 
10684
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
10685
 
 
10686
# Create a temporary old-style archive to link instead of a shared archive.
 
10687
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
10688
 
 
10689
# Commands used to build and install a shared archive.
 
10690
archive_cmds=$lt_archive_cmds
 
10691
archive_expsym_cmds=$lt_archive_expsym_cmds
 
10692
postinstall_cmds=$lt_postinstall_cmds
 
10693
postuninstall_cmds=$lt_postuninstall_cmds
 
10694
 
 
10695
# Commands used to build a loadable module (assumed same as above if empty)
 
10696
module_cmds=$lt_module_cmds
 
10697
module_expsym_cmds=$lt_module_expsym_cmds
 
10698
 
 
10699
# Commands to strip libraries.
 
10700
old_striplib=$lt_old_striplib
 
10701
striplib=$lt_striplib
 
10702
 
 
10703
# Dependencies to place before the objects being linked to create a
 
10704
# shared library.
 
10705
predep_objects=$lt_predep_objects
 
10706
 
 
10707
# Dependencies to place after the objects being linked to create a
 
10708
# shared library.
 
10709
postdep_objects=$lt_postdep_objects
 
10710
 
 
10711
# Dependencies to place before the objects being linked to create a
 
10712
# shared library.
 
10713
predeps=$lt_predeps
 
10714
 
 
10715
# Dependencies to place after the objects being linked to create a
 
10716
# shared library.
 
10717
postdeps=$lt_postdeps
 
10718
 
 
10719
# The directories searched by this compiler when creating a shared
 
10720
# library
 
10721
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
 
10722
 
 
10723
# The library search path used internally by the compiler when linking
 
10724
# a shared library.
 
10725
compiler_lib_search_path=$lt_compiler_lib_search_path
 
10726
 
 
10727
# Method to check whether dependent libraries are shared objects.
 
10728
deplibs_check_method=$lt_deplibs_check_method
 
10729
 
 
10730
# Command to use when deplibs_check_method == file_magic.
 
10731
file_magic_cmd=$lt_file_magic_cmd
 
10732
 
 
10733
# Flag that allows shared libraries with undefined symbols to be built.
 
10734
allow_undefined_flag=$lt_allow_undefined_flag
 
10735
 
 
10736
# Flag that forces no undefined symbols.
 
10737
no_undefined_flag=$lt_no_undefined_flag
 
10738
 
 
10739
# Commands used to finish a libtool library installation in a directory.
 
10740
finish_cmds=$lt_finish_cmds
 
10741
 
 
10742
# Same as above, but a single script fragment to be evaled but not shown.
 
10743
finish_eval=$lt_finish_eval
 
10744
 
 
10745
# Take the output of nm and produce a listing of raw symbols and C names.
 
10746
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
10747
 
 
10748
# Transform the output of nm in a proper C declaration
 
10749
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
10750
 
 
10751
# Transform the output of nm in a C name address pair
 
10752
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
10753
 
 
10754
# This is the shared library runtime path variable.
 
10755
runpath_var=$runpath_var
 
10756
 
 
10757
# This is the shared library path variable.
 
10758
shlibpath_var=$shlibpath_var
 
10759
 
 
10760
# Is shlibpath searched before the hard-coded library search path?
 
10761
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
10762
 
 
10763
# How to hardcode a shared library path into an executable.
 
10764
hardcode_action=$hardcode_action
 
10765
 
 
10766
# Whether we should hardcode library paths into libraries.
 
10767
hardcode_into_libs=$hardcode_into_libs
 
10768
 
 
10769
# Flag to hardcode \$libdir into a binary during linking.
 
10770
# This must work even if \$libdir does not exist.
 
10771
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
10772
 
 
10773
# If ld is used when linking, flag to hardcode \$libdir into
 
10774
# a binary during linking. This must work even if \$libdir does
 
10775
# not exist.
 
10776
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
10777
 
 
10778
# Whether we need a single -rpath flag with a separated argument.
 
10779
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
10780
 
 
10781
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
10782
# resulting binary.
 
10783
hardcode_direct=$hardcode_direct
 
10784
 
 
10785
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
10786
# resulting binary.
 
10787
hardcode_minus_L=$hardcode_minus_L
 
10788
 
 
10789
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
10790
# the resulting binary.
 
10791
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
10792
 
 
10793
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
10794
# and all subsequent libraries and executables linked against it.
 
10795
hardcode_automatic=$hardcode_automatic
 
10796
 
 
10797
# Variables whose values should be saved in libtool wrapper scripts and
 
10798
# restored at relink time.
 
10799
variables_saved_for_relink="$variables_saved_for_relink"
 
10800
 
 
10801
# Whether libtool must link a program against all its dependency libraries.
 
10802
link_all_deplibs=$link_all_deplibs
 
10803
 
 
10804
# Compile-time system search path for libraries
 
10805
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
10806
 
 
10807
# Run-time system search path for libraries
 
10808
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
10809
 
 
10810
# Fix the shell variable \$srcfile for the compiler.
 
10811
fix_srcfile_path=$lt_fix_srcfile_path
 
10812
 
 
10813
# Set to yes if exported symbols are required.
 
10814
always_export_symbols=$always_export_symbols
 
10815
 
 
10816
# The commands to list exported symbols.
 
10817
export_symbols_cmds=$lt_export_symbols_cmds
 
10818
 
 
10819
# The commands to extract the exported symbol list from a shared archive.
 
10820
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
10821
 
 
10822
# Symbols that should not be listed in the preloaded symbols.
 
10823
exclude_expsyms=$lt_exclude_expsyms
 
10824
 
 
10825
# Symbols that must always be exported.
 
10826
include_expsyms=$lt_include_expsyms
 
10827
 
 
10828
# ### END LIBTOOL CONFIG
 
10829
 
 
10830
__EOF__
 
10831
 
 
10832
 
 
10833
  case $host_os in
 
10834
  aix3*)
 
10835
    cat <<\EOF >> "$cfgfile"
 
10836
 
 
10837
# AIX sometimes has problems with the GCC collect2 program.  For some
 
10838
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
10839
# vanish in a puff of smoke.
 
10840
if test "X${COLLECT_NAMES+set}" != Xset; then
 
10841
  COLLECT_NAMES=
 
10842
  export COLLECT_NAMES
 
10843
fi
 
10844
EOF
 
10845
    ;;
 
10846
  esac
 
10847
 
 
10848
  # We use sed instead of cat because bash on DJGPP gets confused if
 
10849
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
10850
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
10851
  # is reportedly fixed, but why not run on old versions too?
 
10852
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 
10853
 
 
10854
  mv -f "$cfgfile" "$ofile" || \
 
10855
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
10856
  chmod +x "$ofile"
 
10857
 
 
10858
else
 
10859
  # If there is no Makefile yet, we rely on a make rule to execute
 
10860
  # `config.status --recheck' to rerun these tests and create the
 
10861
  # libtool script then.
 
10862
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
10863
  if test -f "$ltmain_in"; then
 
10864
    test -f Makefile && make "$ltmain"
 
10865
  fi
 
10866
fi
 
10867
 
 
10868
 
 
10869
ac_ext=c
 
10870
ac_cpp='$CPP $CPPFLAGS'
 
10871
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
10872
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
10873
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
10874
 
 
10875
CC="$lt_save_CC"
 
10876
 
 
10877
 
 
10878
# Check whether --with-tags was given.
 
10879
if test "${with_tags+set}" = set; then
 
10880
  withval=$with_tags; tagnames="$withval"
 
10881
fi
 
10882
 
 
10883
 
 
10884
if test -f "$ltmain" && test -n "$tagnames"; then
 
10885
  if test ! -f "${ofile}"; then
 
10886
    { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
 
10887
$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
 
10888
  fi
 
10889
 
 
10890
  if test -z "$LTCC"; then
 
10891
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
10892
    if test -z "$LTCC"; then
 
10893
      { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
 
10894
$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
 
10895
    else
 
10896
      { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
 
10897
$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
 
10898
    fi
 
10899
  fi
 
10900
  if test -z "$LTCFLAGS"; then
 
10901
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
 
10902
  fi
 
10903
 
 
10904
  # Extract list of available tagged configurations in $ofile.
 
10905
  # Note that this assumes the entire list is on one line.
 
10906
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
10907
 
 
10908
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
10909
  for tagname in $tagnames; do
 
10910
    IFS="$lt_save_ifs"
 
10911
    # Check whether tagname contains only valid characters
 
10912
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
 
10913
    "") ;;
 
10914
    *)  { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
 
10915
$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
 
10916
   { (exit 1); exit 1; }; }
 
10917
        ;;
 
10918
    esac
 
10919
 
 
10920
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
10921
    then
 
10922
      { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
 
10923
$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
 
10924
   { (exit 1); exit 1; }; }
 
10925
    fi
 
10926
 
 
10927
    # Update the list of available tags.
 
10928
    if test -n "$tagname"; then
 
10929
      echo appending configuration tag \"$tagname\" to $ofile
 
10930
 
 
10931
      case $tagname in
 
10932
      CXX)
 
10933
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
10934
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
10935
            (test "X$CXX" != "Xg++"))) ; then
 
10936
          ac_ext=cpp
 
10937
ac_cpp='$CXXCPP $CPPFLAGS'
 
10938
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
10939
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
10940
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
10941
 
 
10942
 
 
10943
 
 
10944
 
 
10945
archive_cmds_need_lc_CXX=no
 
10946
allow_undefined_flag_CXX=
 
10947
always_export_symbols_CXX=no
 
10948
archive_expsym_cmds_CXX=
 
10949
export_dynamic_flag_spec_CXX=
 
10950
hardcode_direct_CXX=no
 
10951
hardcode_libdir_flag_spec_CXX=
 
10952
hardcode_libdir_flag_spec_ld_CXX=
 
10953
hardcode_libdir_separator_CXX=
 
10954
hardcode_minus_L_CXX=no
 
10955
hardcode_shlibpath_var_CXX=unsupported
 
10956
hardcode_automatic_CXX=no
 
10957
module_cmds_CXX=
 
10958
module_expsym_cmds_CXX=
 
10959
link_all_deplibs_CXX=unknown
 
10960
old_archive_cmds_CXX=$old_archive_cmds
 
10961
no_undefined_flag_CXX=
 
10962
whole_archive_flag_spec_CXX=
 
10963
enable_shared_with_static_runtimes_CXX=no
 
10964
 
 
10965
# Dependencies to place before and after the object being linked:
 
10966
predep_objects_CXX=
 
10967
postdep_objects_CXX=
 
10968
predeps_CXX=
 
10969
postdeps_CXX=
 
10970
compiler_lib_search_path_CXX=
 
10971
compiler_lib_search_dirs_CXX=
 
10972
 
 
10973
# Source file extension for C++ test sources.
 
10974
ac_ext=cpp
 
10975
 
 
10976
# Object file extension for compiled C++ test sources.
 
10977
objext=o
 
10978
objext_CXX=$objext
 
10979
 
 
10980
# Code to be used in simple compile tests
 
10981
lt_simple_compile_test_code="int some_variable = 0;"
 
10982
 
 
10983
# Code to be used in simple link tests
 
10984
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
 
10985
 
 
10986
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
10987
 
 
10988
# If no C compiler was specified, use CC.
 
10989
LTCC=${LTCC-"$CC"}
 
10990
 
 
10991
# If no C compiler flags were specified, use CFLAGS.
 
10992
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
10993
 
 
10994
# Allow CC to be a program name with arguments.
 
10995
compiler=$CC
 
10996
 
 
10997
 
 
10998
# save warnings/boilerplate of simple test code
 
10999
ac_outfile=conftest.$ac_objext
 
11000
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
11001
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
11002
_lt_compiler_boilerplate=`cat conftest.err`
 
11003
$rm conftest*
 
11004
 
 
11005
ac_outfile=conftest.$ac_objext
 
11006
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
11007
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
11008
_lt_linker_boilerplate=`cat conftest.err`
 
11009
$rm -r conftest*
 
11010
 
 
11011
 
 
11012
# Allow CC to be a program name with arguments.
 
11013
lt_save_CC=$CC
 
11014
lt_save_LD=$LD
 
11015
lt_save_GCC=$GCC
 
11016
GCC=$GXX
 
11017
lt_save_with_gnu_ld=$with_gnu_ld
 
11018
lt_save_path_LD=$lt_cv_path_LD
 
11019
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
11020
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
11021
else
 
11022
  $as_unset lt_cv_prog_gnu_ld
 
11023
fi
 
11024
if test -n "${lt_cv_path_LDCXX+set}"; then
 
11025
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
11026
else
 
11027
  $as_unset lt_cv_path_LD
 
11028
fi
 
11029
test -z "${LDCXX+set}" || LD=$LDCXX
 
11030
CC=${CXX-"c++"}
 
11031
compiler=$CC
 
11032
compiler_CXX=$CC
 
11033
for cc_temp in $compiler""; do
 
11034
  case $cc_temp in
 
11035
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
11036
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
11037
    \-*) ;;
 
11038
    *) break;;
 
11039
  esac
 
11040
done
 
11041
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
11042
 
 
11043
 
 
11044
# We don't want -fno-exception wen compiling C++ code, so set the
 
11045
# no_builtin_flag separately
 
11046
if test "$GXX" = yes; then
 
11047
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
11048
else
 
11049
  lt_prog_compiler_no_builtin_flag_CXX=
 
11050
fi
 
11051
 
 
11052
if test "$GXX" = yes; then
 
11053
  # Set up default GNU C++ configuration
 
11054
 
 
11055
 
 
11056
# Check whether --with-gnu-ld was given.
 
11057
if test "${with_gnu_ld+set}" = set; then
 
11058
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
11059
else
 
11060
  with_gnu_ld=no
 
11061
fi
 
11062
 
 
11063
ac_prog=ld
 
11064
if test "$GCC" = yes; then
 
11065
  # Check if gcc -print-prog-name=ld gives a path.
 
11066
  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
11067
$as_echo_n "checking for ld used by $CC... " >&6; }
 
11068
  case $host in
 
11069
  *-*-mingw*)
 
11070
    # gcc leaves a trailing carriage return which upsets mingw
 
11071
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
11072
  *)
 
11073
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
11074
  esac
 
11075
  case $ac_prog in
 
11076
    # Accept absolute paths.
 
11077
    [\\/]* | ?:[\\/]*)
 
11078
      re_direlt='/[^/][^/]*/\.\./'
 
11079
      # Canonicalize the pathname of ld
 
11080
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
11081
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
11082
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
11083
      done
 
11084
      test -z "$LD" && LD="$ac_prog"
 
11085
      ;;
 
11086
  "")
 
11087
    # If it fails, then pretend we aren't using GCC.
 
11088
    ac_prog=ld
 
11089
    ;;
 
11090
  *)
 
11091
    # If it is relative, then search for the first ld in PATH.
 
11092
    with_gnu_ld=unknown
 
11093
    ;;
 
11094
  esac
 
11095
elif test "$with_gnu_ld" = yes; then
 
11096
  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
 
11097
$as_echo_n "checking for GNU ld... " >&6; }
 
11098
else
 
11099
  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
11100
$as_echo_n "checking for non-GNU ld... " >&6; }
 
11101
fi
 
11102
if test "${lt_cv_path_LD+set}" = set; then
 
11103
  $as_echo_n "(cached) " >&6
 
11104
else
 
11105
  if test -z "$LD"; then
 
11106
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
11107
  for ac_dir in $PATH; do
 
11108
    IFS="$lt_save_ifs"
 
11109
    test -z "$ac_dir" && ac_dir=.
 
11110
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
11111
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
11112
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
11113
      # but apparently some variants of GNU ld only accept -v.
 
11114
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
11115
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
11116
      *GNU* | *'with BFD'*)
 
11117
        test "$with_gnu_ld" != no && break
 
11118
        ;;
 
11119
      *)
 
11120
        test "$with_gnu_ld" != yes && break
 
11121
        ;;
 
11122
      esac
 
11123
    fi
 
11124
  done
 
11125
  IFS="$lt_save_ifs"
 
11126
else
 
11127
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
11128
fi
 
11129
fi
 
11130
 
 
11131
LD="$lt_cv_path_LD"
 
11132
if test -n "$LD"; then
 
11133
  { $as_echo "$as_me:$LINENO: result: $LD" >&5
 
11134
$as_echo "$LD" >&6; }
 
11135
else
 
11136
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
11137
$as_echo "no" >&6; }
 
11138
fi
 
11139
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
11140
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
11141
   { (exit 1); exit 1; }; }
 
11142
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
11143
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
11144
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
11145
  $as_echo_n "(cached) " >&6
 
11146
else
 
11147
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
11148
case `$LD -v 2>&1 </dev/null` in
 
11149
*GNU* | *'with BFD'*)
 
11150
  lt_cv_prog_gnu_ld=yes
 
11151
  ;;
 
11152
*)
 
11153
  lt_cv_prog_gnu_ld=no
 
11154
  ;;
 
11155
esac
 
11156
fi
 
11157
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
11158
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
 
11159
with_gnu_ld=$lt_cv_prog_gnu_ld
 
11160
 
 
11161
 
 
11162
 
 
11163
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
11164
  # archiving commands below assume that GNU ld is being used.
 
11165
  if test "$with_gnu_ld" = yes; then
 
11166
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11167
    archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
11168
 
 
11169
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
11170
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11171
 
 
11172
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
11173
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
11174
    #     investigate it a little bit more. (MM)
 
11175
    wlarc='${wl}'
 
11176
 
 
11177
    # ancient GNU ld didn't support --whole-archive et. al.
 
11178
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
11179
        grep 'no-whole-archive' > /dev/null; then
 
11180
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
11181
    else
 
11182
      whole_archive_flag_spec_CXX=
 
11183
    fi
 
11184
  else
 
11185
    with_gnu_ld=no
 
11186
    wlarc=
 
11187
 
 
11188
    # A generic and very simple default shared library creation
 
11189
    # command for GNU C++ for the case where it uses the native
 
11190
    # linker, instead of GNU ld.  If possible, this setting should
 
11191
    # overridden to take advantage of the native linker features on
 
11192
    # the platform it is being used on.
 
11193
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
11194
  fi
 
11195
 
 
11196
  # Commands to make compiler produce verbose output that lists
 
11197
  # what "hidden" libraries, object files and flags are used when
 
11198
  # linking a shared library.
 
11199
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
11200
 
 
11201
else
 
11202
  GXX=no
 
11203
  with_gnu_ld=no
 
11204
  wlarc=
 
11205
fi
 
11206
 
 
11207
# PORTME: fill in a description of your system's C++ link characteristics
 
11208
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
11209
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
11210
ld_shlibs_CXX=yes
 
11211
case $host_os in
 
11212
  aix3*)
 
11213
    # FIXME: insert proper C++ library support
 
11214
    ld_shlibs_CXX=no
 
11215
    ;;
 
11216
  aix[4-9]*)
 
11217
    if test "$host_cpu" = ia64; then
 
11218
      # On IA64, the linker does run time linking by default, so we don't
 
11219
      # have to do anything special.
 
11220
      aix_use_runtimelinking=no
 
11221
      exp_sym_flag='-Bexport'
 
11222
      no_entry_flag=""
 
11223
    else
 
11224
      aix_use_runtimelinking=no
 
11225
 
 
11226
      # Test if we are trying to use run time linking or normal
 
11227
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
11228
      # need to do runtime linking.
 
11229
      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
11230
        for ld_flag in $LDFLAGS; do
 
11231
          case $ld_flag in
 
11232
          *-brtl*)
 
11233
            aix_use_runtimelinking=yes
 
11234
            break
 
11235
            ;;
 
11236
          esac
 
11237
        done
 
11238
        ;;
 
11239
      esac
 
11240
 
 
11241
      exp_sym_flag='-bexport'
 
11242
      no_entry_flag='-bnoentry'
 
11243
    fi
 
11244
 
 
11245
    # When large executables or shared objects are built, AIX ld can
 
11246
    # have problems creating the table of contents.  If linking a library
 
11247
    # or program results in "error TOC overflow" add -mminimal-toc to
 
11248
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
11249
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
11250
 
 
11251
    archive_cmds_CXX=''
 
11252
    hardcode_direct_CXX=yes
 
11253
    hardcode_libdir_separator_CXX=':'
 
11254
    link_all_deplibs_CXX=yes
 
11255
 
 
11256
    if test "$GXX" = yes; then
 
11257
      case $host_os in aix4.[012]|aix4.[012].*)
 
11258
      # We only want to do this on AIX 4.2 and lower, the check
 
11259
      # below for broken collect2 doesn't work under 4.3+
 
11260
        collect2name=`${CC} -print-prog-name=collect2`
 
11261
        if test -f "$collect2name" && \
 
11262
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
11263
        then
 
11264
          # We have reworked collect2
 
11265
          :
 
11266
        else
 
11267
          # We have old collect2
 
11268
          hardcode_direct_CXX=unsupported
 
11269
          # It fails to find uninstalled libraries when the uninstalled
 
11270
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
11271
          # to unsupported forces relinking
 
11272
          hardcode_minus_L_CXX=yes
 
11273
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
11274
          hardcode_libdir_separator_CXX=
 
11275
        fi
 
11276
        ;;
 
11277
      esac
 
11278
      shared_flag='-shared'
 
11279
      if test "$aix_use_runtimelinking" = yes; then
 
11280
        shared_flag="$shared_flag "'${wl}-G'
 
11281
      fi
 
11282
    else
 
11283
      # not using gcc
 
11284
      if test "$host_cpu" = ia64; then
 
11285
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
11286
        # chokes on -Wl,-G. The following line is correct:
 
11287
        shared_flag='-G'
 
11288
      else
 
11289
        if test "$aix_use_runtimelinking" = yes; then
 
11290
          shared_flag='${wl}-G'
 
11291
        else
 
11292
          shared_flag='${wl}-bM:SRE'
 
11293
        fi
 
11294
      fi
 
11295
    fi
 
11296
 
 
11297
    # It seems that -bexpall does not export symbols beginning with
 
11298
    # underscore (_), so it is better to generate a list of symbols to export.
 
11299
    always_export_symbols_CXX=yes
 
11300
    if test "$aix_use_runtimelinking" = yes; then
 
11301
      # Warning - without using the other runtime loading flags (-brtl),
 
11302
      # -berok will link without error, but may produce a broken library.
 
11303
      allow_undefined_flag_CXX='-berok'
 
11304
      # Determine the default libpath from the value encoded in an empty executable.
 
11305
      cat >conftest.$ac_ext <<_ACEOF
 
11306
/* confdefs.h.  */
 
11307
_ACEOF
 
11308
cat confdefs.h >>conftest.$ac_ext
 
11309
cat >>conftest.$ac_ext <<_ACEOF
 
11310
/* end confdefs.h.  */
 
11311
 
 
11312
int
 
11313
main ()
 
11314
{
 
11315
 
 
11316
  ;
 
11317
  return 0;
 
11318
}
 
11319
_ACEOF
 
11320
rm -f conftest.$ac_objext conftest$ac_exeext
 
11321
if { (ac_try="$ac_link"
 
11322
case "(($ac_try" in
 
11323
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11324
  *) ac_try_echo=$ac_try;;
 
11325
esac
 
11326
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
11327
$as_echo "$ac_try_echo") >&5
 
11328
  (eval "$ac_link") 2>conftest.er1
 
11329
  ac_status=$?
 
11330
  grep -v '^ *+' conftest.er1 >conftest.err
 
11331
  rm -f conftest.er1
 
11332
  cat conftest.err >&5
 
11333
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11334
  (exit $ac_status); } && {
 
11335
         test -z "$ac_cxx_werror_flag" ||
 
11336
         test ! -s conftest.err
 
11337
       } && test -s conftest$ac_exeext && {
 
11338
         test "$cross_compiling" = yes ||
 
11339
         $as_test_x conftest$ac_exeext
 
11340
       }; then
 
11341
 
 
11342
lt_aix_libpath_sed='
 
11343
    /Import File Strings/,/^$/ {
 
11344
        /^0/ {
 
11345
            s/^0  *\(.*\)$/\1/
 
11346
            p
 
11347
        }
 
11348
    }'
 
11349
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11350
# Check for a 64-bit object if we didn't find anything.
 
11351
if test -z "$aix_libpath"; then
 
11352
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11353
fi
 
11354
else
 
11355
  $as_echo "$as_me: failed program was:" >&5
 
11356
sed 's/^/| /' conftest.$ac_ext >&5
 
11357
 
 
11358
 
 
11359
fi
 
11360
 
 
11361
rm -rf conftest.dSYM
 
11362
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11363
      conftest$ac_exeext conftest.$ac_ext
 
11364
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
11365
 
 
11366
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
11367
 
 
11368
      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"
 
11369
     else
 
11370
      if test "$host_cpu" = ia64; then
 
11371
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
11372
        allow_undefined_flag_CXX="-z nodefs"
 
11373
        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"
 
11374
      else
 
11375
        # Determine the default libpath from the value encoded in an empty executable.
 
11376
        cat >conftest.$ac_ext <<_ACEOF
 
11377
/* confdefs.h.  */
 
11378
_ACEOF
 
11379
cat confdefs.h >>conftest.$ac_ext
 
11380
cat >>conftest.$ac_ext <<_ACEOF
 
11381
/* end confdefs.h.  */
 
11382
 
 
11383
int
 
11384
main ()
 
11385
{
 
11386
 
 
11387
  ;
 
11388
  return 0;
 
11389
}
 
11390
_ACEOF
 
11391
rm -f conftest.$ac_objext conftest$ac_exeext
 
11392
if { (ac_try="$ac_link"
 
11393
case "(($ac_try" in
 
11394
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11395
  *) ac_try_echo=$ac_try;;
 
11396
esac
 
11397
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
11398
$as_echo "$ac_try_echo") >&5
 
11399
  (eval "$ac_link") 2>conftest.er1
 
11400
  ac_status=$?
 
11401
  grep -v '^ *+' conftest.er1 >conftest.err
 
11402
  rm -f conftest.er1
 
11403
  cat conftest.err >&5
 
11404
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11405
  (exit $ac_status); } && {
 
11406
         test -z "$ac_cxx_werror_flag" ||
 
11407
         test ! -s conftest.err
 
11408
       } && test -s conftest$ac_exeext && {
 
11409
         test "$cross_compiling" = yes ||
 
11410
         $as_test_x conftest$ac_exeext
 
11411
       }; then
 
11412
 
 
11413
lt_aix_libpath_sed='
 
11414
    /Import File Strings/,/^$/ {
 
11415
        /^0/ {
 
11416
            s/^0  *\(.*\)$/\1/
 
11417
            p
 
11418
        }
 
11419
    }'
 
11420
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11421
# Check for a 64-bit object if we didn't find anything.
 
11422
if test -z "$aix_libpath"; then
 
11423
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11424
fi
 
11425
else
 
11426
  $as_echo "$as_me: failed program was:" >&5
 
11427
sed 's/^/| /' conftest.$ac_ext >&5
 
11428
 
 
11429
 
 
11430
fi
 
11431
 
 
11432
rm -rf conftest.dSYM
 
11433
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11434
      conftest$ac_exeext conftest.$ac_ext
 
11435
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
11436
 
 
11437
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
11438
        # Warning - without using the other run time loading flags,
 
11439
        # -berok will link without error, but may produce a broken library.
 
11440
        no_undefined_flag_CXX=' ${wl}-bernotok'
 
11441
        allow_undefined_flag_CXX=' ${wl}-berok'
 
11442
        # Exported symbols can be pulled into shared objects from archives
 
11443
        whole_archive_flag_spec_CXX='$convenience'
 
11444
        archive_cmds_need_lc_CXX=yes
 
11445
        # This is similar to how AIX traditionally builds its shared libraries.
 
11446
        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'
 
11447
      fi
 
11448
    fi
 
11449
    ;;
 
11450
 
 
11451
  beos*)
 
11452
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
11453
      allow_undefined_flag_CXX=unsupported
 
11454
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
11455
      # support --undefined.  This deserves some investigation.  FIXME
 
11456
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11457
    else
 
11458
      ld_shlibs_CXX=no
 
11459
    fi
 
11460
    ;;
 
11461
 
 
11462
  chorus*)
 
11463
    case $cc_basename in
 
11464
      *)
 
11465
        # FIXME: insert proper C++ library support
 
11466
        ld_shlibs_CXX=no
 
11467
        ;;
 
11468
    esac
 
11469
    ;;
 
11470
 
 
11471
  cygwin* | mingw* | pw32*)
 
11472
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
11473
    # as there is no search path for DLLs.
 
11474
    hardcode_libdir_flag_spec_CXX='-L$libdir'
 
11475
    allow_undefined_flag_CXX=unsupported
 
11476
    always_export_symbols_CXX=no
 
11477
    enable_shared_with_static_runtimes_CXX=yes
 
11478
 
 
11479
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
11480
      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'
 
11481
      # If the export-symbols file already is a .def file (1st line
 
11482
      # is EXPORTS), use it as is; otherwise, prepend...
 
11483
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
11484
        cp $export_symbols $output_objdir/$soname.def;
 
11485
      else
 
11486
        echo EXPORTS > $output_objdir/$soname.def;
 
11487
        cat $export_symbols >> $output_objdir/$soname.def;
 
11488
      fi~
 
11489
      $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'
 
11490
    else
 
11491
      ld_shlibs_CXX=no
 
11492
    fi
 
11493
  ;;
 
11494
      darwin* | rhapsody*)
 
11495
      archive_cmds_need_lc_CXX=no
 
11496
      hardcode_direct_CXX=no
 
11497
      hardcode_automatic_CXX=yes
 
11498
      hardcode_shlibpath_var_CXX=unsupported
 
11499
      whole_archive_flag_spec_CXX=''
 
11500
      link_all_deplibs_CXX=yes
 
11501
      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
 
11502
      if test "$GXX" = yes ; then
 
11503
      output_verbose_link_cmd='echo'
 
11504
      archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
11505
      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
11506
      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
11507
      module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
 
11508
      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
11509
        archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
 
11510
        archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
 
11511
      fi
 
11512
      else
 
11513
      case $cc_basename in
 
11514
        xlc*)
 
11515
         output_verbose_link_cmd='echo'
 
11516
          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
11517
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
11518
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
11519
          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
11520
          module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
11521
          ;;
 
11522
       *)
 
11523
         ld_shlibs_CXX=no
 
11524
          ;;
 
11525
      esac
 
11526
      fi
 
11527
        ;;
 
11528
 
 
11529
  dgux*)
 
11530
    case $cc_basename in
 
11531
      ec++*)
 
11532
        # FIXME: insert proper C++ library support
 
11533
        ld_shlibs_CXX=no
 
11534
        ;;
 
11535
      ghcx*)
 
11536
        # Green Hills C++ Compiler
 
11537
        # FIXME: insert proper C++ library support
 
11538
        ld_shlibs_CXX=no
 
11539
        ;;
 
11540
      *)
 
11541
        # FIXME: insert proper C++ library support
 
11542
        ld_shlibs_CXX=no
 
11543
        ;;
 
11544
    esac
 
11545
    ;;
 
11546
  freebsd[12]*)
 
11547
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
11548
    ld_shlibs_CXX=no
 
11549
    ;;
 
11550
  freebsd-elf*)
 
11551
    archive_cmds_need_lc_CXX=no
 
11552
    ;;
 
11553
  freebsd* | dragonfly*)
 
11554
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
11555
    # conventions
 
11556
    ld_shlibs_CXX=yes
 
11557
    ;;
 
11558
  gnu*)
 
11559
    ;;
 
11560
  hpux9*)
 
11561
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
11562
    hardcode_libdir_separator_CXX=:
 
11563
    export_dynamic_flag_spec_CXX='${wl}-E'
 
11564
    hardcode_direct_CXX=yes
 
11565
    hardcode_minus_L_CXX=yes # Not in the search PATH,
 
11566
                                # but as the default
 
11567
                                # location of the library.
 
11568
 
 
11569
    case $cc_basename in
 
11570
    CC*)
 
11571
      # FIXME: insert proper C++ library support
 
11572
      ld_shlibs_CXX=no
 
11573
      ;;
 
11574
    aCC*)
 
11575
      archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
11576
      # Commands to make compiler produce verbose output that lists
 
11577
      # what "hidden" libraries, object files and flags are used when
 
11578
      # linking a shared library.
 
11579
      #
 
11580
      # There doesn't appear to be a way to prevent this compiler from
 
11581
      # explicitly linking system object files so we need to strip them
 
11582
      # from the output so that they don't get included in the library
 
11583
      # dependencies.
 
11584
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
11585
      ;;
 
11586
    *)
 
11587
      if test "$GXX" = yes; then
 
11588
        archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
11589
      else
 
11590
        # FIXME: insert proper C++ library support
 
11591
        ld_shlibs_CXX=no
 
11592
      fi
 
11593
      ;;
 
11594
    esac
 
11595
    ;;
 
11596
  hpux10*|hpux11*)
 
11597
    if test $with_gnu_ld = no; then
 
11598
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
11599
      hardcode_libdir_separator_CXX=:
 
11600
 
 
11601
      case $host_cpu in
 
11602
      hppa*64*|ia64*) ;;
 
11603
      *)
 
11604
        export_dynamic_flag_spec_CXX='${wl}-E'
 
11605
        ;;
 
11606
      esac
 
11607
    fi
 
11608
    case $host_cpu in
 
11609
    hppa*64*|ia64*)
 
11610
      hardcode_direct_CXX=no
 
11611
      hardcode_shlibpath_var_CXX=no
 
11612
      ;;
 
11613
    *)
 
11614
      hardcode_direct_CXX=yes
 
11615
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
11616
                                              # but as the default
 
11617
                                              # location of the library.
 
11618
      ;;
 
11619
    esac
 
11620
 
 
11621
    case $cc_basename in
 
11622
      CC*)
 
11623
        # FIXME: insert proper C++ library support
 
11624
        ld_shlibs_CXX=no
 
11625
        ;;
 
11626
      aCC*)
 
11627
        case $host_cpu in
 
11628
        hppa*64*)
 
11629
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11630
          ;;
 
11631
        ia64*)
 
11632
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11633
          ;;
 
11634
        *)
 
11635
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11636
          ;;
 
11637
        esac
 
11638
        # Commands to make compiler produce verbose output that lists
 
11639
        # what "hidden" libraries, object files and flags are used when
 
11640
        # linking a shared library.
 
11641
        #
 
11642
        # There doesn't appear to be a way to prevent this compiler from
 
11643
        # explicitly linking system object files so we need to strip them
 
11644
        # from the output so that they don't get included in the library
 
11645
        # dependencies.
 
11646
        output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
11647
        ;;
 
11648
      *)
 
11649
        if test "$GXX" = yes; then
 
11650
          if test $with_gnu_ld = no; then
 
11651
            case $host_cpu in
 
11652
            hppa*64*)
 
11653
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11654
              ;;
 
11655
            ia64*)
 
11656
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11657
              ;;
 
11658
            *)
 
11659
              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'
 
11660
              ;;
 
11661
            esac
 
11662
          fi
 
11663
        else
 
11664
          # FIXME: insert proper C++ library support
 
11665
          ld_shlibs_CXX=no
 
11666
        fi
 
11667
        ;;
 
11668
    esac
 
11669
    ;;
 
11670
  interix[3-9]*)
 
11671
    hardcode_direct_CXX=no
 
11672
    hardcode_shlibpath_var_CXX=no
 
11673
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11674
    export_dynamic_flag_spec_CXX='${wl}-E'
 
11675
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
11676
    # Instead, shared libraries are loaded at an image base (0x10000000 by
 
11677
    # default) and relocated if they conflict, which is a slow very memory
 
11678
    # consuming and fragmenting process.  To avoid this, we pick a random,
 
11679
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
11680
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
11681
    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'
 
11682
    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'
 
11683
    ;;
 
11684
  irix5* | irix6*)
 
11685
    case $cc_basename in
 
11686
      CC*)
 
11687
        # SGI C++
 
11688
        archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
11689
 
 
11690
        # Archives containing C++ object files must be created using
 
11691
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
11692
        # necessary to make sure instantiated templates are included
 
11693
        # in the archive.
 
11694
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
11695
        ;;
 
11696
      *)
 
11697
        if test "$GXX" = yes; then
 
11698
          if test "$with_gnu_ld" = no; then
 
11699
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
11700
          else
 
11701
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
 
11702
          fi
 
11703
        fi
 
11704
        link_all_deplibs_CXX=yes
 
11705
        ;;
 
11706
    esac
 
11707
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11708
    hardcode_libdir_separator_CXX=:
 
11709
    ;;
 
11710
  linux* | k*bsd*-gnu)
 
11711
    case $cc_basename in
 
11712
      KCC*)
 
11713
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
11714
 
 
11715
        # KCC will only create a shared library if the output file
 
11716
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
11717
        # to its proper name (with version) after linking.
 
11718
        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 
11719
        archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
 
11720
        # Commands to make compiler produce verbose output that lists
 
11721
        # what "hidden" libraries, object files and flags are used when
 
11722
        # linking a shared library.
 
11723
        #
 
11724
        # There doesn't appear to be a way to prevent this compiler from
 
11725
        # explicitly linking system object files so we need to strip them
 
11726
        # from the output so that they don't get included in the library
 
11727
        # dependencies.
 
11728
        output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
11729
 
 
11730
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
 
11731
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11732
 
 
11733
        # Archives containing C++ object files must be created using
 
11734
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
11735
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
11736
        ;;
 
11737
      icpc*)
 
11738
        # Intel C++
 
11739
        with_gnu_ld=yes
 
11740
        # version 8.0 and above of icpc choke on multiply defined symbols
 
11741
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
11742
        # earlier do not add the objects themselves.
 
11743
        case `$CC -V 2>&1` in
 
11744
        *"Version 7."*)
 
11745
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11746
          archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
11747
          ;;
 
11748
        *)  # Version 8.0 or newer
 
11749
          tmp_idyn=
 
11750
          case $host_cpu in
 
11751
            ia64*) tmp_idyn=' -i_dynamic';;
 
11752
          esac
 
11753
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11754
          archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
11755
          ;;
 
11756
        esac
 
11757
        archive_cmds_need_lc_CXX=no
 
11758
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11759
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11760
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
11761
        ;;
 
11762
      pgCC* | pgcpp*)
 
11763
        # Portland Group C++ compiler
 
11764
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
11765
        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
 
11766
 
 
11767
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
11768
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11769
        whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
11770
        ;;
 
11771
      cxx*)
 
11772
        # Compaq C++
 
11773
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11774
        archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
 
11775
 
 
11776
        runpath_var=LD_RUN_PATH
 
11777
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
11778
        hardcode_libdir_separator_CXX=:
 
11779
 
 
11780
        # Commands to make compiler produce verbose output that lists
 
11781
        # what "hidden" libraries, object files and flags are used when
 
11782
        # linking a shared library.
 
11783
        #
 
11784
        # There doesn't appear to be a way to prevent this compiler from
 
11785
        # explicitly linking system object files so we need to strip them
 
11786
        # from the output so that they don't get included in the library
 
11787
        # dependencies.
 
11788
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
11789
        ;;
 
11790
      *)
 
11791
        case `$CC -V 2>&1 | sed 5q` in
 
11792
        *Sun\ C*)
 
11793
          # Sun C++ 5.9
 
11794
          no_undefined_flag_CXX=' -zdefs'
 
11795
          archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11796
          archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
 
11797
          hardcode_libdir_flag_spec_CXX='-R$libdir'
 
11798
          whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
11799
 
 
11800
          # Not sure whether something based on
 
11801
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
11802
          # would be better.
 
11803
          output_verbose_link_cmd='echo'
 
11804
 
 
11805
          # Archives containing C++ object files must be created using
 
11806
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
11807
          # necessary to make sure instantiated templates are included
 
11808
          # in the archive.
 
11809
          old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
11810
          ;;
 
11811
        esac
 
11812
        ;;
 
11813
    esac
 
11814
    ;;
 
11815
  lynxos*)
 
11816
    # FIXME: insert proper C++ library support
 
11817
    ld_shlibs_CXX=no
 
11818
    ;;
 
11819
  m88k*)
 
11820
    # FIXME: insert proper C++ library support
 
11821
    ld_shlibs_CXX=no
 
11822
    ;;
 
11823
  mvs*)
 
11824
    case $cc_basename in
 
11825
      cxx*)
 
11826
        # FIXME: insert proper C++ library support
 
11827
        ld_shlibs_CXX=no
 
11828
        ;;
 
11829
      *)
 
11830
        # FIXME: insert proper C++ library support
 
11831
        ld_shlibs_CXX=no
 
11832
        ;;
 
11833
    esac
 
11834
    ;;
 
11835
  netbsd*)
 
11836
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
11837
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
11838
      wlarc=
 
11839
      hardcode_libdir_flag_spec_CXX='-R$libdir'
 
11840
      hardcode_direct_CXX=yes
 
11841
      hardcode_shlibpath_var_CXX=no
 
11842
    fi
 
11843
    # Workaround some broken pre-1.5 toolchains
 
11844
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
11845
    ;;
 
11846
  openbsd2*)
 
11847
    # C++ shared libraries are fairly broken
 
11848
    ld_shlibs_CXX=no
 
11849
    ;;
 
11850
  openbsd*)
 
11851
    if test -f /usr/libexec/ld.so; then
 
11852
      hardcode_direct_CXX=yes
 
11853
      hardcode_shlibpath_var_CXX=no
 
11854
      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
11855
      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11856
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
11857
        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
11858
        export_dynamic_flag_spec_CXX='${wl}-E'
 
11859
        whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
11860
      fi
 
11861
      output_verbose_link_cmd='echo'
 
11862
    else
 
11863
      ld_shlibs_CXX=no
 
11864
    fi
 
11865
    ;;
 
11866
  osf3*)
 
11867
    case $cc_basename in
 
11868
      KCC*)
 
11869
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
11870
 
 
11871
        # KCC will only create a shared library if the output file
 
11872
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
11873
        # to its proper name (with version) after linking.
 
11874
        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 
11875
 
 
11876
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11877
        hardcode_libdir_separator_CXX=:
 
11878
 
 
11879
        # Archives containing C++ object files must be created using
 
11880
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
11881
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
11882
 
 
11883
        ;;
 
11884
      RCC*)
 
11885
        # Rational C++ 2.4.1
 
11886
        # FIXME: insert proper C++ library support
 
11887
        ld_shlibs_CXX=no
 
11888
        ;;
 
11889
      cxx*)
 
11890
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
11891
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
11892
 
 
11893
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11894
        hardcode_libdir_separator_CXX=:
 
11895
 
 
11896
        # Commands to make compiler produce verbose output that lists
 
11897
        # what "hidden" libraries, object files and flags are used when
 
11898
        # linking a shared library.
 
11899
        #
 
11900
        # There doesn't appear to be a way to prevent this compiler from
 
11901
        # explicitly linking system object files so we need to strip them
 
11902
        # from the output so that they don't get included in the library
 
11903
        # dependencies.
 
11904
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
11905
        ;;
 
11906
      *)
 
11907
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
11908
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
11909
          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
11910
 
 
11911
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11912
          hardcode_libdir_separator_CXX=:
 
11913
 
 
11914
          # Commands to make compiler produce verbose output that lists
 
11915
          # what "hidden" libraries, object files and flags are used when
 
11916
          # linking a shared library.
 
11917
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
11918
 
 
11919
        else
 
11920
          # FIXME: insert proper C++ library support
 
11921
          ld_shlibs_CXX=no
 
11922
        fi
 
11923
        ;;
 
11924
    esac
 
11925
    ;;
 
11926
  osf4* | osf5*)
 
11927
    case $cc_basename in
 
11928
      KCC*)
 
11929
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
11930
 
 
11931
        # KCC will only create a shared library if the output file
 
11932
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
11933
        # to its proper name (with version) after linking.
 
11934
        archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
 
11935
 
 
11936
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11937
        hardcode_libdir_separator_CXX=:
 
11938
 
 
11939
        # Archives containing C++ object files must be created using
 
11940
        # the KAI C++ compiler.
 
11941
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
 
11942
        ;;
 
11943
      RCC*)
 
11944
        # Rational C++ 2.4.1
 
11945
        # FIXME: insert proper C++ library support
 
11946
        ld_shlibs_CXX=no
 
11947
        ;;
 
11948
      cxx*)
 
11949
        allow_undefined_flag_CXX=' -expect_unresolved \*'
 
11950
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
11951
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
11952
          echo "-hidden">> $lib.exp~
 
11953
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
 
11954
          $rm $lib.exp'
 
11955
 
 
11956
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
11957
        hardcode_libdir_separator_CXX=:
 
11958
 
 
11959
        # Commands to make compiler produce verbose output that lists
 
11960
        # what "hidden" libraries, object files and flags are used when
 
11961
        # linking a shared library.
 
11962
        #
 
11963
        # There doesn't appear to be a way to prevent this compiler from
 
11964
        # explicitly linking system object files so we need to strip them
 
11965
        # from the output so that they don't get included in the library
 
11966
        # dependencies.
 
11967
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
11968
        ;;
 
11969
      *)
 
11970
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
11971
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
11972
         archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
11973
 
 
11974
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11975
          hardcode_libdir_separator_CXX=:
 
11976
 
 
11977
          # Commands to make compiler produce verbose output that lists
 
11978
          # what "hidden" libraries, object files and flags are used when
 
11979
          # linking a shared library.
 
11980
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
11981
 
 
11982
        else
 
11983
          # FIXME: insert proper C++ library support
 
11984
          ld_shlibs_CXX=no
 
11985
        fi
 
11986
        ;;
 
11987
    esac
 
11988
    ;;
 
11989
  psos*)
 
11990
    # FIXME: insert proper C++ library support
 
11991
    ld_shlibs_CXX=no
 
11992
    ;;
 
11993
  sunos4*)
 
11994
    case $cc_basename in
 
11995
      CC*)
 
11996
        # Sun C++ 4.x
 
11997
        # FIXME: insert proper C++ library support
 
11998
        ld_shlibs_CXX=no
 
11999
        ;;
 
12000
      lcc*)
 
12001
        # Lucid
 
12002
        # FIXME: insert proper C++ library support
 
12003
        ld_shlibs_CXX=no
 
12004
        ;;
 
12005
      *)
 
12006
        # FIXME: insert proper C++ library support
 
12007
        ld_shlibs_CXX=no
 
12008
        ;;
 
12009
    esac
 
12010
    ;;
 
12011
  solaris*)
 
12012
    case $cc_basename in
 
12013
      CC*)
 
12014
        # Sun C++ 4.2, 5.x and Centerline C++
 
12015
        archive_cmds_need_lc_CXX=yes
 
12016
        no_undefined_flag_CXX=' -zdefs'
 
12017
        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12018
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
12019
        $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
12020
 
 
12021
        hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12022
        hardcode_shlibpath_var_CXX=no
 
12023
        case $host_os in
 
12024
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
12025
          *)
 
12026
            # The compiler driver will combine and reorder linker options,
 
12027
            # but understands `-z linker_flag'.
 
12028
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
12029
            whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
 
12030
            ;;
 
12031
        esac
 
12032
        link_all_deplibs_CXX=yes
 
12033
 
 
12034
        output_verbose_link_cmd='echo'
 
12035
 
 
12036
        # Archives containing C++ object files must be created using
 
12037
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
12038
        # necessary to make sure instantiated templates are included
 
12039
        # in the archive.
 
12040
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
12041
        ;;
 
12042
      gcx*)
 
12043
        # Green Hills C++ Compiler
 
12044
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12045
 
 
12046
        # The C++ compiler must be used to create the archive.
 
12047
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
12048
        ;;
 
12049
      *)
 
12050
        # GNU C++ compiler with Solaris linker
 
12051
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
12052
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
12053
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
12054
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12055
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
12056
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
12057
 
 
12058
            # Commands to make compiler produce verbose output that lists
 
12059
            # what "hidden" libraries, object files and flags are used when
 
12060
            # linking a shared library.
 
12061
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
12062
          else
 
12063
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
12064
            # platform.
 
12065
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12066
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
12067
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
12068
 
 
12069
            # Commands to make compiler produce verbose output that lists
 
12070
            # what "hidden" libraries, object files and flags are used when
 
12071
            # linking a shared library.
 
12072
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
12073
          fi
 
12074
 
 
12075
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
12076
          case $host_os in
 
12077
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
12078
          *)
 
12079
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
12080
            ;;
 
12081
          esac
 
12082
        fi
 
12083
        ;;
 
12084
    esac
 
12085
    ;;
 
12086
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
12087
    no_undefined_flag_CXX='${wl}-z,text'
 
12088
    archive_cmds_need_lc_CXX=no
 
12089
    hardcode_shlibpath_var_CXX=no
 
12090
    runpath_var='LD_RUN_PATH'
 
12091
 
 
12092
    case $cc_basename in
 
12093
      CC*)
 
12094
        archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12095
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12096
        ;;
 
12097
      *)
 
12098
        archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12099
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12100
        ;;
 
12101
    esac
 
12102
    ;;
 
12103
  sysv5* | sco3.2v5* | sco5v6*)
 
12104
    # Note: We can NOT use -z defs as we might desire, because we do not
 
12105
    # link with -lc, and that would cause any symbols used from libc to
 
12106
    # always be unresolved, which means just about no library would
 
12107
    # ever link correctly.  If we're not using GNU ld we use -z text
 
12108
    # though, which does catch some bad symbols but isn't as heavy-handed
 
12109
    # as -z defs.
 
12110
    # For security reasons, it is highly recommended that you always
 
12111
    # use absolute paths for naming shared libraries, and exclude the
 
12112
    # DT_RUNPATH tag from executables and libraries.  But doing so
 
12113
    # requires that you compile everything twice, which is a pain.
 
12114
    # So that behaviour is only enabled if SCOABSPATH is set to a
 
12115
    # non-empty value in the environment.  Most likely only useful for
 
12116
    # creating official distributions of packages.
 
12117
    # This is a hack until libtool officially supports absolute path
 
12118
    # names for shared libraries.
 
12119
    no_undefined_flag_CXX='${wl}-z,text'
 
12120
    allow_undefined_flag_CXX='${wl}-z,nodefs'
 
12121
    archive_cmds_need_lc_CXX=no
 
12122
    hardcode_shlibpath_var_CXX=no
 
12123
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
12124
    hardcode_libdir_separator_CXX=':'
 
12125
    link_all_deplibs_CXX=yes
 
12126
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
 
12127
    runpath_var='LD_RUN_PATH'
 
12128
 
 
12129
    case $cc_basename in
 
12130
      CC*)
 
12131
        archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12132
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12133
        ;;
 
12134
      *)
 
12135
        archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12136
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12137
        ;;
 
12138
    esac
 
12139
    ;;
 
12140
  tandem*)
 
12141
    case $cc_basename in
 
12142
      NCC*)
 
12143
        # NonStop-UX NCC 3.20
 
12144
        # FIXME: insert proper C++ library support
 
12145
        ld_shlibs_CXX=no
 
12146
        ;;
 
12147
      *)
 
12148
        # FIXME: insert proper C++ library support
 
12149
        ld_shlibs_CXX=no
 
12150
        ;;
 
12151
    esac
 
12152
    ;;
 
12153
  vxworks*)
 
12154
    # FIXME: insert proper C++ library support
 
12155
    ld_shlibs_CXX=no
 
12156
    ;;
 
12157
  *)
 
12158
    # FIXME: insert proper C++ library support
 
12159
    ld_shlibs_CXX=no
 
12160
    ;;
 
12161
esac
 
12162
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
12163
$as_echo "$ld_shlibs_CXX" >&6; }
 
12164
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
12165
 
 
12166
GCC_CXX="$GXX"
 
12167
LD_CXX="$LD"
 
12168
 
 
12169
cat > conftest.$ac_ext <<EOF
 
12170
class Foo
 
12171
{
 
12172
public:
 
12173
  Foo (void) { a = 0; }
 
12174
private:
 
12175
  int a;
 
12176
};
 
12177
EOF
 
12178
 
 
12179
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12180
  (eval $ac_compile) 2>&5
 
12181
  ac_status=$?
 
12182
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12183
  (exit $ac_status); }; then
 
12184
  # Parse the compiler output and extract the necessary
 
12185
  # objects, libraries and library flags.
 
12186
 
 
12187
  # Sentinel used to keep track of whether or not we are before
 
12188
  # the conftest object file.
 
12189
  pre_test_object_deps_done=no
 
12190
 
 
12191
  # The `*' in the case matches for architectures that use `case' in
 
12192
  # $output_verbose_cmd can trigger glob expansion during the loop
 
12193
  # eval without this substitution.
 
12194
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
 
12195
 
 
12196
  for p in `eval $output_verbose_link_cmd`; do
 
12197
    case $p in
 
12198
 
 
12199
    -L* | -R* | -l*)
 
12200
       # Some compilers place space between "-{L,R}" and the path.
 
12201
       # Remove the space.
 
12202
       if test $p = "-L" \
 
12203
          || test $p = "-R"; then
 
12204
         prev=$p
 
12205
         continue
 
12206
       else
 
12207
         prev=
 
12208
       fi
 
12209
 
 
12210
       if test "$pre_test_object_deps_done" = no; then
 
12211
         case $p in
 
12212
         -L* | -R*)
 
12213
           # Internal compiler library paths should come after those
 
12214
           # provided the user.  The postdeps already come after the
 
12215
           # user supplied libs so there is no need to process them.
 
12216
           if test -z "$compiler_lib_search_path_CXX"; then
 
12217
             compiler_lib_search_path_CXX="${prev}${p}"
 
12218
           else
 
12219
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
12220
           fi
 
12221
           ;;
 
12222
         # The "-l" case would never come before the object being
 
12223
         # linked, so don't bother handling this case.
 
12224
         esac
 
12225
       else
 
12226
         if test -z "$postdeps_CXX"; then
 
12227
           postdeps_CXX="${prev}${p}"
 
12228
         else
 
12229
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
12230
         fi
 
12231
       fi
 
12232
       ;;
 
12233
 
 
12234
    *.$objext)
 
12235
       # This assumes that the test object file only shows up
 
12236
       # once in the compiler output.
 
12237
       if test "$p" = "conftest.$objext"; then
 
12238
         pre_test_object_deps_done=yes
 
12239
         continue
 
12240
       fi
 
12241
 
 
12242
       if test "$pre_test_object_deps_done" = no; then
 
12243
         if test -z "$predep_objects_CXX"; then
 
12244
           predep_objects_CXX="$p"
 
12245
         else
 
12246
           predep_objects_CXX="$predep_objects_CXX $p"
 
12247
         fi
 
12248
       else
 
12249
         if test -z "$postdep_objects_CXX"; then
 
12250
           postdep_objects_CXX="$p"
 
12251
         else
 
12252
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
12253
         fi
 
12254
       fi
 
12255
       ;;
 
12256
 
 
12257
    *) ;; # Ignore the rest.
 
12258
 
 
12259
    esac
 
12260
  done
 
12261
 
 
12262
  # Clean up.
 
12263
  rm -f a.out a.exe
 
12264
else
 
12265
  echo "libtool.m4: error: problem compiling CXX test program"
 
12266
fi
 
12267
 
 
12268
$rm -f confest.$objext
 
12269
 
 
12270
compiler_lib_search_dirs_CXX=
 
12271
if test -n "$compiler_lib_search_path_CXX"; then
 
12272
  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
12273
fi
 
12274
 
 
12275
# PORTME: override above test on systems where it is broken
 
12276
case $host_os in
 
12277
interix[3-9]*)
 
12278
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
12279
  # hack all around it, let's just trust "g++" to DTRT.
 
12280
  predep_objects_CXX=
 
12281
  postdep_objects_CXX=
 
12282
  postdeps_CXX=
 
12283
  ;;
 
12284
 
 
12285
linux*)
 
12286
  case `$CC -V 2>&1 | sed 5q` in
 
12287
  *Sun\ C*)
 
12288
    # Sun C++ 5.9
 
12289
    #
 
12290
    # The more standards-conforming stlport4 library is
 
12291
    # incompatible with the Cstd library. Avoid specifying
 
12292
    # it if it's in CXXFLAGS. Ignore libCrun as
 
12293
    # -library=stlport4 depends on it.
 
12294
    case " $CXX $CXXFLAGS " in
 
12295
    *" -library=stlport4 "*)
 
12296
      solaris_use_stlport4=yes
 
12297
      ;;
 
12298
    esac
 
12299
    if test "$solaris_use_stlport4" != yes; then
 
12300
      postdeps_CXX='-library=Cstd -library=Crun'
 
12301
    fi
 
12302
    ;;
 
12303
  esac
 
12304
  ;;
 
12305
 
 
12306
solaris*)
 
12307
  case $cc_basename in
 
12308
  CC*)
 
12309
    # The more standards-conforming stlport4 library is
 
12310
    # incompatible with the Cstd library. Avoid specifying
 
12311
    # it if it's in CXXFLAGS. Ignore libCrun as
 
12312
    # -library=stlport4 depends on it.
 
12313
    case " $CXX $CXXFLAGS " in
 
12314
    *" -library=stlport4 "*)
 
12315
      solaris_use_stlport4=yes
 
12316
      ;;
 
12317
    esac
 
12318
 
 
12319
    # Adding this requires a known-good setup of shared libraries for
 
12320
    # Sun compiler versions before 5.6, else PIC objects from an old
 
12321
    # archive will be linked into the output, leading to subtle bugs.
 
12322
    if test "$solaris_use_stlport4" != yes; then
 
12323
      postdeps_CXX='-library=Cstd -library=Crun'
 
12324
    fi
 
12325
    ;;
 
12326
  esac
 
12327
  ;;
 
12328
esac
 
12329
 
 
12330
case " $postdeps_CXX " in
 
12331
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
12332
esac
 
12333
 
 
12334
lt_prog_compiler_wl_CXX=
 
12335
lt_prog_compiler_pic_CXX=
 
12336
lt_prog_compiler_static_CXX=
 
12337
 
 
12338
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
12339
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
12340
 
 
12341
  # C++ specific cases for pic, static, wl, etc.
 
12342
  if test "$GXX" = yes; then
 
12343
    lt_prog_compiler_wl_CXX='-Wl,'
 
12344
    lt_prog_compiler_static_CXX='-static'
 
12345
 
 
12346
    case $host_os in
 
12347
    aix*)
 
12348
      # All AIX code is PIC.
 
12349
      if test "$host_cpu" = ia64; then
 
12350
        # AIX 5 now supports IA64 processor
 
12351
        lt_prog_compiler_static_CXX='-Bstatic'
 
12352
      fi
 
12353
      ;;
 
12354
    amigaos*)
 
12355
      # FIXME: we need at least 68020 code to build shared libraries, but
 
12356
      # adding the `-m68020' flag to GCC prevents building anything better,
 
12357
      # like `-m68040'.
 
12358
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
12359
      ;;
 
12360
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
12361
      # PIC is the default for these OSes.
 
12362
      ;;
 
12363
    mingw* | cygwin* | os2* | pw32*)
 
12364
      # This hack is so that the source file can tell whether it is being
 
12365
      # built for inclusion in a dll (and should export symbols for example).
 
12366
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
12367
      # (--disable-auto-import) libraries
 
12368
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
12369
      ;;
 
12370
    darwin* | rhapsody*)
 
12371
      # PIC is the default on this platform
 
12372
      # Common symbols not allowed in MH_DYLIB files
 
12373
      lt_prog_compiler_pic_CXX='-fno-common'
 
12374
      ;;
 
12375
    *djgpp*)
 
12376
      # DJGPP does not support shared libraries at all
 
12377
      lt_prog_compiler_pic_CXX=
 
12378
      ;;
 
12379
    interix[3-9]*)
 
12380
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
12381
      # Instead, we relocate shared libraries at runtime.
 
12382
      ;;
 
12383
    sysv4*MP*)
 
12384
      if test -d /usr/nec; then
 
12385
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
12386
      fi
 
12387
      ;;
 
12388
    hpux*)
 
12389
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
12390
      # not for PA HP-UX.
 
12391
      case $host_cpu in
 
12392
      hppa*64*|ia64*)
 
12393
        ;;
 
12394
      *)
 
12395
        lt_prog_compiler_pic_CXX='-fPIC'
 
12396
        ;;
 
12397
      esac
 
12398
      ;;
 
12399
    *)
 
12400
      lt_prog_compiler_pic_CXX='-fPIC'
 
12401
      ;;
 
12402
    esac
 
12403
  else
 
12404
    case $host_os in
 
12405
      aix[4-9]*)
 
12406
        # All AIX code is PIC.
 
12407
        if test "$host_cpu" = ia64; then
 
12408
          # AIX 5 now supports IA64 processor
 
12409
          lt_prog_compiler_static_CXX='-Bstatic'
 
12410
        else
 
12411
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
12412
        fi
 
12413
        ;;
 
12414
      chorus*)
 
12415
        case $cc_basename in
 
12416
        cxch68*)
 
12417
          # Green Hills C++ Compiler
 
12418
          # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
 
12419
          ;;
 
12420
        esac
 
12421
        ;;
 
12422
       darwin*)
 
12423
         # PIC is the default on this platform
 
12424
         # Common symbols not allowed in MH_DYLIB files
 
12425
         case $cc_basename in
 
12426
           xlc*)
 
12427
           lt_prog_compiler_pic_CXX='-qnocommon'
 
12428
           lt_prog_compiler_wl_CXX='-Wl,'
 
12429
           ;;
 
12430
         esac
 
12431
       ;;
 
12432
      dgux*)
 
12433
        case $cc_basename in
 
12434
          ec++*)
 
12435
            lt_prog_compiler_pic_CXX='-KPIC'
 
12436
            ;;
 
12437
          ghcx*)
 
12438
            # Green Hills C++ Compiler
 
12439
            lt_prog_compiler_pic_CXX='-pic'
 
12440
            ;;
 
12441
          *)
 
12442
            ;;
 
12443
        esac
 
12444
        ;;
 
12445
      freebsd* | dragonfly*)
 
12446
        # FreeBSD uses GNU C++
 
12447
        ;;
 
12448
      hpux9* | hpux10* | hpux11*)
 
12449
        case $cc_basename in
 
12450
          CC*)
 
12451
            lt_prog_compiler_wl_CXX='-Wl,'
 
12452
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
12453
            if test "$host_cpu" != ia64; then
 
12454
              lt_prog_compiler_pic_CXX='+Z'
 
12455
            fi
 
12456
            ;;
 
12457
          aCC*)
 
12458
            lt_prog_compiler_wl_CXX='-Wl,'
 
12459
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
12460
            case $host_cpu in
 
12461
            hppa*64*|ia64*)
 
12462
              # +Z the default
 
12463
              ;;
 
12464
            *)
 
12465
              lt_prog_compiler_pic_CXX='+Z'
 
12466
              ;;
 
12467
            esac
 
12468
            ;;
 
12469
          *)
 
12470
            ;;
 
12471
        esac
 
12472
        ;;
 
12473
      interix*)
 
12474
        # This is c89, which is MS Visual C++ (no shared libs)
 
12475
        # Anyone wants to do a port?
 
12476
        ;;
 
12477
      irix5* | irix6* | nonstopux*)
 
12478
        case $cc_basename in
 
12479
          CC*)
 
12480
            lt_prog_compiler_wl_CXX='-Wl,'
 
12481
            lt_prog_compiler_static_CXX='-non_shared'
 
12482
            # CC pic flag -KPIC is the default.
 
12483
            ;;
 
12484
          *)
 
12485
            ;;
 
12486
        esac
 
12487
        ;;
 
12488
      linux* | k*bsd*-gnu)
 
12489
        case $cc_basename in
 
12490
          KCC*)
 
12491
            # KAI C++ Compiler
 
12492
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
12493
            lt_prog_compiler_pic_CXX='-fPIC'
 
12494
            ;;
 
12495
          icpc* | ecpc*)
 
12496
            # Intel C++
 
12497
            lt_prog_compiler_wl_CXX='-Wl,'
 
12498
            lt_prog_compiler_pic_CXX='-KPIC'
 
12499
            lt_prog_compiler_static_CXX='-static'
 
12500
            ;;
 
12501
          pgCC* | pgcpp*)
 
12502
            # Portland Group C++ compiler.
 
12503
            lt_prog_compiler_wl_CXX='-Wl,'
 
12504
            lt_prog_compiler_pic_CXX='-fpic'
 
12505
            lt_prog_compiler_static_CXX='-Bstatic'
 
12506
            ;;
 
12507
          cxx*)
 
12508
            # Compaq C++
 
12509
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
12510
            # Linux and Compaq Tru64 Unix objects are PIC.
 
12511
            lt_prog_compiler_pic_CXX=
 
12512
            lt_prog_compiler_static_CXX='-non_shared'
 
12513
            ;;
 
12514
          *)
 
12515
            case `$CC -V 2>&1 | sed 5q` in
 
12516
            *Sun\ C*)
 
12517
              # Sun C++ 5.9
 
12518
              lt_prog_compiler_pic_CXX='-KPIC'
 
12519
              lt_prog_compiler_static_CXX='-Bstatic'
 
12520
              lt_prog_compiler_wl_CXX='-Qoption ld '
 
12521
              ;;
 
12522
            esac
 
12523
            ;;
 
12524
        esac
 
12525
        ;;
 
12526
      lynxos*)
 
12527
        ;;
 
12528
      m88k*)
 
12529
        ;;
 
12530
      mvs*)
 
12531
        case $cc_basename in
 
12532
          cxx*)
 
12533
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
12534
            ;;
 
12535
          *)
 
12536
            ;;
 
12537
        esac
 
12538
        ;;
 
12539
      netbsd*)
 
12540
        ;;
 
12541
      osf3* | osf4* | osf5*)
 
12542
        case $cc_basename in
 
12543
          KCC*)
 
12544
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
12545
            ;;
 
12546
          RCC*)
 
12547
            # Rational C++ 2.4.1
 
12548
            lt_prog_compiler_pic_CXX='-pic'
 
12549
            ;;
 
12550
          cxx*)
 
12551
            # Digital/Compaq C++
 
12552
            lt_prog_compiler_wl_CXX='-Wl,'
 
12553
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
12554
            # Linux and Compaq Tru64 Unix objects are PIC.
 
12555
            lt_prog_compiler_pic_CXX=
 
12556
            lt_prog_compiler_static_CXX='-non_shared'
 
12557
            ;;
 
12558
          *)
 
12559
            ;;
 
12560
        esac
 
12561
        ;;
 
12562
      psos*)
 
12563
        ;;
 
12564
      solaris*)
 
12565
        case $cc_basename in
 
12566
          CC*)
 
12567
            # Sun C++ 4.2, 5.x and Centerline C++
 
12568
            lt_prog_compiler_pic_CXX='-KPIC'
 
12569
            lt_prog_compiler_static_CXX='-Bstatic'
 
12570
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
12571
            ;;
 
12572
          gcx*)
 
12573
            # Green Hills C++ Compiler
 
12574
            lt_prog_compiler_pic_CXX='-PIC'
 
12575
            ;;
 
12576
          *)
 
12577
            ;;
 
12578
        esac
 
12579
        ;;
 
12580
      sunos4*)
 
12581
        case $cc_basename in
 
12582
          CC*)
 
12583
            # Sun C++ 4.x
 
12584
            lt_prog_compiler_pic_CXX='-pic'
 
12585
            lt_prog_compiler_static_CXX='-Bstatic'
 
12586
            ;;
 
12587
          lcc*)
 
12588
            # Lucid
 
12589
            lt_prog_compiler_pic_CXX='-pic'
 
12590
            ;;
 
12591
          *)
 
12592
            ;;
 
12593
        esac
 
12594
        ;;
 
12595
      tandem*)
 
12596
        case $cc_basename in
 
12597
          NCC*)
 
12598
            # NonStop-UX NCC 3.20
 
12599
            lt_prog_compiler_pic_CXX='-KPIC'
 
12600
            ;;
 
12601
          *)
 
12602
            ;;
 
12603
        esac
 
12604
        ;;
 
12605
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
12606
        case $cc_basename in
 
12607
          CC*)
 
12608
            lt_prog_compiler_wl_CXX='-Wl,'
 
12609
            lt_prog_compiler_pic_CXX='-KPIC'
 
12610
            lt_prog_compiler_static_CXX='-Bstatic'
 
12611
            ;;
 
12612
        esac
 
12613
        ;;
 
12614
      vxworks*)
 
12615
        ;;
 
12616
      *)
 
12617
        lt_prog_compiler_can_build_shared_CXX=no
 
12618
        ;;
 
12619
    esac
 
12620
  fi
 
12621
 
 
12622
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
12623
$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
 
12624
 
 
12625
#
 
12626
# Check to make sure the PIC flag actually works.
 
12627
#
 
12628
if test -n "$lt_prog_compiler_pic_CXX"; then
 
12629
 
 
12630
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
12631
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
 
12632
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
 
12633
  $as_echo_n "(cached) " >&6
 
12634
else
 
12635
  lt_cv_prog_compiler_pic_works_CXX=no
 
12636
  ac_outfile=conftest.$ac_objext
 
12637
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12638
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
12639
   # Insert the option either (1) after the last *FLAGS variable, or
 
12640
   # (2) before a word containing "conftest.", or (3) at the end.
 
12641
   # Note that $ac_compile itself does not contain backslashes and begins
 
12642
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
12643
   # The option is referenced via a variable to avoid confusing sed.
 
12644
   lt_compile=`echo "$ac_compile" | $SED \
 
12645
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
12646
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
12647
   -e 's:$: $lt_compiler_flag:'`
 
12648
   (eval echo "\"\$as_me:12648: $lt_compile\"" >&5)
 
12649
   (eval "$lt_compile" 2>conftest.err)
 
12650
   ac_status=$?
 
12651
   cat conftest.err >&5
 
12652
   echo "$as_me:12652: \$? = $ac_status" >&5
 
12653
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
12654
     # The compiler can only warn and ignore the option if not recognized
 
12655
     # So say no if there are warnings other than the usual output.
 
12656
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
12657
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
12658
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
12659
       lt_cv_prog_compiler_pic_works_CXX=yes
 
12660
     fi
 
12661
   fi
 
12662
   $rm conftest*
 
12663
 
 
12664
fi
 
12665
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
 
12666
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
 
12667
 
 
12668
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
 
12669
    case $lt_prog_compiler_pic_CXX in
 
12670
     "" | " "*) ;;
 
12671
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
12672
     esac
 
12673
else
 
12674
    lt_prog_compiler_pic_CXX=
 
12675
     lt_prog_compiler_can_build_shared_CXX=no
 
12676
fi
 
12677
 
 
12678
fi
 
12679
case $host_os in
 
12680
  # For platforms which do not support PIC, -DPIC is meaningless:
 
12681
  *djgpp*)
 
12682
    lt_prog_compiler_pic_CXX=
 
12683
    ;;
 
12684
  *)
 
12685
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
12686
    ;;
 
12687
esac
 
12688
 
 
12689
#
 
12690
# Check to make sure the static flag actually works.
 
12691
#
 
12692
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
 
12693
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
12694
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
12695
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
 
12696
  $as_echo_n "(cached) " >&6
 
12697
else
 
12698
  lt_cv_prog_compiler_static_works_CXX=no
 
12699
   save_LDFLAGS="$LDFLAGS"
 
12700
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
12701
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
12702
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
12703
     # The linker can only warn and ignore the option if not recognized
 
12704
     # So say no if there are warnings
 
12705
     if test -s conftest.err; then
 
12706
       # Append any errors to the config.log.
 
12707
       cat conftest.err 1>&5
 
12708
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
12709
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
12710
       if diff conftest.exp conftest.er2 >/dev/null; then
 
12711
         lt_cv_prog_compiler_static_works_CXX=yes
 
12712
       fi
 
12713
     else
 
12714
       lt_cv_prog_compiler_static_works_CXX=yes
 
12715
     fi
 
12716
   fi
 
12717
   $rm -r conftest*
 
12718
   LDFLAGS="$save_LDFLAGS"
 
12719
 
 
12720
fi
 
12721
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
 
12722
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
 
12723
 
 
12724
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
 
12725
    :
 
12726
else
 
12727
    lt_prog_compiler_static_CXX=
 
12728
fi
 
12729
 
 
12730
 
 
12731
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
12732
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
12733
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
12734
  $as_echo_n "(cached) " >&6
 
12735
else
 
12736
  lt_cv_prog_compiler_c_o_CXX=no
 
12737
   $rm -r conftest 2>/dev/null
 
12738
   mkdir conftest
 
12739
   cd conftest
 
12740
   mkdir out
 
12741
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12742
 
 
12743
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
12744
   # Insert the option either (1) after the last *FLAGS variable, or
 
12745
   # (2) before a word containing "conftest.", or (3) at the end.
 
12746
   # Note that $ac_compile itself does not contain backslashes and begins
 
12747
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
12748
   lt_compile=`echo "$ac_compile" | $SED \
 
12749
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
12750
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
12751
   -e 's:$: $lt_compiler_flag:'`
 
12752
   (eval echo "\"\$as_me:12752: $lt_compile\"" >&5)
 
12753
   (eval "$lt_compile" 2>out/conftest.err)
 
12754
   ac_status=$?
 
12755
   cat out/conftest.err >&5
 
12756
   echo "$as_me:12756: \$? = $ac_status" >&5
 
12757
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
12758
   then
 
12759
     # The compiler can only warn and ignore the option if not recognized
 
12760
     # So say no if there are warnings
 
12761
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
12762
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
12763
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
12764
       lt_cv_prog_compiler_c_o_CXX=yes
 
12765
     fi
 
12766
   fi
 
12767
   chmod u+w . 2>&5
 
12768
   $rm conftest*
 
12769
   # SGI C++ compiler will create directory out/ii_files/ for
 
12770
   # template instantiation
 
12771
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
12772
   $rm out/* && rmdir out
 
12773
   cd ..
 
12774
   rmdir conftest
 
12775
   $rm conftest*
 
12776
 
 
12777
fi
 
12778
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
12779
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
 
12780
 
 
12781
 
 
12782
hard_links="nottested"
 
12783
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
12784
  # do not overwrite the value of need_locks provided by the user
 
12785
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
12786
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
12787
  hard_links=yes
 
12788
  $rm conftest*
 
12789
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
12790
  touch conftest.a
 
12791
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
12792
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
12793
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
 
12794
$as_echo "$hard_links" >&6; }
 
12795
  if test "$hard_links" = no; then
 
12796
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
12797
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
12798
    need_locks=warn
 
12799
  fi
 
12800
else
 
12801
  need_locks=no
 
12802
fi
 
12803
 
 
12804
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
12805
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
12806
 
 
12807
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
12808
  case $host_os in
 
12809
  aix[4-9]*)
 
12810
    # If we're using GNU nm, then we don't want the "-C" option.
 
12811
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
12812
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
12813
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
12814
    else
 
12815
      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
12816
    fi
 
12817
    ;;
 
12818
  pw32*)
 
12819
    export_symbols_cmds_CXX="$ltdll_cmds"
 
12820
  ;;
 
12821
  cygwin* | mingw*)
 
12822
    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'
 
12823
  ;;
 
12824
  *)
 
12825
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
12826
  ;;
 
12827
  esac
 
12828
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
12829
 
 
12830
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
12831
$as_echo "$ld_shlibs_CXX" >&6; }
 
12832
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
12833
 
 
12834
#
 
12835
# Do we need to explicitly link libc?
 
12836
#
 
12837
case "x$archive_cmds_need_lc_CXX" in
 
12838
x|xyes)
 
12839
  # Assume -lc should be added
 
12840
  archive_cmds_need_lc_CXX=yes
 
12841
 
 
12842
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
12843
    case $archive_cmds_CXX in
 
12844
    *'~'*)
 
12845
      # FIXME: we may have to deal with multi-command sequences.
 
12846
      ;;
 
12847
    '$CC '*)
 
12848
      # Test whether the compiler implicitly links with -lc since on some
 
12849
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
12850
      # to ld, don't add -lc before -lgcc.
 
12851
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
12852
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
12853
      $rm conftest*
 
12854
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12855
 
 
12856
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12857
  (eval $ac_compile) 2>&5
 
12858
  ac_status=$?
 
12859
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12860
  (exit $ac_status); } 2>conftest.err; then
 
12861
        soname=conftest
 
12862
        lib=conftest
 
12863
        libobjs=conftest.$ac_objext
 
12864
        deplibs=
 
12865
        wl=$lt_prog_compiler_wl_CXX
 
12866
        pic_flag=$lt_prog_compiler_pic_CXX
 
12867
        compiler_flags=-v
 
12868
        linker_flags=-v
 
12869
        verstring=
 
12870
        output_objdir=.
 
12871
        libname=conftest
 
12872
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
12873
        allow_undefined_flag_CXX=
 
12874
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
12875
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
12876
  ac_status=$?
 
12877
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12878
  (exit $ac_status); }
 
12879
        then
 
12880
          archive_cmds_need_lc_CXX=no
 
12881
        else
 
12882
          archive_cmds_need_lc_CXX=yes
 
12883
        fi
 
12884
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
12885
      else
 
12886
        cat conftest.err 1>&5
 
12887
      fi
 
12888
      $rm conftest*
 
12889
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
12890
$as_echo "$archive_cmds_need_lc_CXX" >&6; }
 
12891
      ;;
 
12892
    esac
 
12893
  fi
 
12894
  ;;
 
12895
esac
 
12896
 
 
12897
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
12898
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
12899
library_names_spec=
 
12900
libname_spec='lib$name'
 
12901
soname_spec=
 
12902
shrext_cmds=".so"
 
12903
postinstall_cmds=
 
12904
postuninstall_cmds=
 
12905
finish_cmds=
 
12906
finish_eval=
 
12907
shlibpath_var=
 
12908
shlibpath_overrides_runpath=unknown
 
12909
version_type=none
 
12910
dynamic_linker="$host_os ld.so"
 
12911
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
12912
 
 
12913
need_lib_prefix=unknown
 
12914
hardcode_into_libs=no
 
12915
 
 
12916
# when you set need_version to no, make sure it does not cause -set_version
 
12917
# flags to be left without arguments
 
12918
need_version=unknown
 
12919
 
 
12920
case $host_os in
 
12921
aix3*)
 
12922
  version_type=linux
 
12923
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
12924
  shlibpath_var=LIBPATH
 
12925
 
 
12926
  # AIX 3 has no versioning support, so we append a major version to the name.
 
12927
  soname_spec='${libname}${release}${shared_ext}$major'
 
12928
  ;;
 
12929
 
 
12930
aix[4-9]*)
 
12931
  version_type=linux
 
12932
  need_lib_prefix=no
 
12933
  need_version=no
 
12934
  hardcode_into_libs=yes
 
12935
  if test "$host_cpu" = ia64; then
 
12936
    # AIX 5 supports IA64
 
12937
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
12938
    shlibpath_var=LD_LIBRARY_PATH
 
12939
  else
 
12940
    # With GCC up to 2.95.x, collect2 would create an import file
 
12941
    # for dependence libraries.  The import file would start with
 
12942
    # the line `#! .'.  This would cause the generated library to
 
12943
    # depend on `.', always an invalid library.  This was fixed in
 
12944
    # development snapshots of GCC prior to 3.0.
 
12945
    case $host_os in
 
12946
      aix4 | aix4.[01] | aix4.[01].*)
 
12947
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
12948
           echo ' yes '
 
12949
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
12950
        :
 
12951
      else
 
12952
        can_build_shared=no
 
12953
      fi
 
12954
      ;;
 
12955
    esac
 
12956
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
12957
    # soname into executable. Probably we can add versioning support to
 
12958
    # collect2, so additional links can be useful in future.
 
12959
    if test "$aix_use_runtimelinking" = yes; then
 
12960
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
12961
      # instead of lib<name>.a to let people know that these are not
 
12962
      # typical AIX shared libraries.
 
12963
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12964
    else
 
12965
      # We preserve .a as extension for shared libraries through AIX4.2
 
12966
      # and later when we are not doing run time linking.
 
12967
      library_names_spec='${libname}${release}.a $libname.a'
 
12968
      soname_spec='${libname}${release}${shared_ext}$major'
 
12969
    fi
 
12970
    shlibpath_var=LIBPATH
 
12971
  fi
 
12972
  ;;
 
12973
 
 
12974
amigaos*)
 
12975
  library_names_spec='$libname.ixlibrary $libname.a'
 
12976
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
12977
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
12978
  ;;
 
12979
 
 
12980
beos*)
 
12981
  library_names_spec='${libname}${shared_ext}'
 
12982
  dynamic_linker="$host_os ld.so"
 
12983
  shlibpath_var=LIBRARY_PATH
 
12984
  ;;
 
12985
 
 
12986
bsdi[45]*)
 
12987
  version_type=linux
 
12988
  need_version=no
 
12989
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12990
  soname_spec='${libname}${release}${shared_ext}$major'
 
12991
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
12992
  shlibpath_var=LD_LIBRARY_PATH
 
12993
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
12994
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
12995
  # the default ld.so.conf also contains /usr/contrib/lib and
 
12996
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
12997
  # libtool to hard-code these into programs
 
12998
  ;;
 
12999
 
 
13000
cygwin* | mingw* | pw32*)
 
13001
  version_type=windows
 
13002
  shrext_cmds=".dll"
 
13003
  need_version=no
 
13004
  need_lib_prefix=no
 
13005
 
 
13006
  case $GCC,$host_os in
 
13007
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
13008
    library_names_spec='$libname.dll.a'
 
13009
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
13010
    postinstall_cmds='base_file=`basename \${file}`~
 
13011
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
13012
      dldir=$destdir/`dirname \$dlpath`~
 
13013
      test -d \$dldir || mkdir -p \$dldir~
 
13014
      $install_prog $dir/$dlname \$dldir/$dlname~
 
13015
      chmod a+x \$dldir/$dlname'
 
13016
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
13017
      dlpath=$dir/\$dldll~
 
13018
       $rm \$dlpath'
 
13019
    shlibpath_overrides_runpath=yes
 
13020
 
 
13021
    case $host_os in
 
13022
    cygwin*)
 
13023
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
13024
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13025
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
13026
      ;;
 
13027
    mingw*)
 
13028
      # MinGW DLLs use traditional 'lib' prefix
 
13029
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13030
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
13031
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
13032
        # It is most probably a Windows format PATH printed by
 
13033
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
13034
        # path with ; separators, and with drive letters. We can handle the
 
13035
        # drive letters (cygwin fileutils understands them), so leave them,
 
13036
        # especially as we might pass files found there to a mingw objdump,
 
13037
        # which wouldn't understand a cygwinified path. Ahh.
 
13038
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
13039
      else
 
13040
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
13041
      fi
 
13042
      ;;
 
13043
    pw32*)
 
13044
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
13045
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13046
      ;;
 
13047
    esac
 
13048
    ;;
 
13049
 
 
13050
  *)
 
13051
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
13052
    ;;
 
13053
  esac
 
13054
  dynamic_linker='Win32 ld.exe'
 
13055
  # FIXME: first we should search . and the directory the executable is in
 
13056
  shlibpath_var=PATH
 
13057
  ;;
 
13058
 
 
13059
darwin* | rhapsody*)
 
13060
  dynamic_linker="$host_os dyld"
 
13061
  version_type=darwin
 
13062
  need_lib_prefix=no
 
13063
  need_version=no
 
13064
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
13065
  soname_spec='${libname}${release}${major}$shared_ext'
 
13066
  shlibpath_overrides_runpath=yes
 
13067
  shlibpath_var=DYLD_LIBRARY_PATH
 
13068
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
13069
 
 
13070
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
13071
  ;;
 
13072
 
 
13073
dgux*)
 
13074
  version_type=linux
 
13075
  need_lib_prefix=no
 
13076
  need_version=no
 
13077
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
13078
  soname_spec='${libname}${release}${shared_ext}$major'
 
13079
  shlibpath_var=LD_LIBRARY_PATH
 
13080
  ;;
 
13081
 
 
13082
freebsd1*)
 
13083
  dynamic_linker=no
 
13084
  ;;
 
13085
 
 
13086
freebsd* | dragonfly*)
 
13087
  # DragonFly does not have aout.  When/if they implement a new
 
13088
  # versioning mechanism, adjust this.
 
13089
  if test -x /usr/bin/objformat; then
 
13090
    objformat=`/usr/bin/objformat`
 
13091
  else
 
13092
    case $host_os in
 
13093
    freebsd[123]*) objformat=aout ;;
 
13094
    *) objformat=elf ;;
 
13095
    esac
 
13096
  fi
 
13097
  version_type=freebsd-$objformat
 
13098
  case $version_type in
 
13099
    freebsd-elf*)
 
13100
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13101
      need_version=no
 
13102
      need_lib_prefix=no
 
13103
      ;;
 
13104
    freebsd-*)
 
13105
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
13106
      need_version=yes
 
13107
      ;;
 
13108
  esac
 
13109
  shlibpath_var=LD_LIBRARY_PATH
 
13110
  case $host_os in
 
13111
  freebsd2*)
 
13112
    shlibpath_overrides_runpath=yes
 
13113
    ;;
 
13114
  freebsd3.[01]* | freebsdelf3.[01]*)
 
13115
    shlibpath_overrides_runpath=yes
 
13116
    hardcode_into_libs=yes
 
13117
    ;;
 
13118
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
13119
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
13120
    shlibpath_overrides_runpath=no
 
13121
    hardcode_into_libs=yes
 
13122
    ;;
 
13123
  *) # from 4.6 on, and DragonFly
 
13124
    shlibpath_overrides_runpath=yes
 
13125
    hardcode_into_libs=yes
 
13126
    ;;
 
13127
  esac
 
13128
  ;;
 
13129
 
 
13130
gnu*)
 
13131
  version_type=linux
 
13132
  need_lib_prefix=no
 
13133
  need_version=no
 
13134
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
13135
  soname_spec='${libname}${release}${shared_ext}$major'
 
13136
  shlibpath_var=LD_LIBRARY_PATH
 
13137
  hardcode_into_libs=yes
 
13138
  ;;
 
13139
 
 
13140
hpux9* | hpux10* | hpux11*)
 
13141
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
13142
  # link against other versions.
 
13143
  version_type=sunos
 
13144
  need_lib_prefix=no
 
13145
  need_version=no
 
13146
  case $host_cpu in
 
13147
  ia64*)
 
13148
    shrext_cmds='.so'
 
13149
    hardcode_into_libs=yes
 
13150
    dynamic_linker="$host_os dld.so"
 
13151
    shlibpath_var=LD_LIBRARY_PATH
 
13152
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
13153
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13154
    soname_spec='${libname}${release}${shared_ext}$major'
 
13155
    if test "X$HPUX_IA64_MODE" = X32; then
 
13156
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
13157
    else
 
13158
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
13159
    fi
 
13160
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
13161
    ;;
 
13162
   hppa*64*)
 
13163
     shrext_cmds='.sl'
 
13164
     hardcode_into_libs=yes
 
13165
     dynamic_linker="$host_os dld.sl"
 
13166
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
13167
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
13168
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13169
     soname_spec='${libname}${release}${shared_ext}$major'
 
13170
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
13171
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
13172
     ;;
 
13173
   *)
 
13174
    shrext_cmds='.sl'
 
13175
    dynamic_linker="$host_os dld.sl"
 
13176
    shlibpath_var=SHLIB_PATH
 
13177
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
13178
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13179
    soname_spec='${libname}${release}${shared_ext}$major'
 
13180
    ;;
 
13181
  esac
 
13182
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
13183
  postinstall_cmds='chmod 555 $lib'
 
13184
  ;;
 
13185
 
 
13186
interix[3-9]*)
 
13187
  version_type=linux
 
13188
  need_lib_prefix=no
 
13189
  need_version=no
 
13190
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13191
  soname_spec='${libname}${release}${shared_ext}$major'
 
13192
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
13193
  shlibpath_var=LD_LIBRARY_PATH
 
13194
  shlibpath_overrides_runpath=no
 
13195
  hardcode_into_libs=yes
 
13196
  ;;
 
13197
 
 
13198
irix5* | irix6* | nonstopux*)
 
13199
  case $host_os in
 
13200
    nonstopux*) version_type=nonstopux ;;
 
13201
    *)
 
13202
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
13203
                version_type=linux
 
13204
        else
 
13205
                version_type=irix
 
13206
        fi ;;
 
13207
  esac
 
13208
  need_lib_prefix=no
 
13209
  need_version=no
 
13210
  soname_spec='${libname}${release}${shared_ext}$major'
 
13211
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13212
  case $host_os in
 
13213
  irix5* | nonstopux*)
 
13214
    libsuff= shlibsuff=
 
13215
    ;;
 
13216
  *)
 
13217
    case $LD in # libtool.m4 will add one of these switches to LD
 
13218
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
13219
      libsuff= shlibsuff= libmagic=32-bit;;
 
13220
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
13221
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
13222
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
13223
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
13224
    *) libsuff= shlibsuff= libmagic=never-match;;
 
13225
    esac
 
13226
    ;;
 
13227
  esac
 
13228
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
13229
  shlibpath_overrides_runpath=no
 
13230
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
13231
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
13232
  hardcode_into_libs=yes
 
13233
  ;;
 
13234
 
 
13235
# No shared lib support for Linux oldld, aout, or coff.
 
13236
linux*oldld* | linux*aout* | linux*coff*)
 
13237
  dynamic_linker=no
 
13238
  ;;
 
13239
 
 
13240
# This must be Linux ELF.
 
13241
linux* | k*bsd*-gnu)
 
13242
  version_type=linux
 
13243
  need_lib_prefix=no
 
13244
  need_version=no
 
13245
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13246
  soname_spec='${libname}${release}${shared_ext}$major'
 
13247
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
13248
  shlibpath_var=LD_LIBRARY_PATH
 
13249
  shlibpath_overrides_runpath=no
 
13250
  # This implies no fast_install, which is unacceptable.
 
13251
  # Some rework will be needed to allow for fast_install
 
13252
  # before this can be enabled.
 
13253
  hardcode_into_libs=yes
 
13254
 
 
13255
  # Append ld.so.conf contents to the search path
 
13256
  if test -f /etc/ld.so.conf; then
 
13257
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
13258
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
13259
  fi
 
13260
 
 
13261
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
13262
  # powerpc, because MkLinux only supported shared libraries with the
 
13263
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
13264
  # most powerpc-linux boxes support dynamic linking these days and
 
13265
  # people can always --disable-shared, the test was removed, and we
 
13266
  # assume the GNU/Linux dynamic linker is in use.
 
13267
  dynamic_linker='GNU/Linux ld.so'
 
13268
  ;;
 
13269
 
 
13270
netbsd*)
 
13271
  version_type=sunos
 
13272
  need_lib_prefix=no
 
13273
  need_version=no
 
13274
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
13275
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13276
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
13277
    dynamic_linker='NetBSD (a.out) ld.so'
 
13278
  else
 
13279
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13280
    soname_spec='${libname}${release}${shared_ext}$major'
 
13281
    dynamic_linker='NetBSD ld.elf_so'
 
13282
  fi
 
13283
  shlibpath_var=LD_LIBRARY_PATH
 
13284
  shlibpath_overrides_runpath=yes
 
13285
  hardcode_into_libs=yes
 
13286
  ;;
 
13287
 
 
13288
newsos6)
 
13289
  version_type=linux
 
13290
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13291
  shlibpath_var=LD_LIBRARY_PATH
 
13292
  shlibpath_overrides_runpath=yes
 
13293
  ;;
 
13294
 
 
13295
nto-qnx*)
 
13296
  version_type=linux
 
13297
  need_lib_prefix=no
 
13298
  need_version=no
 
13299
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13300
  soname_spec='${libname}${release}${shared_ext}$major'
 
13301
  shlibpath_var=LD_LIBRARY_PATH
 
13302
  shlibpath_overrides_runpath=yes
 
13303
  ;;
 
13304
 
 
13305
openbsd*)
 
13306
  version_type=sunos
 
13307
  sys_lib_dlsearch_path_spec="/usr/lib"
 
13308
  need_lib_prefix=no
 
13309
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
13310
  case $host_os in
 
13311
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
13312
    *)                         need_version=no  ;;
 
13313
  esac
 
13314
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13315
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
13316
  shlibpath_var=LD_LIBRARY_PATH
 
13317
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
13318
    case $host_os in
 
13319
      openbsd2.[89] | openbsd2.[89].*)
 
13320
        shlibpath_overrides_runpath=no
 
13321
        ;;
 
13322
      *)
 
13323
        shlibpath_overrides_runpath=yes
 
13324
        ;;
 
13325
      esac
 
13326
  else
 
13327
    shlibpath_overrides_runpath=yes
 
13328
  fi
 
13329
  ;;
 
13330
 
 
13331
os2*)
 
13332
  libname_spec='$name'
 
13333
  shrext_cmds=".dll"
 
13334
  need_lib_prefix=no
 
13335
  library_names_spec='$libname${shared_ext} $libname.a'
 
13336
  dynamic_linker='OS/2 ld.exe'
 
13337
  shlibpath_var=LIBPATH
 
13338
  ;;
 
13339
 
 
13340
osf3* | osf4* | osf5*)
 
13341
  version_type=osf
 
13342
  need_lib_prefix=no
 
13343
  need_version=no
 
13344
  soname_spec='${libname}${release}${shared_ext}$major'
 
13345
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13346
  shlibpath_var=LD_LIBRARY_PATH
 
13347
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
13348
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
13349
  ;;
 
13350
 
 
13351
rdos*)
 
13352
  dynamic_linker=no
 
13353
  ;;
 
13354
 
 
13355
solaris*)
 
13356
  version_type=linux
 
13357
  need_lib_prefix=no
 
13358
  need_version=no
 
13359
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13360
  soname_spec='${libname}${release}${shared_ext}$major'
 
13361
  shlibpath_var=LD_LIBRARY_PATH
 
13362
  shlibpath_overrides_runpath=yes
 
13363
  hardcode_into_libs=yes
 
13364
  # ldd complains unless libraries are executable
 
13365
  postinstall_cmds='chmod +x $lib'
 
13366
  ;;
 
13367
 
 
13368
sunos4*)
 
13369
  version_type=sunos
 
13370
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13371
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
13372
  shlibpath_var=LD_LIBRARY_PATH
 
13373
  shlibpath_overrides_runpath=yes
 
13374
  if test "$with_gnu_ld" = yes; then
 
13375
    need_lib_prefix=no
 
13376
  fi
 
13377
  need_version=yes
 
13378
  ;;
 
13379
 
 
13380
sysv4 | sysv4.3*)
 
13381
  version_type=linux
 
13382
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13383
  soname_spec='${libname}${release}${shared_ext}$major'
 
13384
  shlibpath_var=LD_LIBRARY_PATH
 
13385
  case $host_vendor in
 
13386
    sni)
 
13387
      shlibpath_overrides_runpath=no
 
13388
      need_lib_prefix=no
 
13389
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
13390
      runpath_var=LD_RUN_PATH
 
13391
      ;;
 
13392
    siemens)
 
13393
      need_lib_prefix=no
 
13394
      ;;
 
13395
    motorola)
 
13396
      need_lib_prefix=no
 
13397
      need_version=no
 
13398
      shlibpath_overrides_runpath=no
 
13399
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
13400
      ;;
 
13401
  esac
 
13402
  ;;
 
13403
 
 
13404
sysv4*MP*)
 
13405
  if test -d /usr/nec ;then
 
13406
    version_type=linux
 
13407
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
13408
    soname_spec='$libname${shared_ext}.$major'
 
13409
    shlibpath_var=LD_LIBRARY_PATH
 
13410
  fi
 
13411
  ;;
 
13412
 
 
13413
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
13414
  version_type=freebsd-elf
 
13415
  need_lib_prefix=no
 
13416
  need_version=no
 
13417
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13418
  soname_spec='${libname}${release}${shared_ext}$major'
 
13419
  shlibpath_var=LD_LIBRARY_PATH
 
13420
  hardcode_into_libs=yes
 
13421
  if test "$with_gnu_ld" = yes; then
 
13422
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
13423
    shlibpath_overrides_runpath=no
 
13424
  else
 
13425
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
13426
    shlibpath_overrides_runpath=yes
 
13427
    case $host_os in
 
13428
      sco3.2v5*)
 
13429
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
13430
        ;;
 
13431
    esac
 
13432
  fi
 
13433
  sys_lib_dlsearch_path_spec='/usr/lib'
 
13434
  ;;
 
13435
 
 
13436
uts4*)
 
13437
  version_type=linux
 
13438
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13439
  soname_spec='${libname}${release}${shared_ext}$major'
 
13440
  shlibpath_var=LD_LIBRARY_PATH
 
13441
  ;;
 
13442
 
 
13443
*)
 
13444
  dynamic_linker=no
 
13445
  ;;
 
13446
esac
 
13447
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
13448
$as_echo "$dynamic_linker" >&6; }
 
13449
test "$dynamic_linker" = no && can_build_shared=no
 
13450
 
 
13451
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
13452
  $as_echo_n "(cached) " >&6
 
13453
else
 
13454
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
13455
fi
 
13456
 
 
13457
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
13458
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
13459
  $as_echo_n "(cached) " >&6
 
13460
else
 
13461
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
13462
fi
 
13463
 
 
13464
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
13465
 
 
13466
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
13467
if test "$GCC" = yes; then
 
13468
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
13469
fi
 
13470
 
 
13471
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
13472
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
13473
hardcode_action_CXX=
 
13474
if test -n "$hardcode_libdir_flag_spec_CXX" || \
 
13475
   test -n "$runpath_var_CXX" || \
 
13476
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
 
13477
 
 
13478
  # We can hardcode non-existant directories.
 
13479
  if test "$hardcode_direct_CXX" != no &&
 
13480
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
13481
     # have to relink, otherwise we might link with an installed library
 
13482
     # when we should be linking with a yet-to-be-installed one
 
13483
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
13484
     test "$hardcode_minus_L_CXX" != no; then
 
13485
    # Linking always hardcodes the temporary library directory.
 
13486
    hardcode_action_CXX=relink
 
13487
  else
 
13488
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
13489
    hardcode_action_CXX=immediate
 
13490
  fi
 
13491
else
 
13492
  # We cannot hardcode anything, or else we can only hardcode existing
 
13493
  # directories.
 
13494
  hardcode_action_CXX=unsupported
 
13495
fi
 
13496
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
13497
$as_echo "$hardcode_action_CXX" >&6; }
 
13498
 
 
13499
if test "$hardcode_action_CXX" = relink; then
 
13500
  # Fast installation is not supported
 
13501
  enable_fast_install=no
 
13502
elif test "$shlibpath_overrides_runpath" = yes ||
 
13503
     test "$enable_shared" = no; then
 
13504
  # Fast installation is not necessary
 
13505
  enable_fast_install=needless
 
13506
fi
 
13507
 
 
13508
 
 
13509
# The else clause should only fire when bootstrapping the
 
13510
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
13511
# with your package, and you will get complaints that there are
 
13512
# no rules to generate ltmain.sh.
 
13513
if test -f "$ltmain"; then
 
13514
  # See if we are running on zsh, and set the options which allow our commands through
 
13515
  # without removal of \ escapes.
 
13516
  if test -n "${ZSH_VERSION+set}" ; then
 
13517
    setopt NO_GLOB_SUBST
 
13518
  fi
 
13519
  # Now quote all the things that may contain metacharacters while being
 
13520
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
13521
  # variables and quote the copies for generation of the libtool script.
 
13522
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
13523
    SED SHELL STRIP \
 
13524
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
13525
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
13526
    deplibs_check_method reload_flag reload_cmds need_locks \
 
13527
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
13528
    lt_cv_sys_global_symbol_to_c_name_address \
 
13529
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
13530
    old_postinstall_cmds old_postuninstall_cmds \
 
13531
    compiler_CXX \
 
13532
    CC_CXX \
 
13533
    LD_CXX \
 
13534
    lt_prog_compiler_wl_CXX \
 
13535
    lt_prog_compiler_pic_CXX \
 
13536
    lt_prog_compiler_static_CXX \
 
13537
    lt_prog_compiler_no_builtin_flag_CXX \
 
13538
    export_dynamic_flag_spec_CXX \
 
13539
    thread_safe_flag_spec_CXX \
 
13540
    whole_archive_flag_spec_CXX \
 
13541
    enable_shared_with_static_runtimes_CXX \
 
13542
    old_archive_cmds_CXX \
 
13543
    old_archive_from_new_cmds_CXX \
 
13544
    predep_objects_CXX \
 
13545
    postdep_objects_CXX \
 
13546
    predeps_CXX \
 
13547
    postdeps_CXX \
 
13548
    compiler_lib_search_path_CXX \
 
13549
    compiler_lib_search_dirs_CXX \
 
13550
    archive_cmds_CXX \
 
13551
    archive_expsym_cmds_CXX \
 
13552
    postinstall_cmds_CXX \
 
13553
    postuninstall_cmds_CXX \
 
13554
    old_archive_from_expsyms_cmds_CXX \
 
13555
    allow_undefined_flag_CXX \
 
13556
    no_undefined_flag_CXX \
 
13557
    export_symbols_cmds_CXX \
 
13558
    hardcode_libdir_flag_spec_CXX \
 
13559
    hardcode_libdir_flag_spec_ld_CXX \
 
13560
    hardcode_libdir_separator_CXX \
 
13561
    hardcode_automatic_CXX \
 
13562
    module_cmds_CXX \
 
13563
    module_expsym_cmds_CXX \
 
13564
    lt_cv_prog_compiler_c_o_CXX \
 
13565
    fix_srcfile_path_CXX \
 
13566
    exclude_expsyms_CXX \
 
13567
    include_expsyms_CXX; do
 
13568
 
 
13569
    case $var in
 
13570
    old_archive_cmds_CXX | \
 
13571
    old_archive_from_new_cmds_CXX | \
 
13572
    archive_cmds_CXX | \
 
13573
    archive_expsym_cmds_CXX | \
 
13574
    module_cmds_CXX | \
 
13575
    module_expsym_cmds_CXX | \
 
13576
    old_archive_from_expsyms_cmds_CXX | \
 
13577
    export_symbols_cmds_CXX | \
 
13578
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
13579
    postinstall_cmds | postuninstall_cmds | \
 
13580
    old_postinstall_cmds | old_postuninstall_cmds | \
 
13581
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
13582
      # Double-quote double-evaled strings.
 
13583
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
13584
      ;;
 
13585
    *)
 
13586
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
13587
      ;;
 
13588
    esac
 
13589
  done
 
13590
 
 
13591
  case $lt_echo in
 
13592
  *'\$0 --fallback-echo"')
 
13593
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
13594
    ;;
 
13595
  esac
 
13596
 
 
13597
cfgfile="$ofile"
 
13598
 
 
13599
  cat <<__EOF__ >> "$cfgfile"
 
13600
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
13601
 
 
13602
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
13603
 
 
13604
# Shell to use when invoking shell scripts.
 
13605
SHELL=$lt_SHELL
 
13606
 
 
13607
# Whether or not to build shared libraries.
 
13608
build_libtool_libs=$enable_shared
 
13609
 
 
13610
# Whether or not to build static libraries.
 
13611
build_old_libs=$enable_static
 
13612
 
 
13613
# Whether or not to add -lc for building shared libraries.
 
13614
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
13615
 
 
13616
# Whether or not to disallow shared libs when runtime libs are static
 
13617
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
13618
 
 
13619
# Whether or not to optimize for fast installation.
 
13620
fast_install=$enable_fast_install
 
13621
 
 
13622
# The host system.
 
13623
host_alias=$host_alias
 
13624
host=$host
 
13625
host_os=$host_os
 
13626
 
 
13627
# The build system.
 
13628
build_alias=$build_alias
 
13629
build=$build
 
13630
build_os=$build_os
 
13631
 
 
13632
# An echo program that does not interpret backslashes.
 
13633
echo=$lt_echo
 
13634
 
 
13635
# The archiver.
 
13636
AR=$lt_AR
 
13637
AR_FLAGS=$lt_AR_FLAGS
 
13638
 
 
13639
# A C compiler.
 
13640
LTCC=$lt_LTCC
 
13641
 
 
13642
# LTCC compiler flags.
 
13643
LTCFLAGS=$lt_LTCFLAGS
 
13644
 
 
13645
# A language-specific compiler.
 
13646
CC=$lt_compiler_CXX
 
13647
 
 
13648
# Is the compiler the GNU C compiler?
 
13649
with_gcc=$GCC_CXX
 
13650
 
 
13651
# An ERE matcher.
 
13652
EGREP=$lt_EGREP
 
13653
 
 
13654
# The linker used to build libraries.
 
13655
LD=$lt_LD_CXX
 
13656
 
 
13657
# Whether we need hard or soft links.
 
13658
LN_S=$lt_LN_S
 
13659
 
 
13660
# A BSD-compatible nm program.
 
13661
NM=$lt_NM
 
13662
 
 
13663
# A symbol stripping program
 
13664
STRIP=$lt_STRIP
 
13665
 
 
13666
# Used to examine libraries when file_magic_cmd begins "file"
 
13667
MAGIC_CMD=$MAGIC_CMD
 
13668
 
 
13669
# Used on cygwin: DLL creation program.
 
13670
DLLTOOL="$DLLTOOL"
 
13671
 
 
13672
# Used on cygwin: object dumper.
 
13673
OBJDUMP="$OBJDUMP"
 
13674
 
 
13675
# Used on cygwin: assembler.
 
13676
AS="$AS"
 
13677
 
 
13678
# The name of the directory that contains temporary libtool files.
 
13679
objdir=$objdir
 
13680
 
 
13681
# How to create reloadable object files.
 
13682
reload_flag=$lt_reload_flag
 
13683
reload_cmds=$lt_reload_cmds
 
13684
 
 
13685
# How to pass a linker flag through the compiler.
 
13686
wl=$lt_lt_prog_compiler_wl_CXX
 
13687
 
 
13688
# Object file suffix (normally "o").
 
13689
objext="$ac_objext"
 
13690
 
 
13691
# Old archive suffix (normally "a").
 
13692
libext="$libext"
 
13693
 
 
13694
# Shared library suffix (normally ".so").
 
13695
shrext_cmds='$shrext_cmds'
 
13696
 
 
13697
# Executable file suffix (normally "").
 
13698
exeext="$exeext"
 
13699
 
 
13700
# Additional compiler flags for building library objects.
 
13701
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
13702
pic_mode=$pic_mode
 
13703
 
 
13704
# What is the maximum length of a command?
 
13705
max_cmd_len=$lt_cv_sys_max_cmd_len
 
13706
 
 
13707
# Does compiler simultaneously support -c and -o options?
 
13708
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
13709
 
 
13710
# Must we lock files when doing compilation?
 
13711
need_locks=$lt_need_locks
 
13712
 
 
13713
# Do we need the lib prefix for modules?
 
13714
need_lib_prefix=$need_lib_prefix
 
13715
 
 
13716
# Do we need a version for libraries?
 
13717
need_version=$need_version
 
13718
 
 
13719
# Whether dlopen is supported.
 
13720
dlopen_support=$enable_dlopen
 
13721
 
 
13722
# Whether dlopen of programs is supported.
 
13723
dlopen_self=$enable_dlopen_self
 
13724
 
 
13725
# Whether dlopen of statically linked programs is supported.
 
13726
dlopen_self_static=$enable_dlopen_self_static
 
13727
 
 
13728
# Compiler flag to prevent dynamic linking.
 
13729
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
13730
 
 
13731
# Compiler flag to turn off builtin functions.
 
13732
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
13733
 
 
13734
# Compiler flag to allow reflexive dlopens.
 
13735
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
13736
 
 
13737
# Compiler flag to generate shared objects directly from archives.
 
13738
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
13739
 
 
13740
# Compiler flag to generate thread-safe objects.
 
13741
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
 
13742
 
 
13743
# Library versioning type.
 
13744
version_type=$version_type
 
13745
 
 
13746
# Format of library name prefix.
 
13747
libname_spec=$lt_libname_spec
 
13748
 
 
13749
# List of archive names.  First name is the real one, the rest are links.
 
13750
# The last name is the one that the linker finds with -lNAME.
 
13751
library_names_spec=$lt_library_names_spec
 
13752
 
 
13753
# The coded name of the library, if different from the real name.
 
13754
soname_spec=$lt_soname_spec
 
13755
 
 
13756
# Commands used to build and install an old-style archive.
 
13757
RANLIB=$lt_RANLIB
 
13758
old_archive_cmds=$lt_old_archive_cmds_CXX
 
13759
old_postinstall_cmds=$lt_old_postinstall_cmds
 
13760
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
13761
 
 
13762
# Create an old-style archive from a shared archive.
 
13763
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
13764
 
 
13765
# Create a temporary old-style archive to link instead of a shared archive.
 
13766
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
13767
 
 
13768
# Commands used to build and install a shared archive.
 
13769
archive_cmds=$lt_archive_cmds_CXX
 
13770
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
13771
postinstall_cmds=$lt_postinstall_cmds
 
13772
postuninstall_cmds=$lt_postuninstall_cmds
 
13773
 
 
13774
# Commands used to build a loadable module (assumed same as above if empty)
 
13775
module_cmds=$lt_module_cmds_CXX
 
13776
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
13777
 
 
13778
# Commands to strip libraries.
 
13779
old_striplib=$lt_old_striplib
 
13780
striplib=$lt_striplib
 
13781
 
 
13782
# Dependencies to place before the objects being linked to create a
 
13783
# shared library.
 
13784
predep_objects=$lt_predep_objects_CXX
 
13785
 
 
13786
# Dependencies to place after the objects being linked to create a
 
13787
# shared library.
 
13788
postdep_objects=$lt_postdep_objects_CXX
 
13789
 
 
13790
# Dependencies to place before the objects being linked to create a
 
13791
# shared library.
 
13792
predeps=$lt_predeps_CXX
 
13793
 
 
13794
# Dependencies to place after the objects being linked to create a
 
13795
# shared library.
 
13796
postdeps=$lt_postdeps_CXX
 
13797
 
 
13798
# The directories searched by this compiler when creating a shared
 
13799
# library
 
13800
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
 
13801
 
 
13802
# The library search path used internally by the compiler when linking
 
13803
# a shared library.
 
13804
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
13805
 
 
13806
# Method to check whether dependent libraries are shared objects.
 
13807
deplibs_check_method=$lt_deplibs_check_method
 
13808
 
 
13809
# Command to use when deplibs_check_method == file_magic.
 
13810
file_magic_cmd=$lt_file_magic_cmd
 
13811
 
 
13812
# Flag that allows shared libraries with undefined symbols to be built.
 
13813
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
13814
 
 
13815
# Flag that forces no undefined symbols.
 
13816
no_undefined_flag=$lt_no_undefined_flag_CXX
 
13817
 
 
13818
# Commands used to finish a libtool library installation in a directory.
 
13819
finish_cmds=$lt_finish_cmds
 
13820
 
 
13821
# Same as above, but a single script fragment to be evaled but not shown.
 
13822
finish_eval=$lt_finish_eval
 
13823
 
 
13824
# Take the output of nm and produce a listing of raw symbols and C names.
 
13825
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
13826
 
 
13827
# Transform the output of nm in a proper C declaration
 
13828
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
13829
 
 
13830
# Transform the output of nm in a C name address pair
 
13831
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
13832
 
 
13833
# This is the shared library runtime path variable.
 
13834
runpath_var=$runpath_var
 
13835
 
 
13836
# This is the shared library path variable.
 
13837
shlibpath_var=$shlibpath_var
 
13838
 
 
13839
# Is shlibpath searched before the hard-coded library search path?
 
13840
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
13841
 
 
13842
# How to hardcode a shared library path into an executable.
 
13843
hardcode_action=$hardcode_action_CXX
 
13844
 
 
13845
# Whether we should hardcode library paths into libraries.
 
13846
hardcode_into_libs=$hardcode_into_libs
 
13847
 
 
13848
# Flag to hardcode \$libdir into a binary during linking.
 
13849
# This must work even if \$libdir does not exist.
 
13850
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
13851
 
 
13852
# If ld is used when linking, flag to hardcode \$libdir into
 
13853
# a binary during linking. This must work even if \$libdir does
 
13854
# not exist.
 
13855
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
13856
 
 
13857
# Whether we need a single -rpath flag with a separated argument.
 
13858
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
13859
 
 
13860
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
13861
# resulting binary.
 
13862
hardcode_direct=$hardcode_direct_CXX
 
13863
 
 
13864
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
13865
# resulting binary.
 
13866
hardcode_minus_L=$hardcode_minus_L_CXX
 
13867
 
 
13868
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
13869
# the resulting binary.
 
13870
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
13871
 
 
13872
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
13873
# and all subsequent libraries and executables linked against it.
 
13874
hardcode_automatic=$hardcode_automatic_CXX
 
13875
 
 
13876
# Variables whose values should be saved in libtool wrapper scripts and
 
13877
# restored at relink time.
 
13878
variables_saved_for_relink="$variables_saved_for_relink"
 
13879
 
 
13880
# Whether libtool must link a program against all its dependency libraries.
 
13881
link_all_deplibs=$link_all_deplibs_CXX
 
13882
 
 
13883
# Compile-time system search path for libraries
 
13884
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
13885
 
 
13886
# Run-time system search path for libraries
 
13887
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
13888
 
 
13889
# Fix the shell variable \$srcfile for the compiler.
 
13890
fix_srcfile_path=$lt_fix_srcfile_path
 
13891
 
 
13892
# Set to yes if exported symbols are required.
 
13893
always_export_symbols=$always_export_symbols_CXX
 
13894
 
 
13895
# The commands to list exported symbols.
 
13896
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
13897
 
 
13898
# The commands to extract the exported symbol list from a shared archive.
 
13899
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
13900
 
 
13901
# Symbols that should not be listed in the preloaded symbols.
 
13902
exclude_expsyms=$lt_exclude_expsyms_CXX
 
13903
 
 
13904
# Symbols that must always be exported.
 
13905
include_expsyms=$lt_include_expsyms_CXX
 
13906
 
 
13907
# ### END LIBTOOL TAG CONFIG: $tagname
 
13908
 
 
13909
__EOF__
 
13910
 
 
13911
 
 
13912
else
 
13913
  # If there is no Makefile yet, we rely on a make rule to execute
 
13914
  # `config.status --recheck' to rerun these tests and create the
 
13915
  # libtool script then.
 
13916
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
13917
  if test -f "$ltmain_in"; then
 
13918
    test -f Makefile && make "$ltmain"
 
13919
  fi
 
13920
fi
 
13921
 
 
13922
 
 
13923
ac_ext=c
 
13924
ac_cpp='$CPP $CPPFLAGS'
 
13925
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
13926
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13927
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
13928
 
 
13929
CC=$lt_save_CC
 
13930
LDCXX=$LD
 
13931
LD=$lt_save_LD
 
13932
GCC=$lt_save_GCC
 
13933
with_gnu_ldcxx=$with_gnu_ld
 
13934
with_gnu_ld=$lt_save_with_gnu_ld
 
13935
lt_cv_path_LDCXX=$lt_cv_path_LD
 
13936
lt_cv_path_LD=$lt_save_path_LD
 
13937
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
13938
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
13939
 
 
13940
        else
 
13941
          tagname=""
 
13942
        fi
 
13943
        ;;
 
13944
 
 
13945
      F77)
 
13946
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
13947
 
 
13948
ac_ext=f
 
13949
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
13950
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13951
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
13952
 
 
13953
 
 
13954
archive_cmds_need_lc_F77=no
 
13955
allow_undefined_flag_F77=
 
13956
always_export_symbols_F77=no
 
13957
archive_expsym_cmds_F77=
 
13958
export_dynamic_flag_spec_F77=
 
13959
hardcode_direct_F77=no
 
13960
hardcode_libdir_flag_spec_F77=
 
13961
hardcode_libdir_flag_spec_ld_F77=
 
13962
hardcode_libdir_separator_F77=
 
13963
hardcode_minus_L_F77=no
 
13964
hardcode_automatic_F77=no
 
13965
module_cmds_F77=
 
13966
module_expsym_cmds_F77=
 
13967
link_all_deplibs_F77=unknown
 
13968
old_archive_cmds_F77=$old_archive_cmds
 
13969
no_undefined_flag_F77=
 
13970
whole_archive_flag_spec_F77=
 
13971
enable_shared_with_static_runtimes_F77=no
 
13972
 
 
13973
# Source file extension for f77 test sources.
 
13974
ac_ext=f
 
13975
 
 
13976
# Object file extension for compiled f77 test sources.
 
13977
objext=o
 
13978
objext_F77=$objext
 
13979
 
 
13980
# Code to be used in simple compile tests
 
13981
lt_simple_compile_test_code="\
 
13982
      subroutine t
 
13983
      return
 
13984
      end
 
13985
"
 
13986
 
 
13987
# Code to be used in simple link tests
 
13988
lt_simple_link_test_code="\
 
13989
      program t
 
13990
      end
 
13991
"
 
13992
 
 
13993
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
13994
 
 
13995
# If no C compiler was specified, use CC.
 
13996
LTCC=${LTCC-"$CC"}
 
13997
 
 
13998
# If no C compiler flags were specified, use CFLAGS.
 
13999
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
14000
 
 
14001
# Allow CC to be a program name with arguments.
 
14002
compiler=$CC
 
14003
 
 
14004
 
 
14005
# save warnings/boilerplate of simple test code
 
14006
ac_outfile=conftest.$ac_objext
 
14007
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
14008
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
14009
_lt_compiler_boilerplate=`cat conftest.err`
 
14010
$rm conftest*
 
14011
 
 
14012
ac_outfile=conftest.$ac_objext
 
14013
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
14014
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
14015
_lt_linker_boilerplate=`cat conftest.err`
 
14016
$rm -r conftest*
 
14017
 
 
14018
 
 
14019
# Allow CC to be a program name with arguments.
 
14020
lt_save_CC="$CC"
 
14021
CC=${F77-"f77"}
 
14022
compiler=$CC
 
14023
compiler_F77=$CC
 
14024
for cc_temp in $compiler""; do
 
14025
  case $cc_temp in
 
14026
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
14027
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
14028
    \-*) ;;
 
14029
    *) break;;
 
14030
  esac
 
14031
done
 
14032
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
14033
 
 
14034
 
 
14035
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
14036
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
 
14037
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
14038
$as_echo "$can_build_shared" >&6; }
 
14039
 
 
14040
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
14041
$as_echo_n "checking whether to build shared libraries... " >&6; }
 
14042
test "$can_build_shared" = "no" && enable_shared=no
 
14043
 
 
14044
# On AIX, shared libraries and static libraries use the same namespace, and
 
14045
# are all built from PIC.
 
14046
case $host_os in
 
14047
aix3*)
 
14048
  test "$enable_shared" = yes && enable_static=no
 
14049
  if test -n "$RANLIB"; then
 
14050
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
14051
    postinstall_cmds='$RANLIB $lib'
 
14052
  fi
 
14053
  ;;
 
14054
aix[4-9]*)
 
14055
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
14056
    test "$enable_shared" = yes && enable_static=no
 
14057
  fi
 
14058
  ;;
 
14059
esac
 
14060
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
 
14061
$as_echo "$enable_shared" >&6; }
 
14062
 
 
14063
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
14064
$as_echo_n "checking whether to build static libraries... " >&6; }
 
14065
# Make sure either enable_shared or enable_static is yes.
 
14066
test "$enable_shared" = yes || enable_static=yes
 
14067
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
 
14068
$as_echo "$enable_static" >&6; }
 
14069
 
 
14070
GCC_F77="$G77"
 
14071
LD_F77="$LD"
 
14072
 
 
14073
lt_prog_compiler_wl_F77=
 
14074
lt_prog_compiler_pic_F77=
 
14075
lt_prog_compiler_static_F77=
 
14076
 
 
14077
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
14078
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
14079
 
 
14080
  if test "$GCC" = yes; then
 
14081
    lt_prog_compiler_wl_F77='-Wl,'
 
14082
    lt_prog_compiler_static_F77='-static'
 
14083
 
 
14084
    case $host_os in
 
14085
      aix*)
 
14086
      # All AIX code is PIC.
 
14087
      if test "$host_cpu" = ia64; then
 
14088
        # AIX 5 now supports IA64 processor
 
14089
        lt_prog_compiler_static_F77='-Bstatic'
 
14090
      fi
 
14091
      ;;
 
14092
 
 
14093
    amigaos*)
 
14094
      # FIXME: we need at least 68020 code to build shared libraries, but
 
14095
      # adding the `-m68020' flag to GCC prevents building anything better,
 
14096
      # like `-m68040'.
 
14097
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
 
14098
      ;;
 
14099
 
 
14100
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
14101
      # PIC is the default for these OSes.
 
14102
      ;;
 
14103
 
 
14104
    mingw* | cygwin* | pw32* | os2*)
 
14105
      # This hack is so that the source file can tell whether it is being
 
14106
      # built for inclusion in a dll (and should export symbols for example).
 
14107
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
14108
      # (--disable-auto-import) libraries
 
14109
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
14110
      ;;
 
14111
 
 
14112
    darwin* | rhapsody*)
 
14113
      # PIC is the default on this platform
 
14114
      # Common symbols not allowed in MH_DYLIB files
 
14115
      lt_prog_compiler_pic_F77='-fno-common'
 
14116
      ;;
 
14117
 
 
14118
    interix[3-9]*)
 
14119
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
14120
      # Instead, we relocate shared libraries at runtime.
 
14121
      ;;
 
14122
 
 
14123
    msdosdjgpp*)
 
14124
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
14125
      # on systems that don't support them.
 
14126
      lt_prog_compiler_can_build_shared_F77=no
 
14127
      enable_shared=no
 
14128
      ;;
 
14129
 
 
14130
    sysv4*MP*)
 
14131
      if test -d /usr/nec; then
 
14132
        lt_prog_compiler_pic_F77=-Kconform_pic
 
14133
      fi
 
14134
      ;;
 
14135
 
 
14136
    hpux*)
 
14137
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
14138
      # not for PA HP-UX.
 
14139
      case $host_cpu in
 
14140
      hppa*64*|ia64*)
 
14141
        # +Z the default
 
14142
        ;;
 
14143
      *)
 
14144
        lt_prog_compiler_pic_F77='-fPIC'
 
14145
        ;;
 
14146
      esac
 
14147
      ;;
 
14148
 
 
14149
    *)
 
14150
      lt_prog_compiler_pic_F77='-fPIC'
 
14151
      ;;
 
14152
    esac
 
14153
  else
 
14154
    # PORTME Check for flag to pass linker flags through the system compiler.
 
14155
    case $host_os in
 
14156
    aix*)
 
14157
      lt_prog_compiler_wl_F77='-Wl,'
 
14158
      if test "$host_cpu" = ia64; then
 
14159
        # AIX 5 now supports IA64 processor
 
14160
        lt_prog_compiler_static_F77='-Bstatic'
 
14161
      else
 
14162
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
 
14163
      fi
 
14164
      ;;
 
14165
      darwin*)
 
14166
        # PIC is the default on this platform
 
14167
        # Common symbols not allowed in MH_DYLIB files
 
14168
       case $cc_basename in
 
14169
         xlc*)
 
14170
         lt_prog_compiler_pic_F77='-qnocommon'
 
14171
         lt_prog_compiler_wl_F77='-Wl,'
 
14172
         ;;
 
14173
       esac
 
14174
       ;;
 
14175
 
 
14176
    mingw* | cygwin* | pw32* | os2*)
 
14177
      # This hack is so that the source file can tell whether it is being
 
14178
      # built for inclusion in a dll (and should export symbols for example).
 
14179
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
14180
      ;;
 
14181
 
 
14182
    hpux9* | hpux10* | hpux11*)
 
14183
      lt_prog_compiler_wl_F77='-Wl,'
 
14184
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
14185
      # not for PA HP-UX.
 
14186
      case $host_cpu in
 
14187
      hppa*64*|ia64*)
 
14188
        # +Z the default
 
14189
        ;;
 
14190
      *)
 
14191
        lt_prog_compiler_pic_F77='+Z'
 
14192
        ;;
 
14193
      esac
 
14194
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
14195
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
 
14196
      ;;
 
14197
 
 
14198
    irix5* | irix6* | nonstopux*)
 
14199
      lt_prog_compiler_wl_F77='-Wl,'
 
14200
      # PIC (with -KPIC) is the default.
 
14201
      lt_prog_compiler_static_F77='-non_shared'
 
14202
      ;;
 
14203
 
 
14204
    newsos6)
 
14205
      lt_prog_compiler_pic_F77='-KPIC'
 
14206
      lt_prog_compiler_static_F77='-Bstatic'
 
14207
      ;;
 
14208
 
 
14209
    linux* | k*bsd*-gnu)
 
14210
      case $cc_basename in
 
14211
      icc* | ecc*)
 
14212
        lt_prog_compiler_wl_F77='-Wl,'
 
14213
        lt_prog_compiler_pic_F77='-KPIC'
 
14214
        lt_prog_compiler_static_F77='-static'
 
14215
        ;;
 
14216
      pgcc* | pgf77* | pgf90* | pgf95*)
 
14217
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
14218
        # which looks to be a dead project)
 
14219
        lt_prog_compiler_wl_F77='-Wl,'
 
14220
        lt_prog_compiler_pic_F77='-fpic'
 
14221
        lt_prog_compiler_static_F77='-Bstatic'
 
14222
        ;;
 
14223
      ccc*)
 
14224
        lt_prog_compiler_wl_F77='-Wl,'
 
14225
        # All Alpha code is PIC.
 
14226
        lt_prog_compiler_static_F77='-non_shared'
 
14227
        ;;
 
14228
      *)
 
14229
        case `$CC -V 2>&1 | sed 5q` in
 
14230
        *Sun\ C*)
 
14231
          # Sun C 5.9
 
14232
          lt_prog_compiler_pic_F77='-KPIC'
 
14233
          lt_prog_compiler_static_F77='-Bstatic'
 
14234
          lt_prog_compiler_wl_F77='-Wl,'
 
14235
          ;;
 
14236
        *Sun\ F*)
 
14237
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
14238
          lt_prog_compiler_pic_F77='-KPIC'
 
14239
          lt_prog_compiler_static_F77='-Bstatic'
 
14240
          lt_prog_compiler_wl_F77=''
 
14241
          ;;
 
14242
        esac
 
14243
        ;;
 
14244
      esac
 
14245
      ;;
 
14246
 
 
14247
    osf3* | osf4* | osf5*)
 
14248
      lt_prog_compiler_wl_F77='-Wl,'
 
14249
      # All OSF/1 code is PIC.
 
14250
      lt_prog_compiler_static_F77='-non_shared'
 
14251
      ;;
 
14252
 
 
14253
    rdos*)
 
14254
      lt_prog_compiler_static_F77='-non_shared'
 
14255
      ;;
 
14256
 
 
14257
    solaris*)
 
14258
      lt_prog_compiler_pic_F77='-KPIC'
 
14259
      lt_prog_compiler_static_F77='-Bstatic'
 
14260
      case $cc_basename in
 
14261
      f77* | f90* | f95*)
 
14262
        lt_prog_compiler_wl_F77='-Qoption ld ';;
 
14263
      *)
 
14264
        lt_prog_compiler_wl_F77='-Wl,';;
 
14265
      esac
 
14266
      ;;
 
14267
 
 
14268
    sunos4*)
 
14269
      lt_prog_compiler_wl_F77='-Qoption ld '
 
14270
      lt_prog_compiler_pic_F77='-PIC'
 
14271
      lt_prog_compiler_static_F77='-Bstatic'
 
14272
      ;;
 
14273
 
 
14274
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
14275
      lt_prog_compiler_wl_F77='-Wl,'
 
14276
      lt_prog_compiler_pic_F77='-KPIC'
 
14277
      lt_prog_compiler_static_F77='-Bstatic'
 
14278
      ;;
 
14279
 
 
14280
    sysv4*MP*)
 
14281
      if test -d /usr/nec ;then
 
14282
        lt_prog_compiler_pic_F77='-Kconform_pic'
 
14283
        lt_prog_compiler_static_F77='-Bstatic'
 
14284
      fi
 
14285
      ;;
 
14286
 
 
14287
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
14288
      lt_prog_compiler_wl_F77='-Wl,'
 
14289
      lt_prog_compiler_pic_F77='-KPIC'
 
14290
      lt_prog_compiler_static_F77='-Bstatic'
 
14291
      ;;
 
14292
 
 
14293
    unicos*)
 
14294
      lt_prog_compiler_wl_F77='-Wl,'
 
14295
      lt_prog_compiler_can_build_shared_F77=no
 
14296
      ;;
 
14297
 
 
14298
    uts4*)
 
14299
      lt_prog_compiler_pic_F77='-pic'
 
14300
      lt_prog_compiler_static_F77='-Bstatic'
 
14301
      ;;
 
14302
 
 
14303
    *)
 
14304
      lt_prog_compiler_can_build_shared_F77=no
 
14305
      ;;
 
14306
    esac
 
14307
  fi
 
14308
 
 
14309
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
14310
$as_echo "$lt_prog_compiler_pic_F77" >&6; }
 
14311
 
 
14312
#
 
14313
# Check to make sure the PIC flag actually works.
 
14314
#
 
14315
if test -n "$lt_prog_compiler_pic_F77"; then
 
14316
 
 
14317
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
14318
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
 
14319
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
 
14320
  $as_echo_n "(cached) " >&6
 
14321
else
 
14322
  lt_cv_prog_compiler_pic_works_F77=no
 
14323
  ac_outfile=conftest.$ac_objext
 
14324
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14325
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
 
14326
   # Insert the option either (1) after the last *FLAGS variable, or
 
14327
   # (2) before a word containing "conftest.", or (3) at the end.
 
14328
   # Note that $ac_compile itself does not contain backslashes and begins
 
14329
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14330
   # The option is referenced via a variable to avoid confusing sed.
 
14331
   lt_compile=`echo "$ac_compile" | $SED \
 
14332
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14333
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14334
   -e 's:$: $lt_compiler_flag:'`
 
14335
   (eval echo "\"\$as_me:14335: $lt_compile\"" >&5)
 
14336
   (eval "$lt_compile" 2>conftest.err)
 
14337
   ac_status=$?
 
14338
   cat conftest.err >&5
 
14339
   echo "$as_me:14339: \$? = $ac_status" >&5
 
14340
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
14341
     # The compiler can only warn and ignore the option if not recognized
 
14342
     # So say no if there are warnings other than the usual output.
 
14343
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
14344
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14345
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
14346
       lt_cv_prog_compiler_pic_works_F77=yes
 
14347
     fi
 
14348
   fi
 
14349
   $rm conftest*
 
14350
 
 
14351
fi
 
14352
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
 
14353
$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
 
14354
 
 
14355
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
 
14356
    case $lt_prog_compiler_pic_F77 in
 
14357
     "" | " "*) ;;
 
14358
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
 
14359
     esac
 
14360
else
 
14361
    lt_prog_compiler_pic_F77=
 
14362
     lt_prog_compiler_can_build_shared_F77=no
 
14363
fi
 
14364
 
 
14365
fi
 
14366
case $host_os in
 
14367
  # For platforms which do not support PIC, -DPIC is meaningless:
 
14368
  *djgpp*)
 
14369
    lt_prog_compiler_pic_F77=
 
14370
    ;;
 
14371
  *)
 
14372
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
 
14373
    ;;
 
14374
esac
 
14375
 
 
14376
#
 
14377
# Check to make sure the static flag actually works.
 
14378
#
 
14379
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
 
14380
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
14381
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
14382
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
 
14383
  $as_echo_n "(cached) " >&6
 
14384
else
 
14385
  lt_cv_prog_compiler_static_works_F77=no
 
14386
   save_LDFLAGS="$LDFLAGS"
 
14387
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
14388
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
14389
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
14390
     # The linker can only warn and ignore the option if not recognized
 
14391
     # So say no if there are warnings
 
14392
     if test -s conftest.err; then
 
14393
       # Append any errors to the config.log.
 
14394
       cat conftest.err 1>&5
 
14395
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
14396
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14397
       if diff conftest.exp conftest.er2 >/dev/null; then
 
14398
         lt_cv_prog_compiler_static_works_F77=yes
 
14399
       fi
 
14400
     else
 
14401
       lt_cv_prog_compiler_static_works_F77=yes
 
14402
     fi
 
14403
   fi
 
14404
   $rm -r conftest*
 
14405
   LDFLAGS="$save_LDFLAGS"
 
14406
 
 
14407
fi
 
14408
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
 
14409
$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
 
14410
 
 
14411
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
 
14412
    :
 
14413
else
 
14414
    lt_prog_compiler_static_F77=
 
14415
fi
 
14416
 
 
14417
 
 
14418
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
14419
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
14420
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
 
14421
  $as_echo_n "(cached) " >&6
 
14422
else
 
14423
  lt_cv_prog_compiler_c_o_F77=no
 
14424
   $rm -r conftest 2>/dev/null
 
14425
   mkdir conftest
 
14426
   cd conftest
 
14427
   mkdir out
 
14428
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14429
 
 
14430
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
14431
   # Insert the option either (1) after the last *FLAGS variable, or
 
14432
   # (2) before a word containing "conftest.", or (3) at the end.
 
14433
   # Note that $ac_compile itself does not contain backslashes and begins
 
14434
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14435
   lt_compile=`echo "$ac_compile" | $SED \
 
14436
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14437
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14438
   -e 's:$: $lt_compiler_flag:'`
 
14439
   (eval echo "\"\$as_me:14439: $lt_compile\"" >&5)
 
14440
   (eval "$lt_compile" 2>out/conftest.err)
 
14441
   ac_status=$?
 
14442
   cat out/conftest.err >&5
 
14443
   echo "$as_me:14443: \$? = $ac_status" >&5
 
14444
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
14445
   then
 
14446
     # The compiler can only warn and ignore the option if not recognized
 
14447
     # So say no if there are warnings
 
14448
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
14449
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
14450
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
14451
       lt_cv_prog_compiler_c_o_F77=yes
 
14452
     fi
 
14453
   fi
 
14454
   chmod u+w . 2>&5
 
14455
   $rm conftest*
 
14456
   # SGI C++ compiler will create directory out/ii_files/ for
 
14457
   # template instantiation
 
14458
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
14459
   $rm out/* && rmdir out
 
14460
   cd ..
 
14461
   rmdir conftest
 
14462
   $rm conftest*
 
14463
 
 
14464
fi
 
14465
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
14466
$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
 
14467
 
 
14468
 
 
14469
hard_links="nottested"
 
14470
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
 
14471
  # do not overwrite the value of need_locks provided by the user
 
14472
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
14473
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
14474
  hard_links=yes
 
14475
  $rm conftest*
 
14476
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14477
  touch conftest.a
 
14478
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
14479
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14480
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
 
14481
$as_echo "$hard_links" >&6; }
 
14482
  if test "$hard_links" = no; then
 
14483
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
14484
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
14485
    need_locks=warn
 
14486
  fi
 
14487
else
 
14488
  need_locks=no
 
14489
fi
 
14490
 
 
14491
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
14492
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
14493
 
 
14494
  runpath_var=
 
14495
  allow_undefined_flag_F77=
 
14496
  enable_shared_with_static_runtimes_F77=no
 
14497
  archive_cmds_F77=
 
14498
  archive_expsym_cmds_F77=
 
14499
  old_archive_From_new_cmds_F77=
 
14500
  old_archive_from_expsyms_cmds_F77=
 
14501
  export_dynamic_flag_spec_F77=
 
14502
  whole_archive_flag_spec_F77=
 
14503
  thread_safe_flag_spec_F77=
 
14504
  hardcode_libdir_flag_spec_F77=
 
14505
  hardcode_libdir_flag_spec_ld_F77=
 
14506
  hardcode_libdir_separator_F77=
 
14507
  hardcode_direct_F77=no
 
14508
  hardcode_minus_L_F77=no
 
14509
  hardcode_shlibpath_var_F77=unsupported
 
14510
  link_all_deplibs_F77=unknown
 
14511
  hardcode_automatic_F77=no
 
14512
  module_cmds_F77=
 
14513
  module_expsym_cmds_F77=
 
14514
  always_export_symbols_F77=no
 
14515
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
14516
  # include_expsyms should be a list of space-separated symbols to be *always*
 
14517
  # included in the symbol list
 
14518
  include_expsyms_F77=
 
14519
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
14520
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
14521
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
14522
  # as well as any symbol that contains `d'.
 
14523
  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
14524
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
14525
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
14526
  # the symbol is explicitly referenced.  Since portable code cannot
 
14527
  # rely on this symbol name, it's probably fine to never include it in
 
14528
  # preloaded symbol tables.
 
14529
  # Exclude shared library initialization/finalization symbols.
 
14530
  extract_expsyms_cmds=
 
14531
  # Just being paranoid about ensuring that cc_basename is set.
 
14532
  for cc_temp in $compiler""; do
 
14533
  case $cc_temp in
 
14534
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
14535
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
14536
    \-*) ;;
 
14537
    *) break;;
 
14538
  esac
 
14539
done
 
14540
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
14541
 
 
14542
  case $host_os in
 
14543
  cygwin* | mingw* | pw32*)
 
14544
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
14545
    # When not using gcc, we currently assume that we are using
 
14546
    # Microsoft Visual C++.
 
14547
    if test "$GCC" != yes; then
 
14548
      with_gnu_ld=no
 
14549
    fi
 
14550
    ;;
 
14551
  interix*)
 
14552
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
14553
    with_gnu_ld=yes
 
14554
    ;;
 
14555
  openbsd*)
 
14556
    with_gnu_ld=no
 
14557
    ;;
 
14558
  esac
 
14559
 
 
14560
  ld_shlibs_F77=yes
 
14561
  if test "$with_gnu_ld" = yes; then
 
14562
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
14563
    wlarc='${wl}'
 
14564
 
 
14565
    # Set some defaults for GNU ld with shared library support. These
 
14566
    # are reset later if shared libraries are not supported. Putting them
 
14567
    # here allows them to be overridden if necessary.
 
14568
    runpath_var=LD_RUN_PATH
 
14569
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
14570
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
14571
    # ancient GNU ld didn't support --whole-archive et. al.
 
14572
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
14573
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
14574
      else
 
14575
        whole_archive_flag_spec_F77=
 
14576
    fi
 
14577
    supports_anon_versioning=no
 
14578
    case `$LD -v 2>/dev/null` in
 
14579
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
14580
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
14581
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
14582
      *\ 2.11.*) ;; # other 2.11 versions
 
14583
      *) supports_anon_versioning=yes ;;
 
14584
    esac
 
14585
 
 
14586
    # See if GNU ld supports shared libraries.
 
14587
    case $host_os in
 
14588
    aix[3-9]*)
 
14589
      # On AIX/PPC, the GNU linker is very broken
 
14590
      if test "$host_cpu" != ia64; then
 
14591
        ld_shlibs_F77=no
 
14592
        cat <<EOF 1>&2
 
14593
 
 
14594
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
14595
*** to be unable to reliably create shared libraries on AIX.
 
14596
*** Therefore, libtool is disabling shared libraries support.  If you
 
14597
*** really care for shared libraries, you may want to modify your PATH
 
14598
*** so that a non-GNU linker is found, and then restart.
 
14599
 
 
14600
EOF
 
14601
      fi
 
14602
      ;;
 
14603
 
 
14604
    amigaos*)
 
14605
      archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
14606
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14607
      hardcode_minus_L_F77=yes
 
14608
 
 
14609
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
14610
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
14611
      # to version 4, is to share data among multiple programs linked
 
14612
      # with the same dynamic library.  Since this doesn't match the
 
14613
      # behavior of shared libraries on other platforms, we can't use
 
14614
      # them.
 
14615
      ld_shlibs_F77=no
 
14616
      ;;
 
14617
 
 
14618
    beos*)
 
14619
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14620
        allow_undefined_flag_F77=unsupported
 
14621
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
14622
        # support --undefined.  This deserves some investigation.  FIXME
 
14623
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14624
      else
 
14625
        ld_shlibs_F77=no
 
14626
      fi
 
14627
      ;;
 
14628
 
 
14629
    cygwin* | mingw* | pw32*)
 
14630
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
 
14631
      # as there is no search path for DLLs.
 
14632
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14633
      allow_undefined_flag_F77=unsupported
 
14634
      always_export_symbols_F77=no
 
14635
      enable_shared_with_static_runtimes_F77=yes
 
14636
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
14637
 
 
14638
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
14639
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
14640
        # If the export-symbols file already is a .def file (1st line
 
14641
        # is EXPORTS), use it as is; otherwise, prepend...
 
14642
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
14643
          cp $export_symbols $output_objdir/$soname.def;
 
14644
        else
 
14645
          echo EXPORTS > $output_objdir/$soname.def;
 
14646
          cat $export_symbols >> $output_objdir/$soname.def;
 
14647
        fi~
 
14648
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
14649
      else
 
14650
        ld_shlibs_F77=no
 
14651
      fi
 
14652
      ;;
 
14653
 
 
14654
    interix[3-9]*)
 
14655
      hardcode_direct_F77=no
 
14656
      hardcode_shlibpath_var_F77=no
 
14657
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
14658
      export_dynamic_flag_spec_F77='${wl}-E'
 
14659
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
14660
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
14661
      # default) and relocated if they conflict, which is a slow very memory
 
14662
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
14663
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
14664
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
14665
      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'
 
14666
      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'
 
14667
      ;;
 
14668
 
 
14669
    gnu* | linux* | k*bsd*-gnu)
 
14670
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14671
        tmp_addflag=
 
14672
        case $cc_basename,$host_cpu in
 
14673
        pgcc*)                          # Portland Group C compiler
 
14674
          whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
14675
          tmp_addflag=' $pic_flag'
 
14676
          ;;
 
14677
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
14678
          whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
14679
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
14680
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
14681
          tmp_addflag=' -i_dynamic' ;;
 
14682
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
14683
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
14684
        ifc* | ifort*)                  # Intel Fortran compiler
 
14685
          tmp_addflag=' -nofor_main' ;;
 
14686
        esac
 
14687
        case `$CC -V 2>&1 | sed 5q` in
 
14688
        *Sun\ C*)                       # Sun C 5.9
 
14689
          whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
14690
          tmp_sharedflag='-G' ;;
 
14691
        *Sun\ F*)                       # Sun Fortran 8.3
 
14692
          tmp_sharedflag='-G' ;;
 
14693
        *)
 
14694
          tmp_sharedflag='-shared' ;;
 
14695
        esac
 
14696
        archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14697
 
 
14698
        if test $supports_anon_versioning = yes; then
 
14699
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
14700
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
14701
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
14702
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
14703
        fi
 
14704
      else
 
14705
        ld_shlibs_F77=no
 
14706
      fi
 
14707
      ;;
 
14708
 
 
14709
    netbsd*)
 
14710
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14711
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
14712
        wlarc=
 
14713
      else
 
14714
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14715
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14716
      fi
 
14717
      ;;
 
14718
 
 
14719
    solaris*)
 
14720
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
14721
        ld_shlibs_F77=no
 
14722
        cat <<EOF 1>&2
 
14723
 
 
14724
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
14725
*** create shared libraries on Solaris systems.  Therefore, libtool
 
14726
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
14727
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
14728
*** your PATH or compiler configuration so that the native linker is
 
14729
*** used, and then restart.
 
14730
 
 
14731
EOF
 
14732
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14733
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14734
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14735
      else
 
14736
        ld_shlibs_F77=no
 
14737
      fi
 
14738
      ;;
 
14739
 
 
14740
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
14741
      case `$LD -v 2>&1` in
 
14742
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
14743
        ld_shlibs_F77=no
 
14744
        cat <<_LT_EOF 1>&2
 
14745
 
 
14746
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
14747
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
14748
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
14749
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
14750
*** your PATH or compiler configuration so that the native linker is
 
14751
*** used, and then restart.
 
14752
 
 
14753
_LT_EOF
 
14754
        ;;
 
14755
        *)
 
14756
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14757
            hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
14758
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
14759
            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
14760
          else
 
14761
            ld_shlibs_F77=no
 
14762
          fi
 
14763
        ;;
 
14764
      esac
 
14765
      ;;
 
14766
 
 
14767
    sunos4*)
 
14768
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14769
      wlarc=
 
14770
      hardcode_direct_F77=yes
 
14771
      hardcode_shlibpath_var_F77=no
 
14772
      ;;
 
14773
 
 
14774
    *)
 
14775
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14776
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14777
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14778
      else
 
14779
        ld_shlibs_F77=no
 
14780
      fi
 
14781
      ;;
 
14782
    esac
 
14783
 
 
14784
    if test "$ld_shlibs_F77" = no; then
 
14785
      runpath_var=
 
14786
      hardcode_libdir_flag_spec_F77=
 
14787
      export_dynamic_flag_spec_F77=
 
14788
      whole_archive_flag_spec_F77=
 
14789
    fi
 
14790
  else
 
14791
    # PORTME fill in a description of your system's linker (not GNU ld)
 
14792
    case $host_os in
 
14793
    aix3*)
 
14794
      allow_undefined_flag_F77=unsupported
 
14795
      always_export_symbols_F77=yes
 
14796
      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
 
14797
      # Note: this linker hardcodes the directories in LIBPATH if there
 
14798
      # are no directories specified by -L.
 
14799
      hardcode_minus_L_F77=yes
 
14800
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
14801
        # Neither direct hardcoding nor static linking is supported with a
 
14802
        # broken collect2.
 
14803
        hardcode_direct_F77=unsupported
 
14804
      fi
 
14805
      ;;
 
14806
 
 
14807
    aix[4-9]*)
 
14808
      if test "$host_cpu" = ia64; then
 
14809
        # On IA64, the linker does run time linking by default, so we don't
 
14810
        # have to do anything special.
 
14811
        aix_use_runtimelinking=no
 
14812
        exp_sym_flag='-Bexport'
 
14813
        no_entry_flag=""
 
14814
      else
 
14815
        # If we're using GNU nm, then we don't want the "-C" option.
 
14816
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
14817
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
14818
          export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
14819
        else
 
14820
          export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
14821
        fi
 
14822
        aix_use_runtimelinking=no
 
14823
 
 
14824
        # Test if we are trying to use run time linking or normal
 
14825
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
14826
        # need to do runtime linking.
 
14827
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
14828
          for ld_flag in $LDFLAGS; do
 
14829
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
14830
            aix_use_runtimelinking=yes
 
14831
            break
 
14832
          fi
 
14833
          done
 
14834
          ;;
 
14835
        esac
 
14836
 
 
14837
        exp_sym_flag='-bexport'
 
14838
        no_entry_flag='-bnoentry'
 
14839
      fi
 
14840
 
 
14841
      # When large executables or shared objects are built, AIX ld can
 
14842
      # have problems creating the table of contents.  If linking a library
 
14843
      # or program results in "error TOC overflow" add -mminimal-toc to
 
14844
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
14845
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
14846
 
 
14847
      archive_cmds_F77=''
 
14848
      hardcode_direct_F77=yes
 
14849
      hardcode_libdir_separator_F77=':'
 
14850
      link_all_deplibs_F77=yes
 
14851
 
 
14852
      if test "$GCC" = yes; then
 
14853
        case $host_os in aix4.[012]|aix4.[012].*)
 
14854
        # We only want to do this on AIX 4.2 and lower, the check
 
14855
        # below for broken collect2 doesn't work under 4.3+
 
14856
          collect2name=`${CC} -print-prog-name=collect2`
 
14857
          if test -f "$collect2name" && \
 
14858
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
14859
          then
 
14860
          # We have reworked collect2
 
14861
          :
 
14862
          else
 
14863
          # We have old collect2
 
14864
          hardcode_direct_F77=unsupported
 
14865
          # It fails to find uninstalled libraries when the uninstalled
 
14866
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
14867
          # to unsupported forces relinking
 
14868
          hardcode_minus_L_F77=yes
 
14869
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
14870
          hardcode_libdir_separator_F77=
 
14871
          fi
 
14872
          ;;
 
14873
        esac
 
14874
        shared_flag='-shared'
 
14875
        if test "$aix_use_runtimelinking" = yes; then
 
14876
          shared_flag="$shared_flag "'${wl}-G'
 
14877
        fi
 
14878
      else
 
14879
        # not using gcc
 
14880
        if test "$host_cpu" = ia64; then
 
14881
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
14882
        # chokes on -Wl,-G. The following line is correct:
 
14883
          shared_flag='-G'
 
14884
        else
 
14885
          if test "$aix_use_runtimelinking" = yes; then
 
14886
            shared_flag='${wl}-G'
 
14887
          else
 
14888
            shared_flag='${wl}-bM:SRE'
 
14889
          fi
 
14890
        fi
 
14891
      fi
 
14892
 
 
14893
      # It seems that -bexpall does not export symbols beginning with
 
14894
      # underscore (_), so it is better to generate a list of symbols to export.
 
14895
      always_export_symbols_F77=yes
 
14896
      if test "$aix_use_runtimelinking" = yes; then
 
14897
        # Warning - without using the other runtime loading flags (-brtl),
 
14898
        # -berok will link without error, but may produce a broken library.
 
14899
        allow_undefined_flag_F77='-berok'
 
14900
       # Determine the default libpath from the value encoded in an empty executable.
 
14901
       cat >conftest.$ac_ext <<_ACEOF
 
14902
      program main
 
14903
 
 
14904
      end
 
14905
_ACEOF
 
14906
rm -f conftest.$ac_objext conftest$ac_exeext
 
14907
if { (ac_try="$ac_link"
 
14908
case "(($ac_try" in
 
14909
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14910
  *) ac_try_echo=$ac_try;;
 
14911
esac
 
14912
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
14913
$as_echo "$ac_try_echo") >&5
 
14914
  (eval "$ac_link") 2>conftest.er1
 
14915
  ac_status=$?
 
14916
  grep -v '^ *+' conftest.er1 >conftest.err
 
14917
  rm -f conftest.er1
 
14918
  cat conftest.err >&5
 
14919
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14920
  (exit $ac_status); } && {
 
14921
         test -z "$ac_f77_werror_flag" ||
 
14922
         test ! -s conftest.err
 
14923
       } && test -s conftest$ac_exeext && {
 
14924
         test "$cross_compiling" = yes ||
 
14925
         $as_test_x conftest$ac_exeext
 
14926
       }; then
 
14927
 
 
14928
lt_aix_libpath_sed='
 
14929
    /Import File Strings/,/^$/ {
 
14930
        /^0/ {
 
14931
            s/^0  *\(.*\)$/\1/
 
14932
            p
 
14933
        }
 
14934
    }'
 
14935
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
14936
# Check for a 64-bit object if we didn't find anything.
 
14937
if test -z "$aix_libpath"; then
 
14938
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
14939
fi
 
14940
else
 
14941
  $as_echo "$as_me: failed program was:" >&5
 
14942
sed 's/^/| /' conftest.$ac_ext >&5
 
14943
 
 
14944
 
 
14945
fi
 
14946
 
 
14947
rm -rf conftest.dSYM
 
14948
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
14949
      conftest$ac_exeext conftest.$ac_ext
 
14950
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
14951
 
 
14952
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
14953
        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"
 
14954
       else
 
14955
        if test "$host_cpu" = ia64; then
 
14956
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
 
14957
          allow_undefined_flag_F77="-z nodefs"
 
14958
          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"
 
14959
        else
 
14960
         # Determine the default libpath from the value encoded in an empty executable.
 
14961
         cat >conftest.$ac_ext <<_ACEOF
 
14962
      program main
 
14963
 
 
14964
      end
 
14965
_ACEOF
 
14966
rm -f conftest.$ac_objext conftest$ac_exeext
 
14967
if { (ac_try="$ac_link"
 
14968
case "(($ac_try" in
 
14969
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14970
  *) ac_try_echo=$ac_try;;
 
14971
esac
 
14972
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
14973
$as_echo "$ac_try_echo") >&5
 
14974
  (eval "$ac_link") 2>conftest.er1
 
14975
  ac_status=$?
 
14976
  grep -v '^ *+' conftest.er1 >conftest.err
 
14977
  rm -f conftest.er1
 
14978
  cat conftest.err >&5
 
14979
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14980
  (exit $ac_status); } && {
 
14981
         test -z "$ac_f77_werror_flag" ||
 
14982
         test ! -s conftest.err
 
14983
       } && test -s conftest$ac_exeext && {
 
14984
         test "$cross_compiling" = yes ||
 
14985
         $as_test_x conftest$ac_exeext
 
14986
       }; then
 
14987
 
 
14988
lt_aix_libpath_sed='
 
14989
    /Import File Strings/,/^$/ {
 
14990
        /^0/ {
 
14991
            s/^0  *\(.*\)$/\1/
 
14992
            p
 
14993
        }
 
14994
    }'
 
14995
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
14996
# Check for a 64-bit object if we didn't find anything.
 
14997
if test -z "$aix_libpath"; then
 
14998
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
14999
fi
 
15000
else
 
15001
  $as_echo "$as_me: failed program was:" >&5
 
15002
sed 's/^/| /' conftest.$ac_ext >&5
 
15003
 
 
15004
 
 
15005
fi
 
15006
 
 
15007
rm -rf conftest.dSYM
 
15008
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
15009
      conftest$ac_exeext conftest.$ac_ext
 
15010
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
15011
 
 
15012
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
15013
          # Warning - without using the other run time loading flags,
 
15014
          # -berok will link without error, but may produce a broken library.
 
15015
          no_undefined_flag_F77=' ${wl}-bernotok'
 
15016
          allow_undefined_flag_F77=' ${wl}-berok'
 
15017
          # Exported symbols can be pulled into shared objects from archives
 
15018
          whole_archive_flag_spec_F77='$convenience'
 
15019
          archive_cmds_need_lc_F77=yes
 
15020
          # This is similar to how AIX traditionally builds its shared libraries.
 
15021
          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'
 
15022
        fi
 
15023
      fi
 
15024
      ;;
 
15025
 
 
15026
    amigaos*)
 
15027
      archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
15028
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15029
      hardcode_minus_L_F77=yes
 
15030
      # see comment about different semantics on the GNU ld section
 
15031
      ld_shlibs_F77=no
 
15032
      ;;
 
15033
 
 
15034
    bsdi[45]*)
 
15035
      export_dynamic_flag_spec_F77=-rdynamic
 
15036
      ;;
 
15037
 
 
15038
    cygwin* | mingw* | pw32*)
 
15039
      # When not using gcc, we currently assume that we are using
 
15040
      # Microsoft Visual C++.
 
15041
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
15042
      # no search path for DLLs.
 
15043
      hardcode_libdir_flag_spec_F77=' '
 
15044
      allow_undefined_flag_F77=unsupported
 
15045
      # Tell ltmain to make .lib files, not .a files.
 
15046
      libext=lib
 
15047
      # Tell ltmain to make .dll files, not .so files.
 
15048
      shrext_cmds=".dll"
 
15049
      # FIXME: Setting linknames here is a bad hack.
 
15050
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
15051
      # The linker will automatically build a .lib file if we build a DLL.
 
15052
      old_archive_From_new_cmds_F77='true'
 
15053
      # FIXME: Should let the user specify the lib program.
 
15054
      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
15055
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
 
15056
      enable_shared_with_static_runtimes_F77=yes
 
15057
      ;;
 
15058
 
 
15059
    darwin* | rhapsody*)
 
15060
      case $host_os in
 
15061
        rhapsody* | darwin1.[012])
 
15062
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
 
15063
         ;;
 
15064
       *) # Darwin 1.3 on
 
15065
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
15066
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
15067
         else
 
15068
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
15069
             10.[012])
 
15070
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
15071
               ;;
 
15072
             10.*)
 
15073
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
 
15074
               ;;
 
15075
           esac
 
15076
         fi
 
15077
         ;;
 
15078
      esac
 
15079
      archive_cmds_need_lc_F77=no
 
15080
      hardcode_direct_F77=no
 
15081
      hardcode_automatic_F77=yes
 
15082
      hardcode_shlibpath_var_F77=unsupported
 
15083
      whole_archive_flag_spec_F77=''
 
15084
      link_all_deplibs_F77=yes
 
15085
    if test "$GCC" = yes ; then
 
15086
        output_verbose_link_cmd='echo'
 
15087
        archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
15088
        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
15089
        archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
15090
        module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
 
15091
    else
 
15092
      case $cc_basename in
 
15093
        xlc*)
 
15094
         output_verbose_link_cmd='echo'
 
15095
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
15096
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
15097
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
15098
         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
15099
          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
15100
          ;;
 
15101
       *)
 
15102
         ld_shlibs_F77=no
 
15103
          ;;
 
15104
      esac
 
15105
    fi
 
15106
      ;;
 
15107
 
 
15108
    dgux*)
 
15109
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15110
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15111
      hardcode_shlibpath_var_F77=no
 
15112
      ;;
 
15113
 
 
15114
    freebsd1*)
 
15115
      ld_shlibs_F77=no
 
15116
      ;;
 
15117
 
 
15118
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
15119
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
15120
    # does not break anything, and helps significantly (at the cost of a little
 
15121
    # extra space).
 
15122
    freebsd2.2*)
 
15123
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
15124
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15125
      hardcode_direct_F77=yes
 
15126
      hardcode_shlibpath_var_F77=no
 
15127
      ;;
 
15128
 
 
15129
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
15130
    freebsd2*)
 
15131
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15132
      hardcode_direct_F77=yes
 
15133
      hardcode_minus_L_F77=yes
 
15134
      hardcode_shlibpath_var_F77=no
 
15135
      ;;
 
15136
 
 
15137
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
15138
    freebsd* | dragonfly*)
 
15139
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
15140
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15141
      hardcode_direct_F77=yes
 
15142
      hardcode_shlibpath_var_F77=no
 
15143
      ;;
 
15144
 
 
15145
    hpux9*)
 
15146
      if test "$GCC" = yes; then
 
15147
        archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
15148
      else
 
15149
        archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
15150
      fi
 
15151
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15152
      hardcode_libdir_separator_F77=:
 
15153
      hardcode_direct_F77=yes
 
15154
 
 
15155
      # hardcode_minus_L: Not really in the search PATH,
 
15156
      # but as the default location of the library.
 
15157
      hardcode_minus_L_F77=yes
 
15158
      export_dynamic_flag_spec_F77='${wl}-E'
 
15159
      ;;
 
15160
 
 
15161
    hpux10*)
 
15162
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
15163
        archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15164
      else
 
15165
        archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
15166
      fi
 
15167
      if test "$with_gnu_ld" = no; then
 
15168
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15169
        hardcode_libdir_separator_F77=:
 
15170
 
 
15171
        hardcode_direct_F77=yes
 
15172
        export_dynamic_flag_spec_F77='${wl}-E'
 
15173
 
 
15174
        # hardcode_minus_L: Not really in the search PATH,
 
15175
        # but as the default location of the library.
 
15176
        hardcode_minus_L_F77=yes
 
15177
      fi
 
15178
      ;;
 
15179
 
 
15180
    hpux11*)
 
15181
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
15182
        case $host_cpu in
 
15183
        hppa*64*)
 
15184
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15185
          ;;
 
15186
        ia64*)
 
15187
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
15188
          ;;
 
15189
        *)
 
15190
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15191
          ;;
 
15192
        esac
 
15193
      else
 
15194
        case $host_cpu in
 
15195
        hppa*64*)
 
15196
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15197
          ;;
 
15198
        ia64*)
 
15199
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
15200
          ;;
 
15201
        *)
 
15202
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15203
          ;;
 
15204
        esac
 
15205
      fi
 
15206
      if test "$with_gnu_ld" = no; then
 
15207
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15208
        hardcode_libdir_separator_F77=:
 
15209
 
 
15210
        case $host_cpu in
 
15211
        hppa*64*|ia64*)
 
15212
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
 
15213
          hardcode_direct_F77=no
 
15214
          hardcode_shlibpath_var_F77=no
 
15215
          ;;
 
15216
        *)
 
15217
          hardcode_direct_F77=yes
 
15218
          export_dynamic_flag_spec_F77='${wl}-E'
 
15219
 
 
15220
          # hardcode_minus_L: Not really in the search PATH,
 
15221
          # but as the default location of the library.
 
15222
          hardcode_minus_L_F77=yes
 
15223
          ;;
 
15224
        esac
 
15225
      fi
 
15226
      ;;
 
15227
 
 
15228
    irix5* | irix6* | nonstopux*)
 
15229
      if test "$GCC" = yes; then
 
15230
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
15231
      else
 
15232
        archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
15233
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
 
15234
      fi
 
15235
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15236
      hardcode_libdir_separator_F77=:
 
15237
      link_all_deplibs_F77=yes
 
15238
      ;;
 
15239
 
 
15240
    netbsd*)
 
15241
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15242
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
15243
      else
 
15244
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
15245
      fi
 
15246
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15247
      hardcode_direct_F77=yes
 
15248
      hardcode_shlibpath_var_F77=no
 
15249
      ;;
 
15250
 
 
15251
    newsos6)
 
15252
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15253
      hardcode_direct_F77=yes
 
15254
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15255
      hardcode_libdir_separator_F77=:
 
15256
      hardcode_shlibpath_var_F77=no
 
15257
      ;;
 
15258
 
 
15259
    openbsd*)
 
15260
      if test -f /usr/libexec/ld.so; then
 
15261
        hardcode_direct_F77=yes
 
15262
        hardcode_shlibpath_var_F77=no
 
15263
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
15264
          archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15265
          archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
15266
          hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15267
          export_dynamic_flag_spec_F77='${wl}-E'
 
15268
        else
 
15269
          case $host_os in
 
15270
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
15271
             archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15272
             hardcode_libdir_flag_spec_F77='-R$libdir'
 
15273
             ;;
 
15274
           *)
 
15275
             archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15276
             hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15277
             ;;
 
15278
          esac
 
15279
        fi
 
15280
      else
 
15281
        ld_shlibs_F77=no
 
15282
      fi
 
15283
      ;;
 
15284
 
 
15285
    os2*)
 
15286
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15287
      hardcode_minus_L_F77=yes
 
15288
      allow_undefined_flag_F77=unsupported
 
15289
      archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
 
15290
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
15291
      ;;
 
15292
 
 
15293
    osf3*)
 
15294
      if test "$GCC" = yes; then
 
15295
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
15296
        archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
15297
      else
 
15298
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
15299
        archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
15300
      fi
 
15301
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15302
      hardcode_libdir_separator_F77=:
 
15303
      ;;
 
15304
 
 
15305
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
15306
      if test "$GCC" = yes; then
 
15307
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
15308
        archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
15309
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15310
      else
 
15311
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
15312
        archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
15313
        archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
15314
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
15315
 
 
15316
        # Both c and cxx compiler support -rpath directly
 
15317
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
 
15318
      fi
 
15319
      hardcode_libdir_separator_F77=:
 
15320
      ;;
 
15321
 
 
15322
    solaris*)
 
15323
      no_undefined_flag_F77=' -z text'
 
15324
      if test "$GCC" = yes; then
 
15325
        wlarc='${wl}'
 
15326
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15327
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15328
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
15329
      else
 
15330
        wlarc=''
 
15331
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15332
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15333
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
15334
      fi
 
15335
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15336
      hardcode_shlibpath_var_F77=no
 
15337
      case $host_os in
 
15338
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
15339
      *)
 
15340
        # The compiler driver will combine and reorder linker options,
 
15341
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
15342
        # but is careful enough not to reorder.
 
15343
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
15344
        if test "$GCC" = yes; then
 
15345
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
15346
        else
 
15347
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
 
15348
        fi
 
15349
        ;;
 
15350
      esac
 
15351
      link_all_deplibs_F77=yes
 
15352
      ;;
 
15353
 
 
15354
    sunos4*)
 
15355
      if test "x$host_vendor" = xsequent; then
 
15356
        # Use $CC to link under sequent, because it throws in some extra .o
 
15357
        # files that make .init and .fini sections work.
 
15358
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
15359
      else
 
15360
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
15361
      fi
 
15362
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15363
      hardcode_direct_F77=yes
 
15364
      hardcode_minus_L_F77=yes
 
15365
      hardcode_shlibpath_var_F77=no
 
15366
      ;;
 
15367
 
 
15368
    sysv4)
 
15369
      case $host_vendor in
 
15370
        sni)
 
15371
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15372
          hardcode_direct_F77=yes # is this really true???
 
15373
        ;;
 
15374
        siemens)
 
15375
          ## LD is ld it makes a PLAMLIB
 
15376
          ## CC just makes a GrossModule.
 
15377
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
15378
          reload_cmds_F77='$CC -r -o $output$reload_objs'
 
15379
          hardcode_direct_F77=no
 
15380
        ;;
 
15381
        motorola)
 
15382
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15383
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
 
15384
        ;;
 
15385
      esac
 
15386
      runpath_var='LD_RUN_PATH'
 
15387
      hardcode_shlibpath_var_F77=no
 
15388
      ;;
 
15389
 
 
15390
    sysv4.3*)
 
15391
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15392
      hardcode_shlibpath_var_F77=no
 
15393
      export_dynamic_flag_spec_F77='-Bexport'
 
15394
      ;;
 
15395
 
 
15396
    sysv4*MP*)
 
15397
      if test -d /usr/nec; then
 
15398
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15399
        hardcode_shlibpath_var_F77=no
 
15400
        runpath_var=LD_RUN_PATH
 
15401
        hardcode_runpath_var=yes
 
15402
        ld_shlibs_F77=yes
 
15403
      fi
 
15404
      ;;
 
15405
 
 
15406
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
15407
      no_undefined_flag_F77='${wl}-z,text'
 
15408
      archive_cmds_need_lc_F77=no
 
15409
      hardcode_shlibpath_var_F77=no
 
15410
      runpath_var='LD_RUN_PATH'
 
15411
 
 
15412
      if test "$GCC" = yes; then
 
15413
        archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15414
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15415
      else
 
15416
        archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15417
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15418
      fi
 
15419
      ;;
 
15420
 
 
15421
    sysv5* | sco3.2v5* | sco5v6*)
 
15422
      # Note: We can NOT use -z defs as we might desire, because we do not
 
15423
      # link with -lc, and that would cause any symbols used from libc to
 
15424
      # always be unresolved, which means just about no library would
 
15425
      # ever link correctly.  If we're not using GNU ld we use -z text
 
15426
      # though, which does catch some bad symbols but isn't as heavy-handed
 
15427
      # as -z defs.
 
15428
      no_undefined_flag_F77='${wl}-z,text'
 
15429
      allow_undefined_flag_F77='${wl}-z,nodefs'
 
15430
      archive_cmds_need_lc_F77=no
 
15431
      hardcode_shlibpath_var_F77=no
 
15432
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
15433
      hardcode_libdir_separator_F77=':'
 
15434
      link_all_deplibs_F77=yes
 
15435
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
15436
      runpath_var='LD_RUN_PATH'
 
15437
 
 
15438
      if test "$GCC" = yes; then
 
15439
        archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15440
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15441
      else
 
15442
        archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15443
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15444
      fi
 
15445
      ;;
 
15446
 
 
15447
    uts4*)
 
15448
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15449
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15450
      hardcode_shlibpath_var_F77=no
 
15451
      ;;
 
15452
 
 
15453
    *)
 
15454
      ld_shlibs_F77=no
 
15455
      ;;
 
15456
    esac
 
15457
  fi
 
15458
 
 
15459
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
15460
$as_echo "$ld_shlibs_F77" >&6; }
 
15461
test "$ld_shlibs_F77" = no && can_build_shared=no
 
15462
 
 
15463
#
 
15464
# Do we need to explicitly link libc?
 
15465
#
 
15466
case "x$archive_cmds_need_lc_F77" in
 
15467
x|xyes)
 
15468
  # Assume -lc should be added
 
15469
  archive_cmds_need_lc_F77=yes
 
15470
 
 
15471
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
15472
    case $archive_cmds_F77 in
 
15473
    *'~'*)
 
15474
      # FIXME: we may have to deal with multi-command sequences.
 
15475
      ;;
 
15476
    '$CC '*)
 
15477
      # Test whether the compiler implicitly links with -lc since on some
 
15478
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
15479
      # to ld, don't add -lc before -lgcc.
 
15480
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
15481
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
15482
      $rm conftest*
 
15483
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15484
 
 
15485
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15486
  (eval $ac_compile) 2>&5
 
15487
  ac_status=$?
 
15488
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15489
  (exit $ac_status); } 2>conftest.err; then
 
15490
        soname=conftest
 
15491
        lib=conftest
 
15492
        libobjs=conftest.$ac_objext
 
15493
        deplibs=
 
15494
        wl=$lt_prog_compiler_wl_F77
 
15495
        pic_flag=$lt_prog_compiler_pic_F77
 
15496
        compiler_flags=-v
 
15497
        linker_flags=-v
 
15498
        verstring=
 
15499
        output_objdir=.
 
15500
        libname=conftest
 
15501
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
 
15502
        allow_undefined_flag_F77=
 
15503
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
15504
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
15505
  ac_status=$?
 
15506
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15507
  (exit $ac_status); }
 
15508
        then
 
15509
          archive_cmds_need_lc_F77=no
 
15510
        else
 
15511
          archive_cmds_need_lc_F77=yes
 
15512
        fi
 
15513
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
 
15514
      else
 
15515
        cat conftest.err 1>&5
 
15516
      fi
 
15517
      $rm conftest*
 
15518
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
15519
$as_echo "$archive_cmds_need_lc_F77" >&6; }
 
15520
      ;;
 
15521
    esac
 
15522
  fi
 
15523
  ;;
 
15524
esac
 
15525
 
 
15526
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
15527
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
15528
library_names_spec=
 
15529
libname_spec='lib$name'
 
15530
soname_spec=
 
15531
shrext_cmds=".so"
 
15532
postinstall_cmds=
 
15533
postuninstall_cmds=
 
15534
finish_cmds=
 
15535
finish_eval=
 
15536
shlibpath_var=
 
15537
shlibpath_overrides_runpath=unknown
 
15538
version_type=none
 
15539
dynamic_linker="$host_os ld.so"
 
15540
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
15541
 
 
15542
need_lib_prefix=unknown
 
15543
hardcode_into_libs=no
 
15544
 
 
15545
# when you set need_version to no, make sure it does not cause -set_version
 
15546
# flags to be left without arguments
 
15547
need_version=unknown
 
15548
 
 
15549
case $host_os in
 
15550
aix3*)
 
15551
  version_type=linux
 
15552
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
15553
  shlibpath_var=LIBPATH
 
15554
 
 
15555
  # AIX 3 has no versioning support, so we append a major version to the name.
 
15556
  soname_spec='${libname}${release}${shared_ext}$major'
 
15557
  ;;
 
15558
 
 
15559
aix[4-9]*)
 
15560
  version_type=linux
 
15561
  need_lib_prefix=no
 
15562
  need_version=no
 
15563
  hardcode_into_libs=yes
 
15564
  if test "$host_cpu" = ia64; then
 
15565
    # AIX 5 supports IA64
 
15566
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
15567
    shlibpath_var=LD_LIBRARY_PATH
 
15568
  else
 
15569
    # With GCC up to 2.95.x, collect2 would create an import file
 
15570
    # for dependence libraries.  The import file would start with
 
15571
    # the line `#! .'.  This would cause the generated library to
 
15572
    # depend on `.', always an invalid library.  This was fixed in
 
15573
    # development snapshots of GCC prior to 3.0.
 
15574
    case $host_os in
 
15575
      aix4 | aix4.[01] | aix4.[01].*)
 
15576
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
15577
           echo ' yes '
 
15578
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
15579
        :
 
15580
      else
 
15581
        can_build_shared=no
 
15582
      fi
 
15583
      ;;
 
15584
    esac
 
15585
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
15586
    # soname into executable. Probably we can add versioning support to
 
15587
    # collect2, so additional links can be useful in future.
 
15588
    if test "$aix_use_runtimelinking" = yes; then
 
15589
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
15590
      # instead of lib<name>.a to let people know that these are not
 
15591
      # typical AIX shared libraries.
 
15592
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15593
    else
 
15594
      # We preserve .a as extension for shared libraries through AIX4.2
 
15595
      # and later when we are not doing run time linking.
 
15596
      library_names_spec='${libname}${release}.a $libname.a'
 
15597
      soname_spec='${libname}${release}${shared_ext}$major'
 
15598
    fi
 
15599
    shlibpath_var=LIBPATH
 
15600
  fi
 
15601
  ;;
 
15602
 
 
15603
amigaos*)
 
15604
  library_names_spec='$libname.ixlibrary $libname.a'
 
15605
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
15606
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
15607
  ;;
 
15608
 
 
15609
beos*)
 
15610
  library_names_spec='${libname}${shared_ext}'
 
15611
  dynamic_linker="$host_os ld.so"
 
15612
  shlibpath_var=LIBRARY_PATH
 
15613
  ;;
 
15614
 
 
15615
bsdi[45]*)
 
15616
  version_type=linux
 
15617
  need_version=no
 
15618
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15619
  soname_spec='${libname}${release}${shared_ext}$major'
 
15620
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
15621
  shlibpath_var=LD_LIBRARY_PATH
 
15622
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
15623
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
15624
  # the default ld.so.conf also contains /usr/contrib/lib and
 
15625
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
15626
  # libtool to hard-code these into programs
 
15627
  ;;
 
15628
 
 
15629
cygwin* | mingw* | pw32*)
 
15630
  version_type=windows
 
15631
  shrext_cmds=".dll"
 
15632
  need_version=no
 
15633
  need_lib_prefix=no
 
15634
 
 
15635
  case $GCC,$host_os in
 
15636
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
15637
    library_names_spec='$libname.dll.a'
 
15638
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
15639
    postinstall_cmds='base_file=`basename \${file}`~
 
15640
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
15641
      dldir=$destdir/`dirname \$dlpath`~
 
15642
      test -d \$dldir || mkdir -p \$dldir~
 
15643
      $install_prog $dir/$dlname \$dldir/$dlname~
 
15644
      chmod a+x \$dldir/$dlname'
 
15645
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
15646
      dlpath=$dir/\$dldll~
 
15647
       $rm \$dlpath'
 
15648
    shlibpath_overrides_runpath=yes
 
15649
 
 
15650
    case $host_os in
 
15651
    cygwin*)
 
15652
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
15653
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15654
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
15655
      ;;
 
15656
    mingw*)
 
15657
      # MinGW DLLs use traditional 'lib' prefix
 
15658
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15659
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
15660
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
15661
        # It is most probably a Windows format PATH printed by
 
15662
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
15663
        # path with ; separators, and with drive letters. We can handle the
 
15664
        # drive letters (cygwin fileutils understands them), so leave them,
 
15665
        # especially as we might pass files found there to a mingw objdump,
 
15666
        # which wouldn't understand a cygwinified path. Ahh.
 
15667
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
15668
      else
 
15669
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
15670
      fi
 
15671
      ;;
 
15672
    pw32*)
 
15673
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
15674
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15675
      ;;
 
15676
    esac
 
15677
    ;;
 
15678
 
 
15679
  *)
 
15680
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
15681
    ;;
 
15682
  esac
 
15683
  dynamic_linker='Win32 ld.exe'
 
15684
  # FIXME: first we should search . and the directory the executable is in
 
15685
  shlibpath_var=PATH
 
15686
  ;;
 
15687
 
 
15688
darwin* | rhapsody*)
 
15689
  dynamic_linker="$host_os dyld"
 
15690
  version_type=darwin
 
15691
  need_lib_prefix=no
 
15692
  need_version=no
 
15693
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
15694
  soname_spec='${libname}${release}${major}$shared_ext'
 
15695
  shlibpath_overrides_runpath=yes
 
15696
  shlibpath_var=DYLD_LIBRARY_PATH
 
15697
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
15698
 
 
15699
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
15700
  ;;
 
15701
 
 
15702
dgux*)
 
15703
  version_type=linux
 
15704
  need_lib_prefix=no
 
15705
  need_version=no
 
15706
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
15707
  soname_spec='${libname}${release}${shared_ext}$major'
 
15708
  shlibpath_var=LD_LIBRARY_PATH
 
15709
  ;;
 
15710
 
 
15711
freebsd1*)
 
15712
  dynamic_linker=no
 
15713
  ;;
 
15714
 
 
15715
freebsd* | dragonfly*)
 
15716
  # DragonFly does not have aout.  When/if they implement a new
 
15717
  # versioning mechanism, adjust this.
 
15718
  if test -x /usr/bin/objformat; then
 
15719
    objformat=`/usr/bin/objformat`
 
15720
  else
 
15721
    case $host_os in
 
15722
    freebsd[123]*) objformat=aout ;;
 
15723
    *) objformat=elf ;;
 
15724
    esac
 
15725
  fi
 
15726
  version_type=freebsd-$objformat
 
15727
  case $version_type in
 
15728
    freebsd-elf*)
 
15729
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15730
      need_version=no
 
15731
      need_lib_prefix=no
 
15732
      ;;
 
15733
    freebsd-*)
 
15734
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
15735
      need_version=yes
 
15736
      ;;
 
15737
  esac
 
15738
  shlibpath_var=LD_LIBRARY_PATH
 
15739
  case $host_os in
 
15740
  freebsd2*)
 
15741
    shlibpath_overrides_runpath=yes
 
15742
    ;;
 
15743
  freebsd3.[01]* | freebsdelf3.[01]*)
 
15744
    shlibpath_overrides_runpath=yes
 
15745
    hardcode_into_libs=yes
 
15746
    ;;
 
15747
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
15748
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
15749
    shlibpath_overrides_runpath=no
 
15750
    hardcode_into_libs=yes
 
15751
    ;;
 
15752
  *) # from 4.6 on, and DragonFly
 
15753
    shlibpath_overrides_runpath=yes
 
15754
    hardcode_into_libs=yes
 
15755
    ;;
 
15756
  esac
 
15757
  ;;
 
15758
 
 
15759
gnu*)
 
15760
  version_type=linux
 
15761
  need_lib_prefix=no
 
15762
  need_version=no
 
15763
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
15764
  soname_spec='${libname}${release}${shared_ext}$major'
 
15765
  shlibpath_var=LD_LIBRARY_PATH
 
15766
  hardcode_into_libs=yes
 
15767
  ;;
 
15768
 
 
15769
hpux9* | hpux10* | hpux11*)
 
15770
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
15771
  # link against other versions.
 
15772
  version_type=sunos
 
15773
  need_lib_prefix=no
 
15774
  need_version=no
 
15775
  case $host_cpu in
 
15776
  ia64*)
 
15777
    shrext_cmds='.so'
 
15778
    hardcode_into_libs=yes
 
15779
    dynamic_linker="$host_os dld.so"
 
15780
    shlibpath_var=LD_LIBRARY_PATH
 
15781
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
15782
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15783
    soname_spec='${libname}${release}${shared_ext}$major'
 
15784
    if test "X$HPUX_IA64_MODE" = X32; then
 
15785
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
15786
    else
 
15787
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
15788
    fi
 
15789
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
15790
    ;;
 
15791
   hppa*64*)
 
15792
     shrext_cmds='.sl'
 
15793
     hardcode_into_libs=yes
 
15794
     dynamic_linker="$host_os dld.sl"
 
15795
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
15796
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
15797
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15798
     soname_spec='${libname}${release}${shared_ext}$major'
 
15799
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
15800
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
15801
     ;;
 
15802
   *)
 
15803
    shrext_cmds='.sl'
 
15804
    dynamic_linker="$host_os dld.sl"
 
15805
    shlibpath_var=SHLIB_PATH
 
15806
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
15807
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15808
    soname_spec='${libname}${release}${shared_ext}$major'
 
15809
    ;;
 
15810
  esac
 
15811
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
15812
  postinstall_cmds='chmod 555 $lib'
 
15813
  ;;
 
15814
 
 
15815
interix[3-9]*)
 
15816
  version_type=linux
 
15817
  need_lib_prefix=no
 
15818
  need_version=no
 
15819
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15820
  soname_spec='${libname}${release}${shared_ext}$major'
 
15821
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
15822
  shlibpath_var=LD_LIBRARY_PATH
 
15823
  shlibpath_overrides_runpath=no
 
15824
  hardcode_into_libs=yes
 
15825
  ;;
 
15826
 
 
15827
irix5* | irix6* | nonstopux*)
 
15828
  case $host_os in
 
15829
    nonstopux*) version_type=nonstopux ;;
 
15830
    *)
 
15831
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
15832
                version_type=linux
 
15833
        else
 
15834
                version_type=irix
 
15835
        fi ;;
 
15836
  esac
 
15837
  need_lib_prefix=no
 
15838
  need_version=no
 
15839
  soname_spec='${libname}${release}${shared_ext}$major'
 
15840
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15841
  case $host_os in
 
15842
  irix5* | nonstopux*)
 
15843
    libsuff= shlibsuff=
 
15844
    ;;
 
15845
  *)
 
15846
    case $LD in # libtool.m4 will add one of these switches to LD
 
15847
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
15848
      libsuff= shlibsuff= libmagic=32-bit;;
 
15849
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
15850
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
15851
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
15852
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
15853
    *) libsuff= shlibsuff= libmagic=never-match;;
 
15854
    esac
 
15855
    ;;
 
15856
  esac
 
15857
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
15858
  shlibpath_overrides_runpath=no
 
15859
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
15860
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
15861
  hardcode_into_libs=yes
 
15862
  ;;
 
15863
 
 
15864
# No shared lib support for Linux oldld, aout, or coff.
 
15865
linux*oldld* | linux*aout* | linux*coff*)
 
15866
  dynamic_linker=no
 
15867
  ;;
 
15868
 
 
15869
# This must be Linux ELF.
 
15870
linux* | k*bsd*-gnu)
 
15871
  version_type=linux
 
15872
  need_lib_prefix=no
 
15873
  need_version=no
 
15874
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15875
  soname_spec='${libname}${release}${shared_ext}$major'
 
15876
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
15877
  shlibpath_var=LD_LIBRARY_PATH
 
15878
  shlibpath_overrides_runpath=no
 
15879
  # This implies no fast_install, which is unacceptable.
 
15880
  # Some rework will be needed to allow for fast_install
 
15881
  # before this can be enabled.
 
15882
  hardcode_into_libs=yes
 
15883
 
 
15884
  # Append ld.so.conf contents to the search path
 
15885
  if test -f /etc/ld.so.conf; then
 
15886
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
15887
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
15888
  fi
 
15889
 
 
15890
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
15891
  # powerpc, because MkLinux only supported shared libraries with the
 
15892
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
15893
  # most powerpc-linux boxes support dynamic linking these days and
 
15894
  # people can always --disable-shared, the test was removed, and we
 
15895
  # assume the GNU/Linux dynamic linker is in use.
 
15896
  dynamic_linker='GNU/Linux ld.so'
 
15897
  ;;
 
15898
 
 
15899
netbsd*)
 
15900
  version_type=sunos
 
15901
  need_lib_prefix=no
 
15902
  need_version=no
 
15903
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15904
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15905
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
15906
    dynamic_linker='NetBSD (a.out) ld.so'
 
15907
  else
 
15908
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15909
    soname_spec='${libname}${release}${shared_ext}$major'
 
15910
    dynamic_linker='NetBSD ld.elf_so'
 
15911
  fi
 
15912
  shlibpath_var=LD_LIBRARY_PATH
 
15913
  shlibpath_overrides_runpath=yes
 
15914
  hardcode_into_libs=yes
 
15915
  ;;
 
15916
 
 
15917
newsos6)
 
15918
  version_type=linux
 
15919
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15920
  shlibpath_var=LD_LIBRARY_PATH
 
15921
  shlibpath_overrides_runpath=yes
 
15922
  ;;
 
15923
 
 
15924
nto-qnx*)
 
15925
  version_type=linux
 
15926
  need_lib_prefix=no
 
15927
  need_version=no
 
15928
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15929
  soname_spec='${libname}${release}${shared_ext}$major'
 
15930
  shlibpath_var=LD_LIBRARY_PATH
 
15931
  shlibpath_overrides_runpath=yes
 
15932
  ;;
 
15933
 
 
15934
openbsd*)
 
15935
  version_type=sunos
 
15936
  sys_lib_dlsearch_path_spec="/usr/lib"
 
15937
  need_lib_prefix=no
 
15938
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
15939
  case $host_os in
 
15940
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
15941
    *)                         need_version=no  ;;
 
15942
  esac
 
15943
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15944
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
15945
  shlibpath_var=LD_LIBRARY_PATH
 
15946
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
15947
    case $host_os in
 
15948
      openbsd2.[89] | openbsd2.[89].*)
 
15949
        shlibpath_overrides_runpath=no
 
15950
        ;;
 
15951
      *)
 
15952
        shlibpath_overrides_runpath=yes
 
15953
        ;;
 
15954
      esac
 
15955
  else
 
15956
    shlibpath_overrides_runpath=yes
 
15957
  fi
 
15958
  ;;
 
15959
 
 
15960
os2*)
 
15961
  libname_spec='$name'
 
15962
  shrext_cmds=".dll"
 
15963
  need_lib_prefix=no
 
15964
  library_names_spec='$libname${shared_ext} $libname.a'
 
15965
  dynamic_linker='OS/2 ld.exe'
 
15966
  shlibpath_var=LIBPATH
 
15967
  ;;
 
15968
 
 
15969
osf3* | osf4* | osf5*)
 
15970
  version_type=osf
 
15971
  need_lib_prefix=no
 
15972
  need_version=no
 
15973
  soname_spec='${libname}${release}${shared_ext}$major'
 
15974
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15975
  shlibpath_var=LD_LIBRARY_PATH
 
15976
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
15977
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
15978
  ;;
 
15979
 
 
15980
rdos*)
 
15981
  dynamic_linker=no
 
15982
  ;;
 
15983
 
 
15984
solaris*)
 
15985
  version_type=linux
 
15986
  need_lib_prefix=no
 
15987
  need_version=no
 
15988
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15989
  soname_spec='${libname}${release}${shared_ext}$major'
 
15990
  shlibpath_var=LD_LIBRARY_PATH
 
15991
  shlibpath_overrides_runpath=yes
 
15992
  hardcode_into_libs=yes
 
15993
  # ldd complains unless libraries are executable
 
15994
  postinstall_cmds='chmod +x $lib'
 
15995
  ;;
 
15996
 
 
15997
sunos4*)
 
15998
  version_type=sunos
 
15999
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16000
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
16001
  shlibpath_var=LD_LIBRARY_PATH
 
16002
  shlibpath_overrides_runpath=yes
 
16003
  if test "$with_gnu_ld" = yes; then
 
16004
    need_lib_prefix=no
 
16005
  fi
 
16006
  need_version=yes
 
16007
  ;;
 
16008
 
 
16009
sysv4 | sysv4.3*)
 
16010
  version_type=linux
 
16011
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16012
  soname_spec='${libname}${release}${shared_ext}$major'
 
16013
  shlibpath_var=LD_LIBRARY_PATH
 
16014
  case $host_vendor in
 
16015
    sni)
 
16016
      shlibpath_overrides_runpath=no
 
16017
      need_lib_prefix=no
 
16018
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
16019
      runpath_var=LD_RUN_PATH
 
16020
      ;;
 
16021
    siemens)
 
16022
      need_lib_prefix=no
 
16023
      ;;
 
16024
    motorola)
 
16025
      need_lib_prefix=no
 
16026
      need_version=no
 
16027
      shlibpath_overrides_runpath=no
 
16028
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
16029
      ;;
 
16030
  esac
 
16031
  ;;
 
16032
 
 
16033
sysv4*MP*)
 
16034
  if test -d /usr/nec ;then
 
16035
    version_type=linux
 
16036
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
16037
    soname_spec='$libname${shared_ext}.$major'
 
16038
    shlibpath_var=LD_LIBRARY_PATH
 
16039
  fi
 
16040
  ;;
 
16041
 
 
16042
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
16043
  version_type=freebsd-elf
 
16044
  need_lib_prefix=no
 
16045
  need_version=no
 
16046
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16047
  soname_spec='${libname}${release}${shared_ext}$major'
 
16048
  shlibpath_var=LD_LIBRARY_PATH
 
16049
  hardcode_into_libs=yes
 
16050
  if test "$with_gnu_ld" = yes; then
 
16051
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
16052
    shlibpath_overrides_runpath=no
 
16053
  else
 
16054
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
16055
    shlibpath_overrides_runpath=yes
 
16056
    case $host_os in
 
16057
      sco3.2v5*)
 
16058
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
16059
        ;;
 
16060
    esac
 
16061
  fi
 
16062
  sys_lib_dlsearch_path_spec='/usr/lib'
 
16063
  ;;
 
16064
 
 
16065
uts4*)
 
16066
  version_type=linux
 
16067
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16068
  soname_spec='${libname}${release}${shared_ext}$major'
 
16069
  shlibpath_var=LD_LIBRARY_PATH
 
16070
  ;;
 
16071
 
 
16072
*)
 
16073
  dynamic_linker=no
 
16074
  ;;
 
16075
esac
 
16076
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
16077
$as_echo "$dynamic_linker" >&6; }
 
16078
test "$dynamic_linker" = no && can_build_shared=no
 
16079
 
 
16080
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
16081
  $as_echo_n "(cached) " >&6
 
16082
else
 
16083
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
16084
fi
 
16085
 
 
16086
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
16087
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
16088
  $as_echo_n "(cached) " >&6
 
16089
else
 
16090
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
16091
fi
 
16092
 
 
16093
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
16094
 
 
16095
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
16096
if test "$GCC" = yes; then
 
16097
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
16098
fi
 
16099
 
 
16100
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
16101
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
16102
hardcode_action_F77=
 
16103
if test -n "$hardcode_libdir_flag_spec_F77" || \
 
16104
   test -n "$runpath_var_F77" || \
 
16105
   test "X$hardcode_automatic_F77" = "Xyes" ; then
 
16106
 
 
16107
  # We can hardcode non-existant directories.
 
16108
  if test "$hardcode_direct_F77" != no &&
 
16109
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
16110
     # have to relink, otherwise we might link with an installed library
 
16111
     # when we should be linking with a yet-to-be-installed one
 
16112
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
 
16113
     test "$hardcode_minus_L_F77" != no; then
 
16114
    # Linking always hardcodes the temporary library directory.
 
16115
    hardcode_action_F77=relink
 
16116
  else
 
16117
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
16118
    hardcode_action_F77=immediate
 
16119
  fi
 
16120
else
 
16121
  # We cannot hardcode anything, or else we can only hardcode existing
 
16122
  # directories.
 
16123
  hardcode_action_F77=unsupported
 
16124
fi
 
16125
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
16126
$as_echo "$hardcode_action_F77" >&6; }
 
16127
 
 
16128
if test "$hardcode_action_F77" = relink; then
 
16129
  # Fast installation is not supported
 
16130
  enable_fast_install=no
 
16131
elif test "$shlibpath_overrides_runpath" = yes ||
 
16132
     test "$enable_shared" = no; then
 
16133
  # Fast installation is not necessary
 
16134
  enable_fast_install=needless
 
16135
fi
 
16136
 
 
16137
 
 
16138
# The else clause should only fire when bootstrapping the
 
16139
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
16140
# with your package, and you will get complaints that there are
 
16141
# no rules to generate ltmain.sh.
 
16142
if test -f "$ltmain"; then
 
16143
  # See if we are running on zsh, and set the options which allow our commands through
 
16144
  # without removal of \ escapes.
 
16145
  if test -n "${ZSH_VERSION+set}" ; then
 
16146
    setopt NO_GLOB_SUBST
 
16147
  fi
 
16148
  # Now quote all the things that may contain metacharacters while being
 
16149
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
16150
  # variables and quote the copies for generation of the libtool script.
 
16151
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
16152
    SED SHELL STRIP \
 
16153
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
16154
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
16155
    deplibs_check_method reload_flag reload_cmds need_locks \
 
16156
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
16157
    lt_cv_sys_global_symbol_to_c_name_address \
 
16158
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
16159
    old_postinstall_cmds old_postuninstall_cmds \
 
16160
    compiler_F77 \
 
16161
    CC_F77 \
 
16162
    LD_F77 \
 
16163
    lt_prog_compiler_wl_F77 \
 
16164
    lt_prog_compiler_pic_F77 \
 
16165
    lt_prog_compiler_static_F77 \
 
16166
    lt_prog_compiler_no_builtin_flag_F77 \
 
16167
    export_dynamic_flag_spec_F77 \
 
16168
    thread_safe_flag_spec_F77 \
 
16169
    whole_archive_flag_spec_F77 \
 
16170
    enable_shared_with_static_runtimes_F77 \
 
16171
    old_archive_cmds_F77 \
 
16172
    old_archive_from_new_cmds_F77 \
 
16173
    predep_objects_F77 \
 
16174
    postdep_objects_F77 \
 
16175
    predeps_F77 \
 
16176
    postdeps_F77 \
 
16177
    compiler_lib_search_path_F77 \
 
16178
    compiler_lib_search_dirs_F77 \
 
16179
    archive_cmds_F77 \
 
16180
    archive_expsym_cmds_F77 \
 
16181
    postinstall_cmds_F77 \
 
16182
    postuninstall_cmds_F77 \
 
16183
    old_archive_from_expsyms_cmds_F77 \
 
16184
    allow_undefined_flag_F77 \
 
16185
    no_undefined_flag_F77 \
 
16186
    export_symbols_cmds_F77 \
 
16187
    hardcode_libdir_flag_spec_F77 \
 
16188
    hardcode_libdir_flag_spec_ld_F77 \
 
16189
    hardcode_libdir_separator_F77 \
 
16190
    hardcode_automatic_F77 \
 
16191
    module_cmds_F77 \
 
16192
    module_expsym_cmds_F77 \
 
16193
    lt_cv_prog_compiler_c_o_F77 \
 
16194
    fix_srcfile_path_F77 \
 
16195
    exclude_expsyms_F77 \
 
16196
    include_expsyms_F77; do
 
16197
 
 
16198
    case $var in
 
16199
    old_archive_cmds_F77 | \
 
16200
    old_archive_from_new_cmds_F77 | \
 
16201
    archive_cmds_F77 | \
 
16202
    archive_expsym_cmds_F77 | \
 
16203
    module_cmds_F77 | \
 
16204
    module_expsym_cmds_F77 | \
 
16205
    old_archive_from_expsyms_cmds_F77 | \
 
16206
    export_symbols_cmds_F77 | \
 
16207
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
16208
    postinstall_cmds | postuninstall_cmds | \
 
16209
    old_postinstall_cmds | old_postuninstall_cmds | \
 
16210
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
16211
      # Double-quote double-evaled strings.
 
16212
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
16213
      ;;
 
16214
    *)
 
16215
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
16216
      ;;
 
16217
    esac
 
16218
  done
 
16219
 
 
16220
  case $lt_echo in
 
16221
  *'\$0 --fallback-echo"')
 
16222
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
16223
    ;;
 
16224
  esac
 
16225
 
 
16226
cfgfile="$ofile"
 
16227
 
 
16228
  cat <<__EOF__ >> "$cfgfile"
 
16229
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
16230
 
 
16231
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
16232
 
 
16233
# Shell to use when invoking shell scripts.
 
16234
SHELL=$lt_SHELL
 
16235
 
 
16236
# Whether or not to build shared libraries.
 
16237
build_libtool_libs=$enable_shared
 
16238
 
 
16239
# Whether or not to build static libraries.
 
16240
build_old_libs=$enable_static
 
16241
 
 
16242
# Whether or not to add -lc for building shared libraries.
 
16243
build_libtool_need_lc=$archive_cmds_need_lc_F77
 
16244
 
 
16245
# Whether or not to disallow shared libs when runtime libs are static
 
16246
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
 
16247
 
 
16248
# Whether or not to optimize for fast installation.
 
16249
fast_install=$enable_fast_install
 
16250
 
 
16251
# The host system.
 
16252
host_alias=$host_alias
 
16253
host=$host
 
16254
host_os=$host_os
 
16255
 
 
16256
# The build system.
 
16257
build_alias=$build_alias
 
16258
build=$build
 
16259
build_os=$build_os
 
16260
 
 
16261
# An echo program that does not interpret backslashes.
 
16262
echo=$lt_echo
 
16263
 
 
16264
# The archiver.
 
16265
AR=$lt_AR
 
16266
AR_FLAGS=$lt_AR_FLAGS
 
16267
 
 
16268
# A C compiler.
 
16269
LTCC=$lt_LTCC
 
16270
 
 
16271
# LTCC compiler flags.
 
16272
LTCFLAGS=$lt_LTCFLAGS
 
16273
 
 
16274
# A language-specific compiler.
 
16275
CC=$lt_compiler_F77
 
16276
 
 
16277
# Is the compiler the GNU C compiler?
 
16278
with_gcc=$GCC_F77
 
16279
 
 
16280
# An ERE matcher.
 
16281
EGREP=$lt_EGREP
 
16282
 
 
16283
# The linker used to build libraries.
 
16284
LD=$lt_LD_F77
 
16285
 
 
16286
# Whether we need hard or soft links.
 
16287
LN_S=$lt_LN_S
 
16288
 
 
16289
# A BSD-compatible nm program.
 
16290
NM=$lt_NM
 
16291
 
 
16292
# A symbol stripping program
 
16293
STRIP=$lt_STRIP
 
16294
 
 
16295
# Used to examine libraries when file_magic_cmd begins "file"
 
16296
MAGIC_CMD=$MAGIC_CMD
 
16297
 
 
16298
# Used on cygwin: DLL creation program.
 
16299
DLLTOOL="$DLLTOOL"
 
16300
 
 
16301
# Used on cygwin: object dumper.
 
16302
OBJDUMP="$OBJDUMP"
 
16303
 
 
16304
# Used on cygwin: assembler.
 
16305
AS="$AS"
 
16306
 
 
16307
# The name of the directory that contains temporary libtool files.
 
16308
objdir=$objdir
 
16309
 
 
16310
# How to create reloadable object files.
 
16311
reload_flag=$lt_reload_flag
 
16312
reload_cmds=$lt_reload_cmds
 
16313
 
 
16314
# How to pass a linker flag through the compiler.
 
16315
wl=$lt_lt_prog_compiler_wl_F77
 
16316
 
 
16317
# Object file suffix (normally "o").
 
16318
objext="$ac_objext"
 
16319
 
 
16320
# Old archive suffix (normally "a").
 
16321
libext="$libext"
 
16322
 
 
16323
# Shared library suffix (normally ".so").
 
16324
shrext_cmds='$shrext_cmds'
 
16325
 
 
16326
# Executable file suffix (normally "").
 
16327
exeext="$exeext"
 
16328
 
 
16329
# Additional compiler flags for building library objects.
 
16330
pic_flag=$lt_lt_prog_compiler_pic_F77
 
16331
pic_mode=$pic_mode
 
16332
 
 
16333
# What is the maximum length of a command?
 
16334
max_cmd_len=$lt_cv_sys_max_cmd_len
 
16335
 
 
16336
# Does compiler simultaneously support -c and -o options?
 
16337
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
 
16338
 
 
16339
# Must we lock files when doing compilation?
 
16340
need_locks=$lt_need_locks
 
16341
 
 
16342
# Do we need the lib prefix for modules?
 
16343
need_lib_prefix=$need_lib_prefix
 
16344
 
 
16345
# Do we need a version for libraries?
 
16346
need_version=$need_version
 
16347
 
 
16348
# Whether dlopen is supported.
 
16349
dlopen_support=$enable_dlopen
 
16350
 
 
16351
# Whether dlopen of programs is supported.
 
16352
dlopen_self=$enable_dlopen_self
 
16353
 
 
16354
# Whether dlopen of statically linked programs is supported.
 
16355
dlopen_self_static=$enable_dlopen_self_static
 
16356
 
 
16357
# Compiler flag to prevent dynamic linking.
 
16358
link_static_flag=$lt_lt_prog_compiler_static_F77
 
16359
 
 
16360
# Compiler flag to turn off builtin functions.
 
16361
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
 
16362
 
 
16363
# Compiler flag to allow reflexive dlopens.
 
16364
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
 
16365
 
 
16366
# Compiler flag to generate shared objects directly from archives.
 
16367
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
 
16368
 
 
16369
# Compiler flag to generate thread-safe objects.
 
16370
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
 
16371
 
 
16372
# Library versioning type.
 
16373
version_type=$version_type
 
16374
 
 
16375
# Format of library name prefix.
 
16376
libname_spec=$lt_libname_spec
 
16377
 
 
16378
# List of archive names.  First name is the real one, the rest are links.
 
16379
# The last name is the one that the linker finds with -lNAME.
 
16380
library_names_spec=$lt_library_names_spec
 
16381
 
 
16382
# The coded name of the library, if different from the real name.
 
16383
soname_spec=$lt_soname_spec
 
16384
 
 
16385
# Commands used to build and install an old-style archive.
 
16386
RANLIB=$lt_RANLIB
 
16387
old_archive_cmds=$lt_old_archive_cmds_F77
 
16388
old_postinstall_cmds=$lt_old_postinstall_cmds
 
16389
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
16390
 
 
16391
# Create an old-style archive from a shared archive.
 
16392
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
 
16393
 
 
16394
# Create a temporary old-style archive to link instead of a shared archive.
 
16395
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
 
16396
 
 
16397
# Commands used to build and install a shared archive.
 
16398
archive_cmds=$lt_archive_cmds_F77
 
16399
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
 
16400
postinstall_cmds=$lt_postinstall_cmds
 
16401
postuninstall_cmds=$lt_postuninstall_cmds
 
16402
 
 
16403
# Commands used to build a loadable module (assumed same as above if empty)
 
16404
module_cmds=$lt_module_cmds_F77
 
16405
module_expsym_cmds=$lt_module_expsym_cmds_F77
 
16406
 
 
16407
# Commands to strip libraries.
 
16408
old_striplib=$lt_old_striplib
 
16409
striplib=$lt_striplib
 
16410
 
 
16411
# Dependencies to place before the objects being linked to create a
 
16412
# shared library.
 
16413
predep_objects=$lt_predep_objects_F77
 
16414
 
 
16415
# Dependencies to place after the objects being linked to create a
 
16416
# shared library.
 
16417
postdep_objects=$lt_postdep_objects_F77
 
16418
 
 
16419
# Dependencies to place before the objects being linked to create a
 
16420
# shared library.
 
16421
predeps=$lt_predeps_F77
 
16422
 
 
16423
# Dependencies to place after the objects being linked to create a
 
16424
# shared library.
 
16425
postdeps=$lt_postdeps_F77
 
16426
 
 
16427
# The directories searched by this compiler when creating a shared
 
16428
# library
 
16429
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
 
16430
 
 
16431
# The library search path used internally by the compiler when linking
 
16432
# a shared library.
 
16433
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
 
16434
 
 
16435
# Method to check whether dependent libraries are shared objects.
 
16436
deplibs_check_method=$lt_deplibs_check_method
 
16437
 
 
16438
# Command to use when deplibs_check_method == file_magic.
 
16439
file_magic_cmd=$lt_file_magic_cmd
 
16440
 
 
16441
# Flag that allows shared libraries with undefined symbols to be built.
 
16442
allow_undefined_flag=$lt_allow_undefined_flag_F77
 
16443
 
 
16444
# Flag that forces no undefined symbols.
 
16445
no_undefined_flag=$lt_no_undefined_flag_F77
 
16446
 
 
16447
# Commands used to finish a libtool library installation in a directory.
 
16448
finish_cmds=$lt_finish_cmds
 
16449
 
 
16450
# Same as above, but a single script fragment to be evaled but not shown.
 
16451
finish_eval=$lt_finish_eval
 
16452
 
 
16453
# Take the output of nm and produce a listing of raw symbols and C names.
 
16454
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
16455
 
 
16456
# Transform the output of nm in a proper C declaration
 
16457
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
16458
 
 
16459
# Transform the output of nm in a C name address pair
 
16460
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
16461
 
 
16462
# This is the shared library runtime path variable.
 
16463
runpath_var=$runpath_var
 
16464
 
 
16465
# This is the shared library path variable.
 
16466
shlibpath_var=$shlibpath_var
 
16467
 
 
16468
# Is shlibpath searched before the hard-coded library search path?
 
16469
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
16470
 
 
16471
# How to hardcode a shared library path into an executable.
 
16472
hardcode_action=$hardcode_action_F77
 
16473
 
 
16474
# Whether we should hardcode library paths into libraries.
 
16475
hardcode_into_libs=$hardcode_into_libs
 
16476
 
 
16477
# Flag to hardcode \$libdir into a binary during linking.
 
16478
# This must work even if \$libdir does not exist.
 
16479
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
 
16480
 
 
16481
# If ld is used when linking, flag to hardcode \$libdir into
 
16482
# a binary during linking. This must work even if \$libdir does
 
16483
# not exist.
 
16484
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
 
16485
 
 
16486
# Whether we need a single -rpath flag with a separated argument.
 
16487
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
 
16488
 
 
16489
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
16490
# resulting binary.
 
16491
hardcode_direct=$hardcode_direct_F77
 
16492
 
 
16493
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
16494
# resulting binary.
 
16495
hardcode_minus_L=$hardcode_minus_L_F77
 
16496
 
 
16497
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
16498
# the resulting binary.
 
16499
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
 
16500
 
 
16501
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
16502
# and all subsequent libraries and executables linked against it.
 
16503
hardcode_automatic=$hardcode_automatic_F77
 
16504
 
 
16505
# Variables whose values should be saved in libtool wrapper scripts and
 
16506
# restored at relink time.
 
16507
variables_saved_for_relink="$variables_saved_for_relink"
 
16508
 
 
16509
# Whether libtool must link a program against all its dependency libraries.
 
16510
link_all_deplibs=$link_all_deplibs_F77
 
16511
 
 
16512
# Compile-time system search path for libraries
 
16513
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
16514
 
 
16515
# Run-time system search path for libraries
 
16516
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
16517
 
 
16518
# Fix the shell variable \$srcfile for the compiler.
 
16519
fix_srcfile_path=$lt_fix_srcfile_path
 
16520
 
 
16521
# Set to yes if exported symbols are required.
 
16522
always_export_symbols=$always_export_symbols_F77
 
16523
 
 
16524
# The commands to list exported symbols.
 
16525
export_symbols_cmds=$lt_export_symbols_cmds_F77
 
16526
 
 
16527
# The commands to extract the exported symbol list from a shared archive.
 
16528
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
16529
 
 
16530
# Symbols that should not be listed in the preloaded symbols.
 
16531
exclude_expsyms=$lt_exclude_expsyms_F77
 
16532
 
 
16533
# Symbols that must always be exported.
 
16534
include_expsyms=$lt_include_expsyms_F77
 
16535
 
 
16536
# ### END LIBTOOL TAG CONFIG: $tagname
 
16537
 
 
16538
__EOF__
 
16539
 
 
16540
 
 
16541
else
 
16542
  # If there is no Makefile yet, we rely on a make rule to execute
 
16543
  # `config.status --recheck' to rerun these tests and create the
 
16544
  # libtool script then.
 
16545
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
16546
  if test -f "$ltmain_in"; then
 
16547
    test -f Makefile && make "$ltmain"
 
16548
  fi
 
16549
fi
 
16550
 
 
16551
 
 
16552
ac_ext=c
 
16553
ac_cpp='$CPP $CPPFLAGS'
 
16554
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
16555
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
16556
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
16557
 
 
16558
CC="$lt_save_CC"
 
16559
 
 
16560
        else
 
16561
          tagname=""
 
16562
        fi
 
16563
        ;;
 
16564
 
 
16565
      GCJ)
 
16566
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
16567
 
 
16568
 
 
16569
# Source file extension for Java test sources.
 
16570
ac_ext=java
 
16571
 
 
16572
# Object file extension for compiled Java test sources.
 
16573
objext=o
 
16574
objext_GCJ=$objext
 
16575
 
 
16576
# Code to be used in simple compile tests
 
16577
lt_simple_compile_test_code="class foo {}"
 
16578
 
 
16579
# Code to be used in simple link tests
 
16580
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
 
16581
 
 
16582
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
16583
 
 
16584
# If no C compiler was specified, use CC.
 
16585
LTCC=${LTCC-"$CC"}
 
16586
 
 
16587
# If no C compiler flags were specified, use CFLAGS.
 
16588
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
16589
 
 
16590
# Allow CC to be a program name with arguments.
 
16591
compiler=$CC
 
16592
 
 
16593
 
 
16594
# save warnings/boilerplate of simple test code
 
16595
ac_outfile=conftest.$ac_objext
 
16596
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
16597
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
16598
_lt_compiler_boilerplate=`cat conftest.err`
 
16599
$rm conftest*
 
16600
 
 
16601
ac_outfile=conftest.$ac_objext
 
16602
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
16603
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
16604
_lt_linker_boilerplate=`cat conftest.err`
 
16605
$rm -r conftest*
 
16606
 
 
16607
 
 
16608
# Allow CC to be a program name with arguments.
 
16609
lt_save_CC="$CC"
 
16610
CC=${GCJ-"gcj"}
 
16611
compiler=$CC
 
16612
compiler_GCJ=$CC
 
16613
for cc_temp in $compiler""; do
 
16614
  case $cc_temp in
 
16615
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
16616
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
16617
    \-*) ;;
 
16618
    *) break;;
 
16619
  esac
 
16620
done
 
16621
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
16622
 
 
16623
 
 
16624
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
16625
archive_cmds_need_lc_GCJ=no
 
16626
 
 
16627
old_archive_cmds_GCJ=$old_archive_cmds
 
16628
 
 
16629
 
 
16630
lt_prog_compiler_no_builtin_flag_GCJ=
 
16631
 
 
16632
if test "$GCC" = yes; then
 
16633
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
 
16634
 
 
16635
 
 
16636
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
16637
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
 
16638
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
16639
  $as_echo_n "(cached) " >&6
 
16640
else
 
16641
  lt_cv_prog_compiler_rtti_exceptions=no
 
16642
  ac_outfile=conftest.$ac_objext
 
16643
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16644
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
16645
   # Insert the option either (1) after the last *FLAGS variable, or
 
16646
   # (2) before a word containing "conftest.", or (3) at the end.
 
16647
   # Note that $ac_compile itself does not contain backslashes and begins
 
16648
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16649
   # The option is referenced via a variable to avoid confusing sed.
 
16650
   lt_compile=`echo "$ac_compile" | $SED \
 
16651
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
16652
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16653
   -e 's:$: $lt_compiler_flag:'`
 
16654
   (eval echo "\"\$as_me:16654: $lt_compile\"" >&5)
 
16655
   (eval "$lt_compile" 2>conftest.err)
 
16656
   ac_status=$?
 
16657
   cat conftest.err >&5
 
16658
   echo "$as_me:16658: \$? = $ac_status" >&5
 
16659
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
16660
     # The compiler can only warn and ignore the option if not recognized
 
16661
     # So say no if there are warnings other than the usual output.
 
16662
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
16663
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
16664
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
16665
       lt_cv_prog_compiler_rtti_exceptions=yes
 
16666
     fi
 
16667
   fi
 
16668
   $rm conftest*
 
16669
 
 
16670
fi
 
16671
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
16672
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
16673
 
 
16674
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
16675
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
 
16676
else
 
16677
    :
 
16678
fi
 
16679
 
 
16680
fi
 
16681
 
 
16682
lt_prog_compiler_wl_GCJ=
 
16683
lt_prog_compiler_pic_GCJ=
 
16684
lt_prog_compiler_static_GCJ=
 
16685
 
 
16686
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
16687
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
16688
 
 
16689
  if test "$GCC" = yes; then
 
16690
    lt_prog_compiler_wl_GCJ='-Wl,'
 
16691
    lt_prog_compiler_static_GCJ='-static'
 
16692
 
 
16693
    case $host_os in
 
16694
      aix*)
 
16695
      # All AIX code is PIC.
 
16696
      if test "$host_cpu" = ia64; then
 
16697
        # AIX 5 now supports IA64 processor
 
16698
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16699
      fi
 
16700
      ;;
 
16701
 
 
16702
    amigaos*)
 
16703
      # FIXME: we need at least 68020 code to build shared libraries, but
 
16704
      # adding the `-m68020' flag to GCC prevents building anything better,
 
16705
      # like `-m68040'.
 
16706
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
 
16707
      ;;
 
16708
 
 
16709
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
16710
      # PIC is the default for these OSes.
 
16711
      ;;
 
16712
 
 
16713
    mingw* | cygwin* | pw32* | os2*)
 
16714
      # This hack is so that the source file can tell whether it is being
 
16715
      # built for inclusion in a dll (and should export symbols for example).
 
16716
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
16717
      # (--disable-auto-import) libraries
 
16718
 
 
16719
      ;;
 
16720
 
 
16721
    darwin* | rhapsody*)
 
16722
      # PIC is the default on this platform
 
16723
      # Common symbols not allowed in MH_DYLIB files
 
16724
      lt_prog_compiler_pic_GCJ='-fno-common'
 
16725
      ;;
 
16726
 
 
16727
    interix[3-9]*)
 
16728
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
16729
      # Instead, we relocate shared libraries at runtime.
 
16730
      ;;
 
16731
 
 
16732
    msdosdjgpp*)
 
16733
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
16734
      # on systems that don't support them.
 
16735
      lt_prog_compiler_can_build_shared_GCJ=no
 
16736
      enable_shared=no
 
16737
      ;;
 
16738
 
 
16739
    sysv4*MP*)
 
16740
      if test -d /usr/nec; then
 
16741
        lt_prog_compiler_pic_GCJ=-Kconform_pic
 
16742
      fi
 
16743
      ;;
 
16744
 
 
16745
    hpux*)
 
16746
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
16747
      # not for PA HP-UX.
 
16748
      case $host_cpu in
 
16749
      hppa*64*|ia64*)
 
16750
        # +Z the default
 
16751
        ;;
 
16752
      *)
 
16753
        lt_prog_compiler_pic_GCJ='-fPIC'
 
16754
        ;;
 
16755
      esac
 
16756
      ;;
 
16757
 
 
16758
    *)
 
16759
      lt_prog_compiler_pic_GCJ='-fPIC'
 
16760
      ;;
 
16761
    esac
 
16762
  else
 
16763
    # PORTME Check for flag to pass linker flags through the system compiler.
 
16764
    case $host_os in
 
16765
    aix*)
 
16766
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16767
      if test "$host_cpu" = ia64; then
 
16768
        # AIX 5 now supports IA64 processor
 
16769
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16770
      else
 
16771
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
 
16772
      fi
 
16773
      ;;
 
16774
      darwin*)
 
16775
        # PIC is the default on this platform
 
16776
        # Common symbols not allowed in MH_DYLIB files
 
16777
       case $cc_basename in
 
16778
         xlc*)
 
16779
         lt_prog_compiler_pic_GCJ='-qnocommon'
 
16780
         lt_prog_compiler_wl_GCJ='-Wl,'
 
16781
         ;;
 
16782
       esac
 
16783
       ;;
 
16784
 
 
16785
    mingw* | cygwin* | pw32* | os2*)
 
16786
      # This hack is so that the source file can tell whether it is being
 
16787
      # built for inclusion in a dll (and should export symbols for example).
 
16788
 
 
16789
      ;;
 
16790
 
 
16791
    hpux9* | hpux10* | hpux11*)
 
16792
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16793
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
16794
      # not for PA HP-UX.
 
16795
      case $host_cpu in
 
16796
      hppa*64*|ia64*)
 
16797
        # +Z the default
 
16798
        ;;
 
16799
      *)
 
16800
        lt_prog_compiler_pic_GCJ='+Z'
 
16801
        ;;
 
16802
      esac
 
16803
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
16804
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
 
16805
      ;;
 
16806
 
 
16807
    irix5* | irix6* | nonstopux*)
 
16808
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16809
      # PIC (with -KPIC) is the default.
 
16810
      lt_prog_compiler_static_GCJ='-non_shared'
 
16811
      ;;
 
16812
 
 
16813
    newsos6)
 
16814
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16815
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16816
      ;;
 
16817
 
 
16818
    linux* | k*bsd*-gnu)
 
16819
      case $cc_basename in
 
16820
      icc* | ecc*)
 
16821
        lt_prog_compiler_wl_GCJ='-Wl,'
 
16822
        lt_prog_compiler_pic_GCJ='-KPIC'
 
16823
        lt_prog_compiler_static_GCJ='-static'
 
16824
        ;;
 
16825
      pgcc* | pgf77* | pgf90* | pgf95*)
 
16826
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
16827
        # which looks to be a dead project)
 
16828
        lt_prog_compiler_wl_GCJ='-Wl,'
 
16829
        lt_prog_compiler_pic_GCJ='-fpic'
 
16830
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16831
        ;;
 
16832
      ccc*)
 
16833
        lt_prog_compiler_wl_GCJ='-Wl,'
 
16834
        # All Alpha code is PIC.
 
16835
        lt_prog_compiler_static_GCJ='-non_shared'
 
16836
        ;;
 
16837
      *)
 
16838
        case `$CC -V 2>&1 | sed 5q` in
 
16839
        *Sun\ C*)
 
16840
          # Sun C 5.9
 
16841
          lt_prog_compiler_pic_GCJ='-KPIC'
 
16842
          lt_prog_compiler_static_GCJ='-Bstatic'
 
16843
          lt_prog_compiler_wl_GCJ='-Wl,'
 
16844
          ;;
 
16845
        *Sun\ F*)
 
16846
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
16847
          lt_prog_compiler_pic_GCJ='-KPIC'
 
16848
          lt_prog_compiler_static_GCJ='-Bstatic'
 
16849
          lt_prog_compiler_wl_GCJ=''
 
16850
          ;;
 
16851
        esac
 
16852
        ;;
 
16853
      esac
 
16854
      ;;
 
16855
 
 
16856
    osf3* | osf4* | osf5*)
 
16857
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16858
      # All OSF/1 code is PIC.
 
16859
      lt_prog_compiler_static_GCJ='-non_shared'
 
16860
      ;;
 
16861
 
 
16862
    rdos*)
 
16863
      lt_prog_compiler_static_GCJ='-non_shared'
 
16864
      ;;
 
16865
 
 
16866
    solaris*)
 
16867
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16868
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16869
      case $cc_basename in
 
16870
      f77* | f90* | f95*)
 
16871
        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
 
16872
      *)
 
16873
        lt_prog_compiler_wl_GCJ='-Wl,';;
 
16874
      esac
 
16875
      ;;
 
16876
 
 
16877
    sunos4*)
 
16878
      lt_prog_compiler_wl_GCJ='-Qoption ld '
 
16879
      lt_prog_compiler_pic_GCJ='-PIC'
 
16880
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16881
      ;;
 
16882
 
 
16883
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
16884
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16885
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16886
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16887
      ;;
 
16888
 
 
16889
    sysv4*MP*)
 
16890
      if test -d /usr/nec ;then
 
16891
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
 
16892
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16893
      fi
 
16894
      ;;
 
16895
 
 
16896
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
16897
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16898
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16899
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16900
      ;;
 
16901
 
 
16902
    unicos*)
 
16903
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16904
      lt_prog_compiler_can_build_shared_GCJ=no
 
16905
      ;;
 
16906
 
 
16907
    uts4*)
 
16908
      lt_prog_compiler_pic_GCJ='-pic'
 
16909
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16910
      ;;
 
16911
 
 
16912
    *)
 
16913
      lt_prog_compiler_can_build_shared_GCJ=no
 
16914
      ;;
 
16915
    esac
 
16916
  fi
 
16917
 
 
16918
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
16919
$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
 
16920
 
 
16921
#
 
16922
# Check to make sure the PIC flag actually works.
 
16923
#
 
16924
if test -n "$lt_prog_compiler_pic_GCJ"; then
 
16925
 
 
16926
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
16927
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
 
16928
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
 
16929
  $as_echo_n "(cached) " >&6
 
16930
else
 
16931
  lt_cv_prog_compiler_pic_works_GCJ=no
 
16932
  ac_outfile=conftest.$ac_objext
 
16933
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16934
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
 
16935
   # Insert the option either (1) after the last *FLAGS variable, or
 
16936
   # (2) before a word containing "conftest.", or (3) at the end.
 
16937
   # Note that $ac_compile itself does not contain backslashes and begins
 
16938
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16939
   # The option is referenced via a variable to avoid confusing sed.
 
16940
   lt_compile=`echo "$ac_compile" | $SED \
 
16941
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
16942
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16943
   -e 's:$: $lt_compiler_flag:'`
 
16944
   (eval echo "\"\$as_me:16944: $lt_compile\"" >&5)
 
16945
   (eval "$lt_compile" 2>conftest.err)
 
16946
   ac_status=$?
 
16947
   cat conftest.err >&5
 
16948
   echo "$as_me:16948: \$? = $ac_status" >&5
 
16949
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
16950
     # The compiler can only warn and ignore the option if not recognized
 
16951
     # So say no if there are warnings other than the usual output.
 
16952
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
16953
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
16954
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
16955
       lt_cv_prog_compiler_pic_works_GCJ=yes
 
16956
     fi
 
16957
   fi
 
16958
   $rm conftest*
 
16959
 
 
16960
fi
 
16961
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
 
16962
$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
 
16963
 
 
16964
if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
 
16965
    case $lt_prog_compiler_pic_GCJ in
 
16966
     "" | " "*) ;;
 
16967
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
 
16968
     esac
 
16969
else
 
16970
    lt_prog_compiler_pic_GCJ=
 
16971
     lt_prog_compiler_can_build_shared_GCJ=no
 
16972
fi
 
16973
 
 
16974
fi
 
16975
case $host_os in
 
16976
  # For platforms which do not support PIC, -DPIC is meaningless:
 
16977
  *djgpp*)
 
16978
    lt_prog_compiler_pic_GCJ=
 
16979
    ;;
 
16980
  *)
 
16981
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
 
16982
    ;;
 
16983
esac
 
16984
 
 
16985
#
 
16986
# Check to make sure the static flag actually works.
 
16987
#
 
16988
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
 
16989
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
16990
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
16991
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
 
16992
  $as_echo_n "(cached) " >&6
 
16993
else
 
16994
  lt_cv_prog_compiler_static_works_GCJ=no
 
16995
   save_LDFLAGS="$LDFLAGS"
 
16996
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
16997
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
16998
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
16999
     # The linker can only warn and ignore the option if not recognized
 
17000
     # So say no if there are warnings
 
17001
     if test -s conftest.err; then
 
17002
       # Append any errors to the config.log.
 
17003
       cat conftest.err 1>&5
 
17004
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
17005
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
17006
       if diff conftest.exp conftest.er2 >/dev/null; then
 
17007
         lt_cv_prog_compiler_static_works_GCJ=yes
 
17008
       fi
 
17009
     else
 
17010
       lt_cv_prog_compiler_static_works_GCJ=yes
 
17011
     fi
 
17012
   fi
 
17013
   $rm -r conftest*
 
17014
   LDFLAGS="$save_LDFLAGS"
 
17015
 
 
17016
fi
 
17017
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
 
17018
$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
 
17019
 
 
17020
if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
 
17021
    :
 
17022
else
 
17023
    lt_prog_compiler_static_GCJ=
 
17024
fi
 
17025
 
 
17026
 
 
17027
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
17028
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
17029
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
 
17030
  $as_echo_n "(cached) " >&6
 
17031
else
 
17032
  lt_cv_prog_compiler_c_o_GCJ=no
 
17033
   $rm -r conftest 2>/dev/null
 
17034
   mkdir conftest
 
17035
   cd conftest
 
17036
   mkdir out
 
17037
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17038
 
 
17039
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
17040
   # Insert the option either (1) after the last *FLAGS variable, or
 
17041
   # (2) before a word containing "conftest.", or (3) at the end.
 
17042
   # Note that $ac_compile itself does not contain backslashes and begins
 
17043
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
17044
   lt_compile=`echo "$ac_compile" | $SED \
 
17045
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
17046
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
17047
   -e 's:$: $lt_compiler_flag:'`
 
17048
   (eval echo "\"\$as_me:17048: $lt_compile\"" >&5)
 
17049
   (eval "$lt_compile" 2>out/conftest.err)
 
17050
   ac_status=$?
 
17051
   cat out/conftest.err >&5
 
17052
   echo "$as_me:17052: \$? = $ac_status" >&5
 
17053
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
17054
   then
 
17055
     # The compiler can only warn and ignore the option if not recognized
 
17056
     # So say no if there are warnings
 
17057
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
17058
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
17059
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
17060
       lt_cv_prog_compiler_c_o_GCJ=yes
 
17061
     fi
 
17062
   fi
 
17063
   chmod u+w . 2>&5
 
17064
   $rm conftest*
 
17065
   # SGI C++ compiler will create directory out/ii_files/ for
 
17066
   # template instantiation
 
17067
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
17068
   $rm out/* && rmdir out
 
17069
   cd ..
 
17070
   rmdir conftest
 
17071
   $rm conftest*
 
17072
 
 
17073
fi
 
17074
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
17075
$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
 
17076
 
 
17077
 
 
17078
hard_links="nottested"
 
17079
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
 
17080
  # do not overwrite the value of need_locks provided by the user
 
17081
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
17082
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
17083
  hard_links=yes
 
17084
  $rm conftest*
 
17085
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
17086
  touch conftest.a
 
17087
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
17088
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
17089
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
 
17090
$as_echo "$hard_links" >&6; }
 
17091
  if test "$hard_links" = no; then
 
17092
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
17093
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
17094
    need_locks=warn
 
17095
  fi
 
17096
else
 
17097
  need_locks=no
 
17098
fi
 
17099
 
 
17100
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
17101
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
17102
 
 
17103
  runpath_var=
 
17104
  allow_undefined_flag_GCJ=
 
17105
  enable_shared_with_static_runtimes_GCJ=no
 
17106
  archive_cmds_GCJ=
 
17107
  archive_expsym_cmds_GCJ=
 
17108
  old_archive_From_new_cmds_GCJ=
 
17109
  old_archive_from_expsyms_cmds_GCJ=
 
17110
  export_dynamic_flag_spec_GCJ=
 
17111
  whole_archive_flag_spec_GCJ=
 
17112
  thread_safe_flag_spec_GCJ=
 
17113
  hardcode_libdir_flag_spec_GCJ=
 
17114
  hardcode_libdir_flag_spec_ld_GCJ=
 
17115
  hardcode_libdir_separator_GCJ=
 
17116
  hardcode_direct_GCJ=no
 
17117
  hardcode_minus_L_GCJ=no
 
17118
  hardcode_shlibpath_var_GCJ=unsupported
 
17119
  link_all_deplibs_GCJ=unknown
 
17120
  hardcode_automatic_GCJ=no
 
17121
  module_cmds_GCJ=
 
17122
  module_expsym_cmds_GCJ=
 
17123
  always_export_symbols_GCJ=no
 
17124
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
17125
  # include_expsyms should be a list of space-separated symbols to be *always*
 
17126
  # included in the symbol list
 
17127
  include_expsyms_GCJ=
 
17128
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
17129
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
17130
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
17131
  # as well as any symbol that contains `d'.
 
17132
  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
17133
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
17134
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
17135
  # the symbol is explicitly referenced.  Since portable code cannot
 
17136
  # rely on this symbol name, it's probably fine to never include it in
 
17137
  # preloaded symbol tables.
 
17138
  # Exclude shared library initialization/finalization symbols.
 
17139
  extract_expsyms_cmds=
 
17140
  # Just being paranoid about ensuring that cc_basename is set.
 
17141
  for cc_temp in $compiler""; do
 
17142
  case $cc_temp in
 
17143
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
17144
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
17145
    \-*) ;;
 
17146
    *) break;;
 
17147
  esac
 
17148
done
 
17149
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
17150
 
 
17151
  case $host_os in
 
17152
  cygwin* | mingw* | pw32*)
 
17153
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
17154
    # When not using gcc, we currently assume that we are using
 
17155
    # Microsoft Visual C++.
 
17156
    if test "$GCC" != yes; then
 
17157
      with_gnu_ld=no
 
17158
    fi
 
17159
    ;;
 
17160
  interix*)
 
17161
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
17162
    with_gnu_ld=yes
 
17163
    ;;
 
17164
  openbsd*)
 
17165
    with_gnu_ld=no
 
17166
    ;;
 
17167
  esac
 
17168
 
 
17169
  ld_shlibs_GCJ=yes
 
17170
  if test "$with_gnu_ld" = yes; then
 
17171
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
17172
    wlarc='${wl}'
 
17173
 
 
17174
    # Set some defaults for GNU ld with shared library support. These
 
17175
    # are reset later if shared libraries are not supported. Putting them
 
17176
    # here allows them to be overridden if necessary.
 
17177
    runpath_var=LD_RUN_PATH
 
17178
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
17179
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
17180
    # ancient GNU ld didn't support --whole-archive et. al.
 
17181
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
17182
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
17183
      else
 
17184
        whole_archive_flag_spec_GCJ=
 
17185
    fi
 
17186
    supports_anon_versioning=no
 
17187
    case `$LD -v 2>/dev/null` in
 
17188
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
17189
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
17190
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
17191
      *\ 2.11.*) ;; # other 2.11 versions
 
17192
      *) supports_anon_versioning=yes ;;
 
17193
    esac
 
17194
 
 
17195
    # See if GNU ld supports shared libraries.
 
17196
    case $host_os in
 
17197
    aix[3-9]*)
 
17198
      # On AIX/PPC, the GNU linker is very broken
 
17199
      if test "$host_cpu" != ia64; then
 
17200
        ld_shlibs_GCJ=no
 
17201
        cat <<EOF 1>&2
 
17202
 
 
17203
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
17204
*** to be unable to reliably create shared libraries on AIX.
 
17205
*** Therefore, libtool is disabling shared libraries support.  If you
 
17206
*** really care for shared libraries, you may want to modify your PATH
 
17207
*** so that a non-GNU linker is found, and then restart.
 
17208
 
 
17209
EOF
 
17210
      fi
 
17211
      ;;
 
17212
 
 
17213
    amigaos*)
 
17214
      archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
17215
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17216
      hardcode_minus_L_GCJ=yes
 
17217
 
 
17218
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
17219
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
17220
      # to version 4, is to share data among multiple programs linked
 
17221
      # with the same dynamic library.  Since this doesn't match the
 
17222
      # behavior of shared libraries on other platforms, we can't use
 
17223
      # them.
 
17224
      ld_shlibs_GCJ=no
 
17225
      ;;
 
17226
 
 
17227
    beos*)
 
17228
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17229
        allow_undefined_flag_GCJ=unsupported
 
17230
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
17231
        # support --undefined.  This deserves some investigation.  FIXME
 
17232
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17233
      else
 
17234
        ld_shlibs_GCJ=no
 
17235
      fi
 
17236
      ;;
 
17237
 
 
17238
    cygwin* | mingw* | pw32*)
 
17239
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
 
17240
      # as there is no search path for DLLs.
 
17241
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17242
      allow_undefined_flag_GCJ=unsupported
 
17243
      always_export_symbols_GCJ=no
 
17244
      enable_shared_with_static_runtimes_GCJ=yes
 
17245
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
17246
 
 
17247
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
17248
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
17249
        # If the export-symbols file already is a .def file (1st line
 
17250
        # is EXPORTS), use it as is; otherwise, prepend...
 
17251
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
17252
          cp $export_symbols $output_objdir/$soname.def;
 
17253
        else
 
17254
          echo EXPORTS > $output_objdir/$soname.def;
 
17255
          cat $export_symbols >> $output_objdir/$soname.def;
 
17256
        fi~
 
17257
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
17258
      else
 
17259
        ld_shlibs_GCJ=no
 
17260
      fi
 
17261
      ;;
 
17262
 
 
17263
    interix[3-9]*)
 
17264
      hardcode_direct_GCJ=no
 
17265
      hardcode_shlibpath_var_GCJ=no
 
17266
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17267
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
17268
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
17269
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
17270
      # default) and relocated if they conflict, which is a slow very memory
 
17271
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
17272
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
17273
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
17274
      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'
 
17275
      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'
 
17276
      ;;
 
17277
 
 
17278
    gnu* | linux* | k*bsd*-gnu)
 
17279
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17280
        tmp_addflag=
 
17281
        case $cc_basename,$host_cpu in
 
17282
        pgcc*)                          # Portland Group C compiler
 
17283
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
17284
          tmp_addflag=' $pic_flag'
 
17285
          ;;
 
17286
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
17287
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
17288
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
17289
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
17290
          tmp_addflag=' -i_dynamic' ;;
 
17291
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
17292
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
17293
        ifc* | ifort*)                  # Intel Fortran compiler
 
17294
          tmp_addflag=' -nofor_main' ;;
 
17295
        esac
 
17296
        case `$CC -V 2>&1 | sed 5q` in
 
17297
        *Sun\ C*)                       # Sun C 5.9
 
17298
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
17299
          tmp_sharedflag='-G' ;;
 
17300
        *Sun\ F*)                       # Sun Fortran 8.3
 
17301
          tmp_sharedflag='-G' ;;
 
17302
        *)
 
17303
          tmp_sharedflag='-shared' ;;
 
17304
        esac
 
17305
        archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17306
 
 
17307
        if test $supports_anon_versioning = yes; then
 
17308
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
17309
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
17310
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
17311
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
17312
        fi
 
17313
      else
 
17314
        ld_shlibs_GCJ=no
 
17315
      fi
 
17316
      ;;
 
17317
 
 
17318
    netbsd*)
 
17319
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17320
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
17321
        wlarc=
 
17322
      else
 
17323
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17324
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17325
      fi
 
17326
      ;;
 
17327
 
 
17328
    solaris*)
 
17329
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
17330
        ld_shlibs_GCJ=no
 
17331
        cat <<EOF 1>&2
 
17332
 
 
17333
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
17334
*** create shared libraries on Solaris systems.  Therefore, libtool
 
17335
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
17336
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
17337
*** your PATH or compiler configuration so that the native linker is
 
17338
*** used, and then restart.
 
17339
 
 
17340
EOF
 
17341
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17342
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17343
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17344
      else
 
17345
        ld_shlibs_GCJ=no
 
17346
      fi
 
17347
      ;;
 
17348
 
 
17349
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
17350
      case `$LD -v 2>&1` in
 
17351
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
17352
        ld_shlibs_GCJ=no
 
17353
        cat <<_LT_EOF 1>&2
 
17354
 
 
17355
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
17356
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
17357
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
17358
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
17359
*** your PATH or compiler configuration so that the native linker is
 
17360
*** used, and then restart.
 
17361
 
 
17362
_LT_EOF
 
17363
        ;;
 
17364
        *)
 
17365
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17366
            hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
17367
            archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
17368
            archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
17369
          else
 
17370
            ld_shlibs_GCJ=no
 
17371
          fi
 
17372
        ;;
 
17373
      esac
 
17374
      ;;
 
17375
 
 
17376
    sunos4*)
 
17377
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17378
      wlarc=
 
17379
      hardcode_direct_GCJ=yes
 
17380
      hardcode_shlibpath_var_GCJ=no
 
17381
      ;;
 
17382
 
 
17383
    *)
 
17384
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17385
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17386
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17387
      else
 
17388
        ld_shlibs_GCJ=no
 
17389
      fi
 
17390
      ;;
 
17391
    esac
 
17392
 
 
17393
    if test "$ld_shlibs_GCJ" = no; then
 
17394
      runpath_var=
 
17395
      hardcode_libdir_flag_spec_GCJ=
 
17396
      export_dynamic_flag_spec_GCJ=
 
17397
      whole_archive_flag_spec_GCJ=
 
17398
    fi
 
17399
  else
 
17400
    # PORTME fill in a description of your system's linker (not GNU ld)
 
17401
    case $host_os in
 
17402
    aix3*)
 
17403
      allow_undefined_flag_GCJ=unsupported
 
17404
      always_export_symbols_GCJ=yes
 
17405
      archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
 
17406
      # Note: this linker hardcodes the directories in LIBPATH if there
 
17407
      # are no directories specified by -L.
 
17408
      hardcode_minus_L_GCJ=yes
 
17409
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
17410
        # Neither direct hardcoding nor static linking is supported with a
 
17411
        # broken collect2.
 
17412
        hardcode_direct_GCJ=unsupported
 
17413
      fi
 
17414
      ;;
 
17415
 
 
17416
    aix[4-9]*)
 
17417
      if test "$host_cpu" = ia64; then
 
17418
        # On IA64, the linker does run time linking by default, so we don't
 
17419
        # have to do anything special.
 
17420
        aix_use_runtimelinking=no
 
17421
        exp_sym_flag='-Bexport'
 
17422
        no_entry_flag=""
 
17423
      else
 
17424
        # If we're using GNU nm, then we don't want the "-C" option.
 
17425
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
17426
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
17427
          export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
17428
        else
 
17429
          export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
17430
        fi
 
17431
        aix_use_runtimelinking=no
 
17432
 
 
17433
        # Test if we are trying to use run time linking or normal
 
17434
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
17435
        # need to do runtime linking.
 
17436
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
17437
          for ld_flag in $LDFLAGS; do
 
17438
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
17439
            aix_use_runtimelinking=yes
 
17440
            break
 
17441
          fi
 
17442
          done
 
17443
          ;;
 
17444
        esac
 
17445
 
 
17446
        exp_sym_flag='-bexport'
 
17447
        no_entry_flag='-bnoentry'
 
17448
      fi
 
17449
 
 
17450
      # When large executables or shared objects are built, AIX ld can
 
17451
      # have problems creating the table of contents.  If linking a library
 
17452
      # or program results in "error TOC overflow" add -mminimal-toc to
 
17453
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
17454
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
17455
 
 
17456
      archive_cmds_GCJ=''
 
17457
      hardcode_direct_GCJ=yes
 
17458
      hardcode_libdir_separator_GCJ=':'
 
17459
      link_all_deplibs_GCJ=yes
 
17460
 
 
17461
      if test "$GCC" = yes; then
 
17462
        case $host_os in aix4.[012]|aix4.[012].*)
 
17463
        # We only want to do this on AIX 4.2 and lower, the check
 
17464
        # below for broken collect2 doesn't work under 4.3+
 
17465
          collect2name=`${CC} -print-prog-name=collect2`
 
17466
          if test -f "$collect2name" && \
 
17467
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
17468
          then
 
17469
          # We have reworked collect2
 
17470
          :
 
17471
          else
 
17472
          # We have old collect2
 
17473
          hardcode_direct_GCJ=unsupported
 
17474
          # It fails to find uninstalled libraries when the uninstalled
 
17475
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
17476
          # to unsupported forces relinking
 
17477
          hardcode_minus_L_GCJ=yes
 
17478
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17479
          hardcode_libdir_separator_GCJ=
 
17480
          fi
 
17481
          ;;
 
17482
        esac
 
17483
        shared_flag='-shared'
 
17484
        if test "$aix_use_runtimelinking" = yes; then
 
17485
          shared_flag="$shared_flag "'${wl}-G'
 
17486
        fi
 
17487
      else
 
17488
        # not using gcc
 
17489
        if test "$host_cpu" = ia64; then
 
17490
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
17491
        # chokes on -Wl,-G. The following line is correct:
 
17492
          shared_flag='-G'
 
17493
        else
 
17494
          if test "$aix_use_runtimelinking" = yes; then
 
17495
            shared_flag='${wl}-G'
 
17496
          else
 
17497
            shared_flag='${wl}-bM:SRE'
 
17498
          fi
 
17499
        fi
 
17500
      fi
 
17501
 
 
17502
      # It seems that -bexpall does not export symbols beginning with
 
17503
      # underscore (_), so it is better to generate a list of symbols to export.
 
17504
      always_export_symbols_GCJ=yes
 
17505
      if test "$aix_use_runtimelinking" = yes; then
 
17506
        # Warning - without using the other runtime loading flags (-brtl),
 
17507
        # -berok will link without error, but may produce a broken library.
 
17508
        allow_undefined_flag_GCJ='-berok'
 
17509
       # Determine the default libpath from the value encoded in an empty executable.
 
17510
       cat >conftest.$ac_ext <<_ACEOF
 
17511
/* confdefs.h.  */
 
17512
_ACEOF
 
17513
cat confdefs.h >>conftest.$ac_ext
 
17514
cat >>conftest.$ac_ext <<_ACEOF
 
17515
/* end confdefs.h.  */
 
17516
 
 
17517
int
 
17518
main ()
 
17519
{
 
17520
 
 
17521
  ;
 
17522
  return 0;
 
17523
}
 
17524
_ACEOF
 
17525
rm -f conftest.$ac_objext conftest$ac_exeext
 
17526
if { (ac_try="$ac_link"
 
17527
case "(($ac_try" in
 
17528
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17529
  *) ac_try_echo=$ac_try;;
 
17530
esac
 
17531
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
17532
$as_echo "$ac_try_echo") >&5
 
17533
  (eval "$ac_link") 2>conftest.er1
 
17534
  ac_status=$?
 
17535
  grep -v '^ *+' conftest.er1 >conftest.err
 
17536
  rm -f conftest.er1
 
17537
  cat conftest.err >&5
 
17538
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17539
  (exit $ac_status); } && {
 
17540
         test -z "$ac_c_werror_flag" ||
 
17541
         test ! -s conftest.err
 
17542
       } && test -s conftest$ac_exeext && {
 
17543
         test "$cross_compiling" = yes ||
 
17544
         $as_test_x conftest$ac_exeext
 
17545
       }; then
 
17546
 
 
17547
lt_aix_libpath_sed='
 
17548
    /Import File Strings/,/^$/ {
 
17549
        /^0/ {
 
17550
            s/^0  *\(.*\)$/\1/
 
17551
            p
 
17552
        }
 
17553
    }'
 
17554
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
17555
# Check for a 64-bit object if we didn't find anything.
 
17556
if test -z "$aix_libpath"; then
 
17557
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
17558
fi
 
17559
else
 
17560
  $as_echo "$as_me: failed program was:" >&5
 
17561
sed 's/^/| /' conftest.$ac_ext >&5
 
17562
 
 
17563
 
 
17564
fi
 
17565
 
 
17566
rm -rf conftest.dSYM
 
17567
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17568
      conftest$ac_exeext conftest.$ac_ext
 
17569
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
17570
 
 
17571
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
17572
        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"
 
17573
       else
 
17574
        if test "$host_cpu" = ia64; then
 
17575
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
 
17576
          allow_undefined_flag_GCJ="-z nodefs"
 
17577
          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"
 
17578
        else
 
17579
         # Determine the default libpath from the value encoded in an empty executable.
 
17580
         cat >conftest.$ac_ext <<_ACEOF
 
17581
/* confdefs.h.  */
 
17582
_ACEOF
 
17583
cat confdefs.h >>conftest.$ac_ext
 
17584
cat >>conftest.$ac_ext <<_ACEOF
 
17585
/* end confdefs.h.  */
 
17586
 
 
17587
int
 
17588
main ()
 
17589
{
 
17590
 
 
17591
  ;
 
17592
  return 0;
 
17593
}
 
17594
_ACEOF
 
17595
rm -f conftest.$ac_objext conftest$ac_exeext
 
17596
if { (ac_try="$ac_link"
 
17597
case "(($ac_try" in
 
17598
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17599
  *) ac_try_echo=$ac_try;;
 
17600
esac
 
17601
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
17602
$as_echo "$ac_try_echo") >&5
 
17603
  (eval "$ac_link") 2>conftest.er1
 
17604
  ac_status=$?
 
17605
  grep -v '^ *+' conftest.er1 >conftest.err
 
17606
  rm -f conftest.er1
 
17607
  cat conftest.err >&5
 
17608
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17609
  (exit $ac_status); } && {
 
17610
         test -z "$ac_c_werror_flag" ||
 
17611
         test ! -s conftest.err
 
17612
       } && test -s conftest$ac_exeext && {
 
17613
         test "$cross_compiling" = yes ||
 
17614
         $as_test_x conftest$ac_exeext
 
17615
       }; then
 
17616
 
 
17617
lt_aix_libpath_sed='
 
17618
    /Import File Strings/,/^$/ {
 
17619
        /^0/ {
 
17620
            s/^0  *\(.*\)$/\1/
 
17621
            p
 
17622
        }
 
17623
    }'
 
17624
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
17625
# Check for a 64-bit object if we didn't find anything.
 
17626
if test -z "$aix_libpath"; then
 
17627
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
17628
fi
 
17629
else
 
17630
  $as_echo "$as_me: failed program was:" >&5
 
17631
sed 's/^/| /' conftest.$ac_ext >&5
 
17632
 
 
17633
 
 
17634
fi
 
17635
 
 
17636
rm -rf conftest.dSYM
 
17637
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17638
      conftest$ac_exeext conftest.$ac_ext
 
17639
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
17640
 
 
17641
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
17642
          # Warning - without using the other run time loading flags,
 
17643
          # -berok will link without error, but may produce a broken library.
 
17644
          no_undefined_flag_GCJ=' ${wl}-bernotok'
 
17645
          allow_undefined_flag_GCJ=' ${wl}-berok'
 
17646
          # Exported symbols can be pulled into shared objects from archives
 
17647
          whole_archive_flag_spec_GCJ='$convenience'
 
17648
          archive_cmds_need_lc_GCJ=yes
 
17649
          # This is similar to how AIX traditionally builds its shared libraries.
 
17650
          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'
 
17651
        fi
 
17652
      fi
 
17653
      ;;
 
17654
 
 
17655
    amigaos*)
 
17656
      archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
 
17657
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17658
      hardcode_minus_L_GCJ=yes
 
17659
      # see comment about different semantics on the GNU ld section
 
17660
      ld_shlibs_GCJ=no
 
17661
      ;;
 
17662
 
 
17663
    bsdi[45]*)
 
17664
      export_dynamic_flag_spec_GCJ=-rdynamic
 
17665
      ;;
 
17666
 
 
17667
    cygwin* | mingw* | pw32*)
 
17668
      # When not using gcc, we currently assume that we are using
 
17669
      # Microsoft Visual C++.
 
17670
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
17671
      # no search path for DLLs.
 
17672
      hardcode_libdir_flag_spec_GCJ=' '
 
17673
      allow_undefined_flag_GCJ=unsupported
 
17674
      # Tell ltmain to make .lib files, not .a files.
 
17675
      libext=lib
 
17676
      # Tell ltmain to make .dll files, not .so files.
 
17677
      shrext_cmds=".dll"
 
17678
      # FIXME: Setting linknames here is a bad hack.
 
17679
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
17680
      # The linker will automatically build a .lib file if we build a DLL.
 
17681
      old_archive_From_new_cmds_GCJ='true'
 
17682
      # FIXME: Should let the user specify the lib program.
 
17683
      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
17684
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
 
17685
      enable_shared_with_static_runtimes_GCJ=yes
 
17686
      ;;
 
17687
 
 
17688
    darwin* | rhapsody*)
 
17689
      case $host_os in
 
17690
        rhapsody* | darwin1.[012])
 
17691
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
 
17692
         ;;
 
17693
       *) # Darwin 1.3 on
 
17694
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
17695
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
17696
         else
 
17697
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
17698
             10.[012])
 
17699
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
17700
               ;;
 
17701
             10.*)
 
17702
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
 
17703
               ;;
 
17704
           esac
 
17705
         fi
 
17706
         ;;
 
17707
      esac
 
17708
      archive_cmds_need_lc_GCJ=no
 
17709
      hardcode_direct_GCJ=no
 
17710
      hardcode_automatic_GCJ=yes
 
17711
      hardcode_shlibpath_var_GCJ=unsupported
 
17712
      whole_archive_flag_spec_GCJ=''
 
17713
      link_all_deplibs_GCJ=yes
 
17714
    if test "$GCC" = yes ; then
 
17715
        output_verbose_link_cmd='echo'
 
17716
        archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
17717
        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
17718
        archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
17719
        module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
 
17720
    else
 
17721
      case $cc_basename in
 
17722
        xlc*)
 
17723
         output_verbose_link_cmd='echo'
 
17724
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
17725
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
17726
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
17727
         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
17728
          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
17729
          ;;
 
17730
       *)
 
17731
         ld_shlibs_GCJ=no
 
17732
          ;;
 
17733
      esac
 
17734
    fi
 
17735
      ;;
 
17736
 
 
17737
    dgux*)
 
17738
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17739
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17740
      hardcode_shlibpath_var_GCJ=no
 
17741
      ;;
 
17742
 
 
17743
    freebsd1*)
 
17744
      ld_shlibs_GCJ=no
 
17745
      ;;
 
17746
 
 
17747
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
17748
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
17749
    # does not break anything, and helps significantly (at the cost of a little
 
17750
    # extra space).
 
17751
    freebsd2.2*)
 
17752
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
17753
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17754
      hardcode_direct_GCJ=yes
 
17755
      hardcode_shlibpath_var_GCJ=no
 
17756
      ;;
 
17757
 
 
17758
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
17759
    freebsd2*)
 
17760
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17761
      hardcode_direct_GCJ=yes
 
17762
      hardcode_minus_L_GCJ=yes
 
17763
      hardcode_shlibpath_var_GCJ=no
 
17764
      ;;
 
17765
 
 
17766
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
17767
    freebsd* | dragonfly*)
 
17768
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
17769
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17770
      hardcode_direct_GCJ=yes
 
17771
      hardcode_shlibpath_var_GCJ=no
 
17772
      ;;
 
17773
 
 
17774
    hpux9*)
 
17775
      if test "$GCC" = yes; then
 
17776
        archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
17777
      else
 
17778
        archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
17779
      fi
 
17780
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17781
      hardcode_libdir_separator_GCJ=:
 
17782
      hardcode_direct_GCJ=yes
 
17783
 
 
17784
      # hardcode_minus_L: Not really in the search PATH,
 
17785
      # but as the default location of the library.
 
17786
      hardcode_minus_L_GCJ=yes
 
17787
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
17788
      ;;
 
17789
 
 
17790
    hpux10*)
 
17791
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
17792
        archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
17793
      else
 
17794
        archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
17795
      fi
 
17796
      if test "$with_gnu_ld" = no; then
 
17797
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17798
        hardcode_libdir_separator_GCJ=:
 
17799
 
 
17800
        hardcode_direct_GCJ=yes
 
17801
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
17802
 
 
17803
        # hardcode_minus_L: Not really in the search PATH,
 
17804
        # but as the default location of the library.
 
17805
        hardcode_minus_L_GCJ=yes
 
17806
      fi
 
17807
      ;;
 
17808
 
 
17809
    hpux11*)
 
17810
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
17811
        case $host_cpu in
 
17812
        hppa*64*)
 
17813
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17814
          ;;
 
17815
        ia64*)
 
17816
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
17817
          ;;
 
17818
        *)
 
17819
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
17820
          ;;
 
17821
        esac
 
17822
      else
 
17823
        case $host_cpu in
 
17824
        hppa*64*)
 
17825
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17826
          ;;
 
17827
        ia64*)
 
17828
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
17829
          ;;
 
17830
        *)
 
17831
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
17832
          ;;
 
17833
        esac
 
17834
      fi
 
17835
      if test "$with_gnu_ld" = no; then
 
17836
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17837
        hardcode_libdir_separator_GCJ=:
 
17838
 
 
17839
        case $host_cpu in
 
17840
        hppa*64*|ia64*)
 
17841
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
 
17842
          hardcode_direct_GCJ=no
 
17843
          hardcode_shlibpath_var_GCJ=no
 
17844
          ;;
 
17845
        *)
 
17846
          hardcode_direct_GCJ=yes
 
17847
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
17848
 
 
17849
          # hardcode_minus_L: Not really in the search PATH,
 
17850
          # but as the default location of the library.
 
17851
          hardcode_minus_L_GCJ=yes
 
17852
          ;;
 
17853
        esac
 
17854
      fi
 
17855
      ;;
 
17856
 
 
17857
    irix5* | irix6* | nonstopux*)
 
17858
      if test "$GCC" = yes; then
 
17859
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
17860
      else
 
17861
        archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
17862
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
 
17863
      fi
 
17864
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17865
      hardcode_libdir_separator_GCJ=:
 
17866
      link_all_deplibs_GCJ=yes
 
17867
      ;;
 
17868
 
 
17869
    netbsd*)
 
17870
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17871
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
17872
      else
 
17873
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
17874
      fi
 
17875
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17876
      hardcode_direct_GCJ=yes
 
17877
      hardcode_shlibpath_var_GCJ=no
 
17878
      ;;
 
17879
 
 
17880
    newsos6)
 
17881
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17882
      hardcode_direct_GCJ=yes
 
17883
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17884
      hardcode_libdir_separator_GCJ=:
 
17885
      hardcode_shlibpath_var_GCJ=no
 
17886
      ;;
 
17887
 
 
17888
    openbsd*)
 
17889
      if test -f /usr/libexec/ld.so; then
 
17890
        hardcode_direct_GCJ=yes
 
17891
        hardcode_shlibpath_var_GCJ=no
 
17892
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
17893
          archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
17894
          archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
17895
          hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17896
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
17897
        else
 
17898
          case $host_os in
 
17899
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
17900
             archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17901
             hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17902
             ;;
 
17903
           *)
 
17904
             archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
17905
             hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17906
             ;;
 
17907
          esac
 
17908
        fi
 
17909
      else
 
17910
        ld_shlibs_GCJ=no
 
17911
      fi
 
17912
      ;;
 
17913
 
 
17914
    os2*)
 
17915
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17916
      hardcode_minus_L_GCJ=yes
 
17917
      allow_undefined_flag_GCJ=unsupported
 
17918
      archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
 
17919
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
17920
      ;;
 
17921
 
 
17922
    osf3*)
 
17923
      if test "$GCC" = yes; then
 
17924
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
17925
        archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
17926
      else
 
17927
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
17928
        archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
17929
      fi
 
17930
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17931
      hardcode_libdir_separator_GCJ=:
 
17932
      ;;
 
17933
 
 
17934
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
17935
      if test "$GCC" = yes; then
 
17936
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
17937
        archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
17938
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17939
      else
 
17940
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
17941
        archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
17942
        archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
17943
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
17944
 
 
17945
        # Both c and cxx compiler support -rpath directly
 
17946
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
 
17947
      fi
 
17948
      hardcode_libdir_separator_GCJ=:
 
17949
      ;;
 
17950
 
 
17951
    solaris*)
 
17952
      no_undefined_flag_GCJ=' -z text'
 
17953
      if test "$GCC" = yes; then
 
17954
        wlarc='${wl}'
 
17955
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17956
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
17957
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
17958
      else
 
17959
        wlarc=''
 
17960
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17961
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
17962
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
17963
      fi
 
17964
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17965
      hardcode_shlibpath_var_GCJ=no
 
17966
      case $host_os in
 
17967
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
17968
      *)
 
17969
        # The compiler driver will combine and reorder linker options,
 
17970
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
17971
        # but is careful enough not to reorder.
 
17972
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
17973
        if test "$GCC" = yes; then
 
17974
          whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
17975
        else
 
17976
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
 
17977
        fi
 
17978
        ;;
 
17979
      esac
 
17980
      link_all_deplibs_GCJ=yes
 
17981
      ;;
 
17982
 
 
17983
    sunos4*)
 
17984
      if test "x$host_vendor" = xsequent; then
 
17985
        # Use $CC to link under sequent, because it throws in some extra .o
 
17986
        # files that make .init and .fini sections work.
 
17987
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
17988
      else
 
17989
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
17990
      fi
 
17991
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17992
      hardcode_direct_GCJ=yes
 
17993
      hardcode_minus_L_GCJ=yes
 
17994
      hardcode_shlibpath_var_GCJ=no
 
17995
      ;;
 
17996
 
 
17997
    sysv4)
 
17998
      case $host_vendor in
 
17999
        sni)
 
18000
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18001
          hardcode_direct_GCJ=yes # is this really true???
 
18002
        ;;
 
18003
        siemens)
 
18004
          ## LD is ld it makes a PLAMLIB
 
18005
          ## CC just makes a GrossModule.
 
18006
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
18007
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
 
18008
          hardcode_direct_GCJ=no
 
18009
        ;;
 
18010
        motorola)
 
18011
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18012
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
 
18013
        ;;
 
18014
      esac
 
18015
      runpath_var='LD_RUN_PATH'
 
18016
      hardcode_shlibpath_var_GCJ=no
 
18017
      ;;
 
18018
 
 
18019
    sysv4.3*)
 
18020
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18021
      hardcode_shlibpath_var_GCJ=no
 
18022
      export_dynamic_flag_spec_GCJ='-Bexport'
 
18023
      ;;
 
18024
 
 
18025
    sysv4*MP*)
 
18026
      if test -d /usr/nec; then
 
18027
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18028
        hardcode_shlibpath_var_GCJ=no
 
18029
        runpath_var=LD_RUN_PATH
 
18030
        hardcode_runpath_var=yes
 
18031
        ld_shlibs_GCJ=yes
 
18032
      fi
 
18033
      ;;
 
18034
 
 
18035
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
18036
      no_undefined_flag_GCJ='${wl}-z,text'
 
18037
      archive_cmds_need_lc_GCJ=no
 
18038
      hardcode_shlibpath_var_GCJ=no
 
18039
      runpath_var='LD_RUN_PATH'
 
18040
 
 
18041
      if test "$GCC" = yes; then
 
18042
        archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18043
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18044
      else
 
18045
        archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18046
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18047
      fi
 
18048
      ;;
 
18049
 
 
18050
    sysv5* | sco3.2v5* | sco5v6*)
 
18051
      # Note: We can NOT use -z defs as we might desire, because we do not
 
18052
      # link with -lc, and that would cause any symbols used from libc to
 
18053
      # always be unresolved, which means just about no library would
 
18054
      # ever link correctly.  If we're not using GNU ld we use -z text
 
18055
      # though, which does catch some bad symbols but isn't as heavy-handed
 
18056
      # as -z defs.
 
18057
      no_undefined_flag_GCJ='${wl}-z,text'
 
18058
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
 
18059
      archive_cmds_need_lc_GCJ=no
 
18060
      hardcode_shlibpath_var_GCJ=no
 
18061
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
18062
      hardcode_libdir_separator_GCJ=':'
 
18063
      link_all_deplibs_GCJ=yes
 
18064
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
18065
      runpath_var='LD_RUN_PATH'
 
18066
 
 
18067
      if test "$GCC" = yes; then
 
18068
        archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18069
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18070
      else
 
18071
        archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18072
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18073
      fi
 
18074
      ;;
 
18075
 
 
18076
    uts4*)
 
18077
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18078
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18079
      hardcode_shlibpath_var_GCJ=no
 
18080
      ;;
 
18081
 
 
18082
    *)
 
18083
      ld_shlibs_GCJ=no
 
18084
      ;;
 
18085
    esac
 
18086
  fi
 
18087
 
 
18088
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
18089
$as_echo "$ld_shlibs_GCJ" >&6; }
 
18090
test "$ld_shlibs_GCJ" = no && can_build_shared=no
 
18091
 
 
18092
#
 
18093
# Do we need to explicitly link libc?
 
18094
#
 
18095
case "x$archive_cmds_need_lc_GCJ" in
 
18096
x|xyes)
 
18097
  # Assume -lc should be added
 
18098
  archive_cmds_need_lc_GCJ=yes
 
18099
 
 
18100
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
18101
    case $archive_cmds_GCJ in
 
18102
    *'~'*)
 
18103
      # FIXME: we may have to deal with multi-command sequences.
 
18104
      ;;
 
18105
    '$CC '*)
 
18106
      # Test whether the compiler implicitly links with -lc since on some
 
18107
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
18108
      # to ld, don't add -lc before -lgcc.
 
18109
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
18110
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
18111
      $rm conftest*
 
18112
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
18113
 
 
18114
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
18115
  (eval $ac_compile) 2>&5
 
18116
  ac_status=$?
 
18117
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18118
  (exit $ac_status); } 2>conftest.err; then
 
18119
        soname=conftest
 
18120
        lib=conftest
 
18121
        libobjs=conftest.$ac_objext
 
18122
        deplibs=
 
18123
        wl=$lt_prog_compiler_wl_GCJ
 
18124
        pic_flag=$lt_prog_compiler_pic_GCJ
 
18125
        compiler_flags=-v
 
18126
        linker_flags=-v
 
18127
        verstring=
 
18128
        output_objdir=.
 
18129
        libname=conftest
 
18130
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
 
18131
        allow_undefined_flag_GCJ=
 
18132
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
18133
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
18134
  ac_status=$?
 
18135
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18136
  (exit $ac_status); }
 
18137
        then
 
18138
          archive_cmds_need_lc_GCJ=no
 
18139
        else
 
18140
          archive_cmds_need_lc_GCJ=yes
 
18141
        fi
 
18142
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
 
18143
      else
 
18144
        cat conftest.err 1>&5
 
18145
      fi
 
18146
      $rm conftest*
 
18147
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
18148
$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
 
18149
      ;;
 
18150
    esac
 
18151
  fi
 
18152
  ;;
 
18153
esac
 
18154
 
 
18155
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
18156
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
18157
library_names_spec=
 
18158
libname_spec='lib$name'
 
18159
soname_spec=
 
18160
shrext_cmds=".so"
 
18161
postinstall_cmds=
 
18162
postuninstall_cmds=
 
18163
finish_cmds=
 
18164
finish_eval=
 
18165
shlibpath_var=
 
18166
shlibpath_overrides_runpath=unknown
 
18167
version_type=none
 
18168
dynamic_linker="$host_os ld.so"
 
18169
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
18170
 
 
18171
need_lib_prefix=unknown
 
18172
hardcode_into_libs=no
 
18173
 
 
18174
# when you set need_version to no, make sure it does not cause -set_version
 
18175
# flags to be left without arguments
 
18176
need_version=unknown
 
18177
 
 
18178
case $host_os in
 
18179
aix3*)
 
18180
  version_type=linux
 
18181
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
18182
  shlibpath_var=LIBPATH
 
18183
 
 
18184
  # AIX 3 has no versioning support, so we append a major version to the name.
 
18185
  soname_spec='${libname}${release}${shared_ext}$major'
 
18186
  ;;
 
18187
 
 
18188
aix[4-9]*)
 
18189
  version_type=linux
 
18190
  need_lib_prefix=no
 
18191
  need_version=no
 
18192
  hardcode_into_libs=yes
 
18193
  if test "$host_cpu" = ia64; then
 
18194
    # AIX 5 supports IA64
 
18195
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
18196
    shlibpath_var=LD_LIBRARY_PATH
 
18197
  else
 
18198
    # With GCC up to 2.95.x, collect2 would create an import file
 
18199
    # for dependence libraries.  The import file would start with
 
18200
    # the line `#! .'.  This would cause the generated library to
 
18201
    # depend on `.', always an invalid library.  This was fixed in
 
18202
    # development snapshots of GCC prior to 3.0.
 
18203
    case $host_os in
 
18204
      aix4 | aix4.[01] | aix4.[01].*)
 
18205
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
18206
           echo ' yes '
 
18207
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
18208
        :
 
18209
      else
 
18210
        can_build_shared=no
 
18211
      fi
 
18212
      ;;
 
18213
    esac
 
18214
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
18215
    # soname into executable. Probably we can add versioning support to
 
18216
    # collect2, so additional links can be useful in future.
 
18217
    if test "$aix_use_runtimelinking" = yes; then
 
18218
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
18219
      # instead of lib<name>.a to let people know that these are not
 
18220
      # typical AIX shared libraries.
 
18221
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18222
    else
 
18223
      # We preserve .a as extension for shared libraries through AIX4.2
 
18224
      # and later when we are not doing run time linking.
 
18225
      library_names_spec='${libname}${release}.a $libname.a'
 
18226
      soname_spec='${libname}${release}${shared_ext}$major'
 
18227
    fi
 
18228
    shlibpath_var=LIBPATH
 
18229
  fi
 
18230
  ;;
 
18231
 
 
18232
amigaos*)
 
18233
  library_names_spec='$libname.ixlibrary $libname.a'
 
18234
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
18235
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
18236
  ;;
 
18237
 
 
18238
beos*)
 
18239
  library_names_spec='${libname}${shared_ext}'
 
18240
  dynamic_linker="$host_os ld.so"
 
18241
  shlibpath_var=LIBRARY_PATH
 
18242
  ;;
 
18243
 
 
18244
bsdi[45]*)
 
18245
  version_type=linux
 
18246
  need_version=no
 
18247
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18248
  soname_spec='${libname}${release}${shared_ext}$major'
 
18249
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
18250
  shlibpath_var=LD_LIBRARY_PATH
 
18251
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
18252
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
18253
  # the default ld.so.conf also contains /usr/contrib/lib and
 
18254
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
18255
  # libtool to hard-code these into programs
 
18256
  ;;
 
18257
 
 
18258
cygwin* | mingw* | pw32*)
 
18259
  version_type=windows
 
18260
  shrext_cmds=".dll"
 
18261
  need_version=no
 
18262
  need_lib_prefix=no
 
18263
 
 
18264
  case $GCC,$host_os in
 
18265
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
18266
    library_names_spec='$libname.dll.a'
 
18267
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
18268
    postinstall_cmds='base_file=`basename \${file}`~
 
18269
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
18270
      dldir=$destdir/`dirname \$dlpath`~
 
18271
      test -d \$dldir || mkdir -p \$dldir~
 
18272
      $install_prog $dir/$dlname \$dldir/$dlname~
 
18273
      chmod a+x \$dldir/$dlname'
 
18274
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
18275
      dlpath=$dir/\$dldll~
 
18276
       $rm \$dlpath'
 
18277
    shlibpath_overrides_runpath=yes
 
18278
 
 
18279
    case $host_os in
 
18280
    cygwin*)
 
18281
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
18282
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18283
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
18284
      ;;
 
18285
    mingw*)
 
18286
      # MinGW DLLs use traditional 'lib' prefix
 
18287
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18288
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
18289
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
18290
        # It is most probably a Windows format PATH printed by
 
18291
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
18292
        # path with ; separators, and with drive letters. We can handle the
 
18293
        # drive letters (cygwin fileutils understands them), so leave them,
 
18294
        # especially as we might pass files found there to a mingw objdump,
 
18295
        # which wouldn't understand a cygwinified path. Ahh.
 
18296
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
18297
      else
 
18298
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
18299
      fi
 
18300
      ;;
 
18301
    pw32*)
 
18302
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
18303
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18304
      ;;
 
18305
    esac
 
18306
    ;;
 
18307
 
 
18308
  *)
 
18309
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
18310
    ;;
 
18311
  esac
 
18312
  dynamic_linker='Win32 ld.exe'
 
18313
  # FIXME: first we should search . and the directory the executable is in
 
18314
  shlibpath_var=PATH
 
18315
  ;;
 
18316
 
 
18317
darwin* | rhapsody*)
 
18318
  dynamic_linker="$host_os dyld"
 
18319
  version_type=darwin
 
18320
  need_lib_prefix=no
 
18321
  need_version=no
 
18322
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
18323
  soname_spec='${libname}${release}${major}$shared_ext'
 
18324
  shlibpath_overrides_runpath=yes
 
18325
  shlibpath_var=DYLD_LIBRARY_PATH
 
18326
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
18327
 
 
18328
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
18329
  ;;
 
18330
 
 
18331
dgux*)
 
18332
  version_type=linux
 
18333
  need_lib_prefix=no
 
18334
  need_version=no
 
18335
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
18336
  soname_spec='${libname}${release}${shared_ext}$major'
 
18337
  shlibpath_var=LD_LIBRARY_PATH
 
18338
  ;;
 
18339
 
 
18340
freebsd1*)
 
18341
  dynamic_linker=no
 
18342
  ;;
 
18343
 
 
18344
freebsd* | dragonfly*)
 
18345
  # DragonFly does not have aout.  When/if they implement a new
 
18346
  # versioning mechanism, adjust this.
 
18347
  if test -x /usr/bin/objformat; then
 
18348
    objformat=`/usr/bin/objformat`
 
18349
  else
 
18350
    case $host_os in
 
18351
    freebsd[123]*) objformat=aout ;;
 
18352
    *) objformat=elf ;;
 
18353
    esac
 
18354
  fi
 
18355
  version_type=freebsd-$objformat
 
18356
  case $version_type in
 
18357
    freebsd-elf*)
 
18358
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18359
      need_version=no
 
18360
      need_lib_prefix=no
 
18361
      ;;
 
18362
    freebsd-*)
 
18363
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
18364
      need_version=yes
 
18365
      ;;
 
18366
  esac
 
18367
  shlibpath_var=LD_LIBRARY_PATH
 
18368
  case $host_os in
 
18369
  freebsd2*)
 
18370
    shlibpath_overrides_runpath=yes
 
18371
    ;;
 
18372
  freebsd3.[01]* | freebsdelf3.[01]*)
 
18373
    shlibpath_overrides_runpath=yes
 
18374
    hardcode_into_libs=yes
 
18375
    ;;
 
18376
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
18377
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
18378
    shlibpath_overrides_runpath=no
 
18379
    hardcode_into_libs=yes
 
18380
    ;;
 
18381
  *) # from 4.6 on, and DragonFly
 
18382
    shlibpath_overrides_runpath=yes
 
18383
    hardcode_into_libs=yes
 
18384
    ;;
 
18385
  esac
 
18386
  ;;
 
18387
 
 
18388
gnu*)
 
18389
  version_type=linux
 
18390
  need_lib_prefix=no
 
18391
  need_version=no
 
18392
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
18393
  soname_spec='${libname}${release}${shared_ext}$major'
 
18394
  shlibpath_var=LD_LIBRARY_PATH
 
18395
  hardcode_into_libs=yes
 
18396
  ;;
 
18397
 
 
18398
hpux9* | hpux10* | hpux11*)
 
18399
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
18400
  # link against other versions.
 
18401
  version_type=sunos
 
18402
  need_lib_prefix=no
 
18403
  need_version=no
 
18404
  case $host_cpu in
 
18405
  ia64*)
 
18406
    shrext_cmds='.so'
 
18407
    hardcode_into_libs=yes
 
18408
    dynamic_linker="$host_os dld.so"
 
18409
    shlibpath_var=LD_LIBRARY_PATH
 
18410
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
18411
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18412
    soname_spec='${libname}${release}${shared_ext}$major'
 
18413
    if test "X$HPUX_IA64_MODE" = X32; then
 
18414
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
18415
    else
 
18416
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
18417
    fi
 
18418
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
18419
    ;;
 
18420
   hppa*64*)
 
18421
     shrext_cmds='.sl'
 
18422
     hardcode_into_libs=yes
 
18423
     dynamic_linker="$host_os dld.sl"
 
18424
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
18425
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
18426
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18427
     soname_spec='${libname}${release}${shared_ext}$major'
 
18428
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
18429
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
18430
     ;;
 
18431
   *)
 
18432
    shrext_cmds='.sl'
 
18433
    dynamic_linker="$host_os dld.sl"
 
18434
    shlibpath_var=SHLIB_PATH
 
18435
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
18436
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18437
    soname_spec='${libname}${release}${shared_ext}$major'
 
18438
    ;;
 
18439
  esac
 
18440
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
18441
  postinstall_cmds='chmod 555 $lib'
 
18442
  ;;
 
18443
 
 
18444
interix[3-9]*)
 
18445
  version_type=linux
 
18446
  need_lib_prefix=no
 
18447
  need_version=no
 
18448
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18449
  soname_spec='${libname}${release}${shared_ext}$major'
 
18450
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
18451
  shlibpath_var=LD_LIBRARY_PATH
 
18452
  shlibpath_overrides_runpath=no
 
18453
  hardcode_into_libs=yes
 
18454
  ;;
 
18455
 
 
18456
irix5* | irix6* | nonstopux*)
 
18457
  case $host_os in
 
18458
    nonstopux*) version_type=nonstopux ;;
 
18459
    *)
 
18460
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
18461
                version_type=linux
 
18462
        else
 
18463
                version_type=irix
 
18464
        fi ;;
 
18465
  esac
 
18466
  need_lib_prefix=no
 
18467
  need_version=no
 
18468
  soname_spec='${libname}${release}${shared_ext}$major'
 
18469
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18470
  case $host_os in
 
18471
  irix5* | nonstopux*)
 
18472
    libsuff= shlibsuff=
 
18473
    ;;
 
18474
  *)
 
18475
    case $LD in # libtool.m4 will add one of these switches to LD
 
18476
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
18477
      libsuff= shlibsuff= libmagic=32-bit;;
 
18478
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
18479
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
18480
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
18481
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
18482
    *) libsuff= shlibsuff= libmagic=never-match;;
 
18483
    esac
 
18484
    ;;
 
18485
  esac
 
18486
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
18487
  shlibpath_overrides_runpath=no
 
18488
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
18489
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
18490
  hardcode_into_libs=yes
 
18491
  ;;
 
18492
 
 
18493
# No shared lib support for Linux oldld, aout, or coff.
 
18494
linux*oldld* | linux*aout* | linux*coff*)
 
18495
  dynamic_linker=no
 
18496
  ;;
 
18497
 
 
18498
# This must be Linux ELF.
 
18499
linux* | k*bsd*-gnu)
 
18500
  version_type=linux
 
18501
  need_lib_prefix=no
 
18502
  need_version=no
 
18503
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18504
  soname_spec='${libname}${release}${shared_ext}$major'
 
18505
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
18506
  shlibpath_var=LD_LIBRARY_PATH
 
18507
  shlibpath_overrides_runpath=no
 
18508
  # This implies no fast_install, which is unacceptable.
 
18509
  # Some rework will be needed to allow for fast_install
 
18510
  # before this can be enabled.
 
18511
  hardcode_into_libs=yes
 
18512
 
 
18513
  # Append ld.so.conf contents to the search path
 
18514
  if test -f /etc/ld.so.conf; then
 
18515
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
18516
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
18517
  fi
 
18518
 
 
18519
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
18520
  # powerpc, because MkLinux only supported shared libraries with the
 
18521
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
18522
  # most powerpc-linux boxes support dynamic linking these days and
 
18523
  # people can always --disable-shared, the test was removed, and we
 
18524
  # assume the GNU/Linux dynamic linker is in use.
 
18525
  dynamic_linker='GNU/Linux ld.so'
 
18526
  ;;
 
18527
 
 
18528
netbsd*)
 
18529
  version_type=sunos
 
18530
  need_lib_prefix=no
 
18531
  need_version=no
 
18532
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
18533
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18534
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
18535
    dynamic_linker='NetBSD (a.out) ld.so'
 
18536
  else
 
18537
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18538
    soname_spec='${libname}${release}${shared_ext}$major'
 
18539
    dynamic_linker='NetBSD ld.elf_so'
 
18540
  fi
 
18541
  shlibpath_var=LD_LIBRARY_PATH
 
18542
  shlibpath_overrides_runpath=yes
 
18543
  hardcode_into_libs=yes
 
18544
  ;;
 
18545
 
 
18546
newsos6)
 
18547
  version_type=linux
 
18548
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18549
  shlibpath_var=LD_LIBRARY_PATH
 
18550
  shlibpath_overrides_runpath=yes
 
18551
  ;;
 
18552
 
 
18553
nto-qnx*)
 
18554
  version_type=linux
 
18555
  need_lib_prefix=no
 
18556
  need_version=no
 
18557
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18558
  soname_spec='${libname}${release}${shared_ext}$major'
 
18559
  shlibpath_var=LD_LIBRARY_PATH
 
18560
  shlibpath_overrides_runpath=yes
 
18561
  ;;
 
18562
 
 
18563
openbsd*)
 
18564
  version_type=sunos
 
18565
  sys_lib_dlsearch_path_spec="/usr/lib"
 
18566
  need_lib_prefix=no
 
18567
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
18568
  case $host_os in
 
18569
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
18570
    *)                         need_version=no  ;;
 
18571
  esac
 
18572
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18573
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
18574
  shlibpath_var=LD_LIBRARY_PATH
 
18575
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
18576
    case $host_os in
 
18577
      openbsd2.[89] | openbsd2.[89].*)
 
18578
        shlibpath_overrides_runpath=no
 
18579
        ;;
 
18580
      *)
 
18581
        shlibpath_overrides_runpath=yes
 
18582
        ;;
 
18583
      esac
 
18584
  else
 
18585
    shlibpath_overrides_runpath=yes
 
18586
  fi
 
18587
  ;;
 
18588
 
 
18589
os2*)
 
18590
  libname_spec='$name'
 
18591
  shrext_cmds=".dll"
 
18592
  need_lib_prefix=no
 
18593
  library_names_spec='$libname${shared_ext} $libname.a'
 
18594
  dynamic_linker='OS/2 ld.exe'
 
18595
  shlibpath_var=LIBPATH
 
18596
  ;;
 
18597
 
 
18598
osf3* | osf4* | osf5*)
 
18599
  version_type=osf
 
18600
  need_lib_prefix=no
 
18601
  need_version=no
 
18602
  soname_spec='${libname}${release}${shared_ext}$major'
 
18603
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18604
  shlibpath_var=LD_LIBRARY_PATH
 
18605
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
18606
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
18607
  ;;
 
18608
 
 
18609
rdos*)
 
18610
  dynamic_linker=no
 
18611
  ;;
 
18612
 
 
18613
solaris*)
 
18614
  version_type=linux
 
18615
  need_lib_prefix=no
 
18616
  need_version=no
 
18617
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18618
  soname_spec='${libname}${release}${shared_ext}$major'
 
18619
  shlibpath_var=LD_LIBRARY_PATH
 
18620
  shlibpath_overrides_runpath=yes
 
18621
  hardcode_into_libs=yes
 
18622
  # ldd complains unless libraries are executable
 
18623
  postinstall_cmds='chmod +x $lib'
 
18624
  ;;
 
18625
 
 
18626
sunos4*)
 
18627
  version_type=sunos
 
18628
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18629
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
18630
  shlibpath_var=LD_LIBRARY_PATH
 
18631
  shlibpath_overrides_runpath=yes
 
18632
  if test "$with_gnu_ld" = yes; then
 
18633
    need_lib_prefix=no
 
18634
  fi
 
18635
  need_version=yes
 
18636
  ;;
 
18637
 
 
18638
sysv4 | sysv4.3*)
 
18639
  version_type=linux
 
18640
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18641
  soname_spec='${libname}${release}${shared_ext}$major'
 
18642
  shlibpath_var=LD_LIBRARY_PATH
 
18643
  case $host_vendor in
 
18644
    sni)
 
18645
      shlibpath_overrides_runpath=no
 
18646
      need_lib_prefix=no
 
18647
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
18648
      runpath_var=LD_RUN_PATH
 
18649
      ;;
 
18650
    siemens)
 
18651
      need_lib_prefix=no
 
18652
      ;;
 
18653
    motorola)
 
18654
      need_lib_prefix=no
 
18655
      need_version=no
 
18656
      shlibpath_overrides_runpath=no
 
18657
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
18658
      ;;
 
18659
  esac
 
18660
  ;;
 
18661
 
 
18662
sysv4*MP*)
 
18663
  if test -d /usr/nec ;then
 
18664
    version_type=linux
 
18665
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
18666
    soname_spec='$libname${shared_ext}.$major'
 
18667
    shlibpath_var=LD_LIBRARY_PATH
 
18668
  fi
 
18669
  ;;
 
18670
 
 
18671
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
18672
  version_type=freebsd-elf
 
18673
  need_lib_prefix=no
 
18674
  need_version=no
 
18675
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18676
  soname_spec='${libname}${release}${shared_ext}$major'
 
18677
  shlibpath_var=LD_LIBRARY_PATH
 
18678
  hardcode_into_libs=yes
 
18679
  if test "$with_gnu_ld" = yes; then
 
18680
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
18681
    shlibpath_overrides_runpath=no
 
18682
  else
 
18683
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
18684
    shlibpath_overrides_runpath=yes
 
18685
    case $host_os in
 
18686
      sco3.2v5*)
 
18687
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
18688
        ;;
 
18689
    esac
 
18690
  fi
 
18691
  sys_lib_dlsearch_path_spec='/usr/lib'
 
18692
  ;;
 
18693
 
 
18694
uts4*)
 
18695
  version_type=linux
 
18696
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18697
  soname_spec='${libname}${release}${shared_ext}$major'
 
18698
  shlibpath_var=LD_LIBRARY_PATH
 
18699
  ;;
 
18700
 
 
18701
*)
 
18702
  dynamic_linker=no
 
18703
  ;;
 
18704
esac
 
18705
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
18706
$as_echo "$dynamic_linker" >&6; }
 
18707
test "$dynamic_linker" = no && can_build_shared=no
 
18708
 
 
18709
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
18710
  $as_echo_n "(cached) " >&6
 
18711
else
 
18712
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
18713
fi
 
18714
 
 
18715
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
18716
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
18717
  $as_echo_n "(cached) " >&6
 
18718
else
 
18719
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
18720
fi
 
18721
 
 
18722
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
18723
 
 
18724
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
18725
if test "$GCC" = yes; then
 
18726
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
18727
fi
 
18728
 
 
18729
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
18730
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
18731
hardcode_action_GCJ=
 
18732
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
 
18733
   test -n "$runpath_var_GCJ" || \
 
18734
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
 
18735
 
 
18736
  # We can hardcode non-existant directories.
 
18737
  if test "$hardcode_direct_GCJ" != no &&
 
18738
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
18739
     # have to relink, otherwise we might link with an installed library
 
18740
     # when we should be linking with a yet-to-be-installed one
 
18741
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
 
18742
     test "$hardcode_minus_L_GCJ" != no; then
 
18743
    # Linking always hardcodes the temporary library directory.
 
18744
    hardcode_action_GCJ=relink
 
18745
  else
 
18746
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
18747
    hardcode_action_GCJ=immediate
 
18748
  fi
 
18749
else
 
18750
  # We cannot hardcode anything, or else we can only hardcode existing
 
18751
  # directories.
 
18752
  hardcode_action_GCJ=unsupported
 
18753
fi
 
18754
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
18755
$as_echo "$hardcode_action_GCJ" >&6; }
 
18756
 
 
18757
if test "$hardcode_action_GCJ" = relink; then
 
18758
  # Fast installation is not supported
 
18759
  enable_fast_install=no
 
18760
elif test "$shlibpath_overrides_runpath" = yes ||
 
18761
     test "$enable_shared" = no; then
 
18762
  # Fast installation is not necessary
 
18763
  enable_fast_install=needless
 
18764
fi
 
18765
 
 
18766
 
 
18767
# The else clause should only fire when bootstrapping the
 
18768
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
18769
# with your package, and you will get complaints that there are
 
18770
# no rules to generate ltmain.sh.
 
18771
if test -f "$ltmain"; then
 
18772
  # See if we are running on zsh, and set the options which allow our commands through
 
18773
  # without removal of \ escapes.
 
18774
  if test -n "${ZSH_VERSION+set}" ; then
 
18775
    setopt NO_GLOB_SUBST
 
18776
  fi
 
18777
  # Now quote all the things that may contain metacharacters while being
 
18778
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
18779
  # variables and quote the copies for generation of the libtool script.
 
18780
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
18781
    SED SHELL STRIP \
 
18782
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
18783
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
18784
    deplibs_check_method reload_flag reload_cmds need_locks \
 
18785
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
18786
    lt_cv_sys_global_symbol_to_c_name_address \
 
18787
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
18788
    old_postinstall_cmds old_postuninstall_cmds \
 
18789
    compiler_GCJ \
 
18790
    CC_GCJ \
 
18791
    LD_GCJ \
 
18792
    lt_prog_compiler_wl_GCJ \
 
18793
    lt_prog_compiler_pic_GCJ \
 
18794
    lt_prog_compiler_static_GCJ \
 
18795
    lt_prog_compiler_no_builtin_flag_GCJ \
 
18796
    export_dynamic_flag_spec_GCJ \
 
18797
    thread_safe_flag_spec_GCJ \
 
18798
    whole_archive_flag_spec_GCJ \
 
18799
    enable_shared_with_static_runtimes_GCJ \
 
18800
    old_archive_cmds_GCJ \
 
18801
    old_archive_from_new_cmds_GCJ \
 
18802
    predep_objects_GCJ \
 
18803
    postdep_objects_GCJ \
 
18804
    predeps_GCJ \
 
18805
    postdeps_GCJ \
 
18806
    compiler_lib_search_path_GCJ \
 
18807
    compiler_lib_search_dirs_GCJ \
 
18808
    archive_cmds_GCJ \
 
18809
    archive_expsym_cmds_GCJ \
 
18810
    postinstall_cmds_GCJ \
 
18811
    postuninstall_cmds_GCJ \
 
18812
    old_archive_from_expsyms_cmds_GCJ \
 
18813
    allow_undefined_flag_GCJ \
 
18814
    no_undefined_flag_GCJ \
 
18815
    export_symbols_cmds_GCJ \
 
18816
    hardcode_libdir_flag_spec_GCJ \
 
18817
    hardcode_libdir_flag_spec_ld_GCJ \
 
18818
    hardcode_libdir_separator_GCJ \
 
18819
    hardcode_automatic_GCJ \
 
18820
    module_cmds_GCJ \
 
18821
    module_expsym_cmds_GCJ \
 
18822
    lt_cv_prog_compiler_c_o_GCJ \
 
18823
    fix_srcfile_path_GCJ \
 
18824
    exclude_expsyms_GCJ \
 
18825
    include_expsyms_GCJ; do
 
18826
 
 
18827
    case $var in
 
18828
    old_archive_cmds_GCJ | \
 
18829
    old_archive_from_new_cmds_GCJ | \
 
18830
    archive_cmds_GCJ | \
 
18831
    archive_expsym_cmds_GCJ | \
 
18832
    module_cmds_GCJ | \
 
18833
    module_expsym_cmds_GCJ | \
 
18834
    old_archive_from_expsyms_cmds_GCJ | \
 
18835
    export_symbols_cmds_GCJ | \
 
18836
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
18837
    postinstall_cmds | postuninstall_cmds | \
 
18838
    old_postinstall_cmds | old_postuninstall_cmds | \
 
18839
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
18840
      # Double-quote double-evaled strings.
 
18841
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
18842
      ;;
 
18843
    *)
 
18844
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
18845
      ;;
 
18846
    esac
 
18847
  done
 
18848
 
 
18849
  case $lt_echo in
 
18850
  *'\$0 --fallback-echo"')
 
18851
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
18852
    ;;
 
18853
  esac
 
18854
 
 
18855
cfgfile="$ofile"
 
18856
 
 
18857
  cat <<__EOF__ >> "$cfgfile"
 
18858
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
18859
 
 
18860
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
18861
 
 
18862
# Shell to use when invoking shell scripts.
 
18863
SHELL=$lt_SHELL
 
18864
 
 
18865
# Whether or not to build shared libraries.
 
18866
build_libtool_libs=$enable_shared
 
18867
 
 
18868
# Whether or not to build static libraries.
 
18869
build_old_libs=$enable_static
 
18870
 
 
18871
# Whether or not to add -lc for building shared libraries.
 
18872
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
 
18873
 
 
18874
# Whether or not to disallow shared libs when runtime libs are static
 
18875
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
 
18876
 
 
18877
# Whether or not to optimize for fast installation.
 
18878
fast_install=$enable_fast_install
 
18879
 
 
18880
# The host system.
 
18881
host_alias=$host_alias
 
18882
host=$host
 
18883
host_os=$host_os
 
18884
 
 
18885
# The build system.
 
18886
build_alias=$build_alias
 
18887
build=$build
 
18888
build_os=$build_os
 
18889
 
 
18890
# An echo program that does not interpret backslashes.
 
18891
echo=$lt_echo
 
18892
 
 
18893
# The archiver.
 
18894
AR=$lt_AR
 
18895
AR_FLAGS=$lt_AR_FLAGS
 
18896
 
 
18897
# A C compiler.
 
18898
LTCC=$lt_LTCC
 
18899
 
 
18900
# LTCC compiler flags.
 
18901
LTCFLAGS=$lt_LTCFLAGS
 
18902
 
 
18903
# A language-specific compiler.
 
18904
CC=$lt_compiler_GCJ
 
18905
 
 
18906
# Is the compiler the GNU C compiler?
 
18907
with_gcc=$GCC_GCJ
 
18908
 
 
18909
# An ERE matcher.
 
18910
EGREP=$lt_EGREP
 
18911
 
 
18912
# The linker used to build libraries.
 
18913
LD=$lt_LD_GCJ
 
18914
 
 
18915
# Whether we need hard or soft links.
 
18916
LN_S=$lt_LN_S
 
18917
 
 
18918
# A BSD-compatible nm program.
 
18919
NM=$lt_NM
 
18920
 
 
18921
# A symbol stripping program
 
18922
STRIP=$lt_STRIP
 
18923
 
 
18924
# Used to examine libraries when file_magic_cmd begins "file"
 
18925
MAGIC_CMD=$MAGIC_CMD
 
18926
 
 
18927
# Used on cygwin: DLL creation program.
 
18928
DLLTOOL="$DLLTOOL"
 
18929
 
 
18930
# Used on cygwin: object dumper.
 
18931
OBJDUMP="$OBJDUMP"
 
18932
 
 
18933
# Used on cygwin: assembler.
 
18934
AS="$AS"
 
18935
 
 
18936
# The name of the directory that contains temporary libtool files.
 
18937
objdir=$objdir
 
18938
 
 
18939
# How to create reloadable object files.
 
18940
reload_flag=$lt_reload_flag
 
18941
reload_cmds=$lt_reload_cmds
 
18942
 
 
18943
# How to pass a linker flag through the compiler.
 
18944
wl=$lt_lt_prog_compiler_wl_GCJ
 
18945
 
 
18946
# Object file suffix (normally "o").
 
18947
objext="$ac_objext"
 
18948
 
 
18949
# Old archive suffix (normally "a").
 
18950
libext="$libext"
 
18951
 
 
18952
# Shared library suffix (normally ".so").
 
18953
shrext_cmds='$shrext_cmds'
 
18954
 
 
18955
# Executable file suffix (normally "").
 
18956
exeext="$exeext"
 
18957
 
 
18958
# Additional compiler flags for building library objects.
 
18959
pic_flag=$lt_lt_prog_compiler_pic_GCJ
 
18960
pic_mode=$pic_mode
 
18961
 
 
18962
# What is the maximum length of a command?
 
18963
max_cmd_len=$lt_cv_sys_max_cmd_len
 
18964
 
 
18965
# Does compiler simultaneously support -c and -o options?
 
18966
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
 
18967
 
 
18968
# Must we lock files when doing compilation?
 
18969
need_locks=$lt_need_locks
 
18970
 
 
18971
# Do we need the lib prefix for modules?
 
18972
need_lib_prefix=$need_lib_prefix
 
18973
 
 
18974
# Do we need a version for libraries?
 
18975
need_version=$need_version
 
18976
 
 
18977
# Whether dlopen is supported.
 
18978
dlopen_support=$enable_dlopen
 
18979
 
 
18980
# Whether dlopen of programs is supported.
 
18981
dlopen_self=$enable_dlopen_self
 
18982
 
 
18983
# Whether dlopen of statically linked programs is supported.
 
18984
dlopen_self_static=$enable_dlopen_self_static
 
18985
 
 
18986
# Compiler flag to prevent dynamic linking.
 
18987
link_static_flag=$lt_lt_prog_compiler_static_GCJ
 
18988
 
 
18989
# Compiler flag to turn off builtin functions.
 
18990
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
 
18991
 
 
18992
# Compiler flag to allow reflexive dlopens.
 
18993
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
 
18994
 
 
18995
# Compiler flag to generate shared objects directly from archives.
 
18996
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
 
18997
 
 
18998
# Compiler flag to generate thread-safe objects.
 
18999
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
 
19000
 
 
19001
# Library versioning type.
 
19002
version_type=$version_type
 
19003
 
 
19004
# Format of library name prefix.
 
19005
libname_spec=$lt_libname_spec
 
19006
 
 
19007
# List of archive names.  First name is the real one, the rest are links.
 
19008
# The last name is the one that the linker finds with -lNAME.
 
19009
library_names_spec=$lt_library_names_spec
 
19010
 
 
19011
# The coded name of the library, if different from the real name.
 
19012
soname_spec=$lt_soname_spec
 
19013
 
 
19014
# Commands used to build and install an old-style archive.
 
19015
RANLIB=$lt_RANLIB
 
19016
old_archive_cmds=$lt_old_archive_cmds_GCJ
 
19017
old_postinstall_cmds=$lt_old_postinstall_cmds
 
19018
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
19019
 
 
19020
# Create an old-style archive from a shared archive.
 
19021
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
 
19022
 
 
19023
# Create a temporary old-style archive to link instead of a shared archive.
 
19024
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
 
19025
 
 
19026
# Commands used to build and install a shared archive.
 
19027
archive_cmds=$lt_archive_cmds_GCJ
 
19028
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
 
19029
postinstall_cmds=$lt_postinstall_cmds
 
19030
postuninstall_cmds=$lt_postuninstall_cmds
 
19031
 
 
19032
# Commands used to build a loadable module (assumed same as above if empty)
 
19033
module_cmds=$lt_module_cmds_GCJ
 
19034
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
 
19035
 
 
19036
# Commands to strip libraries.
 
19037
old_striplib=$lt_old_striplib
 
19038
striplib=$lt_striplib
 
19039
 
 
19040
# Dependencies to place before the objects being linked to create a
 
19041
# shared library.
 
19042
predep_objects=$lt_predep_objects_GCJ
 
19043
 
 
19044
# Dependencies to place after the objects being linked to create a
 
19045
# shared library.
 
19046
postdep_objects=$lt_postdep_objects_GCJ
 
19047
 
 
19048
# Dependencies to place before the objects being linked to create a
 
19049
# shared library.
 
19050
predeps=$lt_predeps_GCJ
 
19051
 
 
19052
# Dependencies to place after the objects being linked to create a
 
19053
# shared library.
 
19054
postdeps=$lt_postdeps_GCJ
 
19055
 
 
19056
# The directories searched by this compiler when creating a shared
 
19057
# library
 
19058
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
 
19059
 
 
19060
# The library search path used internally by the compiler when linking
 
19061
# a shared library.
 
19062
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
 
19063
 
 
19064
# Method to check whether dependent libraries are shared objects.
 
19065
deplibs_check_method=$lt_deplibs_check_method
 
19066
 
 
19067
# Command to use when deplibs_check_method == file_magic.
 
19068
file_magic_cmd=$lt_file_magic_cmd
 
19069
 
 
19070
# Flag that allows shared libraries with undefined symbols to be built.
 
19071
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
 
19072
 
 
19073
# Flag that forces no undefined symbols.
 
19074
no_undefined_flag=$lt_no_undefined_flag_GCJ
 
19075
 
 
19076
# Commands used to finish a libtool library installation in a directory.
 
19077
finish_cmds=$lt_finish_cmds
 
19078
 
 
19079
# Same as above, but a single script fragment to be evaled but not shown.
 
19080
finish_eval=$lt_finish_eval
 
19081
 
 
19082
# Take the output of nm and produce a listing of raw symbols and C names.
 
19083
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
19084
 
 
19085
# Transform the output of nm in a proper C declaration
 
19086
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
19087
 
 
19088
# Transform the output of nm in a C name address pair
 
19089
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
19090
 
 
19091
# This is the shared library runtime path variable.
 
19092
runpath_var=$runpath_var
 
19093
 
 
19094
# This is the shared library path variable.
 
19095
shlibpath_var=$shlibpath_var
 
19096
 
 
19097
# Is shlibpath searched before the hard-coded library search path?
 
19098
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
19099
 
 
19100
# How to hardcode a shared library path into an executable.
 
19101
hardcode_action=$hardcode_action_GCJ
 
19102
 
 
19103
# Whether we should hardcode library paths into libraries.
 
19104
hardcode_into_libs=$hardcode_into_libs
 
19105
 
 
19106
# Flag to hardcode \$libdir into a binary during linking.
 
19107
# This must work even if \$libdir does not exist.
 
19108
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
 
19109
 
 
19110
# If ld is used when linking, flag to hardcode \$libdir into
 
19111
# a binary during linking. This must work even if \$libdir does
 
19112
# not exist.
 
19113
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
 
19114
 
 
19115
# Whether we need a single -rpath flag with a separated argument.
 
19116
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
 
19117
 
 
19118
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
19119
# resulting binary.
 
19120
hardcode_direct=$hardcode_direct_GCJ
 
19121
 
 
19122
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
19123
# resulting binary.
 
19124
hardcode_minus_L=$hardcode_minus_L_GCJ
 
19125
 
 
19126
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
19127
# the resulting binary.
 
19128
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
 
19129
 
 
19130
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
19131
# and all subsequent libraries and executables linked against it.
 
19132
hardcode_automatic=$hardcode_automatic_GCJ
 
19133
 
 
19134
# Variables whose values should be saved in libtool wrapper scripts and
 
19135
# restored at relink time.
 
19136
variables_saved_for_relink="$variables_saved_for_relink"
 
19137
 
 
19138
# Whether libtool must link a program against all its dependency libraries.
 
19139
link_all_deplibs=$link_all_deplibs_GCJ
 
19140
 
 
19141
# Compile-time system search path for libraries
 
19142
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
19143
 
 
19144
# Run-time system search path for libraries
 
19145
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
19146
 
 
19147
# Fix the shell variable \$srcfile for the compiler.
 
19148
fix_srcfile_path=$lt_fix_srcfile_path
 
19149
 
 
19150
# Set to yes if exported symbols are required.
 
19151
always_export_symbols=$always_export_symbols_GCJ
 
19152
 
 
19153
# The commands to list exported symbols.
 
19154
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
 
19155
 
 
19156
# The commands to extract the exported symbol list from a shared archive.
 
19157
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
19158
 
 
19159
# Symbols that should not be listed in the preloaded symbols.
 
19160
exclude_expsyms=$lt_exclude_expsyms_GCJ
 
19161
 
 
19162
# Symbols that must always be exported.
 
19163
include_expsyms=$lt_include_expsyms_GCJ
 
19164
 
 
19165
# ### END LIBTOOL TAG CONFIG: $tagname
 
19166
 
 
19167
__EOF__
 
19168
 
 
19169
 
 
19170
else
 
19171
  # If there is no Makefile yet, we rely on a make rule to execute
 
19172
  # `config.status --recheck' to rerun these tests and create the
 
19173
  # libtool script then.
 
19174
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
19175
  if test -f "$ltmain_in"; then
 
19176
    test -f Makefile && make "$ltmain"
 
19177
  fi
 
19178
fi
 
19179
 
 
19180
 
 
19181
ac_ext=c
 
19182
ac_cpp='$CPP $CPPFLAGS'
 
19183
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19184
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19185
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19186
 
 
19187
CC="$lt_save_CC"
 
19188
 
 
19189
        else
 
19190
          tagname=""
 
19191
        fi
 
19192
        ;;
 
19193
 
 
19194
      RC)
 
19195
 
 
19196
 
 
19197
# Source file extension for RC test sources.
 
19198
ac_ext=rc
 
19199
 
 
19200
# Object file extension for compiled RC test sources.
 
19201
objext=o
 
19202
objext_RC=$objext
 
19203
 
 
19204
# Code to be used in simple compile tests
 
19205
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
 
19206
 
 
19207
# Code to be used in simple link tests
 
19208
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
19209
 
 
19210
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
19211
 
 
19212
# If no C compiler was specified, use CC.
 
19213
LTCC=${LTCC-"$CC"}
 
19214
 
 
19215
# If no C compiler flags were specified, use CFLAGS.
 
19216
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
19217
 
 
19218
# Allow CC to be a program name with arguments.
 
19219
compiler=$CC
 
19220
 
 
19221
 
 
19222
# save warnings/boilerplate of simple test code
 
19223
ac_outfile=conftest.$ac_objext
 
19224
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
19225
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
19226
_lt_compiler_boilerplate=`cat conftest.err`
 
19227
$rm conftest*
 
19228
 
 
19229
ac_outfile=conftest.$ac_objext
 
19230
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
19231
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
19232
_lt_linker_boilerplate=`cat conftest.err`
 
19233
$rm -r conftest*
 
19234
 
 
19235
 
 
19236
# Allow CC to be a program name with arguments.
 
19237
lt_save_CC="$CC"
 
19238
CC=${RC-"windres"}
 
19239
compiler=$CC
 
19240
compiler_RC=$CC
 
19241
for cc_temp in $compiler""; do
 
19242
  case $cc_temp in
 
19243
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
19244
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
19245
    \-*) ;;
 
19246
    *) break;;
 
19247
  esac
 
19248
done
 
19249
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
19250
 
 
19251
lt_cv_prog_compiler_c_o_RC=yes
 
19252
 
 
19253
# The else clause should only fire when bootstrapping the
 
19254
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
19255
# with your package, and you will get complaints that there are
 
19256
# no rules to generate ltmain.sh.
 
19257
if test -f "$ltmain"; then
 
19258
  # See if we are running on zsh, and set the options which allow our commands through
 
19259
  # without removal of \ escapes.
 
19260
  if test -n "${ZSH_VERSION+set}" ; then
 
19261
    setopt NO_GLOB_SUBST
 
19262
  fi
 
19263
  # Now quote all the things that may contain metacharacters while being
 
19264
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
19265
  # variables and quote the copies for generation of the libtool script.
 
19266
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
19267
    SED SHELL STRIP \
 
19268
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
19269
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
19270
    deplibs_check_method reload_flag reload_cmds need_locks \
 
19271
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
19272
    lt_cv_sys_global_symbol_to_c_name_address \
 
19273
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
19274
    old_postinstall_cmds old_postuninstall_cmds \
 
19275
    compiler_RC \
 
19276
    CC_RC \
 
19277
    LD_RC \
 
19278
    lt_prog_compiler_wl_RC \
 
19279
    lt_prog_compiler_pic_RC \
 
19280
    lt_prog_compiler_static_RC \
 
19281
    lt_prog_compiler_no_builtin_flag_RC \
 
19282
    export_dynamic_flag_spec_RC \
 
19283
    thread_safe_flag_spec_RC \
 
19284
    whole_archive_flag_spec_RC \
 
19285
    enable_shared_with_static_runtimes_RC \
 
19286
    old_archive_cmds_RC \
 
19287
    old_archive_from_new_cmds_RC \
 
19288
    predep_objects_RC \
 
19289
    postdep_objects_RC \
 
19290
    predeps_RC \
 
19291
    postdeps_RC \
 
19292
    compiler_lib_search_path_RC \
 
19293
    compiler_lib_search_dirs_RC \
 
19294
    archive_cmds_RC \
 
19295
    archive_expsym_cmds_RC \
 
19296
    postinstall_cmds_RC \
 
19297
    postuninstall_cmds_RC \
 
19298
    old_archive_from_expsyms_cmds_RC \
 
19299
    allow_undefined_flag_RC \
 
19300
    no_undefined_flag_RC \
 
19301
    export_symbols_cmds_RC \
 
19302
    hardcode_libdir_flag_spec_RC \
 
19303
    hardcode_libdir_flag_spec_ld_RC \
 
19304
    hardcode_libdir_separator_RC \
 
19305
    hardcode_automatic_RC \
 
19306
    module_cmds_RC \
 
19307
    module_expsym_cmds_RC \
 
19308
    lt_cv_prog_compiler_c_o_RC \
 
19309
    fix_srcfile_path_RC \
 
19310
    exclude_expsyms_RC \
 
19311
    include_expsyms_RC; do
 
19312
 
 
19313
    case $var in
 
19314
    old_archive_cmds_RC | \
 
19315
    old_archive_from_new_cmds_RC | \
 
19316
    archive_cmds_RC | \
 
19317
    archive_expsym_cmds_RC | \
 
19318
    module_cmds_RC | \
 
19319
    module_expsym_cmds_RC | \
 
19320
    old_archive_from_expsyms_cmds_RC | \
 
19321
    export_symbols_cmds_RC | \
 
19322
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
19323
    postinstall_cmds | postuninstall_cmds | \
 
19324
    old_postinstall_cmds | old_postuninstall_cmds | \
 
19325
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
19326
      # Double-quote double-evaled strings.
 
19327
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
19328
      ;;
 
19329
    *)
 
19330
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
19331
      ;;
 
19332
    esac
 
19333
  done
 
19334
 
 
19335
  case $lt_echo in
 
19336
  *'\$0 --fallback-echo"')
 
19337
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
19338
    ;;
 
19339
  esac
 
19340
 
 
19341
cfgfile="$ofile"
 
19342
 
 
19343
  cat <<__EOF__ >> "$cfgfile"
 
19344
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
19345
 
 
19346
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
19347
 
 
19348
# Shell to use when invoking shell scripts.
 
19349
SHELL=$lt_SHELL
 
19350
 
 
19351
# Whether or not to build shared libraries.
 
19352
build_libtool_libs=$enable_shared
 
19353
 
 
19354
# Whether or not to build static libraries.
 
19355
build_old_libs=$enable_static
 
19356
 
 
19357
# Whether or not to add -lc for building shared libraries.
 
19358
build_libtool_need_lc=$archive_cmds_need_lc_RC
 
19359
 
 
19360
# Whether or not to disallow shared libs when runtime libs are static
 
19361
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
 
19362
 
 
19363
# Whether or not to optimize for fast installation.
 
19364
fast_install=$enable_fast_install
 
19365
 
 
19366
# The host system.
 
19367
host_alias=$host_alias
 
19368
host=$host
 
19369
host_os=$host_os
 
19370
 
 
19371
# The build system.
 
19372
build_alias=$build_alias
 
19373
build=$build
 
19374
build_os=$build_os
 
19375
 
 
19376
# An echo program that does not interpret backslashes.
 
19377
echo=$lt_echo
 
19378
 
 
19379
# The archiver.
 
19380
AR=$lt_AR
 
19381
AR_FLAGS=$lt_AR_FLAGS
 
19382
 
 
19383
# A C compiler.
 
19384
LTCC=$lt_LTCC
 
19385
 
 
19386
# LTCC compiler flags.
 
19387
LTCFLAGS=$lt_LTCFLAGS
 
19388
 
 
19389
# A language-specific compiler.
 
19390
CC=$lt_compiler_RC
 
19391
 
 
19392
# Is the compiler the GNU C compiler?
 
19393
with_gcc=$GCC_RC
 
19394
 
 
19395
# An ERE matcher.
 
19396
EGREP=$lt_EGREP
 
19397
 
 
19398
# The linker used to build libraries.
 
19399
LD=$lt_LD_RC
 
19400
 
 
19401
# Whether we need hard or soft links.
 
19402
LN_S=$lt_LN_S
 
19403
 
 
19404
# A BSD-compatible nm program.
 
19405
NM=$lt_NM
 
19406
 
 
19407
# A symbol stripping program
 
19408
STRIP=$lt_STRIP
 
19409
 
 
19410
# Used to examine libraries when file_magic_cmd begins "file"
 
19411
MAGIC_CMD=$MAGIC_CMD
 
19412
 
 
19413
# Used on cygwin: DLL creation program.
 
19414
DLLTOOL="$DLLTOOL"
 
19415
 
 
19416
# Used on cygwin: object dumper.
 
19417
OBJDUMP="$OBJDUMP"
 
19418
 
 
19419
# Used on cygwin: assembler.
 
19420
AS="$AS"
 
19421
 
 
19422
# The name of the directory that contains temporary libtool files.
 
19423
objdir=$objdir
 
19424
 
 
19425
# How to create reloadable object files.
 
19426
reload_flag=$lt_reload_flag
 
19427
reload_cmds=$lt_reload_cmds
 
19428
 
 
19429
# How to pass a linker flag through the compiler.
 
19430
wl=$lt_lt_prog_compiler_wl_RC
 
19431
 
 
19432
# Object file suffix (normally "o").
 
19433
objext="$ac_objext"
 
19434
 
 
19435
# Old archive suffix (normally "a").
 
19436
libext="$libext"
 
19437
 
 
19438
# Shared library suffix (normally ".so").
 
19439
shrext_cmds='$shrext_cmds'
 
19440
 
 
19441
# Executable file suffix (normally "").
 
19442
exeext="$exeext"
 
19443
 
 
19444
# Additional compiler flags for building library objects.
 
19445
pic_flag=$lt_lt_prog_compiler_pic_RC
 
19446
pic_mode=$pic_mode
 
19447
 
 
19448
# What is the maximum length of a command?
 
19449
max_cmd_len=$lt_cv_sys_max_cmd_len
 
19450
 
 
19451
# Does compiler simultaneously support -c and -o options?
 
19452
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
 
19453
 
 
19454
# Must we lock files when doing compilation?
 
19455
need_locks=$lt_need_locks
 
19456
 
 
19457
# Do we need the lib prefix for modules?
 
19458
need_lib_prefix=$need_lib_prefix
 
19459
 
 
19460
# Do we need a version for libraries?
 
19461
need_version=$need_version
 
19462
 
 
19463
# Whether dlopen is supported.
 
19464
dlopen_support=$enable_dlopen
 
19465
 
 
19466
# Whether dlopen of programs is supported.
 
19467
dlopen_self=$enable_dlopen_self
 
19468
 
 
19469
# Whether dlopen of statically linked programs is supported.
 
19470
dlopen_self_static=$enable_dlopen_self_static
 
19471
 
 
19472
# Compiler flag to prevent dynamic linking.
 
19473
link_static_flag=$lt_lt_prog_compiler_static_RC
 
19474
 
 
19475
# Compiler flag to turn off builtin functions.
 
19476
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
 
19477
 
 
19478
# Compiler flag to allow reflexive dlopens.
 
19479
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
 
19480
 
 
19481
# Compiler flag to generate shared objects directly from archives.
 
19482
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
 
19483
 
 
19484
# Compiler flag to generate thread-safe objects.
 
19485
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
 
19486
 
 
19487
# Library versioning type.
 
19488
version_type=$version_type
 
19489
 
 
19490
# Format of library name prefix.
 
19491
libname_spec=$lt_libname_spec
 
19492
 
 
19493
# List of archive names.  First name is the real one, the rest are links.
 
19494
# The last name is the one that the linker finds with -lNAME.
 
19495
library_names_spec=$lt_library_names_spec
 
19496
 
 
19497
# The coded name of the library, if different from the real name.
 
19498
soname_spec=$lt_soname_spec
 
19499
 
 
19500
# Commands used to build and install an old-style archive.
 
19501
RANLIB=$lt_RANLIB
 
19502
old_archive_cmds=$lt_old_archive_cmds_RC
 
19503
old_postinstall_cmds=$lt_old_postinstall_cmds
 
19504
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
19505
 
 
19506
# Create an old-style archive from a shared archive.
 
19507
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
 
19508
 
 
19509
# Create a temporary old-style archive to link instead of a shared archive.
 
19510
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
 
19511
 
 
19512
# Commands used to build and install a shared archive.
 
19513
archive_cmds=$lt_archive_cmds_RC
 
19514
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
 
19515
postinstall_cmds=$lt_postinstall_cmds
 
19516
postuninstall_cmds=$lt_postuninstall_cmds
 
19517
 
 
19518
# Commands used to build a loadable module (assumed same as above if empty)
 
19519
module_cmds=$lt_module_cmds_RC
 
19520
module_expsym_cmds=$lt_module_expsym_cmds_RC
 
19521
 
 
19522
# Commands to strip libraries.
 
19523
old_striplib=$lt_old_striplib
 
19524
striplib=$lt_striplib
 
19525
 
 
19526
# Dependencies to place before the objects being linked to create a
 
19527
# shared library.
 
19528
predep_objects=$lt_predep_objects_RC
 
19529
 
 
19530
# Dependencies to place after the objects being linked to create a
 
19531
# shared library.
 
19532
postdep_objects=$lt_postdep_objects_RC
 
19533
 
 
19534
# Dependencies to place before the objects being linked to create a
 
19535
# shared library.
 
19536
predeps=$lt_predeps_RC
 
19537
 
 
19538
# Dependencies to place after the objects being linked to create a
 
19539
# shared library.
 
19540
postdeps=$lt_postdeps_RC
 
19541
 
 
19542
# The directories searched by this compiler when creating a shared
 
19543
# library
 
19544
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
 
19545
 
 
19546
# The library search path used internally by the compiler when linking
 
19547
# a shared library.
 
19548
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
 
19549
 
 
19550
# Method to check whether dependent libraries are shared objects.
 
19551
deplibs_check_method=$lt_deplibs_check_method
 
19552
 
 
19553
# Command to use when deplibs_check_method == file_magic.
 
19554
file_magic_cmd=$lt_file_magic_cmd
 
19555
 
 
19556
# Flag that allows shared libraries with undefined symbols to be built.
 
19557
allow_undefined_flag=$lt_allow_undefined_flag_RC
 
19558
 
 
19559
# Flag that forces no undefined symbols.
 
19560
no_undefined_flag=$lt_no_undefined_flag_RC
 
19561
 
 
19562
# Commands used to finish a libtool library installation in a directory.
 
19563
finish_cmds=$lt_finish_cmds
 
19564
 
 
19565
# Same as above, but a single script fragment to be evaled but not shown.
 
19566
finish_eval=$lt_finish_eval
 
19567
 
 
19568
# Take the output of nm and produce a listing of raw symbols and C names.
 
19569
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
19570
 
 
19571
# Transform the output of nm in a proper C declaration
 
19572
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
19573
 
 
19574
# Transform the output of nm in a C name address pair
 
19575
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
19576
 
 
19577
# This is the shared library runtime path variable.
 
19578
runpath_var=$runpath_var
 
19579
 
 
19580
# This is the shared library path variable.
 
19581
shlibpath_var=$shlibpath_var
 
19582
 
 
19583
# Is shlibpath searched before the hard-coded library search path?
 
19584
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
19585
 
 
19586
# How to hardcode a shared library path into an executable.
 
19587
hardcode_action=$hardcode_action_RC
 
19588
 
 
19589
# Whether we should hardcode library paths into libraries.
 
19590
hardcode_into_libs=$hardcode_into_libs
 
19591
 
 
19592
# Flag to hardcode \$libdir into a binary during linking.
 
19593
# This must work even if \$libdir does not exist.
 
19594
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
 
19595
 
 
19596
# If ld is used when linking, flag to hardcode \$libdir into
 
19597
# a binary during linking. This must work even if \$libdir does
 
19598
# not exist.
 
19599
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
 
19600
 
 
19601
# Whether we need a single -rpath flag with a separated argument.
 
19602
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
 
19603
 
 
19604
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
19605
# resulting binary.
 
19606
hardcode_direct=$hardcode_direct_RC
 
19607
 
 
19608
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
19609
# resulting binary.
 
19610
hardcode_minus_L=$hardcode_minus_L_RC
 
19611
 
 
19612
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
19613
# the resulting binary.
 
19614
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
 
19615
 
 
19616
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
19617
# and all subsequent libraries and executables linked against it.
 
19618
hardcode_automatic=$hardcode_automatic_RC
 
19619
 
 
19620
# Variables whose values should be saved in libtool wrapper scripts and
 
19621
# restored at relink time.
 
19622
variables_saved_for_relink="$variables_saved_for_relink"
 
19623
 
 
19624
# Whether libtool must link a program against all its dependency libraries.
 
19625
link_all_deplibs=$link_all_deplibs_RC
 
19626
 
 
19627
# Compile-time system search path for libraries
 
19628
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
19629
 
 
19630
# Run-time system search path for libraries
 
19631
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
19632
 
 
19633
# Fix the shell variable \$srcfile for the compiler.
 
19634
fix_srcfile_path=$lt_fix_srcfile_path
 
19635
 
 
19636
# Set to yes if exported symbols are required.
 
19637
always_export_symbols=$always_export_symbols_RC
 
19638
 
 
19639
# The commands to list exported symbols.
 
19640
export_symbols_cmds=$lt_export_symbols_cmds_RC
 
19641
 
 
19642
# The commands to extract the exported symbol list from a shared archive.
 
19643
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
19644
 
 
19645
# Symbols that should not be listed in the preloaded symbols.
 
19646
exclude_expsyms=$lt_exclude_expsyms_RC
 
19647
 
 
19648
# Symbols that must always be exported.
 
19649
include_expsyms=$lt_include_expsyms_RC
 
19650
 
 
19651
# ### END LIBTOOL TAG CONFIG: $tagname
 
19652
 
 
19653
__EOF__
 
19654
 
 
19655
 
 
19656
else
 
19657
  # If there is no Makefile yet, we rely on a make rule to execute
 
19658
  # `config.status --recheck' to rerun these tests and create the
 
19659
  # libtool script then.
 
19660
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
19661
  if test -f "$ltmain_in"; then
 
19662
    test -f Makefile && make "$ltmain"
 
19663
  fi
 
19664
fi
 
19665
 
 
19666
 
 
19667
ac_ext=c
 
19668
ac_cpp='$CPP $CPPFLAGS'
 
19669
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19670
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19671
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19672
 
 
19673
CC="$lt_save_CC"
 
19674
 
 
19675
        ;;
 
19676
 
 
19677
      *)
 
19678
        { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
 
19679
$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
 
19680
   { (exit 1); exit 1; }; }
 
19681
        ;;
 
19682
      esac
 
19683
 
 
19684
      # Append the new tag name to the list of available tags.
 
19685
      if test -n "$tagname" ; then
 
19686
      available_tags="$available_tags $tagname"
 
19687
    fi
 
19688
    fi
 
19689
  done
 
19690
  IFS="$lt_save_ifs"
 
19691
 
 
19692
  # Now substitute the updated list of available tags.
 
19693
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
19694
    mv "${ofile}T" "$ofile"
 
19695
    chmod +x "$ofile"
 
19696
  else
 
19697
    rm -f "${ofile}T"
 
19698
    { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
 
19699
$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
 
19700
   { (exit 1); exit 1; }; }
 
19701
  fi
 
19702
fi
 
19703
 
 
19704
 
 
19705
 
 
19706
# This can be used to rebuild libtool when needed
 
19707
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
19708
 
 
19709
# Always use our own libtool.
 
19710
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
19711
 
 
19712
# Prevent multiple expansion
 
19713
 
 
19714
 
 
19715
 
 
19716
 
 
19717
 
 
19718
 
 
19719
 
 
19720
 
 
19721
 
 
19722
 
 
19723
 
 
19724
 
 
19725
 
 
19726
 
 
19727
 
 
19728
 
 
19729
 
 
19730
 
 
19731
 
 
19732
 
 
19733
 
 
19734
 
 
19735
for ac_header in unistd_h
 
19736
do
 
19737
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
19738
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
19739
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
19740
$as_echo_n "checking for $ac_header... " >&6; }
 
19741
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
19742
  $as_echo_n "(cached) " >&6
 
19743
fi
 
19744
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
19745
                 $as_echo "$as_val"'`
 
19746
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
19747
$as_echo "$ac_res" >&6; }
 
19748
else
 
19749
  # Is the header compilable?
 
19750
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
19751
$as_echo_n "checking $ac_header usability... " >&6; }
 
19752
cat >conftest.$ac_ext <<_ACEOF
 
19753
/* confdefs.h.  */
 
19754
_ACEOF
 
19755
cat confdefs.h >>conftest.$ac_ext
 
19756
cat >>conftest.$ac_ext <<_ACEOF
 
19757
/* end confdefs.h.  */
 
19758
$ac_includes_default
 
19759
#include <$ac_header>
 
19760
_ACEOF
 
19761
rm -f conftest.$ac_objext
 
19762
if { (ac_try="$ac_compile"
 
19763
case "(($ac_try" in
 
19764
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19765
  *) ac_try_echo=$ac_try;;
 
19766
esac
 
19767
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
19768
$as_echo "$ac_try_echo") >&5
 
19769
  (eval "$ac_compile") 2>conftest.er1
 
19770
  ac_status=$?
 
19771
  grep -v '^ *+' conftest.er1 >conftest.err
 
19772
  rm -f conftest.er1
 
19773
  cat conftest.err >&5
 
19774
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19775
  (exit $ac_status); } && {
 
19776
         test -z "$ac_c_werror_flag" ||
 
19777
         test ! -s conftest.err
 
19778
       } && test -s conftest.$ac_objext; then
 
19779
  ac_header_compiler=yes
 
19780
else
 
19781
  $as_echo "$as_me: failed program was:" >&5
 
19782
sed 's/^/| /' conftest.$ac_ext >&5
 
19783
 
 
19784
        ac_header_compiler=no
 
19785
fi
 
19786
 
 
19787
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19788
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
19789
$as_echo "$ac_header_compiler" >&6; }
 
19790
 
 
19791
# Is the header present?
 
19792
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
19793
$as_echo_n "checking $ac_header presence... " >&6; }
 
19794
cat >conftest.$ac_ext <<_ACEOF
 
19795
/* confdefs.h.  */
 
19796
_ACEOF
 
19797
cat confdefs.h >>conftest.$ac_ext
 
19798
cat >>conftest.$ac_ext <<_ACEOF
 
19799
/* end confdefs.h.  */
 
19800
#include <$ac_header>
 
19801
_ACEOF
 
19802
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
19803
case "(($ac_try" in
 
19804
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19805
  *) ac_try_echo=$ac_try;;
 
19806
esac
 
19807
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
19808
$as_echo "$ac_try_echo") >&5
 
19809
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
19810
  ac_status=$?
 
19811
  grep -v '^ *+' conftest.er1 >conftest.err
 
19812
  rm -f conftest.er1
 
19813
  cat conftest.err >&5
 
19814
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19815
  (exit $ac_status); } >/dev/null && {
 
19816
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
19817
         test ! -s conftest.err
 
19818
       }; then
 
19819
  ac_header_preproc=yes
 
19820
else
 
19821
  $as_echo "$as_me: failed program was:" >&5
 
19822
sed 's/^/| /' conftest.$ac_ext >&5
 
19823
 
 
19824
  ac_header_preproc=no
 
19825
fi
 
19826
 
 
19827
rm -f conftest.err conftest.$ac_ext
 
19828
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
19829
$as_echo "$ac_header_preproc" >&6; }
 
19830
 
 
19831
# So?  What about this header?
 
19832
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
19833
  yes:no: )
 
19834
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
19835
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
19836
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
19837
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
19838
    ac_header_preproc=yes
 
19839
    ;;
 
19840
  no:yes:* )
 
19841
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
19842
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
19843
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
19844
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
19845
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
19846
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
19847
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
19848
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
19849
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
19850
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
19851
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
19852
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
19853
 
 
19854
    ;;
 
19855
esac
 
19856
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
19857
$as_echo_n "checking for $ac_header... " >&6; }
 
19858
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
19859
  $as_echo_n "(cached) " >&6
 
19860
else
 
19861
  eval "$as_ac_Header=\$ac_header_preproc"
 
19862
fi
 
19863
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
19864
                 $as_echo "$as_val"'`
 
19865
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
19866
$as_echo "$ac_res" >&6; }
 
19867
 
 
19868
fi
 
19869
as_val=`eval 'as_val=${'$as_ac_Header'}
 
19870
                 $as_echo "$as_val"'`
 
19871
   if test "x$as_val" = x""yes; then
 
19872
  cat >>confdefs.h <<_ACEOF
 
19873
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
19874
_ACEOF
 
19875
 
 
19876
fi
 
19877
 
 
19878
done
 
19879
 
 
19880
 
 
19881
  { $as_echo "$as_me:$LINENO: checking for getpagesize" >&5
 
19882
$as_echo_n "checking for getpagesize... " >&6; }
 
19883
if test "${cl_cv_func_getpagesize+set}" = set; then
 
19884
  $as_echo_n "(cached) " >&6
 
19885
else
 
19886
  cat >conftest.$ac_ext <<_ACEOF
 
19887
/* confdefs.h.  */
 
19888
_ACEOF
 
19889
cat confdefs.h >>conftest.$ac_ext
 
19890
cat >>conftest.$ac_ext <<_ACEOF
 
19891
/* end confdefs.h.  */
 
19892
 
 
19893
#ifdef HAVE_UNISTD_H
 
19894
#include <sys/types.h>
 
19895
#include <unistd.h>
 
19896
#endif
 
19897
 
 
19898
int
 
19899
main ()
 
19900
{
 
19901
getpagesize();
 
19902
  ;
 
19903
  return 0;
 
19904
}
 
19905
_ACEOF
 
19906
rm -f conftest.$ac_objext conftest$ac_exeext
 
19907
if { (ac_try="$ac_link"
 
19908
case "(($ac_try" in
 
19909
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19910
  *) ac_try_echo=$ac_try;;
 
19911
esac
 
19912
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
19913
$as_echo "$ac_try_echo") >&5
 
19914
  (eval "$ac_link") 2>conftest.er1
 
19915
  ac_status=$?
 
19916
  grep -v '^ *+' conftest.er1 >conftest.err
 
19917
  rm -f conftest.er1
 
19918
  cat conftest.err >&5
 
19919
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19920
  (exit $ac_status); } && {
 
19921
         test -z "$ac_c_werror_flag" ||
 
19922
         test ! -s conftest.err
 
19923
       } && test -s conftest$ac_exeext && {
 
19924
         test "$cross_compiling" = yes ||
 
19925
         $as_test_x conftest$ac_exeext
 
19926
       }; then
 
19927
  cl_cv_func_getpagesize=yes
 
19928
else
 
19929
  $as_echo "$as_me: failed program was:" >&5
 
19930
sed 's/^/| /' conftest.$ac_ext >&5
 
19931
 
 
19932
        cl_cv_func_getpagesize=no
 
19933
fi
 
19934
 
 
19935
rm -rf conftest.dSYM
 
19936
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
19937
      conftest$ac_exeext conftest.$ac_ext
 
19938
fi
 
19939
{ $as_echo "$as_me:$LINENO: result: $cl_cv_func_getpagesize" >&5
 
19940
$as_echo "$cl_cv_func_getpagesize" >&6; }
 
19941
  if test $cl_cv_func_getpagesize = yes; then
 
19942
 
 
19943
cat >>confdefs.h <<\_ACEOF
 
19944
#define HAVE_GETPAGESIZE /**/
 
19945
_ACEOF
 
19946
 
 
19947
have_getpagesize=1
 
19948
fi
 
19949
 
 
19950
if test -n "$have_getpagesize"; then
 
19951
{ $as_echo "$as_me:$LINENO: checking for getpagesize declaration" >&5
 
19952
$as_echo_n "checking for getpagesize declaration... " >&6; }
 
19953
if test "${cl_cv_proto_getpagesize+set}" = set; then
 
19954
  $as_echo_n "(cached) " >&6
 
19955
else
 
19956
 
 
19957
cat >conftest.$ac_ext <<_ACEOF
 
19958
/* confdefs.h.  */
 
19959
_ACEOF
 
19960
cat confdefs.h >>conftest.$ac_ext
 
19961
cat >>conftest.$ac_ext <<_ACEOF
 
19962
/* end confdefs.h.  */
 
19963
 
 
19964
#include <stdlib.h>
 
19965
#ifdef HAVE_UNISTD_H
 
19966
#include <unistd.h>
 
19967
#endif
 
19968
 
 
19969
extern
 
19970
#ifdef __cplusplus
 
19971
"C"
 
19972
#endif
 
19973
 
 
19974
int getpagesize();
 
19975
 
 
19976
int
 
19977
main ()
 
19978
{
 
19979
 
 
19980
  ;
 
19981
  return 0;
 
19982
}
 
19983
_ACEOF
 
19984
rm -f conftest.$ac_objext
 
19985
if { (ac_try="$ac_compile"
 
19986
case "(($ac_try" in
 
19987
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19988
  *) ac_try_echo=$ac_try;;
 
19989
esac
 
19990
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
19991
$as_echo "$ac_try_echo") >&5
 
19992
  (eval "$ac_compile") 2>conftest.er1
 
19993
  ac_status=$?
 
19994
  grep -v '^ *+' conftest.er1 >conftest.err
 
19995
  rm -f conftest.er1
 
19996
  cat conftest.err >&5
 
19997
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19998
  (exit $ac_status); } && {
 
19999
         test -z "$ac_c_werror_flag" ||
 
20000
         test ! -s conftest.err
 
20001
       } && test -s conftest.$ac_objext; then
 
20002
  cl_cv_proto_getpagesize_ret="int"
 
20003
else
 
20004
  $as_echo "$as_me: failed program was:" >&5
 
20005
sed 's/^/| /' conftest.$ac_ext >&5
 
20006
 
 
20007
        cl_cv_proto_getpagesize_ret="size_t"
 
20008
fi
 
20009
 
 
20010
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20011
 
 
20012
 
 
20013
cl_cv_proto_getpagesize="extern $cl_cv_proto_getpagesize_ret getpagesize (void);"
 
20014
fi
 
20015
 
 
20016
cl_cv_proto_getpagesize=`echo "$cl_cv_proto_getpagesize" | tr -s ' ' | sed -e 's/( /(/'`
 
20017
{ $as_echo "$as_me:$LINENO: result: ${ac_t:-
 
20018
         }$cl_cv_proto_getpagesize" >&5
 
20019
$as_echo "${ac_t:-
 
20020
         }$cl_cv_proto_getpagesize" >&6; }
 
20021
 
 
20022
 
 
20023
cat >>confdefs.h <<_ACEOF
 
20024
#define RETGETPAGESIZETYPE $cl_cv_proto_getpagesize_ret
 
20025
_ACEOF
 
20026
 
 
20027
else
 
20028
 
 
20029
for ac_header in sys/param.h
 
20030
do
 
20031
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
20032
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
20033
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20034
$as_echo_n "checking for $ac_header... " >&6; }
 
20035
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
20036
  $as_echo_n "(cached) " >&6
 
20037
fi
 
20038
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
20039
                 $as_echo "$as_val"'`
 
20040
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
20041
$as_echo "$ac_res" >&6; }
 
20042
else
 
20043
  # Is the header compilable?
 
20044
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
20045
$as_echo_n "checking $ac_header usability... " >&6; }
 
20046
cat >conftest.$ac_ext <<_ACEOF
 
20047
/* confdefs.h.  */
 
20048
_ACEOF
 
20049
cat confdefs.h >>conftest.$ac_ext
 
20050
cat >>conftest.$ac_ext <<_ACEOF
 
20051
/* end confdefs.h.  */
 
20052
$ac_includes_default
 
20053
#include <$ac_header>
 
20054
_ACEOF
 
20055
rm -f conftest.$ac_objext
 
20056
if { (ac_try="$ac_compile"
 
20057
case "(($ac_try" in
 
20058
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20059
  *) ac_try_echo=$ac_try;;
 
20060
esac
 
20061
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20062
$as_echo "$ac_try_echo") >&5
 
20063
  (eval "$ac_compile") 2>conftest.er1
 
20064
  ac_status=$?
 
20065
  grep -v '^ *+' conftest.er1 >conftest.err
 
20066
  rm -f conftest.er1
 
20067
  cat conftest.err >&5
 
20068
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20069
  (exit $ac_status); } && {
 
20070
         test -z "$ac_c_werror_flag" ||
 
20071
         test ! -s conftest.err
 
20072
       } && test -s conftest.$ac_objext; then
 
20073
  ac_header_compiler=yes
 
20074
else
 
20075
  $as_echo "$as_me: failed program was:" >&5
 
20076
sed 's/^/| /' conftest.$ac_ext >&5
 
20077
 
 
20078
        ac_header_compiler=no
 
20079
fi
 
20080
 
 
20081
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20082
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
20083
$as_echo "$ac_header_compiler" >&6; }
 
20084
 
 
20085
# Is the header present?
 
20086
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
20087
$as_echo_n "checking $ac_header presence... " >&6; }
 
20088
cat >conftest.$ac_ext <<_ACEOF
 
20089
/* confdefs.h.  */
 
20090
_ACEOF
 
20091
cat confdefs.h >>conftest.$ac_ext
 
20092
cat >>conftest.$ac_ext <<_ACEOF
 
20093
/* end confdefs.h.  */
 
20094
#include <$ac_header>
 
20095
_ACEOF
 
20096
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
20097
case "(($ac_try" in
 
20098
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20099
  *) ac_try_echo=$ac_try;;
 
20100
esac
 
20101
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20102
$as_echo "$ac_try_echo") >&5
 
20103
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
20104
  ac_status=$?
 
20105
  grep -v '^ *+' conftest.er1 >conftest.err
 
20106
  rm -f conftest.er1
 
20107
  cat conftest.err >&5
 
20108
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20109
  (exit $ac_status); } >/dev/null && {
 
20110
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
20111
         test ! -s conftest.err
 
20112
       }; then
 
20113
  ac_header_preproc=yes
 
20114
else
 
20115
  $as_echo "$as_me: failed program was:" >&5
 
20116
sed 's/^/| /' conftest.$ac_ext >&5
 
20117
 
 
20118
  ac_header_preproc=no
 
20119
fi
 
20120
 
 
20121
rm -f conftest.err conftest.$ac_ext
 
20122
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
20123
$as_echo "$ac_header_preproc" >&6; }
 
20124
 
 
20125
# So?  What about this header?
 
20126
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
20127
  yes:no: )
 
20128
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
20129
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
20130
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
20131
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
20132
    ac_header_preproc=yes
 
20133
    ;;
 
20134
  no:yes:* )
 
20135
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
20136
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
20137
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
20138
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
20139
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
20140
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
20141
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
20142
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
20143
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
20144
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
20145
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
20146
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
20147
 
 
20148
    ;;
 
20149
esac
 
20150
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20151
$as_echo_n "checking for $ac_header... " >&6; }
 
20152
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
20153
  $as_echo_n "(cached) " >&6
 
20154
else
 
20155
  eval "$as_ac_Header=\$ac_header_preproc"
 
20156
fi
 
20157
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
20158
                 $as_echo "$as_val"'`
 
20159
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
20160
$as_echo "$ac_res" >&6; }
 
20161
 
 
20162
fi
 
20163
as_val=`eval 'as_val=${'$as_ac_Header'}
 
20164
                 $as_echo "$as_val"'`
 
20165
   if test "x$as_val" = x""yes; then
 
20166
  cat >>confdefs.h <<_ACEOF
 
20167
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
20168
_ACEOF
 
20169
 
 
20170
fi
 
20171
 
 
20172
done
 
20173
 
 
20174
fi
 
20175
 
 
20176
  { $as_echo "$as_me:$LINENO: checking for vm_allocate" >&5
 
20177
$as_echo_n "checking for vm_allocate... " >&6; }
 
20178
if test "${cl_cv_func_vm+set}" = set; then
 
20179
  $as_echo_n "(cached) " >&6
 
20180
else
 
20181
  cat >conftest.$ac_ext <<_ACEOF
 
20182
/* confdefs.h.  */
 
20183
_ACEOF
 
20184
cat confdefs.h >>conftest.$ac_ext
 
20185
cat >>conftest.$ac_ext <<_ACEOF
 
20186
/* end confdefs.h.  */
 
20187
 
 
20188
int
 
20189
main ()
 
20190
{
 
20191
vm_allocate(); task_self();
 
20192
  ;
 
20193
  return 0;
 
20194
}
 
20195
_ACEOF
 
20196
rm -f conftest.$ac_objext conftest$ac_exeext
 
20197
if { (ac_try="$ac_link"
 
20198
case "(($ac_try" in
 
20199
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20200
  *) ac_try_echo=$ac_try;;
 
20201
esac
 
20202
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20203
$as_echo "$ac_try_echo") >&5
 
20204
  (eval "$ac_link") 2>conftest.er1
 
20205
  ac_status=$?
 
20206
  grep -v '^ *+' conftest.er1 >conftest.err
 
20207
  rm -f conftest.er1
 
20208
  cat conftest.err >&5
 
20209
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20210
  (exit $ac_status); } && {
 
20211
         test -z "$ac_c_werror_flag" ||
 
20212
         test ! -s conftest.err
 
20213
       } && test -s conftest$ac_exeext && {
 
20214
         test "$cross_compiling" = yes ||
 
20215
         $as_test_x conftest$ac_exeext
 
20216
       }; then
 
20217
  cl_cv_func_vm=yes
 
20218
else
 
20219
  $as_echo "$as_me: failed program was:" >&5
 
20220
sed 's/^/| /' conftest.$ac_ext >&5
 
20221
 
 
20222
        cl_cv_func_vm=no
 
20223
fi
 
20224
 
 
20225
rm -rf conftest.dSYM
 
20226
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
20227
      conftest$ac_exeext conftest.$ac_ext
 
20228
fi
 
20229
{ $as_echo "$as_me:$LINENO: result: $cl_cv_func_vm" >&5
 
20230
$as_echo "$cl_cv_func_vm" >&6; }
 
20231
  if test $cl_cv_func_vm = yes; then
 
20232
 
 
20233
cat >>confdefs.h <<\_ACEOF
 
20234
#define HAVE_MACH_VM /**/
 
20235
_ACEOF
 
20236
 
 
20237
fi
 
20238
 
 
20239
 
 
20240
 
 
20241
if test "${ac_cv_header_sys_mman_h+set}" = set; then
 
20242
  { $as_echo "$as_me:$LINENO: checking for sys/mman.h" >&5
 
20243
$as_echo_n "checking for sys/mman.h... " >&6; }
 
20244
if test "${ac_cv_header_sys_mman_h+set}" = set; then
 
20245
  $as_echo_n "(cached) " >&6
 
20246
fi
 
20247
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
 
20248
$as_echo "$ac_cv_header_sys_mman_h" >&6; }
 
20249
else
 
20250
  # Is the header compilable?
 
20251
{ $as_echo "$as_me:$LINENO: checking sys/mman.h usability" >&5
 
20252
$as_echo_n "checking sys/mman.h usability... " >&6; }
 
20253
cat >conftest.$ac_ext <<_ACEOF
 
20254
/* confdefs.h.  */
 
20255
_ACEOF
 
20256
cat confdefs.h >>conftest.$ac_ext
 
20257
cat >>conftest.$ac_ext <<_ACEOF
 
20258
/* end confdefs.h.  */
 
20259
$ac_includes_default
 
20260
#include <sys/mman.h>
 
20261
_ACEOF
 
20262
rm -f conftest.$ac_objext
 
20263
if { (ac_try="$ac_compile"
 
20264
case "(($ac_try" in
 
20265
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20266
  *) ac_try_echo=$ac_try;;
 
20267
esac
 
20268
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20269
$as_echo "$ac_try_echo") >&5
 
20270
  (eval "$ac_compile") 2>conftest.er1
 
20271
  ac_status=$?
 
20272
  grep -v '^ *+' conftest.er1 >conftest.err
 
20273
  rm -f conftest.er1
 
20274
  cat conftest.err >&5
 
20275
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20276
  (exit $ac_status); } && {
 
20277
         test -z "$ac_c_werror_flag" ||
 
20278
         test ! -s conftest.err
 
20279
       } && test -s conftest.$ac_objext; then
 
20280
  ac_header_compiler=yes
 
20281
else
 
20282
  $as_echo "$as_me: failed program was:" >&5
 
20283
sed 's/^/| /' conftest.$ac_ext >&5
 
20284
 
 
20285
        ac_header_compiler=no
 
20286
fi
 
20287
 
 
20288
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20289
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
20290
$as_echo "$ac_header_compiler" >&6; }
 
20291
 
 
20292
# Is the header present?
 
20293
{ $as_echo "$as_me:$LINENO: checking sys/mman.h presence" >&5
 
20294
$as_echo_n "checking sys/mman.h presence... " >&6; }
 
20295
cat >conftest.$ac_ext <<_ACEOF
 
20296
/* confdefs.h.  */
 
20297
_ACEOF
 
20298
cat confdefs.h >>conftest.$ac_ext
 
20299
cat >>conftest.$ac_ext <<_ACEOF
 
20300
/* end confdefs.h.  */
 
20301
#include <sys/mman.h>
 
20302
_ACEOF
 
20303
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
20304
case "(($ac_try" in
 
20305
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20306
  *) ac_try_echo=$ac_try;;
 
20307
esac
 
20308
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20309
$as_echo "$ac_try_echo") >&5
 
20310
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
20311
  ac_status=$?
 
20312
  grep -v '^ *+' conftest.er1 >conftest.err
 
20313
  rm -f conftest.er1
 
20314
  cat conftest.err >&5
 
20315
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20316
  (exit $ac_status); } >/dev/null && {
 
20317
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
20318
         test ! -s conftest.err
 
20319
       }; then
 
20320
  ac_header_preproc=yes
 
20321
else
 
20322
  $as_echo "$as_me: failed program was:" >&5
 
20323
sed 's/^/| /' conftest.$ac_ext >&5
 
20324
 
 
20325
  ac_header_preproc=no
 
20326
fi
 
20327
 
 
20328
rm -f conftest.err conftest.$ac_ext
 
20329
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
20330
$as_echo "$ac_header_preproc" >&6; }
 
20331
 
 
20332
# So?  What about this header?
 
20333
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
20334
  yes:no: )
 
20335
    { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
20336
$as_echo "$as_me: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
20337
    { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the compiler's result" >&5
 
20338
$as_echo "$as_me: WARNING: sys/mman.h: proceeding with the compiler's result" >&2;}
 
20339
    ac_header_preproc=yes
 
20340
    ;;
 
20341
  no:yes:* )
 
20342
    { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: present but cannot be compiled" >&5
 
20343
$as_echo "$as_me: WARNING: sys/mman.h: present but cannot be compiled" >&2;}
 
20344
    { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h:     check for missing prerequisite headers?" >&5
 
20345
$as_echo "$as_me: WARNING: sys/mman.h:     check for missing prerequisite headers?" >&2;}
 
20346
    { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: see the Autoconf documentation" >&5
 
20347
$as_echo "$as_me: WARNING: sys/mman.h: see the Autoconf documentation" >&2;}
 
20348
    { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h:     section \"Present But Cannot Be Compiled\"" >&5
 
20349
$as_echo "$as_me: WARNING: sys/mman.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
20350
    { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&5
 
20351
$as_echo "$as_me: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&2;}
 
20352
    { $as_echo "$as_me:$LINENO: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&5
 
20353
$as_echo "$as_me: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&2;}
 
20354
 
 
20355
    ;;
 
20356
esac
 
20357
{ $as_echo "$as_me:$LINENO: checking for sys/mman.h" >&5
 
20358
$as_echo_n "checking for sys/mman.h... " >&6; }
 
20359
if test "${ac_cv_header_sys_mman_h+set}" = set; then
 
20360
  $as_echo_n "(cached) " >&6
 
20361
else
 
20362
  ac_cv_header_sys_mman_h=$ac_header_preproc
 
20363
fi
 
20364
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
 
20365
$as_echo "$ac_cv_header_sys_mman_h" >&6; }
 
20366
 
 
20367
fi
 
20368
if test "x$ac_cv_header_sys_mman_h" = x""yes; then
 
20369
  :
 
20370
else
 
20371
  no_mmap=1
 
20372
fi
 
20373
 
 
20374
if test -z "$no_mmap"; then
 
20375
{ $as_echo "$as_me:$LINENO: checking for mmap" >&5
 
20376
$as_echo_n "checking for mmap... " >&6; }
 
20377
if test "${ac_cv_func_mmap+set}" = set; then
 
20378
  $as_echo_n "(cached) " >&6
 
20379
else
 
20380
  cat >conftest.$ac_ext <<_ACEOF
 
20381
/* confdefs.h.  */
 
20382
_ACEOF
 
20383
cat confdefs.h >>conftest.$ac_ext
 
20384
cat >>conftest.$ac_ext <<_ACEOF
 
20385
/* end confdefs.h.  */
 
20386
/* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
 
20387
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
20388
#define mmap innocuous_mmap
 
20389
 
 
20390
/* System header to define __stub macros and hopefully few prototypes,
 
20391
    which can conflict with char mmap (); below.
 
20392
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
20393
    <limits.h> exists even on freestanding compilers.  */
 
20394
 
 
20395
#ifdef __STDC__
 
20396
# include <limits.h>
 
20397
#else
 
20398
# include <assert.h>
 
20399
#endif
 
20400
 
 
20401
#undef mmap
 
20402
 
 
20403
/* Override any GCC internal prototype to avoid an error.
 
20404
   Use char because int might match the return type of a GCC
 
20405
   builtin and then its argument prototype would still apply.  */
 
20406
#ifdef __cplusplus
 
20407
extern "C"
 
20408
#endif
 
20409
char mmap ();
 
20410
/* The GNU C library defines this for functions which it implements
 
20411
    to always fail with ENOSYS.  Some functions are actually named
 
20412
    something starting with __ and the normal name is an alias.  */
 
20413
#if defined __stub_mmap || defined __stub___mmap
 
20414
choke me
 
20415
#endif
 
20416
 
 
20417
int
 
20418
main ()
 
20419
{
 
20420
return mmap ();
 
20421
  ;
 
20422
  return 0;
 
20423
}
 
20424
_ACEOF
 
20425
rm -f conftest.$ac_objext conftest$ac_exeext
 
20426
if { (ac_try="$ac_link"
 
20427
case "(($ac_try" in
 
20428
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20429
  *) ac_try_echo=$ac_try;;
 
20430
esac
 
20431
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20432
$as_echo "$ac_try_echo") >&5
 
20433
  (eval "$ac_link") 2>conftest.er1
 
20434
  ac_status=$?
 
20435
  grep -v '^ *+' conftest.er1 >conftest.err
 
20436
  rm -f conftest.er1
 
20437
  cat conftest.err >&5
 
20438
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20439
  (exit $ac_status); } && {
 
20440
         test -z "$ac_c_werror_flag" ||
 
20441
         test ! -s conftest.err
 
20442
       } && test -s conftest$ac_exeext && {
 
20443
         test "$cross_compiling" = yes ||
 
20444
         $as_test_x conftest$ac_exeext
 
20445
       }; then
 
20446
  ac_cv_func_mmap=yes
 
20447
else
 
20448
  $as_echo "$as_me: failed program was:" >&5
 
20449
sed 's/^/| /' conftest.$ac_ext >&5
 
20450
 
 
20451
        ac_cv_func_mmap=no
 
20452
fi
 
20453
 
 
20454
rm -rf conftest.dSYM
 
20455
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
20456
      conftest$ac_exeext conftest.$ac_ext
 
20457
fi
 
20458
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
 
20459
$as_echo "$ac_cv_func_mmap" >&6; }
 
20460
if test "x$ac_cv_func_mmap" = x""yes; then
 
20461
  :
 
20462
else
 
20463
  no_mmap=1
 
20464
fi
 
20465
if test -z "$no_mmap"; then
 
20466
 
 
20467
cat >>confdefs.h <<\_ACEOF
 
20468
#define HAVE_MMAP /**/
 
20469
_ACEOF
 
20470
 
 
20471
{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
 
20472
$as_echo_n "checking for working mmap... " >&6; }
 
20473
if test "${cl_cv_func_mmap_works+set}" = set; then
 
20474
  $as_echo_n "(cached) " >&6
 
20475
else
 
20476
 
 
20477
case "$host" in
 
20478
  i3456786-*-sysv4*)
 
20479
    # UNIX_SYSV_UHC_1
 
20480
    avoid=0x08000000 ;;
 
20481
  mips-sgi-irix* | mips-dec-ultrix*)
 
20482
    # UNIX_IRIX, UNIX_DEC_ULTRIX
 
20483
    avoid=0x10000000 ;;
 
20484
  rs6000-ibm-aix*)
 
20485
    # UNIX_AIX
 
20486
    avoid=0x20000000 ;;
 
20487
  *)
 
20488
    avoid=0 ;;
 
20489
esac
 
20490
mmap_prog_1='
 
20491
#include <stdlib.h>
 
20492
#ifdef HAVE_UNISTD_H
 
20493
#include <unistd.h>
 
20494
#endif
 
20495
#include <fcntl.h>
 
20496
#include <sys/types.h>
 
20497
#include <sys/mman.h>
 
20498
int main () {
 
20499
'
 
20500
mmap_prog_2="#define bits_to_avoid $avoid"'
 
20501
#define my_shift 24
 
20502
#define my_low   1
 
20503
#ifdef FOR_SUN4_29
 
20504
#define my_high  31
 
20505
#define my_size  32768 /* hope that 32768 is a multiple of the page size */
 
20506
/* i*32 KB for i=1..31 gives a total of 15.5 MB, which is close to what we need */
 
20507
#else
 
20508
#define my_high  64
 
20509
#define my_size  8192 /* hope that 8192 is a multiple of the page size */
 
20510
/* i*8 KB for i=1..64 gives a total of 16.25 MB, which is close to what we need */
 
20511
#endif
 
20512
 {long i;
 
20513
#define i_ok(i)  ((i) & (bits_to_avoid >> my_shift) == 0)
 
20514
  for (i=my_low; i<=my_high; i++)
 
20515
    if (i_ok(i))
 
20516
      { caddr_t addr = (caddr_t)(i << my_shift);
 
20517
/* Check for 8 MB, not 16 MB. This is more likely to work on Solaris 2. */
 
20518
#if bits_to_avoid
 
20519
        long size = i*my_size;
 
20520
#else
 
20521
        long size = ((i+1)/2)*my_size;
 
20522
#endif
 
20523
        if (mmap(addr,size,PROT_READ|PROT_WRITE,flags|MAP_FIXED,fd,0) == (void*)-1) exit(1);
 
20524
    }
 
20525
#define x(i)  *(unsigned char *) ((i<<my_shift) + (i*i))
 
20526
#define y(i)  (unsigned char)((3*i-4)*(7*i+3))
 
20527
  for (i=my_low; i<=my_high; i++) if (i_ok(i)) { x(i) = y(i); }
 
20528
  for (i=my_high; i>=my_low; i--) if (i_ok(i)) { if (x(i) != y(i)) exit(1); }
 
20529
  exit(0);
 
20530
}}
 
20531
'
 
20532
if test "$cross_compiling" = yes; then
 
20533
  : # When cross-compiling, don't assume anything.
 
20534
 
 
20535
else
 
20536
  cat >conftest.$ac_ext <<_ACEOF
 
20537
/* confdefs.h.  */
 
20538
_ACEOF
 
20539
cat confdefs.h >>conftest.$ac_ext
 
20540
cat >>conftest.$ac_ext <<_ACEOF
 
20541
/* end confdefs.h.  */
 
20542
 
 
20543
#include <stdlib.h>
 
20544
#if defined __MACH__ && defined __APPLE__
 
20545
/* Avoid a crash on MacOS X.  */
 
20546
#include <mach/mach.h>
 
20547
#include <mach/mach_error.h>
 
20548
#include <mach/thread_status.h>
 
20549
#include <mach/exception.h>
 
20550
#include <mach/task.h>
 
20551
#include <pthread.h>
 
20552
/* The exception port on which our thread listens.  */
 
20553
static mach_port_t our_exception_port;
 
20554
/* The main function of the thread listening for exceptions of type
 
20555
   EXC_BAD_ACCESS.  */
 
20556
static void *
 
20557
mach_exception_thread (void *arg)
 
20558
{
 
20559
  /* Buffer for a message to be received.  */
 
20560
  struct {
 
20561
    mach_msg_header_t head;
 
20562
    mach_msg_body_t msgh_body;
 
20563
    char data[1024];
 
20564
  } msg;
 
20565
  mach_msg_return_t retval;
 
20566
  /* Wait for a message on the exception port.  */
 
20567
  retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
 
20568
                     our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
 
20569
  if (retval != MACH_MSG_SUCCESS)
 
20570
    abort ();
 
20571
  exit (1);
 
20572
}
 
20573
static void
 
20574
nocrash_init (void)
 
20575
{
 
20576
  mach_port_t self = mach_task_self ();
 
20577
  /* Allocate a port on which the thread shall listen for exceptions.  */
 
20578
  if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
 
20579
      == KERN_SUCCESS) {
 
20580
    /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html.  */
 
20581
    if (mach_port_insert_right (self, our_exception_port, our_exception_port,
 
20582
                                MACH_MSG_TYPE_MAKE_SEND)
 
20583
        == KERN_SUCCESS) {
 
20584
      /* The exceptions we want to catch.  Only EXC_BAD_ACCESS is interesting
 
20585
         for us.  */
 
20586
      exception_mask_t mask = EXC_MASK_BAD_ACCESS;
 
20587
      /* Create the thread listening on the exception port.  */
 
20588
      pthread_attr_t attr;
 
20589
      pthread_t thread;
 
20590
      if (pthread_attr_init (&attr) == 0
 
20591
          && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
 
20592
          && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
 
20593
        pthread_attr_destroy (&attr);
 
20594
        /* Replace the exception port info for these exceptions with our own.
 
20595
           Note that we replace the exception port for the entire task, not only
 
20596
           for a particular thread.  This has the effect that when our exception
 
20597
           port gets the message, the thread specific exception port has already
 
20598
           been asked, and we don't need to bother about it.
 
20599
           See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html.  */
 
20600
        task_set_exception_ports (self, mask, our_exception_port,
 
20601
                                  EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
 
20602
      }
 
20603
    }
 
20604
  }
 
20605
}
 
20606
#else
 
20607
/* Avoid a crash on POSIX systems.  */
 
20608
#include <signal.h>
 
20609
/* A POSIX signal handler.  */
 
20610
static void
 
20611
exception_handler (int sig)
 
20612
{
 
20613
  exit (1);
 
20614
}
 
20615
static void
 
20616
nocrash_init (void)
 
20617
{
 
20618
#ifdef SIGSEGV
 
20619
  signal (SIGSEGV, exception_handler);
 
20620
#endif
 
20621
#ifdef SIGBUS
 
20622
  signal (SIGBUS, exception_handler);
 
20623
#endif
 
20624
}
 
20625
#endif
 
20626
$mmap_prog_1
 
20627
  int flags = MAP_ANON | MAP_PRIVATE;
 
20628
  int fd = -1;
 
20629
  nocrash_init();
 
20630
$mmap_prog_2
 
20631
 
 
20632
_ACEOF
 
20633
rm -f conftest$ac_exeext
 
20634
if { (ac_try="$ac_link"
 
20635
case "(($ac_try" in
 
20636
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20637
  *) ac_try_echo=$ac_try;;
 
20638
esac
 
20639
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20640
$as_echo "$ac_try_echo") >&5
 
20641
  (eval "$ac_link") 2>&5
 
20642
  ac_status=$?
 
20643
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20644
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
20645
  { (case "(($ac_try" in
 
20646
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20647
  *) ac_try_echo=$ac_try;;
 
20648
esac
 
20649
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20650
$as_echo "$ac_try_echo") >&5
 
20651
  (eval "$ac_try") 2>&5
 
20652
  ac_status=$?
 
20653
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20654
  (exit $ac_status); }; }; then
 
20655
  have_mmap_anon=1
 
20656
cl_cv_func_mmap_anon=yes
 
20657
else
 
20658
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
20659
$as_echo "$as_me: failed program was:" >&5
 
20660
sed 's/^/| /' conftest.$ac_ext >&5
 
20661
 
 
20662
fi
 
20663
rm -rf conftest.dSYM
 
20664
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
20665
fi
 
20666
 
 
20667
 
 
20668
if test "$cross_compiling" = yes; then
 
20669
  : # When cross-compiling, don't assume anything.
 
20670
 
 
20671
else
 
20672
  cat >conftest.$ac_ext <<_ACEOF
 
20673
/* confdefs.h.  */
 
20674
_ACEOF
 
20675
cat confdefs.h >>conftest.$ac_ext
 
20676
cat >>conftest.$ac_ext <<_ACEOF
 
20677
/* end confdefs.h.  */
 
20678
 
 
20679
#include <stdlib.h>
 
20680
#if defined __MACH__ && defined __APPLE__
 
20681
/* Avoid a crash on MacOS X.  */
 
20682
#include <mach/mach.h>
 
20683
#include <mach/mach_error.h>
 
20684
#include <mach/thread_status.h>
 
20685
#include <mach/exception.h>
 
20686
#include <mach/task.h>
 
20687
#include <pthread.h>
 
20688
/* The exception port on which our thread listens.  */
 
20689
static mach_port_t our_exception_port;
 
20690
/* The main function of the thread listening for exceptions of type
 
20691
   EXC_BAD_ACCESS.  */
 
20692
static void *
 
20693
mach_exception_thread (void *arg)
 
20694
{
 
20695
  /* Buffer for a message to be received.  */
 
20696
  struct {
 
20697
    mach_msg_header_t head;
 
20698
    mach_msg_body_t msgh_body;
 
20699
    char data[1024];
 
20700
  } msg;
 
20701
  mach_msg_return_t retval;
 
20702
  /* Wait for a message on the exception port.  */
 
20703
  retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
 
20704
                     our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
 
20705
  if (retval != MACH_MSG_SUCCESS)
 
20706
    abort ();
 
20707
  exit (1);
 
20708
}
 
20709
static void
 
20710
nocrash_init (void)
 
20711
{
 
20712
  mach_port_t self = mach_task_self ();
 
20713
  /* Allocate a port on which the thread shall listen for exceptions.  */
 
20714
  if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
 
20715
      == KERN_SUCCESS) {
 
20716
    /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html.  */
 
20717
    if (mach_port_insert_right (self, our_exception_port, our_exception_port,
 
20718
                                MACH_MSG_TYPE_MAKE_SEND)
 
20719
        == KERN_SUCCESS) {
 
20720
      /* The exceptions we want to catch.  Only EXC_BAD_ACCESS is interesting
 
20721
         for us.  */
 
20722
      exception_mask_t mask = EXC_MASK_BAD_ACCESS;
 
20723
      /* Create the thread listening on the exception port.  */
 
20724
      pthread_attr_t attr;
 
20725
      pthread_t thread;
 
20726
      if (pthread_attr_init (&attr) == 0
 
20727
          && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
 
20728
          && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
 
20729
        pthread_attr_destroy (&attr);
 
20730
        /* Replace the exception port info for these exceptions with our own.
 
20731
           Note that we replace the exception port for the entire task, not only
 
20732
           for a particular thread.  This has the effect that when our exception
 
20733
           port gets the message, the thread specific exception port has already
 
20734
           been asked, and we don't need to bother about it.
 
20735
           See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html.  */
 
20736
        task_set_exception_ports (self, mask, our_exception_port,
 
20737
                                  EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
 
20738
      }
 
20739
    }
 
20740
  }
 
20741
}
 
20742
#else
 
20743
/* Avoid a crash on POSIX systems.  */
 
20744
#include <signal.h>
 
20745
/* A POSIX signal handler.  */
 
20746
static void
 
20747
exception_handler (int sig)
 
20748
{
 
20749
  exit (1);
 
20750
}
 
20751
static void
 
20752
nocrash_init (void)
 
20753
{
 
20754
#ifdef SIGSEGV
 
20755
  signal (SIGSEGV, exception_handler);
 
20756
#endif
 
20757
#ifdef SIGBUS
 
20758
  signal (SIGBUS, exception_handler);
 
20759
#endif
 
20760
}
 
20761
#endif
 
20762
$mmap_prog_1
 
20763
  int flags = MAP_ANONYMOUS | MAP_PRIVATE;
 
20764
  int fd = -1;
 
20765
  nocrash_init();
 
20766
$mmap_prog_2
 
20767
 
 
20768
_ACEOF
 
20769
rm -f conftest$ac_exeext
 
20770
if { (ac_try="$ac_link"
 
20771
case "(($ac_try" in
 
20772
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20773
  *) ac_try_echo=$ac_try;;
 
20774
esac
 
20775
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20776
$as_echo "$ac_try_echo") >&5
 
20777
  (eval "$ac_link") 2>&5
 
20778
  ac_status=$?
 
20779
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20780
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
20781
  { (case "(($ac_try" in
 
20782
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20783
  *) ac_try_echo=$ac_try;;
 
20784
esac
 
20785
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20786
$as_echo "$ac_try_echo") >&5
 
20787
  (eval "$ac_try") 2>&5
 
20788
  ac_status=$?
 
20789
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20790
  (exit $ac_status); }; }; then
 
20791
  have_mmap_anon=1
 
20792
cl_cv_func_mmap_anonymous=yes
 
20793
else
 
20794
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
20795
$as_echo "$as_me: failed program was:" >&5
 
20796
sed 's/^/| /' conftest.$ac_ext >&5
 
20797
 
 
20798
fi
 
20799
rm -rf conftest.dSYM
 
20800
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
20801
fi
 
20802
 
 
20803
 
 
20804
if test "$cross_compiling" = yes; then
 
20805
  : # When cross-compiling, don't assume anything.
 
20806
 
 
20807
else
 
20808
  cat >conftest.$ac_ext <<_ACEOF
 
20809
/* confdefs.h.  */
 
20810
_ACEOF
 
20811
cat confdefs.h >>conftest.$ac_ext
 
20812
cat >>conftest.$ac_ext <<_ACEOF
 
20813
/* end confdefs.h.  */
 
20814
 
 
20815
#include <stdlib.h>
 
20816
#if defined __MACH__ && defined __APPLE__
 
20817
/* Avoid a crash on MacOS X.  */
 
20818
#include <mach/mach.h>
 
20819
#include <mach/mach_error.h>
 
20820
#include <mach/thread_status.h>
 
20821
#include <mach/exception.h>
 
20822
#include <mach/task.h>
 
20823
#include <pthread.h>
 
20824
/* The exception port on which our thread listens.  */
 
20825
static mach_port_t our_exception_port;
 
20826
/* The main function of the thread listening for exceptions of type
 
20827
   EXC_BAD_ACCESS.  */
 
20828
static void *
 
20829
mach_exception_thread (void *arg)
 
20830
{
 
20831
  /* Buffer for a message to be received.  */
 
20832
  struct {
 
20833
    mach_msg_header_t head;
 
20834
    mach_msg_body_t msgh_body;
 
20835
    char data[1024];
 
20836
  } msg;
 
20837
  mach_msg_return_t retval;
 
20838
  /* Wait for a message on the exception port.  */
 
20839
  retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
 
20840
                     our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
 
20841
  if (retval != MACH_MSG_SUCCESS)
 
20842
    abort ();
 
20843
  exit (1);
 
20844
}
 
20845
static void
 
20846
nocrash_init (void)
 
20847
{
 
20848
  mach_port_t self = mach_task_self ();
 
20849
  /* Allocate a port on which the thread shall listen for exceptions.  */
 
20850
  if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
 
20851
      == KERN_SUCCESS) {
 
20852
    /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html.  */
 
20853
    if (mach_port_insert_right (self, our_exception_port, our_exception_port,
 
20854
                                MACH_MSG_TYPE_MAKE_SEND)
 
20855
        == KERN_SUCCESS) {
 
20856
      /* The exceptions we want to catch.  Only EXC_BAD_ACCESS is interesting
 
20857
         for us.  */
 
20858
      exception_mask_t mask = EXC_MASK_BAD_ACCESS;
 
20859
      /* Create the thread listening on the exception port.  */
 
20860
      pthread_attr_t attr;
 
20861
      pthread_t thread;
 
20862
      if (pthread_attr_init (&attr) == 0
 
20863
          && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
 
20864
          && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
 
20865
        pthread_attr_destroy (&attr);
 
20866
        /* Replace the exception port info for these exceptions with our own.
 
20867
           Note that we replace the exception port for the entire task, not only
 
20868
           for a particular thread.  This has the effect that when our exception
 
20869
           port gets the message, the thread specific exception port has already
 
20870
           been asked, and we don't need to bother about it.
 
20871
           See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html.  */
 
20872
        task_set_exception_ports (self, mask, our_exception_port,
 
20873
                                  EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
 
20874
      }
 
20875
    }
 
20876
  }
 
20877
}
 
20878
#else
 
20879
/* Avoid a crash on POSIX systems.  */
 
20880
#include <signal.h>
 
20881
/* A POSIX signal handler.  */
 
20882
static void
 
20883
exception_handler (int sig)
 
20884
{
 
20885
  exit (1);
 
20886
}
 
20887
static void
 
20888
nocrash_init (void)
 
20889
{
 
20890
#ifdef SIGSEGV
 
20891
  signal (SIGSEGV, exception_handler);
 
20892
#endif
 
20893
#ifdef SIGBUS
 
20894
  signal (SIGBUS, exception_handler);
 
20895
#endif
 
20896
}
 
20897
#endif
 
20898
$mmap_prog_1
 
20899
#ifndef MAP_FILE
 
20900
#define MAP_FILE 0
 
20901
#endif
 
20902
  int flags = MAP_FILE | MAP_PRIVATE;
 
20903
  int fd = open("/dev/zero",O_RDONLY,0666);
 
20904
  if (fd<0) exit(1);
 
20905
  nocrash_init();
 
20906
$mmap_prog_2
 
20907
 
 
20908
_ACEOF
 
20909
rm -f conftest$ac_exeext
 
20910
if { (ac_try="$ac_link"
 
20911
case "(($ac_try" in
 
20912
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20913
  *) ac_try_echo=$ac_try;;
 
20914
esac
 
20915
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20916
$as_echo "$ac_try_echo") >&5
 
20917
  (eval "$ac_link") 2>&5
 
20918
  ac_status=$?
 
20919
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20920
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
20921
  { (case "(($ac_try" in
 
20922
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20923
  *) ac_try_echo=$ac_try;;
 
20924
esac
 
20925
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20926
$as_echo "$ac_try_echo") >&5
 
20927
  (eval "$ac_try") 2>&5
 
20928
  ac_status=$?
 
20929
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20930
  (exit $ac_status); }; }; then
 
20931
  have_mmap_devzero=1
 
20932
cl_cv_func_mmap_devzero=yes
 
20933
else
 
20934
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
20935
$as_echo "$as_me: failed program was:" >&5
 
20936
sed 's/^/| /' conftest.$ac_ext >&5
 
20937
 
 
20938
( exit $ac_status )
 
20939
retry_mmap=1
 
20940
fi
 
20941
rm -rf conftest.dSYM
 
20942
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
20943
fi
 
20944
 
 
20945
 
 
20946
if test -n "$retry_mmap"; then
 
20947
if test "$cross_compiling" = yes; then
 
20948
  : # When cross-compiling, don't assume anything.
 
20949
 
 
20950
else
 
20951
  cat >conftest.$ac_ext <<_ACEOF
 
20952
/* confdefs.h.  */
 
20953
_ACEOF
 
20954
cat confdefs.h >>conftest.$ac_ext
 
20955
cat >>conftest.$ac_ext <<_ACEOF
 
20956
/* end confdefs.h.  */
 
20957
 
 
20958
#include <stdlib.h>
 
20959
#if defined __MACH__ && defined __APPLE__
 
20960
/* Avoid a crash on MacOS X.  */
 
20961
#include <mach/mach.h>
 
20962
#include <mach/mach_error.h>
 
20963
#include <mach/thread_status.h>
 
20964
#include <mach/exception.h>
 
20965
#include <mach/task.h>
 
20966
#include <pthread.h>
 
20967
/* The exception port on which our thread listens.  */
 
20968
static mach_port_t our_exception_port;
 
20969
/* The main function of the thread listening for exceptions of type
 
20970
   EXC_BAD_ACCESS.  */
 
20971
static void *
 
20972
mach_exception_thread (void *arg)
 
20973
{
 
20974
  /* Buffer for a message to be received.  */
 
20975
  struct {
 
20976
    mach_msg_header_t head;
 
20977
    mach_msg_body_t msgh_body;
 
20978
    char data[1024];
 
20979
  } msg;
 
20980
  mach_msg_return_t retval;
 
20981
  /* Wait for a message on the exception port.  */
 
20982
  retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
 
20983
                     our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
 
20984
  if (retval != MACH_MSG_SUCCESS)
 
20985
    abort ();
 
20986
  exit (1);
 
20987
}
 
20988
static void
 
20989
nocrash_init (void)
 
20990
{
 
20991
  mach_port_t self = mach_task_self ();
 
20992
  /* Allocate a port on which the thread shall listen for exceptions.  */
 
20993
  if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
 
20994
      == KERN_SUCCESS) {
 
20995
    /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html.  */
 
20996
    if (mach_port_insert_right (self, our_exception_port, our_exception_port,
 
20997
                                MACH_MSG_TYPE_MAKE_SEND)
 
20998
        == KERN_SUCCESS) {
 
20999
      /* The exceptions we want to catch.  Only EXC_BAD_ACCESS is interesting
 
21000
         for us.  */
 
21001
      exception_mask_t mask = EXC_MASK_BAD_ACCESS;
 
21002
      /* Create the thread listening on the exception port.  */
 
21003
      pthread_attr_t attr;
 
21004
      pthread_t thread;
 
21005
      if (pthread_attr_init (&attr) == 0
 
21006
          && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
 
21007
          && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
 
21008
        pthread_attr_destroy (&attr);
 
21009
        /* Replace the exception port info for these exceptions with our own.
 
21010
           Note that we replace the exception port for the entire task, not only
 
21011
           for a particular thread.  This has the effect that when our exception
 
21012
           port gets the message, the thread specific exception port has already
 
21013
           been asked, and we don't need to bother about it.
 
21014
           See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html.  */
 
21015
        task_set_exception_ports (self, mask, our_exception_port,
 
21016
                                  EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
 
21017
      }
 
21018
    }
 
21019
  }
 
21020
}
 
21021
#else
 
21022
/* Avoid a crash on POSIX systems.  */
 
21023
#include <signal.h>
 
21024
/* A POSIX signal handler.  */
 
21025
static void
 
21026
exception_handler (int sig)
 
21027
{
 
21028
  exit (1);
 
21029
}
 
21030
static void
 
21031
nocrash_init (void)
 
21032
{
 
21033
#ifdef SIGSEGV
 
21034
  signal (SIGSEGV, exception_handler);
 
21035
#endif
 
21036
#ifdef SIGBUS
 
21037
  signal (SIGBUS, exception_handler);
 
21038
#endif
 
21039
}
 
21040
#endif
 
21041
#define FOR_SUN4_29
 
21042
$mmap_prog_1
 
21043
#ifndef MAP_FILE
 
21044
#define MAP_FILE 0
 
21045
#endif
 
21046
  int flags = MAP_FILE | MAP_PRIVATE;
 
21047
  int fd = open("/dev/zero",O_RDONLY,0666);
 
21048
  if (fd<0) exit(1);
 
21049
  nocrash_init();
 
21050
$mmap_prog_2
 
21051
 
 
21052
_ACEOF
 
21053
rm -f conftest$ac_exeext
 
21054
if { (ac_try="$ac_link"
 
21055
case "(($ac_try" in
 
21056
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21057
  *) ac_try_echo=$ac_try;;
 
21058
esac
 
21059
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21060
$as_echo "$ac_try_echo") >&5
 
21061
  (eval "$ac_link") 2>&5
 
21062
  ac_status=$?
 
21063
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21064
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
21065
  { (case "(($ac_try" in
 
21066
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21067
  *) ac_try_echo=$ac_try;;
 
21068
esac
 
21069
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21070
$as_echo "$ac_try_echo") >&5
 
21071
  (eval "$ac_try") 2>&5
 
21072
  ac_status=$?
 
21073
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21074
  (exit $ac_status); }; }; then
 
21075
  have_mmap_devzero=1
 
21076
cl_cv_func_mmap_devzero_sun4_29=yes
 
21077
else
 
21078
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
21079
$as_echo "$as_me: failed program was:" >&5
 
21080
sed 's/^/| /' conftest.$ac_ext >&5
 
21081
 
 
21082
fi
 
21083
rm -rf conftest.dSYM
 
21084
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
21085
fi
 
21086
 
 
21087
 
 
21088
fi
 
21089
if test -n "$have_mmap_anon" -o -n "$have_mmap_devzero"; then
 
21090
cl_cv_func_mmap_works=yes
 
21091
else
 
21092
cl_cv_func_mmap_works=no
 
21093
fi
 
21094
 
 
21095
fi
 
21096
{ $as_echo "$as_me:$LINENO: result: $cl_cv_func_mmap_works" >&5
 
21097
$as_echo "$cl_cv_func_mmap_works" >&6; }
 
21098
if test "$cl_cv_func_mmap_anon" = yes; then
 
21099
 
 
21100
cat >>confdefs.h <<\_ACEOF
 
21101
#define HAVE_MMAP_ANON /**/
 
21102
_ACEOF
 
21103
 
 
21104
fi
 
21105
if test "$cl_cv_func_mmap_anonymous" = yes; then
 
21106
 
 
21107
cat >>confdefs.h <<\_ACEOF
 
21108
#define HAVE_MMAP_ANONYMOUS /**/
 
21109
_ACEOF
 
21110
 
 
21111
fi
 
21112
if test "$cl_cv_func_mmap_devzero" = yes; then
 
21113
 
 
21114
cat >>confdefs.h <<\_ACEOF
 
21115
#define HAVE_MMAP_DEVZERO /**/
 
21116
_ACEOF
 
21117
 
 
21118
fi
 
21119
if test "$cl_cv_func_mmap_devzero_sun4_29" = yes; then
 
21120
 
 
21121
cat >>confdefs.h <<\_ACEOF
 
21122
#define HAVE_MMAP_DEVZERO_SUN4_29 /**/
 
21123
_ACEOF
 
21124
 
 
21125
fi
 
21126
fi
 
21127
fi
 
21128
 
 
21129
 
 
21130
for ac_func in mprotect
 
21131
do
 
21132
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
21133
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 
21134
$as_echo_n "checking for $ac_func... " >&6; }
 
21135
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
21136
  $as_echo_n "(cached) " >&6
 
21137
else
 
21138
  cat >conftest.$ac_ext <<_ACEOF
 
21139
/* confdefs.h.  */
 
21140
_ACEOF
 
21141
cat confdefs.h >>conftest.$ac_ext
 
21142
cat >>conftest.$ac_ext <<_ACEOF
 
21143
/* end confdefs.h.  */
 
21144
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
21145
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
21146
#define $ac_func innocuous_$ac_func
 
21147
 
 
21148
/* System header to define __stub macros and hopefully few prototypes,
 
21149
    which can conflict with char $ac_func (); below.
 
21150
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
21151
    <limits.h> exists even on freestanding compilers.  */
 
21152
 
 
21153
#ifdef __STDC__
 
21154
# include <limits.h>
 
21155
#else
 
21156
# include <assert.h>
 
21157
#endif
 
21158
 
 
21159
#undef $ac_func
 
21160
 
 
21161
/* Override any GCC internal prototype to avoid an error.
 
21162
   Use char because int might match the return type of a GCC
 
21163
   builtin and then its argument prototype would still apply.  */
 
21164
#ifdef __cplusplus
 
21165
extern "C"
 
21166
#endif
 
21167
char $ac_func ();
 
21168
/* The GNU C library defines this for functions which it implements
 
21169
    to always fail with ENOSYS.  Some functions are actually named
 
21170
    something starting with __ and the normal name is an alias.  */
 
21171
#if defined __stub_$ac_func || defined __stub___$ac_func
 
21172
choke me
 
21173
#endif
 
21174
 
 
21175
int
 
21176
main ()
 
21177
{
 
21178
return $ac_func ();
 
21179
  ;
 
21180
  return 0;
 
21181
}
 
21182
_ACEOF
 
21183
rm -f conftest.$ac_objext conftest$ac_exeext
 
21184
if { (ac_try="$ac_link"
 
21185
case "(($ac_try" in
 
21186
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21187
  *) ac_try_echo=$ac_try;;
 
21188
esac
 
21189
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21190
$as_echo "$ac_try_echo") >&5
 
21191
  (eval "$ac_link") 2>conftest.er1
 
21192
  ac_status=$?
 
21193
  grep -v '^ *+' conftest.er1 >conftest.err
 
21194
  rm -f conftest.er1
 
21195
  cat conftest.err >&5
 
21196
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21197
  (exit $ac_status); } && {
 
21198
         test -z "$ac_c_werror_flag" ||
 
21199
         test ! -s conftest.err
 
21200
       } && test -s conftest$ac_exeext && {
 
21201
         test "$cross_compiling" = yes ||
 
21202
         $as_test_x conftest$ac_exeext
 
21203
       }; then
 
21204
  eval "$as_ac_var=yes"
 
21205
else
 
21206
  $as_echo "$as_me: failed program was:" >&5
 
21207
sed 's/^/| /' conftest.$ac_ext >&5
 
21208
 
 
21209
        eval "$as_ac_var=no"
 
21210
fi
 
21211
 
 
21212
rm -rf conftest.dSYM
 
21213
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
21214
      conftest$ac_exeext conftest.$ac_ext
 
21215
fi
 
21216
ac_res=`eval 'as_val=${'$as_ac_var'}
 
21217
                 $as_echo "$as_val"'`
 
21218
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
21219
$as_echo "$ac_res" >&6; }
 
21220
as_val=`eval 'as_val=${'$as_ac_var'}
 
21221
                 $as_echo "$as_val"'`
 
21222
   if test "x$as_val" = x""yes; then
 
21223
  cat >>confdefs.h <<_ACEOF
 
21224
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
21225
_ACEOF
 
21226
 
 
21227
fi
 
21228
done
 
21229
if test $ac_cv_func_mprotect = yes; then
 
21230
{ $as_echo "$as_me:$LINENO: checking for working mprotect" >&5
 
21231
$as_echo_n "checking for working mprotect... " >&6; }
 
21232
if test "${cl_cv_func_mprotect_works+set}" = set; then
 
21233
  $as_echo_n "(cached) " >&6
 
21234
else
 
21235
 
 
21236
mprotect_prog='
 
21237
#include <sys/types.h>
 
21238
/* declare malloc() */
 
21239
#include <stdlib.h>
 
21240
#ifdef HAVE_UNISTD_H
 
21241
#include <unistd.h>
 
21242
#endif
 
21243
/* declare getpagesize() and mprotect() */
 
21244
#include <sys/mman.h>
 
21245
#ifndef HAVE_GETPAGESIZE
 
21246
#include <sys/param.h>
 
21247
#define getpagesize() PAGESIZE
 
21248
#else
 
21249
extern
 
21250
#ifdef __cplusplus
 
21251
"C"
 
21252
#endif
 
21253
 
 
21254
RETGETPAGESIZETYPE getpagesize (void);
 
21255
#endif
 
21256
char foo;
 
21257
int main () {
 
21258
  unsigned long pagesize = getpagesize();
 
21259
#define page_align(address)  (char*)((unsigned long)(address) & -pagesize)
 
21260
'
 
21261
if test "$cross_compiling" = yes; then
 
21262
  # When cross-compiling, don't assume anything.
 
21263
no_mprotect=1
 
21264
else
 
21265
  cat >conftest.$ac_ext <<_ACEOF
 
21266
/* confdefs.h.  */
 
21267
_ACEOF
 
21268
cat confdefs.h >>conftest.$ac_ext
 
21269
cat >>conftest.$ac_ext <<_ACEOF
 
21270
/* end confdefs.h.  */
 
21271
$mprotect_prog
 
21272
  if ((pagesize-1) & pagesize) exit(1);
 
21273
  exit(0); }
 
21274
_ACEOF
 
21275
rm -f conftest$ac_exeext
 
21276
if { (ac_try="$ac_link"
 
21277
case "(($ac_try" in
 
21278
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21279
  *) ac_try_echo=$ac_try;;
 
21280
esac
 
21281
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21282
$as_echo "$ac_try_echo") >&5
 
21283
  (eval "$ac_link") 2>&5
 
21284
  ac_status=$?
 
21285
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21286
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
21287
  { (case "(($ac_try" in
 
21288
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21289
  *) ac_try_echo=$ac_try;;
 
21290
esac
 
21291
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21292
$as_echo "$ac_try_echo") >&5
 
21293
  (eval "$ac_try") 2>&5
 
21294
  ac_status=$?
 
21295
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21296
  (exit $ac_status); }; }; then
 
21297
  :
 
21298
else
 
21299
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
21300
$as_echo "$as_me: failed program was:" >&5
 
21301
sed 's/^/| /' conftest.$ac_ext >&5
 
21302
 
 
21303
( exit $ac_status )
 
21304
no_mprotect=1
 
21305
fi
 
21306
rm -rf conftest.dSYM
 
21307
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
21308
fi
 
21309
 
 
21310
 
 
21311
mprotect_prog="$mprotect_prog"'
 
21312
  char* area = (char*) malloc(6*pagesize);
 
21313
  char* fault_address = area + pagesize*7/2;
 
21314
'
 
21315
if test -z "$no_mprotect"; then
 
21316
if test "$cross_compiling" = yes; then
 
21317
  : # When cross-compiling, don't assume anything.
 
21318
 
 
21319
else
 
21320
  cat >conftest.$ac_ext <<_ACEOF
 
21321
/* confdefs.h.  */
 
21322
_ACEOF
 
21323
cat confdefs.h >>conftest.$ac_ext
 
21324
cat >>conftest.$ac_ext <<_ACEOF
 
21325
/* end confdefs.h.  */
 
21326
 
 
21327
#include <stdlib.h>
 
21328
#if defined __MACH__ && defined __APPLE__
 
21329
/* Avoid a crash on MacOS X.  */
 
21330
#include <mach/mach.h>
 
21331
#include <mach/mach_error.h>
 
21332
#include <mach/thread_status.h>
 
21333
#include <mach/exception.h>
 
21334
#include <mach/task.h>
 
21335
#include <pthread.h>
 
21336
/* The exception port on which our thread listens.  */
 
21337
static mach_port_t our_exception_port;
 
21338
/* The main function of the thread listening for exceptions of type
 
21339
   EXC_BAD_ACCESS.  */
 
21340
static void *
 
21341
mach_exception_thread (void *arg)
 
21342
{
 
21343
  /* Buffer for a message to be received.  */
 
21344
  struct {
 
21345
    mach_msg_header_t head;
 
21346
    mach_msg_body_t msgh_body;
 
21347
    char data[1024];
 
21348
  } msg;
 
21349
  mach_msg_return_t retval;
 
21350
  /* Wait for a message on the exception port.  */
 
21351
  retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
 
21352
                     our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
 
21353
  if (retval != MACH_MSG_SUCCESS)
 
21354
    abort ();
 
21355
  exit (1);
 
21356
}
 
21357
static void
 
21358
nocrash_init (void)
 
21359
{
 
21360
  mach_port_t self = mach_task_self ();
 
21361
  /* Allocate a port on which the thread shall listen for exceptions.  */
 
21362
  if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
 
21363
      == KERN_SUCCESS) {
 
21364
    /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html.  */
 
21365
    if (mach_port_insert_right (self, our_exception_port, our_exception_port,
 
21366
                                MACH_MSG_TYPE_MAKE_SEND)
 
21367
        == KERN_SUCCESS) {
 
21368
      /* The exceptions we want to catch.  Only EXC_BAD_ACCESS is interesting
 
21369
         for us.  */
 
21370
      exception_mask_t mask = EXC_MASK_BAD_ACCESS;
 
21371
      /* Create the thread listening on the exception port.  */
 
21372
      pthread_attr_t attr;
 
21373
      pthread_t thread;
 
21374
      if (pthread_attr_init (&attr) == 0
 
21375
          && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
 
21376
          && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
 
21377
        pthread_attr_destroy (&attr);
 
21378
        /* Replace the exception port info for these exceptions with our own.
 
21379
           Note that we replace the exception port for the entire task, not only
 
21380
           for a particular thread.  This has the effect that when our exception
 
21381
           port gets the message, the thread specific exception port has already
 
21382
           been asked, and we don't need to bother about it.
 
21383
           See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html.  */
 
21384
        task_set_exception_ports (self, mask, our_exception_port,
 
21385
                                  EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
 
21386
      }
 
21387
    }
 
21388
  }
 
21389
}
 
21390
#else
 
21391
/* Avoid a crash on POSIX systems.  */
 
21392
#include <signal.h>
 
21393
/* A POSIX signal handler.  */
 
21394
static void
 
21395
exception_handler (int sig)
 
21396
{
 
21397
  exit (1);
 
21398
}
 
21399
static void
 
21400
nocrash_init (void)
 
21401
{
 
21402
#ifdef SIGSEGV
 
21403
  signal (SIGSEGV, exception_handler);
 
21404
#endif
 
21405
#ifdef SIGBUS
 
21406
  signal (SIGBUS, exception_handler);
 
21407
#endif
 
21408
}
 
21409
#endif
 
21410
$mprotect_prog
 
21411
  nocrash_init();
 
21412
  if (mprotect(page_align(fault_address),pagesize,PROT_NONE) < 0) exit(0);
 
21413
  foo = *fault_address; /* this should cause an exception or signal */
 
21414
  exit(0); }
 
21415
_ACEOF
 
21416
rm -f conftest$ac_exeext
 
21417
if { (ac_try="$ac_link"
 
21418
case "(($ac_try" in
 
21419
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21420
  *) ac_try_echo=$ac_try;;
 
21421
esac
 
21422
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21423
$as_echo "$ac_try_echo") >&5
 
21424
  (eval "$ac_link") 2>&5
 
21425
  ac_status=$?
 
21426
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21427
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
21428
  { (case "(($ac_try" in
 
21429
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21430
  *) ac_try_echo=$ac_try;;
 
21431
esac
 
21432
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21433
$as_echo "$ac_try_echo") >&5
 
21434
  (eval "$ac_try") 2>&5
 
21435
  ac_status=$?
 
21436
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21437
  (exit $ac_status); }; }; then
 
21438
  no_mprotect=1
 
21439
else
 
21440
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
21441
$as_echo "$as_me: failed program was:" >&5
 
21442
sed 's/^/| /' conftest.$ac_ext >&5
 
21443
 
 
21444
fi
 
21445
rm -rf conftest.dSYM
 
21446
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
21447
fi
 
21448
 
 
21449
 
 
21450
fi
 
21451
if test -z "$no_mprotect"; then
 
21452
if test "$cross_compiling" = yes; then
 
21453
  : # When cross-compiling, don't assume anything.
 
21454
 
 
21455
else
 
21456
  cat >conftest.$ac_ext <<_ACEOF
 
21457
/* confdefs.h.  */
 
21458
_ACEOF
 
21459
cat confdefs.h >>conftest.$ac_ext
 
21460
cat >>conftest.$ac_ext <<_ACEOF
 
21461
/* end confdefs.h.  */
 
21462
 
 
21463
#include <stdlib.h>
 
21464
#if defined __MACH__ && defined __APPLE__
 
21465
/* Avoid a crash on MacOS X.  */
 
21466
#include <mach/mach.h>
 
21467
#include <mach/mach_error.h>
 
21468
#include <mach/thread_status.h>
 
21469
#include <mach/exception.h>
 
21470
#include <mach/task.h>
 
21471
#include <pthread.h>
 
21472
/* The exception port on which our thread listens.  */
 
21473
static mach_port_t our_exception_port;
 
21474
/* The main function of the thread listening for exceptions of type
 
21475
   EXC_BAD_ACCESS.  */
 
21476
static void *
 
21477
mach_exception_thread (void *arg)
 
21478
{
 
21479
  /* Buffer for a message to be received.  */
 
21480
  struct {
 
21481
    mach_msg_header_t head;
 
21482
    mach_msg_body_t msgh_body;
 
21483
    char data[1024];
 
21484
  } msg;
 
21485
  mach_msg_return_t retval;
 
21486
  /* Wait for a message on the exception port.  */
 
21487
  retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
 
21488
                     our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
 
21489
  if (retval != MACH_MSG_SUCCESS)
 
21490
    abort ();
 
21491
  exit (1);
 
21492
}
 
21493
static void
 
21494
nocrash_init (void)
 
21495
{
 
21496
  mach_port_t self = mach_task_self ();
 
21497
  /* Allocate a port on which the thread shall listen for exceptions.  */
 
21498
  if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
 
21499
      == KERN_SUCCESS) {
 
21500
    /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html.  */
 
21501
    if (mach_port_insert_right (self, our_exception_port, our_exception_port,
 
21502
                                MACH_MSG_TYPE_MAKE_SEND)
 
21503
        == KERN_SUCCESS) {
 
21504
      /* The exceptions we want to catch.  Only EXC_BAD_ACCESS is interesting
 
21505
         for us.  */
 
21506
      exception_mask_t mask = EXC_MASK_BAD_ACCESS;
 
21507
      /* Create the thread listening on the exception port.  */
 
21508
      pthread_attr_t attr;
 
21509
      pthread_t thread;
 
21510
      if (pthread_attr_init (&attr) == 0
 
21511
          && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
 
21512
          && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
 
21513
        pthread_attr_destroy (&attr);
 
21514
        /* Replace the exception port info for these exceptions with our own.
 
21515
           Note that we replace the exception port for the entire task, not only
 
21516
           for a particular thread.  This has the effect that when our exception
 
21517
           port gets the message, the thread specific exception port has already
 
21518
           been asked, and we don't need to bother about it.
 
21519
           See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html.  */
 
21520
        task_set_exception_ports (self, mask, our_exception_port,
 
21521
                                  EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
 
21522
      }
 
21523
    }
 
21524
  }
 
21525
}
 
21526
#else
 
21527
/* Avoid a crash on POSIX systems.  */
 
21528
#include <signal.h>
 
21529
/* A POSIX signal handler.  */
 
21530
static void
 
21531
exception_handler (int sig)
 
21532
{
 
21533
  exit (1);
 
21534
}
 
21535
static void
 
21536
nocrash_init (void)
 
21537
{
 
21538
#ifdef SIGSEGV
 
21539
  signal (SIGSEGV, exception_handler);
 
21540
#endif
 
21541
#ifdef SIGBUS
 
21542
  signal (SIGBUS, exception_handler);
 
21543
#endif
 
21544
}
 
21545
#endif
 
21546
$mprotect_prog
 
21547
  nocrash_init();
 
21548
  if (mprotect(page_align(fault_address),pagesize,PROT_NONE) < 0) exit(0);
 
21549
  *fault_address = 'z'; /* this should cause an exception or signal */
 
21550
  exit(0); }
 
21551
_ACEOF
 
21552
rm -f conftest$ac_exeext
 
21553
if { (ac_try="$ac_link"
 
21554
case "(($ac_try" in
 
21555
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21556
  *) ac_try_echo=$ac_try;;
 
21557
esac
 
21558
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21559
$as_echo "$ac_try_echo") >&5
 
21560
  (eval "$ac_link") 2>&5
 
21561
  ac_status=$?
 
21562
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21563
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
21564
  { (case "(($ac_try" in
 
21565
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21566
  *) ac_try_echo=$ac_try;;
 
21567
esac
 
21568
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21569
$as_echo "$ac_try_echo") >&5
 
21570
  (eval "$ac_try") 2>&5
 
21571
  ac_status=$?
 
21572
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21573
  (exit $ac_status); }; }; then
 
21574
  no_mprotect=1
 
21575
else
 
21576
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
21577
$as_echo "$as_me: failed program was:" >&5
 
21578
sed 's/^/| /' conftest.$ac_ext >&5
 
21579
 
 
21580
fi
 
21581
rm -rf conftest.dSYM
 
21582
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
21583
fi
 
21584
 
 
21585
 
 
21586
fi
 
21587
if test -z "$no_mprotect"; then
 
21588
if test "$cross_compiling" = yes; then
 
21589
  : # When cross-compiling, don't assume anything.
 
21590
 
 
21591
else
 
21592
  cat >conftest.$ac_ext <<_ACEOF
 
21593
/* confdefs.h.  */
 
21594
_ACEOF
 
21595
cat confdefs.h >>conftest.$ac_ext
 
21596
cat >>conftest.$ac_ext <<_ACEOF
 
21597
/* end confdefs.h.  */
 
21598
 
 
21599
#include <stdlib.h>
 
21600
#if defined __MACH__ && defined __APPLE__
 
21601
/* Avoid a crash on MacOS X.  */
 
21602
#include <mach/mach.h>
 
21603
#include <mach/mach_error.h>
 
21604
#include <mach/thread_status.h>
 
21605
#include <mach/exception.h>
 
21606
#include <mach/task.h>
 
21607
#include <pthread.h>
 
21608
/* The exception port on which our thread listens.  */
 
21609
static mach_port_t our_exception_port;
 
21610
/* The main function of the thread listening for exceptions of type
 
21611
   EXC_BAD_ACCESS.  */
 
21612
static void *
 
21613
mach_exception_thread (void *arg)
 
21614
{
 
21615
  /* Buffer for a message to be received.  */
 
21616
  struct {
 
21617
    mach_msg_header_t head;
 
21618
    mach_msg_body_t msgh_body;
 
21619
    char data[1024];
 
21620
  } msg;
 
21621
  mach_msg_return_t retval;
 
21622
  /* Wait for a message on the exception port.  */
 
21623
  retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
 
21624
                     our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
 
21625
  if (retval != MACH_MSG_SUCCESS)
 
21626
    abort ();
 
21627
  exit (1);
 
21628
}
 
21629
static void
 
21630
nocrash_init (void)
 
21631
{
 
21632
  mach_port_t self = mach_task_self ();
 
21633
  /* Allocate a port on which the thread shall listen for exceptions.  */
 
21634
  if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
 
21635
      == KERN_SUCCESS) {
 
21636
    /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html.  */
 
21637
    if (mach_port_insert_right (self, our_exception_port, our_exception_port,
 
21638
                                MACH_MSG_TYPE_MAKE_SEND)
 
21639
        == KERN_SUCCESS) {
 
21640
      /* The exceptions we want to catch.  Only EXC_BAD_ACCESS is interesting
 
21641
         for us.  */
 
21642
      exception_mask_t mask = EXC_MASK_BAD_ACCESS;
 
21643
      /* Create the thread listening on the exception port.  */
 
21644
      pthread_attr_t attr;
 
21645
      pthread_t thread;
 
21646
      if (pthread_attr_init (&attr) == 0
 
21647
          && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
 
21648
          && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
 
21649
        pthread_attr_destroy (&attr);
 
21650
        /* Replace the exception port info for these exceptions with our own.
 
21651
           Note that we replace the exception port for the entire task, not only
 
21652
           for a particular thread.  This has the effect that when our exception
 
21653
           port gets the message, the thread specific exception port has already
 
21654
           been asked, and we don't need to bother about it.
 
21655
           See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html.  */
 
21656
        task_set_exception_ports (self, mask, our_exception_port,
 
21657
                                  EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
 
21658
      }
 
21659
    }
 
21660
  }
 
21661
}
 
21662
#else
 
21663
/* Avoid a crash on POSIX systems.  */
 
21664
#include <signal.h>
 
21665
/* A POSIX signal handler.  */
 
21666
static void
 
21667
exception_handler (int sig)
 
21668
{
 
21669
  exit (1);
 
21670
}
 
21671
static void
 
21672
nocrash_init (void)
 
21673
{
 
21674
#ifdef SIGSEGV
 
21675
  signal (SIGSEGV, exception_handler);
 
21676
#endif
 
21677
#ifdef SIGBUS
 
21678
  signal (SIGBUS, exception_handler);
 
21679
#endif
 
21680
}
 
21681
#endif
 
21682
$mprotect_prog
 
21683
  nocrash_init();
 
21684
  if (mprotect(page_align(fault_address),pagesize,PROT_READ) < 0) exit(0);
 
21685
  *fault_address = 'z'; /* this should cause an exception or signal */
 
21686
  exit(0); }
 
21687
_ACEOF
 
21688
rm -f conftest$ac_exeext
 
21689
if { (ac_try="$ac_link"
 
21690
case "(($ac_try" in
 
21691
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21692
  *) ac_try_echo=$ac_try;;
 
21693
esac
 
21694
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21695
$as_echo "$ac_try_echo") >&5
 
21696
  (eval "$ac_link") 2>&5
 
21697
  ac_status=$?
 
21698
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21699
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
21700
  { (case "(($ac_try" in
 
21701
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21702
  *) ac_try_echo=$ac_try;;
 
21703
esac
 
21704
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21705
$as_echo "$ac_try_echo") >&5
 
21706
  (eval "$ac_try") 2>&5
 
21707
  ac_status=$?
 
21708
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21709
  (exit $ac_status); }; }; then
 
21710
  no_mprotect=1
 
21711
else
 
21712
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
21713
$as_echo "$as_me: failed program was:" >&5
 
21714
sed 's/^/| /' conftest.$ac_ext >&5
 
21715
 
 
21716
fi
 
21717
rm -rf conftest.dSYM
 
21718
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
21719
fi
 
21720
 
 
21721
 
 
21722
fi
 
21723
if test -z "$no_mprotect"; then
 
21724
if test "$cross_compiling" = yes; then
 
21725
  : # When cross-compiling, don't assume anything.
 
21726
 
 
21727
else
 
21728
  cat >conftest.$ac_ext <<_ACEOF
 
21729
/* confdefs.h.  */
 
21730
_ACEOF
 
21731
cat confdefs.h >>conftest.$ac_ext
 
21732
cat >>conftest.$ac_ext <<_ACEOF
 
21733
/* end confdefs.h.  */
 
21734
 
 
21735
#include <stdlib.h>
 
21736
#if defined __MACH__ && defined __APPLE__
 
21737
/* Avoid a crash on MacOS X.  */
 
21738
#include <mach/mach.h>
 
21739
#include <mach/mach_error.h>
 
21740
#include <mach/thread_status.h>
 
21741
#include <mach/exception.h>
 
21742
#include <mach/task.h>
 
21743
#include <pthread.h>
 
21744
/* The exception port on which our thread listens.  */
 
21745
static mach_port_t our_exception_port;
 
21746
/* The main function of the thread listening for exceptions of type
 
21747
   EXC_BAD_ACCESS.  */
 
21748
static void *
 
21749
mach_exception_thread (void *arg)
 
21750
{
 
21751
  /* Buffer for a message to be received.  */
 
21752
  struct {
 
21753
    mach_msg_header_t head;
 
21754
    mach_msg_body_t msgh_body;
 
21755
    char data[1024];
 
21756
  } msg;
 
21757
  mach_msg_return_t retval;
 
21758
  /* Wait for a message on the exception port.  */
 
21759
  retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
 
21760
                     our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
 
21761
  if (retval != MACH_MSG_SUCCESS)
 
21762
    abort ();
 
21763
  exit (1);
 
21764
}
 
21765
static void
 
21766
nocrash_init (void)
 
21767
{
 
21768
  mach_port_t self = mach_task_self ();
 
21769
  /* Allocate a port on which the thread shall listen for exceptions.  */
 
21770
  if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
 
21771
      == KERN_SUCCESS) {
 
21772
    /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html.  */
 
21773
    if (mach_port_insert_right (self, our_exception_port, our_exception_port,
 
21774
                                MACH_MSG_TYPE_MAKE_SEND)
 
21775
        == KERN_SUCCESS) {
 
21776
      /* The exceptions we want to catch.  Only EXC_BAD_ACCESS is interesting
 
21777
         for us.  */
 
21778
      exception_mask_t mask = EXC_MASK_BAD_ACCESS;
 
21779
      /* Create the thread listening on the exception port.  */
 
21780
      pthread_attr_t attr;
 
21781
      pthread_t thread;
 
21782
      if (pthread_attr_init (&attr) == 0
 
21783
          && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
 
21784
          && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
 
21785
        pthread_attr_destroy (&attr);
 
21786
        /* Replace the exception port info for these exceptions with our own.
 
21787
           Note that we replace the exception port for the entire task, not only
 
21788
           for a particular thread.  This has the effect that when our exception
 
21789
           port gets the message, the thread specific exception port has already
 
21790
           been asked, and we don't need to bother about it.
 
21791
           See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html.  */
 
21792
        task_set_exception_ports (self, mask, our_exception_port,
 
21793
                                  EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
 
21794
      }
 
21795
    }
 
21796
  }
 
21797
}
 
21798
#else
 
21799
/* Avoid a crash on POSIX systems.  */
 
21800
#include <signal.h>
 
21801
/* A POSIX signal handler.  */
 
21802
static void
 
21803
exception_handler (int sig)
 
21804
{
 
21805
  exit (1);
 
21806
}
 
21807
static void
 
21808
nocrash_init (void)
 
21809
{
 
21810
#ifdef SIGSEGV
 
21811
  signal (SIGSEGV, exception_handler);
 
21812
#endif
 
21813
#ifdef SIGBUS
 
21814
  signal (SIGBUS, exception_handler);
 
21815
#endif
 
21816
}
 
21817
#endif
 
21818
$mprotect_prog
 
21819
  nocrash_init();
 
21820
  if (mprotect(page_align(fault_address),pagesize,PROT_READ) < 0) exit(1);
 
21821
  if (mprotect(page_align(fault_address),pagesize,PROT_READ|PROT_WRITE) < 0) exit(1);
 
21822
  *fault_address = 'z'; /* this should not cause an exception or signal */
 
21823
  exit(0); }
 
21824
_ACEOF
 
21825
rm -f conftest$ac_exeext
 
21826
if { (ac_try="$ac_link"
 
21827
case "(($ac_try" in
 
21828
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21829
  *) ac_try_echo=$ac_try;;
 
21830
esac
 
21831
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21832
$as_echo "$ac_try_echo") >&5
 
21833
  (eval "$ac_link") 2>&5
 
21834
  ac_status=$?
 
21835
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21836
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
21837
  { (case "(($ac_try" in
 
21838
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21839
  *) ac_try_echo=$ac_try;;
 
21840
esac
 
21841
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21842
$as_echo "$ac_try_echo") >&5
 
21843
  (eval "$ac_try") 2>&5
 
21844
  ac_status=$?
 
21845
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21846
  (exit $ac_status); }; }; then
 
21847
  :
 
21848
else
 
21849
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
21850
$as_echo "$as_me: failed program was:" >&5
 
21851
sed 's/^/| /' conftest.$ac_ext >&5
 
21852
 
 
21853
( exit $ac_status )
 
21854
no_mprotect=1
 
21855
fi
 
21856
rm -rf conftest.dSYM
 
21857
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
21858
fi
 
21859
 
 
21860
 
 
21861
fi
 
21862
if test -z "$no_mprotect"; then
 
21863
  cl_cv_func_mprotect_works=yes
 
21864
else
 
21865
  cl_cv_func_mprotect_works=no
 
21866
fi
 
21867
 
 
21868
fi
 
21869
{ $as_echo "$as_me:$LINENO: result: $cl_cv_func_mprotect_works" >&5
 
21870
$as_echo "$cl_cv_func_mprotect_works" >&6; }
 
21871
if test $cl_cv_func_mprotect_works = yes; then
 
21872
 
 
21873
cat >>confdefs.h <<\_ACEOF
 
21874
#define HAVE_WORKING_MPROTECT /**/
 
21875
_ACEOF
 
21876
 
 
21877
fi
 
21878
fi
 
21879
 
 
21880
 
 
21881
for ac_header in sys/shm.h
 
21882
do
 
21883
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
21884
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
21885
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
21886
$as_echo_n "checking for $ac_header... " >&6; }
 
21887
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
21888
  $as_echo_n "(cached) " >&6
 
21889
fi
 
21890
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
21891
                 $as_echo "$as_val"'`
 
21892
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
21893
$as_echo "$ac_res" >&6; }
 
21894
else
 
21895
  # Is the header compilable?
 
21896
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
21897
$as_echo_n "checking $ac_header usability... " >&6; }
 
21898
cat >conftest.$ac_ext <<_ACEOF
 
21899
/* confdefs.h.  */
 
21900
_ACEOF
 
21901
cat confdefs.h >>conftest.$ac_ext
 
21902
cat >>conftest.$ac_ext <<_ACEOF
 
21903
/* end confdefs.h.  */
 
21904
$ac_includes_default
 
21905
#include <$ac_header>
 
21906
_ACEOF
 
21907
rm -f conftest.$ac_objext
 
21908
if { (ac_try="$ac_compile"
 
21909
case "(($ac_try" in
 
21910
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21911
  *) ac_try_echo=$ac_try;;
 
21912
esac
 
21913
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21914
$as_echo "$ac_try_echo") >&5
 
21915
  (eval "$ac_compile") 2>conftest.er1
 
21916
  ac_status=$?
 
21917
  grep -v '^ *+' conftest.er1 >conftest.err
 
21918
  rm -f conftest.er1
 
21919
  cat conftest.err >&5
 
21920
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21921
  (exit $ac_status); } && {
 
21922
         test -z "$ac_c_werror_flag" ||
 
21923
         test ! -s conftest.err
 
21924
       } && test -s conftest.$ac_objext; then
 
21925
  ac_header_compiler=yes
 
21926
else
 
21927
  $as_echo "$as_me: failed program was:" >&5
 
21928
sed 's/^/| /' conftest.$ac_ext >&5
 
21929
 
 
21930
        ac_header_compiler=no
 
21931
fi
 
21932
 
 
21933
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21934
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
21935
$as_echo "$ac_header_compiler" >&6; }
 
21936
 
 
21937
# Is the header present?
 
21938
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
21939
$as_echo_n "checking $ac_header presence... " >&6; }
 
21940
cat >conftest.$ac_ext <<_ACEOF
 
21941
/* confdefs.h.  */
 
21942
_ACEOF
 
21943
cat confdefs.h >>conftest.$ac_ext
 
21944
cat >>conftest.$ac_ext <<_ACEOF
 
21945
/* end confdefs.h.  */
 
21946
#include <$ac_header>
 
21947
_ACEOF
 
21948
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
21949
case "(($ac_try" in
 
21950
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21951
  *) ac_try_echo=$ac_try;;
 
21952
esac
 
21953
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21954
$as_echo "$ac_try_echo") >&5
 
21955
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
21956
  ac_status=$?
 
21957
  grep -v '^ *+' conftest.er1 >conftest.err
 
21958
  rm -f conftest.er1
 
21959
  cat conftest.err >&5
 
21960
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21961
  (exit $ac_status); } >/dev/null && {
 
21962
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
21963
         test ! -s conftest.err
 
21964
       }; then
 
21965
  ac_header_preproc=yes
 
21966
else
 
21967
  $as_echo "$as_me: failed program was:" >&5
 
21968
sed 's/^/| /' conftest.$ac_ext >&5
 
21969
 
 
21970
  ac_header_preproc=no
 
21971
fi
 
21972
 
 
21973
rm -f conftest.err conftest.$ac_ext
 
21974
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
21975
$as_echo "$ac_header_preproc" >&6; }
 
21976
 
 
21977
# So?  What about this header?
 
21978
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
21979
  yes:no: )
 
21980
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
21981
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
21982
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
21983
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
21984
    ac_header_preproc=yes
 
21985
    ;;
 
21986
  no:yes:* )
 
21987
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
21988
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
21989
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
21990
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
21991
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
21992
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
21993
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
21994
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
21995
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
21996
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
21997
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
21998
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
21999
 
 
22000
    ;;
 
22001
esac
 
22002
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
22003
$as_echo_n "checking for $ac_header... " >&6; }
 
22004
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
22005
  $as_echo_n "(cached) " >&6
 
22006
else
 
22007
  eval "$as_ac_Header=\$ac_header_preproc"
 
22008
fi
 
22009
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
22010
                 $as_echo "$as_val"'`
 
22011
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
22012
$as_echo "$ac_res" >&6; }
 
22013
 
 
22014
fi
 
22015
as_val=`eval 'as_val=${'$as_ac_Header'}
 
22016
                 $as_echo "$as_val"'`
 
22017
   if test "x$as_val" = x""yes; then
 
22018
  cat >>confdefs.h <<_ACEOF
 
22019
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
22020
_ACEOF
 
22021
 
 
22022
fi
 
22023
 
 
22024
done
 
22025
 
 
22026
if test $ac_cv_header_sys_shm_h = yes; then
 
22027
 
 
22028
for ac_header in sys/ipc.h
 
22029
do
 
22030
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
22031
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
22032
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
22033
$as_echo_n "checking for $ac_header... " >&6; }
 
22034
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
22035
  $as_echo_n "(cached) " >&6
 
22036
fi
 
22037
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
22038
                 $as_echo "$as_val"'`
 
22039
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
22040
$as_echo "$ac_res" >&6; }
 
22041
else
 
22042
  # Is the header compilable?
 
22043
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
22044
$as_echo_n "checking $ac_header usability... " >&6; }
 
22045
cat >conftest.$ac_ext <<_ACEOF
 
22046
/* confdefs.h.  */
 
22047
_ACEOF
 
22048
cat confdefs.h >>conftest.$ac_ext
 
22049
cat >>conftest.$ac_ext <<_ACEOF
 
22050
/* end confdefs.h.  */
 
22051
$ac_includes_default
 
22052
#include <$ac_header>
 
22053
_ACEOF
 
22054
rm -f conftest.$ac_objext
 
22055
if { (ac_try="$ac_compile"
 
22056
case "(($ac_try" in
 
22057
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22058
  *) ac_try_echo=$ac_try;;
 
22059
esac
 
22060
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22061
$as_echo "$ac_try_echo") >&5
 
22062
  (eval "$ac_compile") 2>conftest.er1
 
22063
  ac_status=$?
 
22064
  grep -v '^ *+' conftest.er1 >conftest.err
 
22065
  rm -f conftest.er1
 
22066
  cat conftest.err >&5
 
22067
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22068
  (exit $ac_status); } && {
 
22069
         test -z "$ac_c_werror_flag" ||
 
22070
         test ! -s conftest.err
 
22071
       } && test -s conftest.$ac_objext; then
 
22072
  ac_header_compiler=yes
 
22073
else
 
22074
  $as_echo "$as_me: failed program was:" >&5
 
22075
sed 's/^/| /' conftest.$ac_ext >&5
 
22076
 
 
22077
        ac_header_compiler=no
 
22078
fi
 
22079
 
 
22080
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22081
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
22082
$as_echo "$ac_header_compiler" >&6; }
 
22083
 
 
22084
# Is the header present?
 
22085
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
22086
$as_echo_n "checking $ac_header presence... " >&6; }
 
22087
cat >conftest.$ac_ext <<_ACEOF
 
22088
/* confdefs.h.  */
 
22089
_ACEOF
 
22090
cat confdefs.h >>conftest.$ac_ext
 
22091
cat >>conftest.$ac_ext <<_ACEOF
 
22092
/* end confdefs.h.  */
 
22093
#include <$ac_header>
 
22094
_ACEOF
 
22095
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
22096
case "(($ac_try" in
 
22097
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22098
  *) ac_try_echo=$ac_try;;
 
22099
esac
 
22100
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22101
$as_echo "$ac_try_echo") >&5
 
22102
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
22103
  ac_status=$?
 
22104
  grep -v '^ *+' conftest.er1 >conftest.err
 
22105
  rm -f conftest.er1
 
22106
  cat conftest.err >&5
 
22107
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22108
  (exit $ac_status); } >/dev/null && {
 
22109
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
22110
         test ! -s conftest.err
 
22111
       }; then
 
22112
  ac_header_preproc=yes
 
22113
else
 
22114
  $as_echo "$as_me: failed program was:" >&5
 
22115
sed 's/^/| /' conftest.$ac_ext >&5
 
22116
 
 
22117
  ac_header_preproc=no
 
22118
fi
 
22119
 
 
22120
rm -f conftest.err conftest.$ac_ext
 
22121
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
22122
$as_echo "$ac_header_preproc" >&6; }
 
22123
 
 
22124
# So?  What about this header?
 
22125
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
22126
  yes:no: )
 
22127
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
22128
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
22129
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
22130
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
22131
    ac_header_preproc=yes
 
22132
    ;;
 
22133
  no:yes:* )
 
22134
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
22135
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
22136
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
22137
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
22138
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
22139
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
22140
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
22141
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
22142
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
22143
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
22144
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
22145
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
22146
 
 
22147
    ;;
 
22148
esac
 
22149
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
22150
$as_echo_n "checking for $ac_header... " >&6; }
 
22151
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
22152
  $as_echo_n "(cached) " >&6
 
22153
else
 
22154
  eval "$as_ac_Header=\$ac_header_preproc"
 
22155
fi
 
22156
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
22157
                 $as_echo "$as_val"'`
 
22158
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
22159
$as_echo "$ac_res" >&6; }
 
22160
 
 
22161
fi
 
22162
as_val=`eval 'as_val=${'$as_ac_Header'}
 
22163
                 $as_echo "$as_val"'`
 
22164
   if test "x$as_val" = x""yes; then
 
22165
  cat >>confdefs.h <<_ACEOF
 
22166
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
22167
_ACEOF
 
22168
 
 
22169
fi
 
22170
 
 
22171
done
 
22172
 
 
22173
fi
 
22174
 
 
22175
if test "$ac_cv_header_sys_shm_h" = yes -a "$ac_cv_header_sys_ipc_h" = yes; then
 
22176
# This test is from Marcus Daniels
 
22177
{ $as_echo "$as_me:$LINENO: checking for working shared memory" >&5
 
22178
$as_echo_n "checking for working shared memory... " >&6; }
 
22179
if test "${cl_cv_sys_shm_works+set}" = set; then
 
22180
  $as_echo_n "(cached) " >&6
 
22181
else
 
22182
 
 
22183
if test "$cross_compiling" = yes; then
 
22184
  cl_cv_sys_shm_works="guessing no"
 
22185
else
 
22186
  cat >conftest.$ac_ext <<_ACEOF
 
22187
/* confdefs.h.  */
 
22188
_ACEOF
 
22189
cat confdefs.h >>conftest.$ac_ext
 
22190
cat >>conftest.$ac_ext <<_ACEOF
 
22191
/* end confdefs.h.  */
 
22192
#include <sys/types.h>
 
22193
#include <sys/ipc.h>
 
22194
#include <sys/shm.h>
 
22195
/* try attaching a single segment to multiple addresses */
 
22196
#define segsize 0x10000
 
22197
#define attaches 128
 
22198
#define base_addr 0x01000000
 
22199
int main ()
 
22200
{ int shmid, i; char* addr; char* result;
 
22201
  if ((shmid = shmget(IPC_PRIVATE,segsize,0400)) < 0) exit(1);
 
22202
  for (i=0, addr = (char*)0x01000000; i<attaches; i++, addr += segsize)
 
22203
    if ((result = (char*)shmat(shmid,addr,SHM_RDONLY)) == (char*)(-1)) break;
 
22204
  for (i=0, addr = (char*)0x01000000; i<attaches; i++, addr += segsize)
 
22205
    shmdt(addr);
 
22206
  shmctl(shmid,IPC_RMID,0);
 
22207
  exit(result == (char*)(-1));
 
22208
}
 
22209
_ACEOF
 
22210
rm -f conftest$ac_exeext
 
22211
if { (ac_try="$ac_link"
 
22212
case "(($ac_try" in
 
22213
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22214
  *) ac_try_echo=$ac_try;;
 
22215
esac
 
22216
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22217
$as_echo "$ac_try_echo") >&5
 
22218
  (eval "$ac_link") 2>&5
 
22219
  ac_status=$?
 
22220
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22221
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
22222
  { (case "(($ac_try" in
 
22223
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22224
  *) ac_try_echo=$ac_try;;
 
22225
esac
 
22226
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22227
$as_echo "$ac_try_echo") >&5
 
22228
  (eval "$ac_try") 2>&5
 
22229
  ac_status=$?
 
22230
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22231
  (exit $ac_status); }; }; then
 
22232
  cl_cv_sys_shm_works=yes
 
22233
else
 
22234
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
22235
$as_echo "$as_me: failed program was:" >&5
 
22236
sed 's/^/| /' conftest.$ac_ext >&5
 
22237
 
 
22238
( exit $ac_status )
 
22239
cl_cv_sys_shm_works=no
 
22240
fi
 
22241
rm -rf conftest.dSYM
 
22242
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
22243
fi
 
22244
 
 
22245
 
 
22246
 
 
22247
fi
 
22248
{ $as_echo "$as_me:$LINENO: result: $cl_cv_sys_shm_works" >&5
 
22249
$as_echo "$cl_cv_sys_shm_works" >&6; }
 
22250
fi
 
22251
case "$cl_cv_sys_shm_works" in
 
22252
  *yes) have_shm=1
 
22253
 
 
22254
cat >>confdefs.h <<\_ACEOF
 
22255
#define HAVE_SHM /**/
 
22256
_ACEOF
 
22257
 
 
22258
 
 
22259
for ac_header in sys/sysmacros.h
 
22260
do
 
22261
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
22262
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
22263
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
22264
$as_echo_n "checking for $ac_header... " >&6; }
 
22265
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
22266
  $as_echo_n "(cached) " >&6
 
22267
fi
 
22268
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
22269
                 $as_echo "$as_val"'`
 
22270
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
22271
$as_echo "$ac_res" >&6; }
 
22272
else
 
22273
  # Is the header compilable?
 
22274
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
22275
$as_echo_n "checking $ac_header usability... " >&6; }
 
22276
cat >conftest.$ac_ext <<_ACEOF
 
22277
/* confdefs.h.  */
 
22278
_ACEOF
 
22279
cat confdefs.h >>conftest.$ac_ext
 
22280
cat >>conftest.$ac_ext <<_ACEOF
 
22281
/* end confdefs.h.  */
 
22282
$ac_includes_default
 
22283
#include <$ac_header>
 
22284
_ACEOF
 
22285
rm -f conftest.$ac_objext
 
22286
if { (ac_try="$ac_compile"
 
22287
case "(($ac_try" in
 
22288
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22289
  *) ac_try_echo=$ac_try;;
 
22290
esac
 
22291
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22292
$as_echo "$ac_try_echo") >&5
 
22293
  (eval "$ac_compile") 2>conftest.er1
 
22294
  ac_status=$?
 
22295
  grep -v '^ *+' conftest.er1 >conftest.err
 
22296
  rm -f conftest.er1
 
22297
  cat conftest.err >&5
 
22298
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22299
  (exit $ac_status); } && {
 
22300
         test -z "$ac_c_werror_flag" ||
 
22301
         test ! -s conftest.err
 
22302
       } && test -s conftest.$ac_objext; then
 
22303
  ac_header_compiler=yes
 
22304
else
 
22305
  $as_echo "$as_me: failed program was:" >&5
 
22306
sed 's/^/| /' conftest.$ac_ext >&5
 
22307
 
 
22308
        ac_header_compiler=no
 
22309
fi
 
22310
 
 
22311
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22312
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
22313
$as_echo "$ac_header_compiler" >&6; }
 
22314
 
 
22315
# Is the header present?
 
22316
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
22317
$as_echo_n "checking $ac_header presence... " >&6; }
 
22318
cat >conftest.$ac_ext <<_ACEOF
 
22319
/* confdefs.h.  */
 
22320
_ACEOF
 
22321
cat confdefs.h >>conftest.$ac_ext
 
22322
cat >>conftest.$ac_ext <<_ACEOF
 
22323
/* end confdefs.h.  */
 
22324
#include <$ac_header>
 
22325
_ACEOF
 
22326
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
22327
case "(($ac_try" in
 
22328
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22329
  *) ac_try_echo=$ac_try;;
 
22330
esac
 
22331
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22332
$as_echo "$ac_try_echo") >&5
 
22333
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
22334
  ac_status=$?
 
22335
  grep -v '^ *+' conftest.er1 >conftest.err
 
22336
  rm -f conftest.er1
 
22337
  cat conftest.err >&5
 
22338
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22339
  (exit $ac_status); } >/dev/null && {
 
22340
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
22341
         test ! -s conftest.err
 
22342
       }; then
 
22343
  ac_header_preproc=yes
 
22344
else
 
22345
  $as_echo "$as_me: failed program was:" >&5
 
22346
sed 's/^/| /' conftest.$ac_ext >&5
 
22347
 
 
22348
  ac_header_preproc=no
 
22349
fi
 
22350
 
 
22351
rm -f conftest.err conftest.$ac_ext
 
22352
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
22353
$as_echo "$ac_header_preproc" >&6; }
 
22354
 
 
22355
# So?  What about this header?
 
22356
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
22357
  yes:no: )
 
22358
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
22359
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
22360
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
22361
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
22362
    ac_header_preproc=yes
 
22363
    ;;
 
22364
  no:yes:* )
 
22365
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
22366
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
22367
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
22368
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
22369
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
22370
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
22371
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
22372
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
22373
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
22374
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
22375
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
22376
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
22377
 
 
22378
    ;;
 
22379
esac
 
22380
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
22381
$as_echo_n "checking for $ac_header... " >&6; }
 
22382
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
22383
  $as_echo_n "(cached) " >&6
 
22384
else
 
22385
  eval "$as_ac_Header=\$ac_header_preproc"
 
22386
fi
 
22387
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
22388
                 $as_echo "$as_val"'`
 
22389
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
22390
$as_echo "$ac_res" >&6; }
 
22391
 
 
22392
fi
 
22393
as_val=`eval 'as_val=${'$as_ac_Header'}
 
22394
                 $as_echo "$as_val"'`
 
22395
   if test "x$as_val" = x""yes; then
 
22396
  cat >>confdefs.h <<_ACEOF
 
22397
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
22398
_ACEOF
 
22399
 
 
22400
fi
 
22401
 
 
22402
done
 
22403
 
 
22404
        ;;
 
22405
  *) ;;
 
22406
esac
 
22407
 
 
22408
{ $as_echo "$as_me:$LINENO: checking whether code in malloc()ed memory is executable" >&5
 
22409
$as_echo_n "checking whether code in malloc()ed memory is executable... " >&6; }
 
22410
if test "${ffcall_cv_codeexec+set}" = set; then
 
22411
  $as_echo_n "(cached) " >&6
 
22412
else
 
22413
  case "$host_os" in
 
22414
  hpux*) ffcall_cv_codeexec="guessing yes" ;;
 
22415
  *)
 
22416
case "$host_cpu_abi"-"$host_os" in
 
22417
  # On host=rs6000-*-aix3.2.5 malloc'ed memory is indeed not executable.
 
22418
  powerpc-aix*) ffcall_cv_codeexec="guessing no" ;;
 
22419
  *)
 
22420
if test "$cross_compiling" = yes; then
 
22421
  ffcall_cv_codeexec="guessing yes"
 
22422
else
 
22423
  cat >conftest.$ac_ext <<_ACEOF
 
22424
/* confdefs.h.  */
 
22425
_ACEOF
 
22426
cat confdefs.h >>conftest.$ac_ext
 
22427
cat >>conftest.$ac_ext <<_ACEOF
 
22428
/* end confdefs.h.  */
 
22429
 
 
22430
#include <stdlib.h>
 
22431
#if defined __MACH__ && defined __APPLE__
 
22432
/* Avoid a crash on MacOS X.  */
 
22433
#include <mach/mach.h>
 
22434
#include <mach/mach_error.h>
 
22435
#include <mach/thread_status.h>
 
22436
#include <mach/exception.h>
 
22437
#include <mach/task.h>
 
22438
#include <pthread.h>
 
22439
/* The exception port on which our thread listens.  */
 
22440
static mach_port_t our_exception_port;
 
22441
/* The main function of the thread listening for exceptions of type
 
22442
   EXC_BAD_ACCESS.  */
 
22443
static void *
 
22444
mach_exception_thread (void *arg)
 
22445
{
 
22446
  /* Buffer for a message to be received.  */
 
22447
  struct {
 
22448
    mach_msg_header_t head;
 
22449
    mach_msg_body_t msgh_body;
 
22450
    char data[1024];
 
22451
  } msg;
 
22452
  mach_msg_return_t retval;
 
22453
  /* Wait for a message on the exception port.  */
 
22454
  retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
 
22455
                     our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
 
22456
  if (retval != MACH_MSG_SUCCESS)
 
22457
    abort ();
 
22458
  exit (1);
 
22459
}
 
22460
static void
 
22461
nocrash_init (void)
 
22462
{
 
22463
  mach_port_t self = mach_task_self ();
 
22464
  /* Allocate a port on which the thread shall listen for exceptions.  */
 
22465
  if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
 
22466
      == KERN_SUCCESS) {
 
22467
    /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html.  */
 
22468
    if (mach_port_insert_right (self, our_exception_port, our_exception_port,
 
22469
                                MACH_MSG_TYPE_MAKE_SEND)
 
22470
        == KERN_SUCCESS) {
 
22471
      /* The exceptions we want to catch.  Only EXC_BAD_ACCESS is interesting
 
22472
         for us.  */
 
22473
      exception_mask_t mask = EXC_MASK_BAD_ACCESS;
 
22474
      /* Create the thread listening on the exception port.  */
 
22475
      pthread_attr_t attr;
 
22476
      pthread_t thread;
 
22477
      if (pthread_attr_init (&attr) == 0
 
22478
          && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
 
22479
          && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
 
22480
        pthread_attr_destroy (&attr);
 
22481
        /* Replace the exception port info for these exceptions with our own.
 
22482
           Note that we replace the exception port for the entire task, not only
 
22483
           for a particular thread.  This has the effect that when our exception
 
22484
           port gets the message, the thread specific exception port has already
 
22485
           been asked, and we don't need to bother about it.
 
22486
           See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html.  */
 
22487
        task_set_exception_ports (self, mask, our_exception_port,
 
22488
                                  EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
 
22489
      }
 
22490
    }
 
22491
  }
 
22492
}
 
22493
#else
 
22494
/* Avoid a crash on POSIX systems.  */
 
22495
#include <signal.h>
 
22496
/* A POSIX signal handler.  */
 
22497
static void
 
22498
exception_handler (int sig)
 
22499
{
 
22500
  exit (1);
 
22501
}
 
22502
static void
 
22503
nocrash_init (void)
 
22504
{
 
22505
#ifdef SIGSEGV
 
22506
  signal (SIGSEGV, exception_handler);
 
22507
#endif
 
22508
#ifdef SIGBUS
 
22509
  signal (SIGBUS, exception_handler);
 
22510
#endif
 
22511
}
 
22512
#endif
 
22513
 
 
22514
#include <sys/types.h>
 
22515
/* declare malloc() */
 
22516
#include <stdlib.h>
 
22517
int fun () { return 31415926; }
 
22518
int main ()
 
22519
{ nocrash_init();
 
22520
 {long size = (char*)&main - (char*)&fun;
 
22521
  char* funcopy = (char*) malloc(size);
 
22522
  int i;
 
22523
  for (i = 0; i < size; i++) { funcopy[i] = ((char*)&fun)[i]; }
 
22524
  return !((*(int(*)())funcopy)() == 31415926);
 
22525
}}
 
22526
_ACEOF
 
22527
rm -f conftest$ac_exeext
 
22528
if { (ac_try="$ac_link"
 
22529
case "(($ac_try" in
 
22530
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22531
  *) ac_try_echo=$ac_try;;
 
22532
esac
 
22533
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22534
$as_echo "$ac_try_echo") >&5
 
22535
  (eval "$ac_link") 2>&5
 
22536
  ac_status=$?
 
22537
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22538
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
22539
  { (case "(($ac_try" in
 
22540
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22541
  *) ac_try_echo=$ac_try;;
 
22542
esac
 
22543
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22544
$as_echo "$ac_try_echo") >&5
 
22545
  (eval "$ac_try") 2>&5
 
22546
  ac_status=$?
 
22547
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22548
  (exit $ac_status); }; }; then
 
22549
  ffcall_cv_codeexec=yes
 
22550
else
 
22551
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
22552
$as_echo "$as_me: failed program was:" >&5
 
22553
sed 's/^/| /' conftest.$ac_ext >&5
 
22554
 
 
22555
( exit $ac_status )
 
22556
ffcall_cv_codeexec=no
 
22557
fi
 
22558
rm -rf conftest.dSYM
 
22559
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
22560
fi
 
22561
 
 
22562
 
 
22563
  ;;
 
22564
esac
 
22565
  ;;
 
22566
esac
 
22567
 
 
22568
fi
 
22569
{ $as_echo "$as_me:$LINENO: result: $ffcall_cv_codeexec" >&5
 
22570
$as_echo "$ffcall_cv_codeexec" >&6; }
 
22571
case "$ffcall_cv_codeexec" in
 
22572
  *yes)
 
22573
cat >>confdefs.h <<\_ACEOF
 
22574
#define CODE_EXECUTABLE /**/
 
22575
_ACEOF
 
22576
 ;;
 
22577
  *no)  ;;
 
22578
esac
 
22579
 
 
22580
 
 
22581
CPU_OBJECTS=''
 
22582
if test ${host_cpu_abi} = hppa -o ${host_cpu_abi} = powerpc64 -o ${host_cpu_abi} = ia64; then
 
22583
  CPU_OBJECTS="$CPU_OBJECTS "'tramp-$(CPU).lo'
 
22584
fi
 
22585
if test ${host_cpu_abi} = powerpc; then
 
22586
  case "${host_os}" in
 
22587
    aix*) CPU_OBJECTS="$CPU_OBJECTS "'tramp-$(CPU).lo' ;;
 
22588
    *) ;;
 
22589
  esac
 
22590
fi
 
22591
if test ${host_cpu_abi} = sparc -o ${host_cpu_abi} = sparc64 -o ${host_cpu_abi} = alpha -o ${host_cpu_abi} = hppa -o ${host_cpu_abi} = convex -o ${host_cpu_abi} = arm -o ${host_cpu_abi} = armel; then
 
22592
  CPU_OBJECTS="$CPU_OBJECTS "'cache-$(CPU).lo'
 
22593
fi
 
22594
if test ${host_cpu_abi} = powerpc; then
 
22595
  case "${host_os}" in
 
22596
    aix*) ;;
 
22597
    *) CPU_OBJECTS="$CPU_OBJECTS "'cache-$(CPU).lo' ;;
 
22598
  esac
 
22599
fi
 
22600
 
 
22601
if test ${host_cpu_abi} = mips -o ${host_cpu_abi} = mipsn32 -o ${host_cpu_abi} = mips64; then
 
22602
 
 
22603
for ac_header in sys/cachectl.h
 
22604
do
 
22605
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
22606
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
22607
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
22608
$as_echo_n "checking for $ac_header... " >&6; }
 
22609
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
22610
  $as_echo_n "(cached) " >&6
 
22611
fi
 
22612
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
22613
                 $as_echo "$as_val"'`
 
22614
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
22615
$as_echo "$ac_res" >&6; }
 
22616
else
 
22617
  # Is the header compilable?
 
22618
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
22619
$as_echo_n "checking $ac_header usability... " >&6; }
 
22620
cat >conftest.$ac_ext <<_ACEOF
 
22621
/* confdefs.h.  */
 
22622
_ACEOF
 
22623
cat confdefs.h >>conftest.$ac_ext
 
22624
cat >>conftest.$ac_ext <<_ACEOF
 
22625
/* end confdefs.h.  */
 
22626
$ac_includes_default
 
22627
#include <$ac_header>
 
22628
_ACEOF
 
22629
rm -f conftest.$ac_objext
 
22630
if { (ac_try="$ac_compile"
 
22631
case "(($ac_try" in
 
22632
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22633
  *) ac_try_echo=$ac_try;;
 
22634
esac
 
22635
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22636
$as_echo "$ac_try_echo") >&5
 
22637
  (eval "$ac_compile") 2>conftest.er1
 
22638
  ac_status=$?
 
22639
  grep -v '^ *+' conftest.er1 >conftest.err
 
22640
  rm -f conftest.er1
 
22641
  cat conftest.err >&5
 
22642
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22643
  (exit $ac_status); } && {
 
22644
         test -z "$ac_c_werror_flag" ||
 
22645
         test ! -s conftest.err
 
22646
       } && test -s conftest.$ac_objext; then
 
22647
  ac_header_compiler=yes
 
22648
else
 
22649
  $as_echo "$as_me: failed program was:" >&5
 
22650
sed 's/^/| /' conftest.$ac_ext >&5
 
22651
 
 
22652
        ac_header_compiler=no
 
22653
fi
 
22654
 
 
22655
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22656
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
22657
$as_echo "$ac_header_compiler" >&6; }
 
22658
 
 
22659
# Is the header present?
 
22660
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
22661
$as_echo_n "checking $ac_header presence... " >&6; }
 
22662
cat >conftest.$ac_ext <<_ACEOF
 
22663
/* confdefs.h.  */
 
22664
_ACEOF
 
22665
cat confdefs.h >>conftest.$ac_ext
 
22666
cat >>conftest.$ac_ext <<_ACEOF
 
22667
/* end confdefs.h.  */
 
22668
#include <$ac_header>
 
22669
_ACEOF
 
22670
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
22671
case "(($ac_try" in
 
22672
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22673
  *) ac_try_echo=$ac_try;;
 
22674
esac
 
22675
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22676
$as_echo "$ac_try_echo") >&5
 
22677
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
22678
  ac_status=$?
 
22679
  grep -v '^ *+' conftest.er1 >conftest.err
 
22680
  rm -f conftest.er1
 
22681
  cat conftest.err >&5
 
22682
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22683
  (exit $ac_status); } >/dev/null && {
 
22684
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
22685
         test ! -s conftest.err
 
22686
       }; then
 
22687
  ac_header_preproc=yes
 
22688
else
 
22689
  $as_echo "$as_me: failed program was:" >&5
 
22690
sed 's/^/| /' conftest.$ac_ext >&5
 
22691
 
 
22692
  ac_header_preproc=no
 
22693
fi
 
22694
 
 
22695
rm -f conftest.err conftest.$ac_ext
 
22696
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
22697
$as_echo "$ac_header_preproc" >&6; }
 
22698
 
 
22699
# So?  What about this header?
 
22700
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
22701
  yes:no: )
 
22702
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
22703
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
22704
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
22705
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
22706
    ac_header_preproc=yes
 
22707
    ;;
 
22708
  no:yes:* )
 
22709
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
22710
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
22711
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
22712
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
22713
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
22714
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
22715
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
22716
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
22717
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
22718
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
22719
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
22720
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
22721
 
 
22722
    ;;
 
22723
esac
 
22724
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
22725
$as_echo_n "checking for $ac_header... " >&6; }
 
22726
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
22727
  $as_echo_n "(cached) " >&6
 
22728
else
 
22729
  eval "$as_ac_Header=\$ac_header_preproc"
 
22730
fi
 
22731
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
22732
                 $as_echo "$as_val"'`
 
22733
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
22734
$as_echo "$ac_res" >&6; }
 
22735
 
 
22736
fi
 
22737
as_val=`eval 'as_val=${'$as_ac_Header'}
 
22738
                 $as_echo "$as_val"'`
 
22739
   if test "x$as_val" = x""yes; then
 
22740
  cat >>confdefs.h <<_ACEOF
 
22741
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
22742
_ACEOF
 
22743
 
 
22744
fi
 
22745
 
 
22746
done
 
22747
 
 
22748
fi
 
22749
if test ${host_cpu_abi} = m88k; then
 
22750
 
 
22751
for ac_header in sys/m88kbcs.h
 
22752
do
 
22753
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
22754
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
22755
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
22756
$as_echo_n "checking for $ac_header... " >&6; }
 
22757
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
22758
  $as_echo_n "(cached) " >&6
 
22759
fi
 
22760
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
22761
                 $as_echo "$as_val"'`
 
22762
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
22763
$as_echo "$ac_res" >&6; }
 
22764
else
 
22765
  # Is the header compilable?
 
22766
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
22767
$as_echo_n "checking $ac_header usability... " >&6; }
 
22768
cat >conftest.$ac_ext <<_ACEOF
 
22769
/* confdefs.h.  */
 
22770
_ACEOF
 
22771
cat confdefs.h >>conftest.$ac_ext
 
22772
cat >>conftest.$ac_ext <<_ACEOF
 
22773
/* end confdefs.h.  */
 
22774
$ac_includes_default
 
22775
#include <$ac_header>
 
22776
_ACEOF
 
22777
rm -f conftest.$ac_objext
 
22778
if { (ac_try="$ac_compile"
 
22779
case "(($ac_try" in
 
22780
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22781
  *) ac_try_echo=$ac_try;;
 
22782
esac
 
22783
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22784
$as_echo "$ac_try_echo") >&5
 
22785
  (eval "$ac_compile") 2>conftest.er1
 
22786
  ac_status=$?
 
22787
  grep -v '^ *+' conftest.er1 >conftest.err
 
22788
  rm -f conftest.er1
 
22789
  cat conftest.err >&5
 
22790
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22791
  (exit $ac_status); } && {
 
22792
         test -z "$ac_c_werror_flag" ||
 
22793
         test ! -s conftest.err
 
22794
       } && test -s conftest.$ac_objext; then
 
22795
  ac_header_compiler=yes
 
22796
else
 
22797
  $as_echo "$as_me: failed program was:" >&5
 
22798
sed 's/^/| /' conftest.$ac_ext >&5
 
22799
 
 
22800
        ac_header_compiler=no
 
22801
fi
 
22802
 
 
22803
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22804
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
22805
$as_echo "$ac_header_compiler" >&6; }
 
22806
 
 
22807
# Is the header present?
 
22808
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
22809
$as_echo_n "checking $ac_header presence... " >&6; }
 
22810
cat >conftest.$ac_ext <<_ACEOF
 
22811
/* confdefs.h.  */
 
22812
_ACEOF
 
22813
cat confdefs.h >>conftest.$ac_ext
 
22814
cat >>conftest.$ac_ext <<_ACEOF
 
22815
/* end confdefs.h.  */
 
22816
#include <$ac_header>
 
22817
_ACEOF
 
22818
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
22819
case "(($ac_try" in
 
22820
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22821
  *) ac_try_echo=$ac_try;;
 
22822
esac
 
22823
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22824
$as_echo "$ac_try_echo") >&5
 
22825
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
22826
  ac_status=$?
 
22827
  grep -v '^ *+' conftest.er1 >conftest.err
 
22828
  rm -f conftest.er1
 
22829
  cat conftest.err >&5
 
22830
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22831
  (exit $ac_status); } >/dev/null && {
 
22832
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
22833
         test ! -s conftest.err
 
22834
       }; then
 
22835
  ac_header_preproc=yes
 
22836
else
 
22837
  $as_echo "$as_me: failed program was:" >&5
 
22838
sed 's/^/| /' conftest.$ac_ext >&5
 
22839
 
 
22840
  ac_header_preproc=no
 
22841
fi
 
22842
 
 
22843
rm -f conftest.err conftest.$ac_ext
 
22844
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
22845
$as_echo "$ac_header_preproc" >&6; }
 
22846
 
 
22847
# So?  What about this header?
 
22848
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
22849
  yes:no: )
 
22850
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
22851
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
22852
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
22853
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
22854
    ac_header_preproc=yes
 
22855
    ;;
 
22856
  no:yes:* )
 
22857
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
22858
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
22859
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
22860
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
22861
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
22862
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
22863
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
22864
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
22865
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
22866
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
22867
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
22868
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
22869
 
 
22870
    ;;
 
22871
esac
 
22872
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
22873
$as_echo_n "checking for $ac_header... " >&6; }
 
22874
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
22875
  $as_echo_n "(cached) " >&6
 
22876
else
 
22877
  eval "$as_ac_Header=\$ac_header_preproc"
 
22878
fi
 
22879
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
22880
                 $as_echo "$as_val"'`
 
22881
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
22882
$as_echo "$ac_res" >&6; }
 
22883
 
 
22884
fi
 
22885
as_val=`eval 'as_val=${'$as_ac_Header'}
 
22886
                 $as_echo "$as_val"'`
 
22887
   if test "x$as_val" = x""yes; then
 
22888
  cat >>confdefs.h <<_ACEOF
 
22889
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
22890
_ACEOF
 
22891
 
 
22892
fi
 
22893
 
 
22894
done
 
22895
 
 
22896
fi
 
22897
cat >confcache <<\_ACEOF
 
22898
# This file is a shell script that caches the results of configure
 
22899
# tests run on this system so they can be shared between configure
 
22900
# scripts and configure runs, see configure's option --config-cache.
 
22901
# It is not useful on other systems.  If it contains results you don't
 
22902
# want to keep, you may remove or edit it.
 
22903
#
 
22904
# config.status only pays attention to the cache file if you give it
 
22905
# the --recheck option to rerun configure.
 
22906
#
 
22907
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
22908
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
22909
# following values.
 
22910
 
 
22911
_ACEOF
 
22912
 
 
22913
# The following way of writing the cache mishandles newlines in values,
 
22914
# but we know of no workaround that is simple, portable, and efficient.
 
22915
# So, we kill variables containing newlines.
 
22916
# Ultrix sh set writes to stderr and can't be redirected directly,
 
22917
# and sets the high bit in the cache file unless we assign to the vars.
 
22918
(
 
22919
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
22920
    eval ac_val=\$$ac_var
 
22921
    case $ac_val in #(
 
22922
    *${as_nl}*)
 
22923
      case $ac_var in #(
 
22924
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
 
22925
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
22926
      esac
 
22927
      case $ac_var in #(
 
22928
      _ | IFS | as_nl) ;; #(
 
22929
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
22930
      *) $as_unset $ac_var ;;
 
22931
      esac ;;
 
22932
    esac
 
22933
  done
 
22934
 
 
22935
  (set) 2>&1 |
 
22936
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
22937
    *${as_nl}ac_space=\ *)
 
22938
      # `set' does not quote correctly, so add quotes (double-quote
 
22939
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
22940
      sed -n \
 
22941
        "s/'/'\\\\''/g;
 
22942
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
22943
      ;; #(
 
22944
    *)
 
22945
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
22946
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
22947
      ;;
 
22948
    esac |
 
22949
    sort
 
22950
) |
 
22951
  sed '
 
22952
     /^ac_cv_env_/b end
 
22953
     t clear
 
22954
     :clear
 
22955
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
22956
     t end
 
22957
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
22958
     :end' >>confcache
 
22959
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
22960
  if test -w "$cache_file"; then
 
22961
    test "x$cache_file" != "x/dev/null" &&
 
22962
      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
 
22963
$as_echo "$as_me: updating cache $cache_file" >&6;}
 
22964
    cat confcache >$cache_file
 
22965
  else
 
22966
    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
 
22967
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
22968
  fi
 
22969
fi
 
22970
rm -f confcache
 
22971
 
 
22972
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
22973
# Let make expand exec_prefix.
 
22974
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
22975
 
 
22976
DEFS=-DHAVE_CONFIG_H
 
22977
 
 
22978
ac_libobjs=
 
22979
ac_ltlibobjs=
 
22980
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
22981
  # 1. Remove the extension, and $U if already installed.
 
22982
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
22983
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
 
22984
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
22985
  #    will be set to the directory where LIBOBJS objects are built.
 
22986
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
22987
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
 
22988
done
 
22989
LIBOBJS=$ac_libobjs
 
22990
 
 
22991
LTLIBOBJS=$ac_ltlibobjs
 
22992
 
 
22993
 
 
22994
 
 
22995
: ${CONFIG_STATUS=./config.status}
 
22996
ac_write_fail=0
 
22997
ac_clean_files_save=$ac_clean_files
 
22998
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
22999
{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
23000
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
23001
cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
23002
#! $SHELL
 
23003
# Generated by $as_me.
 
23004
# Run this file to recreate the current configuration.
 
23005
# Compiler output produced by configure, useful for debugging
 
23006
# configure, is in config.log if it exists.
 
23007
 
 
23008
debug=false
 
23009
ac_cs_recheck=false
 
23010
ac_cs_silent=false
 
23011
SHELL=\${CONFIG_SHELL-$SHELL}
 
23012
_ACEOF
 
23013
 
 
23014
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
23015
## --------------------- ##
 
23016
## M4sh Initialization.  ##
 
23017
## --------------------- ##
 
23018
 
 
23019
# Be more Bourne compatible
 
23020
DUALCASE=1; export DUALCASE # for MKS sh
 
23021
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
23022
  emulate sh
 
23023
  NULLCMD=:
 
23024
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
23025
  # is contrary to our usage.  Disable this feature.
 
23026
  alias -g '${1+"$@"}'='"$@"'
 
23027
  setopt NO_GLOB_SUBST
 
23028
else
 
23029
  case `(set -o) 2>/dev/null` in
 
23030
  *posix*) set -o posix ;;
 
23031
esac
 
23032
 
 
23033
fi
 
23034
 
 
23035
 
 
23036
 
 
23037
 
 
23038
# PATH needs CR
 
23039
# Avoid depending upon Character Ranges.
 
23040
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
23041
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
23042
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
23043
as_cr_digits='0123456789'
 
23044
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
23045
 
 
23046
as_nl='
 
23047
'
 
23048
export as_nl
 
23049
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
23050
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
23051
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
23052
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
23053
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
23054
  as_echo='printf %s\n'
 
23055
  as_echo_n='printf %s'
 
23056
else
 
23057
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
23058
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
23059
    as_echo_n='/usr/ucb/echo -n'
 
23060
  else
 
23061
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
23062
    as_echo_n_body='eval
 
23063
      arg=$1;
 
23064
      case $arg in
 
23065
      *"$as_nl"*)
 
23066
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
23067
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
23068
      esac;
 
23069
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
23070
    '
 
23071
    export as_echo_n_body
 
23072
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
23073
  fi
 
23074
  export as_echo_body
 
23075
  as_echo='sh -c $as_echo_body as_echo'
 
23076
fi
 
23077
 
 
23078
# The user is always right.
 
23079
if test "${PATH_SEPARATOR+set}" != set; then
 
23080
  PATH_SEPARATOR=:
 
23081
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
23082
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
23083
      PATH_SEPARATOR=';'
 
23084
  }
 
23085
fi
 
23086
 
 
23087
# Support unset when possible.
 
23088
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
23089
  as_unset=unset
 
23090
else
 
23091
  as_unset=false
 
23092
fi
 
23093
 
 
23094
 
 
23095
# IFS
 
23096
# We need space, tab and new line, in precisely that order.  Quoting is
 
23097
# there to prevent editors from complaining about space-tab.
 
23098
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
23099
# splitting by setting IFS to empty value.)
 
23100
IFS=" ""        $as_nl"
 
23101
 
 
23102
# Find who we are.  Look in the path if we contain no directory separator.
 
23103
case $0 in
 
23104
  *[\\/]* ) as_myself=$0 ;;
 
23105
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
23106
for as_dir in $PATH
 
23107
do
 
23108
  IFS=$as_save_IFS
 
23109
  test -z "$as_dir" && as_dir=.
 
23110
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
23111
done
 
23112
IFS=$as_save_IFS
 
23113
 
 
23114
     ;;
 
23115
esac
 
23116
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
23117
# in which case we are not to be found in the path.
 
23118
if test "x$as_myself" = x; then
 
23119
  as_myself=$0
 
23120
fi
 
23121
if test ! -f "$as_myself"; then
 
23122
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
23123
  { (exit 1); exit 1; }
 
23124
fi
 
23125
 
 
23126
# Work around bugs in pre-3.0 UWIN ksh.
 
23127
for as_var in ENV MAIL MAILPATH
 
23128
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
23129
done
 
23130
PS1='$ '
 
23131
PS2='> '
 
23132
PS4='+ '
 
23133
 
 
23134
# NLS nuisances.
 
23135
LC_ALL=C
 
23136
export LC_ALL
 
23137
LANGUAGE=C
 
23138
export LANGUAGE
 
23139
 
 
23140
# Required to use basename.
 
23141
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
23142
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
23143
  as_expr=expr
 
23144
else
 
23145
  as_expr=false
 
23146
fi
 
23147
 
 
23148
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
23149
  as_basename=basename
 
23150
else
 
23151
  as_basename=false
 
23152
fi
 
23153
 
 
23154
 
 
23155
# Name of the executable.
 
23156
as_me=`$as_basename -- "$0" ||
 
23157
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
23158
         X"$0" : 'X\(//\)$' \| \
 
23159
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
23160
$as_echo X/"$0" |
 
23161
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
23162
            s//\1/
 
23163
            q
 
23164
          }
 
23165
          /^X\/\(\/\/\)$/{
 
23166
            s//\1/
 
23167
            q
 
23168
          }
 
23169
          /^X\/\(\/\).*/{
 
23170
            s//\1/
 
23171
            q
 
23172
          }
 
23173
          s/.*/./; q'`
 
23174
 
 
23175
# CDPATH.
 
23176
$as_unset CDPATH
 
23177
 
 
23178
 
 
23179
 
 
23180
  as_lineno_1=$LINENO
 
23181
  as_lineno_2=$LINENO
 
23182
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
23183
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
23184
 
 
23185
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
23186
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
23187
  # line-number line after each line using $LINENO; the second 'sed'
 
23188
  # does the real work.  The second script uses 'N' to pair each
 
23189
  # line-number line with the line containing $LINENO, and appends
 
23190
  # trailing '-' during substitution so that $LINENO is not a special
 
23191
  # case at line end.
 
23192
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
23193
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
23194
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
23195
  sed -n '
 
23196
    p
 
23197
    /[$]LINENO/=
 
23198
  ' <$as_myself |
 
23199
    sed '
 
23200
      s/[$]LINENO.*/&-/
 
23201
      t lineno
 
23202
      b
 
23203
      :lineno
 
23204
      N
 
23205
      :loop
 
23206
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
23207
      t loop
 
23208
      s/-\n.*//
 
23209
    ' >$as_me.lineno &&
 
23210
  chmod +x "$as_me.lineno" ||
 
23211
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
23212
   { (exit 1); exit 1; }; }
 
23213
 
 
23214
  # Don't try to exec as it changes $[0], causing all sort of problems
 
23215
  # (the dirname of $[0] is not the place where we might find the
 
23216
  # original and so on.  Autoconf is especially sensitive to this).
 
23217
  . "./$as_me.lineno"
 
23218
  # Exit status is that of the last command.
 
23219
  exit
 
23220
}
 
23221
 
 
23222
 
 
23223
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
23224
  as_dirname=dirname
 
23225
else
 
23226
  as_dirname=false
 
23227
fi
 
23228
 
 
23229
ECHO_C= ECHO_N= ECHO_T=
 
23230
case `echo -n x` in
 
23231
-n*)
 
23232
  case `echo 'x\c'` in
 
23233
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
23234
  *)   ECHO_C='\c';;
 
23235
  esac;;
 
23236
*)
 
23237
  ECHO_N='-n';;
 
23238
esac
 
23239
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
23240
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
23241
  as_expr=expr
 
23242
else
 
23243
  as_expr=false
 
23244
fi
 
23245
 
 
23246
rm -f conf$$ conf$$.exe conf$$.file
 
23247
if test -d conf$$.dir; then
 
23248
  rm -f conf$$.dir/conf$$.file
 
23249
else
 
23250
  rm -f conf$$.dir
 
23251
  mkdir conf$$.dir 2>/dev/null
 
23252
fi
 
23253
if (echo >conf$$.file) 2>/dev/null; then
 
23254
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
23255
    as_ln_s='ln -s'
 
23256
    # ... but there are two gotchas:
 
23257
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
23258
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
23259
    # In both cases, we have to default to `cp -p'.
 
23260
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
23261
      as_ln_s='cp -p'
 
23262
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
23263
    as_ln_s=ln
 
23264
  else
 
23265
    as_ln_s='cp -p'
 
23266
  fi
 
23267
else
 
23268
  as_ln_s='cp -p'
 
23269
fi
 
23270
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
23271
rmdir conf$$.dir 2>/dev/null
 
23272
 
 
23273
if mkdir -p . 2>/dev/null; then
 
23274
  as_mkdir_p=:
 
23275
else
 
23276
  test -d ./-p && rmdir ./-p
 
23277
  as_mkdir_p=false
 
23278
fi
 
23279
 
 
23280
if test -x / >/dev/null 2>&1; then
 
23281
  as_test_x='test -x'
 
23282
else
 
23283
  if ls -dL / >/dev/null 2>&1; then
 
23284
    as_ls_L_option=L
 
23285
  else
 
23286
    as_ls_L_option=
 
23287
  fi
 
23288
  as_test_x='
 
23289
    eval sh -c '\''
 
23290
      if test -d "$1"; then
 
23291
        test -d "$1/.";
 
23292
      else
 
23293
        case $1 in
 
23294
        -*)set "./$1";;
 
23295
        esac;
 
23296
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
23297
        ???[sx]*):;;*)false;;esac;fi
 
23298
    '\'' sh
 
23299
  '
 
23300
fi
 
23301
as_executable_p=$as_test_x
 
23302
 
 
23303
# Sed expression to map a string onto a valid CPP name.
 
23304
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
23305
 
 
23306
# Sed expression to map a string onto a valid variable name.
 
23307
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
23308
 
 
23309
 
 
23310
exec 6>&1
 
23311
 
 
23312
# Save the log message, to keep $[0] and so on meaningful, and to
 
23313
# report actual input values of CONFIG_FILES etc. instead of their
 
23314
# values after options handling.
 
23315
ac_log="
 
23316
This file was extended by libffcall/trampoline_r $as_me 0x010B, which was
 
23317
generated by GNU Autoconf 2.63.  Invocation command line was
 
23318
 
 
23319
  CONFIG_FILES    = $CONFIG_FILES
 
23320
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
23321
  CONFIG_LINKS    = $CONFIG_LINKS
 
23322
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
23323
  $ $0 $@
 
23324
 
 
23325
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
23326
"
 
23327
 
 
23328
_ACEOF
 
23329
 
 
23330
case $ac_config_files in *"
 
23331
"*) set x $ac_config_files; shift; ac_config_files=$*;;
 
23332
esac
 
23333
 
 
23334
case $ac_config_headers in *"
 
23335
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
 
23336
esac
 
23337
 
 
23338
 
 
23339
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
23340
# Files that config.status was made for.
 
23341
config_files="$ac_config_files"
 
23342
config_headers="$ac_config_headers"
 
23343
 
 
23344
_ACEOF
 
23345
 
 
23346
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
23347
ac_cs_usage="\
 
23348
\`$as_me' instantiates files from templates according to the
 
23349
current configuration.
 
23350
 
 
23351
Usage: $0 [OPTION]... [FILE]...
 
23352
 
 
23353
  -h, --help       print this help, then exit
 
23354
  -V, --version    print version number and configuration settings, then exit
 
23355
  -q, --quiet, --silent
 
23356
                   do not print progress messages
 
23357
  -d, --debug      don't remove temporary files
 
23358
      --recheck    update $as_me by reconfiguring in the same conditions
 
23359
      --file=FILE[:TEMPLATE]
 
23360
                   instantiate the configuration file FILE
 
23361
      --header=FILE[:TEMPLATE]
 
23362
                   instantiate the configuration header FILE
 
23363
 
 
23364
Configuration files:
 
23365
$config_files
 
23366
 
 
23367
Configuration headers:
 
23368
$config_headers
 
23369
 
 
23370
Report bugs to <bug-autoconf@gnu.org>."
 
23371
 
 
23372
_ACEOF
 
23373
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
23374
ac_cs_version="\\
 
23375
libffcall/trampoline_r config.status 0x010B
 
23376
configured by $0, generated by GNU Autoconf 2.63,
 
23377
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
 
23378
 
 
23379
Copyright (C) 2008 Free Software Foundation, Inc.
 
23380
This config.status script is free software; the Free Software Foundation
 
23381
gives unlimited permission to copy, distribute and modify it."
 
23382
 
 
23383
ac_pwd='$ac_pwd'
 
23384
srcdir='$srcdir'
 
23385
INSTALL='$INSTALL'
 
23386
test -n "\$AWK" || AWK=awk
 
23387
_ACEOF
 
23388
 
 
23389
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
23390
# The default lists apply if the user does not specify any file.
 
23391
ac_need_defaults=:
 
23392
while test $# != 0
 
23393
do
 
23394
  case $1 in
 
23395
  --*=*)
 
23396
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
23397
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
23398
    ac_shift=:
 
23399
    ;;
 
23400
  *)
 
23401
    ac_option=$1
 
23402
    ac_optarg=$2
 
23403
    ac_shift=shift
 
23404
    ;;
 
23405
  esac
 
23406
 
 
23407
  case $ac_option in
 
23408
  # Handling of the options.
 
23409
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
23410
    ac_cs_recheck=: ;;
 
23411
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
23412
    $as_echo "$ac_cs_version"; exit ;;
 
23413
  --debug | --debu | --deb | --de | --d | -d )
 
23414
    debug=: ;;
 
23415
  --file | --fil | --fi | --f )
 
23416
    $ac_shift
 
23417
    case $ac_optarg in
 
23418
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
23419
    esac
 
23420
    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
 
23421
    ac_need_defaults=false;;
 
23422
  --header | --heade | --head | --hea )
 
23423
    $ac_shift
 
23424
    case $ac_optarg in
 
23425
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
23426
    esac
 
23427
    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
 
23428
    ac_need_defaults=false;;
 
23429
  --he | --h)
 
23430
    # Conflict between --help and --header
 
23431
    { $as_echo "$as_me: error: ambiguous option: $1
 
23432
Try \`$0 --help' for more information." >&2
 
23433
   { (exit 1); exit 1; }; };;
 
23434
  --help | --hel | -h )
 
23435
    $as_echo "$ac_cs_usage"; exit ;;
 
23436
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
23437
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
23438
    ac_cs_silent=: ;;
 
23439
 
 
23440
  # This is an error.
 
23441
  -*) { $as_echo "$as_me: error: unrecognized option: $1
 
23442
Try \`$0 --help' for more information." >&2
 
23443
   { (exit 1); exit 1; }; } ;;
 
23444
 
 
23445
  *) ac_config_targets="$ac_config_targets $1"
 
23446
     ac_need_defaults=false ;;
 
23447
 
 
23448
  esac
 
23449
  shift
 
23450
done
 
23451
 
 
23452
ac_configure_extra_args=
 
23453
 
 
23454
if $ac_cs_silent; then
 
23455
  exec 6>/dev/null
 
23456
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
23457
fi
 
23458
 
 
23459
_ACEOF
 
23460
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
23461
if \$ac_cs_recheck; then
 
23462
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
23463
  shift
 
23464
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 
23465
  CONFIG_SHELL='$SHELL'
 
23466
  export CONFIG_SHELL
 
23467
  exec "\$@"
 
23468
fi
 
23469
 
 
23470
_ACEOF
 
23471
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
23472
exec 5>>config.log
 
23473
{
 
23474
  echo
 
23475
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
23476
## Running $as_me. ##
 
23477
_ASBOX
 
23478
  $as_echo "$ac_log"
 
23479
} >&5
 
23480
 
 
23481
_ACEOF
 
23482
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
23483
#
 
23484
# INIT-COMMANDS
 
23485
#
 
23486
LIBFFCALL_VERSION=$PACKAGE_VERSION
 
23487
 
 
23488
_ACEOF
 
23489
 
 
23490
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
23491
 
 
23492
# Handling of arguments.
 
23493
for ac_config_target in $ac_config_targets
 
23494
do
 
23495
  case $ac_config_target in
 
23496
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
23497
    "trampoline_r.h") CONFIG_HEADERS="$CONFIG_HEADERS trampoline_r.h" ;;
 
23498
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
23499
 
 
23500
  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
23501
$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
23502
   { (exit 1); exit 1; }; };;
 
23503
  esac
 
23504
done
 
23505
 
 
23506
 
 
23507
# If the user did not use the arguments to specify the items to instantiate,
 
23508
# then the envvar interface is used.  Set only those that are not.
 
23509
# We use the long form for the default assignment because of an extremely
 
23510
# bizarre bug on SunOS 4.1.3.
 
23511
if $ac_need_defaults; then
 
23512
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
23513
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
23514
fi
 
23515
 
 
23516
# Have a temporary directory for convenience.  Make it in the build tree
 
23517
# simply because there is no reason against having it here, and in addition,
 
23518
# creating and moving files from /tmp can sometimes cause problems.
 
23519
# Hook for its removal unless debugging.
 
23520
# Note that there is a small window in which the directory will not be cleaned:
 
23521
# after its creation but before its name has been assigned to `$tmp'.
 
23522
$debug ||
 
23523
{
 
23524
  tmp=
 
23525
  trap 'exit_status=$?
 
23526
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 
23527
' 0
 
23528
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
23529
}
 
23530
# Create a (secure) tmp directory for tmp files.
 
23531
 
 
23532
{
 
23533
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
23534
  test -n "$tmp" && test -d "$tmp"
 
23535
}  ||
 
23536
{
 
23537
  tmp=./conf$$-$RANDOM
 
23538
  (umask 077 && mkdir "$tmp")
 
23539
} ||
 
23540
{
 
23541
   $as_echo "$as_me: cannot create a temporary directory in ." >&2
 
23542
   { (exit 1); exit 1; }
 
23543
}
 
23544
 
 
23545
# Set up the scripts for CONFIG_FILES section.
 
23546
# No need to generate them if there are no CONFIG_FILES.
 
23547
# This happens for instance with `./config.status config.h'.
 
23548
if test -n "$CONFIG_FILES"; then
 
23549
 
 
23550
 
 
23551
ac_cr='
 
 
b"'"
 
23552
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 
23553
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 
23554
  ac_cs_awk_cr='\\r'
 
23555
else
 
23556
  ac_cs_awk_cr=$ac_cr
 
23557
fi
 
23558
 
 
23559
echo 'BEGIN {' >"$tmp/subs1.awk" &&
 
23560
_ACEOF
 
23561
 
 
23562
 
 
23563
{
 
23564
  echo "cat >conf$$subs.awk <<_ACEOF" &&
 
23565
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 
23566
  echo "_ACEOF"
 
23567
} >conf$$subs.sh ||
 
23568
  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
23569
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
23570
   { (exit 1); exit 1; }; }
 
23571
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
 
23572
ac_delim='%!_!# '
 
23573
for ac_last_try in false false false false false :; do
 
23574
  . ./conf$$subs.sh ||
 
23575
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
23576
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
23577
   { (exit 1); exit 1; }; }
 
23578
 
 
23579
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
 
23580
  if test $ac_delim_n = $ac_delim_num; then
 
23581
    break
 
23582
  elif $ac_last_try; then
 
23583
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
23584
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
23585
   { (exit 1); exit 1; }; }
 
23586
  else
 
23587
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
23588
  fi
 
23589
done
 
23590
rm -f conf$$subs.sh
 
23591
 
 
23592
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
23593
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
 
23594
_ACEOF
 
23595
sed -n '
 
23596
h
 
23597
s/^/S["/; s/!.*/"]=/
 
23598
p
 
23599
g
 
23600
s/^[^!]*!//
 
23601
:repl
 
23602
t repl
 
23603
s/'"$ac_delim"'$//
 
23604
t delim
 
23605
:nl
 
23606
h
 
23607
s/\(.\{148\}\).*/\1/
 
23608
t more1
 
23609
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 
23610
p
 
23611
n
 
23612
b repl
 
23613
:more1
 
23614
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
23615
p
 
23616
g
 
23617
s/.\{148\}//
 
23618
t nl
 
23619
:delim
 
23620
h
 
23621
s/\(.\{148\}\).*/\1/
 
23622
t more2
 
23623
s/["\\]/\\&/g; s/^/"/; s/$/"/
 
23624
p
 
23625
b
 
23626
:more2
 
23627
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
23628
p
 
23629
g
 
23630
s/.\{148\}//
 
23631
t delim
 
23632
' <conf$$subs.awk | sed '
 
23633
/^[^""]/{
 
23634
  N
 
23635
  s/\n//
 
23636
}
 
23637
' >>$CONFIG_STATUS || ac_write_fail=1
 
23638
rm -f conf$$subs.awk
 
23639
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
23640
_ACAWK
 
23641
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
 
23642
  for (key in S) S_is_set[key] = 1
 
23643
  FS = ""
 
23644
 
 
23645
}
 
23646
{
 
23647
  line = $ 0
 
23648
  nfields = split(line, field, "@")
 
23649
  substed = 0
 
23650
  len = length(field[1])
 
23651
  for (i = 2; i < nfields; i++) {
 
23652
    key = field[i]
 
23653
    keylen = length(key)
 
23654
    if (S_is_set[key]) {
 
23655
      value = S[key]
 
23656
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 
23657
      len += length(value) + length(field[++i])
 
23658
      substed = 1
 
23659
    } else
 
23660
      len += 1 + keylen
 
23661
  }
 
23662
 
 
23663
  print line
 
23664
}
 
23665
 
 
23666
_ACAWK
 
23667
_ACEOF
 
23668
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
23669
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 
23670
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 
23671
else
 
23672
  cat
 
23673
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
 
23674
  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
 
23675
$as_echo "$as_me: error: could not setup config files machinery" >&2;}
 
23676
   { (exit 1); exit 1; }; }
 
23677
_ACEOF
 
23678
 
 
23679
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
23680
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
23681
# trailing colons and then remove the whole line if VPATH becomes empty
 
23682
# (actually we leave an empty line to preserve line numbers).
 
23683
if test "x$srcdir" = x.; then
 
23684
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
23685
s/:*\$(srcdir):*/:/
 
23686
s/:*\${srcdir}:*/:/
 
23687
s/:*@srcdir@:*/:/
 
23688
s/^\([^=]*=[     ]*\):*/\1/
 
23689
s/:*$//
 
23690
s/^[^=]*=[       ]*$//
 
23691
}'
 
23692
fi
 
23693
 
 
23694
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
23695
fi # test -n "$CONFIG_FILES"
 
23696
 
 
23697
# Set up the scripts for CONFIG_HEADERS section.
 
23698
# No need to generate them if there are no CONFIG_HEADERS.
 
23699
# This happens for instance with `./config.status Makefile'.
 
23700
if test -n "$CONFIG_HEADERS"; then
 
23701
cat >"$tmp/defines.awk" <<\_ACAWK ||
 
23702
BEGIN {
 
23703
_ACEOF
 
23704
 
 
23705
# Transform confdefs.h into an awk script `defines.awk', embedded as
 
23706
# here-document in config.status, that substitutes the proper values into
 
23707
# config.h.in to produce config.h.
 
23708
 
 
23709
# Create a delimiter string that does not exist in confdefs.h, to ease
 
23710
# handling of long lines.
 
23711
ac_delim='%!_!# '
 
23712
for ac_last_try in false false :; do
 
23713
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
 
23714
  if test -z "$ac_t"; then
 
23715
    break
 
23716
  elif $ac_last_try; then
 
23717
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
 
23718
$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
 
23719
   { (exit 1); exit 1; }; }
 
23720
  else
 
23721
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
23722
  fi
 
23723
done
 
23724
 
 
23725
# For the awk script, D is an array of macro values keyed by name,
 
23726
# likewise P contains macro parameters if any.  Preserve backslash
 
23727
# newline sequences.
 
23728
 
 
23729
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
23730
sed -n '
 
23731
s/.\{148\}/&'"$ac_delim"'/g
 
23732
t rset
 
23733
:rset
 
23734
s/^[     ]*#[    ]*define[       ][      ]*/ /
 
23735
t def
 
23736
d
 
23737
:def
 
23738
s/\\$//
 
23739
t bsnl
 
23740
s/["\\]/\\&/g
 
23741
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
23742
D["\1"]=" \3"/p
 
23743
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
 
23744
d
 
23745
:bsnl
 
23746
s/["\\]/\\&/g
 
23747
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
23748
D["\1"]=" \3\\\\\\n"\\/p
 
23749
t cont
 
23750
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
 
23751
t cont
 
23752
d
 
23753
:cont
 
23754
n
 
23755
s/.\{148\}/&'"$ac_delim"'/g
 
23756
t clear
 
23757
:clear
 
23758
s/\\$//
 
23759
t bsnlc
 
23760
s/["\\]/\\&/g; s/^/"/; s/$/"/p
 
23761
d
 
23762
:bsnlc
 
23763
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
 
23764
b cont
 
23765
' <confdefs.h | sed '
 
23766
s/'"$ac_delim"'/"\\\
 
23767
"/g' >>$CONFIG_STATUS || ac_write_fail=1
 
23768
 
 
23769
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
23770
  for (key in D) D_is_set[key] = 1
 
23771
  FS = ""
 
23772
}
 
23773
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
 
23774
  line = \$ 0
 
23775
  split(line, arg, " ")
 
23776
  if (arg[1] == "#") {
 
23777
    defundef = arg[2]
 
23778
    mac1 = arg[3]
 
23779
  } else {
 
23780
    defundef = substr(arg[1], 2)
 
23781
    mac1 = arg[2]
 
23782
  }
 
23783
  split(mac1, mac2, "(") #)
 
23784
  macro = mac2[1]
 
23785
  prefix = substr(line, 1, index(line, defundef) - 1)
 
23786
  if (D_is_set[macro]) {
 
23787
    # Preserve the white space surrounding the "#".
 
23788
    print prefix "define", macro P[macro] D[macro]
 
23789
    next
 
23790
  } else {
 
23791
    # Replace #undef with comments.  This is necessary, for example,
 
23792
    # in the case of _POSIX_SOURCE, which is predefined and required
 
23793
    # on some systems where configure will not decide to define it.
 
23794
    if (defundef == "undef") {
 
23795
      print "/*", prefix defundef, macro, "*/"
 
23796
      next
 
23797
    }
 
23798
  }
 
23799
}
 
23800
{ print }
 
23801
_ACAWK
 
23802
_ACEOF
 
23803
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
23804
  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
 
23805
$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
 
23806
   { (exit 1); exit 1; }; }
 
23807
fi # test -n "$CONFIG_HEADERS"
 
23808
 
 
23809
 
 
23810
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
 
23811
shift
 
23812
for ac_tag
 
23813
do
 
23814
  case $ac_tag in
 
23815
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
23816
  esac
 
23817
  case $ac_mode$ac_tag in
 
23818
  :[FHL]*:*);;
 
23819
  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
 
23820
$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
 
23821
   { (exit 1); exit 1; }; };;
 
23822
  :[FH]-) ac_tag=-:-;;
 
23823
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
23824
  esac
 
23825
  ac_save_IFS=$IFS
 
23826
  IFS=:
 
23827
  set x $ac_tag
 
23828
  IFS=$ac_save_IFS
 
23829
  shift
 
23830
  ac_file=$1
 
23831
  shift
 
23832
 
 
23833
  case $ac_mode in
 
23834
  :L) ac_source=$1;;
 
23835
  :[FH])
 
23836
    ac_file_inputs=
 
23837
    for ac_f
 
23838
    do
 
23839
      case $ac_f in
 
23840
      -) ac_f="$tmp/stdin";;
 
23841
      *) # Look for the file first in the build tree, then in the source tree
 
23842
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
23843
         # because $ac_f cannot contain `:'.
 
23844
         test -f "$ac_f" ||
 
23845
           case $ac_f in
 
23846
           [\\/$]*) false;;
 
23847
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
23848
           esac ||
 
23849
           { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
 
23850
$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
 
23851
   { (exit 1); exit 1; }; };;
 
23852
      esac
 
23853
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 
23854
      ac_file_inputs="$ac_file_inputs '$ac_f'"
 
23855
    done
 
23856
 
 
23857
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
23858
    # use $as_me), people would be surprised to read:
 
23859
    #    /* config.h.  Generated by config.status.  */
 
23860
    configure_input='Generated from '`
 
23861
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 
23862
        `' by configure.'
 
23863
    if test x"$ac_file" != x-; then
 
23864
      configure_input="$ac_file.  $configure_input"
 
23865
      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
 
23866
$as_echo "$as_me: creating $ac_file" >&6;}
 
23867
    fi
 
23868
    # Neutralize special characters interpreted by sed in replacement strings.
 
23869
    case $configure_input in #(
 
23870
    *\&* | *\|* | *\\* )
 
23871
       ac_sed_conf_input=`$as_echo "$configure_input" |
 
23872
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
 
23873
    *) ac_sed_conf_input=$configure_input;;
 
23874
    esac
 
23875
 
 
23876
    case $ac_tag in
 
23877
    *:-:* | *:-) cat >"$tmp/stdin" \
 
23878
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 
23879
$as_echo "$as_me: error: could not create $ac_file" >&2;}
 
23880
   { (exit 1); exit 1; }; } ;;
 
23881
    esac
 
23882
    ;;
 
23883
  esac
 
23884
 
 
23885
  ac_dir=`$as_dirname -- "$ac_file" ||
 
23886
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23887
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
23888
         X"$ac_file" : 'X\(//\)$' \| \
 
23889
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
23890
$as_echo X"$ac_file" |
 
23891
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
23892
            s//\1/
 
23893
            q
 
23894
          }
 
23895
          /^X\(\/\/\)[^/].*/{
 
23896
            s//\1/
 
23897
            q
 
23898
          }
 
23899
          /^X\(\/\/\)$/{
 
23900
            s//\1/
 
23901
            q
 
23902
          }
 
23903
          /^X\(\/\).*/{
 
23904
            s//\1/
 
23905
            q
 
23906
          }
 
23907
          s/.*/./; q'`
 
23908
  { as_dir="$ac_dir"
 
23909
  case $as_dir in #(
 
23910
  -*) as_dir=./$as_dir;;
 
23911
  esac
 
23912
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
23913
    as_dirs=
 
23914
    while :; do
 
23915
      case $as_dir in #(
 
23916
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
23917
      *) as_qdir=$as_dir;;
 
23918
      esac
 
23919
      as_dirs="'$as_qdir' $as_dirs"
 
23920
      as_dir=`$as_dirname -- "$as_dir" ||
 
23921
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
23922
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
23923
         X"$as_dir" : 'X\(//\)$' \| \
 
23924
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
23925
$as_echo X"$as_dir" |
 
23926
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
23927
            s//\1/
 
23928
            q
 
23929
          }
 
23930
          /^X\(\/\/\)[^/].*/{
 
23931
            s//\1/
 
23932
            q
 
23933
          }
 
23934
          /^X\(\/\/\)$/{
 
23935
            s//\1/
 
23936
            q
 
23937
          }
 
23938
          /^X\(\/\).*/{
 
23939
            s//\1/
 
23940
            q
 
23941
          }
 
23942
          s/.*/./; q'`
 
23943
      test -d "$as_dir" && break
 
23944
    done
 
23945
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
23946
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
23947
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
23948
   { (exit 1); exit 1; }; }; }
 
23949
  ac_builddir=.
 
23950
 
 
23951
case "$ac_dir" in
 
23952
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
23953
*)
 
23954
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
23955
  # A ".." for each directory in $ac_dir_suffix.
 
23956
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
23957
  case $ac_top_builddir_sub in
 
23958
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
23959
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
23960
  esac ;;
 
23961
esac
 
23962
ac_abs_top_builddir=$ac_pwd
 
23963
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
23964
# for backward compatibility:
 
23965
ac_top_builddir=$ac_top_build_prefix
 
23966
 
 
23967
case $srcdir in
 
23968
  .)  # We are building in place.
 
23969
    ac_srcdir=.
 
23970
    ac_top_srcdir=$ac_top_builddir_sub
 
23971
    ac_abs_top_srcdir=$ac_pwd ;;
 
23972
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
23973
    ac_srcdir=$srcdir$ac_dir_suffix;
 
23974
    ac_top_srcdir=$srcdir
 
23975
    ac_abs_top_srcdir=$srcdir ;;
 
23976
  *) # Relative name.
 
23977
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
23978
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
23979
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
23980
esac
 
23981
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
23982
 
 
23983
 
 
23984
  case $ac_mode in
 
23985
  :F)
 
23986
  #
 
23987
  # CONFIG_FILE
 
23988
  #
 
23989
 
 
23990
  case $INSTALL in
 
23991
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
23992
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
23993
  esac
 
23994
_ACEOF
 
23995
 
 
23996
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
23997
# If the template does not know about datarootdir, expand it.
 
23998
# FIXME: This hack should be removed a few years after 2.60.
 
23999
ac_datarootdir_hack=; ac_datarootdir_seen=
 
24000
 
 
24001
ac_sed_dataroot='
 
24002
/datarootdir/ {
 
24003
  p
 
24004
  q
 
24005
}
 
24006
/@datadir@/p
 
24007
/@docdir@/p
 
24008
/@infodir@/p
 
24009
/@localedir@/p
 
24010
/@mandir@/p
 
24011
'
 
24012
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
 
24013
*datarootdir*) ac_datarootdir_seen=yes;;
 
24014
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
24015
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
24016
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
24017
_ACEOF
 
24018
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
24019
  ac_datarootdir_hack='
 
24020
  s&@datadir@&$datadir&g
 
24021
  s&@docdir@&$docdir&g
 
24022
  s&@infodir@&$infodir&g
 
24023
  s&@localedir@&$localedir&g
 
24024
  s&@mandir@&$mandir&g
 
24025
    s&\\\${datarootdir}&$datarootdir&g' ;;
 
24026
esac
 
24027
_ACEOF
 
24028
 
 
24029
# Neutralize VPATH when `$srcdir' = `.'.
 
24030
# Shell code in configure.ac might set extrasub.
 
24031
# FIXME: do we really want to maintain this feature?
 
24032
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
24033
ac_sed_extra="$ac_vpsub
 
24034
$extrasub
 
24035
_ACEOF
 
24036
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
24037
:t
 
24038
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
24039
s|@configure_input@|$ac_sed_conf_input|;t t
 
24040
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
24041
s&@top_build_prefix@&$ac_top_build_prefix&;t t
 
24042
s&@srcdir@&$ac_srcdir&;t t
 
24043
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
24044
s&@top_srcdir@&$ac_top_srcdir&;t t
 
24045
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
24046
s&@builddir@&$ac_builddir&;t t
 
24047
s&@abs_builddir@&$ac_abs_builddir&;t t
 
24048
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
24049
s&@INSTALL@&$ac_INSTALL&;t t
 
24050
$ac_datarootdir_hack
 
24051
"
 
24052
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
 
24053
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 
24054
$as_echo "$as_me: error: could not create $ac_file" >&2;}
 
24055
   { (exit 1); exit 1; }; }
 
24056
 
 
24057
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
24058
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 
24059
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 
24060
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
24061
which seems to be undefined.  Please make sure it is defined." >&5
 
24062
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
24063
which seems to be undefined.  Please make sure it is defined." >&2;}
 
24064
 
 
24065
  rm -f "$tmp/stdin"
 
24066
  case $ac_file in
 
24067
  -) cat "$tmp/out" && rm -f "$tmp/out";;
 
24068
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
 
24069
  esac \
 
24070
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 
24071
$as_echo "$as_me: error: could not create $ac_file" >&2;}
 
24072
   { (exit 1); exit 1; }; }
 
24073
 ;;
 
24074
  :H)
 
24075
  #
 
24076
  # CONFIG_HEADER
 
24077
  #
 
24078
  if test x"$ac_file" != x-; then
 
24079
    {
 
24080
      $as_echo "/* $configure_input  */" \
 
24081
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
 
24082
    } >"$tmp/config.h" \
 
24083
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 
24084
$as_echo "$as_me: error: could not create $ac_file" >&2;}
 
24085
   { (exit 1); exit 1; }; }
 
24086
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
 
24087
      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
24088
$as_echo "$as_me: $ac_file is unchanged" >&6;}
 
24089
    else
 
24090
      rm -f "$ac_file"
 
24091
      mv "$tmp/config.h" "$ac_file" \
 
24092
        || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 
24093
$as_echo "$as_me: error: could not create $ac_file" >&2;}
 
24094
   { (exit 1); exit 1; }; }
 
24095
    fi
 
24096
  else
 
24097
    $as_echo "/* $configure_input  */" \
 
24098
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
 
24099
      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
 
24100
$as_echo "$as_me: error: could not create -" >&2;}
 
24101
   { (exit 1); exit 1; }; }
 
24102
  fi
 
24103
 ;;
 
24104
 
 
24105
 
 
24106
  esac
 
24107
 
 
24108
 
 
24109
  case $ac_file$ac_mode in
 
24110
    "trampoline_r.h":H) sed "s/@LIBFFCALL_VERSION@/${LIBFFCALL_VERSION}/" trampoline_r.h > tmp
 
24111
mv -f tmp trampoline_r.h ;;
 
24112
 
 
24113
  esac
 
24114
done # for ac_tag
 
24115
 
 
24116
 
 
24117
{ (exit 0); exit 0; }
 
24118
_ACEOF
 
24119
chmod +x $CONFIG_STATUS
 
24120
ac_clean_files=$ac_clean_files_save
 
24121
 
 
24122
test $ac_write_fail = 0 ||
 
24123
  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
 
24124
$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
 
24125
   { (exit 1); exit 1; }; }
 
24126
 
 
24127
 
 
24128
# configure is writing to config.log, and then calls config.status.
 
24129
# config.status does its own redirection, appending to config.log.
 
24130
# Unfortunately, on DOS this fails, as config.log is still kept open
 
24131
# by configure, so config.status won't be able to write to it; its
 
24132
# output is simply discarded.  So we exec the FD to /dev/null,
 
24133
# effectively closing config.log, so it can be properly (re)opened and
 
24134
# appended to by config.status.  When coming back to configure, we
 
24135
# need to make the FD available again.
 
24136
if test "$no_create" != yes; then
 
24137
  ac_cs_success=:
 
24138
  ac_config_status_args=
 
24139
  test "$silent" = yes &&
 
24140
    ac_config_status_args="$ac_config_status_args --quiet"
 
24141
  exec 5>/dev/null
 
24142
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
24143
  exec 5>>config.log
 
24144
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
24145
  # would make configure fail if this is the last instruction.
 
24146
  $ac_cs_success || { (exit 1); exit 1; }
 
24147
fi
 
24148
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 
24149
  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 
24150
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
 
24151
fi
 
24152