~ubuntu-branches/debian/sid/ember/sid

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Michael Koch
  • Date: 2009-07-23 07:46:40 UTC
  • Revision ID: james.westby@ubuntu.com-20090723074640-wh0ukzis0kda36qv
Tags: upstream-0.5.6
ImportĀ upstreamĀ versionĀ 0.5.6

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 Ember 0.5.6.
 
4
#
 
5
# Report bugs to <clients@worldforge.org>.
 
6
#
 
7
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
8
# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
 
9
# This configure script is free software; the Free Software Foundation
 
10
# gives unlimited permission to copy, distribute and modify it.
 
11
#
 
12
# This script is under the GPL and is owned by the people in AUTHORS
 
13
## --------------------- ##
 
14
## M4sh Initialization.  ##
 
15
## --------------------- ##
 
16
 
 
17
# Be more Bourne compatible
 
18
DUALCASE=1; export DUALCASE # for MKS sh
 
19
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
20
  emulate sh
 
21
  NULLCMD=:
 
22
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
23
  # is contrary to our usage.  Disable this feature.
 
24
  alias -g '${1+"$@"}'='"$@"'
 
25
  setopt NO_GLOB_SUBST
 
26
else
 
27
  case `(set -o) 2>/dev/null` in
 
28
  *posix*) set -o posix ;;
 
29
esac
 
30
 
 
31
fi
 
32
 
 
33
 
 
34
 
 
35
 
 
36
# PATH needs CR
 
37
# Avoid depending upon Character Ranges.
 
38
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
39
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
40
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
41
as_cr_digits='0123456789'
 
42
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
43
 
 
44
as_nl='
 
45
'
 
46
export as_nl
 
47
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
48
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
49
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
50
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
51
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
52
  as_echo='printf %s\n'
 
53
  as_echo_n='printf %s'
 
54
else
 
55
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
56
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
57
    as_echo_n='/usr/ucb/echo -n'
 
58
  else
 
59
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
60
    as_echo_n_body='eval
 
61
      arg=$1;
 
62
      case $arg in
 
63
      *"$as_nl"*)
 
64
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
65
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
66
      esac;
 
67
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
68
    '
 
69
    export as_echo_n_body
 
70
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
71
  fi
 
72
  export as_echo_body
 
73
  as_echo='sh -c $as_echo_body as_echo'
 
74
fi
 
75
 
 
76
# The user is always right.
 
77
if test "${PATH_SEPARATOR+set}" != set; then
 
78
  PATH_SEPARATOR=:
 
79
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
80
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
81
      PATH_SEPARATOR=';'
 
82
  }
 
83
fi
 
84
 
 
85
# Support unset when possible.
 
86
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
87
  as_unset=unset
 
88
else
 
89
  as_unset=false
 
90
fi
 
91
 
 
92
 
 
93
# IFS
 
94
# We need space, tab and new line, in precisely that order.  Quoting is
 
95
# there to prevent editors from complaining about space-tab.
 
96
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
97
# splitting by setting IFS to empty value.)
 
98
IFS=" ""        $as_nl"
 
99
 
 
100
# Find who we are.  Look in the path if we contain no directory separator.
 
101
case $0 in
 
102
  *[\\/]* ) as_myself=$0 ;;
 
103
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
104
for as_dir in $PATH
 
105
do
 
106
  IFS=$as_save_IFS
 
107
  test -z "$as_dir" && as_dir=.
 
108
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
109
done
 
110
IFS=$as_save_IFS
 
111
 
 
112
     ;;
 
113
esac
 
114
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
115
# in which case we are not to be found in the path.
 
116
if test "x$as_myself" = x; then
 
117
  as_myself=$0
 
118
fi
 
119
if test ! -f "$as_myself"; then
 
120
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
121
  { (exit 1); exit 1; }
 
122
fi
 
123
 
 
124
# Work around bugs in pre-3.0 UWIN ksh.
 
125
for as_var in ENV MAIL MAILPATH
 
126
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
127
done
 
128
PS1='$ '
 
129
PS2='> '
 
130
PS4='+ '
 
131
 
 
132
# NLS nuisances.
 
133
LC_ALL=C
 
134
export LC_ALL
 
135
LANGUAGE=C
 
136
export LANGUAGE
 
137
 
 
138
# Required to use basename.
 
139
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
140
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
141
  as_expr=expr
 
142
else
 
143
  as_expr=false
 
144
fi
 
145
 
 
146
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
147
  as_basename=basename
 
148
else
 
149
  as_basename=false
 
150
fi
 
151
 
 
152
 
 
153
# Name of the executable.
 
154
as_me=`$as_basename -- "$0" ||
 
155
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
156
         X"$0" : 'X\(//\)$' \| \
 
157
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
158
$as_echo X/"$0" |
 
159
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
160
            s//\1/
 
161
            q
 
162
          }
 
163
          /^X\/\(\/\/\)$/{
 
164
            s//\1/
 
165
            q
 
166
          }
 
167
          /^X\/\(\/\).*/{
 
168
            s//\1/
 
169
            q
 
170
          }
 
171
          s/.*/./; q'`
 
172
 
 
173
# CDPATH.
 
174
$as_unset CDPATH
 
175
 
 
176
 
 
177
if test "x$CONFIG_SHELL" = x; then
 
178
  if (eval ":") 2>/dev/null; then
 
179
  as_have_required=yes
 
180
else
 
181
  as_have_required=no
 
182
fi
 
183
 
 
184
  if test $as_have_required = yes &&     (eval ":
 
185
(as_func_return () {
 
186
  (exit \$1)
 
187
}
 
188
as_func_success () {
 
189
  as_func_return 0
 
190
}
 
191
as_func_failure () {
 
192
  as_func_return 1
 
193
}
 
194
as_func_ret_success () {
 
195
  return 0
 
196
}
 
197
as_func_ret_failure () {
 
198
  return 1
 
199
}
 
200
 
 
201
exitcode=0
 
202
if as_func_success; then
 
203
  :
 
204
else
 
205
  exitcode=1
 
206
  echo as_func_success failed.
 
207
fi
 
208
 
 
209
if as_func_failure; then
 
210
  exitcode=1
 
211
  echo as_func_failure succeeded.
 
212
fi
 
213
 
 
214
if as_func_ret_success; then
 
215
  :
 
216
else
 
217
  exitcode=1
 
218
  echo as_func_ret_success failed.
 
219
fi
 
220
 
 
221
if as_func_ret_failure; then
 
222
  exitcode=1
 
223
  echo as_func_ret_failure succeeded.
 
224
fi
 
225
 
 
226
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
227
  :
 
228
else
 
229
  exitcode=1
 
230
  echo positional parameters were not saved.
 
231
fi
 
232
 
 
233
test \$exitcode = 0) || { (exit 1); exit 1; }
 
234
 
 
235
(
 
236
  as_lineno_1=\$LINENO
 
237
  as_lineno_2=\$LINENO
 
238
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
 
239
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
 
240
") 2> /dev/null; then
 
241
  :
 
242
else
 
243
  as_candidate_shells=
 
244
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
245
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
246
do
 
247
  IFS=$as_save_IFS
 
248
  test -z "$as_dir" && as_dir=.
 
249
  case $as_dir in
 
250
         /*)
 
251
           for as_base in sh bash ksh sh5; do
 
252
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
 
253
           done;;
 
254
       esac
 
255
done
 
256
IFS=$as_save_IFS
 
257
 
 
258
 
 
259
      for as_shell in $as_candidate_shells $SHELL; do
 
260
         # Try only shells that exist, to save several forks.
 
261
         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
262
                { ("$as_shell") 2> /dev/null <<\_ASEOF
 
263
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
264
  emulate sh
 
265
  NULLCMD=:
 
266
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
267
  # is contrary to our usage.  Disable this feature.
 
268
  alias -g '${1+"$@"}'='"$@"'
 
269
  setopt NO_GLOB_SUBST
 
270
else
 
271
  case `(set -o) 2>/dev/null` in
 
272
  *posix*) set -o posix ;;
 
273
esac
 
274
 
 
275
fi
 
276
 
 
277
 
 
278
:
 
279
_ASEOF
 
280
}; then
 
281
  CONFIG_SHELL=$as_shell
 
282
               as_have_required=yes
 
283
               if { "$as_shell" 2> /dev/null <<\_ASEOF
 
284
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
285
  emulate sh
 
286
  NULLCMD=:
 
287
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
288
  # is contrary to our usage.  Disable this feature.
 
289
  alias -g '${1+"$@"}'='"$@"'
 
290
  setopt NO_GLOB_SUBST
 
291
else
 
292
  case `(set -o) 2>/dev/null` in
 
293
  *posix*) set -o posix ;;
 
294
esac
 
295
 
 
296
fi
 
297
 
 
298
 
 
299
:
 
300
(as_func_return () {
 
301
  (exit $1)
 
302
}
 
303
as_func_success () {
 
304
  as_func_return 0
 
305
}
 
306
as_func_failure () {
 
307
  as_func_return 1
 
308
}
 
309
as_func_ret_success () {
 
310
  return 0
 
311
}
 
312
as_func_ret_failure () {
 
313
  return 1
 
314
}
 
315
 
 
316
exitcode=0
 
317
if as_func_success; then
 
318
  :
 
319
else
 
320
  exitcode=1
 
321
  echo as_func_success failed.
 
322
fi
 
323
 
 
324
if as_func_failure; then
 
325
  exitcode=1
 
326
  echo as_func_failure succeeded.
 
327
fi
 
328
 
 
329
if as_func_ret_success; then
 
330
  :
 
331
else
 
332
  exitcode=1
 
333
  echo as_func_ret_success failed.
 
334
fi
 
335
 
 
336
if as_func_ret_failure; then
 
337
  exitcode=1
 
338
  echo as_func_ret_failure succeeded.
 
339
fi
 
340
 
 
341
if ( set x; as_func_ret_success y && test x = "$1" ); then
 
342
  :
 
343
else
 
344
  exitcode=1
 
345
  echo positional parameters were not saved.
 
346
fi
 
347
 
 
348
test $exitcode = 0) || { (exit 1); exit 1; }
 
349
 
 
350
(
 
351
  as_lineno_1=$LINENO
 
352
  as_lineno_2=$LINENO
 
353
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
354
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
 
355
 
 
356
_ASEOF
 
357
}; then
 
358
  break
 
359
fi
 
360
 
 
361
fi
 
362
 
 
363
      done
 
364
 
 
365
      if test "x$CONFIG_SHELL" != x; then
 
366
  for as_var in BASH_ENV ENV
 
367
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
368
        done
 
369
        export CONFIG_SHELL
 
370
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
 
371
fi
 
372
 
 
373
 
 
374
    if test $as_have_required = no; then
 
375
  echo This script requires a shell more modern than all the
 
376
      echo shells that I found on your system.  Please install a
 
377
      echo modern shell, or manually run the script under such a
 
378
      echo shell if you do have one.
 
379
      { (exit 1); exit 1; }
 
380
fi
 
381
 
 
382
 
 
383
fi
 
384
 
 
385
fi
 
386
 
 
387
 
 
388
 
 
389
(eval "as_func_return () {
 
390
  (exit \$1)
 
391
}
 
392
as_func_success () {
 
393
  as_func_return 0
 
394
}
 
395
as_func_failure () {
 
396
  as_func_return 1
 
397
}
 
398
as_func_ret_success () {
 
399
  return 0
 
400
}
 
401
as_func_ret_failure () {
 
402
  return 1
 
403
}
 
404
 
 
405
exitcode=0
 
406
if as_func_success; then
 
407
  :
 
408
else
 
409
  exitcode=1
 
410
  echo as_func_success failed.
 
411
fi
 
412
 
 
413
if as_func_failure; then
 
414
  exitcode=1
 
415
  echo as_func_failure succeeded.
 
416
fi
 
417
 
 
418
if as_func_ret_success; then
 
419
  :
 
420
else
 
421
  exitcode=1
 
422
  echo as_func_ret_success failed.
 
423
fi
 
424
 
 
425
if as_func_ret_failure; then
 
426
  exitcode=1
 
427
  echo as_func_ret_failure succeeded.
 
428
fi
 
429
 
 
430
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
431
  :
 
432
else
 
433
  exitcode=1
 
434
  echo positional parameters were not saved.
 
435
fi
 
436
 
 
437
test \$exitcode = 0") || {
 
438
  echo No shell found that supports shell functions.
 
439
  echo Please tell bug-autoconf@gnu.org about your system,
 
440
  echo including any error possibly output before this message.
 
441
  echo This can help us improve future autoconf versions.
 
442
  echo Configuration will now proceed without shell functions.
 
443
}
 
444
 
 
445
 
 
446
 
 
447
  as_lineno_1=$LINENO
 
448
  as_lineno_2=$LINENO
 
449
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
450
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
451
 
 
452
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
453
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
454
  # line-number line after each line using $LINENO; the second 'sed'
 
455
  # does the real work.  The second script uses 'N' to pair each
 
456
  # line-number line with the line containing $LINENO, and appends
 
457
  # trailing '-' during substitution so that $LINENO is not a special
 
458
  # case at line end.
 
459
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
460
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
461
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
462
  sed -n '
 
463
    p
 
464
    /[$]LINENO/=
 
465
  ' <$as_myself |
 
466
    sed '
 
467
      s/[$]LINENO.*/&-/
 
468
      t lineno
 
469
      b
 
470
      :lineno
 
471
      N
 
472
      :loop
 
473
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
474
      t loop
 
475
      s/-\n.*//
 
476
    ' >$as_me.lineno &&
 
477
  chmod +x "$as_me.lineno" ||
 
478
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
479
   { (exit 1); exit 1; }; }
 
480
 
 
481
  # Don't try to exec as it changes $[0], causing all sort of problems
 
482
  # (the dirname of $[0] is not the place where we might find the
 
483
  # original and so on.  Autoconf is especially sensitive to this).
 
484
  . "./$as_me.lineno"
 
485
  # Exit status is that of the last command.
 
486
  exit
 
487
}
 
488
 
 
489
 
 
490
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
491
  as_dirname=dirname
 
492
else
 
493
  as_dirname=false
 
494
fi
 
495
 
 
496
ECHO_C= ECHO_N= ECHO_T=
 
497
case `echo -n x` in
 
498
-n*)
 
499
  case `echo 'x\c'` in
 
500
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
501
  *)   ECHO_C='\c';;
 
502
  esac;;
 
503
*)
 
504
  ECHO_N='-n';;
 
505
esac
 
506
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
507
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
508
  as_expr=expr
 
509
else
 
510
  as_expr=false
 
511
fi
 
512
 
 
513
rm -f conf$$ conf$$.exe conf$$.file
 
514
if test -d conf$$.dir; then
 
515
  rm -f conf$$.dir/conf$$.file
 
516
else
 
517
  rm -f conf$$.dir
 
518
  mkdir conf$$.dir 2>/dev/null
 
519
fi
 
520
if (echo >conf$$.file) 2>/dev/null; then
 
521
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
522
    as_ln_s='ln -s'
 
523
    # ... but there are two gotchas:
 
524
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
525
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
526
    # In both cases, we have to default to `cp -p'.
 
527
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
528
      as_ln_s='cp -p'
 
529
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
530
    as_ln_s=ln
 
531
  else
 
532
    as_ln_s='cp -p'
 
533
  fi
 
534
else
 
535
  as_ln_s='cp -p'
 
536
fi
 
537
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
538
rmdir conf$$.dir 2>/dev/null
 
539
 
 
540
if mkdir -p . 2>/dev/null; then
 
541
  as_mkdir_p=:
 
542
else
 
543
  test -d ./-p && rmdir ./-p
 
544
  as_mkdir_p=false
 
545
fi
 
546
 
 
547
if test -x / >/dev/null 2>&1; then
 
548
  as_test_x='test -x'
 
549
else
 
550
  if ls -dL / >/dev/null 2>&1; then
 
551
    as_ls_L_option=L
 
552
  else
 
553
    as_ls_L_option=
 
554
  fi
 
555
  as_test_x='
 
556
    eval sh -c '\''
 
557
      if test -d "$1"; then
 
558
        test -d "$1/.";
 
559
      else
 
560
        case $1 in
 
561
        -*)set "./$1";;
 
562
        esac;
 
563
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
564
        ???[sx]*):;;*)false;;esac;fi
 
565
    '\'' sh
 
566
  '
 
567
fi
 
568
as_executable_p=$as_test_x
 
569
 
 
570
# Sed expression to map a string onto a valid CPP name.
 
571
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
572
 
 
573
# Sed expression to map a string onto a valid variable name.
 
574
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
575
 
 
576
 
 
577
 
 
578
 
 
579
# Check that we are running under the correct shell.
 
580
SHELL=${CONFIG_SHELL-/bin/sh}
 
581
 
 
582
case X$ECHO in
 
583
X*--fallback-echo)
 
584
  # Remove one level of quotation (which was required for Make).
 
585
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
586
  ;;
 
587
esac
 
588
 
 
589
echo=${ECHO-echo}
 
590
if test "X$1" = X--no-reexec; then
 
591
  # Discard the --no-reexec flag, and continue.
 
592
  shift
 
593
elif test "X$1" = X--fallback-echo; then
 
594
  # Avoid inline document here, it may be left over
 
595
  :
 
596
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
 
597
  # Yippee, $echo works!
 
598
  :
 
599
else
 
600
  # Restart under the correct shell.
 
601
  exec $SHELL "$0" --no-reexec ${1+"$@"}
 
602
fi
 
603
 
 
604
if test "X$1" = X--fallback-echo; then
 
605
  # used as fallback echo
 
606
  shift
 
607
  cat <<EOF
 
608
$*
 
609
EOF
 
610
  exit 0
 
611
fi
 
612
 
 
613
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
614
# if CDPATH is set.
 
615
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
616
 
 
617
if test -z "$ECHO"; then
 
618
if test "X${echo_test_string+set}" != Xset; then
 
619
# find a string as large as possible, as long as the shell can cope with it
 
620
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
621
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
622
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
 
623
       echo_test_string=`eval $cmd` &&
 
624
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
 
625
    then
 
626
      break
 
627
    fi
 
628
  done
 
629
fi
 
630
 
 
631
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
632
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
633
   test "X$echo_testing_string" = "X$echo_test_string"; then
 
634
  :
 
635
else
 
636
  # The Solaris, AIX, and Digital Unix default echo programs unquote
 
637
  # backslashes.  This makes it impossible to quote backslashes using
 
638
  #   echo "$something" | sed 's/\\/\\\\/g'
 
639
  #
 
640
  # So, first we look for a working echo in the user's PATH.
 
641
 
 
642
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
643
  for dir in $PATH /usr/ucb; do
 
644
    IFS="$lt_save_ifs"
 
645
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
646
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
647
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
648
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
649
      echo="$dir/echo"
 
650
      break
 
651
    fi
 
652
  done
 
653
  IFS="$lt_save_ifs"
 
654
 
 
655
  if test "X$echo" = Xecho; then
 
656
    # We didn't find a better echo, so look for alternatives.
 
657
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
 
658
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
 
659
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
660
      # This shell has a builtin print -r that does the trick.
 
661
      echo='print -r'
 
662
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
 
663
         test "X$CONFIG_SHELL" != X/bin/ksh; then
 
664
      # If we have ksh, try running configure again with it.
 
665
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
666
      export ORIGINAL_CONFIG_SHELL
 
667
      CONFIG_SHELL=/bin/ksh
 
668
      export CONFIG_SHELL
 
669
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
670
    else
 
671
      # Try using printf.
 
672
      echo='printf %s\n'
 
673
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
674
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
675
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
676
        # Cool, printf works
 
677
        :
 
678
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
679
           test "X$echo_testing_string" = 'X\t' &&
 
680
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
681
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
682
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
683
        export CONFIG_SHELL
 
684
        SHELL="$CONFIG_SHELL"
 
685
        export SHELL
 
686
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
687
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
688
           test "X$echo_testing_string" = 'X\t' &&
 
689
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
690
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
691
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
692
      else
 
693
        # maybe with a smaller string...
 
694
        prev=:
 
695
 
 
696
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
697
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
 
698
          then
 
699
            break
 
700
          fi
 
701
          prev="$cmd"
 
702
        done
 
703
 
 
704
        if test "$prev" != 'sed 50q "$0"'; then
 
705
          echo_test_string=`eval $prev`
 
706
          export echo_test_string
 
707
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
708
        else
 
709
          # Oops.  We lost completely, so just stick with echo.
 
710
          echo=echo
 
711
        fi
 
712
      fi
 
713
    fi
 
714
  fi
 
715
fi
 
716
fi
 
717
 
 
718
# Copy echo and quote the copy suitably for passing to libtool from
 
719
# the Makefile, instead of quoting the original, which is used later.
 
720
ECHO=$echo
 
721
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
722
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
723
fi
 
724
 
 
725
 
 
726
 
 
727
 
 
728
tagnames=${tagnames+${tagnames},}CXX
 
729
 
 
730
tagnames=${tagnames+${tagnames},}F77
 
731
 
 
732
exec 7<&0 </dev/null 6>&1
 
733
 
 
734
# Name of the host.
 
735
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
736
# so uname gets run too.
 
737
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
738
 
 
739
#
 
740
# Initializations.
 
741
#
 
742
ac_default_prefix=/usr/local
 
743
ac_clean_files=
 
744
ac_config_libobj_dir=.
 
745
LIBOBJS=
 
746
cross_compiling=no
 
747
subdirs=
 
748
MFLAGS=
 
749
MAKEFLAGS=
 
750
SHELL=${CONFIG_SHELL-/bin/sh}
 
751
 
 
752
# Identity of this package.
 
753
PACKAGE_NAME='Ember'
 
754
PACKAGE_TARNAME='ember'
 
755
PACKAGE_VERSION='0.5.6'
 
756
PACKAGE_STRING='Ember 0.5.6'
 
757
PACKAGE_BUGREPORT='clients@worldforge.org'
 
758
 
 
759
ac_unique_file="src"
 
760
# Factoring default headers for most tests.
 
761
ac_includes_default="\
 
762
#include <stdio.h>
 
763
#ifdef HAVE_SYS_TYPES_H
 
764
# include <sys/types.h>
 
765
#endif
 
766
#ifdef HAVE_SYS_STAT_H
 
767
# include <sys/stat.h>
 
768
#endif
 
769
#ifdef STDC_HEADERS
 
770
# include <stdlib.h>
 
771
# include <stddef.h>
 
772
#else
 
773
# ifdef HAVE_STDLIB_H
 
774
#  include <stdlib.h>
 
775
# endif
 
776
#endif
 
777
#ifdef HAVE_STRING_H
 
778
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
779
#  include <memory.h>
 
780
# endif
 
781
# include <string.h>
 
782
#endif
 
783
#ifdef HAVE_STRINGS_H
 
784
# include <strings.h>
 
785
#endif
 
786
#ifdef HAVE_INTTYPES_H
 
787
# include <inttypes.h>
 
788
#endif
 
789
#ifdef HAVE_STDINT_H
 
790
# include <stdint.h>
 
791
#endif
 
792
#ifdef HAVE_UNISTD_H
 
793
# include <unistd.h>
 
794
#endif"
 
795
 
 
796
ac_subst_vars='LTLIBOBJS
 
797
WF_LIBS
 
798
WF_CFLAGS
 
799
SIG_LIBS
 
800
SIG_CFLAGS
 
801
FREEALUT_LIBS
 
802
FREEALUT_CFLAGS
 
803
OPENAL_LIBS
 
804
OPENAL_CFLAGS
 
805
LUA_LIBS
 
806
LUA_CFLAGS
 
807
OGRE_LIBS
 
808
OGRE_CFLAGS
 
809
CEGUI_LIBS
 
810
CEGUI_CFLAGS
 
811
PKG_CONFIG
 
812
HAVE_LIBTINYXML_FALSE
 
813
HAVE_LIBTINYXML_TRUE
 
814
BINRELOC_LIBS
 
815
BINRELOC_CFLAGS
 
816
SDL_LIBS
 
817
SDL_CFLAGS
 
818
SDL_CONFIG
 
819
BUILD_STATIC_FALSE
 
820
BUILD_STATIC_TRUE
 
821
LIBOBJS
 
822
XMLLINT
 
823
LIBTOOL
 
824
ac_ct_F77
 
825
FFLAGS
 
826
F77
 
827
CXXCPP
 
828
NMEDIT
 
829
DSYMUTIL
 
830
RANLIB
 
831
AR
 
832
ECHO
 
833
EGREP
 
834
GREP
 
835
SED
 
836
LN_S
 
837
CPP
 
838
am__fastdepCC_FALSE
 
839
am__fastdepCC_TRUE
 
840
CCDEPMODE
 
841
ac_ct_CC
 
842
CFLAGS
 
843
CC
 
844
am__fastdepCXX_FALSE
 
845
am__fastdepCXX_TRUE
 
846
CXXDEPMODE
 
847
AMDEPBACKSLASH
 
848
AMDEP_FALSE
 
849
AMDEP_TRUE
 
850
am__quote
 
851
am__include
 
852
DEPDIR
 
853
OBJEXT
 
854
EXEEXT
 
855
ac_ct_CXX
 
856
CPPFLAGS
 
857
LDFLAGS
 
858
CXXFLAGS
 
859
CXX
 
860
am__untar
 
861
am__tar
 
862
AMTAR
 
863
am__leading_dot
 
864
SET_MAKE
 
865
AWK
 
866
mkdir_p
 
867
MKDIR_P
 
868
INSTALL_STRIP_PROGRAM
 
869
STRIP
 
870
install_sh
 
871
MAKEINFO
 
872
AUTOHEADER
 
873
AUTOMAKE
 
874
AUTOCONF
 
875
ACLOCAL
 
876
VERSION
 
877
PACKAGE
 
878
CYGPATH_W
 
879
am__isrc
 
880
INSTALL_DATA
 
881
INSTALL_SCRIPT
 
882
INSTALL_PROGRAM
 
883
target_os
 
884
target_vendor
 
885
target_cpu
 
886
target
 
887
host_os
 
888
host_vendor
 
889
host_cpu
 
890
host
 
891
build_os
 
892
build_vendor
 
893
build_cpu
 
894
build
 
895
target_alias
 
896
host_alias
 
897
build_alias
 
898
LIBS
 
899
ECHO_T
 
900
ECHO_N
 
901
ECHO_C
 
902
DEFS
 
903
mandir
 
904
localedir
 
905
libdir
 
906
psdir
 
907
pdfdir
 
908
dvidir
 
909
htmldir
 
910
infodir
 
911
docdir
 
912
oldincludedir
 
913
includedir
 
914
localstatedir
 
915
sharedstatedir
 
916
sysconfdir
 
917
datadir
 
918
datarootdir
 
919
libexecdir
 
920
sbindir
 
921
bindir
 
922
program_transform_name
 
923
prefix
 
924
exec_prefix
 
925
PACKAGE_BUGREPORT
 
926
PACKAGE_STRING
 
927
PACKAGE_VERSION
 
928
PACKAGE_TARNAME
 
929
PACKAGE_NAME
 
930
PATH_SEPARATOR
 
931
SHELL'
 
932
ac_subst_files=''
 
933
ac_user_opts='
 
934
enable_option_checking
 
935
enable_dependency_tracking
 
936
enable_shared
 
937
enable_static
 
938
enable_fast_install
 
939
with_gnu_ld
 
940
enable_libtool_lock
 
941
with_pic
 
942
with_tags
 
943
enable_static_build
 
944
enable_freeimage_check
 
945
with_sdl_prefix
 
946
with_sdl_exec_prefix
 
947
enable_sdltest
 
948
enable_binreloc
 
949
enable_binreloc_threads
 
950
enable_debug
 
951
enable_thread_safe
 
952
enable_gprof
 
953
'
 
954
      ac_precious_vars='build_alias
 
955
host_alias
 
956
target_alias
 
957
CXX
 
958
CXXFLAGS
 
959
LDFLAGS
 
960
LIBS
 
961
CPPFLAGS
 
962
CCC
 
963
CC
 
964
CFLAGS
 
965
CPP
 
966
CXXCPP
 
967
F77
 
968
FFLAGS
 
969
PKG_CONFIG
 
970
CEGUI_CFLAGS
 
971
CEGUI_LIBS
 
972
OGRE_CFLAGS
 
973
OGRE_LIBS
 
974
LUA_CFLAGS
 
975
LUA_LIBS
 
976
OPENAL_CFLAGS
 
977
OPENAL_LIBS
 
978
FREEALUT_CFLAGS
 
979
FREEALUT_LIBS
 
980
SIG_CFLAGS
 
981
SIG_LIBS
 
982
WF_CFLAGS
 
983
WF_LIBS'
 
984
 
 
985
 
 
986
# Initialize some variables set by options.
 
987
ac_init_help=
 
988
ac_init_version=false
 
989
ac_unrecognized_opts=
 
990
ac_unrecognized_sep=
 
991
# The variables have the same names as the options, with
 
992
# dashes changed to underlines.
 
993
cache_file=/dev/null
 
994
exec_prefix=NONE
 
995
no_create=
 
996
no_recursion=
 
997
prefix=NONE
 
998
program_prefix=NONE
 
999
program_suffix=NONE
 
1000
program_transform_name=s,x,x,
 
1001
silent=
 
1002
site=
 
1003
srcdir=
 
1004
verbose=
 
1005
x_includes=NONE
 
1006
x_libraries=NONE
 
1007
 
 
1008
# Installation directory options.
 
1009
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
1010
# and all the variables that are supposed to be based on exec_prefix
 
1011
# by default will actually change.
 
1012
# Use braces instead of parens because sh, perl, etc. also accept them.
 
1013
# (The list follows the same order as the GNU Coding Standards.)
 
1014
bindir='${exec_prefix}/bin'
 
1015
sbindir='${exec_prefix}/sbin'
 
1016
libexecdir='${exec_prefix}/libexec'
 
1017
datarootdir='${prefix}/share'
 
1018
datadir='${datarootdir}'
 
1019
sysconfdir='${prefix}/etc'
 
1020
sharedstatedir='${prefix}/com'
 
1021
localstatedir='${prefix}/var'
 
1022
includedir='${prefix}/include'
 
1023
oldincludedir='/usr/include'
 
1024
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
1025
infodir='${datarootdir}/info'
 
1026
htmldir='${docdir}'
 
1027
dvidir='${docdir}'
 
1028
pdfdir='${docdir}'
 
1029
psdir='${docdir}'
 
1030
libdir='${exec_prefix}/lib'
 
1031
localedir='${datarootdir}/locale'
 
1032
mandir='${datarootdir}/man'
 
1033
 
 
1034
ac_prev=
 
1035
ac_dashdash=
 
1036
for ac_option
 
1037
do
 
1038
  # If the previous option needs an argument, assign it.
 
1039
  if test -n "$ac_prev"; then
 
1040
    eval $ac_prev=\$ac_option
 
1041
    ac_prev=
 
1042
    continue
 
1043
  fi
 
1044
 
 
1045
  case $ac_option in
 
1046
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
1047
  *)    ac_optarg=yes ;;
 
1048
  esac
 
1049
 
 
1050
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
1051
 
 
1052
  case $ac_dashdash$ac_option in
 
1053
  --)
 
1054
    ac_dashdash=yes ;;
 
1055
 
 
1056
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
1057
    ac_prev=bindir ;;
 
1058
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
1059
    bindir=$ac_optarg ;;
 
1060
 
 
1061
  -build | --build | --buil | --bui | --bu)
 
1062
    ac_prev=build_alias ;;
 
1063
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
1064
    build_alias=$ac_optarg ;;
 
1065
 
 
1066
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
1067
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
1068
    ac_prev=cache_file ;;
 
1069
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
1070
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
1071
    cache_file=$ac_optarg ;;
 
1072
 
 
1073
  --config-cache | -C)
 
1074
    cache_file=config.cache ;;
 
1075
 
 
1076
  -datadir | --datadir | --datadi | --datad)
 
1077
    ac_prev=datadir ;;
 
1078
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
1079
    datadir=$ac_optarg ;;
 
1080
 
 
1081
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
1082
  | --dataroo | --dataro | --datar)
 
1083
    ac_prev=datarootdir ;;
 
1084
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
1085
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
1086
    datarootdir=$ac_optarg ;;
 
1087
 
 
1088
  -disable-* | --disable-*)
 
1089
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
1090
    # Reject names that are not valid shell variable names.
 
1091
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1092
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
 
1093
   { (exit 1); exit 1; }; }
 
1094
    ac_useropt_orig=$ac_useropt
 
1095
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1096
    case $ac_user_opts in
 
1097
      *"
 
1098
"enable_$ac_useropt"
 
1099
"*) ;;
 
1100
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
 
1101
         ac_unrecognized_sep=', ';;
 
1102
    esac
 
1103
    eval enable_$ac_useropt=no ;;
 
1104
 
 
1105
  -docdir | --docdir | --docdi | --doc | --do)
 
1106
    ac_prev=docdir ;;
 
1107
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
1108
    docdir=$ac_optarg ;;
 
1109
 
 
1110
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
1111
    ac_prev=dvidir ;;
 
1112
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
1113
    dvidir=$ac_optarg ;;
 
1114
 
 
1115
  -enable-* | --enable-*)
 
1116
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
1117
    # Reject names that are not valid shell variable names.
 
1118
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1119
      { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
 
1120
   { (exit 1); exit 1; }; }
 
1121
    ac_useropt_orig=$ac_useropt
 
1122
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1123
    case $ac_user_opts in
 
1124
      *"
 
1125
"enable_$ac_useropt"
 
1126
"*) ;;
 
1127
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
 
1128
         ac_unrecognized_sep=', ';;
 
1129
    esac
 
1130
    eval enable_$ac_useropt=\$ac_optarg ;;
 
1131
 
 
1132
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
1133
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
1134
  | --exec | --exe | --ex)
 
1135
    ac_prev=exec_prefix ;;
 
1136
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
1137
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
1138
  | --exec=* | --exe=* | --ex=*)
 
1139
    exec_prefix=$ac_optarg ;;
 
1140
 
 
1141
  -gas | --gas | --ga | --g)
 
1142
    # Obsolete; use --with-gas.
 
1143
    with_gas=yes ;;
 
1144
 
 
1145
  -help | --help | --hel | --he | -h)
 
1146
    ac_init_help=long ;;
 
1147
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
1148
    ac_init_help=recursive ;;
 
1149
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
1150
    ac_init_help=short ;;
 
1151
 
 
1152
  -host | --host | --hos | --ho)
 
1153
    ac_prev=host_alias ;;
 
1154
  -host=* | --host=* | --hos=* | --ho=*)
 
1155
    host_alias=$ac_optarg ;;
 
1156
 
 
1157
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
1158
    ac_prev=htmldir ;;
 
1159
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
1160
  | --ht=*)
 
1161
    htmldir=$ac_optarg ;;
 
1162
 
 
1163
  -includedir | --includedir | --includedi | --included | --include \
 
1164
  | --includ | --inclu | --incl | --inc)
 
1165
    ac_prev=includedir ;;
 
1166
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
1167
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
1168
    includedir=$ac_optarg ;;
 
1169
 
 
1170
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
1171
    ac_prev=infodir ;;
 
1172
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
1173
    infodir=$ac_optarg ;;
 
1174
 
 
1175
  -libdir | --libdir | --libdi | --libd)
 
1176
    ac_prev=libdir ;;
 
1177
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
1178
    libdir=$ac_optarg ;;
 
1179
 
 
1180
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
1181
  | --libexe | --libex | --libe)
 
1182
    ac_prev=libexecdir ;;
 
1183
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
1184
  | --libexe=* | --libex=* | --libe=*)
 
1185
    libexecdir=$ac_optarg ;;
 
1186
 
 
1187
  -localedir | --localedir | --localedi | --localed | --locale)
 
1188
    ac_prev=localedir ;;
 
1189
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
1190
    localedir=$ac_optarg ;;
 
1191
 
 
1192
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
1193
  | --localstate | --localstat | --localsta | --localst | --locals)
 
1194
    ac_prev=localstatedir ;;
 
1195
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
1196
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
1197
    localstatedir=$ac_optarg ;;
 
1198
 
 
1199
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
1200
    ac_prev=mandir ;;
 
1201
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
1202
    mandir=$ac_optarg ;;
 
1203
 
 
1204
  -nfp | --nfp | --nf)
 
1205
    # Obsolete; use --without-fp.
 
1206
    with_fp=no ;;
 
1207
 
 
1208
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
1209
  | --no-cr | --no-c | -n)
 
1210
    no_create=yes ;;
 
1211
 
 
1212
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
1213
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
1214
    no_recursion=yes ;;
 
1215
 
 
1216
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
1217
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
1218
  | --oldin | --oldi | --old | --ol | --o)
 
1219
    ac_prev=oldincludedir ;;
 
1220
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
1221
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
1222
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
1223
    oldincludedir=$ac_optarg ;;
 
1224
 
 
1225
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
1226
    ac_prev=prefix ;;
 
1227
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
1228
    prefix=$ac_optarg ;;
 
1229
 
 
1230
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
1231
  | --program-pre | --program-pr | --program-p)
 
1232
    ac_prev=program_prefix ;;
 
1233
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
1234
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
1235
    program_prefix=$ac_optarg ;;
 
1236
 
 
1237
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
1238
  | --program-suf | --program-su | --program-s)
 
1239
    ac_prev=program_suffix ;;
 
1240
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
1241
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
1242
    program_suffix=$ac_optarg ;;
 
1243
 
 
1244
  -program-transform-name | --program-transform-name \
 
1245
  | --program-transform-nam | --program-transform-na \
 
1246
  | --program-transform-n | --program-transform- \
 
1247
  | --program-transform | --program-transfor \
 
1248
  | --program-transfo | --program-transf \
 
1249
  | --program-trans | --program-tran \
 
1250
  | --progr-tra | --program-tr | --program-t)
 
1251
    ac_prev=program_transform_name ;;
 
1252
  -program-transform-name=* | --program-transform-name=* \
 
1253
  | --program-transform-nam=* | --program-transform-na=* \
 
1254
  | --program-transform-n=* | --program-transform-=* \
 
1255
  | --program-transform=* | --program-transfor=* \
 
1256
  | --program-transfo=* | --program-transf=* \
 
1257
  | --program-trans=* | --program-tran=* \
 
1258
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
1259
    program_transform_name=$ac_optarg ;;
 
1260
 
 
1261
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1262
    ac_prev=pdfdir ;;
 
1263
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1264
    pdfdir=$ac_optarg ;;
 
1265
 
 
1266
  -psdir | --psdir | --psdi | --psd | --ps)
 
1267
    ac_prev=psdir ;;
 
1268
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1269
    psdir=$ac_optarg ;;
 
1270
 
 
1271
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1272
  | -silent | --silent | --silen | --sile | --sil)
 
1273
    silent=yes ;;
 
1274
 
 
1275
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
1276
    ac_prev=sbindir ;;
 
1277
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
1278
  | --sbi=* | --sb=*)
 
1279
    sbindir=$ac_optarg ;;
 
1280
 
 
1281
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
1282
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
1283
  | --sharedst | --shareds | --shared | --share | --shar \
 
1284
  | --sha | --sh)
 
1285
    ac_prev=sharedstatedir ;;
 
1286
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
1287
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
1288
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
1289
  | --sha=* | --sh=*)
 
1290
    sharedstatedir=$ac_optarg ;;
 
1291
 
 
1292
  -site | --site | --sit)
 
1293
    ac_prev=site ;;
 
1294
  -site=* | --site=* | --sit=*)
 
1295
    site=$ac_optarg ;;
 
1296
 
 
1297
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
1298
    ac_prev=srcdir ;;
 
1299
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
1300
    srcdir=$ac_optarg ;;
 
1301
 
 
1302
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
1303
  | --syscon | --sysco | --sysc | --sys | --sy)
 
1304
    ac_prev=sysconfdir ;;
 
1305
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
1306
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
1307
    sysconfdir=$ac_optarg ;;
 
1308
 
 
1309
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
1310
    ac_prev=target_alias ;;
 
1311
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
1312
    target_alias=$ac_optarg ;;
 
1313
 
 
1314
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
1315
    verbose=yes ;;
 
1316
 
 
1317
  -version | --version | --versio | --versi | --vers | -V)
 
1318
    ac_init_version=: ;;
 
1319
 
 
1320
  -with-* | --with-*)
 
1321
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1322
    # Reject names that are not valid shell variable names.
 
1323
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1324
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
 
1325
   { (exit 1); exit 1; }; }
 
1326
    ac_useropt_orig=$ac_useropt
 
1327
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1328
    case $ac_user_opts in
 
1329
      *"
 
1330
"with_$ac_useropt"
 
1331
"*) ;;
 
1332
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 
1333
         ac_unrecognized_sep=', ';;
 
1334
    esac
 
1335
    eval with_$ac_useropt=\$ac_optarg ;;
 
1336
 
 
1337
  -without-* | --without-*)
 
1338
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1339
    # Reject names that are not valid shell variable names.
 
1340
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 
1341
      { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
 
1342
   { (exit 1); exit 1; }; }
 
1343
    ac_useropt_orig=$ac_useropt
 
1344
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 
1345
    case $ac_user_opts in
 
1346
      *"
 
1347
"with_$ac_useropt"
 
1348
"*) ;;
 
1349
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 
1350
         ac_unrecognized_sep=', ';;
 
1351
    esac
 
1352
    eval with_$ac_useropt=no ;;
 
1353
 
 
1354
  --x)
 
1355
    # Obsolete; use --with-x.
 
1356
    with_x=yes ;;
 
1357
 
 
1358
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
1359
  | --x-incl | --x-inc | --x-in | --x-i)
 
1360
    ac_prev=x_includes ;;
 
1361
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
1362
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
1363
    x_includes=$ac_optarg ;;
 
1364
 
 
1365
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
1366
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
1367
    ac_prev=x_libraries ;;
 
1368
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
1369
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
1370
    x_libraries=$ac_optarg ;;
 
1371
 
 
1372
  -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
 
1373
Try \`$0 --help' for more information." >&2
 
1374
   { (exit 1); exit 1; }; }
 
1375
    ;;
 
1376
 
 
1377
  *=*)
 
1378
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1379
    # Reject names that are not valid shell variable names.
 
1380
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
1381
      { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
1382
   { (exit 1); exit 1; }; }
 
1383
    eval $ac_envvar=\$ac_optarg
 
1384
    export $ac_envvar ;;
 
1385
 
 
1386
  *)
 
1387
    # FIXME: should be removed in autoconf 3.0.
 
1388
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1389
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1390
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1391
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
1392
    ;;
 
1393
 
 
1394
  esac
 
1395
done
 
1396
 
 
1397
if test -n "$ac_prev"; then
 
1398
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1399
  { $as_echo "$as_me: error: missing argument to $ac_option" >&2
 
1400
   { (exit 1); exit 1; }; }
 
1401
fi
 
1402
 
 
1403
if test -n "$ac_unrecognized_opts"; then
 
1404
  case $enable_option_checking in
 
1405
    no) ;;
 
1406
    fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
 
1407
   { (exit 1); exit 1; }; } ;;
 
1408
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 
1409
  esac
 
1410
fi
 
1411
 
 
1412
# Check all directory arguments for consistency.
 
1413
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1414
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1415
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1416
                libdir localedir mandir
 
1417
do
 
1418
  eval ac_val=\$$ac_var
 
1419
  # Remove trailing slashes.
 
1420
  case $ac_val in
 
1421
    */ )
 
1422
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 
1423
      eval $ac_var=\$ac_val;;
 
1424
  esac
 
1425
  # Be sure to have absolute directory names.
 
1426
  case $ac_val in
 
1427
    [\\/$]* | ?:[\\/]* )  continue;;
 
1428
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1429
  esac
 
1430
  { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
1431
   { (exit 1); exit 1; }; }
 
1432
done
 
1433
 
 
1434
# There might be people who depend on the old broken behavior: `$host'
 
1435
# used to hold the argument of --host etc.
 
1436
# FIXME: To remove some day.
 
1437
build=$build_alias
 
1438
host=$host_alias
 
1439
target=$target_alias
 
1440
 
 
1441
# FIXME: To remove some day.
 
1442
if test "x$host_alias" != x; then
 
1443
  if test "x$build_alias" = x; then
 
1444
    cross_compiling=maybe
 
1445
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
1446
    If a cross compiler is detected then cross compile mode will be used." >&2
 
1447
  elif test "x$build_alias" != "x$host_alias"; then
 
1448
    cross_compiling=yes
 
1449
  fi
 
1450
fi
 
1451
 
 
1452
ac_tool_prefix=
 
1453
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1454
 
 
1455
test "$silent" = yes && exec 6>/dev/null
 
1456
 
 
1457
 
 
1458
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1459
ac_ls_di=`ls -di .` &&
 
1460
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1461
  { $as_echo "$as_me: error: working directory cannot be determined" >&2
 
1462
   { (exit 1); exit 1; }; }
 
1463
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1464
  { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
 
1465
   { (exit 1); exit 1; }; }
 
1466
 
 
1467
 
 
1468
# Find the source files, if location was not specified.
 
1469
if test -z "$srcdir"; then
 
1470
  ac_srcdir_defaulted=yes
 
1471
  # Try the directory containing this script, then the parent directory.
 
1472
  ac_confdir=`$as_dirname -- "$as_myself" ||
 
1473
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1474
         X"$as_myself" : 'X\(//\)[^/]' \| \
 
1475
         X"$as_myself" : 'X\(//\)$' \| \
 
1476
         X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 
1477
$as_echo X"$as_myself" |
 
1478
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1479
            s//\1/
 
1480
            q
 
1481
          }
 
1482
          /^X\(\/\/\)[^/].*/{
 
1483
            s//\1/
 
1484
            q
 
1485
          }
 
1486
          /^X\(\/\/\)$/{
 
1487
            s//\1/
 
1488
            q
 
1489
          }
 
1490
          /^X\(\/\).*/{
 
1491
            s//\1/
 
1492
            q
 
1493
          }
 
1494
          s/.*/./; q'`
 
1495
  srcdir=$ac_confdir
 
1496
  if test ! -r "$srcdir/$ac_unique_file"; then
 
1497
    srcdir=..
 
1498
  fi
 
1499
else
 
1500
  ac_srcdir_defaulted=no
 
1501
fi
 
1502
if test ! -r "$srcdir/$ac_unique_file"; then
 
1503
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1504
  { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
1505
   { (exit 1); exit 1; }; }
 
1506
fi
 
1507
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1508
ac_abs_confdir=`(
 
1509
        cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
 
1510
   { (exit 1); exit 1; }; }
 
1511
        pwd)`
 
1512
# When building in place, set srcdir=.
 
1513
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1514
  srcdir=.
 
1515
fi
 
1516
# Remove unnecessary trailing slashes from srcdir.
 
1517
# Double slashes in file names in object file debugging info
 
1518
# mess up M-x gdb in Emacs.
 
1519
case $srcdir in
 
1520
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1521
esac
 
1522
for ac_var in $ac_precious_vars; do
 
1523
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1524
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1525
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1526
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1527
done
 
1528
 
 
1529
#
 
1530
# Report the --help message.
 
1531
#
 
1532
if test "$ac_init_help" = "long"; then
 
1533
  # Omit some internal or obsolete options to make the list less imposing.
 
1534
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1535
  cat <<_ACEOF
 
1536
\`configure' configures Ember 0.5.6 to adapt to many kinds of systems.
 
1537
 
 
1538
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1539
 
 
1540
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1541
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1542
 
 
1543
Defaults for the options are specified in brackets.
 
1544
 
 
1545
Configuration:
 
1546
  -h, --help              display this help and exit
 
1547
      --help=short        display options specific to this package
 
1548
      --help=recursive    display the short help of all the included packages
 
1549
  -V, --version           display version information and exit
 
1550
  -q, --quiet, --silent   do not print \`checking...' messages
 
1551
      --cache-file=FILE   cache test results in FILE [disabled]
 
1552
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1553
  -n, --no-create         do not create output files
 
1554
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1555
 
 
1556
Installation directories:
 
1557
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1558
                          [$ac_default_prefix]
 
1559
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1560
                          [PREFIX]
 
1561
 
 
1562
By default, \`make install' will install all the files in
 
1563
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1564
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1565
for instance \`--prefix=\$HOME'.
 
1566
 
 
1567
For better control, use the options below.
 
1568
 
 
1569
Fine tuning of the installation directories:
 
1570
  --bindir=DIR            user executables [EPREFIX/bin]
 
1571
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
 
1572
  --libexecdir=DIR        program executables [EPREFIX/libexec]
 
1573
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 
1574
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 
1575
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 
1576
  --libdir=DIR            object code libraries [EPREFIX/lib]
 
1577
  --includedir=DIR        C header files [PREFIX/include]
 
1578
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 
1579
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 
1580
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 
1581
  --infodir=DIR           info documentation [DATAROOTDIR/info]
 
1582
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 
1583
  --mandir=DIR            man documentation [DATAROOTDIR/man]
 
1584
  --docdir=DIR            documentation root [DATAROOTDIR/doc/ember]
 
1585
  --htmldir=DIR           html documentation [DOCDIR]
 
1586
  --dvidir=DIR            dvi documentation [DOCDIR]
 
1587
  --pdfdir=DIR            pdf documentation [DOCDIR]
 
1588
  --psdir=DIR             ps documentation [DOCDIR]
 
1589
_ACEOF
 
1590
 
 
1591
  cat <<\_ACEOF
 
1592
 
 
1593
Program names:
 
1594
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1595
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1596
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1597
 
 
1598
System types:
 
1599
  --build=BUILD     configure for building on BUILD [guessed]
 
1600
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1601
  --target=TARGET   configure for building compilers for TARGET [HOST]
 
1602
_ACEOF
 
1603
fi
 
1604
 
 
1605
if test -n "$ac_init_help"; then
 
1606
  case $ac_init_help in
 
1607
     short | recursive ) echo "Configuration of Ember 0.5.6:";;
 
1608
   esac
 
1609
  cat <<\_ACEOF
 
1610
 
 
1611
Optional Features:
 
1612
  --disable-option-checking  ignore unrecognized --enable/--with options
 
1613
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1614
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1615
  --disable-dependency-tracking  speeds up one-time build
 
1616
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1617
  --enable-shared[=PKGS]  build shared libraries [default=yes]
 
1618
  --enable-static[=PKGS]  build static libraries [default=yes]
 
1619
  --enable-fast-install[=PKGS]
 
1620
                          optimize for fast installation [default=yes]
 
1621
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1622
  --enable-static-build   enable static link of some libs (default=no)
 
1623
    --disable-freeimage-check
 
1624
                          disable the check for if Ogre is built with
 
1625
                          FreeImage. Disable this only if you're absolutly
 
1626
                          sure that libraries in FreeImage won't clash with
 
1627
                          other system libraries (default is enabled)
 
1628
  --disable-sdltest       Do not try to compile and run a test SDL program
 
1629
  --enable-binreloc       compile with binary relocation support
 
1630
                          (default=enable when available)
 
1631
  --enable-binreloc-threads      compile binary relocation with threads support
 
1632
                                 (default=yes)
 
1633
  --enable-debug     creates debugging code default=no
 
1634
  --enable-multithread     creates multi threaded code default=no
 
1635
  --enable-gprof     Add flags for gprof default=no
 
1636
 
 
1637
Optional Packages:
 
1638
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1639
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1640
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1641
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1642
                          both]
 
1643
  --with-tags[=TAGS]      include additional configurations [automatic]
 
1644
  --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
 
1645
  --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
 
1646
 
 
1647
Some influential environment variables:
 
1648
  CXX         C++ compiler command
 
1649
  CXXFLAGS    C++ compiler flags
 
1650
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1651
              nonstandard directory <lib dir>
 
1652
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1653
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
 
1654
              you have headers in a nonstandard directory <include dir>
 
1655
  CC          C compiler command
 
1656
  CFLAGS      C compiler flags
 
1657
  CPP         C preprocessor
 
1658
  CXXCPP      C++ preprocessor
 
1659
  F77         Fortran 77 compiler command
 
1660
  FFLAGS      Fortran 77 compiler flags
 
1661
  PKG_CONFIG  path to pkg-config utility
 
1662
  CEGUI_CFLAGS
 
1663
              C compiler flags for CEGUI, overriding pkg-config
 
1664
  CEGUI_LIBS  linker flags for CEGUI, overriding pkg-config
 
1665
  OGRE_CFLAGS C compiler flags for OGRE, overriding pkg-config
 
1666
  OGRE_LIBS   linker flags for OGRE, overriding pkg-config
 
1667
  LUA_CFLAGS  C compiler flags for LUA, overriding pkg-config
 
1668
  LUA_LIBS    linker flags for LUA, overriding pkg-config
 
1669
  OPENAL_CFLAGS
 
1670
              C compiler flags for OPENAL, overriding pkg-config
 
1671
  OPENAL_LIBS linker flags for OPENAL, overriding pkg-config
 
1672
  FREEALUT_CFLAGS
 
1673
              C compiler flags for FREEALUT, overriding pkg-config
 
1674
  FREEALUT_LIBS
 
1675
              linker flags for FREEALUT, overriding pkg-config
 
1676
  SIG_CFLAGS  C compiler flags for SIG, overriding pkg-config
 
1677
  SIG_LIBS    linker flags for SIG, overriding pkg-config
 
1678
  WF_CFLAGS   C compiler flags for WF, overriding pkg-config
 
1679
  WF_LIBS     linker flags for WF, overriding pkg-config
 
1680
 
 
1681
Use these variables to override the choices made by `configure' or to help
 
1682
it to find libraries and programs with nonstandard names/locations.
 
1683
 
 
1684
Report bugs to <clients@worldforge.org>.
 
1685
_ACEOF
 
1686
ac_status=$?
 
1687
fi
 
1688
 
 
1689
if test "$ac_init_help" = "recursive"; then
 
1690
  # If there are subdirs, report their specific --help.
 
1691
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1692
    test -d "$ac_dir" ||
 
1693
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 
1694
      continue
 
1695
    ac_builddir=.
 
1696
 
 
1697
case "$ac_dir" in
 
1698
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1699
*)
 
1700
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
1701
  # A ".." for each directory in $ac_dir_suffix.
 
1702
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
1703
  case $ac_top_builddir_sub in
 
1704
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1705
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1706
  esac ;;
 
1707
esac
 
1708
ac_abs_top_builddir=$ac_pwd
 
1709
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1710
# for backward compatibility:
 
1711
ac_top_builddir=$ac_top_build_prefix
 
1712
 
 
1713
case $srcdir in
 
1714
  .)  # We are building in place.
 
1715
    ac_srcdir=.
 
1716
    ac_top_srcdir=$ac_top_builddir_sub
 
1717
    ac_abs_top_srcdir=$ac_pwd ;;
 
1718
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
1719
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1720
    ac_top_srcdir=$srcdir
 
1721
    ac_abs_top_srcdir=$srcdir ;;
 
1722
  *) # Relative name.
 
1723
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1724
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1725
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1726
esac
 
1727
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1728
 
 
1729
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1730
    # Check for guested configure.
 
1731
    if test -f "$ac_srcdir/configure.gnu"; then
 
1732
      echo &&
 
1733
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1734
    elif test -f "$ac_srcdir/configure"; then
 
1735
      echo &&
 
1736
      $SHELL "$ac_srcdir/configure" --help=recursive
 
1737
    else
 
1738
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1739
    fi || ac_status=$?
 
1740
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1741
  done
 
1742
fi
 
1743
 
 
1744
test -n "$ac_init_help" && exit $ac_status
 
1745
if $ac_init_version; then
 
1746
  cat <<\_ACEOF
 
1747
Ember configure 0.5.6
 
1748
generated by GNU Autoconf 2.63
 
1749
 
 
1750
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
1751
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
 
1752
This configure script is free software; the Free Software Foundation
 
1753
gives unlimited permission to copy, distribute and modify it.
 
1754
 
 
1755
This script is under the GPL and is owned by the people in AUTHORS
 
1756
_ACEOF
 
1757
  exit
 
1758
fi
 
1759
cat >config.log <<_ACEOF
 
1760
This file contains any messages produced by compilers while
 
1761
running configure, to aid debugging if configure makes a mistake.
 
1762
 
 
1763
It was created by Ember $as_me 0.5.6, which was
 
1764
generated by GNU Autoconf 2.63.  Invocation command line was
 
1765
 
 
1766
  $ $0 $@
 
1767
 
 
1768
_ACEOF
 
1769
exec 5>>config.log
 
1770
{
 
1771
cat <<_ASUNAME
 
1772
## --------- ##
 
1773
## Platform. ##
 
1774
## --------- ##
 
1775
 
 
1776
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1777
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1778
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1779
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1780
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1781
 
 
1782
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1783
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1784
 
 
1785
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1786
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1787
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1788
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
1789
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1790
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1791
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1792
 
 
1793
_ASUNAME
 
1794
 
 
1795
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1796
for as_dir in $PATH
 
1797
do
 
1798
  IFS=$as_save_IFS
 
1799
  test -z "$as_dir" && as_dir=.
 
1800
  $as_echo "PATH: $as_dir"
 
1801
done
 
1802
IFS=$as_save_IFS
 
1803
 
 
1804
} >&5
 
1805
 
 
1806
cat >&5 <<_ACEOF
 
1807
 
 
1808
 
 
1809
## ----------- ##
 
1810
## Core tests. ##
 
1811
## ----------- ##
 
1812
 
 
1813
_ACEOF
 
1814
 
 
1815
 
 
1816
# Keep a trace of the command line.
 
1817
# Strip out --no-create and --no-recursion so they do not pile up.
 
1818
# Strip out --silent because we don't want to record it for future runs.
 
1819
# Also quote any args containing shell meta-characters.
 
1820
# Make two passes to allow for proper duplicate-argument suppression.
 
1821
ac_configure_args=
 
1822
ac_configure_args0=
 
1823
ac_configure_args1=
 
1824
ac_must_keep_next=false
 
1825
for ac_pass in 1 2
 
1826
do
 
1827
  for ac_arg
 
1828
  do
 
1829
    case $ac_arg in
 
1830
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1831
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1832
    | -silent | --silent | --silen | --sile | --sil)
 
1833
      continue ;;
 
1834
    *\'*)
 
1835
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1836
    esac
 
1837
    case $ac_pass in
 
1838
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1839
    2)
 
1840
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1841
      if test $ac_must_keep_next = true; then
 
1842
        ac_must_keep_next=false # Got value, back to normal.
 
1843
      else
 
1844
        case $ac_arg in
 
1845
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1846
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1847
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1848
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1849
            case "$ac_configure_args0 " in
 
1850
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1851
            esac
 
1852
            ;;
 
1853
          -* ) ac_must_keep_next=true ;;
 
1854
        esac
 
1855
      fi
 
1856
      ac_configure_args="$ac_configure_args '$ac_arg'"
 
1857
      ;;
 
1858
    esac
 
1859
  done
 
1860
done
 
1861
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1862
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1863
 
 
1864
# When interrupted or exit'd, cleanup temporary files, and complete
 
1865
# config.log.  We remove comments because anyway the quotes in there
 
1866
# would cause problems or look ugly.
 
1867
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
1868
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
1869
trap 'exit_status=$?
 
1870
  # Save into config.log some information that might help in debugging.
 
1871
  {
 
1872
    echo
 
1873
 
 
1874
    cat <<\_ASBOX
 
1875
## ---------------- ##
 
1876
## Cache variables. ##
 
1877
## ---------------- ##
 
1878
_ASBOX
 
1879
    echo
 
1880
    # The following way of writing the cache mishandles newlines in values,
 
1881
(
 
1882
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
1883
    eval ac_val=\$$ac_var
 
1884
    case $ac_val in #(
 
1885
    *${as_nl}*)
 
1886
      case $ac_var in #(
 
1887
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
 
1888
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
1889
      esac
 
1890
      case $ac_var in #(
 
1891
      _ | IFS | as_nl) ;; #(
 
1892
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
1893
      *) $as_unset $ac_var ;;
 
1894
      esac ;;
 
1895
    esac
 
1896
  done
 
1897
  (set) 2>&1 |
 
1898
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
1899
    *${as_nl}ac_space=\ *)
 
1900
      sed -n \
 
1901
        "s/'\''/'\''\\\\'\'''\''/g;
 
1902
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
1903
      ;; #(
 
1904
    *)
 
1905
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
1906
      ;;
 
1907
    esac |
 
1908
    sort
 
1909
)
 
1910
    echo
 
1911
 
 
1912
    cat <<\_ASBOX
 
1913
## ----------------- ##
 
1914
## Output variables. ##
 
1915
## ----------------- ##
 
1916
_ASBOX
 
1917
    echo
 
1918
    for ac_var in $ac_subst_vars
 
1919
    do
 
1920
      eval ac_val=\$$ac_var
 
1921
      case $ac_val in
 
1922
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1923
      esac
 
1924
      $as_echo "$ac_var='\''$ac_val'\''"
 
1925
    done | sort
 
1926
    echo
 
1927
 
 
1928
    if test -n "$ac_subst_files"; then
 
1929
      cat <<\_ASBOX
 
1930
## ------------------- ##
 
1931
## File substitutions. ##
 
1932
## ------------------- ##
 
1933
_ASBOX
 
1934
      echo
 
1935
      for ac_var in $ac_subst_files
 
1936
      do
 
1937
        eval ac_val=\$$ac_var
 
1938
        case $ac_val in
 
1939
        *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1940
        esac
 
1941
        $as_echo "$ac_var='\''$ac_val'\''"
 
1942
      done | sort
 
1943
      echo
 
1944
    fi
 
1945
 
 
1946
    if test -s confdefs.h; then
 
1947
      cat <<\_ASBOX
 
1948
## ----------- ##
 
1949
## confdefs.h. ##
 
1950
## ----------- ##
 
1951
_ASBOX
 
1952
      echo
 
1953
      cat confdefs.h
 
1954
      echo
 
1955
    fi
 
1956
    test "$ac_signal" != 0 &&
 
1957
      $as_echo "$as_me: caught signal $ac_signal"
 
1958
    $as_echo "$as_me: exit $exit_status"
 
1959
  } >&5
 
1960
  rm -f core *.core core.conftest.* &&
 
1961
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
1962
    exit $exit_status
 
1963
' 0
 
1964
for ac_signal in 1 2 13 15; do
 
1965
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1966
done
 
1967
ac_signal=0
 
1968
 
 
1969
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1970
rm -f -r conftest* confdefs.h
 
1971
 
 
1972
# Predefined preprocessor variables.
 
1973
 
 
1974
cat >>confdefs.h <<_ACEOF
 
1975
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1976
_ACEOF
 
1977
 
 
1978
 
 
1979
cat >>confdefs.h <<_ACEOF
 
1980
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1981
_ACEOF
 
1982
 
 
1983
 
 
1984
cat >>confdefs.h <<_ACEOF
 
1985
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1986
_ACEOF
 
1987
 
 
1988
 
 
1989
cat >>confdefs.h <<_ACEOF
 
1990
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1991
_ACEOF
 
1992
 
 
1993
 
 
1994
cat >>confdefs.h <<_ACEOF
 
1995
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1996
_ACEOF
 
1997
 
 
1998
 
 
1999
# Let the site file select an alternate cache file if it wants to.
 
2000
# Prefer an explicitly selected file to automatically selected ones.
 
2001
ac_site_file1=NONE
 
2002
ac_site_file2=NONE
 
2003
if test -n "$CONFIG_SITE"; then
 
2004
  ac_site_file1=$CONFIG_SITE
 
2005
elif test "x$prefix" != xNONE; then
 
2006
  ac_site_file1=$prefix/share/config.site
 
2007
  ac_site_file2=$prefix/etc/config.site
 
2008
else
 
2009
  ac_site_file1=$ac_default_prefix/share/config.site
 
2010
  ac_site_file2=$ac_default_prefix/etc/config.site
 
2011
fi
 
2012
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
 
2013
do
 
2014
  test "x$ac_site_file" = xNONE && continue
 
2015
  if test -r "$ac_site_file"; then
 
2016
    { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
2017
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
 
2018
    sed 's/^/| /' "$ac_site_file" >&5
 
2019
    . "$ac_site_file"
 
2020
  fi
 
2021
done
 
2022
 
 
2023
if test -r "$cache_file"; then
 
2024
  # Some versions of bash will fail to source /dev/null (special
 
2025
  # files actually), so we avoid doing that.
 
2026
  if test -f "$cache_file"; then
 
2027
    { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
2028
$as_echo "$as_me: loading cache $cache_file" >&6;}
 
2029
    case $cache_file in
 
2030
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
2031
      *)                      . "./$cache_file";;
 
2032
    esac
 
2033
  fi
 
2034
else
 
2035
  { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
2036
$as_echo "$as_me: creating cache $cache_file" >&6;}
 
2037
  >$cache_file
 
2038
fi
 
2039
 
 
2040
# Check that the precious variables saved in the cache have kept the same
 
2041
# value.
 
2042
ac_cache_corrupted=false
 
2043
for ac_var in $ac_precious_vars; do
 
2044
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
2045
  eval ac_new_set=\$ac_env_${ac_var}_set
 
2046
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
2047
  eval ac_new_val=\$ac_env_${ac_var}_value
 
2048
  case $ac_old_set,$ac_new_set in
 
2049
    set,)
 
2050
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
2051
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
2052
      ac_cache_corrupted=: ;;
 
2053
    ,set)
 
2054
      { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
2055
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
2056
      ac_cache_corrupted=: ;;
 
2057
    ,);;
 
2058
    *)
 
2059
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
2060
        # differences in whitespace do not lead to failure.
 
2061
        ac_old_val_w=`echo x $ac_old_val`
 
2062
        ac_new_val_w=`echo x $ac_new_val`
 
2063
        if test "$ac_old_val_w" != "$ac_new_val_w"; then
 
2064
          { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
2065
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
2066
          ac_cache_corrupted=:
 
2067
        else
 
2068
          { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 
2069
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 
2070
          eval $ac_var=\$ac_old_val
 
2071
        fi
 
2072
        { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
 
2073
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 
2074
        { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
 
2075
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
 
2076
      fi;;
 
2077
  esac
 
2078
  # Pass precious variables to config.status.
 
2079
  if test "$ac_new_set" = set; then
 
2080
    case $ac_new_val in
 
2081
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
2082
    *) ac_arg=$ac_var=$ac_new_val ;;
 
2083
    esac
 
2084
    case " $ac_configure_args " in
 
2085
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
2086
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
2087
    esac
 
2088
  fi
 
2089
done
 
2090
if $ac_cache_corrupted; then
 
2091
  { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
2092
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
2093
  { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
2094
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
2095
  { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
2096
$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
2097
   { (exit 1); exit 1; }; }
 
2098
fi
 
2099
 
 
2100
 
 
2101
 
 
2102
 
 
2103
 
 
2104
 
 
2105
 
 
2106
 
 
2107
 
 
2108
 
 
2109
 
 
2110
 
 
2111
 
 
2112
 
 
2113
 
 
2114
 
 
2115
 
 
2116
 
 
2117
 
 
2118
 
 
2119
 
 
2120
 
 
2121
 
 
2122
 
 
2123
 
 
2124
ac_ext=c
 
2125
ac_cpp='$CPP $CPPFLAGS'
 
2126
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2127
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2128
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2129
 
 
2130
 
 
2131
 
 
2132
 
 
2133
 
 
2134
# Detect the canonical host and target build environment.
 
2135
ac_aux_dir=
 
2136
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
 
2137
  if test -f "$ac_dir/install-sh"; then
 
2138
    ac_aux_dir=$ac_dir
 
2139
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
2140
    break
 
2141
  elif test -f "$ac_dir/install.sh"; then
 
2142
    ac_aux_dir=$ac_dir
 
2143
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
2144
    break
 
2145
  elif test -f "$ac_dir/shtool"; then
 
2146
    ac_aux_dir=$ac_dir
 
2147
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
2148
    break
 
2149
  fi
 
2150
done
 
2151
if test -z "$ac_aux_dir"; then
 
2152
  { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
 
2153
$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
 
2154
   { (exit 1); exit 1; }; }
 
2155
fi
 
2156
 
 
2157
# These three variables are undocumented and unsupported,
 
2158
# and are intended to be withdrawn in a future Autoconf release.
 
2159
# They can cause serious problems if a builder's source tree is in a directory
 
2160
# whose full name contains unusual characters.
 
2161
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
2162
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
2163
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
2164
 
 
2165
 
 
2166
# Make sure we can run config.sub.
 
2167
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
2168
  { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
 
2169
$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
 
2170
   { (exit 1); exit 1; }; }
 
2171
 
 
2172
{ $as_echo "$as_me:$LINENO: checking build system type" >&5
 
2173
$as_echo_n "checking build system type... " >&6; }
 
2174
if test "${ac_cv_build+set}" = set; then
 
2175
  $as_echo_n "(cached) " >&6
 
2176
else
 
2177
  ac_build_alias=$build_alias
 
2178
test "x$ac_build_alias" = x &&
 
2179
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
2180
test "x$ac_build_alias" = x &&
 
2181
  { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
2182
$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
2183
   { (exit 1); exit 1; }; }
 
2184
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
2185
  { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
 
2186
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
 
2187
   { (exit 1); exit 1; }; }
 
2188
 
 
2189
fi
 
2190
{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
2191
$as_echo "$ac_cv_build" >&6; }
 
2192
case $ac_cv_build in
 
2193
*-*-*) ;;
 
2194
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
 
2195
$as_echo "$as_me: error: invalid value of canonical build" >&2;}
 
2196
   { (exit 1); exit 1; }; };;
 
2197
esac
 
2198
build=$ac_cv_build
 
2199
ac_save_IFS=$IFS; IFS='-'
 
2200
set x $ac_cv_build
 
2201
shift
 
2202
build_cpu=$1
 
2203
build_vendor=$2
 
2204
shift; shift
 
2205
# Remember, the first character of IFS is used to create $*,
 
2206
# except with old shells:
 
2207
build_os=$*
 
2208
IFS=$ac_save_IFS
 
2209
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
2210
 
 
2211
 
 
2212
{ $as_echo "$as_me:$LINENO: checking host system type" >&5
 
2213
$as_echo_n "checking host system type... " >&6; }
 
2214
if test "${ac_cv_host+set}" = set; then
 
2215
  $as_echo_n "(cached) " >&6
 
2216
else
 
2217
  if test "x$host_alias" = x; then
 
2218
  ac_cv_host=$ac_cv_build
 
2219
else
 
2220
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
2221
    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
 
2222
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
 
2223
   { (exit 1); exit 1; }; }
 
2224
fi
 
2225
 
 
2226
fi
 
2227
{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
2228
$as_echo "$ac_cv_host" >&6; }
 
2229
case $ac_cv_host in
 
2230
*-*-*) ;;
 
2231
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
 
2232
$as_echo "$as_me: error: invalid value of canonical host" >&2;}
 
2233
   { (exit 1); exit 1; }; };;
 
2234
esac
 
2235
host=$ac_cv_host
 
2236
ac_save_IFS=$IFS; IFS='-'
 
2237
set x $ac_cv_host
 
2238
shift
 
2239
host_cpu=$1
 
2240
host_vendor=$2
 
2241
shift; shift
 
2242
# Remember, the first character of IFS is used to create $*,
 
2243
# except with old shells:
 
2244
host_os=$*
 
2245
IFS=$ac_save_IFS
 
2246
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
2247
 
 
2248
 
 
2249
{ $as_echo "$as_me:$LINENO: checking target system type" >&5
 
2250
$as_echo_n "checking target system type... " >&6; }
 
2251
if test "${ac_cv_target+set}" = set; then
 
2252
  $as_echo_n "(cached) " >&6
 
2253
else
 
2254
  if test "x$target_alias" = x; then
 
2255
  ac_cv_target=$ac_cv_host
 
2256
else
 
2257
  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
 
2258
    { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
 
2259
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
 
2260
   { (exit 1); exit 1; }; }
 
2261
fi
 
2262
 
 
2263
fi
 
2264
{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
 
2265
$as_echo "$ac_cv_target" >&6; }
 
2266
case $ac_cv_target in
 
2267
*-*-*) ;;
 
2268
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
 
2269
$as_echo "$as_me: error: invalid value of canonical target" >&2;}
 
2270
   { (exit 1); exit 1; }; };;
 
2271
esac
 
2272
target=$ac_cv_target
 
2273
ac_save_IFS=$IFS; IFS='-'
 
2274
set x $ac_cv_target
 
2275
shift
 
2276
target_cpu=$1
 
2277
target_vendor=$2
 
2278
shift; shift
 
2279
# Remember, the first character of IFS is used to create $*,
 
2280
# except with old shells:
 
2281
target_os=$*
 
2282
IFS=$ac_save_IFS
 
2283
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
 
2284
 
 
2285
 
 
2286
# The aliases save the names the user supplied, while $host etc.
 
2287
# will get canonicalized.
 
2288
test -n "$target_alias" &&
 
2289
  test "$program_prefix$program_suffix$program_transform_name" = \
 
2290
    NONENONEs,x,x, &&
 
2291
  program_prefix=${target_alias}-
 
2292
 
 
2293
#AM_INIT_AUTOMAKE([tar-ustar nostdinc dist-bzip2 check-news])
 
2294
am__api_version='1.10'
 
2295
 
 
2296
# Find a good install program.  We prefer a C program (faster),
 
2297
# so one script is as good as another.  But avoid the broken or
 
2298
# incompatible versions:
 
2299
# SysV /etc/install, /usr/sbin/install
 
2300
# SunOS /usr/etc/install
 
2301
# IRIX /sbin/install
 
2302
# AIX /bin/install
 
2303
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
2304
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
2305
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
2306
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
2307
# OS/2's system install, which has a completely different semantic
 
2308
# ./install, which can be erroneously created by make from ./install.sh.
 
2309
# Reject install programs that cannot install multiple files.
 
2310
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
2311
$as_echo_n "checking for a BSD-compatible install... " >&6; }
 
2312
if test -z "$INSTALL"; then
 
2313
if test "${ac_cv_path_install+set}" = set; then
 
2314
  $as_echo_n "(cached) " >&6
 
2315
else
 
2316
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2317
for as_dir in $PATH
 
2318
do
 
2319
  IFS=$as_save_IFS
 
2320
  test -z "$as_dir" && as_dir=.
 
2321
  # Account for people who put trailing slashes in PATH elements.
 
2322
case $as_dir/ in
 
2323
  ./ | .// | /cC/* | \
 
2324
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
2325
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
2326
  /usr/ucb/* ) ;;
 
2327
  *)
 
2328
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
2329
    # Don't use installbsd from OSF since it installs stuff as root
 
2330
    # by default.
 
2331
    for ac_prog in ginstall scoinst install; do
 
2332
      for ac_exec_ext in '' $ac_executable_extensions; do
 
2333
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
2334
          if test $ac_prog = install &&
 
2335
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2336
            # AIX install.  It has an incompatible calling convention.
 
2337
            :
 
2338
          elif test $ac_prog = install &&
 
2339
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2340
            # program-specific install script used by HP pwplus--don't use.
 
2341
            :
 
2342
          else
 
2343
            rm -rf conftest.one conftest.two conftest.dir
 
2344
            echo one > conftest.one
 
2345
            echo two > conftest.two
 
2346
            mkdir conftest.dir
 
2347
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
 
2348
              test -s conftest.one && test -s conftest.two &&
 
2349
              test -s conftest.dir/conftest.one &&
 
2350
              test -s conftest.dir/conftest.two
 
2351
            then
 
2352
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
2353
              break 3
 
2354
            fi
 
2355
          fi
 
2356
        fi
 
2357
      done
 
2358
    done
 
2359
    ;;
 
2360
esac
 
2361
 
 
2362
done
 
2363
IFS=$as_save_IFS
 
2364
 
 
2365
rm -rf conftest.one conftest.two conftest.dir
 
2366
 
 
2367
fi
 
2368
  if test "${ac_cv_path_install+set}" = set; then
 
2369
    INSTALL=$ac_cv_path_install
 
2370
  else
 
2371
    # As a last resort, use the slow shell script.  Don't cache a
 
2372
    # value for INSTALL within a source directory, because that will
 
2373
    # break other packages using the cache if that directory is
 
2374
    # removed, or if the value is a relative name.
 
2375
    INSTALL=$ac_install_sh
 
2376
  fi
 
2377
fi
 
2378
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
 
2379
$as_echo "$INSTALL" >&6; }
 
2380
 
 
2381
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
2382
# It thinks the first close brace ends the variable substitution.
 
2383
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
2384
 
 
2385
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
2386
 
 
2387
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
2388
 
 
2389
{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
2390
$as_echo_n "checking whether build environment is sane... " >&6; }
 
2391
# Just in case
 
2392
sleep 1
 
2393
echo timestamp > conftest.file
 
2394
# Do `set' in a subshell so we don't clobber the current shell's
 
2395
# arguments.  Must try -L first in case configure is actually a
 
2396
# symlink; some systems play weird games with the mod time of symlinks
 
2397
# (eg FreeBSD returns the mod time of the symlink's containing
 
2398
# directory).
 
2399
if (
 
2400
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
2401
   if test "$*" = "X"; then
 
2402
      # -L didn't work.
 
2403
      set X `ls -t $srcdir/configure conftest.file`
 
2404
   fi
 
2405
   rm -f conftest.file
 
2406
   if test "$*" != "X $srcdir/configure conftest.file" \
 
2407
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
2408
 
 
2409
      # If neither matched, then we have a broken ls.  This can happen
 
2410
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
2411
      # broken ls alias from the environment.  This has actually
 
2412
      # happened.  Such a system could not be considered "sane".
 
2413
      { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
2414
alias in your environment" >&5
 
2415
$as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
2416
alias in your environment" >&2;}
 
2417
   { (exit 1); exit 1; }; }
 
2418
   fi
 
2419
 
 
2420
   test "$2" = conftest.file
 
2421
   )
 
2422
then
 
2423
   # Ok.
 
2424
   :
 
2425
else
 
2426
   { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
2427
Check your system clock" >&5
 
2428
$as_echo "$as_me: error: newly created file is older than distributed files!
 
2429
Check your system clock" >&2;}
 
2430
   { (exit 1); exit 1; }; }
 
2431
fi
 
2432
{ $as_echo "$as_me:$LINENO: result: yes" >&5
 
2433
$as_echo "yes" >&6; }
 
2434
test "$program_prefix" != NONE &&
 
2435
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
 
2436
# Use a double $ so make ignores it.
 
2437
test "$program_suffix" != NONE &&
 
2438
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
 
2439
# Double any \ or $.
 
2440
# By default was `s,x,x', remove it if useless.
 
2441
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
 
2442
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
 
2443
 
 
2444
# expand $ac_aux_dir to an absolute path
 
2445
am_aux_dir=`cd $ac_aux_dir && pwd`
 
2446
 
 
2447
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
2448
# Use eval to expand $SHELL
 
2449
if eval "$MISSING --run true"; then
 
2450
  am_missing_run="$MISSING --run "
 
2451
else
 
2452
  am_missing_run=
 
2453
  { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
2454
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
2455
fi
 
2456
 
 
2457
{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
 
2458
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
 
2459
if test -z "$MKDIR_P"; then
 
2460
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2461
  $as_echo_n "(cached) " >&6
 
2462
else
 
2463
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2464
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
2465
do
 
2466
  IFS=$as_save_IFS
 
2467
  test -z "$as_dir" && as_dir=.
 
2468
  for ac_prog in mkdir gmkdir; do
 
2469
         for ac_exec_ext in '' $ac_executable_extensions; do
 
2470
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
 
2471
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
 
2472
             'mkdir (GNU coreutils) '* | \
 
2473
             'mkdir (coreutils) '* | \
 
2474
             'mkdir (fileutils) '4.1*)
 
2475
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
 
2476
               break 3;;
 
2477
           esac
 
2478
         done
 
2479
       done
 
2480
done
 
2481
IFS=$as_save_IFS
 
2482
 
 
2483
fi
 
2484
 
 
2485
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2486
    MKDIR_P="$ac_cv_path_mkdir -p"
 
2487
  else
 
2488
    # As a last resort, use the slow shell script.  Don't cache a
 
2489
    # value for MKDIR_P within a source directory, because that will
 
2490
    # break other packages using the cache if that directory is
 
2491
    # removed, or if the value is a relative name.
 
2492
    test -d ./--version && rmdir ./--version
 
2493
    MKDIR_P="$ac_install_sh -d"
 
2494
  fi
 
2495
fi
 
2496
{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
 
2497
$as_echo "$MKDIR_P" >&6; }
 
2498
 
 
2499
mkdir_p="$MKDIR_P"
 
2500
case $mkdir_p in
 
2501
  [\\/$]* | ?:[\\/]*) ;;
 
2502
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
2503
esac
 
2504
 
 
2505
for ac_prog in gawk mawk nawk awk
 
2506
do
 
2507
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2508
set dummy $ac_prog; ac_word=$2
 
2509
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2510
$as_echo_n "checking for $ac_word... " >&6; }
 
2511
if test "${ac_cv_prog_AWK+set}" = set; then
 
2512
  $as_echo_n "(cached) " >&6
 
2513
else
 
2514
  if test -n "$AWK"; then
 
2515
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
2516
else
 
2517
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2518
for as_dir in $PATH
 
2519
do
 
2520
  IFS=$as_save_IFS
 
2521
  test -z "$as_dir" && as_dir=.
 
2522
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2523
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2524
    ac_cv_prog_AWK="$ac_prog"
 
2525
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2526
    break 2
 
2527
  fi
 
2528
done
 
2529
done
 
2530
IFS=$as_save_IFS
 
2531
 
 
2532
fi
 
2533
fi
 
2534
AWK=$ac_cv_prog_AWK
 
2535
if test -n "$AWK"; then
 
2536
  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
 
2537
$as_echo "$AWK" >&6; }
 
2538
else
 
2539
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2540
$as_echo "no" >&6; }
 
2541
fi
 
2542
 
 
2543
 
 
2544
  test -n "$AWK" && break
 
2545
done
 
2546
 
 
2547
{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2548
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 
2549
set x ${MAKE-make}
 
2550
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
2551
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
 
2552
  $as_echo_n "(cached) " >&6
 
2553
else
 
2554
  cat >conftest.make <<\_ACEOF
 
2555
SHELL = /bin/sh
 
2556
all:
 
2557
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
2558
_ACEOF
 
2559
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
2560
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
2561
  *@@@%%%=?*=@@@%%%*)
 
2562
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
2563
  *)
 
2564
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
2565
esac
 
2566
rm -f conftest.make
 
2567
fi
 
2568
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
2569
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
2570
$as_echo "yes" >&6; }
 
2571
  SET_MAKE=
 
2572
else
 
2573
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2574
$as_echo "no" >&6; }
 
2575
  SET_MAKE="MAKE=${MAKE-make}"
 
2576
fi
 
2577
 
 
2578
rm -rf .tst 2>/dev/null
 
2579
mkdir .tst 2>/dev/null
 
2580
if test -d .tst; then
 
2581
  am__leading_dot=.
 
2582
else
 
2583
  am__leading_dot=_
 
2584
fi
 
2585
rmdir .tst 2>/dev/null
 
2586
 
 
2587
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
2588
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
2589
  # is not polluted with repeated "-I."
 
2590
  am__isrc=' -I$(srcdir)'
 
2591
  # test to see if srcdir already configured
 
2592
  if test -f $srcdir/config.status; then
 
2593
    { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
2594
$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
2595
   { (exit 1); exit 1; }; }
 
2596
  fi
 
2597
fi
 
2598
 
 
2599
# test whether we have cygpath
 
2600
if test -z "$CYGPATH_W"; then
 
2601
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
2602
    CYGPATH_W='cygpath -w'
 
2603
  else
 
2604
    CYGPATH_W=echo
 
2605
  fi
 
2606
fi
 
2607
 
 
2608
 
 
2609
# Define the identity of the package.
 
2610
 PACKAGE='ember'
 
2611
 VERSION='0.5.6'
 
2612
 
 
2613
 
 
2614
cat >>confdefs.h <<_ACEOF
 
2615
#define PACKAGE "$PACKAGE"
 
2616
_ACEOF
 
2617
 
 
2618
 
 
2619
cat >>confdefs.h <<_ACEOF
 
2620
#define VERSION "$VERSION"
 
2621
_ACEOF
 
2622
 
 
2623
# Some tools Automake needs.
 
2624
 
 
2625
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
2626
 
 
2627
 
 
2628
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
2629
 
 
2630
 
 
2631
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
2632
 
 
2633
 
 
2634
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
2635
 
 
2636
 
 
2637
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
2638
 
 
2639
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
 
2640
 
 
2641
# Installed binaries are usually stripped using `strip' when the user
 
2642
# run `make install-strip'.  However `strip' might not be the right
 
2643
# tool to use in cross-compilation environments, therefore Automake
 
2644
# will honor the `STRIP' environment variable to overrule this program.
 
2645
if test "$cross_compiling" != no; then
 
2646
  if test -n "$ac_tool_prefix"; then
 
2647
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
2648
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
2649
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2650
$as_echo_n "checking for $ac_word... " >&6; }
 
2651
if test "${ac_cv_prog_STRIP+set}" = set; then
 
2652
  $as_echo_n "(cached) " >&6
 
2653
else
 
2654
  if test -n "$STRIP"; then
 
2655
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2656
else
 
2657
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2658
for as_dir in $PATH
 
2659
do
 
2660
  IFS=$as_save_IFS
 
2661
  test -z "$as_dir" && as_dir=.
 
2662
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2663
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2664
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2665
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2666
    break 2
 
2667
  fi
 
2668
done
 
2669
done
 
2670
IFS=$as_save_IFS
 
2671
 
 
2672
fi
 
2673
fi
 
2674
STRIP=$ac_cv_prog_STRIP
 
2675
if test -n "$STRIP"; then
 
2676
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
 
2677
$as_echo "$STRIP" >&6; }
 
2678
else
 
2679
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2680
$as_echo "no" >&6; }
 
2681
fi
 
2682
 
 
2683
 
 
2684
fi
 
2685
if test -z "$ac_cv_prog_STRIP"; then
 
2686
  ac_ct_STRIP=$STRIP
 
2687
  # Extract the first word of "strip", so it can be a program name with args.
 
2688
set dummy strip; ac_word=$2
 
2689
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2690
$as_echo_n "checking for $ac_word... " >&6; }
 
2691
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
2692
  $as_echo_n "(cached) " >&6
 
2693
else
 
2694
  if test -n "$ac_ct_STRIP"; then
 
2695
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
2696
else
 
2697
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2698
for as_dir in $PATH
 
2699
do
 
2700
  IFS=$as_save_IFS
 
2701
  test -z "$as_dir" && as_dir=.
 
2702
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2703
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2704
    ac_cv_prog_ac_ct_STRIP="strip"
 
2705
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2706
    break 2
 
2707
  fi
 
2708
done
 
2709
done
 
2710
IFS=$as_save_IFS
 
2711
 
 
2712
fi
 
2713
fi
 
2714
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
2715
if test -n "$ac_ct_STRIP"; then
 
2716
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
2717
$as_echo "$ac_ct_STRIP" >&6; }
 
2718
else
 
2719
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2720
$as_echo "no" >&6; }
 
2721
fi
 
2722
 
 
2723
  if test "x$ac_ct_STRIP" = x; then
 
2724
    STRIP=":"
 
2725
  else
 
2726
    case $cross_compiling:$ac_tool_warned in
 
2727
yes:)
 
2728
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
2729
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2730
ac_tool_warned=yes ;;
 
2731
esac
 
2732
    STRIP=$ac_ct_STRIP
 
2733
  fi
 
2734
else
 
2735
  STRIP="$ac_cv_prog_STRIP"
 
2736
fi
 
2737
 
 
2738
fi
 
2739
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
2740
 
 
2741
# We need awk for the "check" target.  The system "awk" is bad on
 
2742
# some platforms.
 
2743
# Always define AMTAR for backward compatibility.
 
2744
 
 
2745
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
2746
 
 
2747
 
 
2748
{ $as_echo "$as_me:$LINENO: checking how to create a ustar tar archive" >&5
 
2749
$as_echo_n "checking how to create a ustar tar archive... " >&6; }
 
2750
# Loop over all known methods to create a tar archive until one works.
 
2751
_am_tools='gnutar plaintar pax cpio none'
 
2752
_am_tools=${am_cv_prog_tar_ustar-$_am_tools}
 
2753
# Do not fold the above two line into one, because Tru64 sh and
 
2754
# Solaris sh will not grok spaces in the rhs of `-'.
 
2755
for _am_tool in $_am_tools
 
2756
do
 
2757
  case $_am_tool in
 
2758
  gnutar)
 
2759
    for _am_tar in tar gnutar gtar;
 
2760
    do
 
2761
      { echo "$as_me:$LINENO: $_am_tar --version" >&5
 
2762
   ($_am_tar --version) >&5 2>&5
 
2763
   ac_status=$?
 
2764
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2765
   (exit $ac_status); } && break
 
2766
    done
 
2767
    am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
 
2768
    am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
 
2769
    am__untar="$_am_tar -xf -"
 
2770
    ;;
 
2771
  plaintar)
 
2772
    # Must skip GNU tar: if it does not support --format= it doesn't create
 
2773
    # ustar tarball either.
 
2774
    (tar --version) >/dev/null 2>&1 && continue
 
2775
    am__tar='tar chf - "$$tardir"'
 
2776
    am__tar_='tar chf - "$tardir"'
 
2777
    am__untar='tar xf -'
 
2778
    ;;
 
2779
  pax)
 
2780
    am__tar='pax -L -x ustar -w "$$tardir"'
 
2781
    am__tar_='pax -L -x ustar -w "$tardir"'
 
2782
    am__untar='pax -r'
 
2783
    ;;
 
2784
  cpio)
 
2785
    am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
 
2786
    am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
 
2787
    am__untar='cpio -i -H ustar -d'
 
2788
    ;;
 
2789
  none)
 
2790
    am__tar=false
 
2791
    am__tar_=false
 
2792
    am__untar=false
 
2793
    ;;
 
2794
  esac
 
2795
 
 
2796
  # If the value was cached, stop now.  We just wanted to have am__tar
 
2797
  # and am__untar set.
 
2798
  test -n "${am_cv_prog_tar_ustar}" && break
 
2799
 
 
2800
  # tar/untar a dummy directory, and stop if the command works
 
2801
  rm -rf conftest.dir
 
2802
  mkdir conftest.dir
 
2803
  echo GrepMe > conftest.dir/file
 
2804
  { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
 
2805
   (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
 
2806
   ac_status=$?
 
2807
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2808
   (exit $ac_status); }
 
2809
  rm -rf conftest.dir
 
2810
  if test -s conftest.tar; then
 
2811
    { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
 
2812
   ($am__untar <conftest.tar) >&5 2>&5
 
2813
   ac_status=$?
 
2814
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2815
   (exit $ac_status); }
 
2816
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
 
2817
  fi
 
2818
done
 
2819
rm -rf conftest.dir
 
2820
 
 
2821
if test "${am_cv_prog_tar_ustar+set}" = set; then
 
2822
  $as_echo_n "(cached) " >&6
 
2823
else
 
2824
  am_cv_prog_tar_ustar=$_am_tool
 
2825
fi
 
2826
 
 
2827
{ $as_echo "$as_me:$LINENO: result: $am_cv_prog_tar_ustar" >&5
 
2828
$as_echo "$am_cv_prog_tar_ustar" >&6; }
 
2829
 
 
2830
 
 
2831
 
 
2832
 
 
2833
 
 
2834
ac_config_headers="$ac_config_headers src/config.h"
 
2835
 
 
2836
 
 
2837
 
 
2838
 
 
2839
 
 
2840
 
 
2841
 
 
2842
 
 
2843
 
 
2844
# Checks for Programs
 
2845
ac_ext=cpp
 
2846
ac_cpp='$CXXCPP $CPPFLAGS'
 
2847
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2848
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2849
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
2850
if test -z "$CXX"; then
 
2851
  if test -n "$CCC"; then
 
2852
    CXX=$CCC
 
2853
  else
 
2854
    if test -n "$ac_tool_prefix"; then
 
2855
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
2856
  do
 
2857
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2858
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2859
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2860
$as_echo_n "checking for $ac_word... " >&6; }
 
2861
if test "${ac_cv_prog_CXX+set}" = set; then
 
2862
  $as_echo_n "(cached) " >&6
 
2863
else
 
2864
  if test -n "$CXX"; then
 
2865
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
2866
else
 
2867
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2868
for as_dir in $PATH
 
2869
do
 
2870
  IFS=$as_save_IFS
 
2871
  test -z "$as_dir" && as_dir=.
 
2872
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2873
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2874
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
2875
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2876
    break 2
 
2877
  fi
 
2878
done
 
2879
done
 
2880
IFS=$as_save_IFS
 
2881
 
 
2882
fi
 
2883
fi
 
2884
CXX=$ac_cv_prog_CXX
 
2885
if test -n "$CXX"; then
 
2886
  { $as_echo "$as_me:$LINENO: result: $CXX" >&5
 
2887
$as_echo "$CXX" >&6; }
 
2888
else
 
2889
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2890
$as_echo "no" >&6; }
 
2891
fi
 
2892
 
 
2893
 
 
2894
    test -n "$CXX" && break
 
2895
  done
 
2896
fi
 
2897
if test -z "$CXX"; then
 
2898
  ac_ct_CXX=$CXX
 
2899
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
2900
do
 
2901
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2902
set dummy $ac_prog; ac_word=$2
 
2903
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2904
$as_echo_n "checking for $ac_word... " >&6; }
 
2905
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
2906
  $as_echo_n "(cached) " >&6
 
2907
else
 
2908
  if test -n "$ac_ct_CXX"; then
 
2909
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
2910
else
 
2911
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2912
for as_dir in $PATH
 
2913
do
 
2914
  IFS=$as_save_IFS
 
2915
  test -z "$as_dir" && as_dir=.
 
2916
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2917
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2918
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
2919
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2920
    break 2
 
2921
  fi
 
2922
done
 
2923
done
 
2924
IFS=$as_save_IFS
 
2925
 
 
2926
fi
 
2927
fi
 
2928
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
2929
if test -n "$ac_ct_CXX"; then
 
2930
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
2931
$as_echo "$ac_ct_CXX" >&6; }
 
2932
else
 
2933
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
2934
$as_echo "no" >&6; }
 
2935
fi
 
2936
 
 
2937
 
 
2938
  test -n "$ac_ct_CXX" && break
 
2939
done
 
2940
 
 
2941
  if test "x$ac_ct_CXX" = x; then
 
2942
    CXX="g++"
 
2943
  else
 
2944
    case $cross_compiling:$ac_tool_warned in
 
2945
yes:)
 
2946
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
2947
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
2948
ac_tool_warned=yes ;;
 
2949
esac
 
2950
    CXX=$ac_ct_CXX
 
2951
  fi
 
2952
fi
 
2953
 
 
2954
  fi
 
2955
fi
 
2956
# Provide some information about the compiler.
 
2957
$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
 
2958
set X $ac_compile
 
2959
ac_compiler=$2
 
2960
{ (ac_try="$ac_compiler --version >&5"
 
2961
case "(($ac_try" in
 
2962
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2963
  *) ac_try_echo=$ac_try;;
 
2964
esac
 
2965
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
2966
$as_echo "$ac_try_echo") >&5
 
2967
  (eval "$ac_compiler --version >&5") 2>&5
 
2968
  ac_status=$?
 
2969
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2970
  (exit $ac_status); }
 
2971
{ (ac_try="$ac_compiler -v >&5"
 
2972
case "(($ac_try" in
 
2973
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2974
  *) ac_try_echo=$ac_try;;
 
2975
esac
 
2976
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
2977
$as_echo "$ac_try_echo") >&5
 
2978
  (eval "$ac_compiler -v >&5") 2>&5
 
2979
  ac_status=$?
 
2980
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2981
  (exit $ac_status); }
 
2982
{ (ac_try="$ac_compiler -V >&5"
 
2983
case "(($ac_try" in
 
2984
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2985
  *) ac_try_echo=$ac_try;;
 
2986
esac
 
2987
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
2988
$as_echo "$ac_try_echo") >&5
 
2989
  (eval "$ac_compiler -V >&5") 2>&5
 
2990
  ac_status=$?
 
2991
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2992
  (exit $ac_status); }
 
2993
 
 
2994
cat >conftest.$ac_ext <<_ACEOF
 
2995
/* confdefs.h.  */
 
2996
_ACEOF
 
2997
cat confdefs.h >>conftest.$ac_ext
 
2998
cat >>conftest.$ac_ext <<_ACEOF
 
2999
/* end confdefs.h.  */
 
3000
 
 
3001
int
 
3002
main ()
 
3003
{
 
3004
 
 
3005
  ;
 
3006
  return 0;
 
3007
}
 
3008
_ACEOF
 
3009
ac_clean_files_save=$ac_clean_files
 
3010
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
 
3011
# Try to create an executable without -o first, disregard a.out.
 
3012
# It will help us diagnose broken compilers, and finding out an intuition
 
3013
# of exeext.
 
3014
{ $as_echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
 
3015
$as_echo_n "checking for C++ compiler default output file name... " >&6; }
 
3016
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
3017
 
 
3018
# The possible output files:
 
3019
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
 
3020
 
 
3021
ac_rmfiles=
 
3022
for ac_file in $ac_files
 
3023
do
 
3024
  case $ac_file in
 
3025
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3026
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
3027
  esac
 
3028
done
 
3029
rm -f $ac_rmfiles
 
3030
 
 
3031
if { (ac_try="$ac_link_default"
 
3032
case "(($ac_try" in
 
3033
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3034
  *) ac_try_echo=$ac_try;;
 
3035
esac
 
3036
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3037
$as_echo "$ac_try_echo") >&5
 
3038
  (eval "$ac_link_default") 2>&5
 
3039
  ac_status=$?
 
3040
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3041
  (exit $ac_status); }; then
 
3042
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
3043
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
3044
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
3045
# so that the user can short-circuit this test for compilers unknown to
 
3046
# Autoconf.
 
3047
for ac_file in $ac_files ''
 
3048
do
 
3049
  test -f "$ac_file" || continue
 
3050
  case $ac_file in
 
3051
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
 
3052
        ;;
 
3053
    [ab].out )
 
3054
        # We found the default executable, but exeext='' is most
 
3055
        # certainly right.
 
3056
        break;;
 
3057
    *.* )
 
3058
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
3059
        then :; else
 
3060
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3061
        fi
 
3062
        # We set ac_cv_exeext here because the later test for it is not
 
3063
        # safe: cross compilers may not add the suffix if given an `-o'
 
3064
        # argument, so we may need to know it at that point already.
 
3065
        # Even if this section looks crufty: it has the advantage of
 
3066
        # actually working.
 
3067
        break;;
 
3068
    * )
 
3069
        break;;
 
3070
  esac
 
3071
done
 
3072
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
3073
 
 
3074
else
 
3075
  ac_file=''
 
3076
fi
 
3077
 
 
3078
{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
 
3079
$as_echo "$ac_file" >&6; }
 
3080
if test -z "$ac_file"; then
 
3081
  $as_echo "$as_me: failed program was:" >&5
 
3082
sed 's/^/| /' conftest.$ac_ext >&5
 
3083
 
 
3084
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
3085
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3086
{ { $as_echo "$as_me:$LINENO: error: C++ compiler cannot create executables
 
3087
See \`config.log' for more details." >&5
 
3088
$as_echo "$as_me: error: C++ compiler cannot create executables
 
3089
See \`config.log' for more details." >&2;}
 
3090
   { (exit 77); exit 77; }; }; }
 
3091
fi
 
3092
 
 
3093
ac_exeext=$ac_cv_exeext
 
3094
 
 
3095
# Check that the compiler produces executables we can run.  If not, either
 
3096
# the compiler is broken, or we cross compile.
 
3097
{ $as_echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
 
3098
$as_echo_n "checking whether the C++ compiler works... " >&6; }
 
3099
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
3100
# If not cross compiling, check that we can run a simple program.
 
3101
if test "$cross_compiling" != yes; then
 
3102
  if { ac_try='./$ac_file'
 
3103
  { (case "(($ac_try" in
 
3104
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3105
  *) ac_try_echo=$ac_try;;
 
3106
esac
 
3107
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3108
$as_echo "$ac_try_echo") >&5
 
3109
  (eval "$ac_try") 2>&5
 
3110
  ac_status=$?
 
3111
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3112
  (exit $ac_status); }; }; then
 
3113
    cross_compiling=no
 
3114
  else
 
3115
    if test "$cross_compiling" = maybe; then
 
3116
        cross_compiling=yes
 
3117
    else
 
3118
        { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
3119
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3120
{ { $as_echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
 
3121
If you meant to cross compile, use \`--host'.
 
3122
See \`config.log' for more details." >&5
 
3123
$as_echo "$as_me: error: cannot run C++ compiled programs.
 
3124
If you meant to cross compile, use \`--host'.
 
3125
See \`config.log' for more details." >&2;}
 
3126
   { (exit 1); exit 1; }; }; }
 
3127
    fi
 
3128
  fi
 
3129
fi
 
3130
{ $as_echo "$as_me:$LINENO: result: yes" >&5
 
3131
$as_echo "yes" >&6; }
 
3132
 
 
3133
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
 
3134
ac_clean_files=$ac_clean_files_save
 
3135
# Check that the compiler produces executables we can run.  If not, either
 
3136
# the compiler is broken, or we cross compile.
 
3137
{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
3138
$as_echo_n "checking whether we are cross compiling... " >&6; }
 
3139
{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
3140
$as_echo "$cross_compiling" >&6; }
 
3141
 
 
3142
{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
3143
$as_echo_n "checking for suffix of executables... " >&6; }
 
3144
if { (ac_try="$ac_link"
 
3145
case "(($ac_try" in
 
3146
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3147
  *) ac_try_echo=$ac_try;;
 
3148
esac
 
3149
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3150
$as_echo "$ac_try_echo") >&5
 
3151
  (eval "$ac_link") 2>&5
 
3152
  ac_status=$?
 
3153
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3154
  (exit $ac_status); }; then
 
3155
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
3156
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
3157
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
3158
# `rm'.
 
3159
for ac_file in conftest.exe conftest conftest.*; do
 
3160
  test -f "$ac_file" || continue
 
3161
  case $ac_file in
 
3162
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
 
3163
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3164
          break;;
 
3165
    * ) break;;
 
3166
  esac
 
3167
done
 
3168
else
 
3169
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
3170
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3171
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
3172
See \`config.log' for more details." >&5
 
3173
$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
3174
See \`config.log' for more details." >&2;}
 
3175
   { (exit 1); exit 1; }; }; }
 
3176
fi
 
3177
 
 
3178
rm -f conftest$ac_cv_exeext
 
3179
{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
3180
$as_echo "$ac_cv_exeext" >&6; }
 
3181
 
 
3182
rm -f conftest.$ac_ext
 
3183
EXEEXT=$ac_cv_exeext
 
3184
ac_exeext=$EXEEXT
 
3185
{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
3186
$as_echo_n "checking for suffix of object files... " >&6; }
 
3187
if test "${ac_cv_objext+set}" = set; then
 
3188
  $as_echo_n "(cached) " >&6
 
3189
else
 
3190
  cat >conftest.$ac_ext <<_ACEOF
 
3191
/* confdefs.h.  */
 
3192
_ACEOF
 
3193
cat confdefs.h >>conftest.$ac_ext
 
3194
cat >>conftest.$ac_ext <<_ACEOF
 
3195
/* end confdefs.h.  */
 
3196
 
 
3197
int
 
3198
main ()
 
3199
{
 
3200
 
 
3201
  ;
 
3202
  return 0;
 
3203
}
 
3204
_ACEOF
 
3205
rm -f conftest.o conftest.obj
 
3206
if { (ac_try="$ac_compile"
 
3207
case "(($ac_try" in
 
3208
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3209
  *) ac_try_echo=$ac_try;;
 
3210
esac
 
3211
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3212
$as_echo "$ac_try_echo") >&5
 
3213
  (eval "$ac_compile") 2>&5
 
3214
  ac_status=$?
 
3215
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3216
  (exit $ac_status); }; then
 
3217
  for ac_file in conftest.o conftest.obj conftest.*; do
 
3218
  test -f "$ac_file" || continue;
 
3219
  case $ac_file in
 
3220
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
 
3221
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
3222
       break;;
 
3223
  esac
 
3224
done
 
3225
else
 
3226
  $as_echo "$as_me: failed program was:" >&5
 
3227
sed 's/^/| /' conftest.$ac_ext >&5
 
3228
 
 
3229
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
3230
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3231
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
3232
See \`config.log' for more details." >&5
 
3233
$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
3234
See \`config.log' for more details." >&2;}
 
3235
   { (exit 1); exit 1; }; }; }
 
3236
fi
 
3237
 
 
3238
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
3239
fi
 
3240
{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
3241
$as_echo "$ac_cv_objext" >&6; }
 
3242
OBJEXT=$ac_cv_objext
 
3243
ac_objext=$OBJEXT
 
3244
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
3245
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
 
3246
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
3247
  $as_echo_n "(cached) " >&6
 
3248
else
 
3249
  cat >conftest.$ac_ext <<_ACEOF
 
3250
/* confdefs.h.  */
 
3251
_ACEOF
 
3252
cat confdefs.h >>conftest.$ac_ext
 
3253
cat >>conftest.$ac_ext <<_ACEOF
 
3254
/* end confdefs.h.  */
 
3255
 
 
3256
int
 
3257
main ()
 
3258
{
 
3259
#ifndef __GNUC__
 
3260
       choke me
 
3261
#endif
 
3262
 
 
3263
  ;
 
3264
  return 0;
 
3265
}
 
3266
_ACEOF
 
3267
rm -f conftest.$ac_objext
 
3268
if { (ac_try="$ac_compile"
 
3269
case "(($ac_try" in
 
3270
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3271
  *) ac_try_echo=$ac_try;;
 
3272
esac
 
3273
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3274
$as_echo "$ac_try_echo") >&5
 
3275
  (eval "$ac_compile") 2>conftest.er1
 
3276
  ac_status=$?
 
3277
  grep -v '^ *+' conftest.er1 >conftest.err
 
3278
  rm -f conftest.er1
 
3279
  cat conftest.err >&5
 
3280
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3281
  (exit $ac_status); } && {
 
3282
         test -z "$ac_cxx_werror_flag" ||
 
3283
         test ! -s conftest.err
 
3284
       } && test -s conftest.$ac_objext; then
 
3285
  ac_compiler_gnu=yes
 
3286
else
 
3287
  $as_echo "$as_me: failed program was:" >&5
 
3288
sed 's/^/| /' conftest.$ac_ext >&5
 
3289
 
 
3290
        ac_compiler_gnu=no
 
3291
fi
 
3292
 
 
3293
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3294
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
3295
 
 
3296
fi
 
3297
{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
3298
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
 
3299
if test $ac_compiler_gnu = yes; then
 
3300
  GXX=yes
 
3301
else
 
3302
  GXX=
 
3303
fi
 
3304
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
3305
ac_save_CXXFLAGS=$CXXFLAGS
 
3306
{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
3307
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
 
3308
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
3309
  $as_echo_n "(cached) " >&6
 
3310
else
 
3311
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
3312
   ac_cxx_werror_flag=yes
 
3313
   ac_cv_prog_cxx_g=no
 
3314
   CXXFLAGS="-g"
 
3315
   cat >conftest.$ac_ext <<_ACEOF
 
3316
/* confdefs.h.  */
 
3317
_ACEOF
 
3318
cat confdefs.h >>conftest.$ac_ext
 
3319
cat >>conftest.$ac_ext <<_ACEOF
 
3320
/* end confdefs.h.  */
 
3321
 
 
3322
int
 
3323
main ()
 
3324
{
 
3325
 
 
3326
  ;
 
3327
  return 0;
 
3328
}
 
3329
_ACEOF
 
3330
rm -f conftest.$ac_objext
 
3331
if { (ac_try="$ac_compile"
 
3332
case "(($ac_try" in
 
3333
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3334
  *) ac_try_echo=$ac_try;;
 
3335
esac
 
3336
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3337
$as_echo "$ac_try_echo") >&5
 
3338
  (eval "$ac_compile") 2>conftest.er1
 
3339
  ac_status=$?
 
3340
  grep -v '^ *+' conftest.er1 >conftest.err
 
3341
  rm -f conftest.er1
 
3342
  cat conftest.err >&5
 
3343
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3344
  (exit $ac_status); } && {
 
3345
         test -z "$ac_cxx_werror_flag" ||
 
3346
         test ! -s conftest.err
 
3347
       } && test -s conftest.$ac_objext; then
 
3348
  ac_cv_prog_cxx_g=yes
 
3349
else
 
3350
  $as_echo "$as_me: failed program was:" >&5
 
3351
sed 's/^/| /' conftest.$ac_ext >&5
 
3352
 
 
3353
        CXXFLAGS=""
 
3354
      cat >conftest.$ac_ext <<_ACEOF
 
3355
/* confdefs.h.  */
 
3356
_ACEOF
 
3357
cat confdefs.h >>conftest.$ac_ext
 
3358
cat >>conftest.$ac_ext <<_ACEOF
 
3359
/* end confdefs.h.  */
 
3360
 
 
3361
int
 
3362
main ()
 
3363
{
 
3364
 
 
3365
  ;
 
3366
  return 0;
 
3367
}
 
3368
_ACEOF
 
3369
rm -f conftest.$ac_objext
 
3370
if { (ac_try="$ac_compile"
 
3371
case "(($ac_try" in
 
3372
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3373
  *) ac_try_echo=$ac_try;;
 
3374
esac
 
3375
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3376
$as_echo "$ac_try_echo") >&5
 
3377
  (eval "$ac_compile") 2>conftest.er1
 
3378
  ac_status=$?
 
3379
  grep -v '^ *+' conftest.er1 >conftest.err
 
3380
  rm -f conftest.er1
 
3381
  cat conftest.err >&5
 
3382
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3383
  (exit $ac_status); } && {
 
3384
         test -z "$ac_cxx_werror_flag" ||
 
3385
         test ! -s conftest.err
 
3386
       } && test -s conftest.$ac_objext; then
 
3387
  :
 
3388
else
 
3389
  $as_echo "$as_me: failed program was:" >&5
 
3390
sed 's/^/| /' conftest.$ac_ext >&5
 
3391
 
 
3392
        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
3393
         CXXFLAGS="-g"
 
3394
         cat >conftest.$ac_ext <<_ACEOF
 
3395
/* confdefs.h.  */
 
3396
_ACEOF
 
3397
cat confdefs.h >>conftest.$ac_ext
 
3398
cat >>conftest.$ac_ext <<_ACEOF
 
3399
/* end confdefs.h.  */
 
3400
 
 
3401
int
 
3402
main ()
 
3403
{
 
3404
 
 
3405
  ;
 
3406
  return 0;
 
3407
}
 
3408
_ACEOF
 
3409
rm -f conftest.$ac_objext
 
3410
if { (ac_try="$ac_compile"
 
3411
case "(($ac_try" in
 
3412
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3413
  *) ac_try_echo=$ac_try;;
 
3414
esac
 
3415
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3416
$as_echo "$ac_try_echo") >&5
 
3417
  (eval "$ac_compile") 2>conftest.er1
 
3418
  ac_status=$?
 
3419
  grep -v '^ *+' conftest.er1 >conftest.err
 
3420
  rm -f conftest.er1
 
3421
  cat conftest.err >&5
 
3422
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3423
  (exit $ac_status); } && {
 
3424
         test -z "$ac_cxx_werror_flag" ||
 
3425
         test ! -s conftest.err
 
3426
       } && test -s conftest.$ac_objext; then
 
3427
  ac_cv_prog_cxx_g=yes
 
3428
else
 
3429
  $as_echo "$as_me: failed program was:" >&5
 
3430
sed 's/^/| /' conftest.$ac_ext >&5
 
3431
 
 
3432
 
 
3433
fi
 
3434
 
 
3435
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3436
fi
 
3437
 
 
3438
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3439
fi
 
3440
 
 
3441
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3442
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
3443
fi
 
3444
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
3445
$as_echo "$ac_cv_prog_cxx_g" >&6; }
 
3446
if test "$ac_test_CXXFLAGS" = set; then
 
3447
  CXXFLAGS=$ac_save_CXXFLAGS
 
3448
elif test $ac_cv_prog_cxx_g = yes; then
 
3449
  if test "$GXX" = yes; then
 
3450
    CXXFLAGS="-g -O2"
 
3451
  else
 
3452
    CXXFLAGS="-g"
 
3453
  fi
 
3454
else
 
3455
  if test "$GXX" = yes; then
 
3456
    CXXFLAGS="-O2"
 
3457
  else
 
3458
    CXXFLAGS=
 
3459
  fi
 
3460
fi
 
3461
ac_ext=c
 
3462
ac_cpp='$CPP $CPPFLAGS'
 
3463
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3464
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3465
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3466
DEPDIR="${am__leading_dot}deps"
 
3467
 
 
3468
ac_config_commands="$ac_config_commands depfiles"
 
3469
 
 
3470
 
 
3471
am_make=${MAKE-make}
 
3472
cat > confinc << 'END'
 
3473
am__doit:
 
3474
        @echo done
 
3475
.PHONY: am__doit
 
3476
END
 
3477
# If we don't find an include directive, just comment out the code.
 
3478
{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
3479
$as_echo_n "checking for style of include used by $am_make... " >&6; }
 
3480
am__include="#"
 
3481
am__quote=
 
3482
_am_result=none
 
3483
# First try GNU make style include.
 
3484
echo "include confinc" > confmf
 
3485
# We grep out `Entering directory' and `Leaving directory'
 
3486
# messages which can occur if `w' ends up in MAKEFLAGS.
 
3487
# In particular we don't look at `^make:' because GNU make might
 
3488
# be invoked under some other name (usually "gmake"), in which
 
3489
# case it prints its new name instead of `make'.
 
3490
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
3491
   am__include=include
 
3492
   am__quote=
 
3493
   _am_result=GNU
 
3494
fi
 
3495
# Now try BSD make style include.
 
3496
if test "$am__include" = "#"; then
 
3497
   echo '.include "confinc"' > confmf
 
3498
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
3499
      am__include=.include
 
3500
      am__quote="\""
 
3501
      _am_result=BSD
 
3502
   fi
 
3503
fi
 
3504
 
 
3505
 
 
3506
{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
 
3507
$as_echo "$_am_result" >&6; }
 
3508
rm -f confinc confmf
 
3509
 
 
3510
# Check whether --enable-dependency-tracking was given.
 
3511
if test "${enable_dependency_tracking+set}" = set; then
 
3512
  enableval=$enable_dependency_tracking;
 
3513
fi
 
3514
 
 
3515
if test "x$enable_dependency_tracking" != xno; then
 
3516
  am_depcomp="$ac_aux_dir/depcomp"
 
3517
  AMDEPBACKSLASH='\'
 
3518
fi
 
3519
 if test "x$enable_dependency_tracking" != xno; then
 
3520
  AMDEP_TRUE=
 
3521
  AMDEP_FALSE='#'
 
3522
else
 
3523
  AMDEP_TRUE='#'
 
3524
  AMDEP_FALSE=
 
3525
fi
 
3526
 
 
3527
 
 
3528
 
 
3529
depcc="$CXX"  am_compiler_list=
 
3530
 
 
3531
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
3532
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
3533
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
3534
  $as_echo_n "(cached) " >&6
 
3535
else
 
3536
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3537
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3538
  # making bogus files that we don't know about and never remove.  For
 
3539
  # instance it was reported that on HP-UX the gcc test will end up
 
3540
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3541
  # in D'.
 
3542
  mkdir conftest.dir
 
3543
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3544
  # using a relative directory.
 
3545
  cp "$am_depcomp" conftest.dir
 
3546
  cd conftest.dir
 
3547
  # We will build objects and dependencies in a subdirectory because
 
3548
  # it helps to detect inapplicable dependency modes.  For instance
 
3549
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3550
  # side effect of compilation, but ICC will put the dependencies in
 
3551
  # the current directory while Tru64 will put them in the object
 
3552
  # directory.
 
3553
  mkdir sub
 
3554
 
 
3555
  am_cv_CXX_dependencies_compiler_type=none
 
3556
  if test "$am_compiler_list" = ""; then
 
3557
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3558
  fi
 
3559
  for depmode in $am_compiler_list; do
 
3560
    # Setup a source with many dependencies, because some compilers
 
3561
    # like to wrap large dependency lists on column 80 (with \), and
 
3562
    # we should not choose a depcomp mode which is confused by this.
 
3563
    #
 
3564
    # We need to recreate these files for each test, as the compiler may
 
3565
    # overwrite some of them when testing with obscure command lines.
 
3566
    # This happens at least with the AIX C compiler.
 
3567
    : > sub/conftest.c
 
3568
    for i in 1 2 3 4 5 6; do
 
3569
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3570
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3571
      # Solaris 8's {/usr,}/bin/sh.
 
3572
      touch sub/conftst$i.h
 
3573
    done
 
3574
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3575
 
 
3576
    case $depmode in
 
3577
    nosideeffect)
 
3578
      # after this tag, mechanisms are not by side-effect, so they'll
 
3579
      # only be used when explicitly requested
 
3580
      if test "x$enable_dependency_tracking" = xyes; then
 
3581
        continue
 
3582
      else
 
3583
        break
 
3584
      fi
 
3585
      ;;
 
3586
    none) break ;;
 
3587
    esac
 
3588
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3589
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3590
    # handle `-M -o', and we need to detect this.
 
3591
    if depmode=$depmode \
 
3592
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
3593
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3594
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
3595
         >/dev/null 2>conftest.err &&
 
3596
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
3597
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3598
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
3599
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3600
      # icc doesn't choke on unknown options, it will just issue warnings
 
3601
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3602
      # that says an option was ignored or not supported.
 
3603
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3604
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3605
      # The diagnosis changed in icc 8.0:
 
3606
      #   icc: Command line remark: option '-MP' not supported
 
3607
      if (grep 'ignoring option' conftest.err ||
 
3608
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3609
        am_cv_CXX_dependencies_compiler_type=$depmode
 
3610
        break
 
3611
      fi
 
3612
    fi
 
3613
  done
 
3614
 
 
3615
  cd ..
 
3616
  rm -rf conftest.dir
 
3617
else
 
3618
  am_cv_CXX_dependencies_compiler_type=none
 
3619
fi
 
3620
 
 
3621
fi
 
3622
{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
3623
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
 
3624
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
3625
 
 
3626
 if
 
3627
  test "x$enable_dependency_tracking" != xno \
 
3628
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
3629
  am__fastdepCXX_TRUE=
 
3630
  am__fastdepCXX_FALSE='#'
 
3631
else
 
3632
  am__fastdepCXX_TRUE='#'
 
3633
  am__fastdepCXX_FALSE=
 
3634
fi
 
3635
 
 
3636
 
 
3637
for ac_prog in gawk mawk nawk awk
 
3638
do
 
3639
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3640
set dummy $ac_prog; ac_word=$2
 
3641
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3642
$as_echo_n "checking for $ac_word... " >&6; }
 
3643
if test "${ac_cv_prog_AWK+set}" = set; then
 
3644
  $as_echo_n "(cached) " >&6
 
3645
else
 
3646
  if test -n "$AWK"; then
 
3647
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
3648
else
 
3649
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3650
for as_dir in $PATH
 
3651
do
 
3652
  IFS=$as_save_IFS
 
3653
  test -z "$as_dir" && as_dir=.
 
3654
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3655
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3656
    ac_cv_prog_AWK="$ac_prog"
 
3657
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3658
    break 2
 
3659
  fi
 
3660
done
 
3661
done
 
3662
IFS=$as_save_IFS
 
3663
 
 
3664
fi
 
3665
fi
 
3666
AWK=$ac_cv_prog_AWK
 
3667
if test -n "$AWK"; then
 
3668
  { $as_echo "$as_me:$LINENO: result: $AWK" >&5
 
3669
$as_echo "$AWK" >&6; }
 
3670
else
 
3671
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
3672
$as_echo "no" >&6; }
 
3673
fi
 
3674
 
 
3675
 
 
3676
  test -n "$AWK" && break
 
3677
done
 
3678
 
 
3679
ac_ext=c
 
3680
ac_cpp='$CPP $CPPFLAGS'
 
3681
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3682
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3683
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3684
if test -n "$ac_tool_prefix"; then
 
3685
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
3686
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
3687
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3688
$as_echo_n "checking for $ac_word... " >&6; }
 
3689
if test "${ac_cv_prog_CC+set}" = set; then
 
3690
  $as_echo_n "(cached) " >&6
 
3691
else
 
3692
  if test -n "$CC"; then
 
3693
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3694
else
 
3695
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3696
for as_dir in $PATH
 
3697
do
 
3698
  IFS=$as_save_IFS
 
3699
  test -z "$as_dir" && as_dir=.
 
3700
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3701
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3702
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
3703
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3704
    break 2
 
3705
  fi
 
3706
done
 
3707
done
 
3708
IFS=$as_save_IFS
 
3709
 
 
3710
fi
 
3711
fi
 
3712
CC=$ac_cv_prog_CC
 
3713
if test -n "$CC"; then
 
3714
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
3715
$as_echo "$CC" >&6; }
 
3716
else
 
3717
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
3718
$as_echo "no" >&6; }
 
3719
fi
 
3720
 
 
3721
 
 
3722
fi
 
3723
if test -z "$ac_cv_prog_CC"; then
 
3724
  ac_ct_CC=$CC
 
3725
  # Extract the first word of "gcc", so it can be a program name with args.
 
3726
set dummy gcc; ac_word=$2
 
3727
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3728
$as_echo_n "checking for $ac_word... " >&6; }
 
3729
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
3730
  $as_echo_n "(cached) " >&6
 
3731
else
 
3732
  if test -n "$ac_ct_CC"; then
 
3733
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3734
else
 
3735
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3736
for as_dir in $PATH
 
3737
do
 
3738
  IFS=$as_save_IFS
 
3739
  test -z "$as_dir" && as_dir=.
 
3740
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3741
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3742
    ac_cv_prog_ac_ct_CC="gcc"
 
3743
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3744
    break 2
 
3745
  fi
 
3746
done
 
3747
done
 
3748
IFS=$as_save_IFS
 
3749
 
 
3750
fi
 
3751
fi
 
3752
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3753
if test -n "$ac_ct_CC"; then
 
3754
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
3755
$as_echo "$ac_ct_CC" >&6; }
 
3756
else
 
3757
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
3758
$as_echo "no" >&6; }
 
3759
fi
 
3760
 
 
3761
  if test "x$ac_ct_CC" = x; then
 
3762
    CC=""
 
3763
  else
 
3764
    case $cross_compiling:$ac_tool_warned in
 
3765
yes:)
 
3766
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
3767
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3768
ac_tool_warned=yes ;;
 
3769
esac
 
3770
    CC=$ac_ct_CC
 
3771
  fi
 
3772
else
 
3773
  CC="$ac_cv_prog_CC"
 
3774
fi
 
3775
 
 
3776
if test -z "$CC"; then
 
3777
          if test -n "$ac_tool_prefix"; then
 
3778
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
3779
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
3780
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3781
$as_echo_n "checking for $ac_word... " >&6; }
 
3782
if test "${ac_cv_prog_CC+set}" = set; then
 
3783
  $as_echo_n "(cached) " >&6
 
3784
else
 
3785
  if test -n "$CC"; then
 
3786
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3787
else
 
3788
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3789
for as_dir in $PATH
 
3790
do
 
3791
  IFS=$as_save_IFS
 
3792
  test -z "$as_dir" && as_dir=.
 
3793
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3794
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3795
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
3796
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3797
    break 2
 
3798
  fi
 
3799
done
 
3800
done
 
3801
IFS=$as_save_IFS
 
3802
 
 
3803
fi
 
3804
fi
 
3805
CC=$ac_cv_prog_CC
 
3806
if test -n "$CC"; then
 
3807
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
3808
$as_echo "$CC" >&6; }
 
3809
else
 
3810
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
3811
$as_echo "no" >&6; }
 
3812
fi
 
3813
 
 
3814
 
 
3815
  fi
 
3816
fi
 
3817
if test -z "$CC"; then
 
3818
  # Extract the first word of "cc", so it can be a program name with args.
 
3819
set dummy cc; ac_word=$2
 
3820
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3821
$as_echo_n "checking for $ac_word... " >&6; }
 
3822
if test "${ac_cv_prog_CC+set}" = set; then
 
3823
  $as_echo_n "(cached) " >&6
 
3824
else
 
3825
  if test -n "$CC"; then
 
3826
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3827
else
 
3828
  ac_prog_rejected=no
 
3829
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3830
for as_dir in $PATH
 
3831
do
 
3832
  IFS=$as_save_IFS
 
3833
  test -z "$as_dir" && as_dir=.
 
3834
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3835
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3836
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
3837
       ac_prog_rejected=yes
 
3838
       continue
 
3839
     fi
 
3840
    ac_cv_prog_CC="cc"
 
3841
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3842
    break 2
 
3843
  fi
 
3844
done
 
3845
done
 
3846
IFS=$as_save_IFS
 
3847
 
 
3848
if test $ac_prog_rejected = yes; then
 
3849
  # We found a bogon in the path, so make sure we never use it.
 
3850
  set dummy $ac_cv_prog_CC
 
3851
  shift
 
3852
  if test $# != 0; then
 
3853
    # We chose a different compiler from the bogus one.
 
3854
    # However, it has the same basename, so the bogon will be chosen
 
3855
    # first if we set CC to just the basename; use the full file name.
 
3856
    shift
 
3857
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
3858
  fi
 
3859
fi
 
3860
fi
 
3861
fi
 
3862
CC=$ac_cv_prog_CC
 
3863
if test -n "$CC"; then
 
3864
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
3865
$as_echo "$CC" >&6; }
 
3866
else
 
3867
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
3868
$as_echo "no" >&6; }
 
3869
fi
 
3870
 
 
3871
 
 
3872
fi
 
3873
if test -z "$CC"; then
 
3874
  if test -n "$ac_tool_prefix"; then
 
3875
  for ac_prog in cl.exe
 
3876
  do
 
3877
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
3878
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
3879
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3880
$as_echo_n "checking for $ac_word... " >&6; }
 
3881
if test "${ac_cv_prog_CC+set}" = set; then
 
3882
  $as_echo_n "(cached) " >&6
 
3883
else
 
3884
  if test -n "$CC"; then
 
3885
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3886
else
 
3887
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3888
for as_dir in $PATH
 
3889
do
 
3890
  IFS=$as_save_IFS
 
3891
  test -z "$as_dir" && as_dir=.
 
3892
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3893
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3894
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
3895
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3896
    break 2
 
3897
  fi
 
3898
done
 
3899
done
 
3900
IFS=$as_save_IFS
 
3901
 
 
3902
fi
 
3903
fi
 
3904
CC=$ac_cv_prog_CC
 
3905
if test -n "$CC"; then
 
3906
  { $as_echo "$as_me:$LINENO: result: $CC" >&5
 
3907
$as_echo "$CC" >&6; }
 
3908
else
 
3909
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
3910
$as_echo "no" >&6; }
 
3911
fi
 
3912
 
 
3913
 
 
3914
    test -n "$CC" && break
 
3915
  done
 
3916
fi
 
3917
if test -z "$CC"; then
 
3918
  ac_ct_CC=$CC
 
3919
  for ac_prog in cl.exe
 
3920
do
 
3921
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3922
set dummy $ac_prog; ac_word=$2
 
3923
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3924
$as_echo_n "checking for $ac_word... " >&6; }
 
3925
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
3926
  $as_echo_n "(cached) " >&6
 
3927
else
 
3928
  if test -n "$ac_ct_CC"; then
 
3929
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3930
else
 
3931
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3932
for as_dir in $PATH
 
3933
do
 
3934
  IFS=$as_save_IFS
 
3935
  test -z "$as_dir" && as_dir=.
 
3936
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3937
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3938
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
3939
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3940
    break 2
 
3941
  fi
 
3942
done
 
3943
done
 
3944
IFS=$as_save_IFS
 
3945
 
 
3946
fi
 
3947
fi
 
3948
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3949
if test -n "$ac_ct_CC"; then
 
3950
  { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
3951
$as_echo "$ac_ct_CC" >&6; }
 
3952
else
 
3953
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
3954
$as_echo "no" >&6; }
 
3955
fi
 
3956
 
 
3957
 
 
3958
  test -n "$ac_ct_CC" && break
 
3959
done
 
3960
 
 
3961
  if test "x$ac_ct_CC" = x; then
 
3962
    CC=""
 
3963
  else
 
3964
    case $cross_compiling:$ac_tool_warned in
 
3965
yes:)
 
3966
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
3967
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
3968
ac_tool_warned=yes ;;
 
3969
esac
 
3970
    CC=$ac_ct_CC
 
3971
  fi
 
3972
fi
 
3973
 
 
3974
fi
 
3975
 
 
3976
 
 
3977
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
3978
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
3979
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
3980
See \`config.log' for more details." >&5
 
3981
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
 
3982
See \`config.log' for more details." >&2;}
 
3983
   { (exit 1); exit 1; }; }; }
 
3984
 
 
3985
# Provide some information about the compiler.
 
3986
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
 
3987
set X $ac_compile
 
3988
ac_compiler=$2
 
3989
{ (ac_try="$ac_compiler --version >&5"
 
3990
case "(($ac_try" in
 
3991
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3992
  *) ac_try_echo=$ac_try;;
 
3993
esac
 
3994
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
3995
$as_echo "$ac_try_echo") >&5
 
3996
  (eval "$ac_compiler --version >&5") 2>&5
 
3997
  ac_status=$?
 
3998
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3999
  (exit $ac_status); }
 
4000
{ (ac_try="$ac_compiler -v >&5"
 
4001
case "(($ac_try" in
 
4002
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4003
  *) ac_try_echo=$ac_try;;
 
4004
esac
 
4005
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4006
$as_echo "$ac_try_echo") >&5
 
4007
  (eval "$ac_compiler -v >&5") 2>&5
 
4008
  ac_status=$?
 
4009
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4010
  (exit $ac_status); }
 
4011
{ (ac_try="$ac_compiler -V >&5"
 
4012
case "(($ac_try" in
 
4013
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4014
  *) ac_try_echo=$ac_try;;
 
4015
esac
 
4016
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4017
$as_echo "$ac_try_echo") >&5
 
4018
  (eval "$ac_compiler -V >&5") 2>&5
 
4019
  ac_status=$?
 
4020
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4021
  (exit $ac_status); }
 
4022
 
 
4023
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
4024
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
 
4025
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
4026
  $as_echo_n "(cached) " >&6
 
4027
else
 
4028
  cat >conftest.$ac_ext <<_ACEOF
 
4029
/* confdefs.h.  */
 
4030
_ACEOF
 
4031
cat confdefs.h >>conftest.$ac_ext
 
4032
cat >>conftest.$ac_ext <<_ACEOF
 
4033
/* end confdefs.h.  */
 
4034
 
 
4035
int
 
4036
main ()
 
4037
{
 
4038
#ifndef __GNUC__
 
4039
       choke me
 
4040
#endif
 
4041
 
 
4042
  ;
 
4043
  return 0;
 
4044
}
 
4045
_ACEOF
 
4046
rm -f conftest.$ac_objext
 
4047
if { (ac_try="$ac_compile"
 
4048
case "(($ac_try" in
 
4049
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4050
  *) ac_try_echo=$ac_try;;
 
4051
esac
 
4052
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4053
$as_echo "$ac_try_echo") >&5
 
4054
  (eval "$ac_compile") 2>conftest.er1
 
4055
  ac_status=$?
 
4056
  grep -v '^ *+' conftest.er1 >conftest.err
 
4057
  rm -f conftest.er1
 
4058
  cat conftest.err >&5
 
4059
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4060
  (exit $ac_status); } && {
 
4061
         test -z "$ac_c_werror_flag" ||
 
4062
         test ! -s conftest.err
 
4063
       } && test -s conftest.$ac_objext; then
 
4064
  ac_compiler_gnu=yes
 
4065
else
 
4066
  $as_echo "$as_me: failed program was:" >&5
 
4067
sed 's/^/| /' conftest.$ac_ext >&5
 
4068
 
 
4069
        ac_compiler_gnu=no
 
4070
fi
 
4071
 
 
4072
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4073
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
4074
 
 
4075
fi
 
4076
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
4077
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
 
4078
if test $ac_compiler_gnu = yes; then
 
4079
  GCC=yes
 
4080
else
 
4081
  GCC=
 
4082
fi
 
4083
ac_test_CFLAGS=${CFLAGS+set}
 
4084
ac_save_CFLAGS=$CFLAGS
 
4085
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
4086
$as_echo_n "checking whether $CC accepts -g... " >&6; }
 
4087
if test "${ac_cv_prog_cc_g+set}" = set; then
 
4088
  $as_echo_n "(cached) " >&6
 
4089
else
 
4090
  ac_save_c_werror_flag=$ac_c_werror_flag
 
4091
   ac_c_werror_flag=yes
 
4092
   ac_cv_prog_cc_g=no
 
4093
   CFLAGS="-g"
 
4094
   cat >conftest.$ac_ext <<_ACEOF
 
4095
/* confdefs.h.  */
 
4096
_ACEOF
 
4097
cat confdefs.h >>conftest.$ac_ext
 
4098
cat >>conftest.$ac_ext <<_ACEOF
 
4099
/* end confdefs.h.  */
 
4100
 
 
4101
int
 
4102
main ()
 
4103
{
 
4104
 
 
4105
  ;
 
4106
  return 0;
 
4107
}
 
4108
_ACEOF
 
4109
rm -f conftest.$ac_objext
 
4110
if { (ac_try="$ac_compile"
 
4111
case "(($ac_try" in
 
4112
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4113
  *) ac_try_echo=$ac_try;;
 
4114
esac
 
4115
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4116
$as_echo "$ac_try_echo") >&5
 
4117
  (eval "$ac_compile") 2>conftest.er1
 
4118
  ac_status=$?
 
4119
  grep -v '^ *+' conftest.er1 >conftest.err
 
4120
  rm -f conftest.er1
 
4121
  cat conftest.err >&5
 
4122
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4123
  (exit $ac_status); } && {
 
4124
         test -z "$ac_c_werror_flag" ||
 
4125
         test ! -s conftest.err
 
4126
       } && test -s conftest.$ac_objext; then
 
4127
  ac_cv_prog_cc_g=yes
 
4128
else
 
4129
  $as_echo "$as_me: failed program was:" >&5
 
4130
sed 's/^/| /' conftest.$ac_ext >&5
 
4131
 
 
4132
        CFLAGS=""
 
4133
      cat >conftest.$ac_ext <<_ACEOF
 
4134
/* confdefs.h.  */
 
4135
_ACEOF
 
4136
cat confdefs.h >>conftest.$ac_ext
 
4137
cat >>conftest.$ac_ext <<_ACEOF
 
4138
/* end confdefs.h.  */
 
4139
 
 
4140
int
 
4141
main ()
 
4142
{
 
4143
 
 
4144
  ;
 
4145
  return 0;
 
4146
}
 
4147
_ACEOF
 
4148
rm -f conftest.$ac_objext
 
4149
if { (ac_try="$ac_compile"
 
4150
case "(($ac_try" in
 
4151
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4152
  *) ac_try_echo=$ac_try;;
 
4153
esac
 
4154
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4155
$as_echo "$ac_try_echo") >&5
 
4156
  (eval "$ac_compile") 2>conftest.er1
 
4157
  ac_status=$?
 
4158
  grep -v '^ *+' conftest.er1 >conftest.err
 
4159
  rm -f conftest.er1
 
4160
  cat conftest.err >&5
 
4161
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4162
  (exit $ac_status); } && {
 
4163
         test -z "$ac_c_werror_flag" ||
 
4164
         test ! -s conftest.err
 
4165
       } && test -s conftest.$ac_objext; then
 
4166
  :
 
4167
else
 
4168
  $as_echo "$as_me: failed program was:" >&5
 
4169
sed 's/^/| /' conftest.$ac_ext >&5
 
4170
 
 
4171
        ac_c_werror_flag=$ac_save_c_werror_flag
 
4172
         CFLAGS="-g"
 
4173
         cat >conftest.$ac_ext <<_ACEOF
 
4174
/* confdefs.h.  */
 
4175
_ACEOF
 
4176
cat confdefs.h >>conftest.$ac_ext
 
4177
cat >>conftest.$ac_ext <<_ACEOF
 
4178
/* end confdefs.h.  */
 
4179
 
 
4180
int
 
4181
main ()
 
4182
{
 
4183
 
 
4184
  ;
 
4185
  return 0;
 
4186
}
 
4187
_ACEOF
 
4188
rm -f conftest.$ac_objext
 
4189
if { (ac_try="$ac_compile"
 
4190
case "(($ac_try" in
 
4191
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4192
  *) ac_try_echo=$ac_try;;
 
4193
esac
 
4194
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4195
$as_echo "$ac_try_echo") >&5
 
4196
  (eval "$ac_compile") 2>conftest.er1
 
4197
  ac_status=$?
 
4198
  grep -v '^ *+' conftest.er1 >conftest.err
 
4199
  rm -f conftest.er1
 
4200
  cat conftest.err >&5
 
4201
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4202
  (exit $ac_status); } && {
 
4203
         test -z "$ac_c_werror_flag" ||
 
4204
         test ! -s conftest.err
 
4205
       } && test -s conftest.$ac_objext; then
 
4206
  ac_cv_prog_cc_g=yes
 
4207
else
 
4208
  $as_echo "$as_me: failed program was:" >&5
 
4209
sed 's/^/| /' conftest.$ac_ext >&5
 
4210
 
 
4211
 
 
4212
fi
 
4213
 
 
4214
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4215
fi
 
4216
 
 
4217
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4218
fi
 
4219
 
 
4220
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4221
   ac_c_werror_flag=$ac_save_c_werror_flag
 
4222
fi
 
4223
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
4224
$as_echo "$ac_cv_prog_cc_g" >&6; }
 
4225
if test "$ac_test_CFLAGS" = set; then
 
4226
  CFLAGS=$ac_save_CFLAGS
 
4227
elif test $ac_cv_prog_cc_g = yes; then
 
4228
  if test "$GCC" = yes; then
 
4229
    CFLAGS="-g -O2"
 
4230
  else
 
4231
    CFLAGS="-g"
 
4232
  fi
 
4233
else
 
4234
  if test "$GCC" = yes; then
 
4235
    CFLAGS="-O2"
 
4236
  else
 
4237
    CFLAGS=
 
4238
  fi
 
4239
fi
 
4240
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
 
4241
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
 
4242
if test "${ac_cv_prog_cc_c89+set}" = set; then
 
4243
  $as_echo_n "(cached) " >&6
 
4244
else
 
4245
  ac_cv_prog_cc_c89=no
 
4246
ac_save_CC=$CC
 
4247
cat >conftest.$ac_ext <<_ACEOF
 
4248
/* confdefs.h.  */
 
4249
_ACEOF
 
4250
cat confdefs.h >>conftest.$ac_ext
 
4251
cat >>conftest.$ac_ext <<_ACEOF
 
4252
/* end confdefs.h.  */
 
4253
#include <stdarg.h>
 
4254
#include <stdio.h>
 
4255
#include <sys/types.h>
 
4256
#include <sys/stat.h>
 
4257
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
4258
struct buf { int x; };
 
4259
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
4260
static char *e (p, i)
 
4261
     char **p;
 
4262
     int i;
 
4263
{
 
4264
  return p[i];
 
4265
}
 
4266
static char *f (char * (*g) (char **, int), char **p, ...)
 
4267
{
 
4268
  char *s;
 
4269
  va_list v;
 
4270
  va_start (v,p);
 
4271
  s = g (p, va_arg (v,int));
 
4272
  va_end (v);
 
4273
  return s;
 
4274
}
 
4275
 
 
4276
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
4277
   function prototypes and stuff, but not '\xHH' hex character constants.
 
4278
   These don't provoke an error unfortunately, instead are silently treated
 
4279
   as 'x'.  The following induces an error, until -std is added to get
 
4280
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
4281
   array size at least.  It's necessary to write '\x00'==0 to get something
 
4282
   that's true only with -std.  */
 
4283
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
4284
 
 
4285
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
4286
   inside strings and character constants.  */
 
4287
#define FOO(x) 'x'
 
4288
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
4289
 
 
4290
int test (int i, double x);
 
4291
struct s1 {int (*f) (int a);};
 
4292
struct s2 {int (*f) (double a);};
 
4293
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
4294
int argc;
 
4295
char **argv;
 
4296
int
 
4297
main ()
 
4298
{
 
4299
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
4300
  ;
 
4301
  return 0;
 
4302
}
 
4303
_ACEOF
 
4304
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
4305
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
4306
do
 
4307
  CC="$ac_save_CC $ac_arg"
 
4308
  rm -f conftest.$ac_objext
 
4309
if { (ac_try="$ac_compile"
 
4310
case "(($ac_try" in
 
4311
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4312
  *) ac_try_echo=$ac_try;;
 
4313
esac
 
4314
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4315
$as_echo "$ac_try_echo") >&5
 
4316
  (eval "$ac_compile") 2>conftest.er1
 
4317
  ac_status=$?
 
4318
  grep -v '^ *+' conftest.er1 >conftest.err
 
4319
  rm -f conftest.er1
 
4320
  cat conftest.err >&5
 
4321
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4322
  (exit $ac_status); } && {
 
4323
         test -z "$ac_c_werror_flag" ||
 
4324
         test ! -s conftest.err
 
4325
       } && test -s conftest.$ac_objext; then
 
4326
  ac_cv_prog_cc_c89=$ac_arg
 
4327
else
 
4328
  $as_echo "$as_me: failed program was:" >&5
 
4329
sed 's/^/| /' conftest.$ac_ext >&5
 
4330
 
 
4331
 
 
4332
fi
 
4333
 
 
4334
rm -f core conftest.err conftest.$ac_objext
 
4335
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
4336
done
 
4337
rm -f conftest.$ac_ext
 
4338
CC=$ac_save_CC
 
4339
 
 
4340
fi
 
4341
# AC_CACHE_VAL
 
4342
case "x$ac_cv_prog_cc_c89" in
 
4343
  x)
 
4344
    { $as_echo "$as_me:$LINENO: result: none needed" >&5
 
4345
$as_echo "none needed" >&6; } ;;
 
4346
  xno)
 
4347
    { $as_echo "$as_me:$LINENO: result: unsupported" >&5
 
4348
$as_echo "unsupported" >&6; } ;;
 
4349
  *)
 
4350
    CC="$CC $ac_cv_prog_cc_c89"
 
4351
    { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
 
4352
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
 
4353
esac
 
4354
 
 
4355
 
 
4356
ac_ext=c
 
4357
ac_cpp='$CPP $CPPFLAGS'
 
4358
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4359
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4360
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4361
 
 
4362
depcc="$CC"   am_compiler_list=
 
4363
 
 
4364
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
4365
$as_echo_n "checking dependency style of $depcc... " >&6; }
 
4366
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
4367
  $as_echo_n "(cached) " >&6
 
4368
else
 
4369
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
4370
  # We make a subdir and do the tests there.  Otherwise we can end up
 
4371
  # making bogus files that we don't know about and never remove.  For
 
4372
  # instance it was reported that on HP-UX the gcc test will end up
 
4373
  # making a dummy file named `D' -- because `-MD' means `put the output
 
4374
  # in D'.
 
4375
  mkdir conftest.dir
 
4376
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
4377
  # using a relative directory.
 
4378
  cp "$am_depcomp" conftest.dir
 
4379
  cd conftest.dir
 
4380
  # We will build objects and dependencies in a subdirectory because
 
4381
  # it helps to detect inapplicable dependency modes.  For instance
 
4382
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
4383
  # side effect of compilation, but ICC will put the dependencies in
 
4384
  # the current directory while Tru64 will put them in the object
 
4385
  # directory.
 
4386
  mkdir sub
 
4387
 
 
4388
  am_cv_CC_dependencies_compiler_type=none
 
4389
  if test "$am_compiler_list" = ""; then
 
4390
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
4391
  fi
 
4392
  for depmode in $am_compiler_list; do
 
4393
    # Setup a source with many dependencies, because some compilers
 
4394
    # like to wrap large dependency lists on column 80 (with \), and
 
4395
    # we should not choose a depcomp mode which is confused by this.
 
4396
    #
 
4397
    # We need to recreate these files for each test, as the compiler may
 
4398
    # overwrite some of them when testing with obscure command lines.
 
4399
    # This happens at least with the AIX C compiler.
 
4400
    : > sub/conftest.c
 
4401
    for i in 1 2 3 4 5 6; do
 
4402
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
4403
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
4404
      # Solaris 8's {/usr,}/bin/sh.
 
4405
      touch sub/conftst$i.h
 
4406
    done
 
4407
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
4408
 
 
4409
    case $depmode in
 
4410
    nosideeffect)
 
4411
      # after this tag, mechanisms are not by side-effect, so they'll
 
4412
      # only be used when explicitly requested
 
4413
      if test "x$enable_dependency_tracking" = xyes; then
 
4414
        continue
 
4415
      else
 
4416
        break
 
4417
      fi
 
4418
      ;;
 
4419
    none) break ;;
 
4420
    esac
 
4421
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
4422
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
4423
    # handle `-M -o', and we need to detect this.
 
4424
    if depmode=$depmode \
 
4425
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
4426
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
4427
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
4428
         >/dev/null 2>conftest.err &&
 
4429
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
4430
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
4431
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
4432
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
4433
      # icc doesn't choke on unknown options, it will just issue warnings
 
4434
      # or remarks (even with -Werror).  So we grep stderr for any message
 
4435
      # that says an option was ignored or not supported.
 
4436
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
4437
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
4438
      # The diagnosis changed in icc 8.0:
 
4439
      #   icc: Command line remark: option '-MP' not supported
 
4440
      if (grep 'ignoring option' conftest.err ||
 
4441
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
4442
        am_cv_CC_dependencies_compiler_type=$depmode
 
4443
        break
 
4444
      fi
 
4445
    fi
 
4446
  done
 
4447
 
 
4448
  cd ..
 
4449
  rm -rf conftest.dir
 
4450
else
 
4451
  am_cv_CC_dependencies_compiler_type=none
 
4452
fi
 
4453
 
 
4454
fi
 
4455
{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
4456
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
 
4457
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
4458
 
 
4459
 if
 
4460
  test "x$enable_dependency_tracking" != xno \
 
4461
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
4462
  am__fastdepCC_TRUE=
 
4463
  am__fastdepCC_FALSE='#'
 
4464
else
 
4465
  am__fastdepCC_TRUE='#'
 
4466
  am__fastdepCC_FALSE=
 
4467
fi
 
4468
 
 
4469
 
 
4470
ac_ext=c
 
4471
ac_cpp='$CPP $CPPFLAGS'
 
4472
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4473
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4474
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4475
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
4476
$as_echo_n "checking how to run the C preprocessor... " >&6; }
 
4477
# On Suns, sometimes $CPP names a directory.
 
4478
if test -n "$CPP" && test -d "$CPP"; then
 
4479
  CPP=
 
4480
fi
 
4481
if test -z "$CPP"; then
 
4482
  if test "${ac_cv_prog_CPP+set}" = set; then
 
4483
  $as_echo_n "(cached) " >&6
 
4484
else
 
4485
      # Double quotes because CPP needs to be expanded
 
4486
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
4487
    do
 
4488
      ac_preproc_ok=false
 
4489
for ac_c_preproc_warn_flag in '' yes
 
4490
do
 
4491
  # Use a header file that comes with gcc, so configuring glibc
 
4492
  # with a fresh cross-compiler works.
 
4493
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4494
  # <limits.h> exists even on freestanding compilers.
 
4495
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4496
  # not just through cpp. "Syntax error" is here to catch this case.
 
4497
  cat >conftest.$ac_ext <<_ACEOF
 
4498
/* confdefs.h.  */
 
4499
_ACEOF
 
4500
cat confdefs.h >>conftest.$ac_ext
 
4501
cat >>conftest.$ac_ext <<_ACEOF
 
4502
/* end confdefs.h.  */
 
4503
#ifdef __STDC__
 
4504
# include <limits.h>
 
4505
#else
 
4506
# include <assert.h>
 
4507
#endif
 
4508
                     Syntax error
 
4509
_ACEOF
 
4510
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4511
case "(($ac_try" in
 
4512
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4513
  *) ac_try_echo=$ac_try;;
 
4514
esac
 
4515
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4516
$as_echo "$ac_try_echo") >&5
 
4517
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4518
  ac_status=$?
 
4519
  grep -v '^ *+' conftest.er1 >conftest.err
 
4520
  rm -f conftest.er1
 
4521
  cat conftest.err >&5
 
4522
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4523
  (exit $ac_status); } >/dev/null && {
 
4524
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4525
         test ! -s conftest.err
 
4526
       }; then
 
4527
  :
 
4528
else
 
4529
  $as_echo "$as_me: failed program was:" >&5
 
4530
sed 's/^/| /' conftest.$ac_ext >&5
 
4531
 
 
4532
  # Broken: fails on valid input.
 
4533
continue
 
4534
fi
 
4535
 
 
4536
rm -f conftest.err conftest.$ac_ext
 
4537
 
 
4538
  # OK, works on sane cases.  Now check whether nonexistent headers
 
4539
  # can be detected and how.
 
4540
  cat >conftest.$ac_ext <<_ACEOF
 
4541
/* confdefs.h.  */
 
4542
_ACEOF
 
4543
cat confdefs.h >>conftest.$ac_ext
 
4544
cat >>conftest.$ac_ext <<_ACEOF
 
4545
/* end confdefs.h.  */
 
4546
#include <ac_nonexistent.h>
 
4547
_ACEOF
 
4548
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4549
case "(($ac_try" in
 
4550
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4551
  *) ac_try_echo=$ac_try;;
 
4552
esac
 
4553
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4554
$as_echo "$ac_try_echo") >&5
 
4555
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4556
  ac_status=$?
 
4557
  grep -v '^ *+' conftest.er1 >conftest.err
 
4558
  rm -f conftest.er1
 
4559
  cat conftest.err >&5
 
4560
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4561
  (exit $ac_status); } >/dev/null && {
 
4562
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4563
         test ! -s conftest.err
 
4564
       }; then
 
4565
  # Broken: success on invalid input.
 
4566
continue
 
4567
else
 
4568
  $as_echo "$as_me: failed program was:" >&5
 
4569
sed 's/^/| /' conftest.$ac_ext >&5
 
4570
 
 
4571
  # Passes both tests.
 
4572
ac_preproc_ok=:
 
4573
break
 
4574
fi
 
4575
 
 
4576
rm -f conftest.err conftest.$ac_ext
 
4577
 
 
4578
done
 
4579
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4580
rm -f conftest.err conftest.$ac_ext
 
4581
if $ac_preproc_ok; then
 
4582
  break
 
4583
fi
 
4584
 
 
4585
    done
 
4586
    ac_cv_prog_CPP=$CPP
 
4587
 
 
4588
fi
 
4589
  CPP=$ac_cv_prog_CPP
 
4590
else
 
4591
  ac_cv_prog_CPP=$CPP
 
4592
fi
 
4593
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
 
4594
$as_echo "$CPP" >&6; }
 
4595
ac_preproc_ok=false
 
4596
for ac_c_preproc_warn_flag in '' yes
 
4597
do
 
4598
  # Use a header file that comes with gcc, so configuring glibc
 
4599
  # with a fresh cross-compiler works.
 
4600
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4601
  # <limits.h> exists even on freestanding compilers.
 
4602
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4603
  # not just through cpp. "Syntax error" is here to catch this case.
 
4604
  cat >conftest.$ac_ext <<_ACEOF
 
4605
/* confdefs.h.  */
 
4606
_ACEOF
 
4607
cat confdefs.h >>conftest.$ac_ext
 
4608
cat >>conftest.$ac_ext <<_ACEOF
 
4609
/* end confdefs.h.  */
 
4610
#ifdef __STDC__
 
4611
# include <limits.h>
 
4612
#else
 
4613
# include <assert.h>
 
4614
#endif
 
4615
                     Syntax error
 
4616
_ACEOF
 
4617
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4618
case "(($ac_try" in
 
4619
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4620
  *) ac_try_echo=$ac_try;;
 
4621
esac
 
4622
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4623
$as_echo "$ac_try_echo") >&5
 
4624
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4625
  ac_status=$?
 
4626
  grep -v '^ *+' conftest.er1 >conftest.err
 
4627
  rm -f conftest.er1
 
4628
  cat conftest.err >&5
 
4629
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4630
  (exit $ac_status); } >/dev/null && {
 
4631
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4632
         test ! -s conftest.err
 
4633
       }; then
 
4634
  :
 
4635
else
 
4636
  $as_echo "$as_me: failed program was:" >&5
 
4637
sed 's/^/| /' conftest.$ac_ext >&5
 
4638
 
 
4639
  # Broken: fails on valid input.
 
4640
continue
 
4641
fi
 
4642
 
 
4643
rm -f conftest.err conftest.$ac_ext
 
4644
 
 
4645
  # OK, works on sane cases.  Now check whether nonexistent headers
 
4646
  # can be detected and how.
 
4647
  cat >conftest.$ac_ext <<_ACEOF
 
4648
/* confdefs.h.  */
 
4649
_ACEOF
 
4650
cat confdefs.h >>conftest.$ac_ext
 
4651
cat >>conftest.$ac_ext <<_ACEOF
 
4652
/* end confdefs.h.  */
 
4653
#include <ac_nonexistent.h>
 
4654
_ACEOF
 
4655
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4656
case "(($ac_try" in
 
4657
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4658
  *) ac_try_echo=$ac_try;;
 
4659
esac
 
4660
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
4661
$as_echo "$ac_try_echo") >&5
 
4662
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4663
  ac_status=$?
 
4664
  grep -v '^ *+' conftest.er1 >conftest.err
 
4665
  rm -f conftest.er1
 
4666
  cat conftest.err >&5
 
4667
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4668
  (exit $ac_status); } >/dev/null && {
 
4669
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4670
         test ! -s conftest.err
 
4671
       }; then
 
4672
  # Broken: success on invalid input.
 
4673
continue
 
4674
else
 
4675
  $as_echo "$as_me: failed program was:" >&5
 
4676
sed 's/^/| /' conftest.$ac_ext >&5
 
4677
 
 
4678
  # Passes both tests.
 
4679
ac_preproc_ok=:
 
4680
break
 
4681
fi
 
4682
 
 
4683
rm -f conftest.err conftest.$ac_ext
 
4684
 
 
4685
done
 
4686
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4687
rm -f conftest.err conftest.$ac_ext
 
4688
if $ac_preproc_ok; then
 
4689
  :
 
4690
else
 
4691
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
4692
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
4693
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
4694
See \`config.log' for more details." >&5
 
4695
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
4696
See \`config.log' for more details." >&2;}
 
4697
   { (exit 1); exit 1; }; }; }
 
4698
fi
 
4699
 
 
4700
ac_ext=c
 
4701
ac_cpp='$CPP $CPPFLAGS'
 
4702
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4703
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4704
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4705
 
 
4706
# Find a good install program.  We prefer a C program (faster),
 
4707
# so one script is as good as another.  But avoid the broken or
 
4708
# incompatible versions:
 
4709
# SysV /etc/install, /usr/sbin/install
 
4710
# SunOS /usr/etc/install
 
4711
# IRIX /sbin/install
 
4712
# AIX /bin/install
 
4713
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
4714
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
4715
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
4716
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
4717
# OS/2's system install, which has a completely different semantic
 
4718
# ./install, which can be erroneously created by make from ./install.sh.
 
4719
# Reject install programs that cannot install multiple files.
 
4720
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
4721
$as_echo_n "checking for a BSD-compatible install... " >&6; }
 
4722
if test -z "$INSTALL"; then
 
4723
if test "${ac_cv_path_install+set}" = set; then
 
4724
  $as_echo_n "(cached) " >&6
 
4725
else
 
4726
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4727
for as_dir in $PATH
 
4728
do
 
4729
  IFS=$as_save_IFS
 
4730
  test -z "$as_dir" && as_dir=.
 
4731
  # Account for people who put trailing slashes in PATH elements.
 
4732
case $as_dir/ in
 
4733
  ./ | .// | /cC/* | \
 
4734
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
4735
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
4736
  /usr/ucb/* ) ;;
 
4737
  *)
 
4738
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
4739
    # Don't use installbsd from OSF since it installs stuff as root
 
4740
    # by default.
 
4741
    for ac_prog in ginstall scoinst install; do
 
4742
      for ac_exec_ext in '' $ac_executable_extensions; do
 
4743
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
4744
          if test $ac_prog = install &&
 
4745
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
4746
            # AIX install.  It has an incompatible calling convention.
 
4747
            :
 
4748
          elif test $ac_prog = install &&
 
4749
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
4750
            # program-specific install script used by HP pwplus--don't use.
 
4751
            :
 
4752
          else
 
4753
            rm -rf conftest.one conftest.two conftest.dir
 
4754
            echo one > conftest.one
 
4755
            echo two > conftest.two
 
4756
            mkdir conftest.dir
 
4757
            if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
 
4758
              test -s conftest.one && test -s conftest.two &&
 
4759
              test -s conftest.dir/conftest.one &&
 
4760
              test -s conftest.dir/conftest.two
 
4761
            then
 
4762
              ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
4763
              break 3
 
4764
            fi
 
4765
          fi
 
4766
        fi
 
4767
      done
 
4768
    done
 
4769
    ;;
 
4770
esac
 
4771
 
 
4772
done
 
4773
IFS=$as_save_IFS
 
4774
 
 
4775
rm -rf conftest.one conftest.two conftest.dir
 
4776
 
 
4777
fi
 
4778
  if test "${ac_cv_path_install+set}" = set; then
 
4779
    INSTALL=$ac_cv_path_install
 
4780
  else
 
4781
    # As a last resort, use the slow shell script.  Don't cache a
 
4782
    # value for INSTALL within a source directory, because that will
 
4783
    # break other packages using the cache if that directory is
 
4784
    # removed, or if the value is a relative name.
 
4785
    INSTALL=$ac_install_sh
 
4786
  fi
 
4787
fi
 
4788
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
 
4789
$as_echo "$INSTALL" >&6; }
 
4790
 
 
4791
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
4792
# It thinks the first close brace ends the variable substitution.
 
4793
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
4794
 
 
4795
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
4796
 
 
4797
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
4798
 
 
4799
{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
4800
$as_echo_n "checking whether ln -s works... " >&6; }
 
4801
LN_S=$as_ln_s
 
4802
if test "$LN_S" = "ln -s"; then
 
4803
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
4804
$as_echo "yes" >&6; }
 
4805
else
 
4806
  { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
4807
$as_echo "no, using $LN_S" >&6; }
 
4808
fi
 
4809
 
 
4810
{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
4811
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 
4812
set x ${MAKE-make}
 
4813
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
4814
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
 
4815
  $as_echo_n "(cached) " >&6
 
4816
else
 
4817
  cat >conftest.make <<\_ACEOF
 
4818
SHELL = /bin/sh
 
4819
all:
 
4820
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
4821
_ACEOF
 
4822
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
4823
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
4824
  *@@@%%%=?*=@@@%%%*)
 
4825
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
4826
  *)
 
4827
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
4828
esac
 
4829
rm -f conftest.make
 
4830
fi
 
4831
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
4832
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
4833
$as_echo "yes" >&6; }
 
4834
  SET_MAKE=
 
4835
else
 
4836
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
4837
$as_echo "no" >&6; }
 
4838
  SET_MAKE="MAKE=${MAKE-make}"
 
4839
fi
 
4840
 
 
4841
# Check whether --enable-shared was given.
 
4842
if test "${enable_shared+set}" = set; then
 
4843
  enableval=$enable_shared; p=${PACKAGE-default}
 
4844
    case $enableval in
 
4845
    yes) enable_shared=yes ;;
 
4846
    no) enable_shared=no ;;
 
4847
    *)
 
4848
      enable_shared=no
 
4849
      # Look at the argument we got.  We use all the common list separators.
 
4850
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
4851
      for pkg in $enableval; do
 
4852
        IFS="$lt_save_ifs"
 
4853
        if test "X$pkg" = "X$p"; then
 
4854
          enable_shared=yes
 
4855
        fi
 
4856
      done
 
4857
      IFS="$lt_save_ifs"
 
4858
      ;;
 
4859
    esac
 
4860
else
 
4861
  enable_shared=yes
 
4862
fi
 
4863
 
 
4864
 
 
4865
# Check whether --enable-static was given.
 
4866
if test "${enable_static+set}" = set; then
 
4867
  enableval=$enable_static; p=${PACKAGE-default}
 
4868
    case $enableval in
 
4869
    yes) enable_static=yes ;;
 
4870
    no) enable_static=no ;;
 
4871
    *)
 
4872
     enable_static=no
 
4873
      # Look at the argument we got.  We use all the common list separators.
 
4874
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
4875
      for pkg in $enableval; do
 
4876
        IFS="$lt_save_ifs"
 
4877
        if test "X$pkg" = "X$p"; then
 
4878
          enable_static=yes
 
4879
        fi
 
4880
      done
 
4881
      IFS="$lt_save_ifs"
 
4882
      ;;
 
4883
    esac
 
4884
else
 
4885
  enable_static=yes
 
4886
fi
 
4887
 
 
4888
 
 
4889
# Check whether --enable-fast-install was given.
 
4890
if test "${enable_fast_install+set}" = set; then
 
4891
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
4892
    case $enableval in
 
4893
    yes) enable_fast_install=yes ;;
 
4894
    no) enable_fast_install=no ;;
 
4895
    *)
 
4896
      enable_fast_install=no
 
4897
      # Look at the argument we got.  We use all the common list separators.
 
4898
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
4899
      for pkg in $enableval; do
 
4900
        IFS="$lt_save_ifs"
 
4901
        if test "X$pkg" = "X$p"; then
 
4902
          enable_fast_install=yes
 
4903
        fi
 
4904
      done
 
4905
      IFS="$lt_save_ifs"
 
4906
      ;;
 
4907
    esac
 
4908
else
 
4909
  enable_fast_install=yes
 
4910
fi
 
4911
 
 
4912
 
 
4913
{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
4914
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
 
4915
if test "${lt_cv_path_SED+set}" = set; then
 
4916
  $as_echo_n "(cached) " >&6
 
4917
else
 
4918
  # Loop through the user's path and test for sed and gsed.
 
4919
# Then use that list of sed's as ones to test for truncation.
 
4920
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4921
for as_dir in $PATH
 
4922
do
 
4923
  IFS=$as_save_IFS
 
4924
  test -z "$as_dir" && as_dir=.
 
4925
  for lt_ac_prog in sed gsed; do
 
4926
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4927
      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
 
4928
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
4929
      fi
 
4930
    done
 
4931
  done
 
4932
done
 
4933
IFS=$as_save_IFS
 
4934
lt_ac_max=0
 
4935
lt_ac_count=0
 
4936
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
4937
# along with /bin/sed that truncates output.
 
4938
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
4939
  test ! -f $lt_ac_sed && continue
 
4940
  cat /dev/null > conftest.in
 
4941
  lt_ac_count=0
 
4942
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
4943
  # Check for GNU sed and select it if it is found.
 
4944
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
4945
    lt_cv_path_SED=$lt_ac_sed
 
4946
    break
 
4947
  fi
 
4948
  while true; do
 
4949
    cat conftest.in conftest.in >conftest.tmp
 
4950
    mv conftest.tmp conftest.in
 
4951
    cp conftest.in conftest.nl
 
4952
    echo >>conftest.nl
 
4953
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
4954
    cmp -s conftest.out conftest.nl || break
 
4955
    # 10000 chars as input seems more than enough
 
4956
    test $lt_ac_count -gt 10 && break
 
4957
    lt_ac_count=`expr $lt_ac_count + 1`
 
4958
    if test $lt_ac_count -gt $lt_ac_max; then
 
4959
      lt_ac_max=$lt_ac_count
 
4960
      lt_cv_path_SED=$lt_ac_sed
 
4961
    fi
 
4962
  done
 
4963
done
 
4964
 
 
4965
fi
 
4966
 
 
4967
SED=$lt_cv_path_SED
 
4968
 
 
4969
{ $as_echo "$as_me:$LINENO: result: $SED" >&5
 
4970
$as_echo "$SED" >&6; }
 
4971
 
 
4972
{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
 
4973
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
 
4974
if test "${ac_cv_path_GREP+set}" = set; then
 
4975
  $as_echo_n "(cached) " >&6
 
4976
else
 
4977
  if test -z "$GREP"; then
 
4978
  ac_path_GREP_found=false
 
4979
  # Loop through the user's path and test for each of PROGNAME-LIST
 
4980
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4981
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4982
do
 
4983
  IFS=$as_save_IFS
 
4984
  test -z "$as_dir" && as_dir=.
 
4985
  for ac_prog in grep ggrep; do
 
4986
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4987
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
4988
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
4989
# Check for GNU ac_path_GREP and select it if it is found.
 
4990
  # Check for GNU $ac_path_GREP
 
4991
case `"$ac_path_GREP" --version 2>&1` in
 
4992
*GNU*)
 
4993
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
4994
*)
 
4995
  ac_count=0
 
4996
  $as_echo_n 0123456789 >"conftest.in"
 
4997
  while :
 
4998
  do
 
4999
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
5000
    mv "conftest.tmp" "conftest.in"
 
5001
    cp "conftest.in" "conftest.nl"
 
5002
    $as_echo 'GREP' >> "conftest.nl"
 
5003
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
5004
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
5005
    ac_count=`expr $ac_count + 1`
 
5006
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
5007
      # Best one so far, save it but keep looking for a better one
 
5008
      ac_cv_path_GREP="$ac_path_GREP"
 
5009
      ac_path_GREP_max=$ac_count
 
5010
    fi
 
5011
    # 10*(2^10) chars as input seems more than enough
 
5012
    test $ac_count -gt 10 && break
 
5013
  done
 
5014
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
5015
esac
 
5016
 
 
5017
      $ac_path_GREP_found && break 3
 
5018
    done
 
5019
  done
 
5020
done
 
5021
IFS=$as_save_IFS
 
5022
  if test -z "$ac_cv_path_GREP"; then
 
5023
    { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
5024
$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
5025
   { (exit 1); exit 1; }; }
 
5026
  fi
 
5027
else
 
5028
  ac_cv_path_GREP=$GREP
 
5029
fi
 
5030
 
 
5031
fi
 
5032
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
 
5033
$as_echo "$ac_cv_path_GREP" >&6; }
 
5034
 GREP="$ac_cv_path_GREP"
 
5035
 
 
5036
 
 
5037
{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
 
5038
$as_echo_n "checking for egrep... " >&6; }
 
5039
if test "${ac_cv_path_EGREP+set}" = set; then
 
5040
  $as_echo_n "(cached) " >&6
 
5041
else
 
5042
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
5043
   then ac_cv_path_EGREP="$GREP -E"
 
5044
   else
 
5045
     if test -z "$EGREP"; then
 
5046
  ac_path_EGREP_found=false
 
5047
  # Loop through the user's path and test for each of PROGNAME-LIST
 
5048
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5049
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
5050
do
 
5051
  IFS=$as_save_IFS
 
5052
  test -z "$as_dir" && as_dir=.
 
5053
  for ac_prog in egrep; do
 
5054
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5055
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
5056
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
5057
# Check for GNU ac_path_EGREP and select it if it is found.
 
5058
  # Check for GNU $ac_path_EGREP
 
5059
case `"$ac_path_EGREP" --version 2>&1` in
 
5060
*GNU*)
 
5061
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
5062
*)
 
5063
  ac_count=0
 
5064
  $as_echo_n 0123456789 >"conftest.in"
 
5065
  while :
 
5066
  do
 
5067
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
5068
    mv "conftest.tmp" "conftest.in"
 
5069
    cp "conftest.in" "conftest.nl"
 
5070
    $as_echo 'EGREP' >> "conftest.nl"
 
5071
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
5072
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
5073
    ac_count=`expr $ac_count + 1`
 
5074
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
5075
      # Best one so far, save it but keep looking for a better one
 
5076
      ac_cv_path_EGREP="$ac_path_EGREP"
 
5077
      ac_path_EGREP_max=$ac_count
 
5078
    fi
 
5079
    # 10*(2^10) chars as input seems more than enough
 
5080
    test $ac_count -gt 10 && break
 
5081
  done
 
5082
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
5083
esac
 
5084
 
 
5085
      $ac_path_EGREP_found && break 3
 
5086
    done
 
5087
  done
 
5088
done
 
5089
IFS=$as_save_IFS
 
5090
  if test -z "$ac_cv_path_EGREP"; then
 
5091
    { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
5092
$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
5093
   { (exit 1); exit 1; }; }
 
5094
  fi
 
5095
else
 
5096
  ac_cv_path_EGREP=$EGREP
 
5097
fi
 
5098
 
 
5099
   fi
 
5100
fi
 
5101
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
 
5102
$as_echo "$ac_cv_path_EGREP" >&6; }
 
5103
 EGREP="$ac_cv_path_EGREP"
 
5104
 
 
5105
 
 
5106
 
 
5107
# Check whether --with-gnu-ld was given.
 
5108
if test "${with_gnu_ld+set}" = set; then
 
5109
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
5110
else
 
5111
  with_gnu_ld=no
 
5112
fi
 
5113
 
 
5114
ac_prog=ld
 
5115
if test "$GCC" = yes; then
 
5116
  # Check if gcc -print-prog-name=ld gives a path.
 
5117
  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
5118
$as_echo_n "checking for ld used by $CC... " >&6; }
 
5119
  case $host in
 
5120
  *-*-mingw*)
 
5121
    # gcc leaves a trailing carriage return which upsets mingw
 
5122
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
5123
  *)
 
5124
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
5125
  esac
 
5126
  case $ac_prog in
 
5127
    # Accept absolute paths.
 
5128
    [\\/]* | ?:[\\/]*)
 
5129
      re_direlt='/[^/][^/]*/\.\./'
 
5130
      # Canonicalize the pathname of ld
 
5131
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
5132
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
5133
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
5134
      done
 
5135
      test -z "$LD" && LD="$ac_prog"
 
5136
      ;;
 
5137
  "")
 
5138
    # If it fails, then pretend we aren't using GCC.
 
5139
    ac_prog=ld
 
5140
    ;;
 
5141
  *)
 
5142
    # If it is relative, then search for the first ld in PATH.
 
5143
    with_gnu_ld=unknown
 
5144
    ;;
 
5145
  esac
 
5146
elif test "$with_gnu_ld" = yes; then
 
5147
  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
 
5148
$as_echo_n "checking for GNU ld... " >&6; }
 
5149
else
 
5150
  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
5151
$as_echo_n "checking for non-GNU ld... " >&6; }
 
5152
fi
 
5153
if test "${lt_cv_path_LD+set}" = set; then
 
5154
  $as_echo_n "(cached) " >&6
 
5155
else
 
5156
  if test -z "$LD"; then
 
5157
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
5158
  for ac_dir in $PATH; do
 
5159
    IFS="$lt_save_ifs"
 
5160
    test -z "$ac_dir" && ac_dir=.
 
5161
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
5162
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
5163
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
5164
      # but apparently some variants of GNU ld only accept -v.
 
5165
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
5166
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
5167
      *GNU* | *'with BFD'*)
 
5168
        test "$with_gnu_ld" != no && break
 
5169
        ;;
 
5170
      *)
 
5171
        test "$with_gnu_ld" != yes && break
 
5172
        ;;
 
5173
      esac
 
5174
    fi
 
5175
  done
 
5176
  IFS="$lt_save_ifs"
 
5177
else
 
5178
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
5179
fi
 
5180
fi
 
5181
 
 
5182
LD="$lt_cv_path_LD"
 
5183
if test -n "$LD"; then
 
5184
  { $as_echo "$as_me:$LINENO: result: $LD" >&5
 
5185
$as_echo "$LD" >&6; }
 
5186
else
 
5187
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
5188
$as_echo "no" >&6; }
 
5189
fi
 
5190
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
5191
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
5192
   { (exit 1); exit 1; }; }
 
5193
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
5194
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
5195
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
5196
  $as_echo_n "(cached) " >&6
 
5197
else
 
5198
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
5199
case `$LD -v 2>&1 </dev/null` in
 
5200
*GNU* | *'with BFD'*)
 
5201
  lt_cv_prog_gnu_ld=yes
 
5202
  ;;
 
5203
*)
 
5204
  lt_cv_prog_gnu_ld=no
 
5205
  ;;
 
5206
esac
 
5207
fi
 
5208
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
5209
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
 
5210
with_gnu_ld=$lt_cv_prog_gnu_ld
 
5211
 
 
5212
 
 
5213
{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
5214
$as_echo_n "checking for $LD option to reload object files... " >&6; }
 
5215
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
5216
  $as_echo_n "(cached) " >&6
 
5217
else
 
5218
  lt_cv_ld_reload_flag='-r'
 
5219
fi
 
5220
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
5221
$as_echo "$lt_cv_ld_reload_flag" >&6; }
 
5222
reload_flag=$lt_cv_ld_reload_flag
 
5223
case $reload_flag in
 
5224
"" | " "*) ;;
 
5225
*) reload_flag=" $reload_flag" ;;
 
5226
esac
 
5227
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
5228
case $host_os in
 
5229
  darwin*)
 
5230
    if test "$GCC" = yes; then
 
5231
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
5232
    else
 
5233
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
5234
    fi
 
5235
    ;;
 
5236
esac
 
5237
 
 
5238
{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
5239
$as_echo_n "checking for BSD-compatible nm... " >&6; }
 
5240
if test "${lt_cv_path_NM+set}" = set; then
 
5241
  $as_echo_n "(cached) " >&6
 
5242
else
 
5243
  if test -n "$NM"; then
 
5244
  # Let the user override the test.
 
5245
  lt_cv_path_NM="$NM"
 
5246
else
 
5247
  lt_nm_to_check="${ac_tool_prefix}nm"
 
5248
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
5249
    lt_nm_to_check="$lt_nm_to_check nm"
 
5250
  fi
 
5251
  for lt_tmp_nm in $lt_nm_to_check; do
 
5252
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
5253
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
5254
      IFS="$lt_save_ifs"
 
5255
      test -z "$ac_dir" && ac_dir=.
 
5256
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
5257
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
5258
        # Check to see if the nm accepts a BSD-compat flag.
 
5259
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
5260
        #   nm: unknown option "B" ignored
 
5261
        # Tru64's nm complains that /dev/null is an invalid object file
 
5262
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
5263
        */dev/null* | *'Invalid file or object type'*)
 
5264
          lt_cv_path_NM="$tmp_nm -B"
 
5265
          break
 
5266
          ;;
 
5267
        *)
 
5268
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
5269
          */dev/null*)
 
5270
            lt_cv_path_NM="$tmp_nm -p"
 
5271
            break
 
5272
            ;;
 
5273
          *)
 
5274
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
5275
            continue # so that we can try to find one that supports BSD flags
 
5276
            ;;
 
5277
          esac
 
5278
          ;;
 
5279
        esac
 
5280
      fi
 
5281
    done
 
5282
    IFS="$lt_save_ifs"
 
5283
  done
 
5284
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
5285
fi
 
5286
fi
 
5287
{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
5288
$as_echo "$lt_cv_path_NM" >&6; }
 
5289
NM="$lt_cv_path_NM"
 
5290
 
 
5291
{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
 
5292
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
 
5293
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
5294
  $as_echo_n "(cached) " >&6
 
5295
else
 
5296
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
5297
lt_cv_file_magic_test_file=
 
5298
lt_cv_deplibs_check_method='unknown'
 
5299
# Need to set the preceding variable on all platforms that support
 
5300
# interlibrary dependencies.
 
5301
# 'none' -- dependencies not supported.
 
5302
# `unknown' -- same as none, but documents that we really don't know.
 
5303
# 'pass_all' -- all dependencies passed with no checks.
 
5304
# 'test_compile' -- check by making test program.
 
5305
# 'file_magic [[regex]]' -- check by looking for files in library path
 
5306
# which responds to the $file_magic_cmd with a given extended regex.
 
5307
# If you have `file' or equivalent on your system and you're not sure
 
5308
# whether `pass_all' will *always* work, you probably want this one.
 
5309
 
 
5310
case $host_os in
 
5311
aix[4-9]*)
 
5312
  lt_cv_deplibs_check_method=pass_all
 
5313
  ;;
 
5314
 
 
5315
beos*)
 
5316
  lt_cv_deplibs_check_method=pass_all
 
5317
  ;;
 
5318
 
 
5319
bsdi[45]*)
 
5320
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
5321
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
5322
  lt_cv_file_magic_test_file=/shlib/libc.so
 
5323
  ;;
 
5324
 
 
5325
cygwin*)
 
5326
  # func_win32_libid is a shell function defined in ltmain.sh
 
5327
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
5328
  lt_cv_file_magic_cmd='func_win32_libid'
 
5329
  ;;
 
5330
 
 
5331
mingw* | pw32*)
 
5332
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
5333
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
5334
  # unless we find 'file', for example because we are cross-compiling.
 
5335
  if ( file / ) >/dev/null 2>&1; then
 
5336
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
5337
    lt_cv_file_magic_cmd='func_win32_libid'
 
5338
  else
 
5339
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
5340
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
5341
  fi
 
5342
  ;;
 
5343
 
 
5344
darwin* | rhapsody*)
 
5345
  lt_cv_deplibs_check_method=pass_all
 
5346
  ;;
 
5347
 
 
5348
freebsd* | dragonfly*)
 
5349
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
5350
    case $host_cpu in
 
5351
    i*86 )
 
5352
      # Not sure whether the presence of OpenBSD here was a mistake.
 
5353
      # Let's accept both of them until this is cleared up.
 
5354
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
5355
      lt_cv_file_magic_cmd=/usr/bin/file
 
5356
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
5357
      ;;
 
5358
    esac
 
5359
  else
 
5360
    lt_cv_deplibs_check_method=pass_all
 
5361
  fi
 
5362
  ;;
 
5363
 
 
5364
gnu*)
 
5365
  lt_cv_deplibs_check_method=pass_all
 
5366
  ;;
 
5367
 
 
5368
hpux10.20* | hpux11*)
 
5369
  lt_cv_file_magic_cmd=/usr/bin/file
 
5370
  case $host_cpu in
 
5371
  ia64*)
 
5372
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
5373
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
5374
    ;;
 
5375
  hppa*64*)
 
5376
    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]'
 
5377
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
5378
    ;;
 
5379
  *)
 
5380
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
5381
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
5382
    ;;
 
5383
  esac
 
5384
  ;;
 
5385
 
 
5386
interix[3-9]*)
 
5387
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
5388
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
5389
  ;;
 
5390
 
 
5391
irix5* | irix6* | nonstopux*)
 
5392
  case $LD in
 
5393
  *-32|*"-32 ") libmagic=32-bit;;
 
5394
  *-n32|*"-n32 ") libmagic=N32;;
 
5395
  *-64|*"-64 ") libmagic=64-bit;;
 
5396
  *) libmagic=never-match;;
 
5397
  esac
 
5398
  lt_cv_deplibs_check_method=pass_all
 
5399
  ;;
 
5400
 
 
5401
# This must be Linux ELF.
 
5402
linux* | k*bsd*-gnu)
 
5403
  lt_cv_deplibs_check_method=pass_all
 
5404
  ;;
 
5405
 
 
5406
netbsd*)
 
5407
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
5408
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
5409
  else
 
5410
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
5411
  fi
 
5412
  ;;
 
5413
 
 
5414
newos6*)
 
5415
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
5416
  lt_cv_file_magic_cmd=/usr/bin/file
 
5417
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
5418
  ;;
 
5419
 
 
5420
nto-qnx*)
 
5421
  lt_cv_deplibs_check_method=unknown
 
5422
  ;;
 
5423
 
 
5424
openbsd*)
 
5425
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
5426
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
5427
  else
 
5428
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
5429
  fi
 
5430
  ;;
 
5431
 
 
5432
osf3* | osf4* | osf5*)
 
5433
  lt_cv_deplibs_check_method=pass_all
 
5434
  ;;
 
5435
 
 
5436
rdos*)
 
5437
  lt_cv_deplibs_check_method=pass_all
 
5438
  ;;
 
5439
 
 
5440
solaris*)
 
5441
  lt_cv_deplibs_check_method=pass_all
 
5442
  ;;
 
5443
 
 
5444
sysv4 | sysv4.3*)
 
5445
  case $host_vendor in
 
5446
  motorola)
 
5447
    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]'
 
5448
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
5449
    ;;
 
5450
  ncr)
 
5451
    lt_cv_deplibs_check_method=pass_all
 
5452
    ;;
 
5453
  sequent)
 
5454
    lt_cv_file_magic_cmd='/bin/file'
 
5455
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
5456
    ;;
 
5457
  sni)
 
5458
    lt_cv_file_magic_cmd='/bin/file'
 
5459
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
5460
    lt_cv_file_magic_test_file=/lib/libc.so
 
5461
    ;;
 
5462
  siemens)
 
5463
    lt_cv_deplibs_check_method=pass_all
 
5464
    ;;
 
5465
  pc)
 
5466
    lt_cv_deplibs_check_method=pass_all
 
5467
    ;;
 
5468
  esac
 
5469
  ;;
 
5470
 
 
5471
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
5472
  lt_cv_deplibs_check_method=pass_all
 
5473
  ;;
 
5474
esac
 
5475
 
 
5476
fi
 
5477
{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
5478
$as_echo "$lt_cv_deplibs_check_method" >&6; }
 
5479
file_magic_cmd=$lt_cv_file_magic_cmd
 
5480
deplibs_check_method=$lt_cv_deplibs_check_method
 
5481
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
5482
 
 
5483
 
 
5484
 
 
5485
 
 
5486
# If no C compiler was specified, use CC.
 
5487
LTCC=${LTCC-"$CC"}
 
5488
 
 
5489
# If no C compiler flags were specified, use CFLAGS.
 
5490
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
5491
 
 
5492
# Allow CC to be a program name with arguments.
 
5493
compiler=$CC
 
5494
 
 
5495
 
 
5496
# Check whether --enable-libtool-lock was given.
 
5497
if test "${enable_libtool_lock+set}" = set; then
 
5498
  enableval=$enable_libtool_lock;
 
5499
fi
 
5500
 
 
5501
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
5502
 
 
5503
# Some flags need to be propagated to the compiler or linker for good
 
5504
# libtool support.
 
5505
case $host in
 
5506
ia64-*-hpux*)
 
5507
  # Find out which ABI we are using.
 
5508
  echo 'int i;' > conftest.$ac_ext
 
5509
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5510
  (eval $ac_compile) 2>&5
 
5511
  ac_status=$?
 
5512
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5513
  (exit $ac_status); }; then
 
5514
    case `/usr/bin/file conftest.$ac_objext` in
 
5515
    *ELF-32*)
 
5516
      HPUX_IA64_MODE="32"
 
5517
      ;;
 
5518
    *ELF-64*)
 
5519
      HPUX_IA64_MODE="64"
 
5520
      ;;
 
5521
    esac
 
5522
  fi
 
5523
  rm -rf conftest*
 
5524
  ;;
 
5525
*-*-irix6*)
 
5526
  # Find out which ABI we are using.
 
5527
  echo '#line 5527 "configure"' > conftest.$ac_ext
 
5528
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5529
  (eval $ac_compile) 2>&5
 
5530
  ac_status=$?
 
5531
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5532
  (exit $ac_status); }; then
 
5533
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
5534
    case `/usr/bin/file conftest.$ac_objext` in
 
5535
    *32-bit*)
 
5536
      LD="${LD-ld} -melf32bsmip"
 
5537
      ;;
 
5538
    *N32*)
 
5539
      LD="${LD-ld} -melf32bmipn32"
 
5540
      ;;
 
5541
    *64-bit*)
 
5542
      LD="${LD-ld} -melf64bmip"
 
5543
      ;;
 
5544
    esac
 
5545
   else
 
5546
    case `/usr/bin/file conftest.$ac_objext` in
 
5547
    *32-bit*)
 
5548
      LD="${LD-ld} -32"
 
5549
      ;;
 
5550
    *N32*)
 
5551
      LD="${LD-ld} -n32"
 
5552
      ;;
 
5553
    *64-bit*)
 
5554
      LD="${LD-ld} -64"
 
5555
      ;;
 
5556
    esac
 
5557
   fi
 
5558
  fi
 
5559
  rm -rf conftest*
 
5560
  ;;
 
5561
 
 
5562
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
5563
s390*-*linux*|sparc*-*linux*)
 
5564
  # Find out which ABI we are using.
 
5565
  echo 'int i;' > conftest.$ac_ext
 
5566
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5567
  (eval $ac_compile) 2>&5
 
5568
  ac_status=$?
 
5569
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5570
  (exit $ac_status); }; then
 
5571
    case `/usr/bin/file conftest.o` in
 
5572
    *32-bit*)
 
5573
      case $host in
 
5574
        x86_64-*kfreebsd*-gnu)
 
5575
          LD="${LD-ld} -m elf_i386_fbsd"
 
5576
          ;;
 
5577
        x86_64-*linux*)
 
5578
          LD="${LD-ld} -m elf_i386"
 
5579
          ;;
 
5580
        ppc64-*linux*|powerpc64-*linux*)
 
5581
          LD="${LD-ld} -m elf32ppclinux"
 
5582
          ;;
 
5583
        s390x-*linux*)
 
5584
          LD="${LD-ld} -m elf_s390"
 
5585
          ;;
 
5586
        sparc64-*linux*)
 
5587
          LD="${LD-ld} -m elf32_sparc"
 
5588
          ;;
 
5589
      esac
 
5590
      ;;
 
5591
    *64-bit*)
 
5592
      case $host in
 
5593
        x86_64-*kfreebsd*-gnu)
 
5594
          LD="${LD-ld} -m elf_x86_64_fbsd"
 
5595
          ;;
 
5596
        x86_64-*linux*)
 
5597
          LD="${LD-ld} -m elf_x86_64"
 
5598
          ;;
 
5599
        ppc*-*linux*|powerpc*-*linux*)
 
5600
          LD="${LD-ld} -m elf64ppc"
 
5601
          ;;
 
5602
        s390*-*linux*)
 
5603
          LD="${LD-ld} -m elf64_s390"
 
5604
          ;;
 
5605
        sparc*-*linux*)
 
5606
          LD="${LD-ld} -m elf64_sparc"
 
5607
          ;;
 
5608
      esac
 
5609
      ;;
 
5610
    esac
 
5611
  fi
 
5612
  rm -rf conftest*
 
5613
  ;;
 
5614
 
 
5615
*-*-sco3.2v5*)
 
5616
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
5617
  SAVE_CFLAGS="$CFLAGS"
 
5618
  CFLAGS="$CFLAGS -belf"
 
5619
  { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
5620
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
 
5621
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
5622
  $as_echo_n "(cached) " >&6
 
5623
else
 
5624
  ac_ext=c
 
5625
ac_cpp='$CPP $CPPFLAGS'
 
5626
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5627
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5628
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5629
 
 
5630
     cat >conftest.$ac_ext <<_ACEOF
 
5631
/* confdefs.h.  */
 
5632
_ACEOF
 
5633
cat confdefs.h >>conftest.$ac_ext
 
5634
cat >>conftest.$ac_ext <<_ACEOF
 
5635
/* end confdefs.h.  */
 
5636
 
 
5637
int
 
5638
main ()
 
5639
{
 
5640
 
 
5641
  ;
 
5642
  return 0;
 
5643
}
 
5644
_ACEOF
 
5645
rm -f conftest.$ac_objext conftest$ac_exeext
 
5646
if { (ac_try="$ac_link"
 
5647
case "(($ac_try" in
 
5648
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5649
  *) ac_try_echo=$ac_try;;
 
5650
esac
 
5651
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5652
$as_echo "$ac_try_echo") >&5
 
5653
  (eval "$ac_link") 2>conftest.er1
 
5654
  ac_status=$?
 
5655
  grep -v '^ *+' conftest.er1 >conftest.err
 
5656
  rm -f conftest.er1
 
5657
  cat conftest.err >&5
 
5658
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5659
  (exit $ac_status); } && {
 
5660
         test -z "$ac_c_werror_flag" ||
 
5661
         test ! -s conftest.err
 
5662
       } && test -s conftest$ac_exeext && {
 
5663
         test "$cross_compiling" = yes ||
 
5664
         $as_test_x conftest$ac_exeext
 
5665
       }; then
 
5666
  lt_cv_cc_needs_belf=yes
 
5667
else
 
5668
  $as_echo "$as_me: failed program was:" >&5
 
5669
sed 's/^/| /' conftest.$ac_ext >&5
 
5670
 
 
5671
        lt_cv_cc_needs_belf=no
 
5672
fi
 
5673
 
 
5674
rm -rf conftest.dSYM
 
5675
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
5676
      conftest$ac_exeext conftest.$ac_ext
 
5677
     ac_ext=c
 
5678
ac_cpp='$CPP $CPPFLAGS'
 
5679
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5680
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5681
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5682
 
 
5683
fi
 
5684
{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
5685
$as_echo "$lt_cv_cc_needs_belf" >&6; }
 
5686
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
5687
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
5688
    CFLAGS="$SAVE_CFLAGS"
 
5689
  fi
 
5690
  ;;
 
5691
sparc*-*solaris*)
 
5692
  # Find out which ABI we are using.
 
5693
  echo 'int i;' > conftest.$ac_ext
 
5694
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5695
  (eval $ac_compile) 2>&5
 
5696
  ac_status=$?
 
5697
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5698
  (exit $ac_status); }; then
 
5699
    case `/usr/bin/file conftest.o` in
 
5700
    *64-bit*)
 
5701
      case $lt_cv_prog_gnu_ld in
 
5702
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
5703
      *)
 
5704
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
5705
          LD="${LD-ld} -64"
 
5706
        fi
 
5707
        ;;
 
5708
      esac
 
5709
      ;;
 
5710
    esac
 
5711
  fi
 
5712
  rm -rf conftest*
 
5713
  ;;
 
5714
 
 
5715
 
 
5716
esac
 
5717
 
 
5718
need_locks="$enable_libtool_lock"
 
5719
 
 
5720
 
 
5721
 
 
5722
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
5723
$as_echo_n "checking for ANSI C header files... " >&6; }
 
5724
if test "${ac_cv_header_stdc+set}" = set; then
 
5725
  $as_echo_n "(cached) " >&6
 
5726
else
 
5727
  cat >conftest.$ac_ext <<_ACEOF
 
5728
/* confdefs.h.  */
 
5729
_ACEOF
 
5730
cat confdefs.h >>conftest.$ac_ext
 
5731
cat >>conftest.$ac_ext <<_ACEOF
 
5732
/* end confdefs.h.  */
 
5733
#include <stdlib.h>
 
5734
#include <stdarg.h>
 
5735
#include <string.h>
 
5736
#include <float.h>
 
5737
 
 
5738
int
 
5739
main ()
 
5740
{
 
5741
 
 
5742
  ;
 
5743
  return 0;
 
5744
}
 
5745
_ACEOF
 
5746
rm -f conftest.$ac_objext
 
5747
if { (ac_try="$ac_compile"
 
5748
case "(($ac_try" in
 
5749
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5750
  *) ac_try_echo=$ac_try;;
 
5751
esac
 
5752
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5753
$as_echo "$ac_try_echo") >&5
 
5754
  (eval "$ac_compile") 2>conftest.er1
 
5755
  ac_status=$?
 
5756
  grep -v '^ *+' conftest.er1 >conftest.err
 
5757
  rm -f conftest.er1
 
5758
  cat conftest.err >&5
 
5759
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5760
  (exit $ac_status); } && {
 
5761
         test -z "$ac_c_werror_flag" ||
 
5762
         test ! -s conftest.err
 
5763
       } && test -s conftest.$ac_objext; then
 
5764
  ac_cv_header_stdc=yes
 
5765
else
 
5766
  $as_echo "$as_me: failed program was:" >&5
 
5767
sed 's/^/| /' conftest.$ac_ext >&5
 
5768
 
 
5769
        ac_cv_header_stdc=no
 
5770
fi
 
5771
 
 
5772
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5773
 
 
5774
if test $ac_cv_header_stdc = yes; then
 
5775
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
5776
  cat >conftest.$ac_ext <<_ACEOF
 
5777
/* confdefs.h.  */
 
5778
_ACEOF
 
5779
cat confdefs.h >>conftest.$ac_ext
 
5780
cat >>conftest.$ac_ext <<_ACEOF
 
5781
/* end confdefs.h.  */
 
5782
#include <string.h>
 
5783
 
 
5784
_ACEOF
 
5785
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
5786
  $EGREP "memchr" >/dev/null 2>&1; then
 
5787
  :
 
5788
else
 
5789
  ac_cv_header_stdc=no
 
5790
fi
 
5791
rm -f conftest*
 
5792
 
 
5793
fi
 
5794
 
 
5795
if test $ac_cv_header_stdc = yes; then
 
5796
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
5797
  cat >conftest.$ac_ext <<_ACEOF
 
5798
/* confdefs.h.  */
 
5799
_ACEOF
 
5800
cat confdefs.h >>conftest.$ac_ext
 
5801
cat >>conftest.$ac_ext <<_ACEOF
 
5802
/* end confdefs.h.  */
 
5803
#include <stdlib.h>
 
5804
 
 
5805
_ACEOF
 
5806
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
5807
  $EGREP "free" >/dev/null 2>&1; then
 
5808
  :
 
5809
else
 
5810
  ac_cv_header_stdc=no
 
5811
fi
 
5812
rm -f conftest*
 
5813
 
 
5814
fi
 
5815
 
 
5816
if test $ac_cv_header_stdc = yes; then
 
5817
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
5818
  if test "$cross_compiling" = yes; then
 
5819
  :
 
5820
else
 
5821
  cat >conftest.$ac_ext <<_ACEOF
 
5822
/* confdefs.h.  */
 
5823
_ACEOF
 
5824
cat confdefs.h >>conftest.$ac_ext
 
5825
cat >>conftest.$ac_ext <<_ACEOF
 
5826
/* end confdefs.h.  */
 
5827
#include <ctype.h>
 
5828
#include <stdlib.h>
 
5829
#if ((' ' & 0x0FF) == 0x020)
 
5830
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
5831
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
5832
#else
 
5833
# define ISLOWER(c) \
 
5834
                   (('a' <= (c) && (c) <= 'i') \
 
5835
                     || ('j' <= (c) && (c) <= 'r') \
 
5836
                     || ('s' <= (c) && (c) <= 'z'))
 
5837
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
5838
#endif
 
5839
 
 
5840
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
5841
int
 
5842
main ()
 
5843
{
 
5844
  int i;
 
5845
  for (i = 0; i < 256; i++)
 
5846
    if (XOR (islower (i), ISLOWER (i))
 
5847
        || toupper (i) != TOUPPER (i))
 
5848
      return 2;
 
5849
  return 0;
 
5850
}
 
5851
_ACEOF
 
5852
rm -f conftest$ac_exeext
 
5853
if { (ac_try="$ac_link"
 
5854
case "(($ac_try" in
 
5855
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5856
  *) ac_try_echo=$ac_try;;
 
5857
esac
 
5858
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5859
$as_echo "$ac_try_echo") >&5
 
5860
  (eval "$ac_link") 2>&5
 
5861
  ac_status=$?
 
5862
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5863
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5864
  { (case "(($ac_try" in
 
5865
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5866
  *) ac_try_echo=$ac_try;;
 
5867
esac
 
5868
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5869
$as_echo "$ac_try_echo") >&5
 
5870
  (eval "$ac_try") 2>&5
 
5871
  ac_status=$?
 
5872
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5873
  (exit $ac_status); }; }; then
 
5874
  :
 
5875
else
 
5876
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
5877
$as_echo "$as_me: failed program was:" >&5
 
5878
sed 's/^/| /' conftest.$ac_ext >&5
 
5879
 
 
5880
( exit $ac_status )
 
5881
ac_cv_header_stdc=no
 
5882
fi
 
5883
rm -rf conftest.dSYM
 
5884
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5885
fi
 
5886
 
 
5887
 
 
5888
fi
 
5889
fi
 
5890
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
5891
$as_echo "$ac_cv_header_stdc" >&6; }
 
5892
if test $ac_cv_header_stdc = yes; then
 
5893
 
 
5894
cat >>confdefs.h <<\_ACEOF
 
5895
#define STDC_HEADERS 1
 
5896
_ACEOF
 
5897
 
 
5898
fi
 
5899
 
 
5900
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
5901
 
 
5902
 
 
5903
 
 
5904
 
 
5905
 
 
5906
 
 
5907
 
 
5908
 
 
5909
 
 
5910
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
5911
                  inttypes.h stdint.h unistd.h
 
5912
do
 
5913
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5914
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5915
$as_echo_n "checking for $ac_header... " >&6; }
 
5916
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5917
  $as_echo_n "(cached) " >&6
 
5918
else
 
5919
  cat >conftest.$ac_ext <<_ACEOF
 
5920
/* confdefs.h.  */
 
5921
_ACEOF
 
5922
cat confdefs.h >>conftest.$ac_ext
 
5923
cat >>conftest.$ac_ext <<_ACEOF
 
5924
/* end confdefs.h.  */
 
5925
$ac_includes_default
 
5926
 
 
5927
#include <$ac_header>
 
5928
_ACEOF
 
5929
rm -f conftest.$ac_objext
 
5930
if { (ac_try="$ac_compile"
 
5931
case "(($ac_try" in
 
5932
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5933
  *) ac_try_echo=$ac_try;;
 
5934
esac
 
5935
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
5936
$as_echo "$ac_try_echo") >&5
 
5937
  (eval "$ac_compile") 2>conftest.er1
 
5938
  ac_status=$?
 
5939
  grep -v '^ *+' conftest.er1 >conftest.err
 
5940
  rm -f conftest.er1
 
5941
  cat conftest.err >&5
 
5942
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5943
  (exit $ac_status); } && {
 
5944
         test -z "$ac_c_werror_flag" ||
 
5945
         test ! -s conftest.err
 
5946
       } && test -s conftest.$ac_objext; then
 
5947
  eval "$as_ac_Header=yes"
 
5948
else
 
5949
  $as_echo "$as_me: failed program was:" >&5
 
5950
sed 's/^/| /' conftest.$ac_ext >&5
 
5951
 
 
5952
        eval "$as_ac_Header=no"
 
5953
fi
 
5954
 
 
5955
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5956
fi
 
5957
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
5958
                 $as_echo "$as_val"'`
 
5959
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
5960
$as_echo "$ac_res" >&6; }
 
5961
as_val=`eval 'as_val=${'$as_ac_Header'}
 
5962
                 $as_echo "$as_val"'`
 
5963
   if test "x$as_val" = x""yes; then
 
5964
  cat >>confdefs.h <<_ACEOF
 
5965
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5966
_ACEOF
 
5967
 
 
5968
fi
 
5969
 
 
5970
done
 
5971
 
 
5972
 
 
5973
 
 
5974
for ac_header in dlfcn.h
 
5975
do
 
5976
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5977
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5978
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5979
$as_echo_n "checking for $ac_header... " >&6; }
 
5980
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5981
  $as_echo_n "(cached) " >&6
 
5982
fi
 
5983
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
5984
                 $as_echo "$as_val"'`
 
5985
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
5986
$as_echo "$ac_res" >&6; }
 
5987
else
 
5988
  # Is the header compilable?
 
5989
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
5990
$as_echo_n "checking $ac_header usability... " >&6; }
 
5991
cat >conftest.$ac_ext <<_ACEOF
 
5992
/* confdefs.h.  */
 
5993
_ACEOF
 
5994
cat confdefs.h >>conftest.$ac_ext
 
5995
cat >>conftest.$ac_ext <<_ACEOF
 
5996
/* end confdefs.h.  */
 
5997
$ac_includes_default
 
5998
#include <$ac_header>
 
5999
_ACEOF
 
6000
rm -f conftest.$ac_objext
 
6001
if { (ac_try="$ac_compile"
 
6002
case "(($ac_try" in
 
6003
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6004
  *) ac_try_echo=$ac_try;;
 
6005
esac
 
6006
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6007
$as_echo "$ac_try_echo") >&5
 
6008
  (eval "$ac_compile") 2>conftest.er1
 
6009
  ac_status=$?
 
6010
  grep -v '^ *+' conftest.er1 >conftest.err
 
6011
  rm -f conftest.er1
 
6012
  cat conftest.err >&5
 
6013
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6014
  (exit $ac_status); } && {
 
6015
         test -z "$ac_c_werror_flag" ||
 
6016
         test ! -s conftest.err
 
6017
       } && test -s conftest.$ac_objext; then
 
6018
  ac_header_compiler=yes
 
6019
else
 
6020
  $as_echo "$as_me: failed program was:" >&5
 
6021
sed 's/^/| /' conftest.$ac_ext >&5
 
6022
 
 
6023
        ac_header_compiler=no
 
6024
fi
 
6025
 
 
6026
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6027
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
6028
$as_echo "$ac_header_compiler" >&6; }
 
6029
 
 
6030
# Is the header present?
 
6031
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
6032
$as_echo_n "checking $ac_header presence... " >&6; }
 
6033
cat >conftest.$ac_ext <<_ACEOF
 
6034
/* confdefs.h.  */
 
6035
_ACEOF
 
6036
cat confdefs.h >>conftest.$ac_ext
 
6037
cat >>conftest.$ac_ext <<_ACEOF
 
6038
/* end confdefs.h.  */
 
6039
#include <$ac_header>
 
6040
_ACEOF
 
6041
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6042
case "(($ac_try" in
 
6043
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6044
  *) ac_try_echo=$ac_try;;
 
6045
esac
 
6046
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6047
$as_echo "$ac_try_echo") >&5
 
6048
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6049
  ac_status=$?
 
6050
  grep -v '^ *+' conftest.er1 >conftest.err
 
6051
  rm -f conftest.er1
 
6052
  cat conftest.err >&5
 
6053
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6054
  (exit $ac_status); } >/dev/null && {
 
6055
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
6056
         test ! -s conftest.err
 
6057
       }; then
 
6058
  ac_header_preproc=yes
 
6059
else
 
6060
  $as_echo "$as_me: failed program was:" >&5
 
6061
sed 's/^/| /' conftest.$ac_ext >&5
 
6062
 
 
6063
  ac_header_preproc=no
 
6064
fi
 
6065
 
 
6066
rm -f conftest.err conftest.$ac_ext
 
6067
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
6068
$as_echo "$ac_header_preproc" >&6; }
 
6069
 
 
6070
# So?  What about this header?
 
6071
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
6072
  yes:no: )
 
6073
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
6074
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
6075
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
6076
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
6077
    ac_header_preproc=yes
 
6078
    ;;
 
6079
  no:yes:* )
 
6080
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
6081
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
6082
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
6083
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
6084
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
6085
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
6086
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
6087
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
6088
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
6089
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
6090
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
6091
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
6092
    ( cat <<\_ASBOX
 
6093
## ------------------------------------- ##
 
6094
## Report this to clients@worldforge.org ##
 
6095
## ------------------------------------- ##
 
6096
_ASBOX
 
6097
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
6098
    ;;
 
6099
esac
 
6100
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6101
$as_echo_n "checking for $ac_header... " >&6; }
 
6102
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
6103
  $as_echo_n "(cached) " >&6
 
6104
else
 
6105
  eval "$as_ac_Header=\$ac_header_preproc"
 
6106
fi
 
6107
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
6108
                 $as_echo "$as_val"'`
 
6109
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
6110
$as_echo "$ac_res" >&6; }
 
6111
 
 
6112
fi
 
6113
as_val=`eval 'as_val=${'$as_ac_Header'}
 
6114
                 $as_echo "$as_val"'`
 
6115
   if test "x$as_val" = x""yes; then
 
6116
  cat >>confdefs.h <<_ACEOF
 
6117
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
6118
_ACEOF
 
6119
 
 
6120
fi
 
6121
 
 
6122
done
 
6123
 
 
6124
 
 
6125
 
 
6126
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
6127
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
6128
    (test "X$CXX" != "Xg++"))) ; then
 
6129
  ac_ext=cpp
 
6130
ac_cpp='$CXXCPP $CPPFLAGS'
 
6131
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6132
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6133
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6134
{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
6135
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
 
6136
if test -z "$CXXCPP"; then
 
6137
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
6138
  $as_echo_n "(cached) " >&6
 
6139
else
 
6140
      # Double quotes because CXXCPP needs to be expanded
 
6141
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
6142
    do
 
6143
      ac_preproc_ok=false
 
6144
for ac_cxx_preproc_warn_flag in '' yes
 
6145
do
 
6146
  # Use a header file that comes with gcc, so configuring glibc
 
6147
  # with a fresh cross-compiler works.
 
6148
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6149
  # <limits.h> exists even on freestanding compilers.
 
6150
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6151
  # not just through cpp. "Syntax error" is here to catch this case.
 
6152
  cat >conftest.$ac_ext <<_ACEOF
 
6153
/* confdefs.h.  */
 
6154
_ACEOF
 
6155
cat confdefs.h >>conftest.$ac_ext
 
6156
cat >>conftest.$ac_ext <<_ACEOF
 
6157
/* end confdefs.h.  */
 
6158
#ifdef __STDC__
 
6159
# include <limits.h>
 
6160
#else
 
6161
# include <assert.h>
 
6162
#endif
 
6163
                     Syntax error
 
6164
_ACEOF
 
6165
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6166
case "(($ac_try" in
 
6167
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6168
  *) ac_try_echo=$ac_try;;
 
6169
esac
 
6170
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6171
$as_echo "$ac_try_echo") >&5
 
6172
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6173
  ac_status=$?
 
6174
  grep -v '^ *+' conftest.er1 >conftest.err
 
6175
  rm -f conftest.er1
 
6176
  cat conftest.err >&5
 
6177
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6178
  (exit $ac_status); } >/dev/null && {
 
6179
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
6180
         test ! -s conftest.err
 
6181
       }; then
 
6182
  :
 
6183
else
 
6184
  $as_echo "$as_me: failed program was:" >&5
 
6185
sed 's/^/| /' conftest.$ac_ext >&5
 
6186
 
 
6187
  # Broken: fails on valid input.
 
6188
continue
 
6189
fi
 
6190
 
 
6191
rm -f conftest.err conftest.$ac_ext
 
6192
 
 
6193
  # OK, works on sane cases.  Now check whether nonexistent headers
 
6194
  # can be detected and how.
 
6195
  cat >conftest.$ac_ext <<_ACEOF
 
6196
/* confdefs.h.  */
 
6197
_ACEOF
 
6198
cat confdefs.h >>conftest.$ac_ext
 
6199
cat >>conftest.$ac_ext <<_ACEOF
 
6200
/* end confdefs.h.  */
 
6201
#include <ac_nonexistent.h>
 
6202
_ACEOF
 
6203
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6204
case "(($ac_try" in
 
6205
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6206
  *) ac_try_echo=$ac_try;;
 
6207
esac
 
6208
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6209
$as_echo "$ac_try_echo") >&5
 
6210
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6211
  ac_status=$?
 
6212
  grep -v '^ *+' conftest.er1 >conftest.err
 
6213
  rm -f conftest.er1
 
6214
  cat conftest.err >&5
 
6215
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6216
  (exit $ac_status); } >/dev/null && {
 
6217
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
6218
         test ! -s conftest.err
 
6219
       }; then
 
6220
  # Broken: success on invalid input.
 
6221
continue
 
6222
else
 
6223
  $as_echo "$as_me: failed program was:" >&5
 
6224
sed 's/^/| /' conftest.$ac_ext >&5
 
6225
 
 
6226
  # Passes both tests.
 
6227
ac_preproc_ok=:
 
6228
break
 
6229
fi
 
6230
 
 
6231
rm -f conftest.err conftest.$ac_ext
 
6232
 
 
6233
done
 
6234
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6235
rm -f conftest.err conftest.$ac_ext
 
6236
if $ac_preproc_ok; then
 
6237
  break
 
6238
fi
 
6239
 
 
6240
    done
 
6241
    ac_cv_prog_CXXCPP=$CXXCPP
 
6242
 
 
6243
fi
 
6244
  CXXCPP=$ac_cv_prog_CXXCPP
 
6245
else
 
6246
  ac_cv_prog_CXXCPP=$CXXCPP
 
6247
fi
 
6248
{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
6249
$as_echo "$CXXCPP" >&6; }
 
6250
ac_preproc_ok=false
 
6251
for ac_cxx_preproc_warn_flag in '' yes
 
6252
do
 
6253
  # Use a header file that comes with gcc, so configuring glibc
 
6254
  # with a fresh cross-compiler works.
 
6255
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6256
  # <limits.h> exists even on freestanding compilers.
 
6257
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6258
  # not just through cpp. "Syntax error" is here to catch this case.
 
6259
  cat >conftest.$ac_ext <<_ACEOF
 
6260
/* confdefs.h.  */
 
6261
_ACEOF
 
6262
cat confdefs.h >>conftest.$ac_ext
 
6263
cat >>conftest.$ac_ext <<_ACEOF
 
6264
/* end confdefs.h.  */
 
6265
#ifdef __STDC__
 
6266
# include <limits.h>
 
6267
#else
 
6268
# include <assert.h>
 
6269
#endif
 
6270
                     Syntax error
 
6271
_ACEOF
 
6272
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6273
case "(($ac_try" in
 
6274
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6275
  *) ac_try_echo=$ac_try;;
 
6276
esac
 
6277
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6278
$as_echo "$ac_try_echo") >&5
 
6279
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6280
  ac_status=$?
 
6281
  grep -v '^ *+' conftest.er1 >conftest.err
 
6282
  rm -f conftest.er1
 
6283
  cat conftest.err >&5
 
6284
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6285
  (exit $ac_status); } >/dev/null && {
 
6286
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
6287
         test ! -s conftest.err
 
6288
       }; then
 
6289
  :
 
6290
else
 
6291
  $as_echo "$as_me: failed program was:" >&5
 
6292
sed 's/^/| /' conftest.$ac_ext >&5
 
6293
 
 
6294
  # Broken: fails on valid input.
 
6295
continue
 
6296
fi
 
6297
 
 
6298
rm -f conftest.err conftest.$ac_ext
 
6299
 
 
6300
  # OK, works on sane cases.  Now check whether nonexistent headers
 
6301
  # can be detected and how.
 
6302
  cat >conftest.$ac_ext <<_ACEOF
 
6303
/* confdefs.h.  */
 
6304
_ACEOF
 
6305
cat confdefs.h >>conftest.$ac_ext
 
6306
cat >>conftest.$ac_ext <<_ACEOF
 
6307
/* end confdefs.h.  */
 
6308
#include <ac_nonexistent.h>
 
6309
_ACEOF
 
6310
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6311
case "(($ac_try" in
 
6312
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6313
  *) ac_try_echo=$ac_try;;
 
6314
esac
 
6315
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6316
$as_echo "$ac_try_echo") >&5
 
6317
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6318
  ac_status=$?
 
6319
  grep -v '^ *+' conftest.er1 >conftest.err
 
6320
  rm -f conftest.er1
 
6321
  cat conftest.err >&5
 
6322
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6323
  (exit $ac_status); } >/dev/null && {
 
6324
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
6325
         test ! -s conftest.err
 
6326
       }; then
 
6327
  # Broken: success on invalid input.
 
6328
continue
 
6329
else
 
6330
  $as_echo "$as_me: failed program was:" >&5
 
6331
sed 's/^/| /' conftest.$ac_ext >&5
 
6332
 
 
6333
  # Passes both tests.
 
6334
ac_preproc_ok=:
 
6335
break
 
6336
fi
 
6337
 
 
6338
rm -f conftest.err conftest.$ac_ext
 
6339
 
 
6340
done
 
6341
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6342
rm -f conftest.err conftest.$ac_ext
 
6343
if $ac_preproc_ok; then
 
6344
  :
 
6345
else
 
6346
  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
 
6347
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 
6348
{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
6349
See \`config.log' for more details." >&5
 
6350
$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
6351
See \`config.log' for more details." >&2;}
 
6352
   { (exit 1); exit 1; }; }; }
 
6353
fi
 
6354
 
 
6355
ac_ext=cpp
 
6356
ac_cpp='$CXXCPP $CPPFLAGS'
 
6357
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6358
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6359
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6360
 
 
6361
fi
 
6362
 
 
6363
 
 
6364
ac_ext=f
 
6365
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
6366
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6367
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
6368
if test -n "$ac_tool_prefix"; then
 
6369
  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
 
6370
  do
 
6371
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
6372
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
6373
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6374
$as_echo_n "checking for $ac_word... " >&6; }
 
6375
if test "${ac_cv_prog_F77+set}" = set; then
 
6376
  $as_echo_n "(cached) " >&6
 
6377
else
 
6378
  if test -n "$F77"; then
 
6379
  ac_cv_prog_F77="$F77" # Let the user override the test.
 
6380
else
 
6381
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6382
for as_dir in $PATH
 
6383
do
 
6384
  IFS=$as_save_IFS
 
6385
  test -z "$as_dir" && as_dir=.
 
6386
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6387
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6388
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
 
6389
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6390
    break 2
 
6391
  fi
 
6392
done
 
6393
done
 
6394
IFS=$as_save_IFS
 
6395
 
 
6396
fi
 
6397
fi
 
6398
F77=$ac_cv_prog_F77
 
6399
if test -n "$F77"; then
 
6400
  { $as_echo "$as_me:$LINENO: result: $F77" >&5
 
6401
$as_echo "$F77" >&6; }
 
6402
else
 
6403
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6404
$as_echo "no" >&6; }
 
6405
fi
 
6406
 
 
6407
 
 
6408
    test -n "$F77" && break
 
6409
  done
 
6410
fi
 
6411
if test -z "$F77"; then
 
6412
  ac_ct_F77=$F77
 
6413
  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
 
6414
do
 
6415
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
6416
set dummy $ac_prog; ac_word=$2
 
6417
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6418
$as_echo_n "checking for $ac_word... " >&6; }
 
6419
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
 
6420
  $as_echo_n "(cached) " >&6
 
6421
else
 
6422
  if test -n "$ac_ct_F77"; then
 
6423
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
 
6424
else
 
6425
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6426
for as_dir in $PATH
 
6427
do
 
6428
  IFS=$as_save_IFS
 
6429
  test -z "$as_dir" && as_dir=.
 
6430
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6431
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6432
    ac_cv_prog_ac_ct_F77="$ac_prog"
 
6433
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6434
    break 2
 
6435
  fi
 
6436
done
 
6437
done
 
6438
IFS=$as_save_IFS
 
6439
 
 
6440
fi
 
6441
fi
 
6442
ac_ct_F77=$ac_cv_prog_ac_ct_F77
 
6443
if test -n "$ac_ct_F77"; then
 
6444
  { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
6445
$as_echo "$ac_ct_F77" >&6; }
 
6446
else
 
6447
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
6448
$as_echo "no" >&6; }
 
6449
fi
 
6450
 
 
6451
 
 
6452
  test -n "$ac_ct_F77" && break
 
6453
done
 
6454
 
 
6455
  if test "x$ac_ct_F77" = x; then
 
6456
    F77=""
 
6457
  else
 
6458
    case $cross_compiling:$ac_tool_warned in
 
6459
yes:)
 
6460
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
6461
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
6462
ac_tool_warned=yes ;;
 
6463
esac
 
6464
    F77=$ac_ct_F77
 
6465
  fi
 
6466
fi
 
6467
 
 
6468
 
 
6469
# Provide some information about the compiler.
 
6470
$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
 
6471
set X $ac_compile
 
6472
ac_compiler=$2
 
6473
{ (ac_try="$ac_compiler --version >&5"
 
6474
case "(($ac_try" in
 
6475
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6476
  *) ac_try_echo=$ac_try;;
 
6477
esac
 
6478
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6479
$as_echo "$ac_try_echo") >&5
 
6480
  (eval "$ac_compiler --version >&5") 2>&5
 
6481
  ac_status=$?
 
6482
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6483
  (exit $ac_status); }
 
6484
{ (ac_try="$ac_compiler -v >&5"
 
6485
case "(($ac_try" in
 
6486
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6487
  *) ac_try_echo=$ac_try;;
 
6488
esac
 
6489
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6490
$as_echo "$ac_try_echo") >&5
 
6491
  (eval "$ac_compiler -v >&5") 2>&5
 
6492
  ac_status=$?
 
6493
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6494
  (exit $ac_status); }
 
6495
{ (ac_try="$ac_compiler -V >&5"
 
6496
case "(($ac_try" in
 
6497
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6498
  *) ac_try_echo=$ac_try;;
 
6499
esac
 
6500
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6501
$as_echo "$ac_try_echo") >&5
 
6502
  (eval "$ac_compiler -V >&5") 2>&5
 
6503
  ac_status=$?
 
6504
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6505
  (exit $ac_status); }
 
6506
rm -f a.out
 
6507
 
 
6508
# If we don't use `.F' as extension, the preprocessor is not run on the
 
6509
# input file.  (Note that this only needs to work for GNU compilers.)
 
6510
ac_save_ext=$ac_ext
 
6511
ac_ext=F
 
6512
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
6513
$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
 
6514
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
 
6515
  $as_echo_n "(cached) " >&6
 
6516
else
 
6517
  cat >conftest.$ac_ext <<_ACEOF
 
6518
      program main
 
6519
#ifndef __GNUC__
 
6520
       choke me
 
6521
#endif
 
6522
 
 
6523
      end
 
6524
_ACEOF
 
6525
rm -f conftest.$ac_objext
 
6526
if { (ac_try="$ac_compile"
 
6527
case "(($ac_try" in
 
6528
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6529
  *) ac_try_echo=$ac_try;;
 
6530
esac
 
6531
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6532
$as_echo "$ac_try_echo") >&5
 
6533
  (eval "$ac_compile") 2>conftest.er1
 
6534
  ac_status=$?
 
6535
  grep -v '^ *+' conftest.er1 >conftest.err
 
6536
  rm -f conftest.er1
 
6537
  cat conftest.err >&5
 
6538
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6539
  (exit $ac_status); } && {
 
6540
         test -z "$ac_f77_werror_flag" ||
 
6541
         test ! -s conftest.err
 
6542
       } && test -s conftest.$ac_objext; then
 
6543
  ac_compiler_gnu=yes
 
6544
else
 
6545
  $as_echo "$as_me: failed program was:" >&5
 
6546
sed 's/^/| /' conftest.$ac_ext >&5
 
6547
 
 
6548
        ac_compiler_gnu=no
 
6549
fi
 
6550
 
 
6551
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6552
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
 
6553
 
 
6554
fi
 
6555
{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
6556
$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
 
6557
ac_ext=$ac_save_ext
 
6558
ac_test_FFLAGS=${FFLAGS+set}
 
6559
ac_save_FFLAGS=$FFLAGS
 
6560
FFLAGS=
 
6561
{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
6562
$as_echo_n "checking whether $F77 accepts -g... " >&6; }
 
6563
if test "${ac_cv_prog_f77_g+set}" = set; then
 
6564
  $as_echo_n "(cached) " >&6
 
6565
else
 
6566
  FFLAGS=-g
 
6567
cat >conftest.$ac_ext <<_ACEOF
 
6568
      program main
 
6569
 
 
6570
      end
 
6571
_ACEOF
 
6572
rm -f conftest.$ac_objext
 
6573
if { (ac_try="$ac_compile"
 
6574
case "(($ac_try" in
 
6575
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6576
  *) ac_try_echo=$ac_try;;
 
6577
esac
 
6578
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
6579
$as_echo "$ac_try_echo") >&5
 
6580
  (eval "$ac_compile") 2>conftest.er1
 
6581
  ac_status=$?
 
6582
  grep -v '^ *+' conftest.er1 >conftest.err
 
6583
  rm -f conftest.er1
 
6584
  cat conftest.err >&5
 
6585
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6586
  (exit $ac_status); } && {
 
6587
         test -z "$ac_f77_werror_flag" ||
 
6588
         test ! -s conftest.err
 
6589
       } && test -s conftest.$ac_objext; then
 
6590
  ac_cv_prog_f77_g=yes
 
6591
else
 
6592
  $as_echo "$as_me: failed program was:" >&5
 
6593
sed 's/^/| /' conftest.$ac_ext >&5
 
6594
 
 
6595
        ac_cv_prog_f77_g=no
 
6596
fi
 
6597
 
 
6598
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6599
 
 
6600
fi
 
6601
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
6602
$as_echo "$ac_cv_prog_f77_g" >&6; }
 
6603
if test "$ac_test_FFLAGS" = set; then
 
6604
  FFLAGS=$ac_save_FFLAGS
 
6605
elif test $ac_cv_prog_f77_g = yes; then
 
6606
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
6607
    FFLAGS="-g -O2"
 
6608
  else
 
6609
    FFLAGS="-g"
 
6610
  fi
 
6611
else
 
6612
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
6613
    FFLAGS="-O2"
 
6614
  else
 
6615
    FFLAGS=
 
6616
  fi
 
6617
fi
 
6618
 
 
6619
if test $ac_compiler_gnu = yes; then
 
6620
  G77=yes
 
6621
else
 
6622
  G77=
 
6623
fi
 
6624
ac_ext=c
 
6625
ac_cpp='$CPP $CPPFLAGS'
 
6626
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6627
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6628
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6629
 
 
6630
 
 
6631
 
 
6632
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
6633
# find the maximum length of command line arguments
 
6634
{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
6635
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
 
6636
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
6637
  $as_echo_n "(cached) " >&6
 
6638
else
 
6639
    i=0
 
6640
  teststring="ABCD"
 
6641
 
 
6642
  case $build_os in
 
6643
  msdosdjgpp*)
 
6644
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
6645
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
6646
    # during glob expansion).  Even if it were fixed, the result of this
 
6647
    # check would be larger than it should be.
 
6648
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
6649
    ;;
 
6650
 
 
6651
  gnu*)
 
6652
    # Under GNU Hurd, this test is not required because there is
 
6653
    # no limit to the length of command line arguments.
 
6654
    # Libtool will interpret -1 as no limit whatsoever
 
6655
    lt_cv_sys_max_cmd_len=-1;
 
6656
    ;;
 
6657
 
 
6658
  cygwin* | mingw*)
 
6659
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
6660
    # about 5 minutes as the teststring grows exponentially.
 
6661
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
6662
    # you end up with a "frozen" computer, even though with patience
 
6663
    # the test eventually succeeds (with a max line length of 256k).
 
6664
    # Instead, let's just punt: use the minimum linelength reported by
 
6665
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
6666
    lt_cv_sys_max_cmd_len=8192;
 
6667
    ;;
 
6668
 
 
6669
  amigaos*)
 
6670
    # On AmigaOS with pdksh, this test takes hours, literally.
 
6671
    # So we just punt and use a minimum line length of 8192.
 
6672
    lt_cv_sys_max_cmd_len=8192;
 
6673
    ;;
 
6674
 
 
6675
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
6676
    # This has been around since 386BSD, at least.  Likely further.
 
6677
    if test -x /sbin/sysctl; then
 
6678
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
6679
    elif test -x /usr/sbin/sysctl; then
 
6680
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
6681
    else
 
6682
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
6683
    fi
 
6684
    # And add a safety zone
 
6685
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
6686
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
6687
    ;;
 
6688
 
 
6689
  interix*)
 
6690
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
6691
    lt_cv_sys_max_cmd_len=196608
 
6692
    ;;
 
6693
 
 
6694
  osf*)
 
6695
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
6696
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
6697
    # nice to cause kernel panics so lets avoid the loop below.
 
6698
    # First set a reasonable default.
 
6699
    lt_cv_sys_max_cmd_len=16384
 
6700
    #
 
6701
    if test -x /sbin/sysconfig; then
 
6702
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
6703
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
6704
      esac
 
6705
    fi
 
6706
    ;;
 
6707
  sco3.2v5*)
 
6708
    lt_cv_sys_max_cmd_len=102400
 
6709
    ;;
 
6710
  sysv5* | sco5v6* | sysv4.2uw2*)
 
6711
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
6712
    if test -n "$kargmax"; then
 
6713
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
 
6714
    else
 
6715
      lt_cv_sys_max_cmd_len=32768
 
6716
    fi
 
6717
    ;;
 
6718
  *)
 
6719
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
6720
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
6721
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
6722
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
6723
    else
 
6724
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
6725
      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
6726
               = "XX$teststring") >/dev/null 2>&1 &&
 
6727
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
6728
              lt_cv_sys_max_cmd_len=$new_result &&
 
6729
              test $i != 17 # 1/2 MB should be enough
 
6730
      do
 
6731
        i=`expr $i + 1`
 
6732
        teststring=$teststring$teststring
 
6733
      done
 
6734
      teststring=
 
6735
      # Add a significant safety factor because C++ compilers can tack on massive
 
6736
      # amounts of additional arguments before passing them to the linker.
 
6737
      # It appears as though 1/2 is a usable value.
 
6738
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
6739
    fi
 
6740
    ;;
 
6741
  esac
 
6742
 
 
6743
fi
 
6744
 
 
6745
if test -n $lt_cv_sys_max_cmd_len ; then
 
6746
  { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
6747
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
 
6748
else
 
6749
  { $as_echo "$as_me:$LINENO: result: none" >&5
 
6750
$as_echo "none" >&6; }
 
6751
fi
 
6752
 
 
6753
 
 
6754
 
 
6755
 
 
6756
 
 
6757
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
6758
{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
6759
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
 
6760
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
6761
  $as_echo_n "(cached) " >&6
 
6762
else
 
6763
 
 
6764
# These are sane defaults that work on at least a few old systems.
 
6765
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
6766
 
 
6767
# Character class describing NM global symbol codes.
 
6768
symcode='[BCDEGRST]'
 
6769
 
 
6770
# Regexp to match symbols that can be accessed directly from C.
 
6771
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
6772
 
 
6773
# Transform an extracted symbol line into a proper C declaration
 
6774
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
6775
 
 
6776
# Transform an extracted symbol line into symbol name and symbol address
 
6777
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'"
 
6778
 
 
6779
# Define system-specific variables.
 
6780
case $host_os in
 
6781
aix*)
 
6782
  symcode='[BCDT]'
 
6783
  ;;
 
6784
cygwin* | mingw* | pw32*)
 
6785
  symcode='[ABCDGISTW]'
 
6786
  ;;
 
6787
hpux*) # Its linker distinguishes data from code symbols
 
6788
  if test "$host_cpu" = ia64; then
 
6789
    symcode='[ABCDEGRST]'
 
6790
  fi
 
6791
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6792
  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'"
 
6793
  ;;
 
6794
linux* | k*bsd*-gnu)
 
6795
  if test "$host_cpu" = ia64; then
 
6796
    symcode='[ABCDGIRSTW]'
 
6797
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6798
    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'"
 
6799
  fi
 
6800
  ;;
 
6801
irix* | nonstopux*)
 
6802
  symcode='[BCDEGRST]'
 
6803
  ;;
 
6804
osf*)
 
6805
  symcode='[BCDEGQRST]'
 
6806
  ;;
 
6807
solaris*)
 
6808
  symcode='[BDRT]'
 
6809
  ;;
 
6810
sco3.2v5*)
 
6811
  symcode='[DT]'
 
6812
  ;;
 
6813
sysv4.2uw2*)
 
6814
  symcode='[DT]'
 
6815
  ;;
 
6816
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
6817
  symcode='[ABDT]'
 
6818
  ;;
 
6819
sysv4)
 
6820
  symcode='[DFNSTU]'
 
6821
  ;;
 
6822
esac
 
6823
 
 
6824
# Handle CRLF in mingw tool chain
 
6825
opt_cr=
 
6826
case $build_os in
 
6827
mingw*)
 
6828
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
6829
  ;;
 
6830
esac
 
6831
 
 
6832
# If we're using GNU nm, then use its standard symbol codes.
 
6833
case `$NM -V 2>&1` in
 
6834
*GNU* | *'with BFD'*)
 
6835
  symcode='[ABCDGIRSTW]' ;;
 
6836
esac
 
6837
 
 
6838
# Try without a prefix undercore, then with it.
 
6839
for ac_symprfx in "" "_"; do
 
6840
 
 
6841
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
6842
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
6843
 
 
6844
  # Write the raw and C identifiers.
 
6845
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
6846
 
 
6847
  # Check to see that the pipe works correctly.
 
6848
  pipe_works=no
 
6849
 
 
6850
  rm -f conftest*
 
6851
  cat > conftest.$ac_ext <<EOF
 
6852
#ifdef __cplusplus
 
6853
extern "C" {
 
6854
#endif
 
6855
char nm_test_var;
 
6856
void nm_test_func(){}
 
6857
#ifdef __cplusplus
 
6858
}
 
6859
#endif
 
6860
int main(){nm_test_var='a';nm_test_func();return(0);}
 
6861
EOF
 
6862
 
 
6863
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6864
  (eval $ac_compile) 2>&5
 
6865
  ac_status=$?
 
6866
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6867
  (exit $ac_status); }; then
 
6868
    # Now try to grab the symbols.
 
6869
    nlist=conftest.nm
 
6870
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
6871
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
6872
  ac_status=$?
 
6873
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6874
  (exit $ac_status); } && test -s "$nlist"; then
 
6875
      # Try sorting and uniquifying the output.
 
6876
      if sort "$nlist" | uniq > "$nlist"T; then
 
6877
        mv -f "$nlist"T "$nlist"
 
6878
      else
 
6879
        rm -f "$nlist"T
 
6880
      fi
 
6881
 
 
6882
      # Make sure that we snagged all the symbols we need.
 
6883
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
6884
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
 
6885
          cat <<EOF > conftest.$ac_ext
 
6886
#ifdef __cplusplus
 
6887
extern "C" {
 
6888
#endif
 
6889
 
 
6890
EOF
 
6891
          # Now generate the symbol file.
 
6892
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 
6893
 
 
6894
          cat <<EOF >> conftest.$ac_ext
 
6895
#if defined (__STDC__) && __STDC__
 
6896
# define lt_ptr_t void *
 
6897
#else
 
6898
# define lt_ptr_t char *
 
6899
# define const
 
6900
#endif
 
6901
 
 
6902
/* The mapping between symbol names and symbols. */
 
6903
const struct {
 
6904
  const char *name;
 
6905
  lt_ptr_t address;
 
6906
}
 
6907
lt_preloaded_symbols[] =
 
6908
{
 
6909
EOF
 
6910
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 
6911
          cat <<\EOF >> conftest.$ac_ext
 
6912
  {0, (lt_ptr_t) 0}
 
6913
};
 
6914
 
 
6915
#ifdef __cplusplus
 
6916
}
 
6917
#endif
 
6918
EOF
 
6919
          # Now try linking the two files.
 
6920
          mv conftest.$ac_objext conftstm.$ac_objext
 
6921
          lt_save_LIBS="$LIBS"
 
6922
          lt_save_CFLAGS="$CFLAGS"
 
6923
          LIBS="conftstm.$ac_objext"
 
6924
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
6925
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6926
  (eval $ac_link) 2>&5
 
6927
  ac_status=$?
 
6928
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6929
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
 
6930
            pipe_works=yes
 
6931
          fi
 
6932
          LIBS="$lt_save_LIBS"
 
6933
          CFLAGS="$lt_save_CFLAGS"
 
6934
        else
 
6935
          echo "cannot find nm_test_func in $nlist" >&5
 
6936
        fi
 
6937
      else
 
6938
        echo "cannot find nm_test_var in $nlist" >&5
 
6939
      fi
 
6940
    else
 
6941
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
6942
    fi
 
6943
  else
 
6944
    echo "$progname: failed program was:" >&5
 
6945
    cat conftest.$ac_ext >&5
 
6946
  fi
 
6947
  rm -rf conftest* conftst*
 
6948
 
 
6949
  # Do not use the global_symbol_pipe unless it works.
 
6950
  if test "$pipe_works" = yes; then
 
6951
    break
 
6952
  else
 
6953
    lt_cv_sys_global_symbol_pipe=
 
6954
  fi
 
6955
done
 
6956
 
 
6957
fi
 
6958
 
 
6959
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
6960
  lt_cv_sys_global_symbol_to_cdecl=
 
6961
fi
 
6962
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
6963
  { $as_echo "$as_me:$LINENO: result: failed" >&5
 
6964
$as_echo "failed" >&6; }
 
6965
else
 
6966
  { $as_echo "$as_me:$LINENO: result: ok" >&5
 
6967
$as_echo "ok" >&6; }
 
6968
fi
 
6969
 
 
6970
{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
 
6971
$as_echo_n "checking for objdir... " >&6; }
 
6972
if test "${lt_cv_objdir+set}" = set; then
 
6973
  $as_echo_n "(cached) " >&6
 
6974
else
 
6975
  rm -f .libs 2>/dev/null
 
6976
mkdir .libs 2>/dev/null
 
6977
if test -d .libs; then
 
6978
  lt_cv_objdir=.libs
 
6979
else
 
6980
  # MS-DOS does not allow filenames that begin with a dot.
 
6981
  lt_cv_objdir=_libs
 
6982
fi
 
6983
rmdir .libs 2>/dev/null
 
6984
fi
 
6985
{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
6986
$as_echo "$lt_cv_objdir" >&6; }
 
6987
objdir=$lt_cv_objdir
 
6988
 
 
6989
 
 
6990
 
 
6991
 
 
6992
 
 
6993
case $host_os in
 
6994
aix3*)
 
6995
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
6996
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
6997
  # vanish in a puff of smoke.
 
6998
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
6999
    COLLECT_NAMES=
 
7000
    export COLLECT_NAMES
 
7001
  fi
 
7002
  ;;
 
7003
esac
 
7004
 
 
7005
# Sed substitution that helps us do robust quoting.  It backslashifies
 
7006
# metacharacters that are still active within double-quoted strings.
 
7007
Xsed='sed -e 1s/^X//'
 
7008
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
7009
 
 
7010
# Same as above, but do not quote variable references.
 
7011
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
7012
 
 
7013
# Sed substitution to delay expansion of an escaped shell variable in a
 
7014
# double_quote_subst'ed string.
 
7015
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
7016
 
 
7017
# Sed substitution to avoid accidental globbing in evaled expressions
 
7018
no_glob_subst='s/\*/\\\*/g'
 
7019
 
 
7020
# Constants:
 
7021
rm="rm -f"
 
7022
 
 
7023
# Global variables:
 
7024
default_ofile=libtool
 
7025
can_build_shared=yes
 
7026
 
 
7027
# All known linkers require a `.a' archive for static linking (except MSVC,
 
7028
# which needs '.lib').
 
7029
libext=a
 
7030
ltmain="$ac_aux_dir/ltmain.sh"
 
7031
ofile="$default_ofile"
 
7032
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
7033
 
 
7034
if test -n "$ac_tool_prefix"; then
 
7035
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
7036
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
7037
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7038
$as_echo_n "checking for $ac_word... " >&6; }
 
7039
if test "${ac_cv_prog_AR+set}" = set; then
 
7040
  $as_echo_n "(cached) " >&6
 
7041
else
 
7042
  if test -n "$AR"; then
 
7043
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
7044
else
 
7045
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7046
for as_dir in $PATH
 
7047
do
 
7048
  IFS=$as_save_IFS
 
7049
  test -z "$as_dir" && as_dir=.
 
7050
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7051
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7052
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
7053
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7054
    break 2
 
7055
  fi
 
7056
done
 
7057
done
 
7058
IFS=$as_save_IFS
 
7059
 
 
7060
fi
 
7061
fi
 
7062
AR=$ac_cv_prog_AR
 
7063
if test -n "$AR"; then
 
7064
  { $as_echo "$as_me:$LINENO: result: $AR" >&5
 
7065
$as_echo "$AR" >&6; }
 
7066
else
 
7067
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7068
$as_echo "no" >&6; }
 
7069
fi
 
7070
 
 
7071
 
 
7072
fi
 
7073
if test -z "$ac_cv_prog_AR"; then
 
7074
  ac_ct_AR=$AR
 
7075
  # Extract the first word of "ar", so it can be a program name with args.
 
7076
set dummy ar; ac_word=$2
 
7077
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7078
$as_echo_n "checking for $ac_word... " >&6; }
 
7079
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
7080
  $as_echo_n "(cached) " >&6
 
7081
else
 
7082
  if test -n "$ac_ct_AR"; then
 
7083
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
7084
else
 
7085
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7086
for as_dir in $PATH
 
7087
do
 
7088
  IFS=$as_save_IFS
 
7089
  test -z "$as_dir" && as_dir=.
 
7090
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7091
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7092
    ac_cv_prog_ac_ct_AR="ar"
 
7093
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7094
    break 2
 
7095
  fi
 
7096
done
 
7097
done
 
7098
IFS=$as_save_IFS
 
7099
 
 
7100
fi
 
7101
fi
 
7102
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
7103
if test -n "$ac_ct_AR"; then
 
7104
  { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
7105
$as_echo "$ac_ct_AR" >&6; }
 
7106
else
 
7107
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7108
$as_echo "no" >&6; }
 
7109
fi
 
7110
 
 
7111
  if test "x$ac_ct_AR" = x; then
 
7112
    AR="false"
 
7113
  else
 
7114
    case $cross_compiling:$ac_tool_warned in
 
7115
yes:)
 
7116
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
7117
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7118
ac_tool_warned=yes ;;
 
7119
esac
 
7120
    AR=$ac_ct_AR
 
7121
  fi
 
7122
else
 
7123
  AR="$ac_cv_prog_AR"
 
7124
fi
 
7125
 
 
7126
if test -n "$ac_tool_prefix"; then
 
7127
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
7128
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
7129
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7130
$as_echo_n "checking for $ac_word... " >&6; }
 
7131
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
7132
  $as_echo_n "(cached) " >&6
 
7133
else
 
7134
  if test -n "$RANLIB"; then
 
7135
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
7136
else
 
7137
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7138
for as_dir in $PATH
 
7139
do
 
7140
  IFS=$as_save_IFS
 
7141
  test -z "$as_dir" && as_dir=.
 
7142
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7143
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7144
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
7145
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7146
    break 2
 
7147
  fi
 
7148
done
 
7149
done
 
7150
IFS=$as_save_IFS
 
7151
 
 
7152
fi
 
7153
fi
 
7154
RANLIB=$ac_cv_prog_RANLIB
 
7155
if test -n "$RANLIB"; then
 
7156
  { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
 
7157
$as_echo "$RANLIB" >&6; }
 
7158
else
 
7159
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7160
$as_echo "no" >&6; }
 
7161
fi
 
7162
 
 
7163
 
 
7164
fi
 
7165
if test -z "$ac_cv_prog_RANLIB"; then
 
7166
  ac_ct_RANLIB=$RANLIB
 
7167
  # Extract the first word of "ranlib", so it can be a program name with args.
 
7168
set dummy ranlib; ac_word=$2
 
7169
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7170
$as_echo_n "checking for $ac_word... " >&6; }
 
7171
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
7172
  $as_echo_n "(cached) " >&6
 
7173
else
 
7174
  if test -n "$ac_ct_RANLIB"; then
 
7175
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
7176
else
 
7177
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7178
for as_dir in $PATH
 
7179
do
 
7180
  IFS=$as_save_IFS
 
7181
  test -z "$as_dir" && as_dir=.
 
7182
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7183
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7184
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
7185
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7186
    break 2
 
7187
  fi
 
7188
done
 
7189
done
 
7190
IFS=$as_save_IFS
 
7191
 
 
7192
fi
 
7193
fi
 
7194
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
7195
if test -n "$ac_ct_RANLIB"; then
 
7196
  { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
7197
$as_echo "$ac_ct_RANLIB" >&6; }
 
7198
else
 
7199
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7200
$as_echo "no" >&6; }
 
7201
fi
 
7202
 
 
7203
  if test "x$ac_ct_RANLIB" = x; then
 
7204
    RANLIB=":"
 
7205
  else
 
7206
    case $cross_compiling:$ac_tool_warned in
 
7207
yes:)
 
7208
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
7209
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7210
ac_tool_warned=yes ;;
 
7211
esac
 
7212
    RANLIB=$ac_ct_RANLIB
 
7213
  fi
 
7214
else
 
7215
  RANLIB="$ac_cv_prog_RANLIB"
 
7216
fi
 
7217
 
 
7218
if test -n "$ac_tool_prefix"; then
 
7219
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
7220
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
7221
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7222
$as_echo_n "checking for $ac_word... " >&6; }
 
7223
if test "${ac_cv_prog_STRIP+set}" = set; then
 
7224
  $as_echo_n "(cached) " >&6
 
7225
else
 
7226
  if test -n "$STRIP"; then
 
7227
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
7228
else
 
7229
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7230
for as_dir in $PATH
 
7231
do
 
7232
  IFS=$as_save_IFS
 
7233
  test -z "$as_dir" && as_dir=.
 
7234
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7235
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7236
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
7237
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7238
    break 2
 
7239
  fi
 
7240
done
 
7241
done
 
7242
IFS=$as_save_IFS
 
7243
 
 
7244
fi
 
7245
fi
 
7246
STRIP=$ac_cv_prog_STRIP
 
7247
if test -n "$STRIP"; then
 
7248
  { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
 
7249
$as_echo "$STRIP" >&6; }
 
7250
else
 
7251
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7252
$as_echo "no" >&6; }
 
7253
fi
 
7254
 
 
7255
 
 
7256
fi
 
7257
if test -z "$ac_cv_prog_STRIP"; then
 
7258
  ac_ct_STRIP=$STRIP
 
7259
  # Extract the first word of "strip", so it can be a program name with args.
 
7260
set dummy strip; ac_word=$2
 
7261
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7262
$as_echo_n "checking for $ac_word... " >&6; }
 
7263
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
7264
  $as_echo_n "(cached) " >&6
 
7265
else
 
7266
  if test -n "$ac_ct_STRIP"; then
 
7267
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
7268
else
 
7269
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7270
for as_dir in $PATH
 
7271
do
 
7272
  IFS=$as_save_IFS
 
7273
  test -z "$as_dir" && as_dir=.
 
7274
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7275
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7276
    ac_cv_prog_ac_ct_STRIP="strip"
 
7277
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7278
    break 2
 
7279
  fi
 
7280
done
 
7281
done
 
7282
IFS=$as_save_IFS
 
7283
 
 
7284
fi
 
7285
fi
 
7286
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
7287
if test -n "$ac_ct_STRIP"; then
 
7288
  { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
7289
$as_echo "$ac_ct_STRIP" >&6; }
 
7290
else
 
7291
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7292
$as_echo "no" >&6; }
 
7293
fi
 
7294
 
 
7295
  if test "x$ac_ct_STRIP" = x; then
 
7296
    STRIP=":"
 
7297
  else
 
7298
    case $cross_compiling:$ac_tool_warned in
 
7299
yes:)
 
7300
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
7301
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7302
ac_tool_warned=yes ;;
 
7303
esac
 
7304
    STRIP=$ac_ct_STRIP
 
7305
  fi
 
7306
else
 
7307
  STRIP="$ac_cv_prog_STRIP"
 
7308
fi
 
7309
 
 
7310
 
 
7311
old_CC="$CC"
 
7312
old_CFLAGS="$CFLAGS"
 
7313
 
 
7314
# Set sane defaults for various variables
 
7315
test -z "$AR" && AR=ar
 
7316
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
7317
test -z "$AS" && AS=as
 
7318
test -z "$CC" && CC=cc
 
7319
test -z "$LTCC" && LTCC=$CC
 
7320
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
7321
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
7322
test -z "$LD" && LD=ld
 
7323
test -z "$LN_S" && LN_S="ln -s"
 
7324
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
7325
test -z "$NM" && NM=nm
 
7326
test -z "$SED" && SED=sed
 
7327
test -z "$OBJDUMP" && OBJDUMP=objdump
 
7328
test -z "$RANLIB" && RANLIB=:
 
7329
test -z "$STRIP" && STRIP=:
 
7330
test -z "$ac_objext" && ac_objext=o
 
7331
 
 
7332
# Determine commands to create old-style static archives.
 
7333
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
7334
old_postinstall_cmds='chmod 644 $oldlib'
 
7335
old_postuninstall_cmds=
 
7336
 
 
7337
if test -n "$RANLIB"; then
 
7338
  case $host_os in
 
7339
  openbsd*)
 
7340
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
7341
    ;;
 
7342
  *)
 
7343
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
7344
    ;;
 
7345
  esac
 
7346
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
7347
fi
 
7348
 
 
7349
for cc_temp in $compiler""; do
 
7350
  case $cc_temp in
 
7351
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
7352
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
7353
    \-*) ;;
 
7354
    *) break;;
 
7355
  esac
 
7356
done
 
7357
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
7358
 
 
7359
 
 
7360
# Only perform the check for file, if the check method requires it
 
7361
case $deplibs_check_method in
 
7362
file_magic*)
 
7363
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
7364
    { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
7365
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
 
7366
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
7367
  $as_echo_n "(cached) " >&6
 
7368
else
 
7369
  case $MAGIC_CMD in
 
7370
[\\/*] |  ?:[\\/]*)
 
7371
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7372
  ;;
 
7373
*)
 
7374
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7375
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7376
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7377
  for ac_dir in $ac_dummy; do
 
7378
    IFS="$lt_save_ifs"
 
7379
    test -z "$ac_dir" && ac_dir=.
 
7380
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
7381
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
7382
      if test -n "$file_magic_test_file"; then
 
7383
        case $deplibs_check_method in
 
7384
        "file_magic "*)
 
7385
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7386
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7387
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7388
            $EGREP "$file_magic_regex" > /dev/null; then
 
7389
            :
 
7390
          else
 
7391
            cat <<EOF 1>&2
 
7392
 
 
7393
*** Warning: the command libtool uses to detect shared libraries,
 
7394
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7395
*** The result is that libtool may fail to recognize shared libraries
 
7396
*** as such.  This will affect the creation of libtool libraries that
 
7397
*** depend on shared libraries, but programs linked with such libtool
 
7398
*** libraries will work regardless of this problem.  Nevertheless, you
 
7399
*** may want to report the problem to your system manager and/or to
 
7400
*** bug-libtool@gnu.org
 
7401
 
 
7402
EOF
 
7403
          fi ;;
 
7404
        esac
 
7405
      fi
 
7406
      break
 
7407
    fi
 
7408
  done
 
7409
  IFS="$lt_save_ifs"
 
7410
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7411
  ;;
 
7412
esac
 
7413
fi
 
7414
 
 
7415
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7416
if test -n "$MAGIC_CMD"; then
 
7417
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
7418
$as_echo "$MAGIC_CMD" >&6; }
 
7419
else
 
7420
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7421
$as_echo "no" >&6; }
 
7422
fi
 
7423
 
 
7424
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
7425
  if test -n "$ac_tool_prefix"; then
 
7426
    { $as_echo "$as_me:$LINENO: checking for file" >&5
 
7427
$as_echo_n "checking for file... " >&6; }
 
7428
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
7429
  $as_echo_n "(cached) " >&6
 
7430
else
 
7431
  case $MAGIC_CMD in
 
7432
[\\/*] |  ?:[\\/]*)
 
7433
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7434
  ;;
 
7435
*)
 
7436
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7437
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7438
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7439
  for ac_dir in $ac_dummy; do
 
7440
    IFS="$lt_save_ifs"
 
7441
    test -z "$ac_dir" && ac_dir=.
 
7442
    if test -f $ac_dir/file; then
 
7443
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
7444
      if test -n "$file_magic_test_file"; then
 
7445
        case $deplibs_check_method in
 
7446
        "file_magic "*)
 
7447
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7448
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7449
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7450
            $EGREP "$file_magic_regex" > /dev/null; then
 
7451
            :
 
7452
          else
 
7453
            cat <<EOF 1>&2
 
7454
 
 
7455
*** Warning: the command libtool uses to detect shared libraries,
 
7456
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7457
*** The result is that libtool may fail to recognize shared libraries
 
7458
*** as such.  This will affect the creation of libtool libraries that
 
7459
*** depend on shared libraries, but programs linked with such libtool
 
7460
*** libraries will work regardless of this problem.  Nevertheless, you
 
7461
*** may want to report the problem to your system manager and/or to
 
7462
*** bug-libtool@gnu.org
 
7463
 
 
7464
EOF
 
7465
          fi ;;
 
7466
        esac
 
7467
      fi
 
7468
      break
 
7469
    fi
 
7470
  done
 
7471
  IFS="$lt_save_ifs"
 
7472
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7473
  ;;
 
7474
esac
 
7475
fi
 
7476
 
 
7477
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7478
if test -n "$MAGIC_CMD"; then
 
7479
  { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
7480
$as_echo "$MAGIC_CMD" >&6; }
 
7481
else
 
7482
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7483
$as_echo "no" >&6; }
 
7484
fi
 
7485
 
 
7486
  else
 
7487
    MAGIC_CMD=:
 
7488
  fi
 
7489
fi
 
7490
 
 
7491
  fi
 
7492
  ;;
 
7493
esac
 
7494
 
 
7495
 
 
7496
  case $host_os in
 
7497
    rhapsody* | darwin*)
 
7498
    if test -n "$ac_tool_prefix"; then
 
7499
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
 
7500
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
 
7501
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7502
$as_echo_n "checking for $ac_word... " >&6; }
 
7503
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
 
7504
  $as_echo_n "(cached) " >&6
 
7505
else
 
7506
  if test -n "$DSYMUTIL"; then
 
7507
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
 
7508
else
 
7509
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7510
for as_dir in $PATH
 
7511
do
 
7512
  IFS=$as_save_IFS
 
7513
  test -z "$as_dir" && as_dir=.
 
7514
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7515
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7516
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
 
7517
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7518
    break 2
 
7519
  fi
 
7520
done
 
7521
done
 
7522
IFS=$as_save_IFS
 
7523
 
 
7524
fi
 
7525
fi
 
7526
DSYMUTIL=$ac_cv_prog_DSYMUTIL
 
7527
if test -n "$DSYMUTIL"; then
 
7528
  { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
 
7529
$as_echo "$DSYMUTIL" >&6; }
 
7530
else
 
7531
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7532
$as_echo "no" >&6; }
 
7533
fi
 
7534
 
 
7535
 
 
7536
fi
 
7537
if test -z "$ac_cv_prog_DSYMUTIL"; then
 
7538
  ac_ct_DSYMUTIL=$DSYMUTIL
 
7539
  # Extract the first word of "dsymutil", so it can be a program name with args.
 
7540
set dummy dsymutil; ac_word=$2
 
7541
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7542
$as_echo_n "checking for $ac_word... " >&6; }
 
7543
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
 
7544
  $as_echo_n "(cached) " >&6
 
7545
else
 
7546
  if test -n "$ac_ct_DSYMUTIL"; then
 
7547
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
 
7548
else
 
7549
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7550
for as_dir in $PATH
 
7551
do
 
7552
  IFS=$as_save_IFS
 
7553
  test -z "$as_dir" && as_dir=.
 
7554
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7555
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7556
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
 
7557
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7558
    break 2
 
7559
  fi
 
7560
done
 
7561
done
 
7562
IFS=$as_save_IFS
 
7563
 
 
7564
fi
 
7565
fi
 
7566
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
 
7567
if test -n "$ac_ct_DSYMUTIL"; then
 
7568
  { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
 
7569
$as_echo "$ac_ct_DSYMUTIL" >&6; }
 
7570
else
 
7571
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7572
$as_echo "no" >&6; }
 
7573
fi
 
7574
 
 
7575
  if test "x$ac_ct_DSYMUTIL" = x; then
 
7576
    DSYMUTIL=":"
 
7577
  else
 
7578
    case $cross_compiling:$ac_tool_warned in
 
7579
yes:)
 
7580
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
7581
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7582
ac_tool_warned=yes ;;
 
7583
esac
 
7584
    DSYMUTIL=$ac_ct_DSYMUTIL
 
7585
  fi
 
7586
else
 
7587
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
 
7588
fi
 
7589
 
 
7590
    if test -n "$ac_tool_prefix"; then
 
7591
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
 
7592
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
 
7593
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7594
$as_echo_n "checking for $ac_word... " >&6; }
 
7595
if test "${ac_cv_prog_NMEDIT+set}" = set; then
 
7596
  $as_echo_n "(cached) " >&6
 
7597
else
 
7598
  if test -n "$NMEDIT"; then
 
7599
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
 
7600
else
 
7601
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7602
for as_dir in $PATH
 
7603
do
 
7604
  IFS=$as_save_IFS
 
7605
  test -z "$as_dir" && as_dir=.
 
7606
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7607
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7608
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
 
7609
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7610
    break 2
 
7611
  fi
 
7612
done
 
7613
done
 
7614
IFS=$as_save_IFS
 
7615
 
 
7616
fi
 
7617
fi
 
7618
NMEDIT=$ac_cv_prog_NMEDIT
 
7619
if test -n "$NMEDIT"; then
 
7620
  { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
 
7621
$as_echo "$NMEDIT" >&6; }
 
7622
else
 
7623
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7624
$as_echo "no" >&6; }
 
7625
fi
 
7626
 
 
7627
 
 
7628
fi
 
7629
if test -z "$ac_cv_prog_NMEDIT"; then
 
7630
  ac_ct_NMEDIT=$NMEDIT
 
7631
  # Extract the first word of "nmedit", so it can be a program name with args.
 
7632
set dummy nmedit; ac_word=$2
 
7633
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7634
$as_echo_n "checking for $ac_word... " >&6; }
 
7635
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
 
7636
  $as_echo_n "(cached) " >&6
 
7637
else
 
7638
  if test -n "$ac_ct_NMEDIT"; then
 
7639
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
 
7640
else
 
7641
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7642
for as_dir in $PATH
 
7643
do
 
7644
  IFS=$as_save_IFS
 
7645
  test -z "$as_dir" && as_dir=.
 
7646
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7647
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7648
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
 
7649
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7650
    break 2
 
7651
  fi
 
7652
done
 
7653
done
 
7654
IFS=$as_save_IFS
 
7655
 
 
7656
fi
 
7657
fi
 
7658
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
 
7659
if test -n "$ac_ct_NMEDIT"; then
 
7660
  { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
 
7661
$as_echo "$ac_ct_NMEDIT" >&6; }
 
7662
else
 
7663
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
7664
$as_echo "no" >&6; }
 
7665
fi
 
7666
 
 
7667
  if test "x$ac_ct_NMEDIT" = x; then
 
7668
    NMEDIT=":"
 
7669
  else
 
7670
    case $cross_compiling:$ac_tool_warned in
 
7671
yes:)
 
7672
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
7673
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
7674
ac_tool_warned=yes ;;
 
7675
esac
 
7676
    NMEDIT=$ac_ct_NMEDIT
 
7677
  fi
 
7678
else
 
7679
  NMEDIT="$ac_cv_prog_NMEDIT"
 
7680
fi
 
7681
 
 
7682
 
 
7683
    { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
 
7684
$as_echo_n "checking for -single_module linker flag... " >&6; }
 
7685
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
 
7686
  $as_echo_n "(cached) " >&6
 
7687
else
 
7688
  lt_cv_apple_cc_single_mod=no
 
7689
      if test -z "${LT_MULTI_MODULE}"; then
 
7690
   # By default we will add the -single_module flag. You can override
 
7691
   # by either setting the environment variable LT_MULTI_MODULE
 
7692
   # non-empty at configure time, or by adding -multi_module to the
 
7693
   # link flags.
 
7694
   echo "int foo(void){return 1;}" > conftest.c
 
7695
   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
7696
     -dynamiclib ${wl}-single_module conftest.c
 
7697
   if test -f libconftest.dylib; then
 
7698
     lt_cv_apple_cc_single_mod=yes
 
7699
     rm -rf libconftest.dylib*
 
7700
   fi
 
7701
   rm conftest.c
 
7702
      fi
 
7703
fi
 
7704
{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
 
7705
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
 
7706
    { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
 
7707
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
 
7708
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
 
7709
  $as_echo_n "(cached) " >&6
 
7710
else
 
7711
  lt_cv_ld_exported_symbols_list=no
 
7712
      save_LDFLAGS=$LDFLAGS
 
7713
      echo "_main" > conftest.sym
 
7714
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
7715
      cat >conftest.$ac_ext <<_ACEOF
 
7716
/* confdefs.h.  */
 
7717
_ACEOF
 
7718
cat confdefs.h >>conftest.$ac_ext
 
7719
cat >>conftest.$ac_ext <<_ACEOF
 
7720
/* end confdefs.h.  */
 
7721
 
 
7722
int
 
7723
main ()
 
7724
{
 
7725
 
 
7726
  ;
 
7727
  return 0;
 
7728
}
 
7729
_ACEOF
 
7730
rm -f conftest.$ac_objext conftest$ac_exeext
 
7731
if { (ac_try="$ac_link"
 
7732
case "(($ac_try" in
 
7733
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7734
  *) ac_try_echo=$ac_try;;
 
7735
esac
 
7736
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
7737
$as_echo "$ac_try_echo") >&5
 
7738
  (eval "$ac_link") 2>conftest.er1
 
7739
  ac_status=$?
 
7740
  grep -v '^ *+' conftest.er1 >conftest.err
 
7741
  rm -f conftest.er1
 
7742
  cat conftest.err >&5
 
7743
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7744
  (exit $ac_status); } && {
 
7745
         test -z "$ac_c_werror_flag" ||
 
7746
         test ! -s conftest.err
 
7747
       } && test -s conftest$ac_exeext && {
 
7748
         test "$cross_compiling" = yes ||
 
7749
         $as_test_x conftest$ac_exeext
 
7750
       }; then
 
7751
  lt_cv_ld_exported_symbols_list=yes
 
7752
else
 
7753
  $as_echo "$as_me: failed program was:" >&5
 
7754
sed 's/^/| /' conftest.$ac_ext >&5
 
7755
 
 
7756
        lt_cv_ld_exported_symbols_list=no
 
7757
fi
 
7758
 
 
7759
rm -rf conftest.dSYM
 
7760
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
7761
      conftest$ac_exeext conftest.$ac_ext
 
7762
   LDFLAGS="$save_LDFLAGS"
 
7763
 
 
7764
fi
 
7765
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
 
7766
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
 
7767
    case $host_os in
 
7768
    rhapsody* | darwin1.[0123])
 
7769
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
7770
    darwin1.*)
 
7771
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
7772
    darwin*)
 
7773
      # if running on 10.5 or later, the deployment target defaults
 
7774
      # to the OS version, if on x86, and 10.4, the deployment
 
7775
      # target defaults to 10.4. Don't you love it?
 
7776
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
7777
   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 
7778
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
7779
   10.[012]*)
 
7780
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
7781
   10.*)
 
7782
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
7783
      esac
 
7784
    ;;
 
7785
  esac
 
7786
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
7787
      _lt_dar_single_mod='$single_module'
 
7788
    fi
 
7789
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
7790
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
7791
    else
 
7792
      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
 
7793
    fi
 
7794
    if test "$DSYMUTIL" != ":"; then
 
7795
      _lt_dsymutil="~$DSYMUTIL \$lib || :"
 
7796
    else
 
7797
      _lt_dsymutil=
 
7798
    fi
 
7799
    ;;
 
7800
  esac
 
7801
 
 
7802
 
 
7803
enable_dlopen=yes
 
7804
enable_win32_dll=no
 
7805
 
 
7806
# Check whether --enable-libtool-lock was given.
 
7807
if test "${enable_libtool_lock+set}" = set; then
 
7808
  enableval=$enable_libtool_lock;
 
7809
fi
 
7810
 
 
7811
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
7812
 
 
7813
 
 
7814
# Check whether --with-pic was given.
 
7815
if test "${with_pic+set}" = set; then
 
7816
  withval=$with_pic; pic_mode="$withval"
 
7817
else
 
7818
  pic_mode=default
 
7819
fi
 
7820
 
 
7821
test -z "$pic_mode" && pic_mode=default
 
7822
 
 
7823
# Use C for the default configuration in the libtool script
 
7824
tagname=
 
7825
lt_save_CC="$CC"
 
7826
ac_ext=c
 
7827
ac_cpp='$CPP $CPPFLAGS'
 
7828
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7829
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7830
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7831
 
 
7832
 
 
7833
# Source file extension for C test sources.
 
7834
ac_ext=c
 
7835
 
 
7836
# Object file extension for compiled C test sources.
 
7837
objext=o
 
7838
objext=$objext
 
7839
 
 
7840
# Code to be used in simple compile tests
 
7841
lt_simple_compile_test_code="int some_variable = 0;"
 
7842
 
 
7843
# Code to be used in simple link tests
 
7844
lt_simple_link_test_code='int main(){return(0);}'
 
7845
 
 
7846
 
 
7847
# If no C compiler was specified, use CC.
 
7848
LTCC=${LTCC-"$CC"}
 
7849
 
 
7850
# If no C compiler flags were specified, use CFLAGS.
 
7851
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
7852
 
 
7853
# Allow CC to be a program name with arguments.
 
7854
compiler=$CC
 
7855
 
 
7856
 
 
7857
# save warnings/boilerplate of simple test code
 
7858
ac_outfile=conftest.$ac_objext
 
7859
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
7860
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7861
_lt_compiler_boilerplate=`cat conftest.err`
 
7862
$rm conftest*
 
7863
 
 
7864
ac_outfile=conftest.$ac_objext
 
7865
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
7866
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7867
_lt_linker_boilerplate=`cat conftest.err`
 
7868
$rm -r conftest*
 
7869
 
 
7870
 
 
7871
 
 
7872
lt_prog_compiler_no_builtin_flag=
 
7873
 
 
7874
if test "$GCC" = yes; then
 
7875
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
7876
 
 
7877
 
 
7878
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
7879
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
 
7880
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
7881
  $as_echo_n "(cached) " >&6
 
7882
else
 
7883
  lt_cv_prog_compiler_rtti_exceptions=no
 
7884
  ac_outfile=conftest.$ac_objext
 
7885
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7886
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
7887
   # Insert the option either (1) after the last *FLAGS variable, or
 
7888
   # (2) before a word containing "conftest.", or (3) at the end.
 
7889
   # Note that $ac_compile itself does not contain backslashes and begins
 
7890
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7891
   # The option is referenced via a variable to avoid confusing sed.
 
7892
   lt_compile=`echo "$ac_compile" | $SED \
 
7893
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7894
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7895
   -e 's:$: $lt_compiler_flag:'`
 
7896
   (eval echo "\"\$as_me:7896: $lt_compile\"" >&5)
 
7897
   (eval "$lt_compile" 2>conftest.err)
 
7898
   ac_status=$?
 
7899
   cat conftest.err >&5
 
7900
   echo "$as_me:7900: \$? = $ac_status" >&5
 
7901
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
7902
     # The compiler can only warn and ignore the option if not recognized
 
7903
     # So say no if there are warnings other than the usual output.
 
7904
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
7905
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7906
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
7907
       lt_cv_prog_compiler_rtti_exceptions=yes
 
7908
     fi
 
7909
   fi
 
7910
   $rm conftest*
 
7911
 
 
7912
fi
 
7913
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
7914
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
7915
 
 
7916
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
7917
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
7918
else
 
7919
    :
 
7920
fi
 
7921
 
 
7922
fi
 
7923
 
 
7924
lt_prog_compiler_wl=
 
7925
lt_prog_compiler_pic=
 
7926
lt_prog_compiler_static=
 
7927
 
 
7928
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
7929
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
7930
 
 
7931
  if test "$GCC" = yes; then
 
7932
    lt_prog_compiler_wl='-Wl,'
 
7933
    lt_prog_compiler_static='-static'
 
7934
 
 
7935
    case $host_os in
 
7936
      aix*)
 
7937
      # All AIX code is PIC.
 
7938
      if test "$host_cpu" = ia64; then
 
7939
        # AIX 5 now supports IA64 processor
 
7940
        lt_prog_compiler_static='-Bstatic'
 
7941
      fi
 
7942
      ;;
 
7943
 
 
7944
    amigaos*)
 
7945
      # FIXME: we need at least 68020 code to build shared libraries, but
 
7946
      # adding the `-m68020' flag to GCC prevents building anything better,
 
7947
      # like `-m68040'.
 
7948
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
7949
      ;;
 
7950
 
 
7951
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
7952
      # PIC is the default for these OSes.
 
7953
      ;;
 
7954
 
 
7955
    mingw* | cygwin* | pw32* | os2*)
 
7956
      # This hack is so that the source file can tell whether it is being
 
7957
      # built for inclusion in a dll (and should export symbols for example).
 
7958
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
7959
      # (--disable-auto-import) libraries
 
7960
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
7961
      ;;
 
7962
 
 
7963
    darwin* | rhapsody*)
 
7964
      # PIC is the default on this platform
 
7965
      # Common symbols not allowed in MH_DYLIB files
 
7966
      lt_prog_compiler_pic='-fno-common'
 
7967
      ;;
 
7968
 
 
7969
    interix[3-9]*)
 
7970
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
7971
      # Instead, we relocate shared libraries at runtime.
 
7972
      ;;
 
7973
 
 
7974
    msdosdjgpp*)
 
7975
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
7976
      # on systems that don't support them.
 
7977
      lt_prog_compiler_can_build_shared=no
 
7978
      enable_shared=no
 
7979
      ;;
 
7980
 
 
7981
    sysv4*MP*)
 
7982
      if test -d /usr/nec; then
 
7983
        lt_prog_compiler_pic=-Kconform_pic
 
7984
      fi
 
7985
      ;;
 
7986
 
 
7987
    hpux*)
 
7988
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
7989
      # not for PA HP-UX.
 
7990
      case $host_cpu in
 
7991
      hppa*64*|ia64*)
 
7992
        # +Z the default
 
7993
        ;;
 
7994
      *)
 
7995
        lt_prog_compiler_pic='-fPIC'
 
7996
        ;;
 
7997
      esac
 
7998
      ;;
 
7999
 
 
8000
    *)
 
8001
      lt_prog_compiler_pic='-fPIC'
 
8002
      ;;
 
8003
    esac
 
8004
  else
 
8005
    # PORTME Check for flag to pass linker flags through the system compiler.
 
8006
    case $host_os in
 
8007
    aix*)
 
8008
      lt_prog_compiler_wl='-Wl,'
 
8009
      if test "$host_cpu" = ia64; then
 
8010
        # AIX 5 now supports IA64 processor
 
8011
        lt_prog_compiler_static='-Bstatic'
 
8012
      else
 
8013
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
8014
      fi
 
8015
      ;;
 
8016
      darwin*)
 
8017
        # PIC is the default on this platform
 
8018
        # Common symbols not allowed in MH_DYLIB files
 
8019
       case $cc_basename in
 
8020
         xlc*)
 
8021
         lt_prog_compiler_pic='-qnocommon'
 
8022
         lt_prog_compiler_wl='-Wl,'
 
8023
         ;;
 
8024
       esac
 
8025
       ;;
 
8026
 
 
8027
    mingw* | cygwin* | pw32* | os2*)
 
8028
      # This hack is so that the source file can tell whether it is being
 
8029
      # built for inclusion in a dll (and should export symbols for example).
 
8030
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
8031
      ;;
 
8032
 
 
8033
    hpux9* | hpux10* | hpux11*)
 
8034
      lt_prog_compiler_wl='-Wl,'
 
8035
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
8036
      # not for PA HP-UX.
 
8037
      case $host_cpu in
 
8038
      hppa*64*|ia64*)
 
8039
        # +Z the default
 
8040
        ;;
 
8041
      *)
 
8042
        lt_prog_compiler_pic='+Z'
 
8043
        ;;
 
8044
      esac
 
8045
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
8046
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
8047
      ;;
 
8048
 
 
8049
    irix5* | irix6* | nonstopux*)
 
8050
      lt_prog_compiler_wl='-Wl,'
 
8051
      # PIC (with -KPIC) is the default.
 
8052
      lt_prog_compiler_static='-non_shared'
 
8053
      ;;
 
8054
 
 
8055
    newsos6)
 
8056
      lt_prog_compiler_pic='-KPIC'
 
8057
      lt_prog_compiler_static='-Bstatic'
 
8058
      ;;
 
8059
 
 
8060
    linux* | k*bsd*-gnu)
 
8061
      case $cc_basename in
 
8062
      icc* | ecc*)
 
8063
        lt_prog_compiler_wl='-Wl,'
 
8064
        lt_prog_compiler_pic='-KPIC'
 
8065
        lt_prog_compiler_static='-static'
 
8066
        ;;
 
8067
      pgcc* | pgf77* | pgf90* | pgf95*)
 
8068
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
8069
        # which looks to be a dead project)
 
8070
        lt_prog_compiler_wl='-Wl,'
 
8071
        lt_prog_compiler_pic='-fpic'
 
8072
        lt_prog_compiler_static='-Bstatic'
 
8073
        ;;
 
8074
      ccc*)
 
8075
        lt_prog_compiler_wl='-Wl,'
 
8076
        # All Alpha code is PIC.
 
8077
        lt_prog_compiler_static='-non_shared'
 
8078
        ;;
 
8079
      *)
 
8080
        case `$CC -V 2>&1 | sed 5q` in
 
8081
        *Sun\ C*)
 
8082
          # Sun C 5.9
 
8083
          lt_prog_compiler_pic='-KPIC'
 
8084
          lt_prog_compiler_static='-Bstatic'
 
8085
          lt_prog_compiler_wl='-Wl,'
 
8086
          ;;
 
8087
        *Sun\ F*)
 
8088
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
8089
          lt_prog_compiler_pic='-KPIC'
 
8090
          lt_prog_compiler_static='-Bstatic'
 
8091
          lt_prog_compiler_wl=''
 
8092
          ;;
 
8093
        esac
 
8094
        ;;
 
8095
      esac
 
8096
      ;;
 
8097
 
 
8098
    osf3* | osf4* | osf5*)
 
8099
      lt_prog_compiler_wl='-Wl,'
 
8100
      # All OSF/1 code is PIC.
 
8101
      lt_prog_compiler_static='-non_shared'
 
8102
      ;;
 
8103
 
 
8104
    rdos*)
 
8105
      lt_prog_compiler_static='-non_shared'
 
8106
      ;;
 
8107
 
 
8108
    solaris*)
 
8109
      lt_prog_compiler_pic='-KPIC'
 
8110
      lt_prog_compiler_static='-Bstatic'
 
8111
      case $cc_basename in
 
8112
      f77* | f90* | f95*)
 
8113
        lt_prog_compiler_wl='-Qoption ld ';;
 
8114
      *)
 
8115
        lt_prog_compiler_wl='-Wl,';;
 
8116
      esac
 
8117
      ;;
 
8118
 
 
8119
    sunos4*)
 
8120
      lt_prog_compiler_wl='-Qoption ld '
 
8121
      lt_prog_compiler_pic='-PIC'
 
8122
      lt_prog_compiler_static='-Bstatic'
 
8123
      ;;
 
8124
 
 
8125
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
8126
      lt_prog_compiler_wl='-Wl,'
 
8127
      lt_prog_compiler_pic='-KPIC'
 
8128
      lt_prog_compiler_static='-Bstatic'
 
8129
      ;;
 
8130
 
 
8131
    sysv4*MP*)
 
8132
      if test -d /usr/nec ;then
 
8133
        lt_prog_compiler_pic='-Kconform_pic'
 
8134
        lt_prog_compiler_static='-Bstatic'
 
8135
      fi
 
8136
      ;;
 
8137
 
 
8138
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
8139
      lt_prog_compiler_wl='-Wl,'
 
8140
      lt_prog_compiler_pic='-KPIC'
 
8141
      lt_prog_compiler_static='-Bstatic'
 
8142
      ;;
 
8143
 
 
8144
    unicos*)
 
8145
      lt_prog_compiler_wl='-Wl,'
 
8146
      lt_prog_compiler_can_build_shared=no
 
8147
      ;;
 
8148
 
 
8149
    uts4*)
 
8150
      lt_prog_compiler_pic='-pic'
 
8151
      lt_prog_compiler_static='-Bstatic'
 
8152
      ;;
 
8153
 
 
8154
    *)
 
8155
      lt_prog_compiler_can_build_shared=no
 
8156
      ;;
 
8157
    esac
 
8158
  fi
 
8159
 
 
8160
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
8161
$as_echo "$lt_prog_compiler_pic" >&6; }
 
8162
 
 
8163
#
 
8164
# Check to make sure the PIC flag actually works.
 
8165
#
 
8166
if test -n "$lt_prog_compiler_pic"; then
 
8167
 
 
8168
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
8169
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
 
8170
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
 
8171
  $as_echo_n "(cached) " >&6
 
8172
else
 
8173
  lt_cv_prog_compiler_pic_works=no
 
8174
  ac_outfile=conftest.$ac_objext
 
8175
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8176
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
8177
   # Insert the option either (1) after the last *FLAGS variable, or
 
8178
   # (2) before a word containing "conftest.", or (3) at the end.
 
8179
   # Note that $ac_compile itself does not contain backslashes and begins
 
8180
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8181
   # The option is referenced via a variable to avoid confusing sed.
 
8182
   lt_compile=`echo "$ac_compile" | $SED \
 
8183
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8184
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8185
   -e 's:$: $lt_compiler_flag:'`
 
8186
   (eval echo "\"\$as_me:8186: $lt_compile\"" >&5)
 
8187
   (eval "$lt_compile" 2>conftest.err)
 
8188
   ac_status=$?
 
8189
   cat conftest.err >&5
 
8190
   echo "$as_me:8190: \$? = $ac_status" >&5
 
8191
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
8192
     # The compiler can only warn and ignore the option if not recognized
 
8193
     # So say no if there are warnings other than the usual output.
 
8194
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
8195
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8196
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
8197
       lt_cv_prog_compiler_pic_works=yes
 
8198
     fi
 
8199
   fi
 
8200
   $rm conftest*
 
8201
 
 
8202
fi
 
8203
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
 
8204
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
 
8205
 
 
8206
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
 
8207
    case $lt_prog_compiler_pic in
 
8208
     "" | " "*) ;;
 
8209
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
8210
     esac
 
8211
else
 
8212
    lt_prog_compiler_pic=
 
8213
     lt_prog_compiler_can_build_shared=no
 
8214
fi
 
8215
 
 
8216
fi
 
8217
case $host_os in
 
8218
  # For platforms which do not support PIC, -DPIC is meaningless:
 
8219
  *djgpp*)
 
8220
    lt_prog_compiler_pic=
 
8221
    ;;
 
8222
  *)
 
8223
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
8224
    ;;
 
8225
esac
 
8226
 
 
8227
#
 
8228
# Check to make sure the static flag actually works.
 
8229
#
 
8230
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
8231
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
8232
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
8233
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
 
8234
  $as_echo_n "(cached) " >&6
 
8235
else
 
8236
  lt_cv_prog_compiler_static_works=no
 
8237
   save_LDFLAGS="$LDFLAGS"
 
8238
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
8239
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
8240
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
8241
     # The linker can only warn and ignore the option if not recognized
 
8242
     # So say no if there are warnings
 
8243
     if test -s conftest.err; then
 
8244
       # Append any errors to the config.log.
 
8245
       cat conftest.err 1>&5
 
8246
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
8247
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
8248
       if diff conftest.exp conftest.er2 >/dev/null; then
 
8249
         lt_cv_prog_compiler_static_works=yes
 
8250
       fi
 
8251
     else
 
8252
       lt_cv_prog_compiler_static_works=yes
 
8253
     fi
 
8254
   fi
 
8255
   $rm -r conftest*
 
8256
   LDFLAGS="$save_LDFLAGS"
 
8257
 
 
8258
fi
 
8259
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
 
8260
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
 
8261
 
 
8262
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
 
8263
    :
 
8264
else
 
8265
    lt_prog_compiler_static=
 
8266
fi
 
8267
 
 
8268
 
 
8269
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
8270
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
8271
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
8272
  $as_echo_n "(cached) " >&6
 
8273
else
 
8274
  lt_cv_prog_compiler_c_o=no
 
8275
   $rm -r conftest 2>/dev/null
 
8276
   mkdir conftest
 
8277
   cd conftest
 
8278
   mkdir out
 
8279
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8280
 
 
8281
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
8282
   # Insert the option either (1) after the last *FLAGS variable, or
 
8283
   # (2) before a word containing "conftest.", or (3) at the end.
 
8284
   # Note that $ac_compile itself does not contain backslashes and begins
 
8285
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8286
   lt_compile=`echo "$ac_compile" | $SED \
 
8287
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8288
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8289
   -e 's:$: $lt_compiler_flag:'`
 
8290
   (eval echo "\"\$as_me:8290: $lt_compile\"" >&5)
 
8291
   (eval "$lt_compile" 2>out/conftest.err)
 
8292
   ac_status=$?
 
8293
   cat out/conftest.err >&5
 
8294
   echo "$as_me:8294: \$? = $ac_status" >&5
 
8295
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
8296
   then
 
8297
     # The compiler can only warn and ignore the option if not recognized
 
8298
     # So say no if there are warnings
 
8299
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
8300
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
8301
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
8302
       lt_cv_prog_compiler_c_o=yes
 
8303
     fi
 
8304
   fi
 
8305
   chmod u+w . 2>&5
 
8306
   $rm conftest*
 
8307
   # SGI C++ compiler will create directory out/ii_files/ for
 
8308
   # template instantiation
 
8309
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
8310
   $rm out/* && rmdir out
 
8311
   cd ..
 
8312
   rmdir conftest
 
8313
   $rm conftest*
 
8314
 
 
8315
fi
 
8316
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
8317
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
 
8318
 
 
8319
 
 
8320
hard_links="nottested"
 
8321
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
8322
  # do not overwrite the value of need_locks provided by the user
 
8323
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
8324
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
8325
  hard_links=yes
 
8326
  $rm conftest*
 
8327
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
8328
  touch conftest.a
 
8329
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
8330
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
8331
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
 
8332
$as_echo "$hard_links" >&6; }
 
8333
  if test "$hard_links" = no; then
 
8334
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
8335
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
8336
    need_locks=warn
 
8337
  fi
 
8338
else
 
8339
  need_locks=no
 
8340
fi
 
8341
 
 
8342
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
8343
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
8344
 
 
8345
  runpath_var=
 
8346
  allow_undefined_flag=
 
8347
  enable_shared_with_static_runtimes=no
 
8348
  archive_cmds=
 
8349
  archive_expsym_cmds=
 
8350
  old_archive_From_new_cmds=
 
8351
  old_archive_from_expsyms_cmds=
 
8352
  export_dynamic_flag_spec=
 
8353
  whole_archive_flag_spec=
 
8354
  thread_safe_flag_spec=
 
8355
  hardcode_libdir_flag_spec=
 
8356
  hardcode_libdir_flag_spec_ld=
 
8357
  hardcode_libdir_separator=
 
8358
  hardcode_direct=no
 
8359
  hardcode_minus_L=no
 
8360
  hardcode_shlibpath_var=unsupported
 
8361
  link_all_deplibs=unknown
 
8362
  hardcode_automatic=no
 
8363
  module_cmds=
 
8364
  module_expsym_cmds=
 
8365
  always_export_symbols=no
 
8366
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
8367
  # include_expsyms should be a list of space-separated symbols to be *always*
 
8368
  # included in the symbol list
 
8369
  include_expsyms=
 
8370
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
8371
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
8372
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
8373
  # as well as any symbol that contains `d'.
 
8374
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
8375
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
8376
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
8377
  # the symbol is explicitly referenced.  Since portable code cannot
 
8378
  # rely on this symbol name, it's probably fine to never include it in
 
8379
  # preloaded symbol tables.
 
8380
  # Exclude shared library initialization/finalization symbols.
 
8381
  extract_expsyms_cmds=
 
8382
  # Just being paranoid about ensuring that cc_basename is set.
 
8383
  for cc_temp in $compiler""; do
 
8384
  case $cc_temp in
 
8385
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
8386
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
8387
    \-*) ;;
 
8388
    *) break;;
 
8389
  esac
 
8390
done
 
8391
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
8392
 
 
8393
  case $host_os in
 
8394
  cygwin* | mingw* | pw32*)
 
8395
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
8396
    # When not using gcc, we currently assume that we are using
 
8397
    # Microsoft Visual C++.
 
8398
    if test "$GCC" != yes; then
 
8399
      with_gnu_ld=no
 
8400
    fi
 
8401
    ;;
 
8402
  interix*)
 
8403
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
8404
    with_gnu_ld=yes
 
8405
    ;;
 
8406
  openbsd*)
 
8407
    with_gnu_ld=no
 
8408
    ;;
 
8409
  esac
 
8410
 
 
8411
  ld_shlibs=yes
 
8412
  if test "$with_gnu_ld" = yes; then
 
8413
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
8414
    wlarc='${wl}'
 
8415
 
 
8416
    # Set some defaults for GNU ld with shared library support. These
 
8417
    # are reset later if shared libraries are not supported. Putting them
 
8418
    # here allows them to be overridden if necessary.
 
8419
    runpath_var=LD_RUN_PATH
 
8420
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
8421
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
8422
    # ancient GNU ld didn't support --whole-archive et. al.
 
8423
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
8424
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
8425
      else
 
8426
        whole_archive_flag_spec=
 
8427
    fi
 
8428
    supports_anon_versioning=no
 
8429
    case `$LD -v 2>/dev/null` in
 
8430
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
8431
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
8432
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
8433
      *\ 2.11.*) ;; # other 2.11 versions
 
8434
      *) supports_anon_versioning=yes ;;
 
8435
    esac
 
8436
 
 
8437
    # See if GNU ld supports shared libraries.
 
8438
    case $host_os in
 
8439
    aix[3-9]*)
 
8440
      # On AIX/PPC, the GNU linker is very broken
 
8441
      if test "$host_cpu" != ia64; then
 
8442
        ld_shlibs=no
 
8443
        cat <<EOF 1>&2
 
8444
 
 
8445
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
8446
*** to be unable to reliably create shared libraries on AIX.
 
8447
*** Therefore, libtool is disabling shared libraries support.  If you
 
8448
*** really care for shared libraries, you may want to modify your PATH
 
8449
*** so that a non-GNU linker is found, and then restart.
 
8450
 
 
8451
EOF
 
8452
      fi
 
8453
      ;;
 
8454
 
 
8455
    amigaos*)
 
8456
      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)'
 
8457
      hardcode_libdir_flag_spec='-L$libdir'
 
8458
      hardcode_minus_L=yes
 
8459
 
 
8460
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
8461
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
8462
      # to version 4, is to share data among multiple programs linked
 
8463
      # with the same dynamic library.  Since this doesn't match the
 
8464
      # behavior of shared libraries on other platforms, we can't use
 
8465
      # them.
 
8466
      ld_shlibs=no
 
8467
      ;;
 
8468
 
 
8469
    beos*)
 
8470
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8471
        allow_undefined_flag=unsupported
 
8472
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
8473
        # support --undefined.  This deserves some investigation.  FIXME
 
8474
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8475
      else
 
8476
        ld_shlibs=no
 
8477
      fi
 
8478
      ;;
 
8479
 
 
8480
    cygwin* | mingw* | pw32*)
 
8481
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
8482
      # as there is no search path for DLLs.
 
8483
      hardcode_libdir_flag_spec='-L$libdir'
 
8484
      allow_undefined_flag=unsupported
 
8485
      always_export_symbols=no
 
8486
      enable_shared_with_static_runtimes=yes
 
8487
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
8488
 
 
8489
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
8490
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
8491
        # If the export-symbols file already is a .def file (1st line
 
8492
        # is EXPORTS), use it as is; otherwise, prepend...
 
8493
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
8494
          cp $export_symbols $output_objdir/$soname.def;
 
8495
        else
 
8496
          echo EXPORTS > $output_objdir/$soname.def;
 
8497
          cat $export_symbols >> $output_objdir/$soname.def;
 
8498
        fi~
 
8499
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
8500
      else
 
8501
        ld_shlibs=no
 
8502
      fi
 
8503
      ;;
 
8504
 
 
8505
    interix[3-9]*)
 
8506
      hardcode_direct=no
 
8507
      hardcode_shlibpath_var=no
 
8508
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8509
      export_dynamic_flag_spec='${wl}-E'
 
8510
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
8511
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
8512
      # default) and relocated if they conflict, which is a slow very memory
 
8513
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
8514
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
8515
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
8516
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
8517
      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'
 
8518
      ;;
 
8519
 
 
8520
    gnu* | linux* | k*bsd*-gnu)
 
8521
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8522
        tmp_addflag=
 
8523
        case $cc_basename,$host_cpu in
 
8524
        pgcc*)                          # Portland Group C compiler
 
8525
          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'
 
8526
          tmp_addflag=' $pic_flag'
 
8527
          ;;
 
8528
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
8529
          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'
 
8530
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
8531
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
8532
          tmp_addflag=' -i_dynamic' ;;
 
8533
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
8534
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
8535
        ifc* | ifort*)                  # Intel Fortran compiler
 
8536
          tmp_addflag=' -nofor_main' ;;
 
8537
        esac
 
8538
        case `$CC -V 2>&1 | sed 5q` in
 
8539
        *Sun\ C*)                       # Sun C 5.9
 
8540
          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'
 
8541
          tmp_sharedflag='-G' ;;
 
8542
        *Sun\ F*)                       # Sun Fortran 8.3
 
8543
          tmp_sharedflag='-G' ;;
 
8544
        *)
 
8545
          tmp_sharedflag='-shared' ;;
 
8546
        esac
 
8547
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8548
 
 
8549
        if test $supports_anon_versioning = yes; then
 
8550
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
8551
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
8552
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
8553
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
8554
        fi
 
8555
        link_all_deplibs=no
 
8556
      else
 
8557
        ld_shlibs=no
 
8558
      fi
 
8559
      ;;
 
8560
 
 
8561
    netbsd*)
 
8562
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
8563
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
8564
        wlarc=
 
8565
      else
 
8566
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8567
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8568
      fi
 
8569
      ;;
 
8570
 
 
8571
    solaris*)
 
8572
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
8573
        ld_shlibs=no
 
8574
        cat <<EOF 1>&2
 
8575
 
 
8576
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
8577
*** create shared libraries on Solaris systems.  Therefore, libtool
 
8578
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
8579
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
8580
*** your PATH or compiler configuration so that the native linker is
 
8581
*** used, and then restart.
 
8582
 
 
8583
EOF
 
8584
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8585
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8586
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8587
      else
 
8588
        ld_shlibs=no
 
8589
      fi
 
8590
      ;;
 
8591
 
 
8592
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
8593
      case `$LD -v 2>&1` in
 
8594
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
8595
        ld_shlibs=no
 
8596
        cat <<_LT_EOF 1>&2
 
8597
 
 
8598
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
8599
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
8600
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
8601
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
8602
*** your PATH or compiler configuration so that the native linker is
 
8603
*** used, and then restart.
 
8604
 
 
8605
_LT_EOF
 
8606
        ;;
 
8607
        *)
 
8608
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8609
            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
8610
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
8611
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
8612
          else
 
8613
            ld_shlibs=no
 
8614
          fi
 
8615
        ;;
 
8616
      esac
 
8617
      ;;
 
8618
 
 
8619
    sunos4*)
 
8620
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8621
      wlarc=
 
8622
      hardcode_direct=yes
 
8623
      hardcode_shlibpath_var=no
 
8624
      ;;
 
8625
 
 
8626
    *)
 
8627
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8628
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8629
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8630
      else
 
8631
        ld_shlibs=no
 
8632
      fi
 
8633
      ;;
 
8634
    esac
 
8635
 
 
8636
    if test "$ld_shlibs" = no; then
 
8637
      runpath_var=
 
8638
      hardcode_libdir_flag_spec=
 
8639
      export_dynamic_flag_spec=
 
8640
      whole_archive_flag_spec=
 
8641
    fi
 
8642
  else
 
8643
    # PORTME fill in a description of your system's linker (not GNU ld)
 
8644
    case $host_os in
 
8645
    aix3*)
 
8646
      allow_undefined_flag=unsupported
 
8647
      always_export_symbols=yes
 
8648
      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'
 
8649
      # Note: this linker hardcodes the directories in LIBPATH if there
 
8650
      # are no directories specified by -L.
 
8651
      hardcode_minus_L=yes
 
8652
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
8653
        # Neither direct hardcoding nor static linking is supported with a
 
8654
        # broken collect2.
 
8655
        hardcode_direct=unsupported
 
8656
      fi
 
8657
      ;;
 
8658
 
 
8659
    aix[4-9]*)
 
8660
      if test "$host_cpu" = ia64; then
 
8661
        # On IA64, the linker does run time linking by default, so we don't
 
8662
        # have to do anything special.
 
8663
        aix_use_runtimelinking=no
 
8664
        exp_sym_flag='-Bexport'
 
8665
        no_entry_flag=""
 
8666
      else
 
8667
        # If we're using GNU nm, then we don't want the "-C" option.
 
8668
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
8669
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
8670
          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'
 
8671
        else
 
8672
          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'
 
8673
        fi
 
8674
        aix_use_runtimelinking=no
 
8675
 
 
8676
        # Test if we are trying to use run time linking or normal
 
8677
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
8678
        # need to do runtime linking.
 
8679
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
8680
          for ld_flag in $LDFLAGS; do
 
8681
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
8682
            aix_use_runtimelinking=yes
 
8683
            break
 
8684
          fi
 
8685
          done
 
8686
          ;;
 
8687
        esac
 
8688
 
 
8689
        exp_sym_flag='-bexport'
 
8690
        no_entry_flag='-bnoentry'
 
8691
      fi
 
8692
 
 
8693
      # When large executables or shared objects are built, AIX ld can
 
8694
      # have problems creating the table of contents.  If linking a library
 
8695
      # or program results in "error TOC overflow" add -mminimal-toc to
 
8696
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
8697
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
8698
 
 
8699
      archive_cmds=''
 
8700
      hardcode_direct=yes
 
8701
      hardcode_libdir_separator=':'
 
8702
      link_all_deplibs=yes
 
8703
 
 
8704
      if test "$GCC" = yes; then
 
8705
        case $host_os in aix4.[012]|aix4.[012].*)
 
8706
        # We only want to do this on AIX 4.2 and lower, the check
 
8707
        # below for broken collect2 doesn't work under 4.3+
 
8708
          collect2name=`${CC} -print-prog-name=collect2`
 
8709
          if test -f "$collect2name" && \
 
8710
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
8711
          then
 
8712
          # We have reworked collect2
 
8713
          :
 
8714
          else
 
8715
          # We have old collect2
 
8716
          hardcode_direct=unsupported
 
8717
          # It fails to find uninstalled libraries when the uninstalled
 
8718
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
8719
          # to unsupported forces relinking
 
8720
          hardcode_minus_L=yes
 
8721
          hardcode_libdir_flag_spec='-L$libdir'
 
8722
          hardcode_libdir_separator=
 
8723
          fi
 
8724
          ;;
 
8725
        esac
 
8726
        shared_flag='-shared'
 
8727
        if test "$aix_use_runtimelinking" = yes; then
 
8728
          shared_flag="$shared_flag "'${wl}-G'
 
8729
        fi
 
8730
      else
 
8731
        # not using gcc
 
8732
        if test "$host_cpu" = ia64; then
 
8733
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
8734
        # chokes on -Wl,-G. The following line is correct:
 
8735
          shared_flag='-G'
 
8736
        else
 
8737
          if test "$aix_use_runtimelinking" = yes; then
 
8738
            shared_flag='${wl}-G'
 
8739
          else
 
8740
            shared_flag='${wl}-bM:SRE'
 
8741
          fi
 
8742
        fi
 
8743
      fi
 
8744
 
 
8745
      # It seems that -bexpall does not export symbols beginning with
 
8746
      # underscore (_), so it is better to generate a list of symbols to export.
 
8747
      always_export_symbols=yes
 
8748
      if test "$aix_use_runtimelinking" = yes; then
 
8749
        # Warning - without using the other runtime loading flags (-brtl),
 
8750
        # -berok will link without error, but may produce a broken library.
 
8751
        allow_undefined_flag='-berok'
 
8752
       # Determine the default libpath from the value encoded in an empty executable.
 
8753
       cat >conftest.$ac_ext <<_ACEOF
 
8754
/* confdefs.h.  */
 
8755
_ACEOF
 
8756
cat confdefs.h >>conftest.$ac_ext
 
8757
cat >>conftest.$ac_ext <<_ACEOF
 
8758
/* end confdefs.h.  */
 
8759
 
 
8760
int
 
8761
main ()
 
8762
{
 
8763
 
 
8764
  ;
 
8765
  return 0;
 
8766
}
 
8767
_ACEOF
 
8768
rm -f conftest.$ac_objext conftest$ac_exeext
 
8769
if { (ac_try="$ac_link"
 
8770
case "(($ac_try" in
 
8771
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8772
  *) ac_try_echo=$ac_try;;
 
8773
esac
 
8774
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
8775
$as_echo "$ac_try_echo") >&5
 
8776
  (eval "$ac_link") 2>conftest.er1
 
8777
  ac_status=$?
 
8778
  grep -v '^ *+' conftest.er1 >conftest.err
 
8779
  rm -f conftest.er1
 
8780
  cat conftest.err >&5
 
8781
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8782
  (exit $ac_status); } && {
 
8783
         test -z "$ac_c_werror_flag" ||
 
8784
         test ! -s conftest.err
 
8785
       } && test -s conftest$ac_exeext && {
 
8786
         test "$cross_compiling" = yes ||
 
8787
         $as_test_x conftest$ac_exeext
 
8788
       }; then
 
8789
 
 
8790
lt_aix_libpath_sed='
 
8791
    /Import File Strings/,/^$/ {
 
8792
        /^0/ {
 
8793
            s/^0  *\(.*\)$/\1/
 
8794
            p
 
8795
        }
 
8796
    }'
 
8797
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8798
# Check for a 64-bit object if we didn't find anything.
 
8799
if test -z "$aix_libpath"; then
 
8800
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8801
fi
 
8802
else
 
8803
  $as_echo "$as_me: failed program was:" >&5
 
8804
sed 's/^/| /' conftest.$ac_ext >&5
 
8805
 
 
8806
 
 
8807
fi
 
8808
 
 
8809
rm -rf conftest.dSYM
 
8810
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8811
      conftest$ac_exeext conftest.$ac_ext
 
8812
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
8813
 
 
8814
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8815
        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"
 
8816
       else
 
8817
        if test "$host_cpu" = ia64; then
 
8818
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
8819
          allow_undefined_flag="-z nodefs"
 
8820
          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"
 
8821
        else
 
8822
         # Determine the default libpath from the value encoded in an empty executable.
 
8823
         cat >conftest.$ac_ext <<_ACEOF
 
8824
/* confdefs.h.  */
 
8825
_ACEOF
 
8826
cat confdefs.h >>conftest.$ac_ext
 
8827
cat >>conftest.$ac_ext <<_ACEOF
 
8828
/* end confdefs.h.  */
 
8829
 
 
8830
int
 
8831
main ()
 
8832
{
 
8833
 
 
8834
  ;
 
8835
  return 0;
 
8836
}
 
8837
_ACEOF
 
8838
rm -f conftest.$ac_objext conftest$ac_exeext
 
8839
if { (ac_try="$ac_link"
 
8840
case "(($ac_try" in
 
8841
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8842
  *) ac_try_echo=$ac_try;;
 
8843
esac
 
8844
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
8845
$as_echo "$ac_try_echo") >&5
 
8846
  (eval "$ac_link") 2>conftest.er1
 
8847
  ac_status=$?
 
8848
  grep -v '^ *+' conftest.er1 >conftest.err
 
8849
  rm -f conftest.er1
 
8850
  cat conftest.err >&5
 
8851
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8852
  (exit $ac_status); } && {
 
8853
         test -z "$ac_c_werror_flag" ||
 
8854
         test ! -s conftest.err
 
8855
       } && test -s conftest$ac_exeext && {
 
8856
         test "$cross_compiling" = yes ||
 
8857
         $as_test_x conftest$ac_exeext
 
8858
       }; then
 
8859
 
 
8860
lt_aix_libpath_sed='
 
8861
    /Import File Strings/,/^$/ {
 
8862
        /^0/ {
 
8863
            s/^0  *\(.*\)$/\1/
 
8864
            p
 
8865
        }
 
8866
    }'
 
8867
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8868
# Check for a 64-bit object if we didn't find anything.
 
8869
if test -z "$aix_libpath"; then
 
8870
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8871
fi
 
8872
else
 
8873
  $as_echo "$as_me: failed program was:" >&5
 
8874
sed 's/^/| /' conftest.$ac_ext >&5
 
8875
 
 
8876
 
 
8877
fi
 
8878
 
 
8879
rm -rf conftest.dSYM
 
8880
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8881
      conftest$ac_exeext conftest.$ac_ext
 
8882
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
8883
 
 
8884
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8885
          # Warning - without using the other run time loading flags,
 
8886
          # -berok will link without error, but may produce a broken library.
 
8887
          no_undefined_flag=' ${wl}-bernotok'
 
8888
          allow_undefined_flag=' ${wl}-berok'
 
8889
          # Exported symbols can be pulled into shared objects from archives
 
8890
          whole_archive_flag_spec='$convenience'
 
8891
          archive_cmds_need_lc=yes
 
8892
          # This is similar to how AIX traditionally builds its shared libraries.
 
8893
          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'
 
8894
        fi
 
8895
      fi
 
8896
      ;;
 
8897
 
 
8898
    amigaos*)
 
8899
      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)'
 
8900
      hardcode_libdir_flag_spec='-L$libdir'
 
8901
      hardcode_minus_L=yes
 
8902
      # see comment about different semantics on the GNU ld section
 
8903
      ld_shlibs=no
 
8904
      ;;
 
8905
 
 
8906
    bsdi[45]*)
 
8907
      export_dynamic_flag_spec=-rdynamic
 
8908
      ;;
 
8909
 
 
8910
    cygwin* | mingw* | pw32*)
 
8911
      # When not using gcc, we currently assume that we are using
 
8912
      # Microsoft Visual C++.
 
8913
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
8914
      # no search path for DLLs.
 
8915
      hardcode_libdir_flag_spec=' '
 
8916
      allow_undefined_flag=unsupported
 
8917
      # Tell ltmain to make .lib files, not .a files.
 
8918
      libext=lib
 
8919
      # Tell ltmain to make .dll files, not .so files.
 
8920
      shrext_cmds=".dll"
 
8921
      # FIXME: Setting linknames here is a bad hack.
 
8922
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
8923
      # The linker will automatically build a .lib file if we build a DLL.
 
8924
      old_archive_From_new_cmds='true'
 
8925
      # FIXME: Should let the user specify the lib program.
 
8926
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
8927
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
8928
      enable_shared_with_static_runtimes=yes
 
8929
      ;;
 
8930
 
 
8931
    darwin* | rhapsody*)
 
8932
      case $host_os in
 
8933
        rhapsody* | darwin1.[012])
 
8934
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
 
8935
         ;;
 
8936
       *) # Darwin 1.3 on
 
8937
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
8938
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
8939
         else
 
8940
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
8941
             10.[012])
 
8942
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
8943
               ;;
 
8944
             10.*)
 
8945
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
 
8946
               ;;
 
8947
           esac
 
8948
         fi
 
8949
         ;;
 
8950
      esac
 
8951
      archive_cmds_need_lc=no
 
8952
      hardcode_direct=no
 
8953
      hardcode_automatic=yes
 
8954
      hardcode_shlibpath_var=unsupported
 
8955
      whole_archive_flag_spec=''
 
8956
      link_all_deplibs=yes
 
8957
    if test "$GCC" = yes ; then
 
8958
        output_verbose_link_cmd='echo'
 
8959
        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
8960
        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
8961
        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}"
 
8962
        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}"
 
8963
    else
 
8964
      case $cc_basename in
 
8965
        xlc*)
 
8966
         output_verbose_link_cmd='echo'
 
8967
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
8968
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
8969
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
8970
         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}'
 
8971
          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}'
 
8972
          ;;
 
8973
       *)
 
8974
         ld_shlibs=no
 
8975
          ;;
 
8976
      esac
 
8977
    fi
 
8978
      ;;
 
8979
 
 
8980
    dgux*)
 
8981
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8982
      hardcode_libdir_flag_spec='-L$libdir'
 
8983
      hardcode_shlibpath_var=no
 
8984
      ;;
 
8985
 
 
8986
    freebsd1*)
 
8987
      ld_shlibs=no
 
8988
      ;;
 
8989
 
 
8990
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
8991
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
8992
    # does not break anything, and helps significantly (at the cost of a little
 
8993
    # extra space).
 
8994
    freebsd2.2*)
 
8995
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
8996
      hardcode_libdir_flag_spec='-R$libdir'
 
8997
      hardcode_direct=yes
 
8998
      hardcode_shlibpath_var=no
 
8999
      ;;
 
9000
 
 
9001
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
9002
    freebsd2*)
 
9003
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9004
      hardcode_direct=yes
 
9005
      hardcode_minus_L=yes
 
9006
      hardcode_shlibpath_var=no
 
9007
      ;;
 
9008
 
 
9009
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
9010
    freebsd* | dragonfly*)
 
9011
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
9012
      hardcode_libdir_flag_spec='-R$libdir'
 
9013
      hardcode_direct=yes
 
9014
      hardcode_shlibpath_var=no
 
9015
      ;;
 
9016
 
 
9017
    hpux9*)
 
9018
      if test "$GCC" = yes; then
 
9019
        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'
 
9020
      else
 
9021
        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'
 
9022
      fi
 
9023
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9024
      hardcode_libdir_separator=:
 
9025
      hardcode_direct=yes
 
9026
 
 
9027
      # hardcode_minus_L: Not really in the search PATH,
 
9028
      # but as the default location of the library.
 
9029
      hardcode_minus_L=yes
 
9030
      export_dynamic_flag_spec='${wl}-E'
 
9031
      ;;
 
9032
 
 
9033
    hpux10*)
 
9034
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
9035
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9036
      else
 
9037
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
9038
      fi
 
9039
      if test "$with_gnu_ld" = no; then
 
9040
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9041
        hardcode_libdir_separator=:
 
9042
 
 
9043
        hardcode_direct=yes
 
9044
        export_dynamic_flag_spec='${wl}-E'
 
9045
 
 
9046
        # hardcode_minus_L: Not really in the search PATH,
 
9047
        # but as the default location of the library.
 
9048
        hardcode_minus_L=yes
 
9049
      fi
 
9050
      ;;
 
9051
 
 
9052
    hpux11*)
 
9053
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
9054
        case $host_cpu in
 
9055
        hppa*64*)
 
9056
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9057
          ;;
 
9058
        ia64*)
 
9059
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
9060
          ;;
 
9061
        *)
 
9062
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9063
          ;;
 
9064
        esac
 
9065
      else
 
9066
        case $host_cpu in
 
9067
        hppa*64*)
 
9068
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9069
          ;;
 
9070
        ia64*)
 
9071
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
9072
          ;;
 
9073
        *)
 
9074
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9075
          ;;
 
9076
        esac
 
9077
      fi
 
9078
      if test "$with_gnu_ld" = no; then
 
9079
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9080
        hardcode_libdir_separator=:
 
9081
 
 
9082
        case $host_cpu in
 
9083
        hppa*64*|ia64*)
 
9084
          hardcode_libdir_flag_spec_ld='+b $libdir'
 
9085
          hardcode_direct=no
 
9086
          hardcode_shlibpath_var=no
 
9087
          ;;
 
9088
        *)
 
9089
          hardcode_direct=yes
 
9090
          export_dynamic_flag_spec='${wl}-E'
 
9091
 
 
9092
          # hardcode_minus_L: Not really in the search PATH,
 
9093
          # but as the default location of the library.
 
9094
          hardcode_minus_L=yes
 
9095
          ;;
 
9096
        esac
 
9097
      fi
 
9098
      ;;
 
9099
 
 
9100
    irix5* | irix6* | nonstopux*)
 
9101
      if test "$GCC" = yes; then
 
9102
        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'
 
9103
      else
 
9104
        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'
 
9105
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
9106
      fi
 
9107
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9108
      hardcode_libdir_separator=:
 
9109
      link_all_deplibs=yes
 
9110
      ;;
 
9111
 
 
9112
    netbsd*)
 
9113
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
9114
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
9115
      else
 
9116
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
9117
      fi
 
9118
      hardcode_libdir_flag_spec='-R$libdir'
 
9119
      hardcode_direct=yes
 
9120
      hardcode_shlibpath_var=no
 
9121
      ;;
 
9122
 
 
9123
    newsos6)
 
9124
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9125
      hardcode_direct=yes
 
9126
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9127
      hardcode_libdir_separator=:
 
9128
      hardcode_shlibpath_var=no
 
9129
      ;;
 
9130
 
 
9131
    openbsd*)
 
9132
      if test -f /usr/libexec/ld.so; then
 
9133
        hardcode_direct=yes
 
9134
        hardcode_shlibpath_var=no
 
9135
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9136
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9137
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
9138
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9139
          export_dynamic_flag_spec='${wl}-E'
 
9140
        else
 
9141
          case $host_os in
 
9142
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
9143
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9144
             hardcode_libdir_flag_spec='-R$libdir'
 
9145
             ;;
 
9146
           *)
 
9147
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9148
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9149
             ;;
 
9150
          esac
 
9151
        fi
 
9152
      else
 
9153
        ld_shlibs=no
 
9154
      fi
 
9155
      ;;
 
9156
 
 
9157
    os2*)
 
9158
      hardcode_libdir_flag_spec='-L$libdir'
 
9159
      hardcode_minus_L=yes
 
9160
      allow_undefined_flag=unsupported
 
9161
      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'
 
9162
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
9163
      ;;
 
9164
 
 
9165
    osf3*)
 
9166
      if test "$GCC" = yes; then
 
9167
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
9168
        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'
 
9169
      else
 
9170
        allow_undefined_flag=' -expect_unresolved \*'
 
9171
        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'
 
9172
      fi
 
9173
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9174
      hardcode_libdir_separator=:
 
9175
      ;;
 
9176
 
 
9177
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
9178
      if test "$GCC" = yes; then
 
9179
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
9180
        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'
 
9181
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9182
      else
 
9183
        allow_undefined_flag=' -expect_unresolved \*'
 
9184
        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'
 
9185
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
9186
        $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'
 
9187
 
 
9188
        # Both c and cxx compiler support -rpath directly
 
9189
        hardcode_libdir_flag_spec='-rpath $libdir'
 
9190
      fi
 
9191
      hardcode_libdir_separator=:
 
9192
      ;;
 
9193
 
 
9194
    solaris*)
 
9195
      no_undefined_flag=' -z text'
 
9196
      if test "$GCC" = yes; then
 
9197
        wlarc='${wl}'
 
9198
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9199
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
9200
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
9201
      else
 
9202
        wlarc=''
 
9203
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9204
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
9205
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
9206
      fi
 
9207
      hardcode_libdir_flag_spec='-R$libdir'
 
9208
      hardcode_shlibpath_var=no
 
9209
      case $host_os in
 
9210
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
9211
      *)
 
9212
        # The compiler driver will combine and reorder linker options,
 
9213
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
9214
        # but is careful enough not to reorder.
 
9215
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
9216
        if test "$GCC" = yes; then
 
9217
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
9218
        else
 
9219
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
 
9220
        fi
 
9221
        ;;
 
9222
      esac
 
9223
      link_all_deplibs=yes
 
9224
      ;;
 
9225
 
 
9226
    sunos4*)
 
9227
      if test "x$host_vendor" = xsequent; then
 
9228
        # Use $CC to link under sequent, because it throws in some extra .o
 
9229
        # files that make .init and .fini sections work.
 
9230
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
9231
      else
 
9232
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
9233
      fi
 
9234
      hardcode_libdir_flag_spec='-L$libdir'
 
9235
      hardcode_direct=yes
 
9236
      hardcode_minus_L=yes
 
9237
      hardcode_shlibpath_var=no
 
9238
      ;;
 
9239
 
 
9240
    sysv4)
 
9241
      case $host_vendor in
 
9242
        sni)
 
9243
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9244
          hardcode_direct=yes # is this really true???
 
9245
        ;;
 
9246
        siemens)
 
9247
          ## LD is ld it makes a PLAMLIB
 
9248
          ## CC just makes a GrossModule.
 
9249
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
9250
          reload_cmds='$CC -r -o $output$reload_objs'
 
9251
          hardcode_direct=no
 
9252
        ;;
 
9253
        motorola)
 
9254
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9255
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
9256
        ;;
 
9257
      esac
 
9258
      runpath_var='LD_RUN_PATH'
 
9259
      hardcode_shlibpath_var=no
 
9260
      ;;
 
9261
 
 
9262
    sysv4.3*)
 
9263
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9264
      hardcode_shlibpath_var=no
 
9265
      export_dynamic_flag_spec='-Bexport'
 
9266
      ;;
 
9267
 
 
9268
    sysv4*MP*)
 
9269
      if test -d /usr/nec; then
 
9270
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9271
        hardcode_shlibpath_var=no
 
9272
        runpath_var=LD_RUN_PATH
 
9273
        hardcode_runpath_var=yes
 
9274
        ld_shlibs=yes
 
9275
      fi
 
9276
      ;;
 
9277
 
 
9278
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
9279
      no_undefined_flag='${wl}-z,text'
 
9280
      archive_cmds_need_lc=no
 
9281
      hardcode_shlibpath_var=no
 
9282
      runpath_var='LD_RUN_PATH'
 
9283
 
 
9284
      if test "$GCC" = yes; then
 
9285
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9286
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9287
      else
 
9288
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9289
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9290
      fi
 
9291
      ;;
 
9292
 
 
9293
    sysv5* | sco3.2v5* | sco5v6*)
 
9294
      # Note: We can NOT use -z defs as we might desire, because we do not
 
9295
      # link with -lc, and that would cause any symbols used from libc to
 
9296
      # always be unresolved, which means just about no library would
 
9297
      # ever link correctly.  If we're not using GNU ld we use -z text
 
9298
      # though, which does catch some bad symbols but isn't as heavy-handed
 
9299
      # as -z defs.
 
9300
      no_undefined_flag='${wl}-z,text'
 
9301
      allow_undefined_flag='${wl}-z,nodefs'
 
9302
      archive_cmds_need_lc=no
 
9303
      hardcode_shlibpath_var=no
 
9304
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
9305
      hardcode_libdir_separator=':'
 
9306
      link_all_deplibs=yes
 
9307
      export_dynamic_flag_spec='${wl}-Bexport'
 
9308
      runpath_var='LD_RUN_PATH'
 
9309
 
 
9310
      if test "$GCC" = yes; then
 
9311
        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9312
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9313
      else
 
9314
        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9315
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9316
      fi
 
9317
      ;;
 
9318
 
 
9319
    uts4*)
 
9320
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9321
      hardcode_libdir_flag_spec='-L$libdir'
 
9322
      hardcode_shlibpath_var=no
 
9323
      ;;
 
9324
 
 
9325
    *)
 
9326
      ld_shlibs=no
 
9327
      ;;
 
9328
    esac
 
9329
  fi
 
9330
 
 
9331
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
9332
$as_echo "$ld_shlibs" >&6; }
 
9333
test "$ld_shlibs" = no && can_build_shared=no
 
9334
 
 
9335
#
 
9336
# Do we need to explicitly link libc?
 
9337
#
 
9338
case "x$archive_cmds_need_lc" in
 
9339
x|xyes)
 
9340
  # Assume -lc should be added
 
9341
  archive_cmds_need_lc=yes
 
9342
 
 
9343
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
9344
    case $archive_cmds in
 
9345
    *'~'*)
 
9346
      # FIXME: we may have to deal with multi-command sequences.
 
9347
      ;;
 
9348
    '$CC '*)
 
9349
      # Test whether the compiler implicitly links with -lc since on some
 
9350
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
9351
      # to ld, don't add -lc before -lgcc.
 
9352
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
9353
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
9354
      $rm conftest*
 
9355
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9356
 
 
9357
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9358
  (eval $ac_compile) 2>&5
 
9359
  ac_status=$?
 
9360
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9361
  (exit $ac_status); } 2>conftest.err; then
 
9362
        soname=conftest
 
9363
        lib=conftest
 
9364
        libobjs=conftest.$ac_objext
 
9365
        deplibs=
 
9366
        wl=$lt_prog_compiler_wl
 
9367
        pic_flag=$lt_prog_compiler_pic
 
9368
        compiler_flags=-v
 
9369
        linker_flags=-v
 
9370
        verstring=
 
9371
        output_objdir=.
 
9372
        libname=conftest
 
9373
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
9374
        allow_undefined_flag=
 
9375
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
9376
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
9377
  ac_status=$?
 
9378
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9379
  (exit $ac_status); }
 
9380
        then
 
9381
          archive_cmds_need_lc=no
 
9382
        else
 
9383
          archive_cmds_need_lc=yes
 
9384
        fi
 
9385
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
9386
      else
 
9387
        cat conftest.err 1>&5
 
9388
      fi
 
9389
      $rm conftest*
 
9390
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
9391
$as_echo "$archive_cmds_need_lc" >&6; }
 
9392
      ;;
 
9393
    esac
 
9394
  fi
 
9395
  ;;
 
9396
esac
 
9397
 
 
9398
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
9399
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
9400
library_names_spec=
 
9401
libname_spec='lib$name'
 
9402
soname_spec=
 
9403
shrext_cmds=".so"
 
9404
postinstall_cmds=
 
9405
postuninstall_cmds=
 
9406
finish_cmds=
 
9407
finish_eval=
 
9408
shlibpath_var=
 
9409
shlibpath_overrides_runpath=unknown
 
9410
version_type=none
 
9411
dynamic_linker="$host_os ld.so"
 
9412
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
9413
 
 
9414
if test "$GCC" = yes; then
 
9415
  case $host_os in
 
9416
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
9417
    *) lt_awk_arg="/^libraries:/" ;;
 
9418
  esac
 
9419
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
9420
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
 
9421
    # if the path contains ";" then we assume it to be the separator
 
9422
    # otherwise default to the standard path separator (i.e. ":") - it is
 
9423
    # assumed that no part of a normal pathname contains ";" but that should
 
9424
    # okay in the real world where ";" in dirpaths is itself problematic.
 
9425
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 
9426
  else
 
9427
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
9428
  fi
 
9429
  # Ok, now we have the path, separated by spaces, we can step through it
 
9430
  # and add multilib dir if necessary.
 
9431
  lt_tmp_lt_search_path_spec=
 
9432
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
9433
  for lt_sys_path in $lt_search_path_spec; do
 
9434
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
9435
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
9436
    else
 
9437
      test -d "$lt_sys_path" && \
 
9438
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
9439
    fi
 
9440
  done
 
9441
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
 
9442
BEGIN {RS=" "; FS="/|\n";} {
 
9443
  lt_foo="";
 
9444
  lt_count=0;
 
9445
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
9446
    if ($lt_i != "" && $lt_i != ".") {
 
9447
      if ($lt_i == "..") {
 
9448
        lt_count++;
 
9449
      } else {
 
9450
        if (lt_count == 0) {
 
9451
          lt_foo="/" $lt_i lt_foo;
 
9452
        } else {
 
9453
          lt_count--;
 
9454
        }
 
9455
      }
 
9456
    }
 
9457
  }
 
9458
  if (lt_foo != "") { lt_freq[lt_foo]++; }
 
9459
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
 
9460
}'`
 
9461
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
 
9462
else
 
9463
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
9464
fi
 
9465
need_lib_prefix=unknown
 
9466
hardcode_into_libs=no
 
9467
 
 
9468
# when you set need_version to no, make sure it does not cause -set_version
 
9469
# flags to be left without arguments
 
9470
need_version=unknown
 
9471
 
 
9472
case $host_os in
 
9473
aix3*)
 
9474
  version_type=linux
 
9475
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
9476
  shlibpath_var=LIBPATH
 
9477
 
 
9478
  # AIX 3 has no versioning support, so we append a major version to the name.
 
9479
  soname_spec='${libname}${release}${shared_ext}$major'
 
9480
  ;;
 
9481
 
 
9482
aix[4-9]*)
 
9483
  version_type=linux
 
9484
  need_lib_prefix=no
 
9485
  need_version=no
 
9486
  hardcode_into_libs=yes
 
9487
  if test "$host_cpu" = ia64; then
 
9488
    # AIX 5 supports IA64
 
9489
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
9490
    shlibpath_var=LD_LIBRARY_PATH
 
9491
  else
 
9492
    # With GCC up to 2.95.x, collect2 would create an import file
 
9493
    # for dependence libraries.  The import file would start with
 
9494
    # the line `#! .'.  This would cause the generated library to
 
9495
    # depend on `.', always an invalid library.  This was fixed in
 
9496
    # development snapshots of GCC prior to 3.0.
 
9497
    case $host_os in
 
9498
      aix4 | aix4.[01] | aix4.[01].*)
 
9499
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
9500
           echo ' yes '
 
9501
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
9502
        :
 
9503
      else
 
9504
        can_build_shared=no
 
9505
      fi
 
9506
      ;;
 
9507
    esac
 
9508
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
9509
    # soname into executable. Probably we can add versioning support to
 
9510
    # collect2, so additional links can be useful in future.
 
9511
    if test "$aix_use_runtimelinking" = yes; then
 
9512
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
9513
      # instead of lib<name>.a to let people know that these are not
 
9514
      # typical AIX shared libraries.
 
9515
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9516
    else
 
9517
      # We preserve .a as extension for shared libraries through AIX4.2
 
9518
      # and later when we are not doing run time linking.
 
9519
      library_names_spec='${libname}${release}.a $libname.a'
 
9520
      soname_spec='${libname}${release}${shared_ext}$major'
 
9521
    fi
 
9522
    shlibpath_var=LIBPATH
 
9523
  fi
 
9524
  ;;
 
9525
 
 
9526
amigaos*)
 
9527
  library_names_spec='$libname.ixlibrary $libname.a'
 
9528
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
9529
  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'
 
9530
  ;;
 
9531
 
 
9532
beos*)
 
9533
  library_names_spec='${libname}${shared_ext}'
 
9534
  dynamic_linker="$host_os ld.so"
 
9535
  shlibpath_var=LIBRARY_PATH
 
9536
  ;;
 
9537
 
 
9538
bsdi[45]*)
 
9539
  version_type=linux
 
9540
  need_version=no
 
9541
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9542
  soname_spec='${libname}${release}${shared_ext}$major'
 
9543
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
9544
  shlibpath_var=LD_LIBRARY_PATH
 
9545
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
9546
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
9547
  # the default ld.so.conf also contains /usr/contrib/lib and
 
9548
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
9549
  # libtool to hard-code these into programs
 
9550
  ;;
 
9551
 
 
9552
cygwin* | mingw* | pw32*)
 
9553
  version_type=windows
 
9554
  shrext_cmds=".dll"
 
9555
  need_version=no
 
9556
  need_lib_prefix=no
 
9557
 
 
9558
  case $GCC,$host_os in
 
9559
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
9560
    library_names_spec='$libname.dll.a'
 
9561
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
9562
    postinstall_cmds='base_file=`basename \${file}`~
 
9563
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
9564
      dldir=$destdir/`dirname \$dlpath`~
 
9565
      test -d \$dldir || mkdir -p \$dldir~
 
9566
      $install_prog $dir/$dlname \$dldir/$dlname~
 
9567
      chmod a+x \$dldir/$dlname'
 
9568
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
9569
      dlpath=$dir/\$dldll~
 
9570
       $rm \$dlpath'
 
9571
    shlibpath_overrides_runpath=yes
 
9572
 
 
9573
    case $host_os in
 
9574
    cygwin*)
 
9575
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
9576
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9577
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
9578
      ;;
 
9579
    mingw*)
 
9580
      # MinGW DLLs use traditional 'lib' prefix
 
9581
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9582
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
9583
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
9584
        # It is most probably a Windows format PATH printed by
 
9585
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
9586
        # path with ; separators, and with drive letters. We can handle the
 
9587
        # drive letters (cygwin fileutils understands them), so leave them,
 
9588
        # especially as we might pass files found there to a mingw objdump,
 
9589
        # which wouldn't understand a cygwinified path. Ahh.
 
9590
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
9591
      else
 
9592
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
9593
      fi
 
9594
      ;;
 
9595
    pw32*)
 
9596
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
9597
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9598
      ;;
 
9599
    esac
 
9600
    ;;
 
9601
 
 
9602
  *)
 
9603
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
9604
    ;;
 
9605
  esac
 
9606
  dynamic_linker='Win32 ld.exe'
 
9607
  # FIXME: first we should search . and the directory the executable is in
 
9608
  shlibpath_var=PATH
 
9609
  ;;
 
9610
 
 
9611
darwin* | rhapsody*)
 
9612
  dynamic_linker="$host_os dyld"
 
9613
  version_type=darwin
 
9614
  need_lib_prefix=no
 
9615
  need_version=no
 
9616
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
9617
  soname_spec='${libname}${release}${major}$shared_ext'
 
9618
  shlibpath_overrides_runpath=yes
 
9619
  shlibpath_var=DYLD_LIBRARY_PATH
 
9620
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
9621
 
 
9622
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
 
9623
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
9624
  ;;
 
9625
 
 
9626
dgux*)
 
9627
  version_type=linux
 
9628
  need_lib_prefix=no
 
9629
  need_version=no
 
9630
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
9631
  soname_spec='${libname}${release}${shared_ext}$major'
 
9632
  shlibpath_var=LD_LIBRARY_PATH
 
9633
  ;;
 
9634
 
 
9635
freebsd1*)
 
9636
  dynamic_linker=no
 
9637
  ;;
 
9638
 
 
9639
freebsd* | dragonfly*)
 
9640
  # DragonFly does not have aout.  When/if they implement a new
 
9641
  # versioning mechanism, adjust this.
 
9642
  if test -x /usr/bin/objformat; then
 
9643
    objformat=`/usr/bin/objformat`
 
9644
  else
 
9645
    case $host_os in
 
9646
    freebsd[123]*) objformat=aout ;;
 
9647
    *) objformat=elf ;;
 
9648
    esac
 
9649
  fi
 
9650
  version_type=freebsd-$objformat
 
9651
  case $version_type in
 
9652
    freebsd-elf*)
 
9653
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9654
      need_version=no
 
9655
      need_lib_prefix=no
 
9656
      ;;
 
9657
    freebsd-*)
 
9658
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
9659
      need_version=yes
 
9660
      ;;
 
9661
  esac
 
9662
  shlibpath_var=LD_LIBRARY_PATH
 
9663
  case $host_os in
 
9664
  freebsd2*)
 
9665
    shlibpath_overrides_runpath=yes
 
9666
    ;;
 
9667
  freebsd3.[01]* | freebsdelf3.[01]*)
 
9668
    shlibpath_overrides_runpath=yes
 
9669
    hardcode_into_libs=yes
 
9670
    ;;
 
9671
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
9672
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
9673
    shlibpath_overrides_runpath=no
 
9674
    hardcode_into_libs=yes
 
9675
    ;;
 
9676
  *) # from 4.6 on, and DragonFly
 
9677
    shlibpath_overrides_runpath=yes
 
9678
    hardcode_into_libs=yes
 
9679
    ;;
 
9680
  esac
 
9681
  ;;
 
9682
 
 
9683
gnu*)
 
9684
  version_type=linux
 
9685
  need_lib_prefix=no
 
9686
  need_version=no
 
9687
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
9688
  soname_spec='${libname}${release}${shared_ext}$major'
 
9689
  shlibpath_var=LD_LIBRARY_PATH
 
9690
  hardcode_into_libs=yes
 
9691
  ;;
 
9692
 
 
9693
hpux9* | hpux10* | hpux11*)
 
9694
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
9695
  # link against other versions.
 
9696
  version_type=sunos
 
9697
  need_lib_prefix=no
 
9698
  need_version=no
 
9699
  case $host_cpu in
 
9700
  ia64*)
 
9701
    shrext_cmds='.so'
 
9702
    hardcode_into_libs=yes
 
9703
    dynamic_linker="$host_os dld.so"
 
9704
    shlibpath_var=LD_LIBRARY_PATH
 
9705
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
9706
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9707
    soname_spec='${libname}${release}${shared_ext}$major'
 
9708
    if test "X$HPUX_IA64_MODE" = X32; then
 
9709
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
9710
    else
 
9711
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
9712
    fi
 
9713
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
9714
    ;;
 
9715
   hppa*64*)
 
9716
     shrext_cmds='.sl'
 
9717
     hardcode_into_libs=yes
 
9718
     dynamic_linker="$host_os dld.sl"
 
9719
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
9720
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
9721
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9722
     soname_spec='${libname}${release}${shared_ext}$major'
 
9723
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
9724
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
9725
     ;;
 
9726
   *)
 
9727
    shrext_cmds='.sl'
 
9728
    dynamic_linker="$host_os dld.sl"
 
9729
    shlibpath_var=SHLIB_PATH
 
9730
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
9731
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9732
    soname_spec='${libname}${release}${shared_ext}$major'
 
9733
    ;;
 
9734
  esac
 
9735
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
9736
  postinstall_cmds='chmod 555 $lib'
 
9737
  ;;
 
9738
 
 
9739
interix[3-9]*)
 
9740
  version_type=linux
 
9741
  need_lib_prefix=no
 
9742
  need_version=no
 
9743
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9744
  soname_spec='${libname}${release}${shared_ext}$major'
 
9745
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
9746
  shlibpath_var=LD_LIBRARY_PATH
 
9747
  shlibpath_overrides_runpath=no
 
9748
  hardcode_into_libs=yes
 
9749
  ;;
 
9750
 
 
9751
irix5* | irix6* | nonstopux*)
 
9752
  case $host_os in
 
9753
    nonstopux*) version_type=nonstopux ;;
 
9754
    *)
 
9755
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
9756
                version_type=linux
 
9757
        else
 
9758
                version_type=irix
 
9759
        fi ;;
 
9760
  esac
 
9761
  need_lib_prefix=no
 
9762
  need_version=no
 
9763
  soname_spec='${libname}${release}${shared_ext}$major'
 
9764
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9765
  case $host_os in
 
9766
  irix5* | nonstopux*)
 
9767
    libsuff= shlibsuff=
 
9768
    ;;
 
9769
  *)
 
9770
    case $LD in # libtool.m4 will add one of these switches to LD
 
9771
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
9772
      libsuff= shlibsuff= libmagic=32-bit;;
 
9773
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
9774
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
9775
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
9776
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
9777
    *) libsuff= shlibsuff= libmagic=never-match;;
 
9778
    esac
 
9779
    ;;
 
9780
  esac
 
9781
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
9782
  shlibpath_overrides_runpath=no
 
9783
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
9784
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
9785
  hardcode_into_libs=yes
 
9786
  ;;
 
9787
 
 
9788
# No shared lib support for Linux oldld, aout, or coff.
 
9789
linux*oldld* | linux*aout* | linux*coff*)
 
9790
  dynamic_linker=no
 
9791
  ;;
 
9792
 
 
9793
# This must be Linux ELF.
 
9794
linux* | k*bsd*-gnu)
 
9795
  version_type=linux
 
9796
  need_lib_prefix=no
 
9797
  need_version=no
 
9798
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9799
  soname_spec='${libname}${release}${shared_ext}$major'
 
9800
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
9801
  shlibpath_var=LD_LIBRARY_PATH
 
9802
  shlibpath_overrides_runpath=no
 
9803
  # This implies no fast_install, which is unacceptable.
 
9804
  # Some rework will be needed to allow for fast_install
 
9805
  # before this can be enabled.
 
9806
  hardcode_into_libs=yes
 
9807
 
 
9808
  # find out which ABI we are using
 
9809
  libsuff=
 
9810
  case "$host_cpu" in
 
9811
  x86_64*|s390x*|powerpc64*)
 
9812
    echo '#line 9812 "configure"' > conftest.$ac_ext
 
9813
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9814
  (eval $ac_compile) 2>&5
 
9815
  ac_status=$?
 
9816
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9817
  (exit $ac_status); }; then
 
9818
      case `/usr/bin/file conftest.$ac_objext` in
 
9819
      *64-bit*)
 
9820
        libsuff=64
 
9821
        ;;
 
9822
      esac
 
9823
    fi
 
9824
    rm -rf conftest*
 
9825
    ;;
 
9826
  esac
 
9827
 
 
9828
  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
 
9829
 
 
9830
  # Append ld.so.conf contents to the search path
 
9831
  if test -f /etc/ld.so.conf; then
 
9832
    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' ' '`
 
9833
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
 
9834
  fi
 
9835
 
 
9836
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
9837
  # powerpc, because MkLinux only supported shared libraries with the
 
9838
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
9839
  # most powerpc-linux boxes support dynamic linking these days and
 
9840
  # people can always --disable-shared, the test was removed, and we
 
9841
  # assume the GNU/Linux dynamic linker is in use.
 
9842
  dynamic_linker='GNU/Linux ld.so'
 
9843
  ;;
 
9844
 
 
9845
netbsd*)
 
9846
  version_type=sunos
 
9847
  need_lib_prefix=no
 
9848
  need_version=no
 
9849
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
9850
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9851
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
9852
    dynamic_linker='NetBSD (a.out) ld.so'
 
9853
  else
 
9854
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9855
    soname_spec='${libname}${release}${shared_ext}$major'
 
9856
    dynamic_linker='NetBSD ld.elf_so'
 
9857
  fi
 
9858
  shlibpath_var=LD_LIBRARY_PATH
 
9859
  shlibpath_overrides_runpath=yes
 
9860
  hardcode_into_libs=yes
 
9861
  ;;
 
9862
 
 
9863
newsos6)
 
9864
  version_type=linux
 
9865
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9866
  shlibpath_var=LD_LIBRARY_PATH
 
9867
  shlibpath_overrides_runpath=yes
 
9868
  ;;
 
9869
 
 
9870
nto-qnx*)
 
9871
  version_type=linux
 
9872
  need_lib_prefix=no
 
9873
  need_version=no
 
9874
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9875
  soname_spec='${libname}${release}${shared_ext}$major'
 
9876
  shlibpath_var=LD_LIBRARY_PATH
 
9877
  shlibpath_overrides_runpath=yes
 
9878
  ;;
 
9879
 
 
9880
openbsd*)
 
9881
  version_type=sunos
 
9882
  sys_lib_dlsearch_path_spec="/usr/lib"
 
9883
  need_lib_prefix=no
 
9884
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
9885
  case $host_os in
 
9886
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
9887
    *)                         need_version=no  ;;
 
9888
  esac
 
9889
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9890
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
9891
  shlibpath_var=LD_LIBRARY_PATH
 
9892
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9893
    case $host_os in
 
9894
      openbsd2.[89] | openbsd2.[89].*)
 
9895
        shlibpath_overrides_runpath=no
 
9896
        ;;
 
9897
      *)
 
9898
        shlibpath_overrides_runpath=yes
 
9899
        ;;
 
9900
      esac
 
9901
  else
 
9902
    shlibpath_overrides_runpath=yes
 
9903
  fi
 
9904
  ;;
 
9905
 
 
9906
os2*)
 
9907
  libname_spec='$name'
 
9908
  shrext_cmds=".dll"
 
9909
  need_lib_prefix=no
 
9910
  library_names_spec='$libname${shared_ext} $libname.a'
 
9911
  dynamic_linker='OS/2 ld.exe'
 
9912
  shlibpath_var=LIBPATH
 
9913
  ;;
 
9914
 
 
9915
osf3* | osf4* | osf5*)
 
9916
  version_type=osf
 
9917
  need_lib_prefix=no
 
9918
  need_version=no
 
9919
  soname_spec='${libname}${release}${shared_ext}$major'
 
9920
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9921
  shlibpath_var=LD_LIBRARY_PATH
 
9922
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
9923
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
9924
  ;;
 
9925
 
 
9926
rdos*)
 
9927
  dynamic_linker=no
 
9928
  ;;
 
9929
 
 
9930
solaris*)
 
9931
  version_type=linux
 
9932
  need_lib_prefix=no
 
9933
  need_version=no
 
9934
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9935
  soname_spec='${libname}${release}${shared_ext}$major'
 
9936
  shlibpath_var=LD_LIBRARY_PATH
 
9937
  shlibpath_overrides_runpath=yes
 
9938
  hardcode_into_libs=yes
 
9939
  # ldd complains unless libraries are executable
 
9940
  postinstall_cmds='chmod +x $lib'
 
9941
  ;;
 
9942
 
 
9943
sunos4*)
 
9944
  version_type=sunos
 
9945
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9946
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
9947
  shlibpath_var=LD_LIBRARY_PATH
 
9948
  shlibpath_overrides_runpath=yes
 
9949
  if test "$with_gnu_ld" = yes; then
 
9950
    need_lib_prefix=no
 
9951
  fi
 
9952
  need_version=yes
 
9953
  ;;
 
9954
 
 
9955
sysv4 | sysv4.3*)
 
9956
  version_type=linux
 
9957
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9958
  soname_spec='${libname}${release}${shared_ext}$major'
 
9959
  shlibpath_var=LD_LIBRARY_PATH
 
9960
  case $host_vendor in
 
9961
    sni)
 
9962
      shlibpath_overrides_runpath=no
 
9963
      need_lib_prefix=no
 
9964
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
9965
      runpath_var=LD_RUN_PATH
 
9966
      ;;
 
9967
    siemens)
 
9968
      need_lib_prefix=no
 
9969
      ;;
 
9970
    motorola)
 
9971
      need_lib_prefix=no
 
9972
      need_version=no
 
9973
      shlibpath_overrides_runpath=no
 
9974
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
9975
      ;;
 
9976
  esac
 
9977
  ;;
 
9978
 
 
9979
sysv4*MP*)
 
9980
  if test -d /usr/nec ;then
 
9981
    version_type=linux
 
9982
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
9983
    soname_spec='$libname${shared_ext}.$major'
 
9984
    shlibpath_var=LD_LIBRARY_PATH
 
9985
  fi
 
9986
  ;;
 
9987
 
 
9988
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
9989
  version_type=freebsd-elf
 
9990
  need_lib_prefix=no
 
9991
  need_version=no
 
9992
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9993
  soname_spec='${libname}${release}${shared_ext}$major'
 
9994
  shlibpath_var=LD_LIBRARY_PATH
 
9995
  hardcode_into_libs=yes
 
9996
  if test "$with_gnu_ld" = yes; then
 
9997
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
9998
    shlibpath_overrides_runpath=no
 
9999
  else
 
10000
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
10001
    shlibpath_overrides_runpath=yes
 
10002
    case $host_os in
 
10003
      sco3.2v5*)
 
10004
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
10005
        ;;
 
10006
    esac
 
10007
  fi
 
10008
  sys_lib_dlsearch_path_spec='/usr/lib'
 
10009
  ;;
 
10010
 
 
10011
uts4*)
 
10012
  version_type=linux
 
10013
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10014
  soname_spec='${libname}${release}${shared_ext}$major'
 
10015
  shlibpath_var=LD_LIBRARY_PATH
 
10016
  ;;
 
10017
 
 
10018
*)
 
10019
  dynamic_linker=no
 
10020
  ;;
 
10021
esac
 
10022
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
10023
$as_echo "$dynamic_linker" >&6; }
 
10024
test "$dynamic_linker" = no && can_build_shared=no
 
10025
 
 
10026
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
10027
  $as_echo_n "(cached) " >&6
 
10028
else
 
10029
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
10030
fi
 
10031
 
 
10032
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
10033
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
10034
  $as_echo_n "(cached) " >&6
 
10035
else
 
10036
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
10037
fi
 
10038
 
 
10039
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
10040
 
 
10041
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
10042
if test "$GCC" = yes; then
 
10043
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
10044
fi
 
10045
 
 
10046
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
10047
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
10048
hardcode_action=
 
10049
if test -n "$hardcode_libdir_flag_spec" || \
 
10050
   test -n "$runpath_var" || \
 
10051
   test "X$hardcode_automatic" = "Xyes" ; then
 
10052
 
 
10053
  # We can hardcode non-existant directories.
 
10054
  if test "$hardcode_direct" != no &&
 
10055
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
10056
     # have to relink, otherwise we might link with an installed library
 
10057
     # when we should be linking with a yet-to-be-installed one
 
10058
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
10059
     test "$hardcode_minus_L" != no; then
 
10060
    # Linking always hardcodes the temporary library directory.
 
10061
    hardcode_action=relink
 
10062
  else
 
10063
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
10064
    hardcode_action=immediate
 
10065
  fi
 
10066
else
 
10067
  # We cannot hardcode anything, or else we can only hardcode existing
 
10068
  # directories.
 
10069
  hardcode_action=unsupported
 
10070
fi
 
10071
{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
10072
$as_echo "$hardcode_action" >&6; }
 
10073
 
 
10074
if test "$hardcode_action" = relink; then
 
10075
  # Fast installation is not supported
 
10076
  enable_fast_install=no
 
10077
elif test "$shlibpath_overrides_runpath" = yes ||
 
10078
     test "$enable_shared" = no; then
 
10079
  # Fast installation is not necessary
 
10080
  enable_fast_install=needless
 
10081
fi
 
10082
 
 
10083
striplib=
 
10084
old_striplib=
 
10085
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
10086
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
 
10087
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
10088
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
10089
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
10090
  { $as_echo "$as_me:$LINENO: result: yes" >&5
 
10091
$as_echo "yes" >&6; }
 
10092
else
 
10093
# FIXME - insert some real tests, host_os isn't really good enough
 
10094
  case $host_os in
 
10095
   darwin*)
 
10096
       if test -n "$STRIP" ; then
 
10097
         striplib="$STRIP -x"
 
10098
         old_striplib="$STRIP -S"
 
10099
         { $as_echo "$as_me:$LINENO: result: yes" >&5
 
10100
$as_echo "yes" >&6; }
 
10101
       else
 
10102
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
10103
$as_echo "no" >&6; }
 
10104
fi
 
10105
       ;;
 
10106
   *)
 
10107
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
10108
$as_echo "no" >&6; }
 
10109
    ;;
 
10110
  esac
 
10111
fi
 
10112
 
 
10113
if test "x$enable_dlopen" != xyes; then
 
10114
  enable_dlopen=unknown
 
10115
  enable_dlopen_self=unknown
 
10116
  enable_dlopen_self_static=unknown
 
10117
else
 
10118
  lt_cv_dlopen=no
 
10119
  lt_cv_dlopen_libs=
 
10120
 
 
10121
  case $host_os in
 
10122
  beos*)
 
10123
    lt_cv_dlopen="load_add_on"
 
10124
    lt_cv_dlopen_libs=
 
10125
    lt_cv_dlopen_self=yes
 
10126
    ;;
 
10127
 
 
10128
  mingw* | pw32*)
 
10129
    lt_cv_dlopen="LoadLibrary"
 
10130
    lt_cv_dlopen_libs=
 
10131
   ;;
 
10132
 
 
10133
  cygwin*)
 
10134
    lt_cv_dlopen="dlopen"
 
10135
    lt_cv_dlopen_libs=
 
10136
   ;;
 
10137
 
 
10138
  darwin*)
 
10139
  # if libdl is installed we need to link against it
 
10140
    { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
10141
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
10142
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
10143
  $as_echo_n "(cached) " >&6
 
10144
else
 
10145
  ac_check_lib_save_LIBS=$LIBS
 
10146
LIBS="-ldl  $LIBS"
 
10147
cat >conftest.$ac_ext <<_ACEOF
 
10148
/* confdefs.h.  */
 
10149
_ACEOF
 
10150
cat confdefs.h >>conftest.$ac_ext
 
10151
cat >>conftest.$ac_ext <<_ACEOF
 
10152
/* end confdefs.h.  */
 
10153
 
 
10154
/* Override any GCC internal prototype to avoid an error.
 
10155
   Use char because int might match the return type of a GCC
 
10156
   builtin and then its argument prototype would still apply.  */
 
10157
#ifdef __cplusplus
 
10158
extern "C"
 
10159
#endif
 
10160
char dlopen ();
 
10161
int
 
10162
main ()
 
10163
{
 
10164
return dlopen ();
 
10165
  ;
 
10166
  return 0;
 
10167
}
 
10168
_ACEOF
 
10169
rm -f conftest.$ac_objext conftest$ac_exeext
 
10170
if { (ac_try="$ac_link"
 
10171
case "(($ac_try" in
 
10172
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10173
  *) ac_try_echo=$ac_try;;
 
10174
esac
 
10175
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10176
$as_echo "$ac_try_echo") >&5
 
10177
  (eval "$ac_link") 2>conftest.er1
 
10178
  ac_status=$?
 
10179
  grep -v '^ *+' conftest.er1 >conftest.err
 
10180
  rm -f conftest.er1
 
10181
  cat conftest.err >&5
 
10182
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10183
  (exit $ac_status); } && {
 
10184
         test -z "$ac_c_werror_flag" ||
 
10185
         test ! -s conftest.err
 
10186
       } && test -s conftest$ac_exeext && {
 
10187
         test "$cross_compiling" = yes ||
 
10188
         $as_test_x conftest$ac_exeext
 
10189
       }; then
 
10190
  ac_cv_lib_dl_dlopen=yes
 
10191
else
 
10192
  $as_echo "$as_me: failed program was:" >&5
 
10193
sed 's/^/| /' conftest.$ac_ext >&5
 
10194
 
 
10195
        ac_cv_lib_dl_dlopen=no
 
10196
fi
 
10197
 
 
10198
rm -rf conftest.dSYM
 
10199
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10200
      conftest$ac_exeext conftest.$ac_ext
 
10201
LIBS=$ac_check_lib_save_LIBS
 
10202
fi
 
10203
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
10204
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
10205
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
 
10206
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
10207
else
 
10208
 
 
10209
    lt_cv_dlopen="dyld"
 
10210
    lt_cv_dlopen_libs=
 
10211
    lt_cv_dlopen_self=yes
 
10212
 
 
10213
fi
 
10214
 
 
10215
   ;;
 
10216
 
 
10217
  *)
 
10218
    { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
 
10219
$as_echo_n "checking for shl_load... " >&6; }
 
10220
if test "${ac_cv_func_shl_load+set}" = set; then
 
10221
  $as_echo_n "(cached) " >&6
 
10222
else
 
10223
  cat >conftest.$ac_ext <<_ACEOF
 
10224
/* confdefs.h.  */
 
10225
_ACEOF
 
10226
cat confdefs.h >>conftest.$ac_ext
 
10227
cat >>conftest.$ac_ext <<_ACEOF
 
10228
/* end confdefs.h.  */
 
10229
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
10230
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
10231
#define shl_load innocuous_shl_load
 
10232
 
 
10233
/* System header to define __stub macros and hopefully few prototypes,
 
10234
    which can conflict with char shl_load (); below.
 
10235
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
10236
    <limits.h> exists even on freestanding compilers.  */
 
10237
 
 
10238
#ifdef __STDC__
 
10239
# include <limits.h>
 
10240
#else
 
10241
# include <assert.h>
 
10242
#endif
 
10243
 
 
10244
#undef shl_load
 
10245
 
 
10246
/* Override any GCC internal prototype to avoid an error.
 
10247
   Use char because int might match the return type of a GCC
 
10248
   builtin and then its argument prototype would still apply.  */
 
10249
#ifdef __cplusplus
 
10250
extern "C"
 
10251
#endif
 
10252
char shl_load ();
 
10253
/* The GNU C library defines this for functions which it implements
 
10254
    to always fail with ENOSYS.  Some functions are actually named
 
10255
    something starting with __ and the normal name is an alias.  */
 
10256
#if defined __stub_shl_load || defined __stub___shl_load
 
10257
choke me
 
10258
#endif
 
10259
 
 
10260
int
 
10261
main ()
 
10262
{
 
10263
return shl_load ();
 
10264
  ;
 
10265
  return 0;
 
10266
}
 
10267
_ACEOF
 
10268
rm -f conftest.$ac_objext conftest$ac_exeext
 
10269
if { (ac_try="$ac_link"
 
10270
case "(($ac_try" in
 
10271
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10272
  *) ac_try_echo=$ac_try;;
 
10273
esac
 
10274
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10275
$as_echo "$ac_try_echo") >&5
 
10276
  (eval "$ac_link") 2>conftest.er1
 
10277
  ac_status=$?
 
10278
  grep -v '^ *+' conftest.er1 >conftest.err
 
10279
  rm -f conftest.er1
 
10280
  cat conftest.err >&5
 
10281
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10282
  (exit $ac_status); } && {
 
10283
         test -z "$ac_c_werror_flag" ||
 
10284
         test ! -s conftest.err
 
10285
       } && test -s conftest$ac_exeext && {
 
10286
         test "$cross_compiling" = yes ||
 
10287
         $as_test_x conftest$ac_exeext
 
10288
       }; then
 
10289
  ac_cv_func_shl_load=yes
 
10290
else
 
10291
  $as_echo "$as_me: failed program was:" >&5
 
10292
sed 's/^/| /' conftest.$ac_ext >&5
 
10293
 
 
10294
        ac_cv_func_shl_load=no
 
10295
fi
 
10296
 
 
10297
rm -rf conftest.dSYM
 
10298
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10299
      conftest$ac_exeext conftest.$ac_ext
 
10300
fi
 
10301
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
10302
$as_echo "$ac_cv_func_shl_load" >&6; }
 
10303
if test "x$ac_cv_func_shl_load" = x""yes; then
 
10304
  lt_cv_dlopen="shl_load"
 
10305
else
 
10306
  { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
10307
$as_echo_n "checking for shl_load in -ldld... " >&6; }
 
10308
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
10309
  $as_echo_n "(cached) " >&6
 
10310
else
 
10311
  ac_check_lib_save_LIBS=$LIBS
 
10312
LIBS="-ldld  $LIBS"
 
10313
cat >conftest.$ac_ext <<_ACEOF
 
10314
/* confdefs.h.  */
 
10315
_ACEOF
 
10316
cat confdefs.h >>conftest.$ac_ext
 
10317
cat >>conftest.$ac_ext <<_ACEOF
 
10318
/* end confdefs.h.  */
 
10319
 
 
10320
/* Override any GCC internal prototype to avoid an error.
 
10321
   Use char because int might match the return type of a GCC
 
10322
   builtin and then its argument prototype would still apply.  */
 
10323
#ifdef __cplusplus
 
10324
extern "C"
 
10325
#endif
 
10326
char shl_load ();
 
10327
int
 
10328
main ()
 
10329
{
 
10330
return shl_load ();
 
10331
  ;
 
10332
  return 0;
 
10333
}
 
10334
_ACEOF
 
10335
rm -f conftest.$ac_objext conftest$ac_exeext
 
10336
if { (ac_try="$ac_link"
 
10337
case "(($ac_try" in
 
10338
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10339
  *) ac_try_echo=$ac_try;;
 
10340
esac
 
10341
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10342
$as_echo "$ac_try_echo") >&5
 
10343
  (eval "$ac_link") 2>conftest.er1
 
10344
  ac_status=$?
 
10345
  grep -v '^ *+' conftest.er1 >conftest.err
 
10346
  rm -f conftest.er1
 
10347
  cat conftest.err >&5
 
10348
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10349
  (exit $ac_status); } && {
 
10350
         test -z "$ac_c_werror_flag" ||
 
10351
         test ! -s conftest.err
 
10352
       } && test -s conftest$ac_exeext && {
 
10353
         test "$cross_compiling" = yes ||
 
10354
         $as_test_x conftest$ac_exeext
 
10355
       }; then
 
10356
  ac_cv_lib_dld_shl_load=yes
 
10357
else
 
10358
  $as_echo "$as_me: failed program was:" >&5
 
10359
sed 's/^/| /' conftest.$ac_ext >&5
 
10360
 
 
10361
        ac_cv_lib_dld_shl_load=no
 
10362
fi
 
10363
 
 
10364
rm -rf conftest.dSYM
 
10365
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10366
      conftest$ac_exeext conftest.$ac_ext
 
10367
LIBS=$ac_check_lib_save_LIBS
 
10368
fi
 
10369
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
10370
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
 
10371
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
 
10372
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
 
10373
else
 
10374
  { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
 
10375
$as_echo_n "checking for dlopen... " >&6; }
 
10376
if test "${ac_cv_func_dlopen+set}" = set; then
 
10377
  $as_echo_n "(cached) " >&6
 
10378
else
 
10379
  cat >conftest.$ac_ext <<_ACEOF
 
10380
/* confdefs.h.  */
 
10381
_ACEOF
 
10382
cat confdefs.h >>conftest.$ac_ext
 
10383
cat >>conftest.$ac_ext <<_ACEOF
 
10384
/* end confdefs.h.  */
 
10385
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
10386
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
10387
#define dlopen innocuous_dlopen
 
10388
 
 
10389
/* System header to define __stub macros and hopefully few prototypes,
 
10390
    which can conflict with char dlopen (); below.
 
10391
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
10392
    <limits.h> exists even on freestanding compilers.  */
 
10393
 
 
10394
#ifdef __STDC__
 
10395
# include <limits.h>
 
10396
#else
 
10397
# include <assert.h>
 
10398
#endif
 
10399
 
 
10400
#undef dlopen
 
10401
 
 
10402
/* Override any GCC internal prototype to avoid an error.
 
10403
   Use char because int might match the return type of a GCC
 
10404
   builtin and then its argument prototype would still apply.  */
 
10405
#ifdef __cplusplus
 
10406
extern "C"
 
10407
#endif
 
10408
char dlopen ();
 
10409
/* The GNU C library defines this for functions which it implements
 
10410
    to always fail with ENOSYS.  Some functions are actually named
 
10411
    something starting with __ and the normal name is an alias.  */
 
10412
#if defined __stub_dlopen || defined __stub___dlopen
 
10413
choke me
 
10414
#endif
 
10415
 
 
10416
int
 
10417
main ()
 
10418
{
 
10419
return dlopen ();
 
10420
  ;
 
10421
  return 0;
 
10422
}
 
10423
_ACEOF
 
10424
rm -f conftest.$ac_objext conftest$ac_exeext
 
10425
if { (ac_try="$ac_link"
 
10426
case "(($ac_try" in
 
10427
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10428
  *) ac_try_echo=$ac_try;;
 
10429
esac
 
10430
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10431
$as_echo "$ac_try_echo") >&5
 
10432
  (eval "$ac_link") 2>conftest.er1
 
10433
  ac_status=$?
 
10434
  grep -v '^ *+' conftest.er1 >conftest.err
 
10435
  rm -f conftest.er1
 
10436
  cat conftest.err >&5
 
10437
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10438
  (exit $ac_status); } && {
 
10439
         test -z "$ac_c_werror_flag" ||
 
10440
         test ! -s conftest.err
 
10441
       } && test -s conftest$ac_exeext && {
 
10442
         test "$cross_compiling" = yes ||
 
10443
         $as_test_x conftest$ac_exeext
 
10444
       }; then
 
10445
  ac_cv_func_dlopen=yes
 
10446
else
 
10447
  $as_echo "$as_me: failed program was:" >&5
 
10448
sed 's/^/| /' conftest.$ac_ext >&5
 
10449
 
 
10450
        ac_cv_func_dlopen=no
 
10451
fi
 
10452
 
 
10453
rm -rf conftest.dSYM
 
10454
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10455
      conftest$ac_exeext conftest.$ac_ext
 
10456
fi
 
10457
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
10458
$as_echo "$ac_cv_func_dlopen" >&6; }
 
10459
if test "x$ac_cv_func_dlopen" = x""yes; then
 
10460
  lt_cv_dlopen="dlopen"
 
10461
else
 
10462
  { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
10463
$as_echo_n "checking for dlopen in -ldl... " >&6; }
 
10464
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
10465
  $as_echo_n "(cached) " >&6
 
10466
else
 
10467
  ac_check_lib_save_LIBS=$LIBS
 
10468
LIBS="-ldl  $LIBS"
 
10469
cat >conftest.$ac_ext <<_ACEOF
 
10470
/* confdefs.h.  */
 
10471
_ACEOF
 
10472
cat confdefs.h >>conftest.$ac_ext
 
10473
cat >>conftest.$ac_ext <<_ACEOF
 
10474
/* end confdefs.h.  */
 
10475
 
 
10476
/* Override any GCC internal prototype to avoid an error.
 
10477
   Use char because int might match the return type of a GCC
 
10478
   builtin and then its argument prototype would still apply.  */
 
10479
#ifdef __cplusplus
 
10480
extern "C"
 
10481
#endif
 
10482
char dlopen ();
 
10483
int
 
10484
main ()
 
10485
{
 
10486
return dlopen ();
 
10487
  ;
 
10488
  return 0;
 
10489
}
 
10490
_ACEOF
 
10491
rm -f conftest.$ac_objext conftest$ac_exeext
 
10492
if { (ac_try="$ac_link"
 
10493
case "(($ac_try" in
 
10494
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10495
  *) ac_try_echo=$ac_try;;
 
10496
esac
 
10497
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10498
$as_echo "$ac_try_echo") >&5
 
10499
  (eval "$ac_link") 2>conftest.er1
 
10500
  ac_status=$?
 
10501
  grep -v '^ *+' conftest.er1 >conftest.err
 
10502
  rm -f conftest.er1
 
10503
  cat conftest.err >&5
 
10504
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10505
  (exit $ac_status); } && {
 
10506
         test -z "$ac_c_werror_flag" ||
 
10507
         test ! -s conftest.err
 
10508
       } && test -s conftest$ac_exeext && {
 
10509
         test "$cross_compiling" = yes ||
 
10510
         $as_test_x conftest$ac_exeext
 
10511
       }; then
 
10512
  ac_cv_lib_dl_dlopen=yes
 
10513
else
 
10514
  $as_echo "$as_me: failed program was:" >&5
 
10515
sed 's/^/| /' conftest.$ac_ext >&5
 
10516
 
 
10517
        ac_cv_lib_dl_dlopen=no
 
10518
fi
 
10519
 
 
10520
rm -rf conftest.dSYM
 
10521
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10522
      conftest$ac_exeext conftest.$ac_ext
 
10523
LIBS=$ac_check_lib_save_LIBS
 
10524
fi
 
10525
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
10526
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
 
10527
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
 
10528
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
10529
else
 
10530
  { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
10531
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
 
10532
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
10533
  $as_echo_n "(cached) " >&6
 
10534
else
 
10535
  ac_check_lib_save_LIBS=$LIBS
 
10536
LIBS="-lsvld  $LIBS"
 
10537
cat >conftest.$ac_ext <<_ACEOF
 
10538
/* confdefs.h.  */
 
10539
_ACEOF
 
10540
cat confdefs.h >>conftest.$ac_ext
 
10541
cat >>conftest.$ac_ext <<_ACEOF
 
10542
/* end confdefs.h.  */
 
10543
 
 
10544
/* Override any GCC internal prototype to avoid an error.
 
10545
   Use char because int might match the return type of a GCC
 
10546
   builtin and then its argument prototype would still apply.  */
 
10547
#ifdef __cplusplus
 
10548
extern "C"
 
10549
#endif
 
10550
char dlopen ();
 
10551
int
 
10552
main ()
 
10553
{
 
10554
return dlopen ();
 
10555
  ;
 
10556
  return 0;
 
10557
}
 
10558
_ACEOF
 
10559
rm -f conftest.$ac_objext conftest$ac_exeext
 
10560
if { (ac_try="$ac_link"
 
10561
case "(($ac_try" in
 
10562
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10563
  *) ac_try_echo=$ac_try;;
 
10564
esac
 
10565
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10566
$as_echo "$ac_try_echo") >&5
 
10567
  (eval "$ac_link") 2>conftest.er1
 
10568
  ac_status=$?
 
10569
  grep -v '^ *+' conftest.er1 >conftest.err
 
10570
  rm -f conftest.er1
 
10571
  cat conftest.err >&5
 
10572
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10573
  (exit $ac_status); } && {
 
10574
         test -z "$ac_c_werror_flag" ||
 
10575
         test ! -s conftest.err
 
10576
       } && test -s conftest$ac_exeext && {
 
10577
         test "$cross_compiling" = yes ||
 
10578
         $as_test_x conftest$ac_exeext
 
10579
       }; then
 
10580
  ac_cv_lib_svld_dlopen=yes
 
10581
else
 
10582
  $as_echo "$as_me: failed program was:" >&5
 
10583
sed 's/^/| /' conftest.$ac_ext >&5
 
10584
 
 
10585
        ac_cv_lib_svld_dlopen=no
 
10586
fi
 
10587
 
 
10588
rm -rf conftest.dSYM
 
10589
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10590
      conftest$ac_exeext conftest.$ac_ext
 
10591
LIBS=$ac_check_lib_save_LIBS
 
10592
fi
 
10593
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
10594
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
 
10595
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
 
10596
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
10597
else
 
10598
  { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
10599
$as_echo_n "checking for dld_link in -ldld... " >&6; }
 
10600
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
10601
  $as_echo_n "(cached) " >&6
 
10602
else
 
10603
  ac_check_lib_save_LIBS=$LIBS
 
10604
LIBS="-ldld  $LIBS"
 
10605
cat >conftest.$ac_ext <<_ACEOF
 
10606
/* confdefs.h.  */
 
10607
_ACEOF
 
10608
cat confdefs.h >>conftest.$ac_ext
 
10609
cat >>conftest.$ac_ext <<_ACEOF
 
10610
/* end confdefs.h.  */
 
10611
 
 
10612
/* Override any GCC internal prototype to avoid an error.
 
10613
   Use char because int might match the return type of a GCC
 
10614
   builtin and then its argument prototype would still apply.  */
 
10615
#ifdef __cplusplus
 
10616
extern "C"
 
10617
#endif
 
10618
char dld_link ();
 
10619
int
 
10620
main ()
 
10621
{
 
10622
return dld_link ();
 
10623
  ;
 
10624
  return 0;
 
10625
}
 
10626
_ACEOF
 
10627
rm -f conftest.$ac_objext conftest$ac_exeext
 
10628
if { (ac_try="$ac_link"
 
10629
case "(($ac_try" in
 
10630
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10631
  *) ac_try_echo=$ac_try;;
 
10632
esac
 
10633
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
10634
$as_echo "$ac_try_echo") >&5
 
10635
  (eval "$ac_link") 2>conftest.er1
 
10636
  ac_status=$?
 
10637
  grep -v '^ *+' conftest.er1 >conftest.err
 
10638
  rm -f conftest.er1
 
10639
  cat conftest.err >&5
 
10640
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10641
  (exit $ac_status); } && {
 
10642
         test -z "$ac_c_werror_flag" ||
 
10643
         test ! -s conftest.err
 
10644
       } && test -s conftest$ac_exeext && {
 
10645
         test "$cross_compiling" = yes ||
 
10646
         $as_test_x conftest$ac_exeext
 
10647
       }; then
 
10648
  ac_cv_lib_dld_dld_link=yes
 
10649
else
 
10650
  $as_echo "$as_me: failed program was:" >&5
 
10651
sed 's/^/| /' conftest.$ac_ext >&5
 
10652
 
 
10653
        ac_cv_lib_dld_dld_link=no
 
10654
fi
 
10655
 
 
10656
rm -rf conftest.dSYM
 
10657
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10658
      conftest$ac_exeext conftest.$ac_ext
 
10659
LIBS=$ac_check_lib_save_LIBS
 
10660
fi
 
10661
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
10662
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
 
10663
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
 
10664
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
 
10665
fi
 
10666
 
 
10667
 
 
10668
fi
 
10669
 
 
10670
 
 
10671
fi
 
10672
 
 
10673
 
 
10674
fi
 
10675
 
 
10676
 
 
10677
fi
 
10678
 
 
10679
 
 
10680
fi
 
10681
 
 
10682
    ;;
 
10683
  esac
 
10684
 
 
10685
  if test "x$lt_cv_dlopen" != xno; then
 
10686
    enable_dlopen=yes
 
10687
  else
 
10688
    enable_dlopen=no
 
10689
  fi
 
10690
 
 
10691
  case $lt_cv_dlopen in
 
10692
  dlopen)
 
10693
    save_CPPFLAGS="$CPPFLAGS"
 
10694
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
10695
 
 
10696
    save_LDFLAGS="$LDFLAGS"
 
10697
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
10698
 
 
10699
    save_LIBS="$LIBS"
 
10700
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
10701
 
 
10702
    { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
10703
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
 
10704
if test "${lt_cv_dlopen_self+set}" = set; then
 
10705
  $as_echo_n "(cached) " >&6
 
10706
else
 
10707
          if test "$cross_compiling" = yes; then :
 
10708
  lt_cv_dlopen_self=cross
 
10709
else
 
10710
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
10711
  lt_status=$lt_dlunknown
 
10712
  cat > conftest.$ac_ext <<EOF
 
10713
#line 10713 "configure"
 
10714
#include "confdefs.h"
 
10715
 
 
10716
#if HAVE_DLFCN_H
 
10717
#include <dlfcn.h>
 
10718
#endif
 
10719
 
 
10720
#include <stdio.h>
 
10721
 
 
10722
#ifdef RTLD_GLOBAL
 
10723
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
10724
#else
 
10725
#  ifdef DL_GLOBAL
 
10726
#    define LT_DLGLOBAL         DL_GLOBAL
 
10727
#  else
 
10728
#    define LT_DLGLOBAL         0
 
10729
#  endif
 
10730
#endif
 
10731
 
 
10732
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
10733
   find out it does not work in some platform. */
 
10734
#ifndef LT_DLLAZY_OR_NOW
 
10735
#  ifdef RTLD_LAZY
 
10736
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
10737
#  else
 
10738
#    ifdef DL_LAZY
 
10739
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
10740
#    else
 
10741
#      ifdef RTLD_NOW
 
10742
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
10743
#      else
 
10744
#        ifdef DL_NOW
 
10745
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
10746
#        else
 
10747
#          define LT_DLLAZY_OR_NOW      0
 
10748
#        endif
 
10749
#      endif
 
10750
#    endif
 
10751
#  endif
 
10752
#endif
 
10753
 
 
10754
#ifdef __cplusplus
 
10755
extern "C" void exit (int);
 
10756
#endif
 
10757
 
 
10758
void fnord() { int i=42;}
 
10759
int main ()
 
10760
{
 
10761
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
10762
  int status = $lt_dlunknown;
 
10763
 
 
10764
  if (self)
 
10765
    {
 
10766
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
10767
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
10768
      /* dlclose (self); */
 
10769
    }
 
10770
  else
 
10771
    puts (dlerror ());
 
10772
 
 
10773
    exit (status);
 
10774
}
 
10775
EOF
 
10776
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10777
  (eval $ac_link) 2>&5
 
10778
  ac_status=$?
 
10779
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10780
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
10781
    (./conftest; exit; ) >&5 2>/dev/null
 
10782
    lt_status=$?
 
10783
    case x$lt_status in
 
10784
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
10785
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
10786
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
 
10787
    esac
 
10788
  else :
 
10789
    # compilation failed
 
10790
    lt_cv_dlopen_self=no
 
10791
  fi
 
10792
fi
 
10793
rm -fr conftest*
 
10794
 
 
10795
 
 
10796
fi
 
10797
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
10798
$as_echo "$lt_cv_dlopen_self" >&6; }
 
10799
 
 
10800
    if test "x$lt_cv_dlopen_self" = xyes; then
 
10801
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
10802
      { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
10803
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
 
10804
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
10805
  $as_echo_n "(cached) " >&6
 
10806
else
 
10807
          if test "$cross_compiling" = yes; then :
 
10808
  lt_cv_dlopen_self_static=cross
 
10809
else
 
10810
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
10811
  lt_status=$lt_dlunknown
 
10812
  cat > conftest.$ac_ext <<EOF
 
10813
#line 10813 "configure"
 
10814
#include "confdefs.h"
 
10815
 
 
10816
#if HAVE_DLFCN_H
 
10817
#include <dlfcn.h>
 
10818
#endif
 
10819
 
 
10820
#include <stdio.h>
 
10821
 
 
10822
#ifdef RTLD_GLOBAL
 
10823
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
10824
#else
 
10825
#  ifdef DL_GLOBAL
 
10826
#    define LT_DLGLOBAL         DL_GLOBAL
 
10827
#  else
 
10828
#    define LT_DLGLOBAL         0
 
10829
#  endif
 
10830
#endif
 
10831
 
 
10832
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
10833
   find out it does not work in some platform. */
 
10834
#ifndef LT_DLLAZY_OR_NOW
 
10835
#  ifdef RTLD_LAZY
 
10836
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
10837
#  else
 
10838
#    ifdef DL_LAZY
 
10839
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
10840
#    else
 
10841
#      ifdef RTLD_NOW
 
10842
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
10843
#      else
 
10844
#        ifdef DL_NOW
 
10845
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
10846
#        else
 
10847
#          define LT_DLLAZY_OR_NOW      0
 
10848
#        endif
 
10849
#      endif
 
10850
#    endif
 
10851
#  endif
 
10852
#endif
 
10853
 
 
10854
#ifdef __cplusplus
 
10855
extern "C" void exit (int);
 
10856
#endif
 
10857
 
 
10858
void fnord() { int i=42;}
 
10859
int main ()
 
10860
{
 
10861
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
10862
  int status = $lt_dlunknown;
 
10863
 
 
10864
  if (self)
 
10865
    {
 
10866
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
10867
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
10868
      /* dlclose (self); */
 
10869
    }
 
10870
  else
 
10871
    puts (dlerror ());
 
10872
 
 
10873
    exit (status);
 
10874
}
 
10875
EOF
 
10876
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10877
  (eval $ac_link) 2>&5
 
10878
  ac_status=$?
 
10879
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10880
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
10881
    (./conftest; exit; ) >&5 2>/dev/null
 
10882
    lt_status=$?
 
10883
    case x$lt_status in
 
10884
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
10885
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
10886
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
 
10887
    esac
 
10888
  else :
 
10889
    # compilation failed
 
10890
    lt_cv_dlopen_self_static=no
 
10891
  fi
 
10892
fi
 
10893
rm -fr conftest*
 
10894
 
 
10895
 
 
10896
fi
 
10897
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
10898
$as_echo "$lt_cv_dlopen_self_static" >&6; }
 
10899
    fi
 
10900
 
 
10901
    CPPFLAGS="$save_CPPFLAGS"
 
10902
    LDFLAGS="$save_LDFLAGS"
 
10903
    LIBS="$save_LIBS"
 
10904
    ;;
 
10905
  esac
 
10906
 
 
10907
  case $lt_cv_dlopen_self in
 
10908
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
10909
  *) enable_dlopen_self=unknown ;;
 
10910
  esac
 
10911
 
 
10912
  case $lt_cv_dlopen_self_static in
 
10913
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
10914
  *) enable_dlopen_self_static=unknown ;;
 
10915
  esac
 
10916
fi
 
10917
 
 
10918
 
 
10919
# Report which library types will actually be built
 
10920
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
10921
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
 
10922
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
10923
$as_echo "$can_build_shared" >&6; }
 
10924
 
 
10925
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
10926
$as_echo_n "checking whether to build shared libraries... " >&6; }
 
10927
test "$can_build_shared" = "no" && enable_shared=no
 
10928
 
 
10929
# On AIX, shared libraries and static libraries use the same namespace, and
 
10930
# are all built from PIC.
 
10931
case $host_os in
 
10932
aix3*)
 
10933
  test "$enable_shared" = yes && enable_static=no
 
10934
  if test -n "$RANLIB"; then
 
10935
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
10936
    postinstall_cmds='$RANLIB $lib'
 
10937
  fi
 
10938
  ;;
 
10939
 
 
10940
aix[4-9]*)
 
10941
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
10942
    test "$enable_shared" = yes && enable_static=no
 
10943
  fi
 
10944
    ;;
 
10945
esac
 
10946
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
 
10947
$as_echo "$enable_shared" >&6; }
 
10948
 
 
10949
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
10950
$as_echo_n "checking whether to build static libraries... " >&6; }
 
10951
# Make sure either enable_shared or enable_static is yes.
 
10952
test "$enable_shared" = yes || enable_static=yes
 
10953
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
 
10954
$as_echo "$enable_static" >&6; }
 
10955
 
 
10956
# The else clause should only fire when bootstrapping the
 
10957
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
10958
# with your package, and you will get complaints that there are
 
10959
# no rules to generate ltmain.sh.
 
10960
if test -f "$ltmain"; then
 
10961
  # See if we are running on zsh, and set the options which allow our commands through
 
10962
  # without removal of \ escapes.
 
10963
  if test -n "${ZSH_VERSION+set}" ; then
 
10964
    setopt NO_GLOB_SUBST
 
10965
  fi
 
10966
  # Now quote all the things that may contain metacharacters while being
 
10967
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
10968
  # variables and quote the copies for generation of the libtool script.
 
10969
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
10970
    SED SHELL STRIP \
 
10971
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
10972
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
10973
    deplibs_check_method reload_flag reload_cmds need_locks \
 
10974
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
10975
    lt_cv_sys_global_symbol_to_c_name_address \
 
10976
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
10977
    old_postinstall_cmds old_postuninstall_cmds \
 
10978
    compiler \
 
10979
    CC \
 
10980
    LD \
 
10981
    lt_prog_compiler_wl \
 
10982
    lt_prog_compiler_pic \
 
10983
    lt_prog_compiler_static \
 
10984
    lt_prog_compiler_no_builtin_flag \
 
10985
    export_dynamic_flag_spec \
 
10986
    thread_safe_flag_spec \
 
10987
    whole_archive_flag_spec \
 
10988
    enable_shared_with_static_runtimes \
 
10989
    old_archive_cmds \
 
10990
    old_archive_from_new_cmds \
 
10991
    predep_objects \
 
10992
    postdep_objects \
 
10993
    predeps \
 
10994
    postdeps \
 
10995
    compiler_lib_search_path \
 
10996
    compiler_lib_search_dirs \
 
10997
    archive_cmds \
 
10998
    archive_expsym_cmds \
 
10999
    postinstall_cmds \
 
11000
    postuninstall_cmds \
 
11001
    old_archive_from_expsyms_cmds \
 
11002
    allow_undefined_flag \
 
11003
    no_undefined_flag \
 
11004
    export_symbols_cmds \
 
11005
    hardcode_libdir_flag_spec \
 
11006
    hardcode_libdir_flag_spec_ld \
 
11007
    hardcode_libdir_separator \
 
11008
    hardcode_automatic \
 
11009
    module_cmds \
 
11010
    module_expsym_cmds \
 
11011
    lt_cv_prog_compiler_c_o \
 
11012
    fix_srcfile_path \
 
11013
    exclude_expsyms \
 
11014
    include_expsyms; do
 
11015
 
 
11016
    case $var in
 
11017
    old_archive_cmds | \
 
11018
    old_archive_from_new_cmds | \
 
11019
    archive_cmds | \
 
11020
    archive_expsym_cmds | \
 
11021
    module_cmds | \
 
11022
    module_expsym_cmds | \
 
11023
    old_archive_from_expsyms_cmds | \
 
11024
    export_symbols_cmds | \
 
11025
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
11026
    postinstall_cmds | postuninstall_cmds | \
 
11027
    old_postinstall_cmds | old_postuninstall_cmds | \
 
11028
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
11029
      # Double-quote double-evaled strings.
 
11030
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
11031
      ;;
 
11032
    *)
 
11033
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
11034
      ;;
 
11035
    esac
 
11036
  done
 
11037
 
 
11038
  case $lt_echo in
 
11039
  *'\$0 --fallback-echo"')
 
11040
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
11041
    ;;
 
11042
  esac
 
11043
 
 
11044
cfgfile="${ofile}T"
 
11045
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
11046
  $rm -f "$cfgfile"
 
11047
  { $as_echo "$as_me:$LINENO: creating $ofile" >&5
 
11048
$as_echo "$as_me: creating $ofile" >&6;}
 
11049
 
 
11050
  cat <<__EOF__ >> "$cfgfile"
 
11051
#! $SHELL
 
11052
 
 
11053
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
11054
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
11055
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
11056
#
 
11057
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
 
11058
# Free Software Foundation, Inc.
 
11059
#
 
11060
# This file is part of GNU Libtool:
 
11061
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
11062
#
 
11063
# This program is free software; you can redistribute it and/or modify
 
11064
# it under the terms of the GNU General Public License as published by
 
11065
# the Free Software Foundation; either version 2 of the License, or
 
11066
# (at your option) any later version.
 
11067
#
 
11068
# This program is distributed in the hope that it will be useful, but
 
11069
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
11070
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
11071
# General Public License for more details.
 
11072
#
 
11073
# You should have received a copy of the GNU General Public License
 
11074
# along with this program; if not, write to the Free Software
 
11075
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
11076
#
 
11077
# As a special exception to the GNU General Public License, if you
 
11078
# distribute this file as part of a program that contains a
 
11079
# configuration script generated by Autoconf, you may include it under
 
11080
# the same distribution terms that you use for the rest of that program.
 
11081
 
 
11082
# A sed program that does not truncate output.
 
11083
SED=$lt_SED
 
11084
 
 
11085
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
11086
Xsed="$SED -e 1s/^X//"
 
11087
 
 
11088
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
11089
# if CDPATH is set.
 
11090
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
11091
 
 
11092
# The names of the tagged configurations supported by this script.
 
11093
available_tags=
 
11094
 
 
11095
# ### BEGIN LIBTOOL CONFIG
 
11096
 
 
11097
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
11098
 
 
11099
# Shell to use when invoking shell scripts.
 
11100
SHELL=$lt_SHELL
 
11101
 
 
11102
# Whether or not to build shared libraries.
 
11103
build_libtool_libs=$enable_shared
 
11104
 
 
11105
# Whether or not to build static libraries.
 
11106
build_old_libs=$enable_static
 
11107
 
 
11108
# Whether or not to add -lc for building shared libraries.
 
11109
build_libtool_need_lc=$archive_cmds_need_lc
 
11110
 
 
11111
# Whether or not to disallow shared libs when runtime libs are static
 
11112
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
11113
 
 
11114
# Whether or not to optimize for fast installation.
 
11115
fast_install=$enable_fast_install
 
11116
 
 
11117
# The host system.
 
11118
host_alias=$host_alias
 
11119
host=$host
 
11120
host_os=$host_os
 
11121
 
 
11122
# The build system.
 
11123
build_alias=$build_alias
 
11124
build=$build
 
11125
build_os=$build_os
 
11126
 
 
11127
# An echo program that does not interpret backslashes.
 
11128
echo=$lt_echo
 
11129
 
 
11130
# The archiver.
 
11131
AR=$lt_AR
 
11132
AR_FLAGS=$lt_AR_FLAGS
 
11133
 
 
11134
# A C compiler.
 
11135
LTCC=$lt_LTCC
 
11136
 
 
11137
# LTCC compiler flags.
 
11138
LTCFLAGS=$lt_LTCFLAGS
 
11139
 
 
11140
# A language-specific compiler.
 
11141
CC=$lt_compiler
 
11142
 
 
11143
# Is the compiler the GNU C compiler?
 
11144
with_gcc=$GCC
 
11145
 
 
11146
# An ERE matcher.
 
11147
EGREP=$lt_EGREP
 
11148
 
 
11149
# The linker used to build libraries.
 
11150
LD=$lt_LD
 
11151
 
 
11152
# Whether we need hard or soft links.
 
11153
LN_S=$lt_LN_S
 
11154
 
 
11155
# A BSD-compatible nm program.
 
11156
NM=$lt_NM
 
11157
 
 
11158
# A symbol stripping program
 
11159
STRIP=$lt_STRIP
 
11160
 
 
11161
# Used to examine libraries when file_magic_cmd begins "file"
 
11162
MAGIC_CMD=$MAGIC_CMD
 
11163
 
 
11164
# Used on cygwin: DLL creation program.
 
11165
DLLTOOL="$DLLTOOL"
 
11166
 
 
11167
# Used on cygwin: object dumper.
 
11168
OBJDUMP="$OBJDUMP"
 
11169
 
 
11170
# Used on cygwin: assembler.
 
11171
AS="$AS"
 
11172
 
 
11173
# The name of the directory that contains temporary libtool files.
 
11174
objdir=$objdir
 
11175
 
 
11176
# How to create reloadable object files.
 
11177
reload_flag=$lt_reload_flag
 
11178
reload_cmds=$lt_reload_cmds
 
11179
 
 
11180
# How to pass a linker flag through the compiler.
 
11181
wl=$lt_lt_prog_compiler_wl
 
11182
 
 
11183
# Object file suffix (normally "o").
 
11184
objext="$ac_objext"
 
11185
 
 
11186
# Old archive suffix (normally "a").
 
11187
libext="$libext"
 
11188
 
 
11189
# Shared library suffix (normally ".so").
 
11190
shrext_cmds='$shrext_cmds'
 
11191
 
 
11192
# Executable file suffix (normally "").
 
11193
exeext="$exeext"
 
11194
 
 
11195
# Additional compiler flags for building library objects.
 
11196
pic_flag=$lt_lt_prog_compiler_pic
 
11197
pic_mode=$pic_mode
 
11198
 
 
11199
# What is the maximum length of a command?
 
11200
max_cmd_len=$lt_cv_sys_max_cmd_len
 
11201
 
 
11202
# Does compiler simultaneously support -c and -o options?
 
11203
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
11204
 
 
11205
# Must we lock files when doing compilation?
 
11206
need_locks=$lt_need_locks
 
11207
 
 
11208
# Do we need the lib prefix for modules?
 
11209
need_lib_prefix=$need_lib_prefix
 
11210
 
 
11211
# Do we need a version for libraries?
 
11212
need_version=$need_version
 
11213
 
 
11214
# Whether dlopen is supported.
 
11215
dlopen_support=$enable_dlopen
 
11216
 
 
11217
# Whether dlopen of programs is supported.
 
11218
dlopen_self=$enable_dlopen_self
 
11219
 
 
11220
# Whether dlopen of statically linked programs is supported.
 
11221
dlopen_self_static=$enable_dlopen_self_static
 
11222
 
 
11223
# Compiler flag to prevent dynamic linking.
 
11224
link_static_flag=$lt_lt_prog_compiler_static
 
11225
 
 
11226
# Compiler flag to turn off builtin functions.
 
11227
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
11228
 
 
11229
# Compiler flag to allow reflexive dlopens.
 
11230
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
11231
 
 
11232
# Compiler flag to generate shared objects directly from archives.
 
11233
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
11234
 
 
11235
# Compiler flag to generate thread-safe objects.
 
11236
thread_safe_flag_spec=$lt_thread_safe_flag_spec
 
11237
 
 
11238
# Library versioning type.
 
11239
version_type=$version_type
 
11240
 
 
11241
# Format of library name prefix.
 
11242
libname_spec=$lt_libname_spec
 
11243
 
 
11244
# List of archive names.  First name is the real one, the rest are links.
 
11245
# The last name is the one that the linker finds with -lNAME.
 
11246
library_names_spec=$lt_library_names_spec
 
11247
 
 
11248
# The coded name of the library, if different from the real name.
 
11249
soname_spec=$lt_soname_spec
 
11250
 
 
11251
# Commands used to build and install an old-style archive.
 
11252
RANLIB=$lt_RANLIB
 
11253
old_archive_cmds=$lt_old_archive_cmds
 
11254
old_postinstall_cmds=$lt_old_postinstall_cmds
 
11255
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
11256
 
 
11257
# Create an old-style archive from a shared archive.
 
11258
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
11259
 
 
11260
# Create a temporary old-style archive to link instead of a shared archive.
 
11261
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
11262
 
 
11263
# Commands used to build and install a shared archive.
 
11264
archive_cmds=$lt_archive_cmds
 
11265
archive_expsym_cmds=$lt_archive_expsym_cmds
 
11266
postinstall_cmds=$lt_postinstall_cmds
 
11267
postuninstall_cmds=$lt_postuninstall_cmds
 
11268
 
 
11269
# Commands used to build a loadable module (assumed same as above if empty)
 
11270
module_cmds=$lt_module_cmds
 
11271
module_expsym_cmds=$lt_module_expsym_cmds
 
11272
 
 
11273
# Commands to strip libraries.
 
11274
old_striplib=$lt_old_striplib
 
11275
striplib=$lt_striplib
 
11276
 
 
11277
# Dependencies to place before the objects being linked to create a
 
11278
# shared library.
 
11279
predep_objects=$lt_predep_objects
 
11280
 
 
11281
# Dependencies to place after the objects being linked to create a
 
11282
# shared library.
 
11283
postdep_objects=$lt_postdep_objects
 
11284
 
 
11285
# Dependencies to place before the objects being linked to create a
 
11286
# shared library.
 
11287
predeps=$lt_predeps
 
11288
 
 
11289
# Dependencies to place after the objects being linked to create a
 
11290
# shared library.
 
11291
postdeps=$lt_postdeps
 
11292
 
 
11293
# The directories searched by this compiler when creating a shared
 
11294
# library
 
11295
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
 
11296
 
 
11297
# The library search path used internally by the compiler when linking
 
11298
# a shared library.
 
11299
compiler_lib_search_path=$lt_compiler_lib_search_path
 
11300
 
 
11301
# Method to check whether dependent libraries are shared objects.
 
11302
deplibs_check_method=$lt_deplibs_check_method
 
11303
 
 
11304
# Command to use when deplibs_check_method == file_magic.
 
11305
file_magic_cmd=$lt_file_magic_cmd
 
11306
 
 
11307
# Flag that allows shared libraries with undefined symbols to be built.
 
11308
allow_undefined_flag=$lt_allow_undefined_flag
 
11309
 
 
11310
# Flag that forces no undefined symbols.
 
11311
no_undefined_flag=$lt_no_undefined_flag
 
11312
 
 
11313
# Commands used to finish a libtool library installation in a directory.
 
11314
finish_cmds=$lt_finish_cmds
 
11315
 
 
11316
# Same as above, but a single script fragment to be evaled but not shown.
 
11317
finish_eval=$lt_finish_eval
 
11318
 
 
11319
# Take the output of nm and produce a listing of raw symbols and C names.
 
11320
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
11321
 
 
11322
# Transform the output of nm in a proper C declaration
 
11323
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
11324
 
 
11325
# Transform the output of nm in a C name address pair
 
11326
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
11327
 
 
11328
# This is the shared library runtime path variable.
 
11329
runpath_var=$runpath_var
 
11330
 
 
11331
# This is the shared library path variable.
 
11332
shlibpath_var=$shlibpath_var
 
11333
 
 
11334
# Is shlibpath searched before the hard-coded library search path?
 
11335
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
11336
 
 
11337
# How to hardcode a shared library path into an executable.
 
11338
hardcode_action=$hardcode_action
 
11339
 
 
11340
# Whether we should hardcode library paths into libraries.
 
11341
hardcode_into_libs=$hardcode_into_libs
 
11342
 
 
11343
# Flag to hardcode \$libdir into a binary during linking.
 
11344
# This must work even if \$libdir does not exist.
 
11345
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
11346
 
 
11347
# If ld is used when linking, flag to hardcode \$libdir into
 
11348
# a binary during linking. This must work even if \$libdir does
 
11349
# not exist.
 
11350
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
11351
 
 
11352
# Whether we need a single -rpath flag with a separated argument.
 
11353
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
11354
 
 
11355
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
11356
# resulting binary.
 
11357
hardcode_direct=$hardcode_direct
 
11358
 
 
11359
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
11360
# resulting binary.
 
11361
hardcode_minus_L=$hardcode_minus_L
 
11362
 
 
11363
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
11364
# the resulting binary.
 
11365
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
11366
 
 
11367
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
11368
# and all subsequent libraries and executables linked against it.
 
11369
hardcode_automatic=$hardcode_automatic
 
11370
 
 
11371
# Variables whose values should be saved in libtool wrapper scripts and
 
11372
# restored at relink time.
 
11373
variables_saved_for_relink="$variables_saved_for_relink"
 
11374
 
 
11375
# Whether libtool must link a program against all its dependency libraries.
 
11376
link_all_deplibs=$link_all_deplibs
 
11377
 
 
11378
# Compile-time system search path for libraries
 
11379
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
11380
 
 
11381
# Run-time system search path for libraries
 
11382
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
11383
 
 
11384
# Fix the shell variable \$srcfile for the compiler.
 
11385
fix_srcfile_path=$lt_fix_srcfile_path
 
11386
 
 
11387
# Set to yes if exported symbols are required.
 
11388
always_export_symbols=$always_export_symbols
 
11389
 
 
11390
# The commands to list exported symbols.
 
11391
export_symbols_cmds=$lt_export_symbols_cmds
 
11392
 
 
11393
# The commands to extract the exported symbol list from a shared archive.
 
11394
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
11395
 
 
11396
# Symbols that should not be listed in the preloaded symbols.
 
11397
exclude_expsyms=$lt_exclude_expsyms
 
11398
 
 
11399
# Symbols that must always be exported.
 
11400
include_expsyms=$lt_include_expsyms
 
11401
 
 
11402
# ### END LIBTOOL CONFIG
 
11403
 
 
11404
__EOF__
 
11405
 
 
11406
 
 
11407
  case $host_os in
 
11408
  aix3*)
 
11409
    cat <<\EOF >> "$cfgfile"
 
11410
 
 
11411
# AIX sometimes has problems with the GCC collect2 program.  For some
 
11412
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
11413
# vanish in a puff of smoke.
 
11414
if test "X${COLLECT_NAMES+set}" != Xset; then
 
11415
  COLLECT_NAMES=
 
11416
  export COLLECT_NAMES
 
11417
fi
 
11418
EOF
 
11419
    ;;
 
11420
  esac
 
11421
 
 
11422
  # We use sed instead of cat because bash on DJGPP gets confused if
 
11423
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
11424
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
11425
  # is reportedly fixed, but why not run on old versions too?
 
11426
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 
11427
 
 
11428
  mv -f "$cfgfile" "$ofile" || \
 
11429
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
11430
  chmod +x "$ofile"
 
11431
 
 
11432
else
 
11433
  # If there is no Makefile yet, we rely on a make rule to execute
 
11434
  # `config.status --recheck' to rerun these tests and create the
 
11435
  # libtool script then.
 
11436
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
11437
  if test -f "$ltmain_in"; then
 
11438
    test -f Makefile && make "$ltmain"
 
11439
  fi
 
11440
fi
 
11441
 
 
11442
 
 
11443
ac_ext=c
 
11444
ac_cpp='$CPP $CPPFLAGS'
 
11445
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11446
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11447
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
11448
 
 
11449
CC="$lt_save_CC"
 
11450
 
 
11451
 
 
11452
# Check whether --with-tags was given.
 
11453
if test "${with_tags+set}" = set; then
 
11454
  withval=$with_tags; tagnames="$withval"
 
11455
fi
 
11456
 
 
11457
 
 
11458
if test -f "$ltmain" && test -n "$tagnames"; then
 
11459
  if test ! -f "${ofile}"; then
 
11460
    { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
 
11461
$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
 
11462
  fi
 
11463
 
 
11464
  if test -z "$LTCC"; then
 
11465
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
11466
    if test -z "$LTCC"; then
 
11467
      { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
 
11468
$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
 
11469
    else
 
11470
      { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
 
11471
$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
 
11472
    fi
 
11473
  fi
 
11474
  if test -z "$LTCFLAGS"; then
 
11475
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
 
11476
  fi
 
11477
 
 
11478
  # Extract list of available tagged configurations in $ofile.
 
11479
  # Note that this assumes the entire list is on one line.
 
11480
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
11481
 
 
11482
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
11483
  for tagname in $tagnames; do
 
11484
    IFS="$lt_save_ifs"
 
11485
    # Check whether tagname contains only valid characters
 
11486
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
 
11487
    "") ;;
 
11488
    *)  { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
 
11489
$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
 
11490
   { (exit 1); exit 1; }; }
 
11491
        ;;
 
11492
    esac
 
11493
 
 
11494
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
11495
    then
 
11496
      { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
 
11497
$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
 
11498
   { (exit 1); exit 1; }; }
 
11499
    fi
 
11500
 
 
11501
    # Update the list of available tags.
 
11502
    if test -n "$tagname"; then
 
11503
      echo appending configuration tag \"$tagname\" to $ofile
 
11504
 
 
11505
      case $tagname in
 
11506
      CXX)
 
11507
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
11508
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
11509
            (test "X$CXX" != "Xg++"))) ; then
 
11510
          ac_ext=cpp
 
11511
ac_cpp='$CXXCPP $CPPFLAGS'
 
11512
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11513
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11514
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
11515
 
 
11516
 
 
11517
 
 
11518
 
 
11519
archive_cmds_need_lc_CXX=no
 
11520
allow_undefined_flag_CXX=
 
11521
always_export_symbols_CXX=no
 
11522
archive_expsym_cmds_CXX=
 
11523
export_dynamic_flag_spec_CXX=
 
11524
hardcode_direct_CXX=no
 
11525
hardcode_libdir_flag_spec_CXX=
 
11526
hardcode_libdir_flag_spec_ld_CXX=
 
11527
hardcode_libdir_separator_CXX=
 
11528
hardcode_minus_L_CXX=no
 
11529
hardcode_shlibpath_var_CXX=unsupported
 
11530
hardcode_automatic_CXX=no
 
11531
module_cmds_CXX=
 
11532
module_expsym_cmds_CXX=
 
11533
link_all_deplibs_CXX=unknown
 
11534
old_archive_cmds_CXX=$old_archive_cmds
 
11535
no_undefined_flag_CXX=
 
11536
whole_archive_flag_spec_CXX=
 
11537
enable_shared_with_static_runtimes_CXX=no
 
11538
 
 
11539
# Dependencies to place before and after the object being linked:
 
11540
predep_objects_CXX=
 
11541
postdep_objects_CXX=
 
11542
predeps_CXX=
 
11543
postdeps_CXX=
 
11544
compiler_lib_search_path_CXX=
 
11545
compiler_lib_search_dirs_CXX=
 
11546
 
 
11547
# Source file extension for C++ test sources.
 
11548
ac_ext=cpp
 
11549
 
 
11550
# Object file extension for compiled C++ test sources.
 
11551
objext=o
 
11552
objext_CXX=$objext
 
11553
 
 
11554
# Code to be used in simple compile tests
 
11555
lt_simple_compile_test_code="int some_variable = 0;"
 
11556
 
 
11557
# Code to be used in simple link tests
 
11558
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
 
11559
 
 
11560
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
11561
 
 
11562
# If no C compiler was specified, use CC.
 
11563
LTCC=${LTCC-"$CC"}
 
11564
 
 
11565
# If no C compiler flags were specified, use CFLAGS.
 
11566
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
11567
 
 
11568
# Allow CC to be a program name with arguments.
 
11569
compiler=$CC
 
11570
 
 
11571
 
 
11572
# save warnings/boilerplate of simple test code
 
11573
ac_outfile=conftest.$ac_objext
 
11574
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
11575
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
11576
_lt_compiler_boilerplate=`cat conftest.err`
 
11577
$rm conftest*
 
11578
 
 
11579
ac_outfile=conftest.$ac_objext
 
11580
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
11581
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
11582
_lt_linker_boilerplate=`cat conftest.err`
 
11583
$rm -r conftest*
 
11584
 
 
11585
 
 
11586
# Allow CC to be a program name with arguments.
 
11587
lt_save_CC=$CC
 
11588
lt_save_LD=$LD
 
11589
lt_save_GCC=$GCC
 
11590
GCC=$GXX
 
11591
lt_save_with_gnu_ld=$with_gnu_ld
 
11592
lt_save_path_LD=$lt_cv_path_LD
 
11593
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
11594
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
11595
else
 
11596
  $as_unset lt_cv_prog_gnu_ld
 
11597
fi
 
11598
if test -n "${lt_cv_path_LDCXX+set}"; then
 
11599
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
11600
else
 
11601
  $as_unset lt_cv_path_LD
 
11602
fi
 
11603
test -z "${LDCXX+set}" || LD=$LDCXX
 
11604
CC=${CXX-"c++"}
 
11605
compiler=$CC
 
11606
compiler_CXX=$CC
 
11607
for cc_temp in $compiler""; do
 
11608
  case $cc_temp in
 
11609
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
11610
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
11611
    \-*) ;;
 
11612
    *) break;;
 
11613
  esac
 
11614
done
 
11615
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
11616
 
 
11617
 
 
11618
# We don't want -fno-exception wen compiling C++ code, so set the
 
11619
# no_builtin_flag separately
 
11620
if test "$GXX" = yes; then
 
11621
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
11622
else
 
11623
  lt_prog_compiler_no_builtin_flag_CXX=
 
11624
fi
 
11625
 
 
11626
if test "$GXX" = yes; then
 
11627
  # Set up default GNU C++ configuration
 
11628
 
 
11629
 
 
11630
# Check whether --with-gnu-ld was given.
 
11631
if test "${with_gnu_ld+set}" = set; then
 
11632
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
11633
else
 
11634
  with_gnu_ld=no
 
11635
fi
 
11636
 
 
11637
ac_prog=ld
 
11638
if test "$GCC" = yes; then
 
11639
  # Check if gcc -print-prog-name=ld gives a path.
 
11640
  { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
11641
$as_echo_n "checking for ld used by $CC... " >&6; }
 
11642
  case $host in
 
11643
  *-*-mingw*)
 
11644
    # gcc leaves a trailing carriage return which upsets mingw
 
11645
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
11646
  *)
 
11647
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
11648
  esac
 
11649
  case $ac_prog in
 
11650
    # Accept absolute paths.
 
11651
    [\\/]* | ?:[\\/]*)
 
11652
      re_direlt='/[^/][^/]*/\.\./'
 
11653
      # Canonicalize the pathname of ld
 
11654
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
11655
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
11656
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
11657
      done
 
11658
      test -z "$LD" && LD="$ac_prog"
 
11659
      ;;
 
11660
  "")
 
11661
    # If it fails, then pretend we aren't using GCC.
 
11662
    ac_prog=ld
 
11663
    ;;
 
11664
  *)
 
11665
    # If it is relative, then search for the first ld in PATH.
 
11666
    with_gnu_ld=unknown
 
11667
    ;;
 
11668
  esac
 
11669
elif test "$with_gnu_ld" = yes; then
 
11670
  { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
 
11671
$as_echo_n "checking for GNU ld... " >&6; }
 
11672
else
 
11673
  { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
11674
$as_echo_n "checking for non-GNU ld... " >&6; }
 
11675
fi
 
11676
if test "${lt_cv_path_LD+set}" = set; then
 
11677
  $as_echo_n "(cached) " >&6
 
11678
else
 
11679
  if test -z "$LD"; then
 
11680
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
11681
  for ac_dir in $PATH; do
 
11682
    IFS="$lt_save_ifs"
 
11683
    test -z "$ac_dir" && ac_dir=.
 
11684
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
11685
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
11686
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
11687
      # but apparently some variants of GNU ld only accept -v.
 
11688
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
11689
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
11690
      *GNU* | *'with BFD'*)
 
11691
        test "$with_gnu_ld" != no && break
 
11692
        ;;
 
11693
      *)
 
11694
        test "$with_gnu_ld" != yes && break
 
11695
        ;;
 
11696
      esac
 
11697
    fi
 
11698
  done
 
11699
  IFS="$lt_save_ifs"
 
11700
else
 
11701
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
11702
fi
 
11703
fi
 
11704
 
 
11705
LD="$lt_cv_path_LD"
 
11706
if test -n "$LD"; then
 
11707
  { $as_echo "$as_me:$LINENO: result: $LD" >&5
 
11708
$as_echo "$LD" >&6; }
 
11709
else
 
11710
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
11711
$as_echo "no" >&6; }
 
11712
fi
 
11713
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
11714
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
11715
   { (exit 1); exit 1; }; }
 
11716
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
11717
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
 
11718
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
11719
  $as_echo_n "(cached) " >&6
 
11720
else
 
11721
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
11722
case `$LD -v 2>&1 </dev/null` in
 
11723
*GNU* | *'with BFD'*)
 
11724
  lt_cv_prog_gnu_ld=yes
 
11725
  ;;
 
11726
*)
 
11727
  lt_cv_prog_gnu_ld=no
 
11728
  ;;
 
11729
esac
 
11730
fi
 
11731
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
11732
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
 
11733
with_gnu_ld=$lt_cv_prog_gnu_ld
 
11734
 
 
11735
 
 
11736
 
 
11737
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
11738
  # archiving commands below assume that GNU ld is being used.
 
11739
  if test "$with_gnu_ld" = yes; then
 
11740
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11741
    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'
 
11742
 
 
11743
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
11744
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11745
 
 
11746
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
11747
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
11748
    #     investigate it a little bit more. (MM)
 
11749
    wlarc='${wl}'
 
11750
 
 
11751
    # ancient GNU ld didn't support --whole-archive et. al.
 
11752
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
11753
        grep 'no-whole-archive' > /dev/null; then
 
11754
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
11755
    else
 
11756
      whole_archive_flag_spec_CXX=
 
11757
    fi
 
11758
  else
 
11759
    with_gnu_ld=no
 
11760
    wlarc=
 
11761
 
 
11762
    # A generic and very simple default shared library creation
 
11763
    # command for GNU C++ for the case where it uses the native
 
11764
    # linker, instead of GNU ld.  If possible, this setting should
 
11765
    # overridden to take advantage of the native linker features on
 
11766
    # the platform it is being used on.
 
11767
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
11768
  fi
 
11769
 
 
11770
  # Commands to make compiler produce verbose output that lists
 
11771
  # what "hidden" libraries, object files and flags are used when
 
11772
  # linking a shared library.
 
11773
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
11774
 
 
11775
else
 
11776
  GXX=no
 
11777
  with_gnu_ld=no
 
11778
  wlarc=
 
11779
fi
 
11780
 
 
11781
# PORTME: fill in a description of your system's C++ link characteristics
 
11782
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
11783
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
11784
ld_shlibs_CXX=yes
 
11785
case $host_os in
 
11786
  aix3*)
 
11787
    # FIXME: insert proper C++ library support
 
11788
    ld_shlibs_CXX=no
 
11789
    ;;
 
11790
  aix[4-9]*)
 
11791
    if test "$host_cpu" = ia64; then
 
11792
      # On IA64, the linker does run time linking by default, so we don't
 
11793
      # have to do anything special.
 
11794
      aix_use_runtimelinking=no
 
11795
      exp_sym_flag='-Bexport'
 
11796
      no_entry_flag=""
 
11797
    else
 
11798
      aix_use_runtimelinking=no
 
11799
 
 
11800
      # Test if we are trying to use run time linking or normal
 
11801
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
11802
      # need to do runtime linking.
 
11803
      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
11804
        for ld_flag in $LDFLAGS; do
 
11805
          case $ld_flag in
 
11806
          *-brtl*)
 
11807
            aix_use_runtimelinking=yes
 
11808
            break
 
11809
            ;;
 
11810
          esac
 
11811
        done
 
11812
        ;;
 
11813
      esac
 
11814
 
 
11815
      exp_sym_flag='-bexport'
 
11816
      no_entry_flag='-bnoentry'
 
11817
    fi
 
11818
 
 
11819
    # When large executables or shared objects are built, AIX ld can
 
11820
    # have problems creating the table of contents.  If linking a library
 
11821
    # or program results in "error TOC overflow" add -mminimal-toc to
 
11822
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
11823
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
11824
 
 
11825
    archive_cmds_CXX=''
 
11826
    hardcode_direct_CXX=yes
 
11827
    hardcode_libdir_separator_CXX=':'
 
11828
    link_all_deplibs_CXX=yes
 
11829
 
 
11830
    if test "$GXX" = yes; then
 
11831
      case $host_os in aix4.[012]|aix4.[012].*)
 
11832
      # We only want to do this on AIX 4.2 and lower, the check
 
11833
      # below for broken collect2 doesn't work under 4.3+
 
11834
        collect2name=`${CC} -print-prog-name=collect2`
 
11835
        if test -f "$collect2name" && \
 
11836
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
11837
        then
 
11838
          # We have reworked collect2
 
11839
          :
 
11840
        else
 
11841
          # We have old collect2
 
11842
          hardcode_direct_CXX=unsupported
 
11843
          # It fails to find uninstalled libraries when the uninstalled
 
11844
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
11845
          # to unsupported forces relinking
 
11846
          hardcode_minus_L_CXX=yes
 
11847
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
11848
          hardcode_libdir_separator_CXX=
 
11849
        fi
 
11850
        ;;
 
11851
      esac
 
11852
      shared_flag='-shared'
 
11853
      if test "$aix_use_runtimelinking" = yes; then
 
11854
        shared_flag="$shared_flag "'${wl}-G'
 
11855
      fi
 
11856
    else
 
11857
      # not using gcc
 
11858
      if test "$host_cpu" = ia64; then
 
11859
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
11860
        # chokes on -Wl,-G. The following line is correct:
 
11861
        shared_flag='-G'
 
11862
      else
 
11863
        if test "$aix_use_runtimelinking" = yes; then
 
11864
          shared_flag='${wl}-G'
 
11865
        else
 
11866
          shared_flag='${wl}-bM:SRE'
 
11867
        fi
 
11868
      fi
 
11869
    fi
 
11870
 
 
11871
    # It seems that -bexpall does not export symbols beginning with
 
11872
    # underscore (_), so it is better to generate a list of symbols to export.
 
11873
    always_export_symbols_CXX=yes
 
11874
    if test "$aix_use_runtimelinking" = yes; then
 
11875
      # Warning - without using the other runtime loading flags (-brtl),
 
11876
      # -berok will link without error, but may produce a broken library.
 
11877
      allow_undefined_flag_CXX='-berok'
 
11878
      # Determine the default libpath from the value encoded in an empty executable.
 
11879
      cat >conftest.$ac_ext <<_ACEOF
 
11880
/* confdefs.h.  */
 
11881
_ACEOF
 
11882
cat confdefs.h >>conftest.$ac_ext
 
11883
cat >>conftest.$ac_ext <<_ACEOF
 
11884
/* end confdefs.h.  */
 
11885
 
 
11886
int
 
11887
main ()
 
11888
{
 
11889
 
 
11890
  ;
 
11891
  return 0;
 
11892
}
 
11893
_ACEOF
 
11894
rm -f conftest.$ac_objext conftest$ac_exeext
 
11895
if { (ac_try="$ac_link"
 
11896
case "(($ac_try" in
 
11897
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11898
  *) ac_try_echo=$ac_try;;
 
11899
esac
 
11900
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
11901
$as_echo "$ac_try_echo") >&5
 
11902
  (eval "$ac_link") 2>conftest.er1
 
11903
  ac_status=$?
 
11904
  grep -v '^ *+' conftest.er1 >conftest.err
 
11905
  rm -f conftest.er1
 
11906
  cat conftest.err >&5
 
11907
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11908
  (exit $ac_status); } && {
 
11909
         test -z "$ac_cxx_werror_flag" ||
 
11910
         test ! -s conftest.err
 
11911
       } && test -s conftest$ac_exeext && {
 
11912
         test "$cross_compiling" = yes ||
 
11913
         $as_test_x conftest$ac_exeext
 
11914
       }; then
 
11915
 
 
11916
lt_aix_libpath_sed='
 
11917
    /Import File Strings/,/^$/ {
 
11918
        /^0/ {
 
11919
            s/^0  *\(.*\)$/\1/
 
11920
            p
 
11921
        }
 
11922
    }'
 
11923
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11924
# Check for a 64-bit object if we didn't find anything.
 
11925
if test -z "$aix_libpath"; then
 
11926
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11927
fi
 
11928
else
 
11929
  $as_echo "$as_me: failed program was:" >&5
 
11930
sed 's/^/| /' conftest.$ac_ext >&5
 
11931
 
 
11932
 
 
11933
fi
 
11934
 
 
11935
rm -rf conftest.dSYM
 
11936
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11937
      conftest$ac_exeext conftest.$ac_ext
 
11938
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
11939
 
 
11940
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
11941
 
 
11942
      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"
 
11943
     else
 
11944
      if test "$host_cpu" = ia64; then
 
11945
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
11946
        allow_undefined_flag_CXX="-z nodefs"
 
11947
        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"
 
11948
      else
 
11949
        # Determine the default libpath from the value encoded in an empty executable.
 
11950
        cat >conftest.$ac_ext <<_ACEOF
 
11951
/* confdefs.h.  */
 
11952
_ACEOF
 
11953
cat confdefs.h >>conftest.$ac_ext
 
11954
cat >>conftest.$ac_ext <<_ACEOF
 
11955
/* end confdefs.h.  */
 
11956
 
 
11957
int
 
11958
main ()
 
11959
{
 
11960
 
 
11961
  ;
 
11962
  return 0;
 
11963
}
 
11964
_ACEOF
 
11965
rm -f conftest.$ac_objext conftest$ac_exeext
 
11966
if { (ac_try="$ac_link"
 
11967
case "(($ac_try" in
 
11968
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11969
  *) ac_try_echo=$ac_try;;
 
11970
esac
 
11971
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
11972
$as_echo "$ac_try_echo") >&5
 
11973
  (eval "$ac_link") 2>conftest.er1
 
11974
  ac_status=$?
 
11975
  grep -v '^ *+' conftest.er1 >conftest.err
 
11976
  rm -f conftest.er1
 
11977
  cat conftest.err >&5
 
11978
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11979
  (exit $ac_status); } && {
 
11980
         test -z "$ac_cxx_werror_flag" ||
 
11981
         test ! -s conftest.err
 
11982
       } && test -s conftest$ac_exeext && {
 
11983
         test "$cross_compiling" = yes ||
 
11984
         $as_test_x conftest$ac_exeext
 
11985
       }; then
 
11986
 
 
11987
lt_aix_libpath_sed='
 
11988
    /Import File Strings/,/^$/ {
 
11989
        /^0/ {
 
11990
            s/^0  *\(.*\)$/\1/
 
11991
            p
 
11992
        }
 
11993
    }'
 
11994
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11995
# Check for a 64-bit object if we didn't find anything.
 
11996
if test -z "$aix_libpath"; then
 
11997
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11998
fi
 
11999
else
 
12000
  $as_echo "$as_me: failed program was:" >&5
 
12001
sed 's/^/| /' conftest.$ac_ext >&5
 
12002
 
 
12003
 
 
12004
fi
 
12005
 
 
12006
rm -rf conftest.dSYM
 
12007
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
12008
      conftest$ac_exeext conftest.$ac_ext
 
12009
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
12010
 
 
12011
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
12012
        # Warning - without using the other run time loading flags,
 
12013
        # -berok will link without error, but may produce a broken library.
 
12014
        no_undefined_flag_CXX=' ${wl}-bernotok'
 
12015
        allow_undefined_flag_CXX=' ${wl}-berok'
 
12016
        # Exported symbols can be pulled into shared objects from archives
 
12017
        whole_archive_flag_spec_CXX='$convenience'
 
12018
        archive_cmds_need_lc_CXX=yes
 
12019
        # This is similar to how AIX traditionally builds its shared libraries.
 
12020
        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'
 
12021
      fi
 
12022
    fi
 
12023
    ;;
 
12024
 
 
12025
  beos*)
 
12026
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
12027
      allow_undefined_flag_CXX=unsupported
 
12028
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
12029
      # support --undefined.  This deserves some investigation.  FIXME
 
12030
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12031
    else
 
12032
      ld_shlibs_CXX=no
 
12033
    fi
 
12034
    ;;
 
12035
 
 
12036
  chorus*)
 
12037
    case $cc_basename in
 
12038
      *)
 
12039
        # FIXME: insert proper C++ library support
 
12040
        ld_shlibs_CXX=no
 
12041
        ;;
 
12042
    esac
 
12043
    ;;
 
12044
 
 
12045
  cygwin* | mingw* | pw32*)
 
12046
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
12047
    # as there is no search path for DLLs.
 
12048
    hardcode_libdir_flag_spec_CXX='-L$libdir'
 
12049
    allow_undefined_flag_CXX=unsupported
 
12050
    always_export_symbols_CXX=no
 
12051
    enable_shared_with_static_runtimes_CXX=yes
 
12052
 
 
12053
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
12054
      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'
 
12055
      # If the export-symbols file already is a .def file (1st line
 
12056
      # is EXPORTS), use it as is; otherwise, prepend...
 
12057
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
12058
        cp $export_symbols $output_objdir/$soname.def;
 
12059
      else
 
12060
        echo EXPORTS > $output_objdir/$soname.def;
 
12061
        cat $export_symbols >> $output_objdir/$soname.def;
 
12062
      fi~
 
12063
      $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'
 
12064
    else
 
12065
      ld_shlibs_CXX=no
 
12066
    fi
 
12067
  ;;
 
12068
      darwin* | rhapsody*)
 
12069
      archive_cmds_need_lc_CXX=no
 
12070
      hardcode_direct_CXX=no
 
12071
      hardcode_automatic_CXX=yes
 
12072
      hardcode_shlibpath_var_CXX=unsupported
 
12073
      whole_archive_flag_spec_CXX=''
 
12074
      link_all_deplibs_CXX=yes
 
12075
      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
 
12076
      if test "$GXX" = yes ; then
 
12077
      output_verbose_link_cmd='echo'
 
12078
      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}"
 
12079
      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
12080
      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}"
 
12081
      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}"
 
12082
      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
12083
        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}"
 
12084
        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}"
 
12085
      fi
 
12086
      else
 
12087
      case $cc_basename in
 
12088
        xlc*)
 
12089
         output_verbose_link_cmd='echo'
 
12090
          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'
 
12091
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
12092
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
12093
          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}'
 
12094
          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}'
 
12095
          ;;
 
12096
       *)
 
12097
         ld_shlibs_CXX=no
 
12098
          ;;
 
12099
      esac
 
12100
      fi
 
12101
        ;;
 
12102
 
 
12103
  dgux*)
 
12104
    case $cc_basename in
 
12105
      ec++*)
 
12106
        # FIXME: insert proper C++ library support
 
12107
        ld_shlibs_CXX=no
 
12108
        ;;
 
12109
      ghcx*)
 
12110
        # Green Hills C++ Compiler
 
12111
        # FIXME: insert proper C++ library support
 
12112
        ld_shlibs_CXX=no
 
12113
        ;;
 
12114
      *)
 
12115
        # FIXME: insert proper C++ library support
 
12116
        ld_shlibs_CXX=no
 
12117
        ;;
 
12118
    esac
 
12119
    ;;
 
12120
  freebsd[12]*)
 
12121
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
12122
    ld_shlibs_CXX=no
 
12123
    ;;
 
12124
  freebsd-elf*)
 
12125
    archive_cmds_need_lc_CXX=no
 
12126
    ;;
 
12127
  freebsd* | dragonfly*)
 
12128
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
12129
    # conventions
 
12130
    ld_shlibs_CXX=yes
 
12131
    ;;
 
12132
  gnu*)
 
12133
    ;;
 
12134
  hpux9*)
 
12135
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
12136
    hardcode_libdir_separator_CXX=:
 
12137
    export_dynamic_flag_spec_CXX='${wl}-E'
 
12138
    hardcode_direct_CXX=yes
 
12139
    hardcode_minus_L_CXX=yes # Not in the search PATH,
 
12140
                                # but as the default
 
12141
                                # location of the library.
 
12142
 
 
12143
    case $cc_basename in
 
12144
    CC*)
 
12145
      # FIXME: insert proper C++ library support
 
12146
      ld_shlibs_CXX=no
 
12147
      ;;
 
12148
    aCC*)
 
12149
      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'
 
12150
      # Commands to make compiler produce verbose output that lists
 
12151
      # what "hidden" libraries, object files and flags are used when
 
12152
      # linking a shared library.
 
12153
      #
 
12154
      # There doesn't appear to be a way to prevent this compiler from
 
12155
      # explicitly linking system object files so we need to strip them
 
12156
      # from the output so that they don't get included in the library
 
12157
      # dependencies.
 
12158
      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'
 
12159
      ;;
 
12160
    *)
 
12161
      if test "$GXX" = yes; then
 
12162
        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'
 
12163
      else
 
12164
        # FIXME: insert proper C++ library support
 
12165
        ld_shlibs_CXX=no
 
12166
      fi
 
12167
      ;;
 
12168
    esac
 
12169
    ;;
 
12170
  hpux10*|hpux11*)
 
12171
    if test $with_gnu_ld = no; then
 
12172
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
12173
      hardcode_libdir_separator_CXX=:
 
12174
 
 
12175
      case $host_cpu in
 
12176
      hppa*64*|ia64*) ;;
 
12177
      *)
 
12178
        export_dynamic_flag_spec_CXX='${wl}-E'
 
12179
        ;;
 
12180
      esac
 
12181
    fi
 
12182
    case $host_cpu in
 
12183
    hppa*64*|ia64*)
 
12184
      hardcode_direct_CXX=no
 
12185
      hardcode_shlibpath_var_CXX=no
 
12186
      ;;
 
12187
    *)
 
12188
      hardcode_direct_CXX=yes
 
12189
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
12190
                                              # but as the default
 
12191
                                              # location of the library.
 
12192
      ;;
 
12193
    esac
 
12194
 
 
12195
    case $cc_basename in
 
12196
      CC*)
 
12197
        # FIXME: insert proper C++ library support
 
12198
        ld_shlibs_CXX=no
 
12199
        ;;
 
12200
      aCC*)
 
12201
        case $host_cpu in
 
12202
        hppa*64*)
 
12203
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12204
          ;;
 
12205
        ia64*)
 
12206
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12207
          ;;
 
12208
        *)
 
12209
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12210
          ;;
 
12211
        esac
 
12212
        # Commands to make compiler produce verbose output that lists
 
12213
        # what "hidden" libraries, object files and flags are used when
 
12214
        # linking a shared library.
 
12215
        #
 
12216
        # There doesn't appear to be a way to prevent this compiler from
 
12217
        # explicitly linking system object files so we need to strip them
 
12218
        # from the output so that they don't get included in the library
 
12219
        # dependencies.
 
12220
        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'
 
12221
        ;;
 
12222
      *)
 
12223
        if test "$GXX" = yes; then
 
12224
          if test $with_gnu_ld = no; then
 
12225
            case $host_cpu in
 
12226
            hppa*64*)
 
12227
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12228
              ;;
 
12229
            ia64*)
 
12230
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12231
              ;;
 
12232
            *)
 
12233
              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'
 
12234
              ;;
 
12235
            esac
 
12236
          fi
 
12237
        else
 
12238
          # FIXME: insert proper C++ library support
 
12239
          ld_shlibs_CXX=no
 
12240
        fi
 
12241
        ;;
 
12242
    esac
 
12243
    ;;
 
12244
  interix[3-9]*)
 
12245
    hardcode_direct_CXX=no
 
12246
    hardcode_shlibpath_var_CXX=no
 
12247
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12248
    export_dynamic_flag_spec_CXX='${wl}-E'
 
12249
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
12250
    # Instead, shared libraries are loaded at an image base (0x10000000 by
 
12251
    # default) and relocated if they conflict, which is a slow very memory
 
12252
    # consuming and fragmenting process.  To avoid this, we pick a random,
 
12253
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
12254
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
12255
    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'
 
12256
    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'
 
12257
    ;;
 
12258
  irix5* | irix6*)
 
12259
    case $cc_basename in
 
12260
      CC*)
 
12261
        # SGI C++
 
12262
        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'
 
12263
 
 
12264
        # Archives containing C++ object files must be created using
 
12265
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
12266
        # necessary to make sure instantiated templates are included
 
12267
        # in the archive.
 
12268
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
12269
        ;;
 
12270
      *)
 
12271
        if test "$GXX" = yes; then
 
12272
          if test "$with_gnu_ld" = no; then
 
12273
            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'
 
12274
          else
 
12275
            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'
 
12276
          fi
 
12277
        fi
 
12278
        link_all_deplibs_CXX=yes
 
12279
        ;;
 
12280
    esac
 
12281
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12282
    hardcode_libdir_separator_CXX=:
 
12283
    ;;
 
12284
  linux* | k*bsd*-gnu)
 
12285
    case $cc_basename in
 
12286
      KCC*)
 
12287
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
12288
 
 
12289
        # KCC will only create a shared library if the output file
 
12290
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
12291
        # to its proper name (with version) after linking.
 
12292
        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'
 
12293
        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'
 
12294
        # Commands to make compiler produce verbose output that lists
 
12295
        # what "hidden" libraries, object files and flags are used when
 
12296
        # linking a shared library.
 
12297
        #
 
12298
        # There doesn't appear to be a way to prevent this compiler from
 
12299
        # explicitly linking system object files so we need to strip them
 
12300
        # from the output so that they don't get included in the library
 
12301
        # dependencies.
 
12302
        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'
 
12303
 
 
12304
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
 
12305
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12306
 
 
12307
        # Archives containing C++ object files must be created using
 
12308
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
12309
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
12310
        ;;
 
12311
      icpc*)
 
12312
        # Intel C++
 
12313
        with_gnu_ld=yes
 
12314
        # version 8.0 and above of icpc choke on multiply defined symbols
 
12315
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
12316
        # earlier do not add the objects themselves.
 
12317
        case `$CC -V 2>&1` in
 
12318
        *"Version 7."*)
 
12319
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12320
          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'
 
12321
          ;;
 
12322
        *)  # Version 8.0 or newer
 
12323
          tmp_idyn=
 
12324
          case $host_cpu in
 
12325
            ia64*) tmp_idyn=' -i_dynamic';;
 
12326
          esac
 
12327
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12328
          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'
 
12329
          ;;
 
12330
        esac
 
12331
        archive_cmds_need_lc_CXX=no
 
12332
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12333
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12334
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
12335
        ;;
 
12336
      pgCC* | pgcpp*)
 
12337
        # Portland Group C++ compiler
 
12338
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
12339
        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'
 
12340
 
 
12341
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
12342
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12343
        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'
 
12344
        ;;
 
12345
      cxx*)
 
12346
        # Compaq C++
 
12347
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12348
        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'
 
12349
 
 
12350
        runpath_var=LD_RUN_PATH
 
12351
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
12352
        hardcode_libdir_separator_CXX=:
 
12353
 
 
12354
        # Commands to make compiler produce verbose output that lists
 
12355
        # what "hidden" libraries, object files and flags are used when
 
12356
        # linking a shared library.
 
12357
        #
 
12358
        # There doesn't appear to be a way to prevent this compiler from
 
12359
        # explicitly linking system object files so we need to strip them
 
12360
        # from the output so that they don't get included in the library
 
12361
        # dependencies.
 
12362
        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'
 
12363
        ;;
 
12364
      *)
 
12365
        case `$CC -V 2>&1 | sed 5q` in
 
12366
        *Sun\ C*)
 
12367
          # Sun C++ 5.9
 
12368
          no_undefined_flag_CXX=' -zdefs'
 
12369
          archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12370
          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'
 
12371
          hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12372
          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'
 
12373
 
 
12374
          # Not sure whether something based on
 
12375
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
12376
          # would be better.
 
12377
          output_verbose_link_cmd='echo'
 
12378
 
 
12379
          # Archives containing C++ object files must be created using
 
12380
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
12381
          # necessary to make sure instantiated templates are included
 
12382
          # in the archive.
 
12383
          old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
12384
          ;;
 
12385
        esac
 
12386
        ;;
 
12387
    esac
 
12388
    ;;
 
12389
  lynxos*)
 
12390
    # FIXME: insert proper C++ library support
 
12391
    ld_shlibs_CXX=no
 
12392
    ;;
 
12393
  m88k*)
 
12394
    # FIXME: insert proper C++ library support
 
12395
    ld_shlibs_CXX=no
 
12396
    ;;
 
12397
  mvs*)
 
12398
    case $cc_basename in
 
12399
      cxx*)
 
12400
        # FIXME: insert proper C++ library support
 
12401
        ld_shlibs_CXX=no
 
12402
        ;;
 
12403
      *)
 
12404
        # FIXME: insert proper C++ library support
 
12405
        ld_shlibs_CXX=no
 
12406
        ;;
 
12407
    esac
 
12408
    ;;
 
12409
  netbsd*)
 
12410
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
12411
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
12412
      wlarc=
 
12413
      hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12414
      hardcode_direct_CXX=yes
 
12415
      hardcode_shlibpath_var_CXX=no
 
12416
    fi
 
12417
    # Workaround some broken pre-1.5 toolchains
 
12418
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
12419
    ;;
 
12420
  openbsd2*)
 
12421
    # C++ shared libraries are fairly broken
 
12422
    ld_shlibs_CXX=no
 
12423
    ;;
 
12424
  openbsd*)
 
12425
    if test -f /usr/libexec/ld.so; then
 
12426
      hardcode_direct_CXX=yes
 
12427
      hardcode_shlibpath_var_CXX=no
 
12428
      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
12429
      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12430
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
12431
        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
12432
        export_dynamic_flag_spec_CXX='${wl}-E'
 
12433
        whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
12434
      fi
 
12435
      output_verbose_link_cmd='echo'
 
12436
    else
 
12437
      ld_shlibs_CXX=no
 
12438
    fi
 
12439
    ;;
 
12440
  osf3*)
 
12441
    case $cc_basename in
 
12442
      KCC*)
 
12443
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
12444
 
 
12445
        # KCC will only create a shared library if the output file
 
12446
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
12447
        # to its proper name (with version) after linking.
 
12448
        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'
 
12449
 
 
12450
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12451
        hardcode_libdir_separator_CXX=:
 
12452
 
 
12453
        # Archives containing C++ object files must be created using
 
12454
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
12455
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
12456
 
 
12457
        ;;
 
12458
      RCC*)
 
12459
        # Rational C++ 2.4.1
 
12460
        # FIXME: insert proper C++ library support
 
12461
        ld_shlibs_CXX=no
 
12462
        ;;
 
12463
      cxx*)
 
12464
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
12465
        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'
 
12466
 
 
12467
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12468
        hardcode_libdir_separator_CXX=:
 
12469
 
 
12470
        # Commands to make compiler produce verbose output that lists
 
12471
        # what "hidden" libraries, object files and flags are used when
 
12472
        # linking a shared library.
 
12473
        #
 
12474
        # There doesn't appear to be a way to prevent this compiler from
 
12475
        # explicitly linking system object files so we need to strip them
 
12476
        # from the output so that they don't get included in the library
 
12477
        # dependencies.
 
12478
        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'
 
12479
        ;;
 
12480
      *)
 
12481
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
12482
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
12483
          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'
 
12484
 
 
12485
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12486
          hardcode_libdir_separator_CXX=:
 
12487
 
 
12488
          # Commands to make compiler produce verbose output that lists
 
12489
          # what "hidden" libraries, object files and flags are used when
 
12490
          # linking a shared library.
 
12491
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
12492
 
 
12493
        else
 
12494
          # FIXME: insert proper C++ library support
 
12495
          ld_shlibs_CXX=no
 
12496
        fi
 
12497
        ;;
 
12498
    esac
 
12499
    ;;
 
12500
  osf4* | osf5*)
 
12501
    case $cc_basename in
 
12502
      KCC*)
 
12503
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
12504
 
 
12505
        # KCC will only create a shared library if the output file
 
12506
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
12507
        # to its proper name (with version) after linking.
 
12508
        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'
 
12509
 
 
12510
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12511
        hardcode_libdir_separator_CXX=:
 
12512
 
 
12513
        # Archives containing C++ object files must be created using
 
12514
        # the KAI C++ compiler.
 
12515
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
 
12516
        ;;
 
12517
      RCC*)
 
12518
        # Rational C++ 2.4.1
 
12519
        # FIXME: insert proper C++ library support
 
12520
        ld_shlibs_CXX=no
 
12521
        ;;
 
12522
      cxx*)
 
12523
        allow_undefined_flag_CXX=' -expect_unresolved \*'
 
12524
        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'
 
12525
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
12526
          echo "-hidden">> $lib.exp~
 
12527
          $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~
 
12528
          $rm $lib.exp'
 
12529
 
 
12530
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
12531
        hardcode_libdir_separator_CXX=:
 
12532
 
 
12533
        # Commands to make compiler produce verbose output that lists
 
12534
        # what "hidden" libraries, object files and flags are used when
 
12535
        # linking a shared library.
 
12536
        #
 
12537
        # There doesn't appear to be a way to prevent this compiler from
 
12538
        # explicitly linking system object files so we need to strip them
 
12539
        # from the output so that they don't get included in the library
 
12540
        # dependencies.
 
12541
        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'
 
12542
        ;;
 
12543
      *)
 
12544
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
12545
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
12546
         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'
 
12547
 
 
12548
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12549
          hardcode_libdir_separator_CXX=:
 
12550
 
 
12551
          # Commands to make compiler produce verbose output that lists
 
12552
          # what "hidden" libraries, object files and flags are used when
 
12553
          # linking a shared library.
 
12554
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
12555
 
 
12556
        else
 
12557
          # FIXME: insert proper C++ library support
 
12558
          ld_shlibs_CXX=no
 
12559
        fi
 
12560
        ;;
 
12561
    esac
 
12562
    ;;
 
12563
  psos*)
 
12564
    # FIXME: insert proper C++ library support
 
12565
    ld_shlibs_CXX=no
 
12566
    ;;
 
12567
  sunos4*)
 
12568
    case $cc_basename in
 
12569
      CC*)
 
12570
        # Sun C++ 4.x
 
12571
        # FIXME: insert proper C++ library support
 
12572
        ld_shlibs_CXX=no
 
12573
        ;;
 
12574
      lcc*)
 
12575
        # Lucid
 
12576
        # FIXME: insert proper C++ library support
 
12577
        ld_shlibs_CXX=no
 
12578
        ;;
 
12579
      *)
 
12580
        # FIXME: insert proper C++ library support
 
12581
        ld_shlibs_CXX=no
 
12582
        ;;
 
12583
    esac
 
12584
    ;;
 
12585
  solaris*)
 
12586
    case $cc_basename in
 
12587
      CC*)
 
12588
        # Sun C++ 4.2, 5.x and Centerline C++
 
12589
        archive_cmds_need_lc_CXX=yes
 
12590
        no_undefined_flag_CXX=' -zdefs'
 
12591
        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12592
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
12593
        $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'
 
12594
 
 
12595
        hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12596
        hardcode_shlibpath_var_CXX=no
 
12597
        case $host_os in
 
12598
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
12599
          *)
 
12600
            # The compiler driver will combine and reorder linker options,
 
12601
            # but understands `-z linker_flag'.
 
12602
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
12603
            whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
 
12604
            ;;
 
12605
        esac
 
12606
        link_all_deplibs_CXX=yes
 
12607
 
 
12608
        output_verbose_link_cmd='echo'
 
12609
 
 
12610
        # Archives containing C++ object files must be created using
 
12611
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
12612
        # necessary to make sure instantiated templates are included
 
12613
        # in the archive.
 
12614
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
12615
        ;;
 
12616
      gcx*)
 
12617
        # Green Hills C++ Compiler
 
12618
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12619
 
 
12620
        # The C++ compiler must be used to create the archive.
 
12621
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
12622
        ;;
 
12623
      *)
 
12624
        # GNU C++ compiler with Solaris linker
 
12625
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
12626
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
12627
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
12628
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12629
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
12630
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
12631
 
 
12632
            # Commands to make compiler produce verbose output that lists
 
12633
            # what "hidden" libraries, object files and flags are used when
 
12634
            # linking a shared library.
 
12635
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
12636
          else
 
12637
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
12638
            # platform.
 
12639
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12640
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
12641
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
12642
 
 
12643
            # Commands to make compiler produce verbose output that lists
 
12644
            # what "hidden" libraries, object files and flags are used when
 
12645
            # linking a shared library.
 
12646
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
12647
          fi
 
12648
 
 
12649
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
12650
          case $host_os in
 
12651
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
12652
          *)
 
12653
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
12654
            ;;
 
12655
          esac
 
12656
        fi
 
12657
        ;;
 
12658
    esac
 
12659
    ;;
 
12660
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
12661
    no_undefined_flag_CXX='${wl}-z,text'
 
12662
    archive_cmds_need_lc_CXX=no
 
12663
    hardcode_shlibpath_var_CXX=no
 
12664
    runpath_var='LD_RUN_PATH'
 
12665
 
 
12666
    case $cc_basename in
 
12667
      CC*)
 
12668
        archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12669
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12670
        ;;
 
12671
      *)
 
12672
        archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12673
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12674
        ;;
 
12675
    esac
 
12676
    ;;
 
12677
  sysv5* | sco3.2v5* | sco5v6*)
 
12678
    # Note: We can NOT use -z defs as we might desire, because we do not
 
12679
    # link with -lc, and that would cause any symbols used from libc to
 
12680
    # always be unresolved, which means just about no library would
 
12681
    # ever link correctly.  If we're not using GNU ld we use -z text
 
12682
    # though, which does catch some bad symbols but isn't as heavy-handed
 
12683
    # as -z defs.
 
12684
    # For security reasons, it is highly recommended that you always
 
12685
    # use absolute paths for naming shared libraries, and exclude the
 
12686
    # DT_RUNPATH tag from executables and libraries.  But doing so
 
12687
    # requires that you compile everything twice, which is a pain.
 
12688
    # So that behaviour is only enabled if SCOABSPATH is set to a
 
12689
    # non-empty value in the environment.  Most likely only useful for
 
12690
    # creating official distributions of packages.
 
12691
    # This is a hack until libtool officially supports absolute path
 
12692
    # names for shared libraries.
 
12693
    no_undefined_flag_CXX='${wl}-z,text'
 
12694
    allow_undefined_flag_CXX='${wl}-z,nodefs'
 
12695
    archive_cmds_need_lc_CXX=no
 
12696
    hardcode_shlibpath_var_CXX=no
 
12697
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
12698
    hardcode_libdir_separator_CXX=':'
 
12699
    link_all_deplibs_CXX=yes
 
12700
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
 
12701
    runpath_var='LD_RUN_PATH'
 
12702
 
 
12703
    case $cc_basename in
 
12704
      CC*)
 
12705
        archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12706
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12707
        ;;
 
12708
      *)
 
12709
        archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12710
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12711
        ;;
 
12712
    esac
 
12713
    ;;
 
12714
  tandem*)
 
12715
    case $cc_basename in
 
12716
      NCC*)
 
12717
        # NonStop-UX NCC 3.20
 
12718
        # FIXME: insert proper C++ library support
 
12719
        ld_shlibs_CXX=no
 
12720
        ;;
 
12721
      *)
 
12722
        # FIXME: insert proper C++ library support
 
12723
        ld_shlibs_CXX=no
 
12724
        ;;
 
12725
    esac
 
12726
    ;;
 
12727
  vxworks*)
 
12728
    # FIXME: insert proper C++ library support
 
12729
    ld_shlibs_CXX=no
 
12730
    ;;
 
12731
  *)
 
12732
    # FIXME: insert proper C++ library support
 
12733
    ld_shlibs_CXX=no
 
12734
    ;;
 
12735
esac
 
12736
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
12737
$as_echo "$ld_shlibs_CXX" >&6; }
 
12738
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
12739
 
 
12740
GCC_CXX="$GXX"
 
12741
LD_CXX="$LD"
 
12742
 
 
12743
cat > conftest.$ac_ext <<EOF
 
12744
class Foo
 
12745
{
 
12746
public:
 
12747
  Foo (void) { a = 0; }
 
12748
private:
 
12749
  int a;
 
12750
};
 
12751
EOF
 
12752
 
 
12753
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12754
  (eval $ac_compile) 2>&5
 
12755
  ac_status=$?
 
12756
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12757
  (exit $ac_status); }; then
 
12758
  # Parse the compiler output and extract the necessary
 
12759
  # objects, libraries and library flags.
 
12760
 
 
12761
  # Sentinel used to keep track of whether or not we are before
 
12762
  # the conftest object file.
 
12763
  pre_test_object_deps_done=no
 
12764
 
 
12765
  # The `*' in the case matches for architectures that use `case' in
 
12766
  # $output_verbose_cmd can trigger glob expansion during the loop
 
12767
  # eval without this substitution.
 
12768
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
 
12769
 
 
12770
  for p in `eval $output_verbose_link_cmd`; do
 
12771
    case $p in
 
12772
 
 
12773
    -L* | -R* | -l*)
 
12774
       # Some compilers place space between "-{L,R}" and the path.
 
12775
       # Remove the space.
 
12776
       if test $p = "-L" \
 
12777
          || test $p = "-R"; then
 
12778
         prev=$p
 
12779
         continue
 
12780
       else
 
12781
         prev=
 
12782
       fi
 
12783
 
 
12784
       if test "$pre_test_object_deps_done" = no; then
 
12785
         case $p in
 
12786
         -L* | -R*)
 
12787
           # Internal compiler library paths should come after those
 
12788
           # provided the user.  The postdeps already come after the
 
12789
           # user supplied libs so there is no need to process them.
 
12790
           if test -z "$compiler_lib_search_path_CXX"; then
 
12791
             compiler_lib_search_path_CXX="${prev}${p}"
 
12792
           else
 
12793
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
12794
           fi
 
12795
           ;;
 
12796
         # The "-l" case would never come before the object being
 
12797
         # linked, so don't bother handling this case.
 
12798
         esac
 
12799
       else
 
12800
         if test -z "$postdeps_CXX"; then
 
12801
           postdeps_CXX="${prev}${p}"
 
12802
         else
 
12803
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
12804
         fi
 
12805
       fi
 
12806
       ;;
 
12807
 
 
12808
    *.$objext)
 
12809
       # This assumes that the test object file only shows up
 
12810
       # once in the compiler output.
 
12811
       if test "$p" = "conftest.$objext"; then
 
12812
         pre_test_object_deps_done=yes
 
12813
         continue
 
12814
       fi
 
12815
 
 
12816
       if test "$pre_test_object_deps_done" = no; then
 
12817
         if test -z "$predep_objects_CXX"; then
 
12818
           predep_objects_CXX="$p"
 
12819
         else
 
12820
           predep_objects_CXX="$predep_objects_CXX $p"
 
12821
         fi
 
12822
       else
 
12823
         if test -z "$postdep_objects_CXX"; then
 
12824
           postdep_objects_CXX="$p"
 
12825
         else
 
12826
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
12827
         fi
 
12828
       fi
 
12829
       ;;
 
12830
 
 
12831
    *) ;; # Ignore the rest.
 
12832
 
 
12833
    esac
 
12834
  done
 
12835
 
 
12836
  # Clean up.
 
12837
  rm -f a.out a.exe
 
12838
else
 
12839
  echo "libtool.m4: error: problem compiling CXX test program"
 
12840
fi
 
12841
 
 
12842
$rm -f confest.$objext
 
12843
 
 
12844
compiler_lib_search_dirs_CXX=
 
12845
if test -n "$compiler_lib_search_path_CXX"; then
 
12846
  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
12847
fi
 
12848
 
 
12849
# PORTME: override above test on systems where it is broken
 
12850
case $host_os in
 
12851
interix[3-9]*)
 
12852
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
12853
  # hack all around it, let's just trust "g++" to DTRT.
 
12854
  predep_objects_CXX=
 
12855
  postdep_objects_CXX=
 
12856
  postdeps_CXX=
 
12857
  ;;
 
12858
 
 
12859
linux*)
 
12860
  case `$CC -V 2>&1 | sed 5q` in
 
12861
  *Sun\ C*)
 
12862
    # Sun C++ 5.9
 
12863
    #
 
12864
    # The more standards-conforming stlport4 library is
 
12865
    # incompatible with the Cstd library. Avoid specifying
 
12866
    # it if it's in CXXFLAGS. Ignore libCrun as
 
12867
    # -library=stlport4 depends on it.
 
12868
    case " $CXX $CXXFLAGS " in
 
12869
    *" -library=stlport4 "*)
 
12870
      solaris_use_stlport4=yes
 
12871
      ;;
 
12872
    esac
 
12873
    if test "$solaris_use_stlport4" != yes; then
 
12874
      postdeps_CXX='-library=Cstd -library=Crun'
 
12875
    fi
 
12876
    ;;
 
12877
  esac
 
12878
  ;;
 
12879
 
 
12880
solaris*)
 
12881
  case $cc_basename in
 
12882
  CC*)
 
12883
    # The more standards-conforming stlport4 library is
 
12884
    # incompatible with the Cstd library. Avoid specifying
 
12885
    # it if it's in CXXFLAGS. Ignore libCrun as
 
12886
    # -library=stlport4 depends on it.
 
12887
    case " $CXX $CXXFLAGS " in
 
12888
    *" -library=stlport4 "*)
 
12889
      solaris_use_stlport4=yes
 
12890
      ;;
 
12891
    esac
 
12892
 
 
12893
    # Adding this requires a known-good setup of shared libraries for
 
12894
    # Sun compiler versions before 5.6, else PIC objects from an old
 
12895
    # archive will be linked into the output, leading to subtle bugs.
 
12896
    if test "$solaris_use_stlport4" != yes; then
 
12897
      postdeps_CXX='-library=Cstd -library=Crun'
 
12898
    fi
 
12899
    ;;
 
12900
  esac
 
12901
  ;;
 
12902
esac
 
12903
 
 
12904
case " $postdeps_CXX " in
 
12905
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
12906
esac
 
12907
 
 
12908
lt_prog_compiler_wl_CXX=
 
12909
lt_prog_compiler_pic_CXX=
 
12910
lt_prog_compiler_static_CXX=
 
12911
 
 
12912
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
12913
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
12914
 
 
12915
  # C++ specific cases for pic, static, wl, etc.
 
12916
  if test "$GXX" = yes; then
 
12917
    lt_prog_compiler_wl_CXX='-Wl,'
 
12918
    lt_prog_compiler_static_CXX='-static'
 
12919
 
 
12920
    case $host_os in
 
12921
    aix*)
 
12922
      # All AIX code is PIC.
 
12923
      if test "$host_cpu" = ia64; then
 
12924
        # AIX 5 now supports IA64 processor
 
12925
        lt_prog_compiler_static_CXX='-Bstatic'
 
12926
      fi
 
12927
      ;;
 
12928
    amigaos*)
 
12929
      # FIXME: we need at least 68020 code to build shared libraries, but
 
12930
      # adding the `-m68020' flag to GCC prevents building anything better,
 
12931
      # like `-m68040'.
 
12932
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
12933
      ;;
 
12934
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
12935
      # PIC is the default for these OSes.
 
12936
      ;;
 
12937
    mingw* | cygwin* | os2* | pw32*)
 
12938
      # This hack is so that the source file can tell whether it is being
 
12939
      # built for inclusion in a dll (and should export symbols for example).
 
12940
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
12941
      # (--disable-auto-import) libraries
 
12942
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
12943
      ;;
 
12944
    darwin* | rhapsody*)
 
12945
      # PIC is the default on this platform
 
12946
      # Common symbols not allowed in MH_DYLIB files
 
12947
      lt_prog_compiler_pic_CXX='-fno-common'
 
12948
      ;;
 
12949
    *djgpp*)
 
12950
      # DJGPP does not support shared libraries at all
 
12951
      lt_prog_compiler_pic_CXX=
 
12952
      ;;
 
12953
    interix[3-9]*)
 
12954
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
12955
      # Instead, we relocate shared libraries at runtime.
 
12956
      ;;
 
12957
    sysv4*MP*)
 
12958
      if test -d /usr/nec; then
 
12959
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
12960
      fi
 
12961
      ;;
 
12962
    hpux*)
 
12963
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
12964
      # not for PA HP-UX.
 
12965
      case $host_cpu in
 
12966
      hppa*64*|ia64*)
 
12967
        ;;
 
12968
      *)
 
12969
        lt_prog_compiler_pic_CXX='-fPIC'
 
12970
        ;;
 
12971
      esac
 
12972
      ;;
 
12973
    *)
 
12974
      lt_prog_compiler_pic_CXX='-fPIC'
 
12975
      ;;
 
12976
    esac
 
12977
  else
 
12978
    case $host_os in
 
12979
      aix[4-9]*)
 
12980
        # All AIX code is PIC.
 
12981
        if test "$host_cpu" = ia64; then
 
12982
          # AIX 5 now supports IA64 processor
 
12983
          lt_prog_compiler_static_CXX='-Bstatic'
 
12984
        else
 
12985
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
12986
        fi
 
12987
        ;;
 
12988
      chorus*)
 
12989
        case $cc_basename in
 
12990
        cxch68*)
 
12991
          # Green Hills C++ Compiler
 
12992
          # _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"
 
12993
          ;;
 
12994
        esac
 
12995
        ;;
 
12996
       darwin*)
 
12997
         # PIC is the default on this platform
 
12998
         # Common symbols not allowed in MH_DYLIB files
 
12999
         case $cc_basename in
 
13000
           xlc*)
 
13001
           lt_prog_compiler_pic_CXX='-qnocommon'
 
13002
           lt_prog_compiler_wl_CXX='-Wl,'
 
13003
           ;;
 
13004
         esac
 
13005
       ;;
 
13006
      dgux*)
 
13007
        case $cc_basename in
 
13008
          ec++*)
 
13009
            lt_prog_compiler_pic_CXX='-KPIC'
 
13010
            ;;
 
13011
          ghcx*)
 
13012
            # Green Hills C++ Compiler
 
13013
            lt_prog_compiler_pic_CXX='-pic'
 
13014
            ;;
 
13015
          *)
 
13016
            ;;
 
13017
        esac
 
13018
        ;;
 
13019
      freebsd* | dragonfly*)
 
13020
        # FreeBSD uses GNU C++
 
13021
        ;;
 
13022
      hpux9* | hpux10* | hpux11*)
 
13023
        case $cc_basename in
 
13024
          CC*)
 
13025
            lt_prog_compiler_wl_CXX='-Wl,'
 
13026
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
13027
            if test "$host_cpu" != ia64; then
 
13028
              lt_prog_compiler_pic_CXX='+Z'
 
13029
            fi
 
13030
            ;;
 
13031
          aCC*)
 
13032
            lt_prog_compiler_wl_CXX='-Wl,'
 
13033
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
13034
            case $host_cpu in
 
13035
            hppa*64*|ia64*)
 
13036
              # +Z the default
 
13037
              ;;
 
13038
            *)
 
13039
              lt_prog_compiler_pic_CXX='+Z'
 
13040
              ;;
 
13041
            esac
 
13042
            ;;
 
13043
          *)
 
13044
            ;;
 
13045
        esac
 
13046
        ;;
 
13047
      interix*)
 
13048
        # This is c89, which is MS Visual C++ (no shared libs)
 
13049
        # Anyone wants to do a port?
 
13050
        ;;
 
13051
      irix5* | irix6* | nonstopux*)
 
13052
        case $cc_basename in
 
13053
          CC*)
 
13054
            lt_prog_compiler_wl_CXX='-Wl,'
 
13055
            lt_prog_compiler_static_CXX='-non_shared'
 
13056
            # CC pic flag -KPIC is the default.
 
13057
            ;;
 
13058
          *)
 
13059
            ;;
 
13060
        esac
 
13061
        ;;
 
13062
      linux* | k*bsd*-gnu)
 
13063
        case $cc_basename in
 
13064
          KCC*)
 
13065
            # KAI C++ Compiler
 
13066
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
13067
            lt_prog_compiler_pic_CXX='-fPIC'
 
13068
            ;;
 
13069
          icpc* | ecpc*)
 
13070
            # Intel C++
 
13071
            lt_prog_compiler_wl_CXX='-Wl,'
 
13072
            lt_prog_compiler_pic_CXX='-KPIC'
 
13073
            lt_prog_compiler_static_CXX='-static'
 
13074
            ;;
 
13075
          pgCC* | pgcpp*)
 
13076
            # Portland Group C++ compiler.
 
13077
            lt_prog_compiler_wl_CXX='-Wl,'
 
13078
            lt_prog_compiler_pic_CXX='-fpic'
 
13079
            lt_prog_compiler_static_CXX='-Bstatic'
 
13080
            ;;
 
13081
          cxx*)
 
13082
            # Compaq C++
 
13083
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
13084
            # Linux and Compaq Tru64 Unix objects are PIC.
 
13085
            lt_prog_compiler_pic_CXX=
 
13086
            lt_prog_compiler_static_CXX='-non_shared'
 
13087
            ;;
 
13088
          *)
 
13089
            case `$CC -V 2>&1 | sed 5q` in
 
13090
            *Sun\ C*)
 
13091
              # Sun C++ 5.9
 
13092
              lt_prog_compiler_pic_CXX='-KPIC'
 
13093
              lt_prog_compiler_static_CXX='-Bstatic'
 
13094
              lt_prog_compiler_wl_CXX='-Qoption ld '
 
13095
              ;;
 
13096
            esac
 
13097
            ;;
 
13098
        esac
 
13099
        ;;
 
13100
      lynxos*)
 
13101
        ;;
 
13102
      m88k*)
 
13103
        ;;
 
13104
      mvs*)
 
13105
        case $cc_basename in
 
13106
          cxx*)
 
13107
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
13108
            ;;
 
13109
          *)
 
13110
            ;;
 
13111
        esac
 
13112
        ;;
 
13113
      netbsd*)
 
13114
        ;;
 
13115
      osf3* | osf4* | osf5*)
 
13116
        case $cc_basename in
 
13117
          KCC*)
 
13118
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
13119
            ;;
 
13120
          RCC*)
 
13121
            # Rational C++ 2.4.1
 
13122
            lt_prog_compiler_pic_CXX='-pic'
 
13123
            ;;
 
13124
          cxx*)
 
13125
            # Digital/Compaq C++
 
13126
            lt_prog_compiler_wl_CXX='-Wl,'
 
13127
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
13128
            # Linux and Compaq Tru64 Unix objects are PIC.
 
13129
            lt_prog_compiler_pic_CXX=
 
13130
            lt_prog_compiler_static_CXX='-non_shared'
 
13131
            ;;
 
13132
          *)
 
13133
            ;;
 
13134
        esac
 
13135
        ;;
 
13136
      psos*)
 
13137
        ;;
 
13138
      solaris*)
 
13139
        case $cc_basename in
 
13140
          CC*)
 
13141
            # Sun C++ 4.2, 5.x and Centerline C++
 
13142
            lt_prog_compiler_pic_CXX='-KPIC'
 
13143
            lt_prog_compiler_static_CXX='-Bstatic'
 
13144
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
13145
            ;;
 
13146
          gcx*)
 
13147
            # Green Hills C++ Compiler
 
13148
            lt_prog_compiler_pic_CXX='-PIC'
 
13149
            ;;
 
13150
          *)
 
13151
            ;;
 
13152
        esac
 
13153
        ;;
 
13154
      sunos4*)
 
13155
        case $cc_basename in
 
13156
          CC*)
 
13157
            # Sun C++ 4.x
 
13158
            lt_prog_compiler_pic_CXX='-pic'
 
13159
            lt_prog_compiler_static_CXX='-Bstatic'
 
13160
            ;;
 
13161
          lcc*)
 
13162
            # Lucid
 
13163
            lt_prog_compiler_pic_CXX='-pic'
 
13164
            ;;
 
13165
          *)
 
13166
            ;;
 
13167
        esac
 
13168
        ;;
 
13169
      tandem*)
 
13170
        case $cc_basename in
 
13171
          NCC*)
 
13172
            # NonStop-UX NCC 3.20
 
13173
            lt_prog_compiler_pic_CXX='-KPIC'
 
13174
            ;;
 
13175
          *)
 
13176
            ;;
 
13177
        esac
 
13178
        ;;
 
13179
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
13180
        case $cc_basename in
 
13181
          CC*)
 
13182
            lt_prog_compiler_wl_CXX='-Wl,'
 
13183
            lt_prog_compiler_pic_CXX='-KPIC'
 
13184
            lt_prog_compiler_static_CXX='-Bstatic'
 
13185
            ;;
 
13186
        esac
 
13187
        ;;
 
13188
      vxworks*)
 
13189
        ;;
 
13190
      *)
 
13191
        lt_prog_compiler_can_build_shared_CXX=no
 
13192
        ;;
 
13193
    esac
 
13194
  fi
 
13195
 
 
13196
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
13197
$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
 
13198
 
 
13199
#
 
13200
# Check to make sure the PIC flag actually works.
 
13201
#
 
13202
if test -n "$lt_prog_compiler_pic_CXX"; then
 
13203
 
 
13204
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
13205
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
 
13206
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
 
13207
  $as_echo_n "(cached) " >&6
 
13208
else
 
13209
  lt_cv_prog_compiler_pic_works_CXX=no
 
13210
  ac_outfile=conftest.$ac_objext
 
13211
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13212
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
13213
   # Insert the option either (1) after the last *FLAGS variable, or
 
13214
   # (2) before a word containing "conftest.", or (3) at the end.
 
13215
   # Note that $ac_compile itself does not contain backslashes and begins
 
13216
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13217
   # The option is referenced via a variable to avoid confusing sed.
 
13218
   lt_compile=`echo "$ac_compile" | $SED \
 
13219
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
13220
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13221
   -e 's:$: $lt_compiler_flag:'`
 
13222
   (eval echo "\"\$as_me:13222: $lt_compile\"" >&5)
 
13223
   (eval "$lt_compile" 2>conftest.err)
 
13224
   ac_status=$?
 
13225
   cat conftest.err >&5
 
13226
   echo "$as_me:13226: \$? = $ac_status" >&5
 
13227
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
13228
     # The compiler can only warn and ignore the option if not recognized
 
13229
     # So say no if there are warnings other than the usual output.
 
13230
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
13231
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
13232
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
13233
       lt_cv_prog_compiler_pic_works_CXX=yes
 
13234
     fi
 
13235
   fi
 
13236
   $rm conftest*
 
13237
 
 
13238
fi
 
13239
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
 
13240
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
 
13241
 
 
13242
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
 
13243
    case $lt_prog_compiler_pic_CXX in
 
13244
     "" | " "*) ;;
 
13245
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
13246
     esac
 
13247
else
 
13248
    lt_prog_compiler_pic_CXX=
 
13249
     lt_prog_compiler_can_build_shared_CXX=no
 
13250
fi
 
13251
 
 
13252
fi
 
13253
case $host_os in
 
13254
  # For platforms which do not support PIC, -DPIC is meaningless:
 
13255
  *djgpp*)
 
13256
    lt_prog_compiler_pic_CXX=
 
13257
    ;;
 
13258
  *)
 
13259
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
13260
    ;;
 
13261
esac
 
13262
 
 
13263
#
 
13264
# Check to make sure the static flag actually works.
 
13265
#
 
13266
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
 
13267
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
13268
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
13269
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
 
13270
  $as_echo_n "(cached) " >&6
 
13271
else
 
13272
  lt_cv_prog_compiler_static_works_CXX=no
 
13273
   save_LDFLAGS="$LDFLAGS"
 
13274
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
13275
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
13276
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
13277
     # The linker can only warn and ignore the option if not recognized
 
13278
     # So say no if there are warnings
 
13279
     if test -s conftest.err; then
 
13280
       # Append any errors to the config.log.
 
13281
       cat conftest.err 1>&5
 
13282
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
13283
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
13284
       if diff conftest.exp conftest.er2 >/dev/null; then
 
13285
         lt_cv_prog_compiler_static_works_CXX=yes
 
13286
       fi
 
13287
     else
 
13288
       lt_cv_prog_compiler_static_works_CXX=yes
 
13289
     fi
 
13290
   fi
 
13291
   $rm -r conftest*
 
13292
   LDFLAGS="$save_LDFLAGS"
 
13293
 
 
13294
fi
 
13295
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
 
13296
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
 
13297
 
 
13298
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
 
13299
    :
 
13300
else
 
13301
    lt_prog_compiler_static_CXX=
 
13302
fi
 
13303
 
 
13304
 
 
13305
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
13306
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
13307
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
13308
  $as_echo_n "(cached) " >&6
 
13309
else
 
13310
  lt_cv_prog_compiler_c_o_CXX=no
 
13311
   $rm -r conftest 2>/dev/null
 
13312
   mkdir conftest
 
13313
   cd conftest
 
13314
   mkdir out
 
13315
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13316
 
 
13317
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
13318
   # Insert the option either (1) after the last *FLAGS variable, or
 
13319
   # (2) before a word containing "conftest.", or (3) at the end.
 
13320
   # Note that $ac_compile itself does not contain backslashes and begins
 
13321
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13322
   lt_compile=`echo "$ac_compile" | $SED \
 
13323
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
13324
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13325
   -e 's:$: $lt_compiler_flag:'`
 
13326
   (eval echo "\"\$as_me:13326: $lt_compile\"" >&5)
 
13327
   (eval "$lt_compile" 2>out/conftest.err)
 
13328
   ac_status=$?
 
13329
   cat out/conftest.err >&5
 
13330
   echo "$as_me:13330: \$? = $ac_status" >&5
 
13331
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
13332
   then
 
13333
     # The compiler can only warn and ignore the option if not recognized
 
13334
     # So say no if there are warnings
 
13335
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
13336
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
13337
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
13338
       lt_cv_prog_compiler_c_o_CXX=yes
 
13339
     fi
 
13340
   fi
 
13341
   chmod u+w . 2>&5
 
13342
   $rm conftest*
 
13343
   # SGI C++ compiler will create directory out/ii_files/ for
 
13344
   # template instantiation
 
13345
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
13346
   $rm out/* && rmdir out
 
13347
   cd ..
 
13348
   rmdir conftest
 
13349
   $rm conftest*
 
13350
 
 
13351
fi
 
13352
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
13353
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
 
13354
 
 
13355
 
 
13356
hard_links="nottested"
 
13357
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
13358
  # do not overwrite the value of need_locks provided by the user
 
13359
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
13360
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
13361
  hard_links=yes
 
13362
  $rm conftest*
 
13363
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13364
  touch conftest.a
 
13365
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
13366
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13367
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
 
13368
$as_echo "$hard_links" >&6; }
 
13369
  if test "$hard_links" = no; then
 
13370
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
13371
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
13372
    need_locks=warn
 
13373
  fi
 
13374
else
 
13375
  need_locks=no
 
13376
fi
 
13377
 
 
13378
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
13379
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
13380
 
 
13381
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
13382
  case $host_os in
 
13383
  aix[4-9]*)
 
13384
    # If we're using GNU nm, then we don't want the "-C" option.
 
13385
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
13386
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
13387
      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'
 
13388
    else
 
13389
      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'
 
13390
    fi
 
13391
    ;;
 
13392
  pw32*)
 
13393
    export_symbols_cmds_CXX="$ltdll_cmds"
 
13394
  ;;
 
13395
  cygwin* | mingw*)
 
13396
    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'
 
13397
  ;;
 
13398
  linux* | k*bsd*-gnu)
 
13399
    link_all_deplibs_CXX=no
 
13400
  ;;
 
13401
  *)
 
13402
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
13403
  ;;
 
13404
  esac
 
13405
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
13406
 
 
13407
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
13408
$as_echo "$ld_shlibs_CXX" >&6; }
 
13409
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
13410
 
 
13411
#
 
13412
# Do we need to explicitly link libc?
 
13413
#
 
13414
case "x$archive_cmds_need_lc_CXX" in
 
13415
x|xyes)
 
13416
  # Assume -lc should be added
 
13417
  archive_cmds_need_lc_CXX=yes
 
13418
 
 
13419
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
13420
    case $archive_cmds_CXX in
 
13421
    *'~'*)
 
13422
      # FIXME: we may have to deal with multi-command sequences.
 
13423
      ;;
 
13424
    '$CC '*)
 
13425
      # Test whether the compiler implicitly links with -lc since on some
 
13426
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
13427
      # to ld, don't add -lc before -lgcc.
 
13428
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
13429
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
13430
      $rm conftest*
 
13431
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13432
 
 
13433
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
13434
  (eval $ac_compile) 2>&5
 
13435
  ac_status=$?
 
13436
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13437
  (exit $ac_status); } 2>conftest.err; then
 
13438
        soname=conftest
 
13439
        lib=conftest
 
13440
        libobjs=conftest.$ac_objext
 
13441
        deplibs=
 
13442
        wl=$lt_prog_compiler_wl_CXX
 
13443
        pic_flag=$lt_prog_compiler_pic_CXX
 
13444
        compiler_flags=-v
 
13445
        linker_flags=-v
 
13446
        verstring=
 
13447
        output_objdir=.
 
13448
        libname=conftest
 
13449
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
13450
        allow_undefined_flag_CXX=
 
13451
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
13452
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
13453
  ac_status=$?
 
13454
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13455
  (exit $ac_status); }
 
13456
        then
 
13457
          archive_cmds_need_lc_CXX=no
 
13458
        else
 
13459
          archive_cmds_need_lc_CXX=yes
 
13460
        fi
 
13461
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
13462
      else
 
13463
        cat conftest.err 1>&5
 
13464
      fi
 
13465
      $rm conftest*
 
13466
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
13467
$as_echo "$archive_cmds_need_lc_CXX" >&6; }
 
13468
      ;;
 
13469
    esac
 
13470
  fi
 
13471
  ;;
 
13472
esac
 
13473
 
 
13474
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
13475
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
13476
library_names_spec=
 
13477
libname_spec='lib$name'
 
13478
soname_spec=
 
13479
shrext_cmds=".so"
 
13480
postinstall_cmds=
 
13481
postuninstall_cmds=
 
13482
finish_cmds=
 
13483
finish_eval=
 
13484
shlibpath_var=
 
13485
shlibpath_overrides_runpath=unknown
 
13486
version_type=none
 
13487
dynamic_linker="$host_os ld.so"
 
13488
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
13489
 
 
13490
need_lib_prefix=unknown
 
13491
hardcode_into_libs=no
 
13492
 
 
13493
# when you set need_version to no, make sure it does not cause -set_version
 
13494
# flags to be left without arguments
 
13495
need_version=unknown
 
13496
 
 
13497
case $host_os in
 
13498
aix3*)
 
13499
  version_type=linux
 
13500
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
13501
  shlibpath_var=LIBPATH
 
13502
 
 
13503
  # AIX 3 has no versioning support, so we append a major version to the name.
 
13504
  soname_spec='${libname}${release}${shared_ext}$major'
 
13505
  ;;
 
13506
 
 
13507
aix[4-9]*)
 
13508
  version_type=linux
 
13509
  need_lib_prefix=no
 
13510
  need_version=no
 
13511
  hardcode_into_libs=yes
 
13512
  if test "$host_cpu" = ia64; then
 
13513
    # AIX 5 supports IA64
 
13514
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
13515
    shlibpath_var=LD_LIBRARY_PATH
 
13516
  else
 
13517
    # With GCC up to 2.95.x, collect2 would create an import file
 
13518
    # for dependence libraries.  The import file would start with
 
13519
    # the line `#! .'.  This would cause the generated library to
 
13520
    # depend on `.', always an invalid library.  This was fixed in
 
13521
    # development snapshots of GCC prior to 3.0.
 
13522
    case $host_os in
 
13523
      aix4 | aix4.[01] | aix4.[01].*)
 
13524
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
13525
           echo ' yes '
 
13526
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
13527
        :
 
13528
      else
 
13529
        can_build_shared=no
 
13530
      fi
 
13531
      ;;
 
13532
    esac
 
13533
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
13534
    # soname into executable. Probably we can add versioning support to
 
13535
    # collect2, so additional links can be useful in future.
 
13536
    if test "$aix_use_runtimelinking" = yes; then
 
13537
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
13538
      # instead of lib<name>.a to let people know that these are not
 
13539
      # typical AIX shared libraries.
 
13540
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13541
    else
 
13542
      # We preserve .a as extension for shared libraries through AIX4.2
 
13543
      # and later when we are not doing run time linking.
 
13544
      library_names_spec='${libname}${release}.a $libname.a'
 
13545
      soname_spec='${libname}${release}${shared_ext}$major'
 
13546
    fi
 
13547
    shlibpath_var=LIBPATH
 
13548
  fi
 
13549
  ;;
 
13550
 
 
13551
amigaos*)
 
13552
  library_names_spec='$libname.ixlibrary $libname.a'
 
13553
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
13554
  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'
 
13555
  ;;
 
13556
 
 
13557
beos*)
 
13558
  library_names_spec='${libname}${shared_ext}'
 
13559
  dynamic_linker="$host_os ld.so"
 
13560
  shlibpath_var=LIBRARY_PATH
 
13561
  ;;
 
13562
 
 
13563
bsdi[45]*)
 
13564
  version_type=linux
 
13565
  need_version=no
 
13566
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13567
  soname_spec='${libname}${release}${shared_ext}$major'
 
13568
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
13569
  shlibpath_var=LD_LIBRARY_PATH
 
13570
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
13571
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
13572
  # the default ld.so.conf also contains /usr/contrib/lib and
 
13573
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
13574
  # libtool to hard-code these into programs
 
13575
  ;;
 
13576
 
 
13577
cygwin* | mingw* | pw32*)
 
13578
  version_type=windows
 
13579
  shrext_cmds=".dll"
 
13580
  need_version=no
 
13581
  need_lib_prefix=no
 
13582
 
 
13583
  case $GCC,$host_os in
 
13584
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
13585
    library_names_spec='$libname.dll.a'
 
13586
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
13587
    postinstall_cmds='base_file=`basename \${file}`~
 
13588
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
13589
      dldir=$destdir/`dirname \$dlpath`~
 
13590
      test -d \$dldir || mkdir -p \$dldir~
 
13591
      $install_prog $dir/$dlname \$dldir/$dlname~
 
13592
      chmod a+x \$dldir/$dlname'
 
13593
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
13594
      dlpath=$dir/\$dldll~
 
13595
       $rm \$dlpath'
 
13596
    shlibpath_overrides_runpath=yes
 
13597
 
 
13598
    case $host_os in
 
13599
    cygwin*)
 
13600
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
13601
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13602
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
13603
      ;;
 
13604
    mingw*)
 
13605
      # MinGW DLLs use traditional 'lib' prefix
 
13606
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13607
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
13608
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
13609
        # It is most probably a Windows format PATH printed by
 
13610
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
13611
        # path with ; separators, and with drive letters. We can handle the
 
13612
        # drive letters (cygwin fileutils understands them), so leave them,
 
13613
        # especially as we might pass files found there to a mingw objdump,
 
13614
        # which wouldn't understand a cygwinified path. Ahh.
 
13615
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
13616
      else
 
13617
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
13618
      fi
 
13619
      ;;
 
13620
    pw32*)
 
13621
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
13622
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13623
      ;;
 
13624
    esac
 
13625
    ;;
 
13626
 
 
13627
  *)
 
13628
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
13629
    ;;
 
13630
  esac
 
13631
  dynamic_linker='Win32 ld.exe'
 
13632
  # FIXME: first we should search . and the directory the executable is in
 
13633
  shlibpath_var=PATH
 
13634
  ;;
 
13635
 
 
13636
darwin* | rhapsody*)
 
13637
  dynamic_linker="$host_os dyld"
 
13638
  version_type=darwin
 
13639
  need_lib_prefix=no
 
13640
  need_version=no
 
13641
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
13642
  soname_spec='${libname}${release}${major}$shared_ext'
 
13643
  shlibpath_overrides_runpath=yes
 
13644
  shlibpath_var=DYLD_LIBRARY_PATH
 
13645
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
13646
 
 
13647
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
13648
  ;;
 
13649
 
 
13650
dgux*)
 
13651
  version_type=linux
 
13652
  need_lib_prefix=no
 
13653
  need_version=no
 
13654
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
13655
  soname_spec='${libname}${release}${shared_ext}$major'
 
13656
  shlibpath_var=LD_LIBRARY_PATH
 
13657
  ;;
 
13658
 
 
13659
freebsd1*)
 
13660
  dynamic_linker=no
 
13661
  ;;
 
13662
 
 
13663
freebsd* | dragonfly*)
 
13664
  # DragonFly does not have aout.  When/if they implement a new
 
13665
  # versioning mechanism, adjust this.
 
13666
  if test -x /usr/bin/objformat; then
 
13667
    objformat=`/usr/bin/objformat`
 
13668
  else
 
13669
    case $host_os in
 
13670
    freebsd[123]*) objformat=aout ;;
 
13671
    *) objformat=elf ;;
 
13672
    esac
 
13673
  fi
 
13674
  version_type=freebsd-$objformat
 
13675
  case $version_type in
 
13676
    freebsd-elf*)
 
13677
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13678
      need_version=no
 
13679
      need_lib_prefix=no
 
13680
      ;;
 
13681
    freebsd-*)
 
13682
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
13683
      need_version=yes
 
13684
      ;;
 
13685
  esac
 
13686
  shlibpath_var=LD_LIBRARY_PATH
 
13687
  case $host_os in
 
13688
  freebsd2*)
 
13689
    shlibpath_overrides_runpath=yes
 
13690
    ;;
 
13691
  freebsd3.[01]* | freebsdelf3.[01]*)
 
13692
    shlibpath_overrides_runpath=yes
 
13693
    hardcode_into_libs=yes
 
13694
    ;;
 
13695
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
13696
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
13697
    shlibpath_overrides_runpath=no
 
13698
    hardcode_into_libs=yes
 
13699
    ;;
 
13700
  *) # from 4.6 on, and DragonFly
 
13701
    shlibpath_overrides_runpath=yes
 
13702
    hardcode_into_libs=yes
 
13703
    ;;
 
13704
  esac
 
13705
  ;;
 
13706
 
 
13707
gnu*)
 
13708
  version_type=linux
 
13709
  need_lib_prefix=no
 
13710
  need_version=no
 
13711
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
13712
  soname_spec='${libname}${release}${shared_ext}$major'
 
13713
  shlibpath_var=LD_LIBRARY_PATH
 
13714
  hardcode_into_libs=yes
 
13715
  ;;
 
13716
 
 
13717
hpux9* | hpux10* | hpux11*)
 
13718
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
13719
  # link against other versions.
 
13720
  version_type=sunos
 
13721
  need_lib_prefix=no
 
13722
  need_version=no
 
13723
  case $host_cpu in
 
13724
  ia64*)
 
13725
    shrext_cmds='.so'
 
13726
    hardcode_into_libs=yes
 
13727
    dynamic_linker="$host_os dld.so"
 
13728
    shlibpath_var=LD_LIBRARY_PATH
 
13729
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
13730
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13731
    soname_spec='${libname}${release}${shared_ext}$major'
 
13732
    if test "X$HPUX_IA64_MODE" = X32; then
 
13733
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
13734
    else
 
13735
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
13736
    fi
 
13737
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
13738
    ;;
 
13739
   hppa*64*)
 
13740
     shrext_cmds='.sl'
 
13741
     hardcode_into_libs=yes
 
13742
     dynamic_linker="$host_os dld.sl"
 
13743
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
13744
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
13745
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13746
     soname_spec='${libname}${release}${shared_ext}$major'
 
13747
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
13748
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
13749
     ;;
 
13750
   *)
 
13751
    shrext_cmds='.sl'
 
13752
    dynamic_linker="$host_os dld.sl"
 
13753
    shlibpath_var=SHLIB_PATH
 
13754
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
13755
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13756
    soname_spec='${libname}${release}${shared_ext}$major'
 
13757
    ;;
 
13758
  esac
 
13759
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
13760
  postinstall_cmds='chmod 555 $lib'
 
13761
  ;;
 
13762
 
 
13763
interix[3-9]*)
 
13764
  version_type=linux
 
13765
  need_lib_prefix=no
 
13766
  need_version=no
 
13767
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13768
  soname_spec='${libname}${release}${shared_ext}$major'
 
13769
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
13770
  shlibpath_var=LD_LIBRARY_PATH
 
13771
  shlibpath_overrides_runpath=no
 
13772
  hardcode_into_libs=yes
 
13773
  ;;
 
13774
 
 
13775
irix5* | irix6* | nonstopux*)
 
13776
  case $host_os in
 
13777
    nonstopux*) version_type=nonstopux ;;
 
13778
    *)
 
13779
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
13780
                version_type=linux
 
13781
        else
 
13782
                version_type=irix
 
13783
        fi ;;
 
13784
  esac
 
13785
  need_lib_prefix=no
 
13786
  need_version=no
 
13787
  soname_spec='${libname}${release}${shared_ext}$major'
 
13788
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13789
  case $host_os in
 
13790
  irix5* | nonstopux*)
 
13791
    libsuff= shlibsuff=
 
13792
    ;;
 
13793
  *)
 
13794
    case $LD in # libtool.m4 will add one of these switches to LD
 
13795
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
13796
      libsuff= shlibsuff= libmagic=32-bit;;
 
13797
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
13798
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
13799
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
13800
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
13801
    *) libsuff= shlibsuff= libmagic=never-match;;
 
13802
    esac
 
13803
    ;;
 
13804
  esac
 
13805
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
13806
  shlibpath_overrides_runpath=no
 
13807
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
13808
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
13809
  hardcode_into_libs=yes
 
13810
  ;;
 
13811
 
 
13812
# No shared lib support for Linux oldld, aout, or coff.
 
13813
linux*oldld* | linux*aout* | linux*coff*)
 
13814
  dynamic_linker=no
 
13815
  ;;
 
13816
 
 
13817
# This must be Linux ELF.
 
13818
linux* | k*bsd*-gnu)
 
13819
  version_type=linux
 
13820
  need_lib_prefix=no
 
13821
  need_version=no
 
13822
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13823
  soname_spec='${libname}${release}${shared_ext}$major'
 
13824
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
13825
  shlibpath_var=LD_LIBRARY_PATH
 
13826
  shlibpath_overrides_runpath=no
 
13827
  # This implies no fast_install, which is unacceptable.
 
13828
  # Some rework will be needed to allow for fast_install
 
13829
  # before this can be enabled.
 
13830
  hardcode_into_libs=yes
 
13831
 
 
13832
  # find out which ABI we are using
 
13833
  libsuff=
 
13834
  case "$host_cpu" in
 
13835
  x86_64*|s390x*|powerpc64*)
 
13836
    echo '#line 13836 "configure"' > conftest.$ac_ext
 
13837
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
13838
  (eval $ac_compile) 2>&5
 
13839
  ac_status=$?
 
13840
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13841
  (exit $ac_status); }; then
 
13842
      case `/usr/bin/file conftest.$ac_objext` in
 
13843
      *64-bit*)
 
13844
        libsuff=64
 
13845
        ;;
 
13846
      esac
 
13847
    fi
 
13848
    rm -rf conftest*
 
13849
    ;;
 
13850
  esac
 
13851
 
 
13852
  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
 
13853
 
 
13854
  # Append ld.so.conf contents to the search path
 
13855
  if test -f /etc/ld.so.conf; then
 
13856
    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' ' '`
 
13857
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
 
13858
  fi
 
13859
 
 
13860
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
13861
  # powerpc, because MkLinux only supported shared libraries with the
 
13862
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
13863
  # most powerpc-linux boxes support dynamic linking these days and
 
13864
  # people can always --disable-shared, the test was removed, and we
 
13865
  # assume the GNU/Linux dynamic linker is in use.
 
13866
  dynamic_linker='GNU/Linux ld.so'
 
13867
  ;;
 
13868
 
 
13869
netbsd*)
 
13870
  version_type=sunos
 
13871
  need_lib_prefix=no
 
13872
  need_version=no
 
13873
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
13874
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13875
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
13876
    dynamic_linker='NetBSD (a.out) ld.so'
 
13877
  else
 
13878
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13879
    soname_spec='${libname}${release}${shared_ext}$major'
 
13880
    dynamic_linker='NetBSD ld.elf_so'
 
13881
  fi
 
13882
  shlibpath_var=LD_LIBRARY_PATH
 
13883
  shlibpath_overrides_runpath=yes
 
13884
  hardcode_into_libs=yes
 
13885
  ;;
 
13886
 
 
13887
newsos6)
 
13888
  version_type=linux
 
13889
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13890
  shlibpath_var=LD_LIBRARY_PATH
 
13891
  shlibpath_overrides_runpath=yes
 
13892
  ;;
 
13893
 
 
13894
nto-qnx*)
 
13895
  version_type=linux
 
13896
  need_lib_prefix=no
 
13897
  need_version=no
 
13898
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13899
  soname_spec='${libname}${release}${shared_ext}$major'
 
13900
  shlibpath_var=LD_LIBRARY_PATH
 
13901
  shlibpath_overrides_runpath=yes
 
13902
  ;;
 
13903
 
 
13904
openbsd*)
 
13905
  version_type=sunos
 
13906
  sys_lib_dlsearch_path_spec="/usr/lib"
 
13907
  need_lib_prefix=no
 
13908
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
13909
  case $host_os in
 
13910
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
13911
    *)                         need_version=no  ;;
 
13912
  esac
 
13913
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13914
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
13915
  shlibpath_var=LD_LIBRARY_PATH
 
13916
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
13917
    case $host_os in
 
13918
      openbsd2.[89] | openbsd2.[89].*)
 
13919
        shlibpath_overrides_runpath=no
 
13920
        ;;
 
13921
      *)
 
13922
        shlibpath_overrides_runpath=yes
 
13923
        ;;
 
13924
      esac
 
13925
  else
 
13926
    shlibpath_overrides_runpath=yes
 
13927
  fi
 
13928
  ;;
 
13929
 
 
13930
os2*)
 
13931
  libname_spec='$name'
 
13932
  shrext_cmds=".dll"
 
13933
  need_lib_prefix=no
 
13934
  library_names_spec='$libname${shared_ext} $libname.a'
 
13935
  dynamic_linker='OS/2 ld.exe'
 
13936
  shlibpath_var=LIBPATH
 
13937
  ;;
 
13938
 
 
13939
osf3* | osf4* | osf5*)
 
13940
  version_type=osf
 
13941
  need_lib_prefix=no
 
13942
  need_version=no
 
13943
  soname_spec='${libname}${release}${shared_ext}$major'
 
13944
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13945
  shlibpath_var=LD_LIBRARY_PATH
 
13946
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
13947
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
13948
  ;;
 
13949
 
 
13950
rdos*)
 
13951
  dynamic_linker=no
 
13952
  ;;
 
13953
 
 
13954
solaris*)
 
13955
  version_type=linux
 
13956
  need_lib_prefix=no
 
13957
  need_version=no
 
13958
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13959
  soname_spec='${libname}${release}${shared_ext}$major'
 
13960
  shlibpath_var=LD_LIBRARY_PATH
 
13961
  shlibpath_overrides_runpath=yes
 
13962
  hardcode_into_libs=yes
 
13963
  # ldd complains unless libraries are executable
 
13964
  postinstall_cmds='chmod +x $lib'
 
13965
  ;;
 
13966
 
 
13967
sunos4*)
 
13968
  version_type=sunos
 
13969
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13970
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
13971
  shlibpath_var=LD_LIBRARY_PATH
 
13972
  shlibpath_overrides_runpath=yes
 
13973
  if test "$with_gnu_ld" = yes; then
 
13974
    need_lib_prefix=no
 
13975
  fi
 
13976
  need_version=yes
 
13977
  ;;
 
13978
 
 
13979
sysv4 | sysv4.3*)
 
13980
  version_type=linux
 
13981
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13982
  soname_spec='${libname}${release}${shared_ext}$major'
 
13983
  shlibpath_var=LD_LIBRARY_PATH
 
13984
  case $host_vendor in
 
13985
    sni)
 
13986
      shlibpath_overrides_runpath=no
 
13987
      need_lib_prefix=no
 
13988
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
13989
      runpath_var=LD_RUN_PATH
 
13990
      ;;
 
13991
    siemens)
 
13992
      need_lib_prefix=no
 
13993
      ;;
 
13994
    motorola)
 
13995
      need_lib_prefix=no
 
13996
      need_version=no
 
13997
      shlibpath_overrides_runpath=no
 
13998
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
13999
      ;;
 
14000
  esac
 
14001
  ;;
 
14002
 
 
14003
sysv4*MP*)
 
14004
  if test -d /usr/nec ;then
 
14005
    version_type=linux
 
14006
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
14007
    soname_spec='$libname${shared_ext}.$major'
 
14008
    shlibpath_var=LD_LIBRARY_PATH
 
14009
  fi
 
14010
  ;;
 
14011
 
 
14012
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
14013
  version_type=freebsd-elf
 
14014
  need_lib_prefix=no
 
14015
  need_version=no
 
14016
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
14017
  soname_spec='${libname}${release}${shared_ext}$major'
 
14018
  shlibpath_var=LD_LIBRARY_PATH
 
14019
  hardcode_into_libs=yes
 
14020
  if test "$with_gnu_ld" = yes; then
 
14021
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
14022
    shlibpath_overrides_runpath=no
 
14023
  else
 
14024
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
14025
    shlibpath_overrides_runpath=yes
 
14026
    case $host_os in
 
14027
      sco3.2v5*)
 
14028
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
14029
        ;;
 
14030
    esac
 
14031
  fi
 
14032
  sys_lib_dlsearch_path_spec='/usr/lib'
 
14033
  ;;
 
14034
 
 
14035
uts4*)
 
14036
  version_type=linux
 
14037
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14038
  soname_spec='${libname}${release}${shared_ext}$major'
 
14039
  shlibpath_var=LD_LIBRARY_PATH
 
14040
  ;;
 
14041
 
 
14042
*)
 
14043
  dynamic_linker=no
 
14044
  ;;
 
14045
esac
 
14046
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
14047
$as_echo "$dynamic_linker" >&6; }
 
14048
test "$dynamic_linker" = no && can_build_shared=no
 
14049
 
 
14050
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
14051
  $as_echo_n "(cached) " >&6
 
14052
else
 
14053
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
14054
fi
 
14055
 
 
14056
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
14057
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
14058
  $as_echo_n "(cached) " >&6
 
14059
else
 
14060
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
14061
fi
 
14062
 
 
14063
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
14064
 
 
14065
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
14066
if test "$GCC" = yes; then
 
14067
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
14068
fi
 
14069
 
 
14070
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
14071
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
14072
hardcode_action_CXX=
 
14073
if test -n "$hardcode_libdir_flag_spec_CXX" || \
 
14074
   test -n "$runpath_var_CXX" || \
 
14075
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
 
14076
 
 
14077
  # We can hardcode non-existant directories.
 
14078
  if test "$hardcode_direct_CXX" != no &&
 
14079
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
14080
     # have to relink, otherwise we might link with an installed library
 
14081
     # when we should be linking with a yet-to-be-installed one
 
14082
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
14083
     test "$hardcode_minus_L_CXX" != no; then
 
14084
    # Linking always hardcodes the temporary library directory.
 
14085
    hardcode_action_CXX=relink
 
14086
  else
 
14087
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
14088
    hardcode_action_CXX=immediate
 
14089
  fi
 
14090
else
 
14091
  # We cannot hardcode anything, or else we can only hardcode existing
 
14092
  # directories.
 
14093
  hardcode_action_CXX=unsupported
 
14094
fi
 
14095
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
14096
$as_echo "$hardcode_action_CXX" >&6; }
 
14097
 
 
14098
if test "$hardcode_action_CXX" = relink; then
 
14099
  # Fast installation is not supported
 
14100
  enable_fast_install=no
 
14101
elif test "$shlibpath_overrides_runpath" = yes ||
 
14102
     test "$enable_shared" = no; then
 
14103
  # Fast installation is not necessary
 
14104
  enable_fast_install=needless
 
14105
fi
 
14106
 
 
14107
 
 
14108
# The else clause should only fire when bootstrapping the
 
14109
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
14110
# with your package, and you will get complaints that there are
 
14111
# no rules to generate ltmain.sh.
 
14112
if test -f "$ltmain"; then
 
14113
  # See if we are running on zsh, and set the options which allow our commands through
 
14114
  # without removal of \ escapes.
 
14115
  if test -n "${ZSH_VERSION+set}" ; then
 
14116
    setopt NO_GLOB_SUBST
 
14117
  fi
 
14118
  # Now quote all the things that may contain metacharacters while being
 
14119
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
14120
  # variables and quote the copies for generation of the libtool script.
 
14121
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
14122
    SED SHELL STRIP \
 
14123
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
14124
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
14125
    deplibs_check_method reload_flag reload_cmds need_locks \
 
14126
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
14127
    lt_cv_sys_global_symbol_to_c_name_address \
 
14128
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
14129
    old_postinstall_cmds old_postuninstall_cmds \
 
14130
    compiler_CXX \
 
14131
    CC_CXX \
 
14132
    LD_CXX \
 
14133
    lt_prog_compiler_wl_CXX \
 
14134
    lt_prog_compiler_pic_CXX \
 
14135
    lt_prog_compiler_static_CXX \
 
14136
    lt_prog_compiler_no_builtin_flag_CXX \
 
14137
    export_dynamic_flag_spec_CXX \
 
14138
    thread_safe_flag_spec_CXX \
 
14139
    whole_archive_flag_spec_CXX \
 
14140
    enable_shared_with_static_runtimes_CXX \
 
14141
    old_archive_cmds_CXX \
 
14142
    old_archive_from_new_cmds_CXX \
 
14143
    predep_objects_CXX \
 
14144
    postdep_objects_CXX \
 
14145
    predeps_CXX \
 
14146
    postdeps_CXX \
 
14147
    compiler_lib_search_path_CXX \
 
14148
    compiler_lib_search_dirs_CXX \
 
14149
    archive_cmds_CXX \
 
14150
    archive_expsym_cmds_CXX \
 
14151
    postinstall_cmds_CXX \
 
14152
    postuninstall_cmds_CXX \
 
14153
    old_archive_from_expsyms_cmds_CXX \
 
14154
    allow_undefined_flag_CXX \
 
14155
    no_undefined_flag_CXX \
 
14156
    export_symbols_cmds_CXX \
 
14157
    hardcode_libdir_flag_spec_CXX \
 
14158
    hardcode_libdir_flag_spec_ld_CXX \
 
14159
    hardcode_libdir_separator_CXX \
 
14160
    hardcode_automatic_CXX \
 
14161
    module_cmds_CXX \
 
14162
    module_expsym_cmds_CXX \
 
14163
    lt_cv_prog_compiler_c_o_CXX \
 
14164
    fix_srcfile_path_CXX \
 
14165
    exclude_expsyms_CXX \
 
14166
    include_expsyms_CXX; do
 
14167
 
 
14168
    case $var in
 
14169
    old_archive_cmds_CXX | \
 
14170
    old_archive_from_new_cmds_CXX | \
 
14171
    archive_cmds_CXX | \
 
14172
    archive_expsym_cmds_CXX | \
 
14173
    module_cmds_CXX | \
 
14174
    module_expsym_cmds_CXX | \
 
14175
    old_archive_from_expsyms_cmds_CXX | \
 
14176
    export_symbols_cmds_CXX | \
 
14177
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
14178
    postinstall_cmds | postuninstall_cmds | \
 
14179
    old_postinstall_cmds | old_postuninstall_cmds | \
 
14180
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
14181
      # Double-quote double-evaled strings.
 
14182
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
14183
      ;;
 
14184
    *)
 
14185
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
14186
      ;;
 
14187
    esac
 
14188
  done
 
14189
 
 
14190
  case $lt_echo in
 
14191
  *'\$0 --fallback-echo"')
 
14192
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
14193
    ;;
 
14194
  esac
 
14195
 
 
14196
cfgfile="$ofile"
 
14197
 
 
14198
  cat <<__EOF__ >> "$cfgfile"
 
14199
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
14200
 
 
14201
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
14202
 
 
14203
# Shell to use when invoking shell scripts.
 
14204
SHELL=$lt_SHELL
 
14205
 
 
14206
# Whether or not to build shared libraries.
 
14207
build_libtool_libs=$enable_shared
 
14208
 
 
14209
# Whether or not to build static libraries.
 
14210
build_old_libs=$enable_static
 
14211
 
 
14212
# Whether or not to add -lc for building shared libraries.
 
14213
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
14214
 
 
14215
# Whether or not to disallow shared libs when runtime libs are static
 
14216
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
14217
 
 
14218
# Whether or not to optimize for fast installation.
 
14219
fast_install=$enable_fast_install
 
14220
 
 
14221
# The host system.
 
14222
host_alias=$host_alias
 
14223
host=$host
 
14224
host_os=$host_os
 
14225
 
 
14226
# The build system.
 
14227
build_alias=$build_alias
 
14228
build=$build
 
14229
build_os=$build_os
 
14230
 
 
14231
# An echo program that does not interpret backslashes.
 
14232
echo=$lt_echo
 
14233
 
 
14234
# The archiver.
 
14235
AR=$lt_AR
 
14236
AR_FLAGS=$lt_AR_FLAGS
 
14237
 
 
14238
# A C compiler.
 
14239
LTCC=$lt_LTCC
 
14240
 
 
14241
# LTCC compiler flags.
 
14242
LTCFLAGS=$lt_LTCFLAGS
 
14243
 
 
14244
# A language-specific compiler.
 
14245
CC=$lt_compiler_CXX
 
14246
 
 
14247
# Is the compiler the GNU C compiler?
 
14248
with_gcc=$GCC_CXX
 
14249
 
 
14250
# An ERE matcher.
 
14251
EGREP=$lt_EGREP
 
14252
 
 
14253
# The linker used to build libraries.
 
14254
LD=$lt_LD_CXX
 
14255
 
 
14256
# Whether we need hard or soft links.
 
14257
LN_S=$lt_LN_S
 
14258
 
 
14259
# A BSD-compatible nm program.
 
14260
NM=$lt_NM
 
14261
 
 
14262
# A symbol stripping program
 
14263
STRIP=$lt_STRIP
 
14264
 
 
14265
# Used to examine libraries when file_magic_cmd begins "file"
 
14266
MAGIC_CMD=$MAGIC_CMD
 
14267
 
 
14268
# Used on cygwin: DLL creation program.
 
14269
DLLTOOL="$DLLTOOL"
 
14270
 
 
14271
# Used on cygwin: object dumper.
 
14272
OBJDUMP="$OBJDUMP"
 
14273
 
 
14274
# Used on cygwin: assembler.
 
14275
AS="$AS"
 
14276
 
 
14277
# The name of the directory that contains temporary libtool files.
 
14278
objdir=$objdir
 
14279
 
 
14280
# How to create reloadable object files.
 
14281
reload_flag=$lt_reload_flag
 
14282
reload_cmds=$lt_reload_cmds
 
14283
 
 
14284
# How to pass a linker flag through the compiler.
 
14285
wl=$lt_lt_prog_compiler_wl_CXX
 
14286
 
 
14287
# Object file suffix (normally "o").
 
14288
objext="$ac_objext"
 
14289
 
 
14290
# Old archive suffix (normally "a").
 
14291
libext="$libext"
 
14292
 
 
14293
# Shared library suffix (normally ".so").
 
14294
shrext_cmds='$shrext_cmds'
 
14295
 
 
14296
# Executable file suffix (normally "").
 
14297
exeext="$exeext"
 
14298
 
 
14299
# Additional compiler flags for building library objects.
 
14300
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
14301
pic_mode=$pic_mode
 
14302
 
 
14303
# What is the maximum length of a command?
 
14304
max_cmd_len=$lt_cv_sys_max_cmd_len
 
14305
 
 
14306
# Does compiler simultaneously support -c and -o options?
 
14307
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
14308
 
 
14309
# Must we lock files when doing compilation?
 
14310
need_locks=$lt_need_locks
 
14311
 
 
14312
# Do we need the lib prefix for modules?
 
14313
need_lib_prefix=$need_lib_prefix
 
14314
 
 
14315
# Do we need a version for libraries?
 
14316
need_version=$need_version
 
14317
 
 
14318
# Whether dlopen is supported.
 
14319
dlopen_support=$enable_dlopen
 
14320
 
 
14321
# Whether dlopen of programs is supported.
 
14322
dlopen_self=$enable_dlopen_self
 
14323
 
 
14324
# Whether dlopen of statically linked programs is supported.
 
14325
dlopen_self_static=$enable_dlopen_self_static
 
14326
 
 
14327
# Compiler flag to prevent dynamic linking.
 
14328
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
14329
 
 
14330
# Compiler flag to turn off builtin functions.
 
14331
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
14332
 
 
14333
# Compiler flag to allow reflexive dlopens.
 
14334
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
14335
 
 
14336
# Compiler flag to generate shared objects directly from archives.
 
14337
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
14338
 
 
14339
# Compiler flag to generate thread-safe objects.
 
14340
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
 
14341
 
 
14342
# Library versioning type.
 
14343
version_type=$version_type
 
14344
 
 
14345
# Format of library name prefix.
 
14346
libname_spec=$lt_libname_spec
 
14347
 
 
14348
# List of archive names.  First name is the real one, the rest are links.
 
14349
# The last name is the one that the linker finds with -lNAME.
 
14350
library_names_spec=$lt_library_names_spec
 
14351
 
 
14352
# The coded name of the library, if different from the real name.
 
14353
soname_spec=$lt_soname_spec
 
14354
 
 
14355
# Commands used to build and install an old-style archive.
 
14356
RANLIB=$lt_RANLIB
 
14357
old_archive_cmds=$lt_old_archive_cmds_CXX
 
14358
old_postinstall_cmds=$lt_old_postinstall_cmds
 
14359
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
14360
 
 
14361
# Create an old-style archive from a shared archive.
 
14362
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
14363
 
 
14364
# Create a temporary old-style archive to link instead of a shared archive.
 
14365
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
14366
 
 
14367
# Commands used to build and install a shared archive.
 
14368
archive_cmds=$lt_archive_cmds_CXX
 
14369
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
14370
postinstall_cmds=$lt_postinstall_cmds
 
14371
postuninstall_cmds=$lt_postuninstall_cmds
 
14372
 
 
14373
# Commands used to build a loadable module (assumed same as above if empty)
 
14374
module_cmds=$lt_module_cmds_CXX
 
14375
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
14376
 
 
14377
# Commands to strip libraries.
 
14378
old_striplib=$lt_old_striplib
 
14379
striplib=$lt_striplib
 
14380
 
 
14381
# Dependencies to place before the objects being linked to create a
 
14382
# shared library.
 
14383
predep_objects=$lt_predep_objects_CXX
 
14384
 
 
14385
# Dependencies to place after the objects being linked to create a
 
14386
# shared library.
 
14387
postdep_objects=$lt_postdep_objects_CXX
 
14388
 
 
14389
# Dependencies to place before the objects being linked to create a
 
14390
# shared library.
 
14391
predeps=$lt_predeps_CXX
 
14392
 
 
14393
# Dependencies to place after the objects being linked to create a
 
14394
# shared library.
 
14395
postdeps=$lt_postdeps_CXX
 
14396
 
 
14397
# The directories searched by this compiler when creating a shared
 
14398
# library
 
14399
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
 
14400
 
 
14401
# The library search path used internally by the compiler when linking
 
14402
# a shared library.
 
14403
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
14404
 
 
14405
# Method to check whether dependent libraries are shared objects.
 
14406
deplibs_check_method=$lt_deplibs_check_method
 
14407
 
 
14408
# Command to use when deplibs_check_method == file_magic.
 
14409
file_magic_cmd=$lt_file_magic_cmd
 
14410
 
 
14411
# Flag that allows shared libraries with undefined symbols to be built.
 
14412
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
14413
 
 
14414
# Flag that forces no undefined symbols.
 
14415
no_undefined_flag=$lt_no_undefined_flag_CXX
 
14416
 
 
14417
# Commands used to finish a libtool library installation in a directory.
 
14418
finish_cmds=$lt_finish_cmds
 
14419
 
 
14420
# Same as above, but a single script fragment to be evaled but not shown.
 
14421
finish_eval=$lt_finish_eval
 
14422
 
 
14423
# Take the output of nm and produce a listing of raw symbols and C names.
 
14424
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
14425
 
 
14426
# Transform the output of nm in a proper C declaration
 
14427
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
14428
 
 
14429
# Transform the output of nm in a C name address pair
 
14430
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
14431
 
 
14432
# This is the shared library runtime path variable.
 
14433
runpath_var=$runpath_var
 
14434
 
 
14435
# This is the shared library path variable.
 
14436
shlibpath_var=$shlibpath_var
 
14437
 
 
14438
# Is shlibpath searched before the hard-coded library search path?
 
14439
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
14440
 
 
14441
# How to hardcode a shared library path into an executable.
 
14442
hardcode_action=$hardcode_action_CXX
 
14443
 
 
14444
# Whether we should hardcode library paths into libraries.
 
14445
hardcode_into_libs=$hardcode_into_libs
 
14446
 
 
14447
# Flag to hardcode \$libdir into a binary during linking.
 
14448
# This must work even if \$libdir does not exist.
 
14449
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
14450
 
 
14451
# If ld is used when linking, flag to hardcode \$libdir into
 
14452
# a binary during linking. This must work even if \$libdir does
 
14453
# not exist.
 
14454
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
14455
 
 
14456
# Whether we need a single -rpath flag with a separated argument.
 
14457
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
14458
 
 
14459
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
14460
# resulting binary.
 
14461
hardcode_direct=$hardcode_direct_CXX
 
14462
 
 
14463
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
14464
# resulting binary.
 
14465
hardcode_minus_L=$hardcode_minus_L_CXX
 
14466
 
 
14467
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
14468
# the resulting binary.
 
14469
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
14470
 
 
14471
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
14472
# and all subsequent libraries and executables linked against it.
 
14473
hardcode_automatic=$hardcode_automatic_CXX
 
14474
 
 
14475
# Variables whose values should be saved in libtool wrapper scripts and
 
14476
# restored at relink time.
 
14477
variables_saved_for_relink="$variables_saved_for_relink"
 
14478
 
 
14479
# Whether libtool must link a program against all its dependency libraries.
 
14480
link_all_deplibs=$link_all_deplibs_CXX
 
14481
 
 
14482
# Compile-time system search path for libraries
 
14483
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
14484
 
 
14485
# Run-time system search path for libraries
 
14486
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
14487
 
 
14488
# Fix the shell variable \$srcfile for the compiler.
 
14489
fix_srcfile_path=$lt_fix_srcfile_path
 
14490
 
 
14491
# Set to yes if exported symbols are required.
 
14492
always_export_symbols=$always_export_symbols_CXX
 
14493
 
 
14494
# The commands to list exported symbols.
 
14495
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
14496
 
 
14497
# The commands to extract the exported symbol list from a shared archive.
 
14498
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
14499
 
 
14500
# Symbols that should not be listed in the preloaded symbols.
 
14501
exclude_expsyms=$lt_exclude_expsyms_CXX
 
14502
 
 
14503
# Symbols that must always be exported.
 
14504
include_expsyms=$lt_include_expsyms_CXX
 
14505
 
 
14506
# ### END LIBTOOL TAG CONFIG: $tagname
 
14507
 
 
14508
__EOF__
 
14509
 
 
14510
 
 
14511
else
 
14512
  # If there is no Makefile yet, we rely on a make rule to execute
 
14513
  # `config.status --recheck' to rerun these tests and create the
 
14514
  # libtool script then.
 
14515
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
14516
  if test -f "$ltmain_in"; then
 
14517
    test -f Makefile && make "$ltmain"
 
14518
  fi
 
14519
fi
 
14520
 
 
14521
 
 
14522
ac_ext=c
 
14523
ac_cpp='$CPP $CPPFLAGS'
 
14524
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
14525
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14526
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
14527
 
 
14528
CC=$lt_save_CC
 
14529
LDCXX=$LD
 
14530
LD=$lt_save_LD
 
14531
GCC=$lt_save_GCC
 
14532
with_gnu_ldcxx=$with_gnu_ld
 
14533
with_gnu_ld=$lt_save_with_gnu_ld
 
14534
lt_cv_path_LDCXX=$lt_cv_path_LD
 
14535
lt_cv_path_LD=$lt_save_path_LD
 
14536
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
14537
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
14538
 
 
14539
        else
 
14540
          tagname=""
 
14541
        fi
 
14542
        ;;
 
14543
 
 
14544
      F77)
 
14545
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
14546
 
 
14547
ac_ext=f
 
14548
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
14549
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14550
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
14551
 
 
14552
 
 
14553
archive_cmds_need_lc_F77=no
 
14554
allow_undefined_flag_F77=
 
14555
always_export_symbols_F77=no
 
14556
archive_expsym_cmds_F77=
 
14557
export_dynamic_flag_spec_F77=
 
14558
hardcode_direct_F77=no
 
14559
hardcode_libdir_flag_spec_F77=
 
14560
hardcode_libdir_flag_spec_ld_F77=
 
14561
hardcode_libdir_separator_F77=
 
14562
hardcode_minus_L_F77=no
 
14563
hardcode_automatic_F77=no
 
14564
module_cmds_F77=
 
14565
module_expsym_cmds_F77=
 
14566
link_all_deplibs_F77=unknown
 
14567
old_archive_cmds_F77=$old_archive_cmds
 
14568
no_undefined_flag_F77=
 
14569
whole_archive_flag_spec_F77=
 
14570
enable_shared_with_static_runtimes_F77=no
 
14571
 
 
14572
# Source file extension for f77 test sources.
 
14573
ac_ext=f
 
14574
 
 
14575
# Object file extension for compiled f77 test sources.
 
14576
objext=o
 
14577
objext_F77=$objext
 
14578
 
 
14579
# Code to be used in simple compile tests
 
14580
lt_simple_compile_test_code="\
 
14581
      subroutine t
 
14582
      return
 
14583
      end
 
14584
"
 
14585
 
 
14586
# Code to be used in simple link tests
 
14587
lt_simple_link_test_code="\
 
14588
      program t
 
14589
      end
 
14590
"
 
14591
 
 
14592
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
14593
 
 
14594
# If no C compiler was specified, use CC.
 
14595
LTCC=${LTCC-"$CC"}
 
14596
 
 
14597
# If no C compiler flags were specified, use CFLAGS.
 
14598
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
14599
 
 
14600
# Allow CC to be a program name with arguments.
 
14601
compiler=$CC
 
14602
 
 
14603
 
 
14604
# save warnings/boilerplate of simple test code
 
14605
ac_outfile=conftest.$ac_objext
 
14606
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
14607
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
14608
_lt_compiler_boilerplate=`cat conftest.err`
 
14609
$rm conftest*
 
14610
 
 
14611
ac_outfile=conftest.$ac_objext
 
14612
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
14613
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
14614
_lt_linker_boilerplate=`cat conftest.err`
 
14615
$rm -r conftest*
 
14616
 
 
14617
 
 
14618
# Allow CC to be a program name with arguments.
 
14619
lt_save_CC="$CC"
 
14620
CC=${F77-"f77"}
 
14621
compiler=$CC
 
14622
compiler_F77=$CC
 
14623
for cc_temp in $compiler""; do
 
14624
  case $cc_temp in
 
14625
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
14626
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
14627
    \-*) ;;
 
14628
    *) break;;
 
14629
  esac
 
14630
done
 
14631
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
14632
 
 
14633
 
 
14634
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
14635
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
 
14636
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
14637
$as_echo "$can_build_shared" >&6; }
 
14638
 
 
14639
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
14640
$as_echo_n "checking whether to build shared libraries... " >&6; }
 
14641
test "$can_build_shared" = "no" && enable_shared=no
 
14642
 
 
14643
# On AIX, shared libraries and static libraries use the same namespace, and
 
14644
# are all built from PIC.
 
14645
case $host_os in
 
14646
aix3*)
 
14647
  test "$enable_shared" = yes && enable_static=no
 
14648
  if test -n "$RANLIB"; then
 
14649
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
14650
    postinstall_cmds='$RANLIB $lib'
 
14651
  fi
 
14652
  ;;
 
14653
aix[4-9]*)
 
14654
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
14655
    test "$enable_shared" = yes && enable_static=no
 
14656
  fi
 
14657
  ;;
 
14658
esac
 
14659
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
 
14660
$as_echo "$enable_shared" >&6; }
 
14661
 
 
14662
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
14663
$as_echo_n "checking whether to build static libraries... " >&6; }
 
14664
# Make sure either enable_shared or enable_static is yes.
 
14665
test "$enable_shared" = yes || enable_static=yes
 
14666
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
 
14667
$as_echo "$enable_static" >&6; }
 
14668
 
 
14669
GCC_F77="$G77"
 
14670
LD_F77="$LD"
 
14671
 
 
14672
lt_prog_compiler_wl_F77=
 
14673
lt_prog_compiler_pic_F77=
 
14674
lt_prog_compiler_static_F77=
 
14675
 
 
14676
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
14677
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
14678
 
 
14679
  if test "$GCC" = yes; then
 
14680
    lt_prog_compiler_wl_F77='-Wl,'
 
14681
    lt_prog_compiler_static_F77='-static'
 
14682
 
 
14683
    case $host_os in
 
14684
      aix*)
 
14685
      # All AIX code is PIC.
 
14686
      if test "$host_cpu" = ia64; then
 
14687
        # AIX 5 now supports IA64 processor
 
14688
        lt_prog_compiler_static_F77='-Bstatic'
 
14689
      fi
 
14690
      ;;
 
14691
 
 
14692
    amigaos*)
 
14693
      # FIXME: we need at least 68020 code to build shared libraries, but
 
14694
      # adding the `-m68020' flag to GCC prevents building anything better,
 
14695
      # like `-m68040'.
 
14696
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
 
14697
      ;;
 
14698
 
 
14699
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
14700
      # PIC is the default for these OSes.
 
14701
      ;;
 
14702
 
 
14703
    mingw* | cygwin* | pw32* | os2*)
 
14704
      # This hack is so that the source file can tell whether it is being
 
14705
      # built for inclusion in a dll (and should export symbols for example).
 
14706
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
14707
      # (--disable-auto-import) libraries
 
14708
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
14709
      ;;
 
14710
 
 
14711
    darwin* | rhapsody*)
 
14712
      # PIC is the default on this platform
 
14713
      # Common symbols not allowed in MH_DYLIB files
 
14714
      lt_prog_compiler_pic_F77='-fno-common'
 
14715
      ;;
 
14716
 
 
14717
    interix[3-9]*)
 
14718
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
14719
      # Instead, we relocate shared libraries at runtime.
 
14720
      ;;
 
14721
 
 
14722
    msdosdjgpp*)
 
14723
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
14724
      # on systems that don't support them.
 
14725
      lt_prog_compiler_can_build_shared_F77=no
 
14726
      enable_shared=no
 
14727
      ;;
 
14728
 
 
14729
    sysv4*MP*)
 
14730
      if test -d /usr/nec; then
 
14731
        lt_prog_compiler_pic_F77=-Kconform_pic
 
14732
      fi
 
14733
      ;;
 
14734
 
 
14735
    hpux*)
 
14736
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
14737
      # not for PA HP-UX.
 
14738
      case $host_cpu in
 
14739
      hppa*64*|ia64*)
 
14740
        # +Z the default
 
14741
        ;;
 
14742
      *)
 
14743
        lt_prog_compiler_pic_F77='-fPIC'
 
14744
        ;;
 
14745
      esac
 
14746
      ;;
 
14747
 
 
14748
    *)
 
14749
      lt_prog_compiler_pic_F77='-fPIC'
 
14750
      ;;
 
14751
    esac
 
14752
  else
 
14753
    # PORTME Check for flag to pass linker flags through the system compiler.
 
14754
    case $host_os in
 
14755
    aix*)
 
14756
      lt_prog_compiler_wl_F77='-Wl,'
 
14757
      if test "$host_cpu" = ia64; then
 
14758
        # AIX 5 now supports IA64 processor
 
14759
        lt_prog_compiler_static_F77='-Bstatic'
 
14760
      else
 
14761
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
 
14762
      fi
 
14763
      ;;
 
14764
      darwin*)
 
14765
        # PIC is the default on this platform
 
14766
        # Common symbols not allowed in MH_DYLIB files
 
14767
       case $cc_basename in
 
14768
         xlc*)
 
14769
         lt_prog_compiler_pic_F77='-qnocommon'
 
14770
         lt_prog_compiler_wl_F77='-Wl,'
 
14771
         ;;
 
14772
       esac
 
14773
       ;;
 
14774
 
 
14775
    mingw* | cygwin* | pw32* | os2*)
 
14776
      # This hack is so that the source file can tell whether it is being
 
14777
      # built for inclusion in a dll (and should export symbols for example).
 
14778
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
14779
      ;;
 
14780
 
 
14781
    hpux9* | hpux10* | hpux11*)
 
14782
      lt_prog_compiler_wl_F77='-Wl,'
 
14783
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
14784
      # not for PA HP-UX.
 
14785
      case $host_cpu in
 
14786
      hppa*64*|ia64*)
 
14787
        # +Z the default
 
14788
        ;;
 
14789
      *)
 
14790
        lt_prog_compiler_pic_F77='+Z'
 
14791
        ;;
 
14792
      esac
 
14793
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
14794
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
 
14795
      ;;
 
14796
 
 
14797
    irix5* | irix6* | nonstopux*)
 
14798
      lt_prog_compiler_wl_F77='-Wl,'
 
14799
      # PIC (with -KPIC) is the default.
 
14800
      lt_prog_compiler_static_F77='-non_shared'
 
14801
      ;;
 
14802
 
 
14803
    newsos6)
 
14804
      lt_prog_compiler_pic_F77='-KPIC'
 
14805
      lt_prog_compiler_static_F77='-Bstatic'
 
14806
      ;;
 
14807
 
 
14808
    linux* | k*bsd*-gnu)
 
14809
      case $cc_basename in
 
14810
      icc* | ecc*)
 
14811
        lt_prog_compiler_wl_F77='-Wl,'
 
14812
        lt_prog_compiler_pic_F77='-KPIC'
 
14813
        lt_prog_compiler_static_F77='-static'
 
14814
        ;;
 
14815
      pgcc* | pgf77* | pgf90* | pgf95*)
 
14816
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
14817
        # which looks to be a dead project)
 
14818
        lt_prog_compiler_wl_F77='-Wl,'
 
14819
        lt_prog_compiler_pic_F77='-fpic'
 
14820
        lt_prog_compiler_static_F77='-Bstatic'
 
14821
        ;;
 
14822
      ccc*)
 
14823
        lt_prog_compiler_wl_F77='-Wl,'
 
14824
        # All Alpha code is PIC.
 
14825
        lt_prog_compiler_static_F77='-non_shared'
 
14826
        ;;
 
14827
      *)
 
14828
        case `$CC -V 2>&1 | sed 5q` in
 
14829
        *Sun\ C*)
 
14830
          # Sun C 5.9
 
14831
          lt_prog_compiler_pic_F77='-KPIC'
 
14832
          lt_prog_compiler_static_F77='-Bstatic'
 
14833
          lt_prog_compiler_wl_F77='-Wl,'
 
14834
          ;;
 
14835
        *Sun\ F*)
 
14836
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
14837
          lt_prog_compiler_pic_F77='-KPIC'
 
14838
          lt_prog_compiler_static_F77='-Bstatic'
 
14839
          lt_prog_compiler_wl_F77=''
 
14840
          ;;
 
14841
        esac
 
14842
        ;;
 
14843
      esac
 
14844
      ;;
 
14845
 
 
14846
    osf3* | osf4* | osf5*)
 
14847
      lt_prog_compiler_wl_F77='-Wl,'
 
14848
      # All OSF/1 code is PIC.
 
14849
      lt_prog_compiler_static_F77='-non_shared'
 
14850
      ;;
 
14851
 
 
14852
    rdos*)
 
14853
      lt_prog_compiler_static_F77='-non_shared'
 
14854
      ;;
 
14855
 
 
14856
    solaris*)
 
14857
      lt_prog_compiler_pic_F77='-KPIC'
 
14858
      lt_prog_compiler_static_F77='-Bstatic'
 
14859
      case $cc_basename in
 
14860
      f77* | f90* | f95*)
 
14861
        lt_prog_compiler_wl_F77='-Qoption ld ';;
 
14862
      *)
 
14863
        lt_prog_compiler_wl_F77='-Wl,';;
 
14864
      esac
 
14865
      ;;
 
14866
 
 
14867
    sunos4*)
 
14868
      lt_prog_compiler_wl_F77='-Qoption ld '
 
14869
      lt_prog_compiler_pic_F77='-PIC'
 
14870
      lt_prog_compiler_static_F77='-Bstatic'
 
14871
      ;;
 
14872
 
 
14873
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
14874
      lt_prog_compiler_wl_F77='-Wl,'
 
14875
      lt_prog_compiler_pic_F77='-KPIC'
 
14876
      lt_prog_compiler_static_F77='-Bstatic'
 
14877
      ;;
 
14878
 
 
14879
    sysv4*MP*)
 
14880
      if test -d /usr/nec ;then
 
14881
        lt_prog_compiler_pic_F77='-Kconform_pic'
 
14882
        lt_prog_compiler_static_F77='-Bstatic'
 
14883
      fi
 
14884
      ;;
 
14885
 
 
14886
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
14887
      lt_prog_compiler_wl_F77='-Wl,'
 
14888
      lt_prog_compiler_pic_F77='-KPIC'
 
14889
      lt_prog_compiler_static_F77='-Bstatic'
 
14890
      ;;
 
14891
 
 
14892
    unicos*)
 
14893
      lt_prog_compiler_wl_F77='-Wl,'
 
14894
      lt_prog_compiler_can_build_shared_F77=no
 
14895
      ;;
 
14896
 
 
14897
    uts4*)
 
14898
      lt_prog_compiler_pic_F77='-pic'
 
14899
      lt_prog_compiler_static_F77='-Bstatic'
 
14900
      ;;
 
14901
 
 
14902
    *)
 
14903
      lt_prog_compiler_can_build_shared_F77=no
 
14904
      ;;
 
14905
    esac
 
14906
  fi
 
14907
 
 
14908
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
14909
$as_echo "$lt_prog_compiler_pic_F77" >&6; }
 
14910
 
 
14911
#
 
14912
# Check to make sure the PIC flag actually works.
 
14913
#
 
14914
if test -n "$lt_prog_compiler_pic_F77"; then
 
14915
 
 
14916
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
14917
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
 
14918
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
 
14919
  $as_echo_n "(cached) " >&6
 
14920
else
 
14921
  lt_cv_prog_compiler_pic_works_F77=no
 
14922
  ac_outfile=conftest.$ac_objext
 
14923
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14924
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
 
14925
   # Insert the option either (1) after the last *FLAGS variable, or
 
14926
   # (2) before a word containing "conftest.", or (3) at the end.
 
14927
   # Note that $ac_compile itself does not contain backslashes and begins
 
14928
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14929
   # The option is referenced via a variable to avoid confusing sed.
 
14930
   lt_compile=`echo "$ac_compile" | $SED \
 
14931
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14932
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14933
   -e 's:$: $lt_compiler_flag:'`
 
14934
   (eval echo "\"\$as_me:14934: $lt_compile\"" >&5)
 
14935
   (eval "$lt_compile" 2>conftest.err)
 
14936
   ac_status=$?
 
14937
   cat conftest.err >&5
 
14938
   echo "$as_me:14938: \$? = $ac_status" >&5
 
14939
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
14940
     # The compiler can only warn and ignore the option if not recognized
 
14941
     # So say no if there are warnings other than the usual output.
 
14942
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
14943
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14944
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
14945
       lt_cv_prog_compiler_pic_works_F77=yes
 
14946
     fi
 
14947
   fi
 
14948
   $rm conftest*
 
14949
 
 
14950
fi
 
14951
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
 
14952
$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
 
14953
 
 
14954
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
 
14955
    case $lt_prog_compiler_pic_F77 in
 
14956
     "" | " "*) ;;
 
14957
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
 
14958
     esac
 
14959
else
 
14960
    lt_prog_compiler_pic_F77=
 
14961
     lt_prog_compiler_can_build_shared_F77=no
 
14962
fi
 
14963
 
 
14964
fi
 
14965
case $host_os in
 
14966
  # For platforms which do not support PIC, -DPIC is meaningless:
 
14967
  *djgpp*)
 
14968
    lt_prog_compiler_pic_F77=
 
14969
    ;;
 
14970
  *)
 
14971
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
 
14972
    ;;
 
14973
esac
 
14974
 
 
14975
#
 
14976
# Check to make sure the static flag actually works.
 
14977
#
 
14978
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
 
14979
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
14980
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
14981
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
 
14982
  $as_echo_n "(cached) " >&6
 
14983
else
 
14984
  lt_cv_prog_compiler_static_works_F77=no
 
14985
   save_LDFLAGS="$LDFLAGS"
 
14986
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
14987
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
14988
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
14989
     # The linker can only warn and ignore the option if not recognized
 
14990
     # So say no if there are warnings
 
14991
     if test -s conftest.err; then
 
14992
       # Append any errors to the config.log.
 
14993
       cat conftest.err 1>&5
 
14994
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
14995
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14996
       if diff conftest.exp conftest.er2 >/dev/null; then
 
14997
         lt_cv_prog_compiler_static_works_F77=yes
 
14998
       fi
 
14999
     else
 
15000
       lt_cv_prog_compiler_static_works_F77=yes
 
15001
     fi
 
15002
   fi
 
15003
   $rm -r conftest*
 
15004
   LDFLAGS="$save_LDFLAGS"
 
15005
 
 
15006
fi
 
15007
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
 
15008
$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
 
15009
 
 
15010
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
 
15011
    :
 
15012
else
 
15013
    lt_prog_compiler_static_F77=
 
15014
fi
 
15015
 
 
15016
 
 
15017
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
15018
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
15019
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
 
15020
  $as_echo_n "(cached) " >&6
 
15021
else
 
15022
  lt_cv_prog_compiler_c_o_F77=no
 
15023
   $rm -r conftest 2>/dev/null
 
15024
   mkdir conftest
 
15025
   cd conftest
 
15026
   mkdir out
 
15027
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15028
 
 
15029
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
15030
   # Insert the option either (1) after the last *FLAGS variable, or
 
15031
   # (2) before a word containing "conftest.", or (3) at the end.
 
15032
   # Note that $ac_compile itself does not contain backslashes and begins
 
15033
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
15034
   lt_compile=`echo "$ac_compile" | $SED \
 
15035
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
15036
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
15037
   -e 's:$: $lt_compiler_flag:'`
 
15038
   (eval echo "\"\$as_me:15038: $lt_compile\"" >&5)
 
15039
   (eval "$lt_compile" 2>out/conftest.err)
 
15040
   ac_status=$?
 
15041
   cat out/conftest.err >&5
 
15042
   echo "$as_me:15042: \$? = $ac_status" >&5
 
15043
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
15044
   then
 
15045
     # The compiler can only warn and ignore the option if not recognized
 
15046
     # So say no if there are warnings
 
15047
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
15048
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
15049
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
15050
       lt_cv_prog_compiler_c_o_F77=yes
 
15051
     fi
 
15052
   fi
 
15053
   chmod u+w . 2>&5
 
15054
   $rm conftest*
 
15055
   # SGI C++ compiler will create directory out/ii_files/ for
 
15056
   # template instantiation
 
15057
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
15058
   $rm out/* && rmdir out
 
15059
   cd ..
 
15060
   rmdir conftest
 
15061
   $rm conftest*
 
15062
 
 
15063
fi
 
15064
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
15065
$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
 
15066
 
 
15067
 
 
15068
hard_links="nottested"
 
15069
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
 
15070
  # do not overwrite the value of need_locks provided by the user
 
15071
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
15072
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
15073
  hard_links=yes
 
15074
  $rm conftest*
 
15075
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
15076
  touch conftest.a
 
15077
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
15078
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
15079
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
 
15080
$as_echo "$hard_links" >&6; }
 
15081
  if test "$hard_links" = no; then
 
15082
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
15083
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
15084
    need_locks=warn
 
15085
  fi
 
15086
else
 
15087
  need_locks=no
 
15088
fi
 
15089
 
 
15090
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
15091
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
15092
 
 
15093
  runpath_var=
 
15094
  allow_undefined_flag_F77=
 
15095
  enable_shared_with_static_runtimes_F77=no
 
15096
  archive_cmds_F77=
 
15097
  archive_expsym_cmds_F77=
 
15098
  old_archive_From_new_cmds_F77=
 
15099
  old_archive_from_expsyms_cmds_F77=
 
15100
  export_dynamic_flag_spec_F77=
 
15101
  whole_archive_flag_spec_F77=
 
15102
  thread_safe_flag_spec_F77=
 
15103
  hardcode_libdir_flag_spec_F77=
 
15104
  hardcode_libdir_flag_spec_ld_F77=
 
15105
  hardcode_libdir_separator_F77=
 
15106
  hardcode_direct_F77=no
 
15107
  hardcode_minus_L_F77=no
 
15108
  hardcode_shlibpath_var_F77=unsupported
 
15109
  link_all_deplibs_F77=unknown
 
15110
  hardcode_automatic_F77=no
 
15111
  module_cmds_F77=
 
15112
  module_expsym_cmds_F77=
 
15113
  always_export_symbols_F77=no
 
15114
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
15115
  # include_expsyms should be a list of space-separated symbols to be *always*
 
15116
  # included in the symbol list
 
15117
  include_expsyms_F77=
 
15118
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
15119
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
15120
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
15121
  # as well as any symbol that contains `d'.
 
15122
  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
15123
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
15124
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
15125
  # the symbol is explicitly referenced.  Since portable code cannot
 
15126
  # rely on this symbol name, it's probably fine to never include it in
 
15127
  # preloaded symbol tables.
 
15128
  # Exclude shared library initialization/finalization symbols.
 
15129
  extract_expsyms_cmds=
 
15130
  # Just being paranoid about ensuring that cc_basename is set.
 
15131
  for cc_temp in $compiler""; do
 
15132
  case $cc_temp in
 
15133
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
15134
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
15135
    \-*) ;;
 
15136
    *) break;;
 
15137
  esac
 
15138
done
 
15139
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
15140
 
 
15141
  case $host_os in
 
15142
  cygwin* | mingw* | pw32*)
 
15143
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
15144
    # When not using gcc, we currently assume that we are using
 
15145
    # Microsoft Visual C++.
 
15146
    if test "$GCC" != yes; then
 
15147
      with_gnu_ld=no
 
15148
    fi
 
15149
    ;;
 
15150
  interix*)
 
15151
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
15152
    with_gnu_ld=yes
 
15153
    ;;
 
15154
  openbsd*)
 
15155
    with_gnu_ld=no
 
15156
    ;;
 
15157
  esac
 
15158
 
 
15159
  ld_shlibs_F77=yes
 
15160
  if test "$with_gnu_ld" = yes; then
 
15161
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
15162
    wlarc='${wl}'
 
15163
 
 
15164
    # Set some defaults for GNU ld with shared library support. These
 
15165
    # are reset later if shared libraries are not supported. Putting them
 
15166
    # here allows them to be overridden if necessary.
 
15167
    runpath_var=LD_RUN_PATH
 
15168
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
15169
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
15170
    # ancient GNU ld didn't support --whole-archive et. al.
 
15171
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
15172
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
15173
      else
 
15174
        whole_archive_flag_spec_F77=
 
15175
    fi
 
15176
    supports_anon_versioning=no
 
15177
    case `$LD -v 2>/dev/null` in
 
15178
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
15179
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
15180
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
15181
      *\ 2.11.*) ;; # other 2.11 versions
 
15182
      *) supports_anon_versioning=yes ;;
 
15183
    esac
 
15184
 
 
15185
    # See if GNU ld supports shared libraries.
 
15186
    case $host_os in
 
15187
    aix[3-9]*)
 
15188
      # On AIX/PPC, the GNU linker is very broken
 
15189
      if test "$host_cpu" != ia64; then
 
15190
        ld_shlibs_F77=no
 
15191
        cat <<EOF 1>&2
 
15192
 
 
15193
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
15194
*** to be unable to reliably create shared libraries on AIX.
 
15195
*** Therefore, libtool is disabling shared libraries support.  If you
 
15196
*** really care for shared libraries, you may want to modify your PATH
 
15197
*** so that a non-GNU linker is found, and then restart.
 
15198
 
 
15199
EOF
 
15200
      fi
 
15201
      ;;
 
15202
 
 
15203
    amigaos*)
 
15204
      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)'
 
15205
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15206
      hardcode_minus_L_F77=yes
 
15207
 
 
15208
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
15209
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
15210
      # to version 4, is to share data among multiple programs linked
 
15211
      # with the same dynamic library.  Since this doesn't match the
 
15212
      # behavior of shared libraries on other platforms, we can't use
 
15213
      # them.
 
15214
      ld_shlibs_F77=no
 
15215
      ;;
 
15216
 
 
15217
    beos*)
 
15218
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15219
        allow_undefined_flag_F77=unsupported
 
15220
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
15221
        # support --undefined.  This deserves some investigation.  FIXME
 
15222
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15223
      else
 
15224
        ld_shlibs_F77=no
 
15225
      fi
 
15226
      ;;
 
15227
 
 
15228
    cygwin* | mingw* | pw32*)
 
15229
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
 
15230
      # as there is no search path for DLLs.
 
15231
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15232
      allow_undefined_flag_F77=unsupported
 
15233
      always_export_symbols_F77=no
 
15234
      enable_shared_with_static_runtimes_F77=yes
 
15235
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
15236
 
 
15237
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
15238
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
15239
        # If the export-symbols file already is a .def file (1st line
 
15240
        # is EXPORTS), use it as is; otherwise, prepend...
 
15241
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
15242
          cp $export_symbols $output_objdir/$soname.def;
 
15243
        else
 
15244
          echo EXPORTS > $output_objdir/$soname.def;
 
15245
          cat $export_symbols >> $output_objdir/$soname.def;
 
15246
        fi~
 
15247
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
15248
      else
 
15249
        ld_shlibs_F77=no
 
15250
      fi
 
15251
      ;;
 
15252
 
 
15253
    interix[3-9]*)
 
15254
      hardcode_direct_F77=no
 
15255
      hardcode_shlibpath_var_F77=no
 
15256
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15257
      export_dynamic_flag_spec_F77='${wl}-E'
 
15258
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
15259
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
15260
      # default) and relocated if they conflict, which is a slow very memory
 
15261
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
15262
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
15263
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
15264
      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'
 
15265
      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'
 
15266
      ;;
 
15267
 
 
15268
    gnu* | linux* | k*bsd*-gnu)
 
15269
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15270
        tmp_addflag=
 
15271
        case $cc_basename,$host_cpu in
 
15272
        pgcc*)                          # Portland Group C compiler
 
15273
          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'
 
15274
          tmp_addflag=' $pic_flag'
 
15275
          ;;
 
15276
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
15277
          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'
 
15278
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
15279
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
15280
          tmp_addflag=' -i_dynamic' ;;
 
15281
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
15282
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
15283
        ifc* | ifort*)                  # Intel Fortran compiler
 
15284
          tmp_addflag=' -nofor_main' ;;
 
15285
        esac
 
15286
        case `$CC -V 2>&1 | sed 5q` in
 
15287
        *Sun\ C*)                       # Sun C 5.9
 
15288
          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'
 
15289
          tmp_sharedflag='-G' ;;
 
15290
        *Sun\ F*)                       # Sun Fortran 8.3
 
15291
          tmp_sharedflag='-G' ;;
 
15292
        *)
 
15293
          tmp_sharedflag='-shared' ;;
 
15294
        esac
 
15295
        archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15296
 
 
15297
        if test $supports_anon_versioning = yes; then
 
15298
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
15299
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
15300
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
15301
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
15302
        fi
 
15303
        link_all_deplibs_F77=no
 
15304
      else
 
15305
        ld_shlibs_F77=no
 
15306
      fi
 
15307
      ;;
 
15308
 
 
15309
    netbsd*)
 
15310
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15311
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
15312
        wlarc=
 
15313
      else
 
15314
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15315
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15316
      fi
 
15317
      ;;
 
15318
 
 
15319
    solaris*)
 
15320
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
15321
        ld_shlibs_F77=no
 
15322
        cat <<EOF 1>&2
 
15323
 
 
15324
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
15325
*** create shared libraries on Solaris systems.  Therefore, libtool
 
15326
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
15327
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
15328
*** your PATH or compiler configuration so that the native linker is
 
15329
*** used, and then restart.
 
15330
 
 
15331
EOF
 
15332
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15333
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15334
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15335
      else
 
15336
        ld_shlibs_F77=no
 
15337
      fi
 
15338
      ;;
 
15339
 
 
15340
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
15341
      case `$LD -v 2>&1` in
 
15342
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
15343
        ld_shlibs_F77=no
 
15344
        cat <<_LT_EOF 1>&2
 
15345
 
 
15346
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
15347
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
15348
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
15349
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
15350
*** your PATH or compiler configuration so that the native linker is
 
15351
*** used, and then restart.
 
15352
 
 
15353
_LT_EOF
 
15354
        ;;
 
15355
        *)
 
15356
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15357
            hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
15358
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
15359
            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
15360
          else
 
15361
            ld_shlibs_F77=no
 
15362
          fi
 
15363
        ;;
 
15364
      esac
 
15365
      ;;
 
15366
 
 
15367
    sunos4*)
 
15368
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15369
      wlarc=
 
15370
      hardcode_direct_F77=yes
 
15371
      hardcode_shlibpath_var_F77=no
 
15372
      ;;
 
15373
 
 
15374
    *)
 
15375
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15376
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15377
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15378
      else
 
15379
        ld_shlibs_F77=no
 
15380
      fi
 
15381
      ;;
 
15382
    esac
 
15383
 
 
15384
    if test "$ld_shlibs_F77" = no; then
 
15385
      runpath_var=
 
15386
      hardcode_libdir_flag_spec_F77=
 
15387
      export_dynamic_flag_spec_F77=
 
15388
      whole_archive_flag_spec_F77=
 
15389
    fi
 
15390
  else
 
15391
    # PORTME fill in a description of your system's linker (not GNU ld)
 
15392
    case $host_os in
 
15393
    aix3*)
 
15394
      allow_undefined_flag_F77=unsupported
 
15395
      always_export_symbols_F77=yes
 
15396
      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'
 
15397
      # Note: this linker hardcodes the directories in LIBPATH if there
 
15398
      # are no directories specified by -L.
 
15399
      hardcode_minus_L_F77=yes
 
15400
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
15401
        # Neither direct hardcoding nor static linking is supported with a
 
15402
        # broken collect2.
 
15403
        hardcode_direct_F77=unsupported
 
15404
      fi
 
15405
      ;;
 
15406
 
 
15407
    aix[4-9]*)
 
15408
      if test "$host_cpu" = ia64; then
 
15409
        # On IA64, the linker does run time linking by default, so we don't
 
15410
        # have to do anything special.
 
15411
        aix_use_runtimelinking=no
 
15412
        exp_sym_flag='-Bexport'
 
15413
        no_entry_flag=""
 
15414
      else
 
15415
        # If we're using GNU nm, then we don't want the "-C" option.
 
15416
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
15417
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
15418
          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'
 
15419
        else
 
15420
          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'
 
15421
        fi
 
15422
        aix_use_runtimelinking=no
 
15423
 
 
15424
        # Test if we are trying to use run time linking or normal
 
15425
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
15426
        # need to do runtime linking.
 
15427
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
15428
          for ld_flag in $LDFLAGS; do
 
15429
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
15430
            aix_use_runtimelinking=yes
 
15431
            break
 
15432
          fi
 
15433
          done
 
15434
          ;;
 
15435
        esac
 
15436
 
 
15437
        exp_sym_flag='-bexport'
 
15438
        no_entry_flag='-bnoentry'
 
15439
      fi
 
15440
 
 
15441
      # When large executables or shared objects are built, AIX ld can
 
15442
      # have problems creating the table of contents.  If linking a library
 
15443
      # or program results in "error TOC overflow" add -mminimal-toc to
 
15444
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
15445
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
15446
 
 
15447
      archive_cmds_F77=''
 
15448
      hardcode_direct_F77=yes
 
15449
      hardcode_libdir_separator_F77=':'
 
15450
      link_all_deplibs_F77=yes
 
15451
 
 
15452
      if test "$GCC" = yes; then
 
15453
        case $host_os in aix4.[012]|aix4.[012].*)
 
15454
        # We only want to do this on AIX 4.2 and lower, the check
 
15455
        # below for broken collect2 doesn't work under 4.3+
 
15456
          collect2name=`${CC} -print-prog-name=collect2`
 
15457
          if test -f "$collect2name" && \
 
15458
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
15459
          then
 
15460
          # We have reworked collect2
 
15461
          :
 
15462
          else
 
15463
          # We have old collect2
 
15464
          hardcode_direct_F77=unsupported
 
15465
          # It fails to find uninstalled libraries when the uninstalled
 
15466
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
15467
          # to unsupported forces relinking
 
15468
          hardcode_minus_L_F77=yes
 
15469
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
15470
          hardcode_libdir_separator_F77=
 
15471
          fi
 
15472
          ;;
 
15473
        esac
 
15474
        shared_flag='-shared'
 
15475
        if test "$aix_use_runtimelinking" = yes; then
 
15476
          shared_flag="$shared_flag "'${wl}-G'
 
15477
        fi
 
15478
      else
 
15479
        # not using gcc
 
15480
        if test "$host_cpu" = ia64; then
 
15481
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
15482
        # chokes on -Wl,-G. The following line is correct:
 
15483
          shared_flag='-G'
 
15484
        else
 
15485
          if test "$aix_use_runtimelinking" = yes; then
 
15486
            shared_flag='${wl}-G'
 
15487
          else
 
15488
            shared_flag='${wl}-bM:SRE'
 
15489
          fi
 
15490
        fi
 
15491
      fi
 
15492
 
 
15493
      # It seems that -bexpall does not export symbols beginning with
 
15494
      # underscore (_), so it is better to generate a list of symbols to export.
 
15495
      always_export_symbols_F77=yes
 
15496
      if test "$aix_use_runtimelinking" = yes; then
 
15497
        # Warning - without using the other runtime loading flags (-brtl),
 
15498
        # -berok will link without error, but may produce a broken library.
 
15499
        allow_undefined_flag_F77='-berok'
 
15500
       # Determine the default libpath from the value encoded in an empty executable.
 
15501
       cat >conftest.$ac_ext <<_ACEOF
 
15502
      program main
 
15503
 
 
15504
      end
 
15505
_ACEOF
 
15506
rm -f conftest.$ac_objext conftest$ac_exeext
 
15507
if { (ac_try="$ac_link"
 
15508
case "(($ac_try" in
 
15509
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15510
  *) ac_try_echo=$ac_try;;
 
15511
esac
 
15512
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
15513
$as_echo "$ac_try_echo") >&5
 
15514
  (eval "$ac_link") 2>conftest.er1
 
15515
  ac_status=$?
 
15516
  grep -v '^ *+' conftest.er1 >conftest.err
 
15517
  rm -f conftest.er1
 
15518
  cat conftest.err >&5
 
15519
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15520
  (exit $ac_status); } && {
 
15521
         test -z "$ac_f77_werror_flag" ||
 
15522
         test ! -s conftest.err
 
15523
       } && test -s conftest$ac_exeext && {
 
15524
         test "$cross_compiling" = yes ||
 
15525
         $as_test_x conftest$ac_exeext
 
15526
       }; then
 
15527
 
 
15528
lt_aix_libpath_sed='
 
15529
    /Import File Strings/,/^$/ {
 
15530
        /^0/ {
 
15531
            s/^0  *\(.*\)$/\1/
 
15532
            p
 
15533
        }
 
15534
    }'
 
15535
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
15536
# Check for a 64-bit object if we didn't find anything.
 
15537
if test -z "$aix_libpath"; then
 
15538
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
15539
fi
 
15540
else
 
15541
  $as_echo "$as_me: failed program was:" >&5
 
15542
sed 's/^/| /' conftest.$ac_ext >&5
 
15543
 
 
15544
 
 
15545
fi
 
15546
 
 
15547
rm -rf conftest.dSYM
 
15548
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
15549
      conftest$ac_exeext conftest.$ac_ext
 
15550
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
15551
 
 
15552
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
15553
        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"
 
15554
       else
 
15555
        if test "$host_cpu" = ia64; then
 
15556
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
 
15557
          allow_undefined_flag_F77="-z nodefs"
 
15558
          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"
 
15559
        else
 
15560
         # Determine the default libpath from the value encoded in an empty executable.
 
15561
         cat >conftest.$ac_ext <<_ACEOF
 
15562
      program main
 
15563
 
 
15564
      end
 
15565
_ACEOF
 
15566
rm -f conftest.$ac_objext conftest$ac_exeext
 
15567
if { (ac_try="$ac_link"
 
15568
case "(($ac_try" in
 
15569
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15570
  *) ac_try_echo=$ac_try;;
 
15571
esac
 
15572
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
15573
$as_echo "$ac_try_echo") >&5
 
15574
  (eval "$ac_link") 2>conftest.er1
 
15575
  ac_status=$?
 
15576
  grep -v '^ *+' conftest.er1 >conftest.err
 
15577
  rm -f conftest.er1
 
15578
  cat conftest.err >&5
 
15579
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15580
  (exit $ac_status); } && {
 
15581
         test -z "$ac_f77_werror_flag" ||
 
15582
         test ! -s conftest.err
 
15583
       } && test -s conftest$ac_exeext && {
 
15584
         test "$cross_compiling" = yes ||
 
15585
         $as_test_x conftest$ac_exeext
 
15586
       }; then
 
15587
 
 
15588
lt_aix_libpath_sed='
 
15589
    /Import File Strings/,/^$/ {
 
15590
        /^0/ {
 
15591
            s/^0  *\(.*\)$/\1/
 
15592
            p
 
15593
        }
 
15594
    }'
 
15595
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
15596
# Check for a 64-bit object if we didn't find anything.
 
15597
if test -z "$aix_libpath"; then
 
15598
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
15599
fi
 
15600
else
 
15601
  $as_echo "$as_me: failed program was:" >&5
 
15602
sed 's/^/| /' conftest.$ac_ext >&5
 
15603
 
 
15604
 
 
15605
fi
 
15606
 
 
15607
rm -rf conftest.dSYM
 
15608
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
15609
      conftest$ac_exeext conftest.$ac_ext
 
15610
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
15611
 
 
15612
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
15613
          # Warning - without using the other run time loading flags,
 
15614
          # -berok will link without error, but may produce a broken library.
 
15615
          no_undefined_flag_F77=' ${wl}-bernotok'
 
15616
          allow_undefined_flag_F77=' ${wl}-berok'
 
15617
          # Exported symbols can be pulled into shared objects from archives
 
15618
          whole_archive_flag_spec_F77='$convenience'
 
15619
          archive_cmds_need_lc_F77=yes
 
15620
          # This is similar to how AIX traditionally builds its shared libraries.
 
15621
          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'
 
15622
        fi
 
15623
      fi
 
15624
      ;;
 
15625
 
 
15626
    amigaos*)
 
15627
      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)'
 
15628
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15629
      hardcode_minus_L_F77=yes
 
15630
      # see comment about different semantics on the GNU ld section
 
15631
      ld_shlibs_F77=no
 
15632
      ;;
 
15633
 
 
15634
    bsdi[45]*)
 
15635
      export_dynamic_flag_spec_F77=-rdynamic
 
15636
      ;;
 
15637
 
 
15638
    cygwin* | mingw* | pw32*)
 
15639
      # When not using gcc, we currently assume that we are using
 
15640
      # Microsoft Visual C++.
 
15641
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
15642
      # no search path for DLLs.
 
15643
      hardcode_libdir_flag_spec_F77=' '
 
15644
      allow_undefined_flag_F77=unsupported
 
15645
      # Tell ltmain to make .lib files, not .a files.
 
15646
      libext=lib
 
15647
      # Tell ltmain to make .dll files, not .so files.
 
15648
      shrext_cmds=".dll"
 
15649
      # FIXME: Setting linknames here is a bad hack.
 
15650
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
15651
      # The linker will automatically build a .lib file if we build a DLL.
 
15652
      old_archive_From_new_cmds_F77='true'
 
15653
      # FIXME: Should let the user specify the lib program.
 
15654
      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
15655
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
 
15656
      enable_shared_with_static_runtimes_F77=yes
 
15657
      ;;
 
15658
 
 
15659
    darwin* | rhapsody*)
 
15660
      case $host_os in
 
15661
        rhapsody* | darwin1.[012])
 
15662
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
 
15663
         ;;
 
15664
       *) # Darwin 1.3 on
 
15665
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
15666
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
15667
         else
 
15668
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
15669
             10.[012])
 
15670
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
15671
               ;;
 
15672
             10.*)
 
15673
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
 
15674
               ;;
 
15675
           esac
 
15676
         fi
 
15677
         ;;
 
15678
      esac
 
15679
      archive_cmds_need_lc_F77=no
 
15680
      hardcode_direct_F77=no
 
15681
      hardcode_automatic_F77=yes
 
15682
      hardcode_shlibpath_var_F77=unsupported
 
15683
      whole_archive_flag_spec_F77=''
 
15684
      link_all_deplibs_F77=yes
 
15685
    if test "$GCC" = yes ; then
 
15686
        output_verbose_link_cmd='echo'
 
15687
        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}"
 
15688
        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
15689
        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}"
 
15690
        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}"
 
15691
    else
 
15692
      case $cc_basename in
 
15693
        xlc*)
 
15694
         output_verbose_link_cmd='echo'
 
15695
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
15696
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
15697
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
15698
         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}'
 
15699
          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}'
 
15700
          ;;
 
15701
       *)
 
15702
         ld_shlibs_F77=no
 
15703
          ;;
 
15704
      esac
 
15705
    fi
 
15706
      ;;
 
15707
 
 
15708
    dgux*)
 
15709
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15710
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15711
      hardcode_shlibpath_var_F77=no
 
15712
      ;;
 
15713
 
 
15714
    freebsd1*)
 
15715
      ld_shlibs_F77=no
 
15716
      ;;
 
15717
 
 
15718
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
15719
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
15720
    # does not break anything, and helps significantly (at the cost of a little
 
15721
    # extra space).
 
15722
    freebsd2.2*)
 
15723
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
15724
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15725
      hardcode_direct_F77=yes
 
15726
      hardcode_shlibpath_var_F77=no
 
15727
      ;;
 
15728
 
 
15729
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
15730
    freebsd2*)
 
15731
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15732
      hardcode_direct_F77=yes
 
15733
      hardcode_minus_L_F77=yes
 
15734
      hardcode_shlibpath_var_F77=no
 
15735
      ;;
 
15736
 
 
15737
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
15738
    freebsd* | dragonfly*)
 
15739
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
15740
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15741
      hardcode_direct_F77=yes
 
15742
      hardcode_shlibpath_var_F77=no
 
15743
      ;;
 
15744
 
 
15745
    hpux9*)
 
15746
      if test "$GCC" = yes; then
 
15747
        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'
 
15748
      else
 
15749
        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'
 
15750
      fi
 
15751
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15752
      hardcode_libdir_separator_F77=:
 
15753
      hardcode_direct_F77=yes
 
15754
 
 
15755
      # hardcode_minus_L: Not really in the search PATH,
 
15756
      # but as the default location of the library.
 
15757
      hardcode_minus_L_F77=yes
 
15758
      export_dynamic_flag_spec_F77='${wl}-E'
 
15759
      ;;
 
15760
 
 
15761
    hpux10*)
 
15762
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
15763
        archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15764
      else
 
15765
        archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
15766
      fi
 
15767
      if test "$with_gnu_ld" = no; then
 
15768
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15769
        hardcode_libdir_separator_F77=:
 
15770
 
 
15771
        hardcode_direct_F77=yes
 
15772
        export_dynamic_flag_spec_F77='${wl}-E'
 
15773
 
 
15774
        # hardcode_minus_L: Not really in the search PATH,
 
15775
        # but as the default location of the library.
 
15776
        hardcode_minus_L_F77=yes
 
15777
      fi
 
15778
      ;;
 
15779
 
 
15780
    hpux11*)
 
15781
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
15782
        case $host_cpu in
 
15783
        hppa*64*)
 
15784
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15785
          ;;
 
15786
        ia64*)
 
15787
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
15788
          ;;
 
15789
        *)
 
15790
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15791
          ;;
 
15792
        esac
 
15793
      else
 
15794
        case $host_cpu in
 
15795
        hppa*64*)
 
15796
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15797
          ;;
 
15798
        ia64*)
 
15799
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
15800
          ;;
 
15801
        *)
 
15802
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15803
          ;;
 
15804
        esac
 
15805
      fi
 
15806
      if test "$with_gnu_ld" = no; then
 
15807
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15808
        hardcode_libdir_separator_F77=:
 
15809
 
 
15810
        case $host_cpu in
 
15811
        hppa*64*|ia64*)
 
15812
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
 
15813
          hardcode_direct_F77=no
 
15814
          hardcode_shlibpath_var_F77=no
 
15815
          ;;
 
15816
        *)
 
15817
          hardcode_direct_F77=yes
 
15818
          export_dynamic_flag_spec_F77='${wl}-E'
 
15819
 
 
15820
          # hardcode_minus_L: Not really in the search PATH,
 
15821
          # but as the default location of the library.
 
15822
          hardcode_minus_L_F77=yes
 
15823
          ;;
 
15824
        esac
 
15825
      fi
 
15826
      ;;
 
15827
 
 
15828
    irix5* | irix6* | nonstopux*)
 
15829
      if test "$GCC" = yes; then
 
15830
        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'
 
15831
      else
 
15832
        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'
 
15833
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
 
15834
      fi
 
15835
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15836
      hardcode_libdir_separator_F77=:
 
15837
      link_all_deplibs_F77=yes
 
15838
      ;;
 
15839
 
 
15840
    netbsd*)
 
15841
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15842
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
15843
      else
 
15844
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
15845
      fi
 
15846
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15847
      hardcode_direct_F77=yes
 
15848
      hardcode_shlibpath_var_F77=no
 
15849
      ;;
 
15850
 
 
15851
    newsos6)
 
15852
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15853
      hardcode_direct_F77=yes
 
15854
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15855
      hardcode_libdir_separator_F77=:
 
15856
      hardcode_shlibpath_var_F77=no
 
15857
      ;;
 
15858
 
 
15859
    openbsd*)
 
15860
      if test -f /usr/libexec/ld.so; then
 
15861
        hardcode_direct_F77=yes
 
15862
        hardcode_shlibpath_var_F77=no
 
15863
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
15864
          archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15865
          archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
15866
          hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15867
          export_dynamic_flag_spec_F77='${wl}-E'
 
15868
        else
 
15869
          case $host_os in
 
15870
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
15871
             archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15872
             hardcode_libdir_flag_spec_F77='-R$libdir'
 
15873
             ;;
 
15874
           *)
 
15875
             archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15876
             hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15877
             ;;
 
15878
          esac
 
15879
        fi
 
15880
      else
 
15881
        ld_shlibs_F77=no
 
15882
      fi
 
15883
      ;;
 
15884
 
 
15885
    os2*)
 
15886
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15887
      hardcode_minus_L_F77=yes
 
15888
      allow_undefined_flag_F77=unsupported
 
15889
      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'
 
15890
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
15891
      ;;
 
15892
 
 
15893
    osf3*)
 
15894
      if test "$GCC" = yes; then
 
15895
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
15896
        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'
 
15897
      else
 
15898
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
15899
        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'
 
15900
      fi
 
15901
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15902
      hardcode_libdir_separator_F77=:
 
15903
      ;;
 
15904
 
 
15905
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
15906
      if test "$GCC" = yes; then
 
15907
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
15908
        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'
 
15909
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15910
      else
 
15911
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
15912
        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'
 
15913
        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~
 
15914
        $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'
 
15915
 
 
15916
        # Both c and cxx compiler support -rpath directly
 
15917
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
 
15918
      fi
 
15919
      hardcode_libdir_separator_F77=:
 
15920
      ;;
 
15921
 
 
15922
    solaris*)
 
15923
      no_undefined_flag_F77=' -z text'
 
15924
      if test "$GCC" = yes; then
 
15925
        wlarc='${wl}'
 
15926
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15927
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15928
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
15929
      else
 
15930
        wlarc=''
 
15931
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15932
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15933
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
15934
      fi
 
15935
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15936
      hardcode_shlibpath_var_F77=no
 
15937
      case $host_os in
 
15938
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
15939
      *)
 
15940
        # The compiler driver will combine and reorder linker options,
 
15941
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
15942
        # but is careful enough not to reorder.
 
15943
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
15944
        if test "$GCC" = yes; then
 
15945
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
15946
        else
 
15947
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
 
15948
        fi
 
15949
        ;;
 
15950
      esac
 
15951
      link_all_deplibs_F77=yes
 
15952
      ;;
 
15953
 
 
15954
    sunos4*)
 
15955
      if test "x$host_vendor" = xsequent; then
 
15956
        # Use $CC to link under sequent, because it throws in some extra .o
 
15957
        # files that make .init and .fini sections work.
 
15958
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
15959
      else
 
15960
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
15961
      fi
 
15962
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15963
      hardcode_direct_F77=yes
 
15964
      hardcode_minus_L_F77=yes
 
15965
      hardcode_shlibpath_var_F77=no
 
15966
      ;;
 
15967
 
 
15968
    sysv4)
 
15969
      case $host_vendor in
 
15970
        sni)
 
15971
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15972
          hardcode_direct_F77=yes # is this really true???
 
15973
        ;;
 
15974
        siemens)
 
15975
          ## LD is ld it makes a PLAMLIB
 
15976
          ## CC just makes a GrossModule.
 
15977
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
15978
          reload_cmds_F77='$CC -r -o $output$reload_objs'
 
15979
          hardcode_direct_F77=no
 
15980
        ;;
 
15981
        motorola)
 
15982
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15983
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
 
15984
        ;;
 
15985
      esac
 
15986
      runpath_var='LD_RUN_PATH'
 
15987
      hardcode_shlibpath_var_F77=no
 
15988
      ;;
 
15989
 
 
15990
    sysv4.3*)
 
15991
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15992
      hardcode_shlibpath_var_F77=no
 
15993
      export_dynamic_flag_spec_F77='-Bexport'
 
15994
      ;;
 
15995
 
 
15996
    sysv4*MP*)
 
15997
      if test -d /usr/nec; then
 
15998
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15999
        hardcode_shlibpath_var_F77=no
 
16000
        runpath_var=LD_RUN_PATH
 
16001
        hardcode_runpath_var=yes
 
16002
        ld_shlibs_F77=yes
 
16003
      fi
 
16004
      ;;
 
16005
 
 
16006
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
16007
      no_undefined_flag_F77='${wl}-z,text'
 
16008
      archive_cmds_need_lc_F77=no
 
16009
      hardcode_shlibpath_var_F77=no
 
16010
      runpath_var='LD_RUN_PATH'
 
16011
 
 
16012
      if test "$GCC" = yes; then
 
16013
        archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16014
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16015
      else
 
16016
        archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16017
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16018
      fi
 
16019
      ;;
 
16020
 
 
16021
    sysv5* | sco3.2v5* | sco5v6*)
 
16022
      # Note: We can NOT use -z defs as we might desire, because we do not
 
16023
      # link with -lc, and that would cause any symbols used from libc to
 
16024
      # always be unresolved, which means just about no library would
 
16025
      # ever link correctly.  If we're not using GNU ld we use -z text
 
16026
      # though, which does catch some bad symbols but isn't as heavy-handed
 
16027
      # as -z defs.
 
16028
      no_undefined_flag_F77='${wl}-z,text'
 
16029
      allow_undefined_flag_F77='${wl}-z,nodefs'
 
16030
      archive_cmds_need_lc_F77=no
 
16031
      hardcode_shlibpath_var_F77=no
 
16032
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
16033
      hardcode_libdir_separator_F77=':'
 
16034
      link_all_deplibs_F77=yes
 
16035
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
16036
      runpath_var='LD_RUN_PATH'
 
16037
 
 
16038
      if test "$GCC" = yes; then
 
16039
        archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16040
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16041
      else
 
16042
        archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16043
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16044
      fi
 
16045
      ;;
 
16046
 
 
16047
    uts4*)
 
16048
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16049
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
16050
      hardcode_shlibpath_var_F77=no
 
16051
      ;;
 
16052
 
 
16053
    *)
 
16054
      ld_shlibs_F77=no
 
16055
      ;;
 
16056
    esac
 
16057
  fi
 
16058
 
 
16059
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
16060
$as_echo "$ld_shlibs_F77" >&6; }
 
16061
test "$ld_shlibs_F77" = no && can_build_shared=no
 
16062
 
 
16063
#
 
16064
# Do we need to explicitly link libc?
 
16065
#
 
16066
case "x$archive_cmds_need_lc_F77" in
 
16067
x|xyes)
 
16068
  # Assume -lc should be added
 
16069
  archive_cmds_need_lc_F77=yes
 
16070
 
 
16071
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
16072
    case $archive_cmds_F77 in
 
16073
    *'~'*)
 
16074
      # FIXME: we may have to deal with multi-command sequences.
 
16075
      ;;
 
16076
    '$CC '*)
 
16077
      # Test whether the compiler implicitly links with -lc since on some
 
16078
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
16079
      # to ld, don't add -lc before -lgcc.
 
16080
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
16081
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
16082
      $rm conftest*
 
16083
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16084
 
 
16085
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16086
  (eval $ac_compile) 2>&5
 
16087
  ac_status=$?
 
16088
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16089
  (exit $ac_status); } 2>conftest.err; then
 
16090
        soname=conftest
 
16091
        lib=conftest
 
16092
        libobjs=conftest.$ac_objext
 
16093
        deplibs=
 
16094
        wl=$lt_prog_compiler_wl_F77
 
16095
        pic_flag=$lt_prog_compiler_pic_F77
 
16096
        compiler_flags=-v
 
16097
        linker_flags=-v
 
16098
        verstring=
 
16099
        output_objdir=.
 
16100
        libname=conftest
 
16101
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
 
16102
        allow_undefined_flag_F77=
 
16103
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
16104
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
16105
  ac_status=$?
 
16106
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16107
  (exit $ac_status); }
 
16108
        then
 
16109
          archive_cmds_need_lc_F77=no
 
16110
        else
 
16111
          archive_cmds_need_lc_F77=yes
 
16112
        fi
 
16113
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
 
16114
      else
 
16115
        cat conftest.err 1>&5
 
16116
      fi
 
16117
      $rm conftest*
 
16118
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
16119
$as_echo "$archive_cmds_need_lc_F77" >&6; }
 
16120
      ;;
 
16121
    esac
 
16122
  fi
 
16123
  ;;
 
16124
esac
 
16125
 
 
16126
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
16127
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
16128
library_names_spec=
 
16129
libname_spec='lib$name'
 
16130
soname_spec=
 
16131
shrext_cmds=".so"
 
16132
postinstall_cmds=
 
16133
postuninstall_cmds=
 
16134
finish_cmds=
 
16135
finish_eval=
 
16136
shlibpath_var=
 
16137
shlibpath_overrides_runpath=unknown
 
16138
version_type=none
 
16139
dynamic_linker="$host_os ld.so"
 
16140
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
16141
 
 
16142
need_lib_prefix=unknown
 
16143
hardcode_into_libs=no
 
16144
 
 
16145
# when you set need_version to no, make sure it does not cause -set_version
 
16146
# flags to be left without arguments
 
16147
need_version=unknown
 
16148
 
 
16149
case $host_os in
 
16150
aix3*)
 
16151
  version_type=linux
 
16152
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
16153
  shlibpath_var=LIBPATH
 
16154
 
 
16155
  # AIX 3 has no versioning support, so we append a major version to the name.
 
16156
  soname_spec='${libname}${release}${shared_ext}$major'
 
16157
  ;;
 
16158
 
 
16159
aix[4-9]*)
 
16160
  version_type=linux
 
16161
  need_lib_prefix=no
 
16162
  need_version=no
 
16163
  hardcode_into_libs=yes
 
16164
  if test "$host_cpu" = ia64; then
 
16165
    # AIX 5 supports IA64
 
16166
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
16167
    shlibpath_var=LD_LIBRARY_PATH
 
16168
  else
 
16169
    # With GCC up to 2.95.x, collect2 would create an import file
 
16170
    # for dependence libraries.  The import file would start with
 
16171
    # the line `#! .'.  This would cause the generated library to
 
16172
    # depend on `.', always an invalid library.  This was fixed in
 
16173
    # development snapshots of GCC prior to 3.0.
 
16174
    case $host_os in
 
16175
      aix4 | aix4.[01] | aix4.[01].*)
 
16176
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
16177
           echo ' yes '
 
16178
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
16179
        :
 
16180
      else
 
16181
        can_build_shared=no
 
16182
      fi
 
16183
      ;;
 
16184
    esac
 
16185
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
16186
    # soname into executable. Probably we can add versioning support to
 
16187
    # collect2, so additional links can be useful in future.
 
16188
    if test "$aix_use_runtimelinking" = yes; then
 
16189
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
16190
      # instead of lib<name>.a to let people know that these are not
 
16191
      # typical AIX shared libraries.
 
16192
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16193
    else
 
16194
      # We preserve .a as extension for shared libraries through AIX4.2
 
16195
      # and later when we are not doing run time linking.
 
16196
      library_names_spec='${libname}${release}.a $libname.a'
 
16197
      soname_spec='${libname}${release}${shared_ext}$major'
 
16198
    fi
 
16199
    shlibpath_var=LIBPATH
 
16200
  fi
 
16201
  ;;
 
16202
 
 
16203
amigaos*)
 
16204
  library_names_spec='$libname.ixlibrary $libname.a'
 
16205
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
16206
  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'
 
16207
  ;;
 
16208
 
 
16209
beos*)
 
16210
  library_names_spec='${libname}${shared_ext}'
 
16211
  dynamic_linker="$host_os ld.so"
 
16212
  shlibpath_var=LIBRARY_PATH
 
16213
  ;;
 
16214
 
 
16215
bsdi[45]*)
 
16216
  version_type=linux
 
16217
  need_version=no
 
16218
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16219
  soname_spec='${libname}${release}${shared_ext}$major'
 
16220
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
16221
  shlibpath_var=LD_LIBRARY_PATH
 
16222
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
16223
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
16224
  # the default ld.so.conf also contains /usr/contrib/lib and
 
16225
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
16226
  # libtool to hard-code these into programs
 
16227
  ;;
 
16228
 
 
16229
cygwin* | mingw* | pw32*)
 
16230
  version_type=windows
 
16231
  shrext_cmds=".dll"
 
16232
  need_version=no
 
16233
  need_lib_prefix=no
 
16234
 
 
16235
  case $GCC,$host_os in
 
16236
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
16237
    library_names_spec='$libname.dll.a'
 
16238
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
16239
    postinstall_cmds='base_file=`basename \${file}`~
 
16240
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
16241
      dldir=$destdir/`dirname \$dlpath`~
 
16242
      test -d \$dldir || mkdir -p \$dldir~
 
16243
      $install_prog $dir/$dlname \$dldir/$dlname~
 
16244
      chmod a+x \$dldir/$dlname'
 
16245
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
16246
      dlpath=$dir/\$dldll~
 
16247
       $rm \$dlpath'
 
16248
    shlibpath_overrides_runpath=yes
 
16249
 
 
16250
    case $host_os in
 
16251
    cygwin*)
 
16252
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
16253
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
16254
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
16255
      ;;
 
16256
    mingw*)
 
16257
      # MinGW DLLs use traditional 'lib' prefix
 
16258
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
16259
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
16260
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
16261
        # It is most probably a Windows format PATH printed by
 
16262
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
16263
        # path with ; separators, and with drive letters. We can handle the
 
16264
        # drive letters (cygwin fileutils understands them), so leave them,
 
16265
        # especially as we might pass files found there to a mingw objdump,
 
16266
        # which wouldn't understand a cygwinified path. Ahh.
 
16267
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
16268
      else
 
16269
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
16270
      fi
 
16271
      ;;
 
16272
    pw32*)
 
16273
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
16274
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
16275
      ;;
 
16276
    esac
 
16277
    ;;
 
16278
 
 
16279
  *)
 
16280
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
16281
    ;;
 
16282
  esac
 
16283
  dynamic_linker='Win32 ld.exe'
 
16284
  # FIXME: first we should search . and the directory the executable is in
 
16285
  shlibpath_var=PATH
 
16286
  ;;
 
16287
 
 
16288
darwin* | rhapsody*)
 
16289
  dynamic_linker="$host_os dyld"
 
16290
  version_type=darwin
 
16291
  need_lib_prefix=no
 
16292
  need_version=no
 
16293
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
16294
  soname_spec='${libname}${release}${major}$shared_ext'
 
16295
  shlibpath_overrides_runpath=yes
 
16296
  shlibpath_var=DYLD_LIBRARY_PATH
 
16297
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
16298
 
 
16299
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
16300
  ;;
 
16301
 
 
16302
dgux*)
 
16303
  version_type=linux
 
16304
  need_lib_prefix=no
 
16305
  need_version=no
 
16306
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
16307
  soname_spec='${libname}${release}${shared_ext}$major'
 
16308
  shlibpath_var=LD_LIBRARY_PATH
 
16309
  ;;
 
16310
 
 
16311
freebsd1*)
 
16312
  dynamic_linker=no
 
16313
  ;;
 
16314
 
 
16315
freebsd* | dragonfly*)
 
16316
  # DragonFly does not have aout.  When/if they implement a new
 
16317
  # versioning mechanism, adjust this.
 
16318
  if test -x /usr/bin/objformat; then
 
16319
    objformat=`/usr/bin/objformat`
 
16320
  else
 
16321
    case $host_os in
 
16322
    freebsd[123]*) objformat=aout ;;
 
16323
    *) objformat=elf ;;
 
16324
    esac
 
16325
  fi
 
16326
  version_type=freebsd-$objformat
 
16327
  case $version_type in
 
16328
    freebsd-elf*)
 
16329
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16330
      need_version=no
 
16331
      need_lib_prefix=no
 
16332
      ;;
 
16333
    freebsd-*)
 
16334
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
16335
      need_version=yes
 
16336
      ;;
 
16337
  esac
 
16338
  shlibpath_var=LD_LIBRARY_PATH
 
16339
  case $host_os in
 
16340
  freebsd2*)
 
16341
    shlibpath_overrides_runpath=yes
 
16342
    ;;
 
16343
  freebsd3.[01]* | freebsdelf3.[01]*)
 
16344
    shlibpath_overrides_runpath=yes
 
16345
    hardcode_into_libs=yes
 
16346
    ;;
 
16347
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
16348
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
16349
    shlibpath_overrides_runpath=no
 
16350
    hardcode_into_libs=yes
 
16351
    ;;
 
16352
  *) # from 4.6 on, and DragonFly
 
16353
    shlibpath_overrides_runpath=yes
 
16354
    hardcode_into_libs=yes
 
16355
    ;;
 
16356
  esac
 
16357
  ;;
 
16358
 
 
16359
gnu*)
 
16360
  version_type=linux
 
16361
  need_lib_prefix=no
 
16362
  need_version=no
 
16363
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
16364
  soname_spec='${libname}${release}${shared_ext}$major'
 
16365
  shlibpath_var=LD_LIBRARY_PATH
 
16366
  hardcode_into_libs=yes
 
16367
  ;;
 
16368
 
 
16369
hpux9* | hpux10* | hpux11*)
 
16370
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
16371
  # link against other versions.
 
16372
  version_type=sunos
 
16373
  need_lib_prefix=no
 
16374
  need_version=no
 
16375
  case $host_cpu in
 
16376
  ia64*)
 
16377
    shrext_cmds='.so'
 
16378
    hardcode_into_libs=yes
 
16379
    dynamic_linker="$host_os dld.so"
 
16380
    shlibpath_var=LD_LIBRARY_PATH
 
16381
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
16382
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16383
    soname_spec='${libname}${release}${shared_ext}$major'
 
16384
    if test "X$HPUX_IA64_MODE" = X32; then
 
16385
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
16386
    else
 
16387
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
16388
    fi
 
16389
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
16390
    ;;
 
16391
   hppa*64*)
 
16392
     shrext_cmds='.sl'
 
16393
     hardcode_into_libs=yes
 
16394
     dynamic_linker="$host_os dld.sl"
 
16395
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
16396
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
16397
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16398
     soname_spec='${libname}${release}${shared_ext}$major'
 
16399
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
16400
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
16401
     ;;
 
16402
   *)
 
16403
    shrext_cmds='.sl'
 
16404
    dynamic_linker="$host_os dld.sl"
 
16405
    shlibpath_var=SHLIB_PATH
 
16406
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
16407
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16408
    soname_spec='${libname}${release}${shared_ext}$major'
 
16409
    ;;
 
16410
  esac
 
16411
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
16412
  postinstall_cmds='chmod 555 $lib'
 
16413
  ;;
 
16414
 
 
16415
interix[3-9]*)
 
16416
  version_type=linux
 
16417
  need_lib_prefix=no
 
16418
  need_version=no
 
16419
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16420
  soname_spec='${libname}${release}${shared_ext}$major'
 
16421
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
16422
  shlibpath_var=LD_LIBRARY_PATH
 
16423
  shlibpath_overrides_runpath=no
 
16424
  hardcode_into_libs=yes
 
16425
  ;;
 
16426
 
 
16427
irix5* | irix6* | nonstopux*)
 
16428
  case $host_os in
 
16429
    nonstopux*) version_type=nonstopux ;;
 
16430
    *)
 
16431
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
16432
                version_type=linux
 
16433
        else
 
16434
                version_type=irix
 
16435
        fi ;;
 
16436
  esac
 
16437
  need_lib_prefix=no
 
16438
  need_version=no
 
16439
  soname_spec='${libname}${release}${shared_ext}$major'
 
16440
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16441
  case $host_os in
 
16442
  irix5* | nonstopux*)
 
16443
    libsuff= shlibsuff=
 
16444
    ;;
 
16445
  *)
 
16446
    case $LD in # libtool.m4 will add one of these switches to LD
 
16447
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
16448
      libsuff= shlibsuff= libmagic=32-bit;;
 
16449
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
16450
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
16451
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
16452
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
16453
    *) libsuff= shlibsuff= libmagic=never-match;;
 
16454
    esac
 
16455
    ;;
 
16456
  esac
 
16457
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
16458
  shlibpath_overrides_runpath=no
 
16459
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
16460
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
16461
  hardcode_into_libs=yes
 
16462
  ;;
 
16463
 
 
16464
# No shared lib support for Linux oldld, aout, or coff.
 
16465
linux*oldld* | linux*aout* | linux*coff*)
 
16466
  dynamic_linker=no
 
16467
  ;;
 
16468
 
 
16469
# This must be Linux ELF.
 
16470
linux* | k*bsd*-gnu)
 
16471
  version_type=linux
 
16472
  need_lib_prefix=no
 
16473
  need_version=no
 
16474
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16475
  soname_spec='${libname}${release}${shared_ext}$major'
 
16476
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
16477
  shlibpath_var=LD_LIBRARY_PATH
 
16478
  shlibpath_overrides_runpath=no
 
16479
  # This implies no fast_install, which is unacceptable.
 
16480
  # Some rework will be needed to allow for fast_install
 
16481
  # before this can be enabled.
 
16482
  hardcode_into_libs=yes
 
16483
 
 
16484
  # find out which ABI we are using
 
16485
  libsuff=
 
16486
  case "$host_cpu" in
 
16487
  x86_64*|s390x*|powerpc64*)
 
16488
    echo '#line 16488 "configure"' > conftest.$ac_ext
 
16489
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16490
  (eval $ac_compile) 2>&5
 
16491
  ac_status=$?
 
16492
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16493
  (exit $ac_status); }; then
 
16494
      case `/usr/bin/file conftest.$ac_objext` in
 
16495
      *64-bit*)
 
16496
        libsuff=64
 
16497
        ;;
 
16498
      esac
 
16499
    fi
 
16500
    rm -rf conftest*
 
16501
    ;;
 
16502
  esac
 
16503
 
 
16504
  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
 
16505
 
 
16506
  # Append ld.so.conf contents to the search path
 
16507
  if test -f /etc/ld.so.conf; then
 
16508
    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' ' '`
 
16509
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
 
16510
  fi
 
16511
 
 
16512
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
16513
  # powerpc, because MkLinux only supported shared libraries with the
 
16514
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
16515
  # most powerpc-linux boxes support dynamic linking these days and
 
16516
  # people can always --disable-shared, the test was removed, and we
 
16517
  # assume the GNU/Linux dynamic linker is in use.
 
16518
  dynamic_linker='GNU/Linux ld.so'
 
16519
  ;;
 
16520
 
 
16521
netbsd*)
 
16522
  version_type=sunos
 
16523
  need_lib_prefix=no
 
16524
  need_version=no
 
16525
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16526
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16527
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
16528
    dynamic_linker='NetBSD (a.out) ld.so'
 
16529
  else
 
16530
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16531
    soname_spec='${libname}${release}${shared_ext}$major'
 
16532
    dynamic_linker='NetBSD ld.elf_so'
 
16533
  fi
 
16534
  shlibpath_var=LD_LIBRARY_PATH
 
16535
  shlibpath_overrides_runpath=yes
 
16536
  hardcode_into_libs=yes
 
16537
  ;;
 
16538
 
 
16539
newsos6)
 
16540
  version_type=linux
 
16541
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16542
  shlibpath_var=LD_LIBRARY_PATH
 
16543
  shlibpath_overrides_runpath=yes
 
16544
  ;;
 
16545
 
 
16546
nto-qnx*)
 
16547
  version_type=linux
 
16548
  need_lib_prefix=no
 
16549
  need_version=no
 
16550
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16551
  soname_spec='${libname}${release}${shared_ext}$major'
 
16552
  shlibpath_var=LD_LIBRARY_PATH
 
16553
  shlibpath_overrides_runpath=yes
 
16554
  ;;
 
16555
 
 
16556
openbsd*)
 
16557
  version_type=sunos
 
16558
  sys_lib_dlsearch_path_spec="/usr/lib"
 
16559
  need_lib_prefix=no
 
16560
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
16561
  case $host_os in
 
16562
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
16563
    *)                         need_version=no  ;;
 
16564
  esac
 
16565
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16566
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
16567
  shlibpath_var=LD_LIBRARY_PATH
 
16568
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
16569
    case $host_os in
 
16570
      openbsd2.[89] | openbsd2.[89].*)
 
16571
        shlibpath_overrides_runpath=no
 
16572
        ;;
 
16573
      *)
 
16574
        shlibpath_overrides_runpath=yes
 
16575
        ;;
 
16576
      esac
 
16577
  else
 
16578
    shlibpath_overrides_runpath=yes
 
16579
  fi
 
16580
  ;;
 
16581
 
 
16582
os2*)
 
16583
  libname_spec='$name'
 
16584
  shrext_cmds=".dll"
 
16585
  need_lib_prefix=no
 
16586
  library_names_spec='$libname${shared_ext} $libname.a'
 
16587
  dynamic_linker='OS/2 ld.exe'
 
16588
  shlibpath_var=LIBPATH
 
16589
  ;;
 
16590
 
 
16591
osf3* | osf4* | osf5*)
 
16592
  version_type=osf
 
16593
  need_lib_prefix=no
 
16594
  need_version=no
 
16595
  soname_spec='${libname}${release}${shared_ext}$major'
 
16596
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16597
  shlibpath_var=LD_LIBRARY_PATH
 
16598
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
16599
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
16600
  ;;
 
16601
 
 
16602
rdos*)
 
16603
  dynamic_linker=no
 
16604
  ;;
 
16605
 
 
16606
solaris*)
 
16607
  version_type=linux
 
16608
  need_lib_prefix=no
 
16609
  need_version=no
 
16610
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16611
  soname_spec='${libname}${release}${shared_ext}$major'
 
16612
  shlibpath_var=LD_LIBRARY_PATH
 
16613
  shlibpath_overrides_runpath=yes
 
16614
  hardcode_into_libs=yes
 
16615
  # ldd complains unless libraries are executable
 
16616
  postinstall_cmds='chmod +x $lib'
 
16617
  ;;
 
16618
 
 
16619
sunos4*)
 
16620
  version_type=sunos
 
16621
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16622
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
16623
  shlibpath_var=LD_LIBRARY_PATH
 
16624
  shlibpath_overrides_runpath=yes
 
16625
  if test "$with_gnu_ld" = yes; then
 
16626
    need_lib_prefix=no
 
16627
  fi
 
16628
  need_version=yes
 
16629
  ;;
 
16630
 
 
16631
sysv4 | sysv4.3*)
 
16632
  version_type=linux
 
16633
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16634
  soname_spec='${libname}${release}${shared_ext}$major'
 
16635
  shlibpath_var=LD_LIBRARY_PATH
 
16636
  case $host_vendor in
 
16637
    sni)
 
16638
      shlibpath_overrides_runpath=no
 
16639
      need_lib_prefix=no
 
16640
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
16641
      runpath_var=LD_RUN_PATH
 
16642
      ;;
 
16643
    siemens)
 
16644
      need_lib_prefix=no
 
16645
      ;;
 
16646
    motorola)
 
16647
      need_lib_prefix=no
 
16648
      need_version=no
 
16649
      shlibpath_overrides_runpath=no
 
16650
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
16651
      ;;
 
16652
  esac
 
16653
  ;;
 
16654
 
 
16655
sysv4*MP*)
 
16656
  if test -d /usr/nec ;then
 
16657
    version_type=linux
 
16658
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
16659
    soname_spec='$libname${shared_ext}.$major'
 
16660
    shlibpath_var=LD_LIBRARY_PATH
 
16661
  fi
 
16662
  ;;
 
16663
 
 
16664
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
16665
  version_type=freebsd-elf
 
16666
  need_lib_prefix=no
 
16667
  need_version=no
 
16668
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16669
  soname_spec='${libname}${release}${shared_ext}$major'
 
16670
  shlibpath_var=LD_LIBRARY_PATH
 
16671
  hardcode_into_libs=yes
 
16672
  if test "$with_gnu_ld" = yes; then
 
16673
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
16674
    shlibpath_overrides_runpath=no
 
16675
  else
 
16676
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
16677
    shlibpath_overrides_runpath=yes
 
16678
    case $host_os in
 
16679
      sco3.2v5*)
 
16680
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
16681
        ;;
 
16682
    esac
 
16683
  fi
 
16684
  sys_lib_dlsearch_path_spec='/usr/lib'
 
16685
  ;;
 
16686
 
 
16687
uts4*)
 
16688
  version_type=linux
 
16689
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16690
  soname_spec='${libname}${release}${shared_ext}$major'
 
16691
  shlibpath_var=LD_LIBRARY_PATH
 
16692
  ;;
 
16693
 
 
16694
*)
 
16695
  dynamic_linker=no
 
16696
  ;;
 
16697
esac
 
16698
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
16699
$as_echo "$dynamic_linker" >&6; }
 
16700
test "$dynamic_linker" = no && can_build_shared=no
 
16701
 
 
16702
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
16703
  $as_echo_n "(cached) " >&6
 
16704
else
 
16705
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
16706
fi
 
16707
 
 
16708
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
16709
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
16710
  $as_echo_n "(cached) " >&6
 
16711
else
 
16712
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
16713
fi
 
16714
 
 
16715
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
16716
 
 
16717
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
16718
if test "$GCC" = yes; then
 
16719
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
16720
fi
 
16721
 
 
16722
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
16723
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
16724
hardcode_action_F77=
 
16725
if test -n "$hardcode_libdir_flag_spec_F77" || \
 
16726
   test -n "$runpath_var_F77" || \
 
16727
   test "X$hardcode_automatic_F77" = "Xyes" ; then
 
16728
 
 
16729
  # We can hardcode non-existant directories.
 
16730
  if test "$hardcode_direct_F77" != no &&
 
16731
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
16732
     # have to relink, otherwise we might link with an installed library
 
16733
     # when we should be linking with a yet-to-be-installed one
 
16734
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
 
16735
     test "$hardcode_minus_L_F77" != no; then
 
16736
    # Linking always hardcodes the temporary library directory.
 
16737
    hardcode_action_F77=relink
 
16738
  else
 
16739
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
16740
    hardcode_action_F77=immediate
 
16741
  fi
 
16742
else
 
16743
  # We cannot hardcode anything, or else we can only hardcode existing
 
16744
  # directories.
 
16745
  hardcode_action_F77=unsupported
 
16746
fi
 
16747
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
16748
$as_echo "$hardcode_action_F77" >&6; }
 
16749
 
 
16750
if test "$hardcode_action_F77" = relink; then
 
16751
  # Fast installation is not supported
 
16752
  enable_fast_install=no
 
16753
elif test "$shlibpath_overrides_runpath" = yes ||
 
16754
     test "$enable_shared" = no; then
 
16755
  # Fast installation is not necessary
 
16756
  enable_fast_install=needless
 
16757
fi
 
16758
 
 
16759
 
 
16760
# The else clause should only fire when bootstrapping the
 
16761
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
16762
# with your package, and you will get complaints that there are
 
16763
# no rules to generate ltmain.sh.
 
16764
if test -f "$ltmain"; then
 
16765
  # See if we are running on zsh, and set the options which allow our commands through
 
16766
  # without removal of \ escapes.
 
16767
  if test -n "${ZSH_VERSION+set}" ; then
 
16768
    setopt NO_GLOB_SUBST
 
16769
  fi
 
16770
  # Now quote all the things that may contain metacharacters while being
 
16771
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
16772
  # variables and quote the copies for generation of the libtool script.
 
16773
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
16774
    SED SHELL STRIP \
 
16775
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
16776
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
16777
    deplibs_check_method reload_flag reload_cmds need_locks \
 
16778
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
16779
    lt_cv_sys_global_symbol_to_c_name_address \
 
16780
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
16781
    old_postinstall_cmds old_postuninstall_cmds \
 
16782
    compiler_F77 \
 
16783
    CC_F77 \
 
16784
    LD_F77 \
 
16785
    lt_prog_compiler_wl_F77 \
 
16786
    lt_prog_compiler_pic_F77 \
 
16787
    lt_prog_compiler_static_F77 \
 
16788
    lt_prog_compiler_no_builtin_flag_F77 \
 
16789
    export_dynamic_flag_spec_F77 \
 
16790
    thread_safe_flag_spec_F77 \
 
16791
    whole_archive_flag_spec_F77 \
 
16792
    enable_shared_with_static_runtimes_F77 \
 
16793
    old_archive_cmds_F77 \
 
16794
    old_archive_from_new_cmds_F77 \
 
16795
    predep_objects_F77 \
 
16796
    postdep_objects_F77 \
 
16797
    predeps_F77 \
 
16798
    postdeps_F77 \
 
16799
    compiler_lib_search_path_F77 \
 
16800
    compiler_lib_search_dirs_F77 \
 
16801
    archive_cmds_F77 \
 
16802
    archive_expsym_cmds_F77 \
 
16803
    postinstall_cmds_F77 \
 
16804
    postuninstall_cmds_F77 \
 
16805
    old_archive_from_expsyms_cmds_F77 \
 
16806
    allow_undefined_flag_F77 \
 
16807
    no_undefined_flag_F77 \
 
16808
    export_symbols_cmds_F77 \
 
16809
    hardcode_libdir_flag_spec_F77 \
 
16810
    hardcode_libdir_flag_spec_ld_F77 \
 
16811
    hardcode_libdir_separator_F77 \
 
16812
    hardcode_automatic_F77 \
 
16813
    module_cmds_F77 \
 
16814
    module_expsym_cmds_F77 \
 
16815
    lt_cv_prog_compiler_c_o_F77 \
 
16816
    fix_srcfile_path_F77 \
 
16817
    exclude_expsyms_F77 \
 
16818
    include_expsyms_F77; do
 
16819
 
 
16820
    case $var in
 
16821
    old_archive_cmds_F77 | \
 
16822
    old_archive_from_new_cmds_F77 | \
 
16823
    archive_cmds_F77 | \
 
16824
    archive_expsym_cmds_F77 | \
 
16825
    module_cmds_F77 | \
 
16826
    module_expsym_cmds_F77 | \
 
16827
    old_archive_from_expsyms_cmds_F77 | \
 
16828
    export_symbols_cmds_F77 | \
 
16829
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
16830
    postinstall_cmds | postuninstall_cmds | \
 
16831
    old_postinstall_cmds | old_postuninstall_cmds | \
 
16832
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
16833
      # Double-quote double-evaled strings.
 
16834
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
16835
      ;;
 
16836
    *)
 
16837
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
16838
      ;;
 
16839
    esac
 
16840
  done
 
16841
 
 
16842
  case $lt_echo in
 
16843
  *'\$0 --fallback-echo"')
 
16844
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
16845
    ;;
 
16846
  esac
 
16847
 
 
16848
cfgfile="$ofile"
 
16849
 
 
16850
  cat <<__EOF__ >> "$cfgfile"
 
16851
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
16852
 
 
16853
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
16854
 
 
16855
# Shell to use when invoking shell scripts.
 
16856
SHELL=$lt_SHELL
 
16857
 
 
16858
# Whether or not to build shared libraries.
 
16859
build_libtool_libs=$enable_shared
 
16860
 
 
16861
# Whether or not to build static libraries.
 
16862
build_old_libs=$enable_static
 
16863
 
 
16864
# Whether or not to add -lc for building shared libraries.
 
16865
build_libtool_need_lc=$archive_cmds_need_lc_F77
 
16866
 
 
16867
# Whether or not to disallow shared libs when runtime libs are static
 
16868
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
 
16869
 
 
16870
# Whether or not to optimize for fast installation.
 
16871
fast_install=$enable_fast_install
 
16872
 
 
16873
# The host system.
 
16874
host_alias=$host_alias
 
16875
host=$host
 
16876
host_os=$host_os
 
16877
 
 
16878
# The build system.
 
16879
build_alias=$build_alias
 
16880
build=$build
 
16881
build_os=$build_os
 
16882
 
 
16883
# An echo program that does not interpret backslashes.
 
16884
echo=$lt_echo
 
16885
 
 
16886
# The archiver.
 
16887
AR=$lt_AR
 
16888
AR_FLAGS=$lt_AR_FLAGS
 
16889
 
 
16890
# A C compiler.
 
16891
LTCC=$lt_LTCC
 
16892
 
 
16893
# LTCC compiler flags.
 
16894
LTCFLAGS=$lt_LTCFLAGS
 
16895
 
 
16896
# A language-specific compiler.
 
16897
CC=$lt_compiler_F77
 
16898
 
 
16899
# Is the compiler the GNU C compiler?
 
16900
with_gcc=$GCC_F77
 
16901
 
 
16902
# An ERE matcher.
 
16903
EGREP=$lt_EGREP
 
16904
 
 
16905
# The linker used to build libraries.
 
16906
LD=$lt_LD_F77
 
16907
 
 
16908
# Whether we need hard or soft links.
 
16909
LN_S=$lt_LN_S
 
16910
 
 
16911
# A BSD-compatible nm program.
 
16912
NM=$lt_NM
 
16913
 
 
16914
# A symbol stripping program
 
16915
STRIP=$lt_STRIP
 
16916
 
 
16917
# Used to examine libraries when file_magic_cmd begins "file"
 
16918
MAGIC_CMD=$MAGIC_CMD
 
16919
 
 
16920
# Used on cygwin: DLL creation program.
 
16921
DLLTOOL="$DLLTOOL"
 
16922
 
 
16923
# Used on cygwin: object dumper.
 
16924
OBJDUMP="$OBJDUMP"
 
16925
 
 
16926
# Used on cygwin: assembler.
 
16927
AS="$AS"
 
16928
 
 
16929
# The name of the directory that contains temporary libtool files.
 
16930
objdir=$objdir
 
16931
 
 
16932
# How to create reloadable object files.
 
16933
reload_flag=$lt_reload_flag
 
16934
reload_cmds=$lt_reload_cmds
 
16935
 
 
16936
# How to pass a linker flag through the compiler.
 
16937
wl=$lt_lt_prog_compiler_wl_F77
 
16938
 
 
16939
# Object file suffix (normally "o").
 
16940
objext="$ac_objext"
 
16941
 
 
16942
# Old archive suffix (normally "a").
 
16943
libext="$libext"
 
16944
 
 
16945
# Shared library suffix (normally ".so").
 
16946
shrext_cmds='$shrext_cmds'
 
16947
 
 
16948
# Executable file suffix (normally "").
 
16949
exeext="$exeext"
 
16950
 
 
16951
# Additional compiler flags for building library objects.
 
16952
pic_flag=$lt_lt_prog_compiler_pic_F77
 
16953
pic_mode=$pic_mode
 
16954
 
 
16955
# What is the maximum length of a command?
 
16956
max_cmd_len=$lt_cv_sys_max_cmd_len
 
16957
 
 
16958
# Does compiler simultaneously support -c and -o options?
 
16959
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
 
16960
 
 
16961
# Must we lock files when doing compilation?
 
16962
need_locks=$lt_need_locks
 
16963
 
 
16964
# Do we need the lib prefix for modules?
 
16965
need_lib_prefix=$need_lib_prefix
 
16966
 
 
16967
# Do we need a version for libraries?
 
16968
need_version=$need_version
 
16969
 
 
16970
# Whether dlopen is supported.
 
16971
dlopen_support=$enable_dlopen
 
16972
 
 
16973
# Whether dlopen of programs is supported.
 
16974
dlopen_self=$enable_dlopen_self
 
16975
 
 
16976
# Whether dlopen of statically linked programs is supported.
 
16977
dlopen_self_static=$enable_dlopen_self_static
 
16978
 
 
16979
# Compiler flag to prevent dynamic linking.
 
16980
link_static_flag=$lt_lt_prog_compiler_static_F77
 
16981
 
 
16982
# Compiler flag to turn off builtin functions.
 
16983
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
 
16984
 
 
16985
# Compiler flag to allow reflexive dlopens.
 
16986
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
 
16987
 
 
16988
# Compiler flag to generate shared objects directly from archives.
 
16989
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
 
16990
 
 
16991
# Compiler flag to generate thread-safe objects.
 
16992
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
 
16993
 
 
16994
# Library versioning type.
 
16995
version_type=$version_type
 
16996
 
 
16997
# Format of library name prefix.
 
16998
libname_spec=$lt_libname_spec
 
16999
 
 
17000
# List of archive names.  First name is the real one, the rest are links.
 
17001
# The last name is the one that the linker finds with -lNAME.
 
17002
library_names_spec=$lt_library_names_spec
 
17003
 
 
17004
# The coded name of the library, if different from the real name.
 
17005
soname_spec=$lt_soname_spec
 
17006
 
 
17007
# Commands used to build and install an old-style archive.
 
17008
RANLIB=$lt_RANLIB
 
17009
old_archive_cmds=$lt_old_archive_cmds_F77
 
17010
old_postinstall_cmds=$lt_old_postinstall_cmds
 
17011
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
17012
 
 
17013
# Create an old-style archive from a shared archive.
 
17014
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
 
17015
 
 
17016
# Create a temporary old-style archive to link instead of a shared archive.
 
17017
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
 
17018
 
 
17019
# Commands used to build and install a shared archive.
 
17020
archive_cmds=$lt_archive_cmds_F77
 
17021
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
 
17022
postinstall_cmds=$lt_postinstall_cmds
 
17023
postuninstall_cmds=$lt_postuninstall_cmds
 
17024
 
 
17025
# Commands used to build a loadable module (assumed same as above if empty)
 
17026
module_cmds=$lt_module_cmds_F77
 
17027
module_expsym_cmds=$lt_module_expsym_cmds_F77
 
17028
 
 
17029
# Commands to strip libraries.
 
17030
old_striplib=$lt_old_striplib
 
17031
striplib=$lt_striplib
 
17032
 
 
17033
# Dependencies to place before the objects being linked to create a
 
17034
# shared library.
 
17035
predep_objects=$lt_predep_objects_F77
 
17036
 
 
17037
# Dependencies to place after the objects being linked to create a
 
17038
# shared library.
 
17039
postdep_objects=$lt_postdep_objects_F77
 
17040
 
 
17041
# Dependencies to place before the objects being linked to create a
 
17042
# shared library.
 
17043
predeps=$lt_predeps_F77
 
17044
 
 
17045
# Dependencies to place after the objects being linked to create a
 
17046
# shared library.
 
17047
postdeps=$lt_postdeps_F77
 
17048
 
 
17049
# The directories searched by this compiler when creating a shared
 
17050
# library
 
17051
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
 
17052
 
 
17053
# The library search path used internally by the compiler when linking
 
17054
# a shared library.
 
17055
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
 
17056
 
 
17057
# Method to check whether dependent libraries are shared objects.
 
17058
deplibs_check_method=$lt_deplibs_check_method
 
17059
 
 
17060
# Command to use when deplibs_check_method == file_magic.
 
17061
file_magic_cmd=$lt_file_magic_cmd
 
17062
 
 
17063
# Flag that allows shared libraries with undefined symbols to be built.
 
17064
allow_undefined_flag=$lt_allow_undefined_flag_F77
 
17065
 
 
17066
# Flag that forces no undefined symbols.
 
17067
no_undefined_flag=$lt_no_undefined_flag_F77
 
17068
 
 
17069
# Commands used to finish a libtool library installation in a directory.
 
17070
finish_cmds=$lt_finish_cmds
 
17071
 
 
17072
# Same as above, but a single script fragment to be evaled but not shown.
 
17073
finish_eval=$lt_finish_eval
 
17074
 
 
17075
# Take the output of nm and produce a listing of raw symbols and C names.
 
17076
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
17077
 
 
17078
# Transform the output of nm in a proper C declaration
 
17079
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
17080
 
 
17081
# Transform the output of nm in a C name address pair
 
17082
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
17083
 
 
17084
# This is the shared library runtime path variable.
 
17085
runpath_var=$runpath_var
 
17086
 
 
17087
# This is the shared library path variable.
 
17088
shlibpath_var=$shlibpath_var
 
17089
 
 
17090
# Is shlibpath searched before the hard-coded library search path?
 
17091
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
17092
 
 
17093
# How to hardcode a shared library path into an executable.
 
17094
hardcode_action=$hardcode_action_F77
 
17095
 
 
17096
# Whether we should hardcode library paths into libraries.
 
17097
hardcode_into_libs=$hardcode_into_libs
 
17098
 
 
17099
# Flag to hardcode \$libdir into a binary during linking.
 
17100
# This must work even if \$libdir does not exist.
 
17101
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
 
17102
 
 
17103
# If ld is used when linking, flag to hardcode \$libdir into
 
17104
# a binary during linking. This must work even if \$libdir does
 
17105
# not exist.
 
17106
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
 
17107
 
 
17108
# Whether we need a single -rpath flag with a separated argument.
 
17109
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
 
17110
 
 
17111
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
17112
# resulting binary.
 
17113
hardcode_direct=$hardcode_direct_F77
 
17114
 
 
17115
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
17116
# resulting binary.
 
17117
hardcode_minus_L=$hardcode_minus_L_F77
 
17118
 
 
17119
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
17120
# the resulting binary.
 
17121
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
 
17122
 
 
17123
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
17124
# and all subsequent libraries and executables linked against it.
 
17125
hardcode_automatic=$hardcode_automatic_F77
 
17126
 
 
17127
# Variables whose values should be saved in libtool wrapper scripts and
 
17128
# restored at relink time.
 
17129
variables_saved_for_relink="$variables_saved_for_relink"
 
17130
 
 
17131
# Whether libtool must link a program against all its dependency libraries.
 
17132
link_all_deplibs=$link_all_deplibs_F77
 
17133
 
 
17134
# Compile-time system search path for libraries
 
17135
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
17136
 
 
17137
# Run-time system search path for libraries
 
17138
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
17139
 
 
17140
# Fix the shell variable \$srcfile for the compiler.
 
17141
fix_srcfile_path=$lt_fix_srcfile_path
 
17142
 
 
17143
# Set to yes if exported symbols are required.
 
17144
always_export_symbols=$always_export_symbols_F77
 
17145
 
 
17146
# The commands to list exported symbols.
 
17147
export_symbols_cmds=$lt_export_symbols_cmds_F77
 
17148
 
 
17149
# The commands to extract the exported symbol list from a shared archive.
 
17150
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
17151
 
 
17152
# Symbols that should not be listed in the preloaded symbols.
 
17153
exclude_expsyms=$lt_exclude_expsyms_F77
 
17154
 
 
17155
# Symbols that must always be exported.
 
17156
include_expsyms=$lt_include_expsyms_F77
 
17157
 
 
17158
# ### END LIBTOOL TAG CONFIG: $tagname
 
17159
 
 
17160
__EOF__
 
17161
 
 
17162
 
 
17163
else
 
17164
  # If there is no Makefile yet, we rely on a make rule to execute
 
17165
  # `config.status --recheck' to rerun these tests and create the
 
17166
  # libtool script then.
 
17167
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
17168
  if test -f "$ltmain_in"; then
 
17169
    test -f Makefile && make "$ltmain"
 
17170
  fi
 
17171
fi
 
17172
 
 
17173
 
 
17174
ac_ext=c
 
17175
ac_cpp='$CPP $CPPFLAGS'
 
17176
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
17177
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
17178
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
17179
 
 
17180
CC="$lt_save_CC"
 
17181
 
 
17182
        else
 
17183
          tagname=""
 
17184
        fi
 
17185
        ;;
 
17186
 
 
17187
      GCJ)
 
17188
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
17189
 
 
17190
 
 
17191
# Source file extension for Java test sources.
 
17192
ac_ext=java
 
17193
 
 
17194
# Object file extension for compiled Java test sources.
 
17195
objext=o
 
17196
objext_GCJ=$objext
 
17197
 
 
17198
# Code to be used in simple compile tests
 
17199
lt_simple_compile_test_code="class foo {}"
 
17200
 
 
17201
# Code to be used in simple link tests
 
17202
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
 
17203
 
 
17204
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
17205
 
 
17206
# If no C compiler was specified, use CC.
 
17207
LTCC=${LTCC-"$CC"}
 
17208
 
 
17209
# If no C compiler flags were specified, use CFLAGS.
 
17210
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
17211
 
 
17212
# Allow CC to be a program name with arguments.
 
17213
compiler=$CC
 
17214
 
 
17215
 
 
17216
# save warnings/boilerplate of simple test code
 
17217
ac_outfile=conftest.$ac_objext
 
17218
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
17219
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
17220
_lt_compiler_boilerplate=`cat conftest.err`
 
17221
$rm conftest*
 
17222
 
 
17223
ac_outfile=conftest.$ac_objext
 
17224
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
17225
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
17226
_lt_linker_boilerplate=`cat conftest.err`
 
17227
$rm -r conftest*
 
17228
 
 
17229
 
 
17230
# Allow CC to be a program name with arguments.
 
17231
lt_save_CC="$CC"
 
17232
CC=${GCJ-"gcj"}
 
17233
compiler=$CC
 
17234
compiler_GCJ=$CC
 
17235
for cc_temp in $compiler""; do
 
17236
  case $cc_temp in
 
17237
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
17238
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
17239
    \-*) ;;
 
17240
    *) break;;
 
17241
  esac
 
17242
done
 
17243
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
17244
 
 
17245
LD_GCJ="$LD"
 
17246
 
 
17247
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
17248
archive_cmds_need_lc_GCJ=no
 
17249
 
 
17250
old_archive_cmds_GCJ=$old_archive_cmds
 
17251
 
 
17252
 
 
17253
lt_prog_compiler_no_builtin_flag_GCJ=
 
17254
 
 
17255
if test "$GCC" = yes; then
 
17256
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
 
17257
 
 
17258
 
 
17259
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
17260
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
 
17261
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
17262
  $as_echo_n "(cached) " >&6
 
17263
else
 
17264
  lt_cv_prog_compiler_rtti_exceptions=no
 
17265
  ac_outfile=conftest.$ac_objext
 
17266
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17267
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
17268
   # Insert the option either (1) after the last *FLAGS variable, or
 
17269
   # (2) before a word containing "conftest.", or (3) at the end.
 
17270
   # Note that $ac_compile itself does not contain backslashes and begins
 
17271
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
17272
   # The option is referenced via a variable to avoid confusing sed.
 
17273
   lt_compile=`echo "$ac_compile" | $SED \
 
17274
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
17275
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
17276
   -e 's:$: $lt_compiler_flag:'`
 
17277
   (eval echo "\"\$as_me:17277: $lt_compile\"" >&5)
 
17278
   (eval "$lt_compile" 2>conftest.err)
 
17279
   ac_status=$?
 
17280
   cat conftest.err >&5
 
17281
   echo "$as_me:17281: \$? = $ac_status" >&5
 
17282
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
17283
     # The compiler can only warn and ignore the option if not recognized
 
17284
     # So say no if there are warnings other than the usual output.
 
17285
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
17286
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
17287
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
17288
       lt_cv_prog_compiler_rtti_exceptions=yes
 
17289
     fi
 
17290
   fi
 
17291
   $rm conftest*
 
17292
 
 
17293
fi
 
17294
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
17295
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
17296
 
 
17297
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
17298
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
 
17299
else
 
17300
    :
 
17301
fi
 
17302
 
 
17303
fi
 
17304
 
 
17305
lt_prog_compiler_wl_GCJ=
 
17306
lt_prog_compiler_pic_GCJ=
 
17307
lt_prog_compiler_static_GCJ=
 
17308
 
 
17309
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
17310
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
 
17311
 
 
17312
  if test "$GCC" = yes; then
 
17313
    lt_prog_compiler_wl_GCJ='-Wl,'
 
17314
    lt_prog_compiler_static_GCJ='-static'
 
17315
 
 
17316
    case $host_os in
 
17317
      aix*)
 
17318
      # All AIX code is PIC.
 
17319
      if test "$host_cpu" = ia64; then
 
17320
        # AIX 5 now supports IA64 processor
 
17321
        lt_prog_compiler_static_GCJ='-Bstatic'
 
17322
      fi
 
17323
      ;;
 
17324
 
 
17325
    amigaos*)
 
17326
      # FIXME: we need at least 68020 code to build shared libraries, but
 
17327
      # adding the `-m68020' flag to GCC prevents building anything better,
 
17328
      # like `-m68040'.
 
17329
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
 
17330
      ;;
 
17331
 
 
17332
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
17333
      # PIC is the default for these OSes.
 
17334
      ;;
 
17335
 
 
17336
    mingw* | cygwin* | pw32* | os2*)
 
17337
      # This hack is so that the source file can tell whether it is being
 
17338
      # built for inclusion in a dll (and should export symbols for example).
 
17339
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
17340
      # (--disable-auto-import) libraries
 
17341
 
 
17342
      ;;
 
17343
 
 
17344
    darwin* | rhapsody*)
 
17345
      # PIC is the default on this platform
 
17346
      # Common symbols not allowed in MH_DYLIB files
 
17347
      lt_prog_compiler_pic_GCJ='-fno-common'
 
17348
      ;;
 
17349
 
 
17350
    interix[3-9]*)
 
17351
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
17352
      # Instead, we relocate shared libraries at runtime.
 
17353
      ;;
 
17354
 
 
17355
    msdosdjgpp*)
 
17356
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
17357
      # on systems that don't support them.
 
17358
      lt_prog_compiler_can_build_shared_GCJ=no
 
17359
      enable_shared=no
 
17360
      ;;
 
17361
 
 
17362
    sysv4*MP*)
 
17363
      if test -d /usr/nec; then
 
17364
        lt_prog_compiler_pic_GCJ=-Kconform_pic
 
17365
      fi
 
17366
      ;;
 
17367
 
 
17368
    hpux*)
 
17369
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
17370
      # not for PA HP-UX.
 
17371
      case $host_cpu in
 
17372
      hppa*64*|ia64*)
 
17373
        # +Z the default
 
17374
        ;;
 
17375
      *)
 
17376
        lt_prog_compiler_pic_GCJ='-fPIC'
 
17377
        ;;
 
17378
      esac
 
17379
      ;;
 
17380
 
 
17381
    *)
 
17382
      lt_prog_compiler_pic_GCJ='-fPIC'
 
17383
      ;;
 
17384
    esac
 
17385
  else
 
17386
    # PORTME Check for flag to pass linker flags through the system compiler.
 
17387
    case $host_os in
 
17388
    aix*)
 
17389
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17390
      if test "$host_cpu" = ia64; then
 
17391
        # AIX 5 now supports IA64 processor
 
17392
        lt_prog_compiler_static_GCJ='-Bstatic'
 
17393
      else
 
17394
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
 
17395
      fi
 
17396
      ;;
 
17397
      darwin*)
 
17398
        # PIC is the default on this platform
 
17399
        # Common symbols not allowed in MH_DYLIB files
 
17400
       case $cc_basename in
 
17401
         xlc*)
 
17402
         lt_prog_compiler_pic_GCJ='-qnocommon'
 
17403
         lt_prog_compiler_wl_GCJ='-Wl,'
 
17404
         ;;
 
17405
       esac
 
17406
       ;;
 
17407
 
 
17408
    mingw* | cygwin* | pw32* | os2*)
 
17409
      # This hack is so that the source file can tell whether it is being
 
17410
      # built for inclusion in a dll (and should export symbols for example).
 
17411
 
 
17412
      ;;
 
17413
 
 
17414
    hpux9* | hpux10* | hpux11*)
 
17415
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17416
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
17417
      # not for PA HP-UX.
 
17418
      case $host_cpu in
 
17419
      hppa*64*|ia64*)
 
17420
        # +Z the default
 
17421
        ;;
 
17422
      *)
 
17423
        lt_prog_compiler_pic_GCJ='+Z'
 
17424
        ;;
 
17425
      esac
 
17426
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
17427
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
 
17428
      ;;
 
17429
 
 
17430
    irix5* | irix6* | nonstopux*)
 
17431
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17432
      # PIC (with -KPIC) is the default.
 
17433
      lt_prog_compiler_static_GCJ='-non_shared'
 
17434
      ;;
 
17435
 
 
17436
    newsos6)
 
17437
      lt_prog_compiler_pic_GCJ='-KPIC'
 
17438
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17439
      ;;
 
17440
 
 
17441
    linux* | k*bsd*-gnu)
 
17442
      case $cc_basename in
 
17443
      icc* | ecc*)
 
17444
        lt_prog_compiler_wl_GCJ='-Wl,'
 
17445
        lt_prog_compiler_pic_GCJ='-KPIC'
 
17446
        lt_prog_compiler_static_GCJ='-static'
 
17447
        ;;
 
17448
      pgcc* | pgf77* | pgf90* | pgf95*)
 
17449
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
17450
        # which looks to be a dead project)
 
17451
        lt_prog_compiler_wl_GCJ='-Wl,'
 
17452
        lt_prog_compiler_pic_GCJ='-fpic'
 
17453
        lt_prog_compiler_static_GCJ='-Bstatic'
 
17454
        ;;
 
17455
      ccc*)
 
17456
        lt_prog_compiler_wl_GCJ='-Wl,'
 
17457
        # All Alpha code is PIC.
 
17458
        lt_prog_compiler_static_GCJ='-non_shared'
 
17459
        ;;
 
17460
      *)
 
17461
        case `$CC -V 2>&1 | sed 5q` in
 
17462
        *Sun\ C*)
 
17463
          # Sun C 5.9
 
17464
          lt_prog_compiler_pic_GCJ='-KPIC'
 
17465
          lt_prog_compiler_static_GCJ='-Bstatic'
 
17466
          lt_prog_compiler_wl_GCJ='-Wl,'
 
17467
          ;;
 
17468
        *Sun\ F*)
 
17469
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
17470
          lt_prog_compiler_pic_GCJ='-KPIC'
 
17471
          lt_prog_compiler_static_GCJ='-Bstatic'
 
17472
          lt_prog_compiler_wl_GCJ=''
 
17473
          ;;
 
17474
        esac
 
17475
        ;;
 
17476
      esac
 
17477
      ;;
 
17478
 
 
17479
    osf3* | osf4* | osf5*)
 
17480
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17481
      # All OSF/1 code is PIC.
 
17482
      lt_prog_compiler_static_GCJ='-non_shared'
 
17483
      ;;
 
17484
 
 
17485
    rdos*)
 
17486
      lt_prog_compiler_static_GCJ='-non_shared'
 
17487
      ;;
 
17488
 
 
17489
    solaris*)
 
17490
      lt_prog_compiler_pic_GCJ='-KPIC'
 
17491
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17492
      case $cc_basename in
 
17493
      f77* | f90* | f95*)
 
17494
        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
 
17495
      *)
 
17496
        lt_prog_compiler_wl_GCJ='-Wl,';;
 
17497
      esac
 
17498
      ;;
 
17499
 
 
17500
    sunos4*)
 
17501
      lt_prog_compiler_wl_GCJ='-Qoption ld '
 
17502
      lt_prog_compiler_pic_GCJ='-PIC'
 
17503
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17504
      ;;
 
17505
 
 
17506
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
17507
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17508
      lt_prog_compiler_pic_GCJ='-KPIC'
 
17509
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17510
      ;;
 
17511
 
 
17512
    sysv4*MP*)
 
17513
      if test -d /usr/nec ;then
 
17514
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
 
17515
        lt_prog_compiler_static_GCJ='-Bstatic'
 
17516
      fi
 
17517
      ;;
 
17518
 
 
17519
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
17520
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17521
      lt_prog_compiler_pic_GCJ='-KPIC'
 
17522
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17523
      ;;
 
17524
 
 
17525
    unicos*)
 
17526
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17527
      lt_prog_compiler_can_build_shared_GCJ=no
 
17528
      ;;
 
17529
 
 
17530
    uts4*)
 
17531
      lt_prog_compiler_pic_GCJ='-pic'
 
17532
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17533
      ;;
 
17534
 
 
17535
    *)
 
17536
      lt_prog_compiler_can_build_shared_GCJ=no
 
17537
      ;;
 
17538
    esac
 
17539
  fi
 
17540
 
 
17541
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
17542
$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
 
17543
 
 
17544
#
 
17545
# Check to make sure the PIC flag actually works.
 
17546
#
 
17547
if test -n "$lt_prog_compiler_pic_GCJ"; then
 
17548
 
 
17549
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
17550
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
 
17551
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
 
17552
  $as_echo_n "(cached) " >&6
 
17553
else
 
17554
  lt_cv_prog_compiler_pic_works_GCJ=no
 
17555
  ac_outfile=conftest.$ac_objext
 
17556
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17557
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
 
17558
   # Insert the option either (1) after the last *FLAGS variable, or
 
17559
   # (2) before a word containing "conftest.", or (3) at the end.
 
17560
   # Note that $ac_compile itself does not contain backslashes and begins
 
17561
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
17562
   # The option is referenced via a variable to avoid confusing sed.
 
17563
   lt_compile=`echo "$ac_compile" | $SED \
 
17564
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
17565
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
17566
   -e 's:$: $lt_compiler_flag:'`
 
17567
   (eval echo "\"\$as_me:17567: $lt_compile\"" >&5)
 
17568
   (eval "$lt_compile" 2>conftest.err)
 
17569
   ac_status=$?
 
17570
   cat conftest.err >&5
 
17571
   echo "$as_me:17571: \$? = $ac_status" >&5
 
17572
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
17573
     # The compiler can only warn and ignore the option if not recognized
 
17574
     # So say no if there are warnings other than the usual output.
 
17575
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
17576
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
17577
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
17578
       lt_cv_prog_compiler_pic_works_GCJ=yes
 
17579
     fi
 
17580
   fi
 
17581
   $rm conftest*
 
17582
 
 
17583
fi
 
17584
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
 
17585
$as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
 
17586
 
 
17587
if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
 
17588
    case $lt_prog_compiler_pic_GCJ in
 
17589
     "" | " "*) ;;
 
17590
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
 
17591
     esac
 
17592
else
 
17593
    lt_prog_compiler_pic_GCJ=
 
17594
     lt_prog_compiler_can_build_shared_GCJ=no
 
17595
fi
 
17596
 
 
17597
fi
 
17598
case $host_os in
 
17599
  # For platforms which do not support PIC, -DPIC is meaningless:
 
17600
  *djgpp*)
 
17601
    lt_prog_compiler_pic_GCJ=
 
17602
    ;;
 
17603
  *)
 
17604
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
 
17605
    ;;
 
17606
esac
 
17607
 
 
17608
#
 
17609
# Check to make sure the static flag actually works.
 
17610
#
 
17611
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
 
17612
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
17613
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
 
17614
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
 
17615
  $as_echo_n "(cached) " >&6
 
17616
else
 
17617
  lt_cv_prog_compiler_static_works_GCJ=no
 
17618
   save_LDFLAGS="$LDFLAGS"
 
17619
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
17620
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
17621
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
17622
     # The linker can only warn and ignore the option if not recognized
 
17623
     # So say no if there are warnings
 
17624
     if test -s conftest.err; then
 
17625
       # Append any errors to the config.log.
 
17626
       cat conftest.err 1>&5
 
17627
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
17628
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
17629
       if diff conftest.exp conftest.er2 >/dev/null; then
 
17630
         lt_cv_prog_compiler_static_works_GCJ=yes
 
17631
       fi
 
17632
     else
 
17633
       lt_cv_prog_compiler_static_works_GCJ=yes
 
17634
     fi
 
17635
   fi
 
17636
   $rm -r conftest*
 
17637
   LDFLAGS="$save_LDFLAGS"
 
17638
 
 
17639
fi
 
17640
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
 
17641
$as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
 
17642
 
 
17643
if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
 
17644
    :
 
17645
else
 
17646
    lt_prog_compiler_static_GCJ=
 
17647
fi
 
17648
 
 
17649
 
 
17650
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
17651
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
 
17652
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
 
17653
  $as_echo_n "(cached) " >&6
 
17654
else
 
17655
  lt_cv_prog_compiler_c_o_GCJ=no
 
17656
   $rm -r conftest 2>/dev/null
 
17657
   mkdir conftest
 
17658
   cd conftest
 
17659
   mkdir out
 
17660
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17661
 
 
17662
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
17663
   # Insert the option either (1) after the last *FLAGS variable, or
 
17664
   # (2) before a word containing "conftest.", or (3) at the end.
 
17665
   # Note that $ac_compile itself does not contain backslashes and begins
 
17666
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
17667
   lt_compile=`echo "$ac_compile" | $SED \
 
17668
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
17669
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
17670
   -e 's:$: $lt_compiler_flag:'`
 
17671
   (eval echo "\"\$as_me:17671: $lt_compile\"" >&5)
 
17672
   (eval "$lt_compile" 2>out/conftest.err)
 
17673
   ac_status=$?
 
17674
   cat out/conftest.err >&5
 
17675
   echo "$as_me:17675: \$? = $ac_status" >&5
 
17676
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
17677
   then
 
17678
     # The compiler can only warn and ignore the option if not recognized
 
17679
     # So say no if there are warnings
 
17680
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
17681
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
17682
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
17683
       lt_cv_prog_compiler_c_o_GCJ=yes
 
17684
     fi
 
17685
   fi
 
17686
   chmod u+w . 2>&5
 
17687
   $rm conftest*
 
17688
   # SGI C++ compiler will create directory out/ii_files/ for
 
17689
   # template instantiation
 
17690
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
17691
   $rm out/* && rmdir out
 
17692
   cd ..
 
17693
   rmdir conftest
 
17694
   $rm conftest*
 
17695
 
 
17696
fi
 
17697
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
17698
$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
 
17699
 
 
17700
 
 
17701
hard_links="nottested"
 
17702
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
 
17703
  # do not overwrite the value of need_locks provided by the user
 
17704
  { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
17705
$as_echo_n "checking if we can lock with hard links... " >&6; }
 
17706
  hard_links=yes
 
17707
  $rm conftest*
 
17708
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
17709
  touch conftest.a
 
17710
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
17711
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
17712
  { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
 
17713
$as_echo "$hard_links" >&6; }
 
17714
  if test "$hard_links" = no; then
 
17715
    { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
17716
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
17717
    need_locks=warn
 
17718
  fi
 
17719
else
 
17720
  need_locks=no
 
17721
fi
 
17722
 
 
17723
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
17724
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
 
17725
 
 
17726
  runpath_var=
 
17727
  allow_undefined_flag_GCJ=
 
17728
  enable_shared_with_static_runtimes_GCJ=no
 
17729
  archive_cmds_GCJ=
 
17730
  archive_expsym_cmds_GCJ=
 
17731
  old_archive_From_new_cmds_GCJ=
 
17732
  old_archive_from_expsyms_cmds_GCJ=
 
17733
  export_dynamic_flag_spec_GCJ=
 
17734
  whole_archive_flag_spec_GCJ=
 
17735
  thread_safe_flag_spec_GCJ=
 
17736
  hardcode_libdir_flag_spec_GCJ=
 
17737
  hardcode_libdir_flag_spec_ld_GCJ=
 
17738
  hardcode_libdir_separator_GCJ=
 
17739
  hardcode_direct_GCJ=no
 
17740
  hardcode_minus_L_GCJ=no
 
17741
  hardcode_shlibpath_var_GCJ=unsupported
 
17742
  link_all_deplibs_GCJ=unknown
 
17743
  hardcode_automatic_GCJ=no
 
17744
  module_cmds_GCJ=
 
17745
  module_expsym_cmds_GCJ=
 
17746
  always_export_symbols_GCJ=no
 
17747
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
17748
  # include_expsyms should be a list of space-separated symbols to be *always*
 
17749
  # included in the symbol list
 
17750
  include_expsyms_GCJ=
 
17751
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
17752
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
17753
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
17754
  # as well as any symbol that contains `d'.
 
17755
  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
17756
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
17757
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
17758
  # the symbol is explicitly referenced.  Since portable code cannot
 
17759
  # rely on this symbol name, it's probably fine to never include it in
 
17760
  # preloaded symbol tables.
 
17761
  # Exclude shared library initialization/finalization symbols.
 
17762
  extract_expsyms_cmds=
 
17763
  # Just being paranoid about ensuring that cc_basename is set.
 
17764
  for cc_temp in $compiler""; do
 
17765
  case $cc_temp in
 
17766
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
17767
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
17768
    \-*) ;;
 
17769
    *) break;;
 
17770
  esac
 
17771
done
 
17772
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
17773
 
 
17774
  case $host_os in
 
17775
  cygwin* | mingw* | pw32*)
 
17776
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
17777
    # When not using gcc, we currently assume that we are using
 
17778
    # Microsoft Visual C++.
 
17779
    if test "$GCC" != yes; then
 
17780
      with_gnu_ld=no
 
17781
    fi
 
17782
    ;;
 
17783
  interix*)
 
17784
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
17785
    with_gnu_ld=yes
 
17786
    ;;
 
17787
  openbsd*)
 
17788
    with_gnu_ld=no
 
17789
    ;;
 
17790
  esac
 
17791
 
 
17792
  ld_shlibs_GCJ=yes
 
17793
  if test "$with_gnu_ld" = yes; then
 
17794
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
17795
    wlarc='${wl}'
 
17796
 
 
17797
    # Set some defaults for GNU ld with shared library support. These
 
17798
    # are reset later if shared libraries are not supported. Putting them
 
17799
    # here allows them to be overridden if necessary.
 
17800
    runpath_var=LD_RUN_PATH
 
17801
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
17802
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
17803
    # ancient GNU ld didn't support --whole-archive et. al.
 
17804
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
17805
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
17806
      else
 
17807
        whole_archive_flag_spec_GCJ=
 
17808
    fi
 
17809
    supports_anon_versioning=no
 
17810
    case `$LD -v 2>/dev/null` in
 
17811
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
17812
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
17813
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
17814
      *\ 2.11.*) ;; # other 2.11 versions
 
17815
      *) supports_anon_versioning=yes ;;
 
17816
    esac
 
17817
 
 
17818
    # See if GNU ld supports shared libraries.
 
17819
    case $host_os in
 
17820
    aix[3-9]*)
 
17821
      # On AIX/PPC, the GNU linker is very broken
 
17822
      if test "$host_cpu" != ia64; then
 
17823
        ld_shlibs_GCJ=no
 
17824
        cat <<EOF 1>&2
 
17825
 
 
17826
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
17827
*** to be unable to reliably create shared libraries on AIX.
 
17828
*** Therefore, libtool is disabling shared libraries support.  If you
 
17829
*** really care for shared libraries, you may want to modify your PATH
 
17830
*** so that a non-GNU linker is found, and then restart.
 
17831
 
 
17832
EOF
 
17833
      fi
 
17834
      ;;
 
17835
 
 
17836
    amigaos*)
 
17837
      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)'
 
17838
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17839
      hardcode_minus_L_GCJ=yes
 
17840
 
 
17841
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
17842
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
17843
      # to version 4, is to share data among multiple programs linked
 
17844
      # with the same dynamic library.  Since this doesn't match the
 
17845
      # behavior of shared libraries on other platforms, we can't use
 
17846
      # them.
 
17847
      ld_shlibs_GCJ=no
 
17848
      ;;
 
17849
 
 
17850
    beos*)
 
17851
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17852
        allow_undefined_flag_GCJ=unsupported
 
17853
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
17854
        # support --undefined.  This deserves some investigation.  FIXME
 
17855
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17856
      else
 
17857
        ld_shlibs_GCJ=no
 
17858
      fi
 
17859
      ;;
 
17860
 
 
17861
    cygwin* | mingw* | pw32*)
 
17862
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
 
17863
      # as there is no search path for DLLs.
 
17864
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17865
      allow_undefined_flag_GCJ=unsupported
 
17866
      always_export_symbols_GCJ=no
 
17867
      enable_shared_with_static_runtimes_GCJ=yes
 
17868
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
17869
 
 
17870
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
17871
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
17872
        # If the export-symbols file already is a .def file (1st line
 
17873
        # is EXPORTS), use it as is; otherwise, prepend...
 
17874
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
17875
          cp $export_symbols $output_objdir/$soname.def;
 
17876
        else
 
17877
          echo EXPORTS > $output_objdir/$soname.def;
 
17878
          cat $export_symbols >> $output_objdir/$soname.def;
 
17879
        fi~
 
17880
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
17881
      else
 
17882
        ld_shlibs_GCJ=no
 
17883
      fi
 
17884
      ;;
 
17885
 
 
17886
    interix[3-9]*)
 
17887
      hardcode_direct_GCJ=no
 
17888
      hardcode_shlibpath_var_GCJ=no
 
17889
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17890
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
17891
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
17892
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
17893
      # default) and relocated if they conflict, which is a slow very memory
 
17894
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
17895
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
17896
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
17897
      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'
 
17898
      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'
 
17899
      ;;
 
17900
 
 
17901
    gnu* | linux* | k*bsd*-gnu)
 
17902
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17903
        tmp_addflag=
 
17904
        case $cc_basename,$host_cpu in
 
17905
        pgcc*)                          # Portland Group C compiler
 
17906
          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'
 
17907
          tmp_addflag=' $pic_flag'
 
17908
          ;;
 
17909
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
17910
          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'
 
17911
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
17912
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
17913
          tmp_addflag=' -i_dynamic' ;;
 
17914
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
17915
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
17916
        ifc* | ifort*)                  # Intel Fortran compiler
 
17917
          tmp_addflag=' -nofor_main' ;;
 
17918
        esac
 
17919
        case `$CC -V 2>&1 | sed 5q` in
 
17920
        *Sun\ C*)                       # Sun C 5.9
 
17921
          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'
 
17922
          tmp_sharedflag='-G' ;;
 
17923
        *Sun\ F*)                       # Sun Fortran 8.3
 
17924
          tmp_sharedflag='-G' ;;
 
17925
        *)
 
17926
          tmp_sharedflag='-shared' ;;
 
17927
        esac
 
17928
        archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17929
 
 
17930
        if test $supports_anon_versioning = yes; then
 
17931
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
17932
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
17933
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
17934
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
17935
        fi
 
17936
        link_all_deplibs_GCJ=no
 
17937
      else
 
17938
        ld_shlibs_GCJ=no
 
17939
      fi
 
17940
      ;;
 
17941
 
 
17942
    netbsd*)
 
17943
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17944
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
17945
        wlarc=
 
17946
      else
 
17947
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17948
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17949
      fi
 
17950
      ;;
 
17951
 
 
17952
    solaris*)
 
17953
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
17954
        ld_shlibs_GCJ=no
 
17955
        cat <<EOF 1>&2
 
17956
 
 
17957
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
17958
*** create shared libraries on Solaris systems.  Therefore, libtool
 
17959
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
17960
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
17961
*** your PATH or compiler configuration so that the native linker is
 
17962
*** used, and then restart.
 
17963
 
 
17964
EOF
 
17965
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17966
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17967
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17968
      else
 
17969
        ld_shlibs_GCJ=no
 
17970
      fi
 
17971
      ;;
 
17972
 
 
17973
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
17974
      case `$LD -v 2>&1` in
 
17975
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
17976
        ld_shlibs_GCJ=no
 
17977
        cat <<_LT_EOF 1>&2
 
17978
 
 
17979
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
17980
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
17981
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
17982
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
17983
*** your PATH or compiler configuration so that the native linker is
 
17984
*** used, and then restart.
 
17985
 
 
17986
_LT_EOF
 
17987
        ;;
 
17988
        *)
 
17989
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17990
            hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
17991
            archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
17992
            archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
17993
          else
 
17994
            ld_shlibs_GCJ=no
 
17995
          fi
 
17996
        ;;
 
17997
      esac
 
17998
      ;;
 
17999
 
 
18000
    sunos4*)
 
18001
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
18002
      wlarc=
 
18003
      hardcode_direct_GCJ=yes
 
18004
      hardcode_shlibpath_var_GCJ=no
 
18005
      ;;
 
18006
 
 
18007
    *)
 
18008
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
18009
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
18010
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
18011
      else
 
18012
        ld_shlibs_GCJ=no
 
18013
      fi
 
18014
      ;;
 
18015
    esac
 
18016
 
 
18017
    if test "$ld_shlibs_GCJ" = no; then
 
18018
      runpath_var=
 
18019
      hardcode_libdir_flag_spec_GCJ=
 
18020
      export_dynamic_flag_spec_GCJ=
 
18021
      whole_archive_flag_spec_GCJ=
 
18022
    fi
 
18023
  else
 
18024
    # PORTME fill in a description of your system's linker (not GNU ld)
 
18025
    case $host_os in
 
18026
    aix3*)
 
18027
      allow_undefined_flag_GCJ=unsupported
 
18028
      always_export_symbols_GCJ=yes
 
18029
      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'
 
18030
      # Note: this linker hardcodes the directories in LIBPATH if there
 
18031
      # are no directories specified by -L.
 
18032
      hardcode_minus_L_GCJ=yes
 
18033
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
18034
        # Neither direct hardcoding nor static linking is supported with a
 
18035
        # broken collect2.
 
18036
        hardcode_direct_GCJ=unsupported
 
18037
      fi
 
18038
      ;;
 
18039
 
 
18040
    aix[4-9]*)
 
18041
      if test "$host_cpu" = ia64; then
 
18042
        # On IA64, the linker does run time linking by default, so we don't
 
18043
        # have to do anything special.
 
18044
        aix_use_runtimelinking=no
 
18045
        exp_sym_flag='-Bexport'
 
18046
        no_entry_flag=""
 
18047
      else
 
18048
        # If we're using GNU nm, then we don't want the "-C" option.
 
18049
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
18050
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
18051
          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'
 
18052
        else
 
18053
          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'
 
18054
        fi
 
18055
        aix_use_runtimelinking=no
 
18056
 
 
18057
        # Test if we are trying to use run time linking or normal
 
18058
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
18059
        # need to do runtime linking.
 
18060
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
18061
          for ld_flag in $LDFLAGS; do
 
18062
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
18063
            aix_use_runtimelinking=yes
 
18064
            break
 
18065
          fi
 
18066
          done
 
18067
          ;;
 
18068
        esac
 
18069
 
 
18070
        exp_sym_flag='-bexport'
 
18071
        no_entry_flag='-bnoentry'
 
18072
      fi
 
18073
 
 
18074
      # When large executables or shared objects are built, AIX ld can
 
18075
      # have problems creating the table of contents.  If linking a library
 
18076
      # or program results in "error TOC overflow" add -mminimal-toc to
 
18077
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
18078
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
18079
 
 
18080
      archive_cmds_GCJ=''
 
18081
      hardcode_direct_GCJ=yes
 
18082
      hardcode_libdir_separator_GCJ=':'
 
18083
      link_all_deplibs_GCJ=yes
 
18084
 
 
18085
      if test "$GCC" = yes; then
 
18086
        case $host_os in aix4.[012]|aix4.[012].*)
 
18087
        # We only want to do this on AIX 4.2 and lower, the check
 
18088
        # below for broken collect2 doesn't work under 4.3+
 
18089
          collect2name=`${CC} -print-prog-name=collect2`
 
18090
          if test -f "$collect2name" && \
 
18091
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
18092
          then
 
18093
          # We have reworked collect2
 
18094
          :
 
18095
          else
 
18096
          # We have old collect2
 
18097
          hardcode_direct_GCJ=unsupported
 
18098
          # It fails to find uninstalled libraries when the uninstalled
 
18099
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
18100
          # to unsupported forces relinking
 
18101
          hardcode_minus_L_GCJ=yes
 
18102
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18103
          hardcode_libdir_separator_GCJ=
 
18104
          fi
 
18105
          ;;
 
18106
        esac
 
18107
        shared_flag='-shared'
 
18108
        if test "$aix_use_runtimelinking" = yes; then
 
18109
          shared_flag="$shared_flag "'${wl}-G'
 
18110
        fi
 
18111
      else
 
18112
        # not using gcc
 
18113
        if test "$host_cpu" = ia64; then
 
18114
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
18115
        # chokes on -Wl,-G. The following line is correct:
 
18116
          shared_flag='-G'
 
18117
        else
 
18118
          if test "$aix_use_runtimelinking" = yes; then
 
18119
            shared_flag='${wl}-G'
 
18120
          else
 
18121
            shared_flag='${wl}-bM:SRE'
 
18122
          fi
 
18123
        fi
 
18124
      fi
 
18125
 
 
18126
      # It seems that -bexpall does not export symbols beginning with
 
18127
      # underscore (_), so it is better to generate a list of symbols to export.
 
18128
      always_export_symbols_GCJ=yes
 
18129
      if test "$aix_use_runtimelinking" = yes; then
 
18130
        # Warning - without using the other runtime loading flags (-brtl),
 
18131
        # -berok will link without error, but may produce a broken library.
 
18132
        allow_undefined_flag_GCJ='-berok'
 
18133
       # Determine the default libpath from the value encoded in an empty executable.
 
18134
       cat >conftest.$ac_ext <<_ACEOF
 
18135
/* confdefs.h.  */
 
18136
_ACEOF
 
18137
cat confdefs.h >>conftest.$ac_ext
 
18138
cat >>conftest.$ac_ext <<_ACEOF
 
18139
/* end confdefs.h.  */
 
18140
 
 
18141
int
 
18142
main ()
 
18143
{
 
18144
 
 
18145
  ;
 
18146
  return 0;
 
18147
}
 
18148
_ACEOF
 
18149
rm -f conftest.$ac_objext conftest$ac_exeext
 
18150
if { (ac_try="$ac_link"
 
18151
case "(($ac_try" in
 
18152
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18153
  *) ac_try_echo=$ac_try;;
 
18154
esac
 
18155
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
18156
$as_echo "$ac_try_echo") >&5
 
18157
  (eval "$ac_link") 2>conftest.er1
 
18158
  ac_status=$?
 
18159
  grep -v '^ *+' conftest.er1 >conftest.err
 
18160
  rm -f conftest.er1
 
18161
  cat conftest.err >&5
 
18162
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18163
  (exit $ac_status); } && {
 
18164
         test -z "$ac_c_werror_flag" ||
 
18165
         test ! -s conftest.err
 
18166
       } && test -s conftest$ac_exeext && {
 
18167
         test "$cross_compiling" = yes ||
 
18168
         $as_test_x conftest$ac_exeext
 
18169
       }; then
 
18170
 
 
18171
lt_aix_libpath_sed='
 
18172
    /Import File Strings/,/^$/ {
 
18173
        /^0/ {
 
18174
            s/^0  *\(.*\)$/\1/
 
18175
            p
 
18176
        }
 
18177
    }'
 
18178
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
18179
# Check for a 64-bit object if we didn't find anything.
 
18180
if test -z "$aix_libpath"; then
 
18181
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
18182
fi
 
18183
else
 
18184
  $as_echo "$as_me: failed program was:" >&5
 
18185
sed 's/^/| /' conftest.$ac_ext >&5
 
18186
 
 
18187
 
 
18188
fi
 
18189
 
 
18190
rm -rf conftest.dSYM
 
18191
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
18192
      conftest$ac_exeext conftest.$ac_ext
 
18193
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
18194
 
 
18195
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
18196
        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"
 
18197
       else
 
18198
        if test "$host_cpu" = ia64; then
 
18199
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
 
18200
          allow_undefined_flag_GCJ="-z nodefs"
 
18201
          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"
 
18202
        else
 
18203
         # Determine the default libpath from the value encoded in an empty executable.
 
18204
         cat >conftest.$ac_ext <<_ACEOF
 
18205
/* confdefs.h.  */
 
18206
_ACEOF
 
18207
cat confdefs.h >>conftest.$ac_ext
 
18208
cat >>conftest.$ac_ext <<_ACEOF
 
18209
/* end confdefs.h.  */
 
18210
 
 
18211
int
 
18212
main ()
 
18213
{
 
18214
 
 
18215
  ;
 
18216
  return 0;
 
18217
}
 
18218
_ACEOF
 
18219
rm -f conftest.$ac_objext conftest$ac_exeext
 
18220
if { (ac_try="$ac_link"
 
18221
case "(($ac_try" in
 
18222
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
18223
  *) ac_try_echo=$ac_try;;
 
18224
esac
 
18225
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
18226
$as_echo "$ac_try_echo") >&5
 
18227
  (eval "$ac_link") 2>conftest.er1
 
18228
  ac_status=$?
 
18229
  grep -v '^ *+' conftest.er1 >conftest.err
 
18230
  rm -f conftest.er1
 
18231
  cat conftest.err >&5
 
18232
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18233
  (exit $ac_status); } && {
 
18234
         test -z "$ac_c_werror_flag" ||
 
18235
         test ! -s conftest.err
 
18236
       } && test -s conftest$ac_exeext && {
 
18237
         test "$cross_compiling" = yes ||
 
18238
         $as_test_x conftest$ac_exeext
 
18239
       }; then
 
18240
 
 
18241
lt_aix_libpath_sed='
 
18242
    /Import File Strings/,/^$/ {
 
18243
        /^0/ {
 
18244
            s/^0  *\(.*\)$/\1/
 
18245
            p
 
18246
        }
 
18247
    }'
 
18248
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
18249
# Check for a 64-bit object if we didn't find anything.
 
18250
if test -z "$aix_libpath"; then
 
18251
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
18252
fi
 
18253
else
 
18254
  $as_echo "$as_me: failed program was:" >&5
 
18255
sed 's/^/| /' conftest.$ac_ext >&5
 
18256
 
 
18257
 
 
18258
fi
 
18259
 
 
18260
rm -rf conftest.dSYM
 
18261
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
18262
      conftest$ac_exeext conftest.$ac_ext
 
18263
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
18264
 
 
18265
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
18266
          # Warning - without using the other run time loading flags,
 
18267
          # -berok will link without error, but may produce a broken library.
 
18268
          no_undefined_flag_GCJ=' ${wl}-bernotok'
 
18269
          allow_undefined_flag_GCJ=' ${wl}-berok'
 
18270
          # Exported symbols can be pulled into shared objects from archives
 
18271
          whole_archive_flag_spec_GCJ='$convenience'
 
18272
          archive_cmds_need_lc_GCJ=yes
 
18273
          # This is similar to how AIX traditionally builds its shared libraries.
 
18274
          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'
 
18275
        fi
 
18276
      fi
 
18277
      ;;
 
18278
 
 
18279
    amigaos*)
 
18280
      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)'
 
18281
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18282
      hardcode_minus_L_GCJ=yes
 
18283
      # see comment about different semantics on the GNU ld section
 
18284
      ld_shlibs_GCJ=no
 
18285
      ;;
 
18286
 
 
18287
    bsdi[45]*)
 
18288
      export_dynamic_flag_spec_GCJ=-rdynamic
 
18289
      ;;
 
18290
 
 
18291
    cygwin* | mingw* | pw32*)
 
18292
      # When not using gcc, we currently assume that we are using
 
18293
      # Microsoft Visual C++.
 
18294
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
18295
      # no search path for DLLs.
 
18296
      hardcode_libdir_flag_spec_GCJ=' '
 
18297
      allow_undefined_flag_GCJ=unsupported
 
18298
      # Tell ltmain to make .lib files, not .a files.
 
18299
      libext=lib
 
18300
      # Tell ltmain to make .dll files, not .so files.
 
18301
      shrext_cmds=".dll"
 
18302
      # FIXME: Setting linknames here is a bad hack.
 
18303
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
18304
      # The linker will automatically build a .lib file if we build a DLL.
 
18305
      old_archive_From_new_cmds_GCJ='true'
 
18306
      # FIXME: Should let the user specify the lib program.
 
18307
      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
18308
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
 
18309
      enable_shared_with_static_runtimes_GCJ=yes
 
18310
      ;;
 
18311
 
 
18312
    darwin* | rhapsody*)
 
18313
      case $host_os in
 
18314
        rhapsody* | darwin1.[012])
 
18315
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
 
18316
         ;;
 
18317
       *) # Darwin 1.3 on
 
18318
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
18319
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
18320
         else
 
18321
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
18322
             10.[012])
 
18323
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
18324
               ;;
 
18325
             10.*)
 
18326
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
 
18327
               ;;
 
18328
           esac
 
18329
         fi
 
18330
         ;;
 
18331
      esac
 
18332
      archive_cmds_need_lc_GCJ=no
 
18333
      hardcode_direct_GCJ=no
 
18334
      hardcode_automatic_GCJ=yes
 
18335
      hardcode_shlibpath_var_GCJ=unsupported
 
18336
      whole_archive_flag_spec_GCJ=''
 
18337
      link_all_deplibs_GCJ=yes
 
18338
    if test "$GCC" = yes ; then
 
18339
        output_verbose_link_cmd='echo'
 
18340
        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}"
 
18341
        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
18342
        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}"
 
18343
        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}"
 
18344
    else
 
18345
      case $cc_basename in
 
18346
        xlc*)
 
18347
         output_verbose_link_cmd='echo'
 
18348
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
18349
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
18350
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
18351
         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}'
 
18352
          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}'
 
18353
          ;;
 
18354
       *)
 
18355
         ld_shlibs_GCJ=no
 
18356
          ;;
 
18357
      esac
 
18358
    fi
 
18359
      ;;
 
18360
 
 
18361
    dgux*)
 
18362
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18363
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18364
      hardcode_shlibpath_var_GCJ=no
 
18365
      ;;
 
18366
 
 
18367
    freebsd1*)
 
18368
      ld_shlibs_GCJ=no
 
18369
      ;;
 
18370
 
 
18371
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
18372
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
18373
    # does not break anything, and helps significantly (at the cost of a little
 
18374
    # extra space).
 
18375
    freebsd2.2*)
 
18376
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
18377
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18378
      hardcode_direct_GCJ=yes
 
18379
      hardcode_shlibpath_var_GCJ=no
 
18380
      ;;
 
18381
 
 
18382
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
18383
    freebsd2*)
 
18384
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
18385
      hardcode_direct_GCJ=yes
 
18386
      hardcode_minus_L_GCJ=yes
 
18387
      hardcode_shlibpath_var_GCJ=no
 
18388
      ;;
 
18389
 
 
18390
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
18391
    freebsd* | dragonfly*)
 
18392
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
18393
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18394
      hardcode_direct_GCJ=yes
 
18395
      hardcode_shlibpath_var_GCJ=no
 
18396
      ;;
 
18397
 
 
18398
    hpux9*)
 
18399
      if test "$GCC" = yes; then
 
18400
        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'
 
18401
      else
 
18402
        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'
 
18403
      fi
 
18404
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
18405
      hardcode_libdir_separator_GCJ=:
 
18406
      hardcode_direct_GCJ=yes
 
18407
 
 
18408
      # hardcode_minus_L: Not really in the search PATH,
 
18409
      # but as the default location of the library.
 
18410
      hardcode_minus_L_GCJ=yes
 
18411
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
18412
      ;;
 
18413
 
 
18414
    hpux10*)
 
18415
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
18416
        archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
18417
      else
 
18418
        archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
18419
      fi
 
18420
      if test "$with_gnu_ld" = no; then
 
18421
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
18422
        hardcode_libdir_separator_GCJ=:
 
18423
 
 
18424
        hardcode_direct_GCJ=yes
 
18425
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
18426
 
 
18427
        # hardcode_minus_L: Not really in the search PATH,
 
18428
        # but as the default location of the library.
 
18429
        hardcode_minus_L_GCJ=yes
 
18430
      fi
 
18431
      ;;
 
18432
 
 
18433
    hpux11*)
 
18434
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
18435
        case $host_cpu in
 
18436
        hppa*64*)
 
18437
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18438
          ;;
 
18439
        ia64*)
 
18440
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
18441
          ;;
 
18442
        *)
 
18443
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
18444
          ;;
 
18445
        esac
 
18446
      else
 
18447
        case $host_cpu in
 
18448
        hppa*64*)
 
18449
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18450
          ;;
 
18451
        ia64*)
 
18452
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
18453
          ;;
 
18454
        *)
 
18455
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
18456
          ;;
 
18457
        esac
 
18458
      fi
 
18459
      if test "$with_gnu_ld" = no; then
 
18460
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
18461
        hardcode_libdir_separator_GCJ=:
 
18462
 
 
18463
        case $host_cpu in
 
18464
        hppa*64*|ia64*)
 
18465
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
 
18466
          hardcode_direct_GCJ=no
 
18467
          hardcode_shlibpath_var_GCJ=no
 
18468
          ;;
 
18469
        *)
 
18470
          hardcode_direct_GCJ=yes
 
18471
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
18472
 
 
18473
          # hardcode_minus_L: Not really in the search PATH,
 
18474
          # but as the default location of the library.
 
18475
          hardcode_minus_L_GCJ=yes
 
18476
          ;;
 
18477
        esac
 
18478
      fi
 
18479
      ;;
 
18480
 
 
18481
    irix5* | irix6* | nonstopux*)
 
18482
      if test "$GCC" = yes; then
 
18483
        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'
 
18484
      else
 
18485
        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'
 
18486
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
 
18487
      fi
 
18488
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18489
      hardcode_libdir_separator_GCJ=:
 
18490
      link_all_deplibs_GCJ=yes
 
18491
      ;;
 
18492
 
 
18493
    netbsd*)
 
18494
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
18495
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
18496
      else
 
18497
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
18498
      fi
 
18499
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18500
      hardcode_direct_GCJ=yes
 
18501
      hardcode_shlibpath_var_GCJ=no
 
18502
      ;;
 
18503
 
 
18504
    newsos6)
 
18505
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18506
      hardcode_direct_GCJ=yes
 
18507
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18508
      hardcode_libdir_separator_GCJ=:
 
18509
      hardcode_shlibpath_var_GCJ=no
 
18510
      ;;
 
18511
 
 
18512
    openbsd*)
 
18513
      if test -f /usr/libexec/ld.so; then
 
18514
        hardcode_direct_GCJ=yes
 
18515
        hardcode_shlibpath_var_GCJ=no
 
18516
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
18517
          archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
18518
          archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
18519
          hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
18520
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
18521
        else
 
18522
          case $host_os in
 
18523
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
18524
             archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
18525
             hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18526
             ;;
 
18527
           *)
 
18528
             archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
18529
             hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
18530
             ;;
 
18531
          esac
 
18532
        fi
 
18533
      else
 
18534
        ld_shlibs_GCJ=no
 
18535
      fi
 
18536
      ;;
 
18537
 
 
18538
    os2*)
 
18539
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18540
      hardcode_minus_L_GCJ=yes
 
18541
      allow_undefined_flag_GCJ=unsupported
 
18542
      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'
 
18543
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
18544
      ;;
 
18545
 
 
18546
    osf3*)
 
18547
      if test "$GCC" = yes; then
 
18548
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
18549
        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'
 
18550
      else
 
18551
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
18552
        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'
 
18553
      fi
 
18554
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18555
      hardcode_libdir_separator_GCJ=:
 
18556
      ;;
 
18557
 
 
18558
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
18559
      if test "$GCC" = yes; then
 
18560
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
18561
        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'
 
18562
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18563
      else
 
18564
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
18565
        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'
 
18566
        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~
 
18567
        $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'
 
18568
 
 
18569
        # Both c and cxx compiler support -rpath directly
 
18570
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
 
18571
      fi
 
18572
      hardcode_libdir_separator_GCJ=:
 
18573
      ;;
 
18574
 
 
18575
    solaris*)
 
18576
      no_undefined_flag_GCJ=' -z text'
 
18577
      if test "$GCC" = yes; then
 
18578
        wlarc='${wl}'
 
18579
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18580
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
18581
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
18582
      else
 
18583
        wlarc=''
 
18584
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18585
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
18586
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
18587
      fi
 
18588
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18589
      hardcode_shlibpath_var_GCJ=no
 
18590
      case $host_os in
 
18591
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
18592
      *)
 
18593
        # The compiler driver will combine and reorder linker options,
 
18594
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
18595
        # but is careful enough not to reorder.
 
18596
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
18597
        if test "$GCC" = yes; then
 
18598
          whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
18599
        else
 
18600
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
 
18601
        fi
 
18602
        ;;
 
18603
      esac
 
18604
      link_all_deplibs_GCJ=yes
 
18605
      ;;
 
18606
 
 
18607
    sunos4*)
 
18608
      if test "x$host_vendor" = xsequent; then
 
18609
        # Use $CC to link under sequent, because it throws in some extra .o
 
18610
        # files that make .init and .fini sections work.
 
18611
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
18612
      else
 
18613
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
18614
      fi
 
18615
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18616
      hardcode_direct_GCJ=yes
 
18617
      hardcode_minus_L_GCJ=yes
 
18618
      hardcode_shlibpath_var_GCJ=no
 
18619
      ;;
 
18620
 
 
18621
    sysv4)
 
18622
      case $host_vendor in
 
18623
        sni)
 
18624
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18625
          hardcode_direct_GCJ=yes # is this really true???
 
18626
        ;;
 
18627
        siemens)
 
18628
          ## LD is ld it makes a PLAMLIB
 
18629
          ## CC just makes a GrossModule.
 
18630
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
18631
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
 
18632
          hardcode_direct_GCJ=no
 
18633
        ;;
 
18634
        motorola)
 
18635
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18636
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
 
18637
        ;;
 
18638
      esac
 
18639
      runpath_var='LD_RUN_PATH'
 
18640
      hardcode_shlibpath_var_GCJ=no
 
18641
      ;;
 
18642
 
 
18643
    sysv4.3*)
 
18644
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18645
      hardcode_shlibpath_var_GCJ=no
 
18646
      export_dynamic_flag_spec_GCJ='-Bexport'
 
18647
      ;;
 
18648
 
 
18649
    sysv4*MP*)
 
18650
      if test -d /usr/nec; then
 
18651
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18652
        hardcode_shlibpath_var_GCJ=no
 
18653
        runpath_var=LD_RUN_PATH
 
18654
        hardcode_runpath_var=yes
 
18655
        ld_shlibs_GCJ=yes
 
18656
      fi
 
18657
      ;;
 
18658
 
 
18659
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
18660
      no_undefined_flag_GCJ='${wl}-z,text'
 
18661
      archive_cmds_need_lc_GCJ=no
 
18662
      hardcode_shlibpath_var_GCJ=no
 
18663
      runpath_var='LD_RUN_PATH'
 
18664
 
 
18665
      if test "$GCC" = yes; then
 
18666
        archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18667
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18668
      else
 
18669
        archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18670
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18671
      fi
 
18672
      ;;
 
18673
 
 
18674
    sysv5* | sco3.2v5* | sco5v6*)
 
18675
      # Note: We can NOT use -z defs as we might desire, because we do not
 
18676
      # link with -lc, and that would cause any symbols used from libc to
 
18677
      # always be unresolved, which means just about no library would
 
18678
      # ever link correctly.  If we're not using GNU ld we use -z text
 
18679
      # though, which does catch some bad symbols but isn't as heavy-handed
 
18680
      # as -z defs.
 
18681
      no_undefined_flag_GCJ='${wl}-z,text'
 
18682
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
 
18683
      archive_cmds_need_lc_GCJ=no
 
18684
      hardcode_shlibpath_var_GCJ=no
 
18685
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
18686
      hardcode_libdir_separator_GCJ=':'
 
18687
      link_all_deplibs_GCJ=yes
 
18688
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
18689
      runpath_var='LD_RUN_PATH'
 
18690
 
 
18691
      if test "$GCC" = yes; then
 
18692
        archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18693
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18694
      else
 
18695
        archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18696
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18697
      fi
 
18698
      ;;
 
18699
 
 
18700
    uts4*)
 
18701
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18702
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18703
      hardcode_shlibpath_var_GCJ=no
 
18704
      ;;
 
18705
 
 
18706
    *)
 
18707
      ld_shlibs_GCJ=no
 
18708
      ;;
 
18709
    esac
 
18710
  fi
 
18711
 
 
18712
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
18713
$as_echo "$ld_shlibs_GCJ" >&6; }
 
18714
test "$ld_shlibs_GCJ" = no && can_build_shared=no
 
18715
 
 
18716
#
 
18717
# Do we need to explicitly link libc?
 
18718
#
 
18719
case "x$archive_cmds_need_lc_GCJ" in
 
18720
x|xyes)
 
18721
  # Assume -lc should be added
 
18722
  archive_cmds_need_lc_GCJ=yes
 
18723
 
 
18724
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
18725
    case $archive_cmds_GCJ in
 
18726
    *'~'*)
 
18727
      # FIXME: we may have to deal with multi-command sequences.
 
18728
      ;;
 
18729
    '$CC '*)
 
18730
      # Test whether the compiler implicitly links with -lc since on some
 
18731
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
18732
      # to ld, don't add -lc before -lgcc.
 
18733
      { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
18734
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
 
18735
      $rm conftest*
 
18736
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
18737
 
 
18738
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
18739
  (eval $ac_compile) 2>&5
 
18740
  ac_status=$?
 
18741
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18742
  (exit $ac_status); } 2>conftest.err; then
 
18743
        soname=conftest
 
18744
        lib=conftest
 
18745
        libobjs=conftest.$ac_objext
 
18746
        deplibs=
 
18747
        wl=$lt_prog_compiler_wl_GCJ
 
18748
        pic_flag=$lt_prog_compiler_pic_GCJ
 
18749
        compiler_flags=-v
 
18750
        linker_flags=-v
 
18751
        verstring=
 
18752
        output_objdir=.
 
18753
        libname=conftest
 
18754
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
 
18755
        allow_undefined_flag_GCJ=
 
18756
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
18757
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
18758
  ac_status=$?
 
18759
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18760
  (exit $ac_status); }
 
18761
        then
 
18762
          archive_cmds_need_lc_GCJ=no
 
18763
        else
 
18764
          archive_cmds_need_lc_GCJ=yes
 
18765
        fi
 
18766
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
 
18767
      else
 
18768
        cat conftest.err 1>&5
 
18769
      fi
 
18770
      $rm conftest*
 
18771
      { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
18772
$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
 
18773
      ;;
 
18774
    esac
 
18775
  fi
 
18776
  ;;
 
18777
esac
 
18778
 
 
18779
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
18780
$as_echo_n "checking dynamic linker characteristics... " >&6; }
 
18781
library_names_spec=
 
18782
libname_spec='lib$name'
 
18783
soname_spec=
 
18784
shrext_cmds=".so"
 
18785
postinstall_cmds=
 
18786
postuninstall_cmds=
 
18787
finish_cmds=
 
18788
finish_eval=
 
18789
shlibpath_var=
 
18790
shlibpath_overrides_runpath=unknown
 
18791
version_type=none
 
18792
dynamic_linker="$host_os ld.so"
 
18793
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
18794
 
 
18795
need_lib_prefix=unknown
 
18796
hardcode_into_libs=no
 
18797
 
 
18798
# when you set need_version to no, make sure it does not cause -set_version
 
18799
# flags to be left without arguments
 
18800
need_version=unknown
 
18801
 
 
18802
case $host_os in
 
18803
aix3*)
 
18804
  version_type=linux
 
18805
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
18806
  shlibpath_var=LIBPATH
 
18807
 
 
18808
  # AIX 3 has no versioning support, so we append a major version to the name.
 
18809
  soname_spec='${libname}${release}${shared_ext}$major'
 
18810
  ;;
 
18811
 
 
18812
aix[4-9]*)
 
18813
  version_type=linux
 
18814
  need_lib_prefix=no
 
18815
  need_version=no
 
18816
  hardcode_into_libs=yes
 
18817
  if test "$host_cpu" = ia64; then
 
18818
    # AIX 5 supports IA64
 
18819
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
18820
    shlibpath_var=LD_LIBRARY_PATH
 
18821
  else
 
18822
    # With GCC up to 2.95.x, collect2 would create an import file
 
18823
    # for dependence libraries.  The import file would start with
 
18824
    # the line `#! .'.  This would cause the generated library to
 
18825
    # depend on `.', always an invalid library.  This was fixed in
 
18826
    # development snapshots of GCC prior to 3.0.
 
18827
    case $host_os in
 
18828
      aix4 | aix4.[01] | aix4.[01].*)
 
18829
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
18830
           echo ' yes '
 
18831
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
18832
        :
 
18833
      else
 
18834
        can_build_shared=no
 
18835
      fi
 
18836
      ;;
 
18837
    esac
 
18838
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
18839
    # soname into executable. Probably we can add versioning support to
 
18840
    # collect2, so additional links can be useful in future.
 
18841
    if test "$aix_use_runtimelinking" = yes; then
 
18842
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
18843
      # instead of lib<name>.a to let people know that these are not
 
18844
      # typical AIX shared libraries.
 
18845
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18846
    else
 
18847
      # We preserve .a as extension for shared libraries through AIX4.2
 
18848
      # and later when we are not doing run time linking.
 
18849
      library_names_spec='${libname}${release}.a $libname.a'
 
18850
      soname_spec='${libname}${release}${shared_ext}$major'
 
18851
    fi
 
18852
    shlibpath_var=LIBPATH
 
18853
  fi
 
18854
  ;;
 
18855
 
 
18856
amigaos*)
 
18857
  library_names_spec='$libname.ixlibrary $libname.a'
 
18858
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
18859
  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'
 
18860
  ;;
 
18861
 
 
18862
beos*)
 
18863
  library_names_spec='${libname}${shared_ext}'
 
18864
  dynamic_linker="$host_os ld.so"
 
18865
  shlibpath_var=LIBRARY_PATH
 
18866
  ;;
 
18867
 
 
18868
bsdi[45]*)
 
18869
  version_type=linux
 
18870
  need_version=no
 
18871
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18872
  soname_spec='${libname}${release}${shared_ext}$major'
 
18873
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
18874
  shlibpath_var=LD_LIBRARY_PATH
 
18875
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
18876
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
18877
  # the default ld.so.conf also contains /usr/contrib/lib and
 
18878
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
18879
  # libtool to hard-code these into programs
 
18880
  ;;
 
18881
 
 
18882
cygwin* | mingw* | pw32*)
 
18883
  version_type=windows
 
18884
  shrext_cmds=".dll"
 
18885
  need_version=no
 
18886
  need_lib_prefix=no
 
18887
 
 
18888
  case $GCC,$host_os in
 
18889
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
18890
    library_names_spec='$libname.dll.a'
 
18891
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
18892
    postinstall_cmds='base_file=`basename \${file}`~
 
18893
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
18894
      dldir=$destdir/`dirname \$dlpath`~
 
18895
      test -d \$dldir || mkdir -p \$dldir~
 
18896
      $install_prog $dir/$dlname \$dldir/$dlname~
 
18897
      chmod a+x \$dldir/$dlname'
 
18898
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
18899
      dlpath=$dir/\$dldll~
 
18900
       $rm \$dlpath'
 
18901
    shlibpath_overrides_runpath=yes
 
18902
 
 
18903
    case $host_os in
 
18904
    cygwin*)
 
18905
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
18906
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18907
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
18908
      ;;
 
18909
    mingw*)
 
18910
      # MinGW DLLs use traditional 'lib' prefix
 
18911
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18912
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
18913
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
18914
        # It is most probably a Windows format PATH printed by
 
18915
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
18916
        # path with ; separators, and with drive letters. We can handle the
 
18917
        # drive letters (cygwin fileutils understands them), so leave them,
 
18918
        # especially as we might pass files found there to a mingw objdump,
 
18919
        # which wouldn't understand a cygwinified path. Ahh.
 
18920
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
18921
      else
 
18922
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
18923
      fi
 
18924
      ;;
 
18925
    pw32*)
 
18926
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
18927
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18928
      ;;
 
18929
    esac
 
18930
    ;;
 
18931
 
 
18932
  *)
 
18933
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
18934
    ;;
 
18935
  esac
 
18936
  dynamic_linker='Win32 ld.exe'
 
18937
  # FIXME: first we should search . and the directory the executable is in
 
18938
  shlibpath_var=PATH
 
18939
  ;;
 
18940
 
 
18941
darwin* | rhapsody*)
 
18942
  dynamic_linker="$host_os dyld"
 
18943
  version_type=darwin
 
18944
  need_lib_prefix=no
 
18945
  need_version=no
 
18946
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
18947
  soname_spec='${libname}${release}${major}$shared_ext'
 
18948
  shlibpath_overrides_runpath=yes
 
18949
  shlibpath_var=DYLD_LIBRARY_PATH
 
18950
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
18951
 
 
18952
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
18953
  ;;
 
18954
 
 
18955
dgux*)
 
18956
  version_type=linux
 
18957
  need_lib_prefix=no
 
18958
  need_version=no
 
18959
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
18960
  soname_spec='${libname}${release}${shared_ext}$major'
 
18961
  shlibpath_var=LD_LIBRARY_PATH
 
18962
  ;;
 
18963
 
 
18964
freebsd1*)
 
18965
  dynamic_linker=no
 
18966
  ;;
 
18967
 
 
18968
freebsd* | dragonfly*)
 
18969
  # DragonFly does not have aout.  When/if they implement a new
 
18970
  # versioning mechanism, adjust this.
 
18971
  if test -x /usr/bin/objformat; then
 
18972
    objformat=`/usr/bin/objformat`
 
18973
  else
 
18974
    case $host_os in
 
18975
    freebsd[123]*) objformat=aout ;;
 
18976
    *) objformat=elf ;;
 
18977
    esac
 
18978
  fi
 
18979
  version_type=freebsd-$objformat
 
18980
  case $version_type in
 
18981
    freebsd-elf*)
 
18982
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18983
      need_version=no
 
18984
      need_lib_prefix=no
 
18985
      ;;
 
18986
    freebsd-*)
 
18987
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
18988
      need_version=yes
 
18989
      ;;
 
18990
  esac
 
18991
  shlibpath_var=LD_LIBRARY_PATH
 
18992
  case $host_os in
 
18993
  freebsd2*)
 
18994
    shlibpath_overrides_runpath=yes
 
18995
    ;;
 
18996
  freebsd3.[01]* | freebsdelf3.[01]*)
 
18997
    shlibpath_overrides_runpath=yes
 
18998
    hardcode_into_libs=yes
 
18999
    ;;
 
19000
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
19001
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
19002
    shlibpath_overrides_runpath=no
 
19003
    hardcode_into_libs=yes
 
19004
    ;;
 
19005
  *) # from 4.6 on, and DragonFly
 
19006
    shlibpath_overrides_runpath=yes
 
19007
    hardcode_into_libs=yes
 
19008
    ;;
 
19009
  esac
 
19010
  ;;
 
19011
 
 
19012
gnu*)
 
19013
  version_type=linux
 
19014
  need_lib_prefix=no
 
19015
  need_version=no
 
19016
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
19017
  soname_spec='${libname}${release}${shared_ext}$major'
 
19018
  shlibpath_var=LD_LIBRARY_PATH
 
19019
  hardcode_into_libs=yes
 
19020
  ;;
 
19021
 
 
19022
hpux9* | hpux10* | hpux11*)
 
19023
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
19024
  # link against other versions.
 
19025
  version_type=sunos
 
19026
  need_lib_prefix=no
 
19027
  need_version=no
 
19028
  case $host_cpu in
 
19029
  ia64*)
 
19030
    shrext_cmds='.so'
 
19031
    hardcode_into_libs=yes
 
19032
    dynamic_linker="$host_os dld.so"
 
19033
    shlibpath_var=LD_LIBRARY_PATH
 
19034
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
19035
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19036
    soname_spec='${libname}${release}${shared_ext}$major'
 
19037
    if test "X$HPUX_IA64_MODE" = X32; then
 
19038
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
19039
    else
 
19040
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
19041
    fi
 
19042
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
19043
    ;;
 
19044
   hppa*64*)
 
19045
     shrext_cmds='.sl'
 
19046
     hardcode_into_libs=yes
 
19047
     dynamic_linker="$host_os dld.sl"
 
19048
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
19049
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
19050
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19051
     soname_spec='${libname}${release}${shared_ext}$major'
 
19052
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
19053
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
19054
     ;;
 
19055
   *)
 
19056
    shrext_cmds='.sl'
 
19057
    dynamic_linker="$host_os dld.sl"
 
19058
    shlibpath_var=SHLIB_PATH
 
19059
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
19060
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19061
    soname_spec='${libname}${release}${shared_ext}$major'
 
19062
    ;;
 
19063
  esac
 
19064
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
19065
  postinstall_cmds='chmod 555 $lib'
 
19066
  ;;
 
19067
 
 
19068
interix[3-9]*)
 
19069
  version_type=linux
 
19070
  need_lib_prefix=no
 
19071
  need_version=no
 
19072
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
19073
  soname_spec='${libname}${release}${shared_ext}$major'
 
19074
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
19075
  shlibpath_var=LD_LIBRARY_PATH
 
19076
  shlibpath_overrides_runpath=no
 
19077
  hardcode_into_libs=yes
 
19078
  ;;
 
19079
 
 
19080
irix5* | irix6* | nonstopux*)
 
19081
  case $host_os in
 
19082
    nonstopux*) version_type=nonstopux ;;
 
19083
    *)
 
19084
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
19085
                version_type=linux
 
19086
        else
 
19087
                version_type=irix
 
19088
        fi ;;
 
19089
  esac
 
19090
  need_lib_prefix=no
 
19091
  need_version=no
 
19092
  soname_spec='${libname}${release}${shared_ext}$major'
 
19093
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
19094
  case $host_os in
 
19095
  irix5* | nonstopux*)
 
19096
    libsuff= shlibsuff=
 
19097
    ;;
 
19098
  *)
 
19099
    case $LD in # libtool.m4 will add one of these switches to LD
 
19100
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
19101
      libsuff= shlibsuff= libmagic=32-bit;;
 
19102
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
19103
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
19104
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
19105
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
19106
    *) libsuff= shlibsuff= libmagic=never-match;;
 
19107
    esac
 
19108
    ;;
 
19109
  esac
 
19110
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
19111
  shlibpath_overrides_runpath=no
 
19112
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
19113
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
19114
  hardcode_into_libs=yes
 
19115
  ;;
 
19116
 
 
19117
# No shared lib support for Linux oldld, aout, or coff.
 
19118
linux*oldld* | linux*aout* | linux*coff*)
 
19119
  dynamic_linker=no
 
19120
  ;;
 
19121
 
 
19122
# This must be Linux ELF.
 
19123
linux* | k*bsd*-gnu)
 
19124
  version_type=linux
 
19125
  need_lib_prefix=no
 
19126
  need_version=no
 
19127
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19128
  soname_spec='${libname}${release}${shared_ext}$major'
 
19129
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
19130
  shlibpath_var=LD_LIBRARY_PATH
 
19131
  shlibpath_overrides_runpath=no
 
19132
  # This implies no fast_install, which is unacceptable.
 
19133
  # Some rework will be needed to allow for fast_install
 
19134
  # before this can be enabled.
 
19135
  hardcode_into_libs=yes
 
19136
 
 
19137
  # find out which ABI we are using
 
19138
  libsuff=
 
19139
  case "$host_cpu" in
 
19140
  x86_64*|s390x*|powerpc64*)
 
19141
    echo '#line 19141 "configure"' > conftest.$ac_ext
 
19142
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19143
  (eval $ac_compile) 2>&5
 
19144
  ac_status=$?
 
19145
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19146
  (exit $ac_status); }; then
 
19147
      case `/usr/bin/file conftest.$ac_objext` in
 
19148
      *64-bit*)
 
19149
        libsuff=64
 
19150
        ;;
 
19151
      esac
 
19152
    fi
 
19153
    rm -rf conftest*
 
19154
    ;;
 
19155
  esac
 
19156
 
 
19157
  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
 
19158
 
 
19159
  # Append ld.so.conf contents to the search path
 
19160
  if test -f /etc/ld.so.conf; then
 
19161
    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' ' '`
 
19162
    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
 
19163
  fi
 
19164
 
 
19165
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
19166
  # powerpc, because MkLinux only supported shared libraries with the
 
19167
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
19168
  # most powerpc-linux boxes support dynamic linking these days and
 
19169
  # people can always --disable-shared, the test was removed, and we
 
19170
  # assume the GNU/Linux dynamic linker is in use.
 
19171
  dynamic_linker='GNU/Linux ld.so'
 
19172
  ;;
 
19173
 
 
19174
netbsd*)
 
19175
  version_type=sunos
 
19176
  need_lib_prefix=no
 
19177
  need_version=no
 
19178
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
19179
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
19180
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
19181
    dynamic_linker='NetBSD (a.out) ld.so'
 
19182
  else
 
19183
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
19184
    soname_spec='${libname}${release}${shared_ext}$major'
 
19185
    dynamic_linker='NetBSD ld.elf_so'
 
19186
  fi
 
19187
  shlibpath_var=LD_LIBRARY_PATH
 
19188
  shlibpath_overrides_runpath=yes
 
19189
  hardcode_into_libs=yes
 
19190
  ;;
 
19191
 
 
19192
newsos6)
 
19193
  version_type=linux
 
19194
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19195
  shlibpath_var=LD_LIBRARY_PATH
 
19196
  shlibpath_overrides_runpath=yes
 
19197
  ;;
 
19198
 
 
19199
nto-qnx*)
 
19200
  version_type=linux
 
19201
  need_lib_prefix=no
 
19202
  need_version=no
 
19203
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19204
  soname_spec='${libname}${release}${shared_ext}$major'
 
19205
  shlibpath_var=LD_LIBRARY_PATH
 
19206
  shlibpath_overrides_runpath=yes
 
19207
  ;;
 
19208
 
 
19209
openbsd*)
 
19210
  version_type=sunos
 
19211
  sys_lib_dlsearch_path_spec="/usr/lib"
 
19212
  need_lib_prefix=no
 
19213
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
19214
  case $host_os in
 
19215
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
19216
    *)                         need_version=no  ;;
 
19217
  esac
 
19218
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
19219
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
19220
  shlibpath_var=LD_LIBRARY_PATH
 
19221
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
19222
    case $host_os in
 
19223
      openbsd2.[89] | openbsd2.[89].*)
 
19224
        shlibpath_overrides_runpath=no
 
19225
        ;;
 
19226
      *)
 
19227
        shlibpath_overrides_runpath=yes
 
19228
        ;;
 
19229
      esac
 
19230
  else
 
19231
    shlibpath_overrides_runpath=yes
 
19232
  fi
 
19233
  ;;
 
19234
 
 
19235
os2*)
 
19236
  libname_spec='$name'
 
19237
  shrext_cmds=".dll"
 
19238
  need_lib_prefix=no
 
19239
  library_names_spec='$libname${shared_ext} $libname.a'
 
19240
  dynamic_linker='OS/2 ld.exe'
 
19241
  shlibpath_var=LIBPATH
 
19242
  ;;
 
19243
 
 
19244
osf3* | osf4* | osf5*)
 
19245
  version_type=osf
 
19246
  need_lib_prefix=no
 
19247
  need_version=no
 
19248
  soname_spec='${libname}${release}${shared_ext}$major'
 
19249
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19250
  shlibpath_var=LD_LIBRARY_PATH
 
19251
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
19252
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
19253
  ;;
 
19254
 
 
19255
rdos*)
 
19256
  dynamic_linker=no
 
19257
  ;;
 
19258
 
 
19259
solaris*)
 
19260
  version_type=linux
 
19261
  need_lib_prefix=no
 
19262
  need_version=no
 
19263
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19264
  soname_spec='${libname}${release}${shared_ext}$major'
 
19265
  shlibpath_var=LD_LIBRARY_PATH
 
19266
  shlibpath_overrides_runpath=yes
 
19267
  hardcode_into_libs=yes
 
19268
  # ldd complains unless libraries are executable
 
19269
  postinstall_cmds='chmod +x $lib'
 
19270
  ;;
 
19271
 
 
19272
sunos4*)
 
19273
  version_type=sunos
 
19274
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
19275
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
19276
  shlibpath_var=LD_LIBRARY_PATH
 
19277
  shlibpath_overrides_runpath=yes
 
19278
  if test "$with_gnu_ld" = yes; then
 
19279
    need_lib_prefix=no
 
19280
  fi
 
19281
  need_version=yes
 
19282
  ;;
 
19283
 
 
19284
sysv4 | sysv4.3*)
 
19285
  version_type=linux
 
19286
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19287
  soname_spec='${libname}${release}${shared_ext}$major'
 
19288
  shlibpath_var=LD_LIBRARY_PATH
 
19289
  case $host_vendor in
 
19290
    sni)
 
19291
      shlibpath_overrides_runpath=no
 
19292
      need_lib_prefix=no
 
19293
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
19294
      runpath_var=LD_RUN_PATH
 
19295
      ;;
 
19296
    siemens)
 
19297
      need_lib_prefix=no
 
19298
      ;;
 
19299
    motorola)
 
19300
      need_lib_prefix=no
 
19301
      need_version=no
 
19302
      shlibpath_overrides_runpath=no
 
19303
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
19304
      ;;
 
19305
  esac
 
19306
  ;;
 
19307
 
 
19308
sysv4*MP*)
 
19309
  if test -d /usr/nec ;then
 
19310
    version_type=linux
 
19311
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
19312
    soname_spec='$libname${shared_ext}.$major'
 
19313
    shlibpath_var=LD_LIBRARY_PATH
 
19314
  fi
 
19315
  ;;
 
19316
 
 
19317
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
19318
  version_type=freebsd-elf
 
19319
  need_lib_prefix=no
 
19320
  need_version=no
 
19321
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
19322
  soname_spec='${libname}${release}${shared_ext}$major'
 
19323
  shlibpath_var=LD_LIBRARY_PATH
 
19324
  hardcode_into_libs=yes
 
19325
  if test "$with_gnu_ld" = yes; then
 
19326
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
19327
    shlibpath_overrides_runpath=no
 
19328
  else
 
19329
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
19330
    shlibpath_overrides_runpath=yes
 
19331
    case $host_os in
 
19332
      sco3.2v5*)
 
19333
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
19334
        ;;
 
19335
    esac
 
19336
  fi
 
19337
  sys_lib_dlsearch_path_spec='/usr/lib'
 
19338
  ;;
 
19339
 
 
19340
uts4*)
 
19341
  version_type=linux
 
19342
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19343
  soname_spec='${libname}${release}${shared_ext}$major'
 
19344
  shlibpath_var=LD_LIBRARY_PATH
 
19345
  ;;
 
19346
 
 
19347
*)
 
19348
  dynamic_linker=no
 
19349
  ;;
 
19350
esac
 
19351
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
19352
$as_echo "$dynamic_linker" >&6; }
 
19353
test "$dynamic_linker" = no && can_build_shared=no
 
19354
 
 
19355
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
19356
  $as_echo_n "(cached) " >&6
 
19357
else
 
19358
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
19359
fi
 
19360
 
 
19361
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
19362
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
19363
  $as_echo_n "(cached) " >&6
 
19364
else
 
19365
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
19366
fi
 
19367
 
 
19368
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
19369
 
 
19370
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
19371
if test "$GCC" = yes; then
 
19372
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
19373
fi
 
19374
 
 
19375
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
19376
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
 
19377
hardcode_action_GCJ=
 
19378
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
 
19379
   test -n "$runpath_var_GCJ" || \
 
19380
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
 
19381
 
 
19382
  # We can hardcode non-existant directories.
 
19383
  if test "$hardcode_direct_GCJ" != no &&
 
19384
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
19385
     # have to relink, otherwise we might link with an installed library
 
19386
     # when we should be linking with a yet-to-be-installed one
 
19387
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
 
19388
     test "$hardcode_minus_L_GCJ" != no; then
 
19389
    # Linking always hardcodes the temporary library directory.
 
19390
    hardcode_action_GCJ=relink
 
19391
  else
 
19392
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
19393
    hardcode_action_GCJ=immediate
 
19394
  fi
 
19395
else
 
19396
  # We cannot hardcode anything, or else we can only hardcode existing
 
19397
  # directories.
 
19398
  hardcode_action_GCJ=unsupported
 
19399
fi
 
19400
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
19401
$as_echo "$hardcode_action_GCJ" >&6; }
 
19402
 
 
19403
if test "$hardcode_action_GCJ" = relink; then
 
19404
  # Fast installation is not supported
 
19405
  enable_fast_install=no
 
19406
elif test "$shlibpath_overrides_runpath" = yes ||
 
19407
     test "$enable_shared" = no; then
 
19408
  # Fast installation is not necessary
 
19409
  enable_fast_install=needless
 
19410
fi
 
19411
 
 
19412
 
 
19413
# The else clause should only fire when bootstrapping the
 
19414
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
19415
# with your package, and you will get complaints that there are
 
19416
# no rules to generate ltmain.sh.
 
19417
if test -f "$ltmain"; then
 
19418
  # See if we are running on zsh, and set the options which allow our commands through
 
19419
  # without removal of \ escapes.
 
19420
  if test -n "${ZSH_VERSION+set}" ; then
 
19421
    setopt NO_GLOB_SUBST
 
19422
  fi
 
19423
  # Now quote all the things that may contain metacharacters while being
 
19424
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
19425
  # variables and quote the copies for generation of the libtool script.
 
19426
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
19427
    SED SHELL STRIP \
 
19428
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
19429
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
19430
    deplibs_check_method reload_flag reload_cmds need_locks \
 
19431
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
19432
    lt_cv_sys_global_symbol_to_c_name_address \
 
19433
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
19434
    old_postinstall_cmds old_postuninstall_cmds \
 
19435
    compiler_GCJ \
 
19436
    CC_GCJ \
 
19437
    LD_GCJ \
 
19438
    lt_prog_compiler_wl_GCJ \
 
19439
    lt_prog_compiler_pic_GCJ \
 
19440
    lt_prog_compiler_static_GCJ \
 
19441
    lt_prog_compiler_no_builtin_flag_GCJ \
 
19442
    export_dynamic_flag_spec_GCJ \
 
19443
    thread_safe_flag_spec_GCJ \
 
19444
    whole_archive_flag_spec_GCJ \
 
19445
    enable_shared_with_static_runtimes_GCJ \
 
19446
    old_archive_cmds_GCJ \
 
19447
    old_archive_from_new_cmds_GCJ \
 
19448
    predep_objects_GCJ \
 
19449
    postdep_objects_GCJ \
 
19450
    predeps_GCJ \
 
19451
    postdeps_GCJ \
 
19452
    compiler_lib_search_path_GCJ \
 
19453
    compiler_lib_search_dirs_GCJ \
 
19454
    archive_cmds_GCJ \
 
19455
    archive_expsym_cmds_GCJ \
 
19456
    postinstall_cmds_GCJ \
 
19457
    postuninstall_cmds_GCJ \
 
19458
    old_archive_from_expsyms_cmds_GCJ \
 
19459
    allow_undefined_flag_GCJ \
 
19460
    no_undefined_flag_GCJ \
 
19461
    export_symbols_cmds_GCJ \
 
19462
    hardcode_libdir_flag_spec_GCJ \
 
19463
    hardcode_libdir_flag_spec_ld_GCJ \
 
19464
    hardcode_libdir_separator_GCJ \
 
19465
    hardcode_automatic_GCJ \
 
19466
    module_cmds_GCJ \
 
19467
    module_expsym_cmds_GCJ \
 
19468
    lt_cv_prog_compiler_c_o_GCJ \
 
19469
    fix_srcfile_path_GCJ \
 
19470
    exclude_expsyms_GCJ \
 
19471
    include_expsyms_GCJ; do
 
19472
 
 
19473
    case $var in
 
19474
    old_archive_cmds_GCJ | \
 
19475
    old_archive_from_new_cmds_GCJ | \
 
19476
    archive_cmds_GCJ | \
 
19477
    archive_expsym_cmds_GCJ | \
 
19478
    module_cmds_GCJ | \
 
19479
    module_expsym_cmds_GCJ | \
 
19480
    old_archive_from_expsyms_cmds_GCJ | \
 
19481
    export_symbols_cmds_GCJ | \
 
19482
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
19483
    postinstall_cmds | postuninstall_cmds | \
 
19484
    old_postinstall_cmds | old_postuninstall_cmds | \
 
19485
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
19486
      # Double-quote double-evaled strings.
 
19487
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
19488
      ;;
 
19489
    *)
 
19490
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
19491
      ;;
 
19492
    esac
 
19493
  done
 
19494
 
 
19495
  case $lt_echo in
 
19496
  *'\$0 --fallback-echo"')
 
19497
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
19498
    ;;
 
19499
  esac
 
19500
 
 
19501
cfgfile="$ofile"
 
19502
 
 
19503
  cat <<__EOF__ >> "$cfgfile"
 
19504
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
19505
 
 
19506
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
19507
 
 
19508
# Shell to use when invoking shell scripts.
 
19509
SHELL=$lt_SHELL
 
19510
 
 
19511
# Whether or not to build shared libraries.
 
19512
build_libtool_libs=$enable_shared
 
19513
 
 
19514
# Whether or not to build static libraries.
 
19515
build_old_libs=$enable_static
 
19516
 
 
19517
# Whether or not to add -lc for building shared libraries.
 
19518
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
 
19519
 
 
19520
# Whether or not to disallow shared libs when runtime libs are static
 
19521
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
 
19522
 
 
19523
# Whether or not to optimize for fast installation.
 
19524
fast_install=$enable_fast_install
 
19525
 
 
19526
# The host system.
 
19527
host_alias=$host_alias
 
19528
host=$host
 
19529
host_os=$host_os
 
19530
 
 
19531
# The build system.
 
19532
build_alias=$build_alias
 
19533
build=$build
 
19534
build_os=$build_os
 
19535
 
 
19536
# An echo program that does not interpret backslashes.
 
19537
echo=$lt_echo
 
19538
 
 
19539
# The archiver.
 
19540
AR=$lt_AR
 
19541
AR_FLAGS=$lt_AR_FLAGS
 
19542
 
 
19543
# A C compiler.
 
19544
LTCC=$lt_LTCC
 
19545
 
 
19546
# LTCC compiler flags.
 
19547
LTCFLAGS=$lt_LTCFLAGS
 
19548
 
 
19549
# A language-specific compiler.
 
19550
CC=$lt_compiler_GCJ
 
19551
 
 
19552
# Is the compiler the GNU C compiler?
 
19553
with_gcc=$GCC_GCJ
 
19554
 
 
19555
# An ERE matcher.
 
19556
EGREP=$lt_EGREP
 
19557
 
 
19558
# The linker used to build libraries.
 
19559
LD=$lt_LD_GCJ
 
19560
 
 
19561
# Whether we need hard or soft links.
 
19562
LN_S=$lt_LN_S
 
19563
 
 
19564
# A BSD-compatible nm program.
 
19565
NM=$lt_NM
 
19566
 
 
19567
# A symbol stripping program
 
19568
STRIP=$lt_STRIP
 
19569
 
 
19570
# Used to examine libraries when file_magic_cmd begins "file"
 
19571
MAGIC_CMD=$MAGIC_CMD
 
19572
 
 
19573
# Used on cygwin: DLL creation program.
 
19574
DLLTOOL="$DLLTOOL"
 
19575
 
 
19576
# Used on cygwin: object dumper.
 
19577
OBJDUMP="$OBJDUMP"
 
19578
 
 
19579
# Used on cygwin: assembler.
 
19580
AS="$AS"
 
19581
 
 
19582
# The name of the directory that contains temporary libtool files.
 
19583
objdir=$objdir
 
19584
 
 
19585
# How to create reloadable object files.
 
19586
reload_flag=$lt_reload_flag
 
19587
reload_cmds=$lt_reload_cmds
 
19588
 
 
19589
# How to pass a linker flag through the compiler.
 
19590
wl=$lt_lt_prog_compiler_wl_GCJ
 
19591
 
 
19592
# Object file suffix (normally "o").
 
19593
objext="$ac_objext"
 
19594
 
 
19595
# Old archive suffix (normally "a").
 
19596
libext="$libext"
 
19597
 
 
19598
# Shared library suffix (normally ".so").
 
19599
shrext_cmds='$shrext_cmds'
 
19600
 
 
19601
# Executable file suffix (normally "").
 
19602
exeext="$exeext"
 
19603
 
 
19604
# Additional compiler flags for building library objects.
 
19605
pic_flag=$lt_lt_prog_compiler_pic_GCJ
 
19606
pic_mode=$pic_mode
 
19607
 
 
19608
# What is the maximum length of a command?
 
19609
max_cmd_len=$lt_cv_sys_max_cmd_len
 
19610
 
 
19611
# Does compiler simultaneously support -c and -o options?
 
19612
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
 
19613
 
 
19614
# Must we lock files when doing compilation?
 
19615
need_locks=$lt_need_locks
 
19616
 
 
19617
# Do we need the lib prefix for modules?
 
19618
need_lib_prefix=$need_lib_prefix
 
19619
 
 
19620
# Do we need a version for libraries?
 
19621
need_version=$need_version
 
19622
 
 
19623
# Whether dlopen is supported.
 
19624
dlopen_support=$enable_dlopen
 
19625
 
 
19626
# Whether dlopen of programs is supported.
 
19627
dlopen_self=$enable_dlopen_self
 
19628
 
 
19629
# Whether dlopen of statically linked programs is supported.
 
19630
dlopen_self_static=$enable_dlopen_self_static
 
19631
 
 
19632
# Compiler flag to prevent dynamic linking.
 
19633
link_static_flag=$lt_lt_prog_compiler_static_GCJ
 
19634
 
 
19635
# Compiler flag to turn off builtin functions.
 
19636
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
 
19637
 
 
19638
# Compiler flag to allow reflexive dlopens.
 
19639
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
 
19640
 
 
19641
# Compiler flag to generate shared objects directly from archives.
 
19642
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
 
19643
 
 
19644
# Compiler flag to generate thread-safe objects.
 
19645
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
 
19646
 
 
19647
# Library versioning type.
 
19648
version_type=$version_type
 
19649
 
 
19650
# Format of library name prefix.
 
19651
libname_spec=$lt_libname_spec
 
19652
 
 
19653
# List of archive names.  First name is the real one, the rest are links.
 
19654
# The last name is the one that the linker finds with -lNAME.
 
19655
library_names_spec=$lt_library_names_spec
 
19656
 
 
19657
# The coded name of the library, if different from the real name.
 
19658
soname_spec=$lt_soname_spec
 
19659
 
 
19660
# Commands used to build and install an old-style archive.
 
19661
RANLIB=$lt_RANLIB
 
19662
old_archive_cmds=$lt_old_archive_cmds_GCJ
 
19663
old_postinstall_cmds=$lt_old_postinstall_cmds
 
19664
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
19665
 
 
19666
# Create an old-style archive from a shared archive.
 
19667
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
 
19668
 
 
19669
# Create a temporary old-style archive to link instead of a shared archive.
 
19670
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
 
19671
 
 
19672
# Commands used to build and install a shared archive.
 
19673
archive_cmds=$lt_archive_cmds_GCJ
 
19674
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
 
19675
postinstall_cmds=$lt_postinstall_cmds
 
19676
postuninstall_cmds=$lt_postuninstall_cmds
 
19677
 
 
19678
# Commands used to build a loadable module (assumed same as above if empty)
 
19679
module_cmds=$lt_module_cmds_GCJ
 
19680
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
 
19681
 
 
19682
# Commands to strip libraries.
 
19683
old_striplib=$lt_old_striplib
 
19684
striplib=$lt_striplib
 
19685
 
 
19686
# Dependencies to place before the objects being linked to create a
 
19687
# shared library.
 
19688
predep_objects=$lt_predep_objects_GCJ
 
19689
 
 
19690
# Dependencies to place after the objects being linked to create a
 
19691
# shared library.
 
19692
postdep_objects=$lt_postdep_objects_GCJ
 
19693
 
 
19694
# Dependencies to place before the objects being linked to create a
 
19695
# shared library.
 
19696
predeps=$lt_predeps_GCJ
 
19697
 
 
19698
# Dependencies to place after the objects being linked to create a
 
19699
# shared library.
 
19700
postdeps=$lt_postdeps_GCJ
 
19701
 
 
19702
# The directories searched by this compiler when creating a shared
 
19703
# library
 
19704
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
 
19705
 
 
19706
# The library search path used internally by the compiler when linking
 
19707
# a shared library.
 
19708
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
 
19709
 
 
19710
# Method to check whether dependent libraries are shared objects.
 
19711
deplibs_check_method=$lt_deplibs_check_method
 
19712
 
 
19713
# Command to use when deplibs_check_method == file_magic.
 
19714
file_magic_cmd=$lt_file_magic_cmd
 
19715
 
 
19716
# Flag that allows shared libraries with undefined symbols to be built.
 
19717
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
 
19718
 
 
19719
# Flag that forces no undefined symbols.
 
19720
no_undefined_flag=$lt_no_undefined_flag_GCJ
 
19721
 
 
19722
# Commands used to finish a libtool library installation in a directory.
 
19723
finish_cmds=$lt_finish_cmds
 
19724
 
 
19725
# Same as above, but a single script fragment to be evaled but not shown.
 
19726
finish_eval=$lt_finish_eval
 
19727
 
 
19728
# Take the output of nm and produce a listing of raw symbols and C names.
 
19729
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
19730
 
 
19731
# Transform the output of nm in a proper C declaration
 
19732
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
19733
 
 
19734
# Transform the output of nm in a C name address pair
 
19735
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
19736
 
 
19737
# This is the shared library runtime path variable.
 
19738
runpath_var=$runpath_var
 
19739
 
 
19740
# This is the shared library path variable.
 
19741
shlibpath_var=$shlibpath_var
 
19742
 
 
19743
# Is shlibpath searched before the hard-coded library search path?
 
19744
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
19745
 
 
19746
# How to hardcode a shared library path into an executable.
 
19747
hardcode_action=$hardcode_action_GCJ
 
19748
 
 
19749
# Whether we should hardcode library paths into libraries.
 
19750
hardcode_into_libs=$hardcode_into_libs
 
19751
 
 
19752
# Flag to hardcode \$libdir into a binary during linking.
 
19753
# This must work even if \$libdir does not exist.
 
19754
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
 
19755
 
 
19756
# If ld is used when linking, flag to hardcode \$libdir into
 
19757
# a binary during linking. This must work even if \$libdir does
 
19758
# not exist.
 
19759
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
 
19760
 
 
19761
# Whether we need a single -rpath flag with a separated argument.
 
19762
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
 
19763
 
 
19764
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
19765
# resulting binary.
 
19766
hardcode_direct=$hardcode_direct_GCJ
 
19767
 
 
19768
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
19769
# resulting binary.
 
19770
hardcode_minus_L=$hardcode_minus_L_GCJ
 
19771
 
 
19772
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
19773
# the resulting binary.
 
19774
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
 
19775
 
 
19776
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
19777
# and all subsequent libraries and executables linked against it.
 
19778
hardcode_automatic=$hardcode_automatic_GCJ
 
19779
 
 
19780
# Variables whose values should be saved in libtool wrapper scripts and
 
19781
# restored at relink time.
 
19782
variables_saved_for_relink="$variables_saved_for_relink"
 
19783
 
 
19784
# Whether libtool must link a program against all its dependency libraries.
 
19785
link_all_deplibs=$link_all_deplibs_GCJ
 
19786
 
 
19787
# Compile-time system search path for libraries
 
19788
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
19789
 
 
19790
# Run-time system search path for libraries
 
19791
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
19792
 
 
19793
# Fix the shell variable \$srcfile for the compiler.
 
19794
fix_srcfile_path=$lt_fix_srcfile_path
 
19795
 
 
19796
# Set to yes if exported symbols are required.
 
19797
always_export_symbols=$always_export_symbols_GCJ
 
19798
 
 
19799
# The commands to list exported symbols.
 
19800
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
 
19801
 
 
19802
# The commands to extract the exported symbol list from a shared archive.
 
19803
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
19804
 
 
19805
# Symbols that should not be listed in the preloaded symbols.
 
19806
exclude_expsyms=$lt_exclude_expsyms_GCJ
 
19807
 
 
19808
# Symbols that must always be exported.
 
19809
include_expsyms=$lt_include_expsyms_GCJ
 
19810
 
 
19811
# ### END LIBTOOL TAG CONFIG: $tagname
 
19812
 
 
19813
__EOF__
 
19814
 
 
19815
 
 
19816
else
 
19817
  # If there is no Makefile yet, we rely on a make rule to execute
 
19818
  # `config.status --recheck' to rerun these tests and create the
 
19819
  # libtool script then.
 
19820
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
19821
  if test -f "$ltmain_in"; then
 
19822
    test -f Makefile && make "$ltmain"
 
19823
  fi
 
19824
fi
 
19825
 
 
19826
 
 
19827
ac_ext=c
 
19828
ac_cpp='$CPP $CPPFLAGS'
 
19829
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19830
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19831
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19832
 
 
19833
CC="$lt_save_CC"
 
19834
 
 
19835
        else
 
19836
          tagname=""
 
19837
        fi
 
19838
        ;;
 
19839
 
 
19840
      RC)
 
19841
 
 
19842
 
 
19843
# Source file extension for RC test sources.
 
19844
ac_ext=rc
 
19845
 
 
19846
# Object file extension for compiled RC test sources.
 
19847
objext=o
 
19848
objext_RC=$objext
 
19849
 
 
19850
# Code to be used in simple compile tests
 
19851
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
 
19852
 
 
19853
# Code to be used in simple link tests
 
19854
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
19855
 
 
19856
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
19857
 
 
19858
# If no C compiler was specified, use CC.
 
19859
LTCC=${LTCC-"$CC"}
 
19860
 
 
19861
# If no C compiler flags were specified, use CFLAGS.
 
19862
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
19863
 
 
19864
# Allow CC to be a program name with arguments.
 
19865
compiler=$CC
 
19866
 
 
19867
 
 
19868
# save warnings/boilerplate of simple test code
 
19869
ac_outfile=conftest.$ac_objext
 
19870
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
19871
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
19872
_lt_compiler_boilerplate=`cat conftest.err`
 
19873
$rm conftest*
 
19874
 
 
19875
ac_outfile=conftest.$ac_objext
 
19876
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
19877
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
19878
_lt_linker_boilerplate=`cat conftest.err`
 
19879
$rm -r conftest*
 
19880
 
 
19881
 
 
19882
# Allow CC to be a program name with arguments.
 
19883
lt_save_CC="$CC"
 
19884
CC=${RC-"windres"}
 
19885
compiler=$CC
 
19886
compiler_RC=$CC
 
19887
for cc_temp in $compiler""; do
 
19888
  case $cc_temp in
 
19889
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
19890
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
19891
    \-*) ;;
 
19892
    *) break;;
 
19893
  esac
 
19894
done
 
19895
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
19896
 
 
19897
lt_cv_prog_compiler_c_o_RC=yes
 
19898
 
 
19899
# The else clause should only fire when bootstrapping the
 
19900
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
19901
# with your package, and you will get complaints that there are
 
19902
# no rules to generate ltmain.sh.
 
19903
if test -f "$ltmain"; then
 
19904
  # See if we are running on zsh, and set the options which allow our commands through
 
19905
  # without removal of \ escapes.
 
19906
  if test -n "${ZSH_VERSION+set}" ; then
 
19907
    setopt NO_GLOB_SUBST
 
19908
  fi
 
19909
  # Now quote all the things that may contain metacharacters while being
 
19910
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
19911
  # variables and quote the copies for generation of the libtool script.
 
19912
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
19913
    SED SHELL STRIP \
 
19914
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
19915
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
19916
    deplibs_check_method reload_flag reload_cmds need_locks \
 
19917
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
19918
    lt_cv_sys_global_symbol_to_c_name_address \
 
19919
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
19920
    old_postinstall_cmds old_postuninstall_cmds \
 
19921
    compiler_RC \
 
19922
    CC_RC \
 
19923
    LD_RC \
 
19924
    lt_prog_compiler_wl_RC \
 
19925
    lt_prog_compiler_pic_RC \
 
19926
    lt_prog_compiler_static_RC \
 
19927
    lt_prog_compiler_no_builtin_flag_RC \
 
19928
    export_dynamic_flag_spec_RC \
 
19929
    thread_safe_flag_spec_RC \
 
19930
    whole_archive_flag_spec_RC \
 
19931
    enable_shared_with_static_runtimes_RC \
 
19932
    old_archive_cmds_RC \
 
19933
    old_archive_from_new_cmds_RC \
 
19934
    predep_objects_RC \
 
19935
    postdep_objects_RC \
 
19936
    predeps_RC \
 
19937
    postdeps_RC \
 
19938
    compiler_lib_search_path_RC \
 
19939
    compiler_lib_search_dirs_RC \
 
19940
    archive_cmds_RC \
 
19941
    archive_expsym_cmds_RC \
 
19942
    postinstall_cmds_RC \
 
19943
    postuninstall_cmds_RC \
 
19944
    old_archive_from_expsyms_cmds_RC \
 
19945
    allow_undefined_flag_RC \
 
19946
    no_undefined_flag_RC \
 
19947
    export_symbols_cmds_RC \
 
19948
    hardcode_libdir_flag_spec_RC \
 
19949
    hardcode_libdir_flag_spec_ld_RC \
 
19950
    hardcode_libdir_separator_RC \
 
19951
    hardcode_automatic_RC \
 
19952
    module_cmds_RC \
 
19953
    module_expsym_cmds_RC \
 
19954
    lt_cv_prog_compiler_c_o_RC \
 
19955
    fix_srcfile_path_RC \
 
19956
    exclude_expsyms_RC \
 
19957
    include_expsyms_RC; do
 
19958
 
 
19959
    case $var in
 
19960
    old_archive_cmds_RC | \
 
19961
    old_archive_from_new_cmds_RC | \
 
19962
    archive_cmds_RC | \
 
19963
    archive_expsym_cmds_RC | \
 
19964
    module_cmds_RC | \
 
19965
    module_expsym_cmds_RC | \
 
19966
    old_archive_from_expsyms_cmds_RC | \
 
19967
    export_symbols_cmds_RC | \
 
19968
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
19969
    postinstall_cmds | postuninstall_cmds | \
 
19970
    old_postinstall_cmds | old_postuninstall_cmds | \
 
19971
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
19972
      # Double-quote double-evaled strings.
 
19973
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
19974
      ;;
 
19975
    *)
 
19976
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
19977
      ;;
 
19978
    esac
 
19979
  done
 
19980
 
 
19981
  case $lt_echo in
 
19982
  *'\$0 --fallback-echo"')
 
19983
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
19984
    ;;
 
19985
  esac
 
19986
 
 
19987
cfgfile="$ofile"
 
19988
 
 
19989
  cat <<__EOF__ >> "$cfgfile"
 
19990
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
19991
 
 
19992
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
19993
 
 
19994
# Shell to use when invoking shell scripts.
 
19995
SHELL=$lt_SHELL
 
19996
 
 
19997
# Whether or not to build shared libraries.
 
19998
build_libtool_libs=$enable_shared
 
19999
 
 
20000
# Whether or not to build static libraries.
 
20001
build_old_libs=$enable_static
 
20002
 
 
20003
# Whether or not to add -lc for building shared libraries.
 
20004
build_libtool_need_lc=$archive_cmds_need_lc_RC
 
20005
 
 
20006
# Whether or not to disallow shared libs when runtime libs are static
 
20007
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
 
20008
 
 
20009
# Whether or not to optimize for fast installation.
 
20010
fast_install=$enable_fast_install
 
20011
 
 
20012
# The host system.
 
20013
host_alias=$host_alias
 
20014
host=$host
 
20015
host_os=$host_os
 
20016
 
 
20017
# The build system.
 
20018
build_alias=$build_alias
 
20019
build=$build
 
20020
build_os=$build_os
 
20021
 
 
20022
# An echo program that does not interpret backslashes.
 
20023
echo=$lt_echo
 
20024
 
 
20025
# The archiver.
 
20026
AR=$lt_AR
 
20027
AR_FLAGS=$lt_AR_FLAGS
 
20028
 
 
20029
# A C compiler.
 
20030
LTCC=$lt_LTCC
 
20031
 
 
20032
# LTCC compiler flags.
 
20033
LTCFLAGS=$lt_LTCFLAGS
 
20034
 
 
20035
# A language-specific compiler.
 
20036
CC=$lt_compiler_RC
 
20037
 
 
20038
# Is the compiler the GNU C compiler?
 
20039
with_gcc=$GCC_RC
 
20040
 
 
20041
# An ERE matcher.
 
20042
EGREP=$lt_EGREP
 
20043
 
 
20044
# The linker used to build libraries.
 
20045
LD=$lt_LD_RC
 
20046
 
 
20047
# Whether we need hard or soft links.
 
20048
LN_S=$lt_LN_S
 
20049
 
 
20050
# A BSD-compatible nm program.
 
20051
NM=$lt_NM
 
20052
 
 
20053
# A symbol stripping program
 
20054
STRIP=$lt_STRIP
 
20055
 
 
20056
# Used to examine libraries when file_magic_cmd begins "file"
 
20057
MAGIC_CMD=$MAGIC_CMD
 
20058
 
 
20059
# Used on cygwin: DLL creation program.
 
20060
DLLTOOL="$DLLTOOL"
 
20061
 
 
20062
# Used on cygwin: object dumper.
 
20063
OBJDUMP="$OBJDUMP"
 
20064
 
 
20065
# Used on cygwin: assembler.
 
20066
AS="$AS"
 
20067
 
 
20068
# The name of the directory that contains temporary libtool files.
 
20069
objdir=$objdir
 
20070
 
 
20071
# How to create reloadable object files.
 
20072
reload_flag=$lt_reload_flag
 
20073
reload_cmds=$lt_reload_cmds
 
20074
 
 
20075
# How to pass a linker flag through the compiler.
 
20076
wl=$lt_lt_prog_compiler_wl_RC
 
20077
 
 
20078
# Object file suffix (normally "o").
 
20079
objext="$ac_objext"
 
20080
 
 
20081
# Old archive suffix (normally "a").
 
20082
libext="$libext"
 
20083
 
 
20084
# Shared library suffix (normally ".so").
 
20085
shrext_cmds='$shrext_cmds'
 
20086
 
 
20087
# Executable file suffix (normally "").
 
20088
exeext="$exeext"
 
20089
 
 
20090
# Additional compiler flags for building library objects.
 
20091
pic_flag=$lt_lt_prog_compiler_pic_RC
 
20092
pic_mode=$pic_mode
 
20093
 
 
20094
# What is the maximum length of a command?
 
20095
max_cmd_len=$lt_cv_sys_max_cmd_len
 
20096
 
 
20097
# Does compiler simultaneously support -c and -o options?
 
20098
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
 
20099
 
 
20100
# Must we lock files when doing compilation?
 
20101
need_locks=$lt_need_locks
 
20102
 
 
20103
# Do we need the lib prefix for modules?
 
20104
need_lib_prefix=$need_lib_prefix
 
20105
 
 
20106
# Do we need a version for libraries?
 
20107
need_version=$need_version
 
20108
 
 
20109
# Whether dlopen is supported.
 
20110
dlopen_support=$enable_dlopen
 
20111
 
 
20112
# Whether dlopen of programs is supported.
 
20113
dlopen_self=$enable_dlopen_self
 
20114
 
 
20115
# Whether dlopen of statically linked programs is supported.
 
20116
dlopen_self_static=$enable_dlopen_self_static
 
20117
 
 
20118
# Compiler flag to prevent dynamic linking.
 
20119
link_static_flag=$lt_lt_prog_compiler_static_RC
 
20120
 
 
20121
# Compiler flag to turn off builtin functions.
 
20122
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
 
20123
 
 
20124
# Compiler flag to allow reflexive dlopens.
 
20125
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
 
20126
 
 
20127
# Compiler flag to generate shared objects directly from archives.
 
20128
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
 
20129
 
 
20130
# Compiler flag to generate thread-safe objects.
 
20131
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
 
20132
 
 
20133
# Library versioning type.
 
20134
version_type=$version_type
 
20135
 
 
20136
# Format of library name prefix.
 
20137
libname_spec=$lt_libname_spec
 
20138
 
 
20139
# List of archive names.  First name is the real one, the rest are links.
 
20140
# The last name is the one that the linker finds with -lNAME.
 
20141
library_names_spec=$lt_library_names_spec
 
20142
 
 
20143
# The coded name of the library, if different from the real name.
 
20144
soname_spec=$lt_soname_spec
 
20145
 
 
20146
# Commands used to build and install an old-style archive.
 
20147
RANLIB=$lt_RANLIB
 
20148
old_archive_cmds=$lt_old_archive_cmds_RC
 
20149
old_postinstall_cmds=$lt_old_postinstall_cmds
 
20150
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
20151
 
 
20152
# Create an old-style archive from a shared archive.
 
20153
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
 
20154
 
 
20155
# Create a temporary old-style archive to link instead of a shared archive.
 
20156
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
 
20157
 
 
20158
# Commands used to build and install a shared archive.
 
20159
archive_cmds=$lt_archive_cmds_RC
 
20160
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
 
20161
postinstall_cmds=$lt_postinstall_cmds
 
20162
postuninstall_cmds=$lt_postuninstall_cmds
 
20163
 
 
20164
# Commands used to build a loadable module (assumed same as above if empty)
 
20165
module_cmds=$lt_module_cmds_RC
 
20166
module_expsym_cmds=$lt_module_expsym_cmds_RC
 
20167
 
 
20168
# Commands to strip libraries.
 
20169
old_striplib=$lt_old_striplib
 
20170
striplib=$lt_striplib
 
20171
 
 
20172
# Dependencies to place before the objects being linked to create a
 
20173
# shared library.
 
20174
predep_objects=$lt_predep_objects_RC
 
20175
 
 
20176
# Dependencies to place after the objects being linked to create a
 
20177
# shared library.
 
20178
postdep_objects=$lt_postdep_objects_RC
 
20179
 
 
20180
# Dependencies to place before the objects being linked to create a
 
20181
# shared library.
 
20182
predeps=$lt_predeps_RC
 
20183
 
 
20184
# Dependencies to place after the objects being linked to create a
 
20185
# shared library.
 
20186
postdeps=$lt_postdeps_RC
 
20187
 
 
20188
# The directories searched by this compiler when creating a shared
 
20189
# library
 
20190
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
 
20191
 
 
20192
# The library search path used internally by the compiler when linking
 
20193
# a shared library.
 
20194
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
 
20195
 
 
20196
# Method to check whether dependent libraries are shared objects.
 
20197
deplibs_check_method=$lt_deplibs_check_method
 
20198
 
 
20199
# Command to use when deplibs_check_method == file_magic.
 
20200
file_magic_cmd=$lt_file_magic_cmd
 
20201
 
 
20202
# Flag that allows shared libraries with undefined symbols to be built.
 
20203
allow_undefined_flag=$lt_allow_undefined_flag_RC
 
20204
 
 
20205
# Flag that forces no undefined symbols.
 
20206
no_undefined_flag=$lt_no_undefined_flag_RC
 
20207
 
 
20208
# Commands used to finish a libtool library installation in a directory.
 
20209
finish_cmds=$lt_finish_cmds
 
20210
 
 
20211
# Same as above, but a single script fragment to be evaled but not shown.
 
20212
finish_eval=$lt_finish_eval
 
20213
 
 
20214
# Take the output of nm and produce a listing of raw symbols and C names.
 
20215
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
20216
 
 
20217
# Transform the output of nm in a proper C declaration
 
20218
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
20219
 
 
20220
# Transform the output of nm in a C name address pair
 
20221
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
20222
 
 
20223
# This is the shared library runtime path variable.
 
20224
runpath_var=$runpath_var
 
20225
 
 
20226
# This is the shared library path variable.
 
20227
shlibpath_var=$shlibpath_var
 
20228
 
 
20229
# Is shlibpath searched before the hard-coded library search path?
 
20230
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
20231
 
 
20232
# How to hardcode a shared library path into an executable.
 
20233
hardcode_action=$hardcode_action_RC
 
20234
 
 
20235
# Whether we should hardcode library paths into libraries.
 
20236
hardcode_into_libs=$hardcode_into_libs
 
20237
 
 
20238
# Flag to hardcode \$libdir into a binary during linking.
 
20239
# This must work even if \$libdir does not exist.
 
20240
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
 
20241
 
 
20242
# If ld is used when linking, flag to hardcode \$libdir into
 
20243
# a binary during linking. This must work even if \$libdir does
 
20244
# not exist.
 
20245
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
 
20246
 
 
20247
# Whether we need a single -rpath flag with a separated argument.
 
20248
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
 
20249
 
 
20250
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
20251
# resulting binary.
 
20252
hardcode_direct=$hardcode_direct_RC
 
20253
 
 
20254
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
20255
# resulting binary.
 
20256
hardcode_minus_L=$hardcode_minus_L_RC
 
20257
 
 
20258
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
20259
# the resulting binary.
 
20260
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
 
20261
 
 
20262
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
20263
# and all subsequent libraries and executables linked against it.
 
20264
hardcode_automatic=$hardcode_automatic_RC
 
20265
 
 
20266
# Variables whose values should be saved in libtool wrapper scripts and
 
20267
# restored at relink time.
 
20268
variables_saved_for_relink="$variables_saved_for_relink"
 
20269
 
 
20270
# Whether libtool must link a program against all its dependency libraries.
 
20271
link_all_deplibs=$link_all_deplibs_RC
 
20272
 
 
20273
# Compile-time system search path for libraries
 
20274
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
20275
 
 
20276
# Run-time system search path for libraries
 
20277
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
20278
 
 
20279
# Fix the shell variable \$srcfile for the compiler.
 
20280
fix_srcfile_path=$lt_fix_srcfile_path
 
20281
 
 
20282
# Set to yes if exported symbols are required.
 
20283
always_export_symbols=$always_export_symbols_RC
 
20284
 
 
20285
# The commands to list exported symbols.
 
20286
export_symbols_cmds=$lt_export_symbols_cmds_RC
 
20287
 
 
20288
# The commands to extract the exported symbol list from a shared archive.
 
20289
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
20290
 
 
20291
# Symbols that should not be listed in the preloaded symbols.
 
20292
exclude_expsyms=$lt_exclude_expsyms_RC
 
20293
 
 
20294
# Symbols that must always be exported.
 
20295
include_expsyms=$lt_include_expsyms_RC
 
20296
 
 
20297
# ### END LIBTOOL TAG CONFIG: $tagname
 
20298
 
 
20299
__EOF__
 
20300
 
 
20301
 
 
20302
else
 
20303
  # If there is no Makefile yet, we rely on a make rule to execute
 
20304
  # `config.status --recheck' to rerun these tests and create the
 
20305
  # libtool script then.
 
20306
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
20307
  if test -f "$ltmain_in"; then
 
20308
    test -f Makefile && make "$ltmain"
 
20309
  fi
 
20310
fi
 
20311
 
 
20312
 
 
20313
ac_ext=c
 
20314
ac_cpp='$CPP $CPPFLAGS'
 
20315
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
20316
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
20317
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
20318
 
 
20319
CC="$lt_save_CC"
 
20320
 
 
20321
        ;;
 
20322
 
 
20323
      *)
 
20324
        { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
 
20325
$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
 
20326
   { (exit 1); exit 1; }; }
 
20327
        ;;
 
20328
      esac
 
20329
 
 
20330
      # Append the new tag name to the list of available tags.
 
20331
      if test -n "$tagname" ; then
 
20332
      available_tags="$available_tags $tagname"
 
20333
    fi
 
20334
    fi
 
20335
  done
 
20336
  IFS="$lt_save_ifs"
 
20337
 
 
20338
  # Now substitute the updated list of available tags.
 
20339
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
20340
    mv "${ofile}T" "$ofile"
 
20341
    chmod +x "$ofile"
 
20342
  else
 
20343
    rm -f "${ofile}T"
 
20344
    { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
 
20345
$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
 
20346
   { (exit 1); exit 1; }; }
 
20347
  fi
 
20348
fi
 
20349
 
 
20350
 
 
20351
 
 
20352
# This can be used to rebuild libtool when needed
 
20353
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
20354
 
 
20355
# Always use our own libtool.
 
20356
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
20357
 
 
20358
# Prevent multiple expansion
 
20359
 
 
20360
 
 
20361
 
 
20362
 
 
20363
 
 
20364
 
 
20365
 
 
20366
 
 
20367
 
 
20368
 
 
20369
 
 
20370
 
 
20371
 
 
20372
 
 
20373
 
 
20374
 
 
20375
 
 
20376
 
 
20377
 
 
20378
 
 
20379
 
 
20380
# Extract the first word of "xmllint", so it can be a program name with args.
 
20381
set dummy xmllint; ac_word=$2
 
20382
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
20383
$as_echo_n "checking for $ac_word... " >&6; }
 
20384
if test "${ac_cv_path_XMLLINT+set}" = set; then
 
20385
  $as_echo_n "(cached) " >&6
 
20386
else
 
20387
  case $XMLLINT in
 
20388
  [\\/]* | ?:[\\/]*)
 
20389
  ac_cv_path_XMLLINT="$XMLLINT" # Let the user override the test with a path.
 
20390
  ;;
 
20391
  *)
 
20392
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20393
for as_dir in $PATH
 
20394
do
 
20395
  IFS=$as_save_IFS
 
20396
  test -z "$as_dir" && as_dir=.
 
20397
  for ac_exec_ext in '' $ac_executable_extensions; do
 
20398
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
20399
    ac_cv_path_XMLLINT="$as_dir/$ac_word$ac_exec_ext"
 
20400
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
20401
    break 2
 
20402
  fi
 
20403
done
 
20404
done
 
20405
IFS=$as_save_IFS
 
20406
 
 
20407
  test -z "$ac_cv_path_XMLLINT" && ac_cv_path_XMLLINT="true"
 
20408
  ;;
 
20409
esac
 
20410
fi
 
20411
XMLLINT=$ac_cv_path_XMLLINT
 
20412
if test -n "$XMLLINT"; then
 
20413
  { $as_echo "$as_me:$LINENO: result: $XMLLINT" >&5
 
20414
$as_echo "$XMLLINT" >&6; }
 
20415
else
 
20416
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
20417
$as_echo "no" >&6; }
 
20418
fi
 
20419
 
 
20420
 
 
20421
 
 
20422
 
 
20423
# Check for C libraries:
 
20424
ac_ext=cpp
 
20425
ac_cpp='$CXXCPP $CPPFLAGS'
 
20426
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
20427
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
20428
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
20429
 
 
20430
 
 
20431
 
 
20432
 
 
20433
ac_ext=c
 
20434
ac_cpp='$CPP $CPPFLAGS'
 
20435
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
20436
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
20437
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
20438
 
 
20439
 
 
20440
# Checks for header files.
 
20441
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
20442
$as_echo_n "checking for ANSI C header files... " >&6; }
 
20443
if test "${ac_cv_header_stdc+set}" = set; then
 
20444
  $as_echo_n "(cached) " >&6
 
20445
else
 
20446
  cat >conftest.$ac_ext <<_ACEOF
 
20447
/* confdefs.h.  */
 
20448
_ACEOF
 
20449
cat confdefs.h >>conftest.$ac_ext
 
20450
cat >>conftest.$ac_ext <<_ACEOF
 
20451
/* end confdefs.h.  */
 
20452
#include <stdlib.h>
 
20453
#include <stdarg.h>
 
20454
#include <string.h>
 
20455
#include <float.h>
 
20456
 
 
20457
int
 
20458
main ()
 
20459
{
 
20460
 
 
20461
  ;
 
20462
  return 0;
 
20463
}
 
20464
_ACEOF
 
20465
rm -f conftest.$ac_objext
 
20466
if { (ac_try="$ac_compile"
 
20467
case "(($ac_try" in
 
20468
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20469
  *) ac_try_echo=$ac_try;;
 
20470
esac
 
20471
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20472
$as_echo "$ac_try_echo") >&5
 
20473
  (eval "$ac_compile") 2>conftest.er1
 
20474
  ac_status=$?
 
20475
  grep -v '^ *+' conftest.er1 >conftest.err
 
20476
  rm -f conftest.er1
 
20477
  cat conftest.err >&5
 
20478
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20479
  (exit $ac_status); } && {
 
20480
         test -z "$ac_c_werror_flag" ||
 
20481
         test ! -s conftest.err
 
20482
       } && test -s conftest.$ac_objext; then
 
20483
  ac_cv_header_stdc=yes
 
20484
else
 
20485
  $as_echo "$as_me: failed program was:" >&5
 
20486
sed 's/^/| /' conftest.$ac_ext >&5
 
20487
 
 
20488
        ac_cv_header_stdc=no
 
20489
fi
 
20490
 
 
20491
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20492
 
 
20493
if test $ac_cv_header_stdc = yes; then
 
20494
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
20495
  cat >conftest.$ac_ext <<_ACEOF
 
20496
/* confdefs.h.  */
 
20497
_ACEOF
 
20498
cat confdefs.h >>conftest.$ac_ext
 
20499
cat >>conftest.$ac_ext <<_ACEOF
 
20500
/* end confdefs.h.  */
 
20501
#include <string.h>
 
20502
 
 
20503
_ACEOF
 
20504
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
20505
  $EGREP "memchr" >/dev/null 2>&1; then
 
20506
  :
 
20507
else
 
20508
  ac_cv_header_stdc=no
 
20509
fi
 
20510
rm -f conftest*
 
20511
 
 
20512
fi
 
20513
 
 
20514
if test $ac_cv_header_stdc = yes; then
 
20515
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
20516
  cat >conftest.$ac_ext <<_ACEOF
 
20517
/* confdefs.h.  */
 
20518
_ACEOF
 
20519
cat confdefs.h >>conftest.$ac_ext
 
20520
cat >>conftest.$ac_ext <<_ACEOF
 
20521
/* end confdefs.h.  */
 
20522
#include <stdlib.h>
 
20523
 
 
20524
_ACEOF
 
20525
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
20526
  $EGREP "free" >/dev/null 2>&1; then
 
20527
  :
 
20528
else
 
20529
  ac_cv_header_stdc=no
 
20530
fi
 
20531
rm -f conftest*
 
20532
 
 
20533
fi
 
20534
 
 
20535
if test $ac_cv_header_stdc = yes; then
 
20536
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
20537
  if test "$cross_compiling" = yes; then
 
20538
  :
 
20539
else
 
20540
  cat >conftest.$ac_ext <<_ACEOF
 
20541
/* confdefs.h.  */
 
20542
_ACEOF
 
20543
cat confdefs.h >>conftest.$ac_ext
 
20544
cat >>conftest.$ac_ext <<_ACEOF
 
20545
/* end confdefs.h.  */
 
20546
#include <ctype.h>
 
20547
#include <stdlib.h>
 
20548
#if ((' ' & 0x0FF) == 0x020)
 
20549
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
20550
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
20551
#else
 
20552
# define ISLOWER(c) \
 
20553
                   (('a' <= (c) && (c) <= 'i') \
 
20554
                     || ('j' <= (c) && (c) <= 'r') \
 
20555
                     || ('s' <= (c) && (c) <= 'z'))
 
20556
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
20557
#endif
 
20558
 
 
20559
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
20560
int
 
20561
main ()
 
20562
{
 
20563
  int i;
 
20564
  for (i = 0; i < 256; i++)
 
20565
    if (XOR (islower (i), ISLOWER (i))
 
20566
        || toupper (i) != TOUPPER (i))
 
20567
      return 2;
 
20568
  return 0;
 
20569
}
 
20570
_ACEOF
 
20571
rm -f conftest$ac_exeext
 
20572
if { (ac_try="$ac_link"
 
20573
case "(($ac_try" in
 
20574
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20575
  *) ac_try_echo=$ac_try;;
 
20576
esac
 
20577
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20578
$as_echo "$ac_try_echo") >&5
 
20579
  (eval "$ac_link") 2>&5
 
20580
  ac_status=$?
 
20581
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20582
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
20583
  { (case "(($ac_try" in
 
20584
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20585
  *) ac_try_echo=$ac_try;;
 
20586
esac
 
20587
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20588
$as_echo "$ac_try_echo") >&5
 
20589
  (eval "$ac_try") 2>&5
 
20590
  ac_status=$?
 
20591
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20592
  (exit $ac_status); }; }; then
 
20593
  :
 
20594
else
 
20595
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
20596
$as_echo "$as_me: failed program was:" >&5
 
20597
sed 's/^/| /' conftest.$ac_ext >&5
 
20598
 
 
20599
( exit $ac_status )
 
20600
ac_cv_header_stdc=no
 
20601
fi
 
20602
rm -rf conftest.dSYM
 
20603
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
20604
fi
 
20605
 
 
20606
 
 
20607
fi
 
20608
fi
 
20609
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
20610
$as_echo "$ac_cv_header_stdc" >&6; }
 
20611
if test $ac_cv_header_stdc = yes; then
 
20612
 
 
20613
cat >>confdefs.h <<\_ACEOF
 
20614
#define STDC_HEADERS 1
 
20615
_ACEOF
 
20616
 
 
20617
fi
 
20618
 
 
20619
 
 
20620
for ac_header in stdlib.h
 
20621
do
 
20622
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
20623
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
20624
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20625
$as_echo_n "checking for $ac_header... " >&6; }
 
20626
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
20627
  $as_echo_n "(cached) " >&6
 
20628
fi
 
20629
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
20630
                 $as_echo "$as_val"'`
 
20631
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
20632
$as_echo "$ac_res" >&6; }
 
20633
else
 
20634
  # Is the header compilable?
 
20635
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
20636
$as_echo_n "checking $ac_header usability... " >&6; }
 
20637
cat >conftest.$ac_ext <<_ACEOF
 
20638
/* confdefs.h.  */
 
20639
_ACEOF
 
20640
cat confdefs.h >>conftest.$ac_ext
 
20641
cat >>conftest.$ac_ext <<_ACEOF
 
20642
/* end confdefs.h.  */
 
20643
$ac_includes_default
 
20644
#include <$ac_header>
 
20645
_ACEOF
 
20646
rm -f conftest.$ac_objext
 
20647
if { (ac_try="$ac_compile"
 
20648
case "(($ac_try" in
 
20649
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20650
  *) ac_try_echo=$ac_try;;
 
20651
esac
 
20652
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20653
$as_echo "$ac_try_echo") >&5
 
20654
  (eval "$ac_compile") 2>conftest.er1
 
20655
  ac_status=$?
 
20656
  grep -v '^ *+' conftest.er1 >conftest.err
 
20657
  rm -f conftest.er1
 
20658
  cat conftest.err >&5
 
20659
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20660
  (exit $ac_status); } && {
 
20661
         test -z "$ac_c_werror_flag" ||
 
20662
         test ! -s conftest.err
 
20663
       } && test -s conftest.$ac_objext; then
 
20664
  ac_header_compiler=yes
 
20665
else
 
20666
  $as_echo "$as_me: failed program was:" >&5
 
20667
sed 's/^/| /' conftest.$ac_ext >&5
 
20668
 
 
20669
        ac_header_compiler=no
 
20670
fi
 
20671
 
 
20672
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20673
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
20674
$as_echo "$ac_header_compiler" >&6; }
 
20675
 
 
20676
# Is the header present?
 
20677
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
20678
$as_echo_n "checking $ac_header presence... " >&6; }
 
20679
cat >conftest.$ac_ext <<_ACEOF
 
20680
/* confdefs.h.  */
 
20681
_ACEOF
 
20682
cat confdefs.h >>conftest.$ac_ext
 
20683
cat >>conftest.$ac_ext <<_ACEOF
 
20684
/* end confdefs.h.  */
 
20685
#include <$ac_header>
 
20686
_ACEOF
 
20687
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
20688
case "(($ac_try" in
 
20689
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20690
  *) ac_try_echo=$ac_try;;
 
20691
esac
 
20692
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20693
$as_echo "$ac_try_echo") >&5
 
20694
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
20695
  ac_status=$?
 
20696
  grep -v '^ *+' conftest.er1 >conftest.err
 
20697
  rm -f conftest.er1
 
20698
  cat conftest.err >&5
 
20699
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20700
  (exit $ac_status); } >/dev/null && {
 
20701
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
20702
         test ! -s conftest.err
 
20703
       }; then
 
20704
  ac_header_preproc=yes
 
20705
else
 
20706
  $as_echo "$as_me: failed program was:" >&5
 
20707
sed 's/^/| /' conftest.$ac_ext >&5
 
20708
 
 
20709
  ac_header_preproc=no
 
20710
fi
 
20711
 
 
20712
rm -f conftest.err conftest.$ac_ext
 
20713
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
20714
$as_echo "$ac_header_preproc" >&6; }
 
20715
 
 
20716
# So?  What about this header?
 
20717
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
20718
  yes:no: )
 
20719
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
20720
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
20721
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
20722
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
20723
    ac_header_preproc=yes
 
20724
    ;;
 
20725
  no:yes:* )
 
20726
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
20727
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
20728
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
20729
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
20730
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
20731
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
20732
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
20733
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
20734
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
20735
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
20736
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
20737
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
20738
    ( cat <<\_ASBOX
 
20739
## ------------------------------------- ##
 
20740
## Report this to clients@worldforge.org ##
 
20741
## ------------------------------------- ##
 
20742
_ASBOX
 
20743
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
20744
    ;;
 
20745
esac
 
20746
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20747
$as_echo_n "checking for $ac_header... " >&6; }
 
20748
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
20749
  $as_echo_n "(cached) " >&6
 
20750
else
 
20751
  eval "$as_ac_Header=\$ac_header_preproc"
 
20752
fi
 
20753
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
20754
                 $as_echo "$as_val"'`
 
20755
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
20756
$as_echo "$ac_res" >&6; }
 
20757
 
 
20758
fi
 
20759
as_val=`eval 'as_val=${'$as_ac_Header'}
 
20760
                 $as_echo "$as_val"'`
 
20761
   if test "x$as_val" = x""yes; then
 
20762
  cat >>confdefs.h <<_ACEOF
 
20763
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
20764
_ACEOF
 
20765
 
 
20766
fi
 
20767
 
 
20768
done
 
20769
 
 
20770
 
 
20771
for ac_header in math.h
 
20772
do
 
20773
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
20774
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
20775
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20776
$as_echo_n "checking for $ac_header... " >&6; }
 
20777
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
20778
  $as_echo_n "(cached) " >&6
 
20779
fi
 
20780
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
20781
                 $as_echo "$as_val"'`
 
20782
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
20783
$as_echo "$ac_res" >&6; }
 
20784
else
 
20785
  # Is the header compilable?
 
20786
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
20787
$as_echo_n "checking $ac_header usability... " >&6; }
 
20788
cat >conftest.$ac_ext <<_ACEOF
 
20789
/* confdefs.h.  */
 
20790
_ACEOF
 
20791
cat confdefs.h >>conftest.$ac_ext
 
20792
cat >>conftest.$ac_ext <<_ACEOF
 
20793
/* end confdefs.h.  */
 
20794
$ac_includes_default
 
20795
#include <$ac_header>
 
20796
_ACEOF
 
20797
rm -f conftest.$ac_objext
 
20798
if { (ac_try="$ac_compile"
 
20799
case "(($ac_try" in
 
20800
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20801
  *) ac_try_echo=$ac_try;;
 
20802
esac
 
20803
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20804
$as_echo "$ac_try_echo") >&5
 
20805
  (eval "$ac_compile") 2>conftest.er1
 
20806
  ac_status=$?
 
20807
  grep -v '^ *+' conftest.er1 >conftest.err
 
20808
  rm -f conftest.er1
 
20809
  cat conftest.err >&5
 
20810
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20811
  (exit $ac_status); } && {
 
20812
         test -z "$ac_c_werror_flag" ||
 
20813
         test ! -s conftest.err
 
20814
       } && test -s conftest.$ac_objext; then
 
20815
  ac_header_compiler=yes
 
20816
else
 
20817
  $as_echo "$as_me: failed program was:" >&5
 
20818
sed 's/^/| /' conftest.$ac_ext >&5
 
20819
 
 
20820
        ac_header_compiler=no
 
20821
fi
 
20822
 
 
20823
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20824
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
20825
$as_echo "$ac_header_compiler" >&6; }
 
20826
 
 
20827
# Is the header present?
 
20828
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
20829
$as_echo_n "checking $ac_header presence... " >&6; }
 
20830
cat >conftest.$ac_ext <<_ACEOF
 
20831
/* confdefs.h.  */
 
20832
_ACEOF
 
20833
cat confdefs.h >>conftest.$ac_ext
 
20834
cat >>conftest.$ac_ext <<_ACEOF
 
20835
/* end confdefs.h.  */
 
20836
#include <$ac_header>
 
20837
_ACEOF
 
20838
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
20839
case "(($ac_try" in
 
20840
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20841
  *) ac_try_echo=$ac_try;;
 
20842
esac
 
20843
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20844
$as_echo "$ac_try_echo") >&5
 
20845
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
20846
  ac_status=$?
 
20847
  grep -v '^ *+' conftest.er1 >conftest.err
 
20848
  rm -f conftest.er1
 
20849
  cat conftest.err >&5
 
20850
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20851
  (exit $ac_status); } >/dev/null && {
 
20852
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
20853
         test ! -s conftest.err
 
20854
       }; then
 
20855
  ac_header_preproc=yes
 
20856
else
 
20857
  $as_echo "$as_me: failed program was:" >&5
 
20858
sed 's/^/| /' conftest.$ac_ext >&5
 
20859
 
 
20860
  ac_header_preproc=no
 
20861
fi
 
20862
 
 
20863
rm -f conftest.err conftest.$ac_ext
 
20864
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
20865
$as_echo "$ac_header_preproc" >&6; }
 
20866
 
 
20867
# So?  What about this header?
 
20868
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
20869
  yes:no: )
 
20870
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
20871
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
20872
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
20873
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
20874
    ac_header_preproc=yes
 
20875
    ;;
 
20876
  no:yes:* )
 
20877
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
20878
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
20879
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
20880
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
20881
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
20882
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
20883
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
20884
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
20885
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
20886
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
20887
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
20888
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
20889
    ( cat <<\_ASBOX
 
20890
## ------------------------------------- ##
 
20891
## Report this to clients@worldforge.org ##
 
20892
## ------------------------------------- ##
 
20893
_ASBOX
 
20894
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
20895
    ;;
 
20896
esac
 
20897
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20898
$as_echo_n "checking for $ac_header... " >&6; }
 
20899
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
20900
  $as_echo_n "(cached) " >&6
 
20901
else
 
20902
  eval "$as_ac_Header=\$ac_header_preproc"
 
20903
fi
 
20904
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
20905
                 $as_echo "$as_val"'`
 
20906
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
20907
$as_echo "$ac_res" >&6; }
 
20908
 
 
20909
fi
 
20910
as_val=`eval 'as_val=${'$as_ac_Header'}
 
20911
                 $as_echo "$as_val"'`
 
20912
   if test "x$as_val" = x""yes; then
 
20913
  cat >>confdefs.h <<_ACEOF
 
20914
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
20915
_ACEOF
 
20916
 
 
20917
fi
 
20918
 
 
20919
done
 
20920
 
 
20921
 
 
20922
for ac_header in signal.h
 
20923
do
 
20924
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
20925
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
20926
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20927
$as_echo_n "checking for $ac_header... " >&6; }
 
20928
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
20929
  $as_echo_n "(cached) " >&6
 
20930
fi
 
20931
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
20932
                 $as_echo "$as_val"'`
 
20933
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
20934
$as_echo "$ac_res" >&6; }
 
20935
else
 
20936
  # Is the header compilable?
 
20937
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
20938
$as_echo_n "checking $ac_header usability... " >&6; }
 
20939
cat >conftest.$ac_ext <<_ACEOF
 
20940
/* confdefs.h.  */
 
20941
_ACEOF
 
20942
cat confdefs.h >>conftest.$ac_ext
 
20943
cat >>conftest.$ac_ext <<_ACEOF
 
20944
/* end confdefs.h.  */
 
20945
$ac_includes_default
 
20946
#include <$ac_header>
 
20947
_ACEOF
 
20948
rm -f conftest.$ac_objext
 
20949
if { (ac_try="$ac_compile"
 
20950
case "(($ac_try" in
 
20951
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20952
  *) ac_try_echo=$ac_try;;
 
20953
esac
 
20954
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20955
$as_echo "$ac_try_echo") >&5
 
20956
  (eval "$ac_compile") 2>conftest.er1
 
20957
  ac_status=$?
 
20958
  grep -v '^ *+' conftest.er1 >conftest.err
 
20959
  rm -f conftest.er1
 
20960
  cat conftest.err >&5
 
20961
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20962
  (exit $ac_status); } && {
 
20963
         test -z "$ac_c_werror_flag" ||
 
20964
         test ! -s conftest.err
 
20965
       } && test -s conftest.$ac_objext; then
 
20966
  ac_header_compiler=yes
 
20967
else
 
20968
  $as_echo "$as_me: failed program was:" >&5
 
20969
sed 's/^/| /' conftest.$ac_ext >&5
 
20970
 
 
20971
        ac_header_compiler=no
 
20972
fi
 
20973
 
 
20974
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20975
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
20976
$as_echo "$ac_header_compiler" >&6; }
 
20977
 
 
20978
# Is the header present?
 
20979
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
20980
$as_echo_n "checking $ac_header presence... " >&6; }
 
20981
cat >conftest.$ac_ext <<_ACEOF
 
20982
/* confdefs.h.  */
 
20983
_ACEOF
 
20984
cat confdefs.h >>conftest.$ac_ext
 
20985
cat >>conftest.$ac_ext <<_ACEOF
 
20986
/* end confdefs.h.  */
 
20987
#include <$ac_header>
 
20988
_ACEOF
 
20989
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
20990
case "(($ac_try" in
 
20991
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20992
  *) ac_try_echo=$ac_try;;
 
20993
esac
 
20994
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
20995
$as_echo "$ac_try_echo") >&5
 
20996
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
20997
  ac_status=$?
 
20998
  grep -v '^ *+' conftest.er1 >conftest.err
 
20999
  rm -f conftest.er1
 
21000
  cat conftest.err >&5
 
21001
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21002
  (exit $ac_status); } >/dev/null && {
 
21003
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
21004
         test ! -s conftest.err
 
21005
       }; then
 
21006
  ac_header_preproc=yes
 
21007
else
 
21008
  $as_echo "$as_me: failed program was:" >&5
 
21009
sed 's/^/| /' conftest.$ac_ext >&5
 
21010
 
 
21011
  ac_header_preproc=no
 
21012
fi
 
21013
 
 
21014
rm -f conftest.err conftest.$ac_ext
 
21015
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
21016
$as_echo "$ac_header_preproc" >&6; }
 
21017
 
 
21018
# So?  What about this header?
 
21019
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
21020
  yes:no: )
 
21021
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
21022
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
21023
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
21024
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
21025
    ac_header_preproc=yes
 
21026
    ;;
 
21027
  no:yes:* )
 
21028
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
21029
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
21030
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
21031
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
21032
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
21033
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
21034
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
21035
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
21036
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
21037
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
21038
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
21039
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
21040
    ( cat <<\_ASBOX
 
21041
## ------------------------------------- ##
 
21042
## Report this to clients@worldforge.org ##
 
21043
## ------------------------------------- ##
 
21044
_ASBOX
 
21045
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
21046
    ;;
 
21047
esac
 
21048
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
21049
$as_echo_n "checking for $ac_header... " >&6; }
 
21050
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
21051
  $as_echo_n "(cached) " >&6
 
21052
else
 
21053
  eval "$as_ac_Header=\$ac_header_preproc"
 
21054
fi
 
21055
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
21056
                 $as_echo "$as_val"'`
 
21057
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
21058
$as_echo "$ac_res" >&6; }
 
21059
 
 
21060
fi
 
21061
as_val=`eval 'as_val=${'$as_ac_Header'}
 
21062
                 $as_echo "$as_val"'`
 
21063
   if test "x$as_val" = x""yes; then
 
21064
  cat >>confdefs.h <<_ACEOF
 
21065
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
21066
_ACEOF
 
21067
 
 
21068
fi
 
21069
 
 
21070
done
 
21071
 
 
21072
 
 
21073
# Checks for typedefs, structures, and compiler characteristics.
 
21074
{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
 
21075
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
 
21076
if test "${ac_cv_c_const+set}" = set; then
 
21077
  $as_echo_n "(cached) " >&6
 
21078
else
 
21079
  cat >conftest.$ac_ext <<_ACEOF
 
21080
/* confdefs.h.  */
 
21081
_ACEOF
 
21082
cat confdefs.h >>conftest.$ac_ext
 
21083
cat >>conftest.$ac_ext <<_ACEOF
 
21084
/* end confdefs.h.  */
 
21085
 
 
21086
int
 
21087
main ()
 
21088
{
 
21089
/* FIXME: Include the comments suggested by Paul. */
 
21090
#ifndef __cplusplus
 
21091
  /* Ultrix mips cc rejects this.  */
 
21092
  typedef int charset[2];
 
21093
  const charset cs;
 
21094
  /* SunOS 4.1.1 cc rejects this.  */
 
21095
  char const *const *pcpcc;
 
21096
  char **ppc;
 
21097
  /* NEC SVR4.0.2 mips cc rejects this.  */
 
21098
  struct point {int x, y;};
 
21099
  static struct point const zero = {0,0};
 
21100
  /* AIX XL C 1.02.0.0 rejects this.
 
21101
     It does not let you subtract one const X* pointer from another in
 
21102
     an arm of an if-expression whose if-part is not a constant
 
21103
     expression */
 
21104
  const char *g = "string";
 
21105
  pcpcc = &g + (g ? g-g : 0);
 
21106
  /* HPUX 7.0 cc rejects these. */
 
21107
  ++pcpcc;
 
21108
  ppc = (char**) pcpcc;
 
21109
  pcpcc = (char const *const *) ppc;
 
21110
  { /* SCO 3.2v4 cc rejects this.  */
 
21111
    char *t;
 
21112
    char const *s = 0 ? (char *) 0 : (char const *) 0;
 
21113
 
 
21114
    *t++ = 0;
 
21115
    if (s) return 0;
 
21116
  }
 
21117
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
21118
    int x[] = {25, 17};
 
21119
    const int *foo = &x[0];
 
21120
    ++foo;
 
21121
  }
 
21122
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
21123
    typedef const int *iptr;
 
21124
    iptr p = 0;
 
21125
    ++p;
 
21126
  }
 
21127
  { /* AIX XL C 1.02.0.0 rejects this saying
 
21128
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 
21129
    struct s { int j; const int *ap[3]; };
 
21130
    struct s *b; b->j = 5;
 
21131
  }
 
21132
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
21133
    const int foo = 10;
 
21134
    if (!foo) return 0;
 
21135
  }
 
21136
  return !cs[0] && !zero.x;
 
21137
#endif
 
21138
 
 
21139
  ;
 
21140
  return 0;
 
21141
}
 
21142
_ACEOF
 
21143
rm -f conftest.$ac_objext
 
21144
if { (ac_try="$ac_compile"
 
21145
case "(($ac_try" in
 
21146
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21147
  *) ac_try_echo=$ac_try;;
 
21148
esac
 
21149
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21150
$as_echo "$ac_try_echo") >&5
 
21151
  (eval "$ac_compile") 2>conftest.er1
 
21152
  ac_status=$?
 
21153
  grep -v '^ *+' conftest.er1 >conftest.err
 
21154
  rm -f conftest.er1
 
21155
  cat conftest.err >&5
 
21156
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21157
  (exit $ac_status); } && {
 
21158
         test -z "$ac_c_werror_flag" ||
 
21159
         test ! -s conftest.err
 
21160
       } && test -s conftest.$ac_objext; then
 
21161
  ac_cv_c_const=yes
 
21162
else
 
21163
  $as_echo "$as_me: failed program was:" >&5
 
21164
sed 's/^/| /' conftest.$ac_ext >&5
 
21165
 
 
21166
        ac_cv_c_const=no
 
21167
fi
 
21168
 
 
21169
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21170
fi
 
21171
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
 
21172
$as_echo "$ac_cv_c_const" >&6; }
 
21173
if test $ac_cv_c_const = no; then
 
21174
 
 
21175
cat >>confdefs.h <<\_ACEOF
 
21176
#define const /**/
 
21177
_ACEOF
 
21178
 
 
21179
fi
 
21180
 
 
21181
{ $as_echo "$as_me:$LINENO: checking for inline" >&5
 
21182
$as_echo_n "checking for inline... " >&6; }
 
21183
if test "${ac_cv_c_inline+set}" = set; then
 
21184
  $as_echo_n "(cached) " >&6
 
21185
else
 
21186
  ac_cv_c_inline=no
 
21187
for ac_kw in inline __inline__ __inline; do
 
21188
  cat >conftest.$ac_ext <<_ACEOF
 
21189
/* confdefs.h.  */
 
21190
_ACEOF
 
21191
cat confdefs.h >>conftest.$ac_ext
 
21192
cat >>conftest.$ac_ext <<_ACEOF
 
21193
/* end confdefs.h.  */
 
21194
#ifndef __cplusplus
 
21195
typedef int foo_t;
 
21196
static $ac_kw foo_t static_foo () {return 0; }
 
21197
$ac_kw foo_t foo () {return 0; }
 
21198
#endif
 
21199
 
 
21200
_ACEOF
 
21201
rm -f conftest.$ac_objext
 
21202
if { (ac_try="$ac_compile"
 
21203
case "(($ac_try" in
 
21204
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21205
  *) ac_try_echo=$ac_try;;
 
21206
esac
 
21207
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21208
$as_echo "$ac_try_echo") >&5
 
21209
  (eval "$ac_compile") 2>conftest.er1
 
21210
  ac_status=$?
 
21211
  grep -v '^ *+' conftest.er1 >conftest.err
 
21212
  rm -f conftest.er1
 
21213
  cat conftest.err >&5
 
21214
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21215
  (exit $ac_status); } && {
 
21216
         test -z "$ac_c_werror_flag" ||
 
21217
         test ! -s conftest.err
 
21218
       } && test -s conftest.$ac_objext; then
 
21219
  ac_cv_c_inline=$ac_kw
 
21220
else
 
21221
  $as_echo "$as_me: failed program was:" >&5
 
21222
sed 's/^/| /' conftest.$ac_ext >&5
 
21223
 
 
21224
 
 
21225
fi
 
21226
 
 
21227
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21228
  test "$ac_cv_c_inline" != no && break
 
21229
done
 
21230
 
 
21231
fi
 
21232
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
 
21233
$as_echo "$ac_cv_c_inline" >&6; }
 
21234
 
 
21235
 
 
21236
case $ac_cv_c_inline in
 
21237
  inline | yes) ;;
 
21238
  *)
 
21239
    case $ac_cv_c_inline in
 
21240
      no) ac_val=;;
 
21241
      *) ac_val=$ac_cv_c_inline;;
 
21242
    esac
 
21243
    cat >>confdefs.h <<_ACEOF
 
21244
#ifndef __cplusplus
 
21245
#define inline $ac_val
 
21246
#endif
 
21247
_ACEOF
 
21248
    ;;
 
21249
esac
 
21250
 
 
21251
{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
 
21252
$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
 
21253
if test "${ac_cv_struct_tm+set}" = set; then
 
21254
  $as_echo_n "(cached) " >&6
 
21255
else
 
21256
  cat >conftest.$ac_ext <<_ACEOF
 
21257
/* confdefs.h.  */
 
21258
_ACEOF
 
21259
cat confdefs.h >>conftest.$ac_ext
 
21260
cat >>conftest.$ac_ext <<_ACEOF
 
21261
/* end confdefs.h.  */
 
21262
#include <sys/types.h>
 
21263
#include <time.h>
 
21264
 
 
21265
int
 
21266
main ()
 
21267
{
 
21268
struct tm tm;
 
21269
                                     int *p = &tm.tm_sec;
 
21270
                                     return !p;
 
21271
  ;
 
21272
  return 0;
 
21273
}
 
21274
_ACEOF
 
21275
rm -f conftest.$ac_objext
 
21276
if { (ac_try="$ac_compile"
 
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_compile") 2>conftest.er1
 
21284
  ac_status=$?
 
21285
  grep -v '^ *+' conftest.er1 >conftest.err
 
21286
  rm -f conftest.er1
 
21287
  cat conftest.err >&5
 
21288
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21289
  (exit $ac_status); } && {
 
21290
         test -z "$ac_c_werror_flag" ||
 
21291
         test ! -s conftest.err
 
21292
       } && test -s conftest.$ac_objext; then
 
21293
  ac_cv_struct_tm=time.h
 
21294
else
 
21295
  $as_echo "$as_me: failed program was:" >&5
 
21296
sed 's/^/| /' conftest.$ac_ext >&5
 
21297
 
 
21298
        ac_cv_struct_tm=sys/time.h
 
21299
fi
 
21300
 
 
21301
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21302
fi
 
21303
{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
 
21304
$as_echo "$ac_cv_struct_tm" >&6; }
 
21305
if test $ac_cv_struct_tm = sys/time.h; then
 
21306
 
 
21307
cat >>confdefs.h <<\_ACEOF
 
21308
#define TM_IN_SYS_TIME 1
 
21309
_ACEOF
 
21310
 
 
21311
fi
 
21312
 
 
21313
 
 
21314
# check sighandler_t in C++
 
21315
ac_ext=cpp
 
21316
ac_cpp='$CXXCPP $CPPFLAGS'
 
21317
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
21318
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
21319
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
21320
 
 
21321
{ $as_echo "$as_me:$LINENO: checking for sighandler_t" >&5
 
21322
$as_echo_n "checking for sighandler_t... " >&6; }
 
21323
if test "${ac_cv_type_sighandler_t+set}" = set; then
 
21324
  $as_echo_n "(cached) " >&6
 
21325
else
 
21326
  ac_cv_type_sighandler_t=no
 
21327
cat >conftest.$ac_ext <<_ACEOF
 
21328
/* confdefs.h.  */
 
21329
_ACEOF
 
21330
cat confdefs.h >>conftest.$ac_ext
 
21331
cat >>conftest.$ac_ext <<_ACEOF
 
21332
/* end confdefs.h.  */
 
21333
 
 
21334
#ifdef HAVE_SIGNAL_H
 
21335
# include <signal.h>
 
21336
#endif
 
21337
 
 
21338
int
 
21339
main ()
 
21340
{
 
21341
if (sizeof (sighandler_t))
 
21342
       return 0;
 
21343
  ;
 
21344
  return 0;
 
21345
}
 
21346
_ACEOF
 
21347
rm -f conftest.$ac_objext
 
21348
if { (ac_try="$ac_compile"
 
21349
case "(($ac_try" in
 
21350
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21351
  *) ac_try_echo=$ac_try;;
 
21352
esac
 
21353
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21354
$as_echo "$ac_try_echo") >&5
 
21355
  (eval "$ac_compile") 2>conftest.er1
 
21356
  ac_status=$?
 
21357
  grep -v '^ *+' conftest.er1 >conftest.err
 
21358
  rm -f conftest.er1
 
21359
  cat conftest.err >&5
 
21360
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21361
  (exit $ac_status); } && {
 
21362
         test -z "$ac_cxx_werror_flag" ||
 
21363
         test ! -s conftest.err
 
21364
       } && test -s conftest.$ac_objext; then
 
21365
  cat >conftest.$ac_ext <<_ACEOF
 
21366
/* confdefs.h.  */
 
21367
_ACEOF
 
21368
cat confdefs.h >>conftest.$ac_ext
 
21369
cat >>conftest.$ac_ext <<_ACEOF
 
21370
/* end confdefs.h.  */
 
21371
 
 
21372
#ifdef HAVE_SIGNAL_H
 
21373
# include <signal.h>
 
21374
#endif
 
21375
 
 
21376
int
 
21377
main ()
 
21378
{
 
21379
if (sizeof ((sighandler_t)))
 
21380
          return 0;
 
21381
  ;
 
21382
  return 0;
 
21383
}
 
21384
_ACEOF
 
21385
rm -f conftest.$ac_objext
 
21386
if { (ac_try="$ac_compile"
 
21387
case "(($ac_try" in
 
21388
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21389
  *) ac_try_echo=$ac_try;;
 
21390
esac
 
21391
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21392
$as_echo "$ac_try_echo") >&5
 
21393
  (eval "$ac_compile") 2>conftest.er1
 
21394
  ac_status=$?
 
21395
  grep -v '^ *+' conftest.er1 >conftest.err
 
21396
  rm -f conftest.er1
 
21397
  cat conftest.err >&5
 
21398
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21399
  (exit $ac_status); } && {
 
21400
         test -z "$ac_cxx_werror_flag" ||
 
21401
         test ! -s conftest.err
 
21402
       } && test -s conftest.$ac_objext; then
 
21403
  :
 
21404
else
 
21405
  $as_echo "$as_me: failed program was:" >&5
 
21406
sed 's/^/| /' conftest.$ac_ext >&5
 
21407
 
 
21408
        ac_cv_type_sighandler_t=yes
 
21409
fi
 
21410
 
 
21411
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21412
else
 
21413
  $as_echo "$as_me: failed program was:" >&5
 
21414
sed 's/^/| /' conftest.$ac_ext >&5
 
21415
 
 
21416
 
 
21417
fi
 
21418
 
 
21419
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21420
fi
 
21421
{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_sighandler_t" >&5
 
21422
$as_echo "$ac_cv_type_sighandler_t" >&6; }
 
21423
if test "x$ac_cv_type_sighandler_t" = x""yes; then
 
21424
 
 
21425
cat >>confdefs.h <<_ACEOF
 
21426
#define HAVE_SIGHANDLER_T 1
 
21427
_ACEOF
 
21428
 
 
21429
 
 
21430
fi
 
21431
 
 
21432
ac_ext=c
 
21433
ac_cpp='$CPP $CPPFLAGS'
 
21434
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
21435
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
21436
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
21437
 
 
21438
 
 
21439
# Checks for library functions.
 
21440
{ $as_echo "$as_me:$LINENO: checking for error_at_line" >&5
 
21441
$as_echo_n "checking for error_at_line... " >&6; }
 
21442
if test "${ac_cv_lib_error_at_line+set}" = set; then
 
21443
  $as_echo_n "(cached) " >&6
 
21444
else
 
21445
  cat >conftest.$ac_ext <<_ACEOF
 
21446
/* confdefs.h.  */
 
21447
_ACEOF
 
21448
cat confdefs.h >>conftest.$ac_ext
 
21449
cat >>conftest.$ac_ext <<_ACEOF
 
21450
/* end confdefs.h.  */
 
21451
#include <error.h>
 
21452
int
 
21453
main ()
 
21454
{
 
21455
error_at_line (0, 0, "", 0, "an error occurred");
 
21456
  ;
 
21457
  return 0;
 
21458
}
 
21459
_ACEOF
 
21460
rm -f conftest.$ac_objext conftest$ac_exeext
 
21461
if { (ac_try="$ac_link"
 
21462
case "(($ac_try" in
 
21463
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21464
  *) ac_try_echo=$ac_try;;
 
21465
esac
 
21466
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21467
$as_echo "$ac_try_echo") >&5
 
21468
  (eval "$ac_link") 2>conftest.er1
 
21469
  ac_status=$?
 
21470
  grep -v '^ *+' conftest.er1 >conftest.err
 
21471
  rm -f conftest.er1
 
21472
  cat conftest.err >&5
 
21473
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21474
  (exit $ac_status); } && {
 
21475
         test -z "$ac_c_werror_flag" ||
 
21476
         test ! -s conftest.err
 
21477
       } && test -s conftest$ac_exeext && {
 
21478
         test "$cross_compiling" = yes ||
 
21479
         $as_test_x conftest$ac_exeext
 
21480
       }; then
 
21481
  ac_cv_lib_error_at_line=yes
 
21482
else
 
21483
  $as_echo "$as_me: failed program was:" >&5
 
21484
sed 's/^/| /' conftest.$ac_ext >&5
 
21485
 
 
21486
        ac_cv_lib_error_at_line=no
 
21487
fi
 
21488
 
 
21489
rm -rf conftest.dSYM
 
21490
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
21491
      conftest$ac_exeext conftest.$ac_ext
 
21492
fi
 
21493
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
 
21494
$as_echo "$ac_cv_lib_error_at_line" >&6; }
 
21495
if test $ac_cv_lib_error_at_line = no; then
 
21496
  case " $LIBOBJS " in
 
21497
  *" error.$ac_objext "* ) ;;
 
21498
  *) LIBOBJS="$LIBOBJS error.$ac_objext"
 
21499
 ;;
 
21500
esac
 
21501
 
 
21502
fi
 
21503
 
 
21504
 
 
21505
for ac_header in stdlib.h
 
21506
do
 
21507
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
21508
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
21509
  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
21510
$as_echo_n "checking for $ac_header... " >&6; }
 
21511
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
21512
  $as_echo_n "(cached) " >&6
 
21513
fi
 
21514
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
21515
                 $as_echo "$as_val"'`
 
21516
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
21517
$as_echo "$ac_res" >&6; }
 
21518
else
 
21519
  # Is the header compilable?
 
21520
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
21521
$as_echo_n "checking $ac_header usability... " >&6; }
 
21522
cat >conftest.$ac_ext <<_ACEOF
 
21523
/* confdefs.h.  */
 
21524
_ACEOF
 
21525
cat confdefs.h >>conftest.$ac_ext
 
21526
cat >>conftest.$ac_ext <<_ACEOF
 
21527
/* end confdefs.h.  */
 
21528
$ac_includes_default
 
21529
#include <$ac_header>
 
21530
_ACEOF
 
21531
rm -f conftest.$ac_objext
 
21532
if { (ac_try="$ac_compile"
 
21533
case "(($ac_try" in
 
21534
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21535
  *) ac_try_echo=$ac_try;;
 
21536
esac
 
21537
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21538
$as_echo "$ac_try_echo") >&5
 
21539
  (eval "$ac_compile") 2>conftest.er1
 
21540
  ac_status=$?
 
21541
  grep -v '^ *+' conftest.er1 >conftest.err
 
21542
  rm -f conftest.er1
 
21543
  cat conftest.err >&5
 
21544
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21545
  (exit $ac_status); } && {
 
21546
         test -z "$ac_c_werror_flag" ||
 
21547
         test ! -s conftest.err
 
21548
       } && test -s conftest.$ac_objext; then
 
21549
  ac_header_compiler=yes
 
21550
else
 
21551
  $as_echo "$as_me: failed program was:" >&5
 
21552
sed 's/^/| /' conftest.$ac_ext >&5
 
21553
 
 
21554
        ac_header_compiler=no
 
21555
fi
 
21556
 
 
21557
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21558
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
21559
$as_echo "$ac_header_compiler" >&6; }
 
21560
 
 
21561
# Is the header present?
 
21562
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
21563
$as_echo_n "checking $ac_header presence... " >&6; }
 
21564
cat >conftest.$ac_ext <<_ACEOF
 
21565
/* confdefs.h.  */
 
21566
_ACEOF
 
21567
cat confdefs.h >>conftest.$ac_ext
 
21568
cat >>conftest.$ac_ext <<_ACEOF
 
21569
/* end confdefs.h.  */
 
21570
#include <$ac_header>
 
21571
_ACEOF
 
21572
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
21573
case "(($ac_try" in
 
21574
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21575
  *) ac_try_echo=$ac_try;;
 
21576
esac
 
21577
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21578
$as_echo "$ac_try_echo") >&5
 
21579
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
21580
  ac_status=$?
 
21581
  grep -v '^ *+' conftest.er1 >conftest.err
 
21582
  rm -f conftest.er1
 
21583
  cat conftest.err >&5
 
21584
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21585
  (exit $ac_status); } >/dev/null && {
 
21586
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
21587
         test ! -s conftest.err
 
21588
       }; then
 
21589
  ac_header_preproc=yes
 
21590
else
 
21591
  $as_echo "$as_me: failed program was:" >&5
 
21592
sed 's/^/| /' conftest.$ac_ext >&5
 
21593
 
 
21594
  ac_header_preproc=no
 
21595
fi
 
21596
 
 
21597
rm -f conftest.err conftest.$ac_ext
 
21598
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
21599
$as_echo "$ac_header_preproc" >&6; }
 
21600
 
 
21601
# So?  What about this header?
 
21602
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
21603
  yes:no: )
 
21604
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
21605
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
21606
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
21607
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
21608
    ac_header_preproc=yes
 
21609
    ;;
 
21610
  no:yes:* )
 
21611
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
21612
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
21613
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
21614
$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
21615
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
21616
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
21617
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
21618
$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
21619
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
21620
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
21621
    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
21622
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
21623
    ( cat <<\_ASBOX
 
21624
## ------------------------------------- ##
 
21625
## Report this to clients@worldforge.org ##
 
21626
## ------------------------------------- ##
 
21627
_ASBOX
 
21628
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
21629
    ;;
 
21630
esac
 
21631
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
 
21632
$as_echo_n "checking for $ac_header... " >&6; }
 
21633
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
21634
  $as_echo_n "(cached) " >&6
 
21635
else
 
21636
  eval "$as_ac_Header=\$ac_header_preproc"
 
21637
fi
 
21638
ac_res=`eval 'as_val=${'$as_ac_Header'}
 
21639
                 $as_echo "$as_val"'`
 
21640
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
21641
$as_echo "$ac_res" >&6; }
 
21642
 
 
21643
fi
 
21644
as_val=`eval 'as_val=${'$as_ac_Header'}
 
21645
                 $as_echo "$as_val"'`
 
21646
   if test "x$as_val" = x""yes; then
 
21647
  cat >>confdefs.h <<_ACEOF
 
21648
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
21649
_ACEOF
 
21650
 
 
21651
fi
 
21652
 
 
21653
done
 
21654
 
 
21655
{ $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
 
21656
$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
 
21657
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
 
21658
  $as_echo_n "(cached) " >&6
 
21659
else
 
21660
  if test "$cross_compiling" = yes; then
 
21661
  ac_cv_func_malloc_0_nonnull=no
 
21662
else
 
21663
  cat >conftest.$ac_ext <<_ACEOF
 
21664
/* confdefs.h.  */
 
21665
_ACEOF
 
21666
cat confdefs.h >>conftest.$ac_ext
 
21667
cat >>conftest.$ac_ext <<_ACEOF
 
21668
/* end confdefs.h.  */
 
21669
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
 
21670
# include <stdlib.h>
 
21671
#else
 
21672
char *malloc ();
 
21673
#endif
 
21674
 
 
21675
int
 
21676
main ()
 
21677
{
 
21678
return ! malloc (0);
 
21679
  ;
 
21680
  return 0;
 
21681
}
 
21682
_ACEOF
 
21683
rm -f conftest$ac_exeext
 
21684
if { (ac_try="$ac_link"
 
21685
case "(($ac_try" in
 
21686
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21687
  *) ac_try_echo=$ac_try;;
 
21688
esac
 
21689
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21690
$as_echo "$ac_try_echo") >&5
 
21691
  (eval "$ac_link") 2>&5
 
21692
  ac_status=$?
 
21693
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21694
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
21695
  { (case "(($ac_try" in
 
21696
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21697
  *) ac_try_echo=$ac_try;;
 
21698
esac
 
21699
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21700
$as_echo "$ac_try_echo") >&5
 
21701
  (eval "$ac_try") 2>&5
 
21702
  ac_status=$?
 
21703
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21704
  (exit $ac_status); }; }; then
 
21705
  ac_cv_func_malloc_0_nonnull=yes
 
21706
else
 
21707
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
21708
$as_echo "$as_me: failed program was:" >&5
 
21709
sed 's/^/| /' conftest.$ac_ext >&5
 
21710
 
 
21711
( exit $ac_status )
 
21712
ac_cv_func_malloc_0_nonnull=no
 
21713
fi
 
21714
rm -rf conftest.dSYM
 
21715
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
21716
fi
 
21717
 
 
21718
 
 
21719
fi
 
21720
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
 
21721
$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
 
21722
if test $ac_cv_func_malloc_0_nonnull = yes; then
 
21723
 
 
21724
cat >>confdefs.h <<\_ACEOF
 
21725
#define HAVE_MALLOC 1
 
21726
_ACEOF
 
21727
 
 
21728
else
 
21729
  cat >>confdefs.h <<\_ACEOF
 
21730
#define HAVE_MALLOC 0
 
21731
_ACEOF
 
21732
 
 
21733
   case " $LIBOBJS " in
 
21734
  *" malloc.$ac_objext "* ) ;;
 
21735
  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
 
21736
 ;;
 
21737
esac
 
21738
 
 
21739
 
 
21740
cat >>confdefs.h <<\_ACEOF
 
21741
#define malloc rpl_malloc
 
21742
_ACEOF
 
21743
 
 
21744
fi
 
21745
 
 
21746
 
 
21747
 
 
21748
 
 
21749
for ac_func in vprintf
 
21750
do
 
21751
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
21752
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 
21753
$as_echo_n "checking for $ac_func... " >&6; }
 
21754
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
21755
  $as_echo_n "(cached) " >&6
 
21756
else
 
21757
  cat >conftest.$ac_ext <<_ACEOF
 
21758
/* confdefs.h.  */
 
21759
_ACEOF
 
21760
cat confdefs.h >>conftest.$ac_ext
 
21761
cat >>conftest.$ac_ext <<_ACEOF
 
21762
/* end confdefs.h.  */
 
21763
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
21764
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
21765
#define $ac_func innocuous_$ac_func
 
21766
 
 
21767
/* System header to define __stub macros and hopefully few prototypes,
 
21768
    which can conflict with char $ac_func (); below.
 
21769
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
21770
    <limits.h> exists even on freestanding compilers.  */
 
21771
 
 
21772
#ifdef __STDC__
 
21773
# include <limits.h>
 
21774
#else
 
21775
# include <assert.h>
 
21776
#endif
 
21777
 
 
21778
#undef $ac_func
 
21779
 
 
21780
/* Override any GCC internal prototype to avoid an error.
 
21781
   Use char because int might match the return type of a GCC
 
21782
   builtin and then its argument prototype would still apply.  */
 
21783
#ifdef __cplusplus
 
21784
extern "C"
 
21785
#endif
 
21786
char $ac_func ();
 
21787
/* The GNU C library defines this for functions which it implements
 
21788
    to always fail with ENOSYS.  Some functions are actually named
 
21789
    something starting with __ and the normal name is an alias.  */
 
21790
#if defined __stub_$ac_func || defined __stub___$ac_func
 
21791
choke me
 
21792
#endif
 
21793
 
 
21794
int
 
21795
main ()
 
21796
{
 
21797
return $ac_func ();
 
21798
  ;
 
21799
  return 0;
 
21800
}
 
21801
_ACEOF
 
21802
rm -f conftest.$ac_objext conftest$ac_exeext
 
21803
if { (ac_try="$ac_link"
 
21804
case "(($ac_try" in
 
21805
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21806
  *) ac_try_echo=$ac_try;;
 
21807
esac
 
21808
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21809
$as_echo "$ac_try_echo") >&5
 
21810
  (eval "$ac_link") 2>conftest.er1
 
21811
  ac_status=$?
 
21812
  grep -v '^ *+' conftest.er1 >conftest.err
 
21813
  rm -f conftest.er1
 
21814
  cat conftest.err >&5
 
21815
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21816
  (exit $ac_status); } && {
 
21817
         test -z "$ac_c_werror_flag" ||
 
21818
         test ! -s conftest.err
 
21819
       } && test -s conftest$ac_exeext && {
 
21820
         test "$cross_compiling" = yes ||
 
21821
         $as_test_x conftest$ac_exeext
 
21822
       }; then
 
21823
  eval "$as_ac_var=yes"
 
21824
else
 
21825
  $as_echo "$as_me: failed program was:" >&5
 
21826
sed 's/^/| /' conftest.$ac_ext >&5
 
21827
 
 
21828
        eval "$as_ac_var=no"
 
21829
fi
 
21830
 
 
21831
rm -rf conftest.dSYM
 
21832
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
21833
      conftest$ac_exeext conftest.$ac_ext
 
21834
fi
 
21835
ac_res=`eval 'as_val=${'$as_ac_var'}
 
21836
                 $as_echo "$as_val"'`
 
21837
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
21838
$as_echo "$ac_res" >&6; }
 
21839
as_val=`eval 'as_val=${'$as_ac_var'}
 
21840
                 $as_echo "$as_val"'`
 
21841
   if test "x$as_val" = x""yes; then
 
21842
  cat >>confdefs.h <<_ACEOF
 
21843
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
21844
_ACEOF
 
21845
 
 
21846
{ $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
 
21847
$as_echo_n "checking for _doprnt... " >&6; }
 
21848
if test "${ac_cv_func__doprnt+set}" = set; then
 
21849
  $as_echo_n "(cached) " >&6
 
21850
else
 
21851
  cat >conftest.$ac_ext <<_ACEOF
 
21852
/* confdefs.h.  */
 
21853
_ACEOF
 
21854
cat confdefs.h >>conftest.$ac_ext
 
21855
cat >>conftest.$ac_ext <<_ACEOF
 
21856
/* end confdefs.h.  */
 
21857
/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
 
21858
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
21859
#define _doprnt innocuous__doprnt
 
21860
 
 
21861
/* System header to define __stub macros and hopefully few prototypes,
 
21862
    which can conflict with char _doprnt (); below.
 
21863
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
21864
    <limits.h> exists even on freestanding compilers.  */
 
21865
 
 
21866
#ifdef __STDC__
 
21867
# include <limits.h>
 
21868
#else
 
21869
# include <assert.h>
 
21870
#endif
 
21871
 
 
21872
#undef _doprnt
 
21873
 
 
21874
/* Override any GCC internal prototype to avoid an error.
 
21875
   Use char because int might match the return type of a GCC
 
21876
   builtin and then its argument prototype would still apply.  */
 
21877
#ifdef __cplusplus
 
21878
extern "C"
 
21879
#endif
 
21880
char _doprnt ();
 
21881
/* The GNU C library defines this for functions which it implements
 
21882
    to always fail with ENOSYS.  Some functions are actually named
 
21883
    something starting with __ and the normal name is an alias.  */
 
21884
#if defined __stub__doprnt || defined __stub____doprnt
 
21885
choke me
 
21886
#endif
 
21887
 
 
21888
int
 
21889
main ()
 
21890
{
 
21891
return _doprnt ();
 
21892
  ;
 
21893
  return 0;
 
21894
}
 
21895
_ACEOF
 
21896
rm -f conftest.$ac_objext conftest$ac_exeext
 
21897
if { (ac_try="$ac_link"
 
21898
case "(($ac_try" in
 
21899
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21900
  *) ac_try_echo=$ac_try;;
 
21901
esac
 
21902
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
21903
$as_echo "$ac_try_echo") >&5
 
21904
  (eval "$ac_link") 2>conftest.er1
 
21905
  ac_status=$?
 
21906
  grep -v '^ *+' conftest.er1 >conftest.err
 
21907
  rm -f conftest.er1
 
21908
  cat conftest.err >&5
 
21909
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21910
  (exit $ac_status); } && {
 
21911
         test -z "$ac_c_werror_flag" ||
 
21912
         test ! -s conftest.err
 
21913
       } && test -s conftest$ac_exeext && {
 
21914
         test "$cross_compiling" = yes ||
 
21915
         $as_test_x conftest$ac_exeext
 
21916
       }; then
 
21917
  ac_cv_func__doprnt=yes
 
21918
else
 
21919
  $as_echo "$as_me: failed program was:" >&5
 
21920
sed 's/^/| /' conftest.$ac_ext >&5
 
21921
 
 
21922
        ac_cv_func__doprnt=no
 
21923
fi
 
21924
 
 
21925
rm -rf conftest.dSYM
 
21926
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
21927
      conftest$ac_exeext conftest.$ac_ext
 
21928
fi
 
21929
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
 
21930
$as_echo "$ac_cv_func__doprnt" >&6; }
 
21931
if test "x$ac_cv_func__doprnt" = x""yes; then
 
21932
 
 
21933
cat >>confdefs.h <<\_ACEOF
 
21934
#define HAVE_DOPRNT 1
 
21935
_ACEOF
 
21936
 
 
21937
fi
 
21938
 
 
21939
fi
 
21940
done
 
21941
 
 
21942
 
 
21943
 
 
21944
 
 
21945
for ac_func in memset select
 
21946
do
 
21947
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
21948
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
 
21949
$as_echo_n "checking for $ac_func... " >&6; }
 
21950
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
21951
  $as_echo_n "(cached) " >&6
 
21952
else
 
21953
  cat >conftest.$ac_ext <<_ACEOF
 
21954
/* confdefs.h.  */
 
21955
_ACEOF
 
21956
cat confdefs.h >>conftest.$ac_ext
 
21957
cat >>conftest.$ac_ext <<_ACEOF
 
21958
/* end confdefs.h.  */
 
21959
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
21960
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
21961
#define $ac_func innocuous_$ac_func
 
21962
 
 
21963
/* System header to define __stub macros and hopefully few prototypes,
 
21964
    which can conflict with char $ac_func (); below.
 
21965
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
21966
    <limits.h> exists even on freestanding compilers.  */
 
21967
 
 
21968
#ifdef __STDC__
 
21969
# include <limits.h>
 
21970
#else
 
21971
# include <assert.h>
 
21972
#endif
 
21973
 
 
21974
#undef $ac_func
 
21975
 
 
21976
/* Override any GCC internal prototype to avoid an error.
 
21977
   Use char because int might match the return type of a GCC
 
21978
   builtin and then its argument prototype would still apply.  */
 
21979
#ifdef __cplusplus
 
21980
extern "C"
 
21981
#endif
 
21982
char $ac_func ();
 
21983
/* The GNU C library defines this for functions which it implements
 
21984
    to always fail with ENOSYS.  Some functions are actually named
 
21985
    something starting with __ and the normal name is an alias.  */
 
21986
#if defined __stub_$ac_func || defined __stub___$ac_func
 
21987
choke me
 
21988
#endif
 
21989
 
 
21990
int
 
21991
main ()
 
21992
{
 
21993
return $ac_func ();
 
21994
  ;
 
21995
  return 0;
 
21996
}
 
21997
_ACEOF
 
21998
rm -f conftest.$ac_objext conftest$ac_exeext
 
21999
if { (ac_try="$ac_link"
 
22000
case "(($ac_try" in
 
22001
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22002
  *) ac_try_echo=$ac_try;;
 
22003
esac
 
22004
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22005
$as_echo "$ac_try_echo") >&5
 
22006
  (eval "$ac_link") 2>conftest.er1
 
22007
  ac_status=$?
 
22008
  grep -v '^ *+' conftest.er1 >conftest.err
 
22009
  rm -f conftest.er1
 
22010
  cat conftest.err >&5
 
22011
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22012
  (exit $ac_status); } && {
 
22013
         test -z "$ac_c_werror_flag" ||
 
22014
         test ! -s conftest.err
 
22015
       } && test -s conftest$ac_exeext && {
 
22016
         test "$cross_compiling" = yes ||
 
22017
         $as_test_x conftest$ac_exeext
 
22018
       }; then
 
22019
  eval "$as_ac_var=yes"
 
22020
else
 
22021
  $as_echo "$as_me: failed program was:" >&5
 
22022
sed 's/^/| /' conftest.$ac_ext >&5
 
22023
 
 
22024
        eval "$as_ac_var=no"
 
22025
fi
 
22026
 
 
22027
rm -rf conftest.dSYM
 
22028
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
22029
      conftest$ac_exeext conftest.$ac_ext
 
22030
fi
 
22031
ac_res=`eval 'as_val=${'$as_ac_var'}
 
22032
                 $as_echo "$as_val"'`
 
22033
               { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
 
22034
$as_echo "$ac_res" >&6; }
 
22035
as_val=`eval 'as_val=${'$as_ac_var'}
 
22036
                 $as_echo "$as_val"'`
 
22037
   if test "x$as_val" = x""yes; then
 
22038
  cat >>confdefs.h <<_ACEOF
 
22039
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
22040
_ACEOF
 
22041
 
 
22042
fi
 
22043
done
 
22044
 
 
22045
 
 
22046
#AC_CHECK_FUNC(lrintf,[
 
22047
#  AC_DEFINE(HAVE_LRINTF, 1, [whether lrintf() is available])
 
22048
#])
 
22049
 
 
22050
#AC_CHECK_FUNC(lrint,[
 
22051
#  AC_DEFINE(HAVE_LRINT, 1, [whether lrint() is available])
 
22052
#])
 
22053
 
 
22054
#taken from Sear
 
22055
STATIC_LIBSTDCPP=
 
22056
STATIC_LIBGCC=
 
22057
 
 
22058
# Check whether --enable-static_build was given.
 
22059
if test "${enable_static_build+set}" = set; then
 
22060
  enableval=$enable_static_build;
 
22061
    if test "$enableval" = "yes"; then
 
22062
      link_static="true"
 
22063
      STATIC_LIBSTDCPP=`$CXX -print-file-name=libstdc++.a`
 
22064
      STATIC_LIBGCC=`$CXX -print-file-name=libgcc.a`
 
22065
    else
 
22066
      link_static="false"
 
22067
    fi
 
22068
 
 
22069
else
 
22070
 
 
22071
    link_static="false"
 
22072
 
 
22073
 
 
22074
fi
 
22075
 
 
22076
 if test x"$link_static" = xtrue; then
 
22077
  BUILD_STATIC_TRUE=
 
22078
  BUILD_STATIC_FALSE='#'
 
22079
else
 
22080
  BUILD_STATIC_TRUE='#'
 
22081
  BUILD_STATIC_FALSE=
 
22082
fi
 
22083
 
 
22084
 
 
22085
# Check whether --enable-freeimage_check was given.
 
22086
if test "${enable_freeimage_check+set}" = set; then
 
22087
  enableval=$enable_freeimage_check;
 
22088
    if test "$enableval" = "yes"; then
 
22089
      freeimage_check="true"
 
22090
    else
 
22091
      freeimage_check="false"
 
22092
    fi
 
22093
 
 
22094
else
 
22095
 
 
22096
    freeimage_check="true"
 
22097
 
 
22098
 
 
22099
fi
 
22100
 
 
22101
 
 
22102
{ $as_echo "$as_me:$LINENO: result:
 
22103
 
 
22104
                **************************************
 
22105
                * Checking for SDL Libraries
 
22106
                **************************************
 
22107
 
 
22108
        " >&5
 
22109
$as_echo "
 
22110
 
 
22111
                **************************************
 
22112
                * Checking for SDL Libraries
 
22113
                **************************************
 
22114
 
 
22115
        " >&6; }
 
22116
 
 
22117
 
 
22118
# Check whether --with-sdl-prefix was given.
 
22119
if test "${with_sdl_prefix+set}" = set; then
 
22120
  withval=$with_sdl_prefix; sdl_prefix="$withval"
 
22121
else
 
22122
  sdl_prefix=""
 
22123
fi
 
22124
 
 
22125
 
 
22126
# Check whether --with-sdl-exec-prefix was given.
 
22127
if test "${with_sdl_exec_prefix+set}" = set; then
 
22128
  withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
 
22129
else
 
22130
  sdl_exec_prefix=""
 
22131
fi
 
22132
 
 
22133
# Check whether --enable-sdltest was given.
 
22134
if test "${enable_sdltest+set}" = set; then
 
22135
  enableval=$enable_sdltest;
 
22136
else
 
22137
  enable_sdltest=yes
 
22138
fi
 
22139
 
 
22140
 
 
22141
  if test x$sdl_exec_prefix != x ; then
 
22142
    sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
 
22143
    if test x${SDL_CONFIG+set} != xset ; then
 
22144
      SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
 
22145
    fi
 
22146
  fi
 
22147
  if test x$sdl_prefix != x ; then
 
22148
    sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
 
22149
    if test x${SDL_CONFIG+set} != xset ; then
 
22150
      SDL_CONFIG=$sdl_prefix/bin/sdl-config
 
22151
    fi
 
22152
  fi
 
22153
 
 
22154
  if test "x$prefix" != xNONE; then
 
22155
    PATH="$prefix/bin:$prefix/usr/bin:$PATH"
 
22156
  fi
 
22157
  # Extract the first word of "sdl-config", so it can be a program name with args.
 
22158
set dummy sdl-config; ac_word=$2
 
22159
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
22160
$as_echo_n "checking for $ac_word... " >&6; }
 
22161
if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
 
22162
  $as_echo_n "(cached) " >&6
 
22163
else
 
22164
  case $SDL_CONFIG in
 
22165
  [\\/]* | ?:[\\/]*)
 
22166
  ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
 
22167
  ;;
 
22168
  *)
 
22169
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
22170
for as_dir in $PATH
 
22171
do
 
22172
  IFS=$as_save_IFS
 
22173
  test -z "$as_dir" && as_dir=.
 
22174
  for ac_exec_ext in '' $ac_executable_extensions; do
 
22175
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
22176
    ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
22177
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
22178
    break 2
 
22179
  fi
 
22180
done
 
22181
done
 
22182
IFS=$as_save_IFS
 
22183
 
 
22184
  test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
 
22185
  ;;
 
22186
esac
 
22187
fi
 
22188
SDL_CONFIG=$ac_cv_path_SDL_CONFIG
 
22189
if test -n "$SDL_CONFIG"; then
 
22190
  { $as_echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
 
22191
$as_echo "$SDL_CONFIG" >&6; }
 
22192
else
 
22193
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
22194
$as_echo "no" >&6; }
 
22195
fi
 
22196
 
 
22197
 
 
22198
  min_sdl_version=1.2.0
 
22199
  { $as_echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
 
22200
$as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
 
22201
  no_sdl=""
 
22202
  if test "$SDL_CONFIG" = "no" ; then
 
22203
    no_sdl=yes
 
22204
  else
 
22205
    SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
 
22206
    SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
 
22207
 
 
22208
    sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
 
22209
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
 
22210
    sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
 
22211
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
 
22212
    sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
 
22213
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
 
22214
    if test "x$enable_sdltest" = "xyes" ; then
 
22215
      ac_save_CFLAGS="$CFLAGS"
 
22216
      ac_save_CXXFLAGS="$CXXFLAGS"
 
22217
      ac_save_LIBS="$LIBS"
 
22218
      CFLAGS="$CFLAGS $SDL_CFLAGS"
 
22219
      CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
 
22220
      LIBS="$LIBS $SDL_LIBS"
 
22221
      rm -f conf.sdltest
 
22222
      if test "$cross_compiling" = yes; then
 
22223
  echo $ac_n "cross compiling; assumed OK... $ac_c"
 
22224
else
 
22225
  cat >conftest.$ac_ext <<_ACEOF
 
22226
/* confdefs.h.  */
 
22227
_ACEOF
 
22228
cat confdefs.h >>conftest.$ac_ext
 
22229
cat >>conftest.$ac_ext <<_ACEOF
 
22230
/* end confdefs.h.  */
 
22231
 
 
22232
#include <stdio.h>
 
22233
#include <stdlib.h>
 
22234
#include <string.h>
 
22235
#include "SDL.h"
 
22236
 
 
22237
char*
 
22238
my_strdup (char *str)
 
22239
{
 
22240
  char *new_str;
 
22241
 
 
22242
  if (str)
 
22243
    {
 
22244
      new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
 
22245
      strcpy (new_str, str);
 
22246
    }
 
22247
  else
 
22248
    new_str = NULL;
 
22249
 
 
22250
  return new_str;
 
22251
}
 
22252
 
 
22253
int main (int argc, char *argv[])
 
22254
{
 
22255
  int major, minor, micro;
 
22256
  char *tmp_version;
 
22257
 
 
22258
  /* This hangs on some systems (?)
 
22259
  system ("touch conf.sdltest");
 
22260
  */
 
22261
  { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
 
22262
 
 
22263
  /* HP/UX 9 (%@#!) writes to sscanf strings */
 
22264
  tmp_version = my_strdup("$min_sdl_version");
 
22265
  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
 
22266
     printf("%s, bad version string\n", "$min_sdl_version");
 
22267
     exit(1);
 
22268
   }
 
22269
 
 
22270
   if (($sdl_major_version > major) ||
 
22271
      (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
 
22272
      (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
 
22273
    {
 
22274
      return 0;
 
22275
    }
 
22276
  else
 
22277
    {
 
22278
      printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
 
22279
      printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
 
22280
      printf("*** best to upgrade to the required version.\n");
 
22281
      printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
 
22282
      printf("*** to point to the correct copy of sdl-config, and remove the file\n");
 
22283
      printf("*** config.cache before re-running configure\n");
 
22284
      return 1;
 
22285
    }
 
22286
}
 
22287
 
 
22288
 
 
22289
_ACEOF
 
22290
rm -f conftest$ac_exeext
 
22291
if { (ac_try="$ac_link"
 
22292
case "(($ac_try" in
 
22293
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22294
  *) ac_try_echo=$ac_try;;
 
22295
esac
 
22296
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22297
$as_echo "$ac_try_echo") >&5
 
22298
  (eval "$ac_link") 2>&5
 
22299
  ac_status=$?
 
22300
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22301
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
22302
  { (case "(($ac_try" in
 
22303
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22304
  *) ac_try_echo=$ac_try;;
 
22305
esac
 
22306
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22307
$as_echo "$ac_try_echo") >&5
 
22308
  (eval "$ac_try") 2>&5
 
22309
  ac_status=$?
 
22310
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22311
  (exit $ac_status); }; }; then
 
22312
  :
 
22313
else
 
22314
  $as_echo "$as_me: program exited with status $ac_status" >&5
 
22315
$as_echo "$as_me: failed program was:" >&5
 
22316
sed 's/^/| /' conftest.$ac_ext >&5
 
22317
 
 
22318
( exit $ac_status )
 
22319
no_sdl=yes
 
22320
fi
 
22321
rm -rf conftest.dSYM
 
22322
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
22323
fi
 
22324
 
 
22325
 
 
22326
       CFLAGS="$ac_save_CFLAGS"
 
22327
       CXXFLAGS="$ac_save_CXXFLAGS"
 
22328
       LIBS="$ac_save_LIBS"
 
22329
     fi
 
22330
  fi
 
22331
  if test "x$no_sdl" = x ; then
 
22332
     { $as_echo "$as_me:$LINENO: result: yes" >&5
 
22333
$as_echo "yes" >&6; }
 
22334
     :
 
22335
  else
 
22336
     { $as_echo "$as_me:$LINENO: result: no" >&5
 
22337
$as_echo "no" >&6; }
 
22338
     if test "$SDL_CONFIG" = "no" ; then
 
22339
       echo "*** The sdl-config script installed by SDL could not be found"
 
22340
       echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
 
22341
       echo "*** your path, or set the SDL_CONFIG environment variable to the"
 
22342
       echo "*** full path to sdl-config."
 
22343
     else
 
22344
       if test -f conf.sdltest ; then
 
22345
        :
 
22346
       else
 
22347
          echo "*** Could not run SDL test program, checking why..."
 
22348
          CFLAGS="$CFLAGS $SDL_CFLAGS"
 
22349
          CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
 
22350
          LIBS="$LIBS $SDL_LIBS"
 
22351
          cat >conftest.$ac_ext <<_ACEOF
 
22352
/* confdefs.h.  */
 
22353
_ACEOF
 
22354
cat confdefs.h >>conftest.$ac_ext
 
22355
cat >>conftest.$ac_ext <<_ACEOF
 
22356
/* end confdefs.h.  */
 
22357
 
 
22358
#include <stdio.h>
 
22359
#include "SDL.h"
 
22360
 
 
22361
int main(int argc, char *argv[])
 
22362
{ return 0; }
 
22363
#undef  main
 
22364
#define main K_and_R_C_main
 
22365
 
 
22366
int
 
22367
main ()
 
22368
{
 
22369
 return 0;
 
22370
  ;
 
22371
  return 0;
 
22372
}
 
22373
_ACEOF
 
22374
rm -f conftest.$ac_objext conftest$ac_exeext
 
22375
if { (ac_try="$ac_link"
 
22376
case "(($ac_try" in
 
22377
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22378
  *) ac_try_echo=$ac_try;;
 
22379
esac
 
22380
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22381
$as_echo "$ac_try_echo") >&5
 
22382
  (eval "$ac_link") 2>conftest.er1
 
22383
  ac_status=$?
 
22384
  grep -v '^ *+' conftest.er1 >conftest.err
 
22385
  rm -f conftest.er1
 
22386
  cat conftest.err >&5
 
22387
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22388
  (exit $ac_status); } && {
 
22389
         test -z "$ac_c_werror_flag" ||
 
22390
         test ! -s conftest.err
 
22391
       } && test -s conftest$ac_exeext && {
 
22392
         test "$cross_compiling" = yes ||
 
22393
         $as_test_x conftest$ac_exeext
 
22394
       }; then
 
22395
   echo "*** The test program compiled, but did not run. This usually means"
 
22396
          echo "*** that the run-time linker is not finding SDL or finding the wrong"
 
22397
          echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
 
22398
          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
 
22399
          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
 
22400
          echo "*** is required on your system"
 
22401
          echo "***"
 
22402
          echo "*** If you have an old version installed, it is best to remove it, although"
 
22403
          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
 
22404
else
 
22405
  $as_echo "$as_me: failed program was:" >&5
 
22406
sed 's/^/| /' conftest.$ac_ext >&5
 
22407
 
 
22408
         echo "*** The test program failed to compile or link. See the file config.log for the"
 
22409
          echo "*** exact error that occured. This usually means SDL was incorrectly installed"
 
22410
          echo "*** or that you have moved SDL since it was installed. In the latter case, you"
 
22411
          echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
 
22412
fi
 
22413
 
 
22414
rm -rf conftest.dSYM
 
22415
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
22416
      conftest$ac_exeext conftest.$ac_ext
 
22417
          CFLAGS="$ac_save_CFLAGS"
 
22418
          CXXFLAGS="$ac_save_CXXFLAGS"
 
22419
          LIBS="$ac_save_LIBS"
 
22420
       fi
 
22421
     fi
 
22422
     SDL_CFLAGS=""
 
22423
     SDL_LIBS=""
 
22424
 
 
22425
  { { $as_echo "$as_me:$LINENO: error: Couldn't find SDL or insufficent version found. Please goto http://www.libsdl.org/ and get at least version $SDL_VERSION" >&5
 
22426
$as_echo "$as_me: error: Couldn't find SDL or insufficent version found. Please goto http://www.libsdl.org/ and get at least version $SDL_VERSION" >&2;}
 
22427
   { (exit 1); exit 1; }; }
 
22428
 
 
22429
  fi
 
22430
 
 
22431
 
 
22432
  rm -f conf.sdltest
 
22433
 
 
22434
 
 
22435
#dnl don't add SDL flags yet, SDL_main confuses later checks
 
22436
 
 
22437
 
 
22438
ac_ext=c
 
22439
ac_cpp='$CPP $CPPFLAGS'
 
22440
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
22441
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
22442
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
22443
 
 
22444
 
 
22445
 
 
22446
{ $as_echo "$as_me:$LINENO: checking for glViewport in -lGL" >&5
 
22447
$as_echo_n "checking for glViewport in -lGL... " >&6; }
 
22448
if test "${ac_cv_lib_GL_glViewport+set}" = set; then
 
22449
  $as_echo_n "(cached) " >&6
 
22450
else
 
22451
  ac_check_lib_save_LIBS=$LIBS
 
22452
LIBS="-lGL  $LIBS"
 
22453
cat >conftest.$ac_ext <<_ACEOF
 
22454
/* confdefs.h.  */
 
22455
_ACEOF
 
22456
cat confdefs.h >>conftest.$ac_ext
 
22457
cat >>conftest.$ac_ext <<_ACEOF
 
22458
/* end confdefs.h.  */
 
22459
 
 
22460
/* Override any GCC internal prototype to avoid an error.
 
22461
   Use char because int might match the return type of a GCC
 
22462
   builtin and then its argument prototype would still apply.  */
 
22463
#ifdef __cplusplus
 
22464
extern "C"
 
22465
#endif
 
22466
char glViewport ();
 
22467
int
 
22468
main ()
 
22469
{
 
22470
return glViewport ();
 
22471
  ;
 
22472
  return 0;
 
22473
}
 
22474
_ACEOF
 
22475
rm -f conftest.$ac_objext conftest$ac_exeext
 
22476
if { (ac_try="$ac_link"
 
22477
case "(($ac_try" in
 
22478
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22479
  *) ac_try_echo=$ac_try;;
 
22480
esac
 
22481
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22482
$as_echo "$ac_try_echo") >&5
 
22483
  (eval "$ac_link") 2>conftest.er1
 
22484
  ac_status=$?
 
22485
  grep -v '^ *+' conftest.er1 >conftest.err
 
22486
  rm -f conftest.er1
 
22487
  cat conftest.err >&5
 
22488
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22489
  (exit $ac_status); } && {
 
22490
         test -z "$ac_c_werror_flag" ||
 
22491
         test ! -s conftest.err
 
22492
       } && test -s conftest$ac_exeext && {
 
22493
         test "$cross_compiling" = yes ||
 
22494
         $as_test_x conftest$ac_exeext
 
22495
       }; then
 
22496
  ac_cv_lib_GL_glViewport=yes
 
22497
else
 
22498
  $as_echo "$as_me: failed program was:" >&5
 
22499
sed 's/^/| /' conftest.$ac_ext >&5
 
22500
 
 
22501
        ac_cv_lib_GL_glViewport=no
 
22502
fi
 
22503
 
 
22504
rm -rf conftest.dSYM
 
22505
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
22506
      conftest$ac_exeext conftest.$ac_ext
 
22507
LIBS=$ac_check_lib_save_LIBS
 
22508
fi
 
22509
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glViewport" >&5
 
22510
$as_echo "$ac_cv_lib_GL_glViewport" >&6; }
 
22511
if test "x$ac_cv_lib_GL_glViewport" = x""yes; then
 
22512
 
 
22513
    LIBS="$LIBS -lGL"
 
22514
        CXXFLAGS="$CXXFLAGS -I/usr/X11R6/include -I/usr/include"
 
22515
 
 
22516
else
 
22517
 
 
22518
        { { $as_echo "$as_me:$LINENO: error: Could not find OpenGL library" >&5
 
22519
$as_echo "$as_me: error: Could not find OpenGL library" >&2;}
 
22520
   { (exit 1); exit 1; }; }
 
22521
 
 
22522
 
 
22523
fi
 
22524
 
 
22525
 
 
22526
ac_ext=c
 
22527
ac_cpp='$CPP $CPPFLAGS'
 
22528
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
22529
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
22530
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
22531
 
 
22532
 
 
22533
 
 
22534
 
 
22535
# OpenAL check
 
22536
{ $as_echo "$as_me:$LINENO: result:
 
22537
 
 
22538
                **************************************
 
22539
                * Checking for C Libraries
 
22540
                **************************************
 
22541
 
 
22542
        " >&5
 
22543
$as_echo "
 
22544
 
 
22545
                **************************************
 
22546
                * Checking for C Libraries
 
22547
                **************************************
 
22548
 
 
22549
        " >&6; }
 
22550
 
 
22551
ac_ext=c
 
22552
ac_cpp='$CPP $CPPFLAGS'
 
22553
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
22554
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
22555
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
22556
 
 
22557
 
 
22558
#disable this for now
 
22559
#AC_CHECK_LIB(openal,
 
22560
#       alutInit ,,
 
22561
#            AC_MSG_ERROR([Unable to find OpenAL (Open Audio Layer)])
 
22562
#       )
 
22563
 
 
22564
 
 
22565
 
 
22566
 
 
22567
 
 
22568
ac_ext=c
 
22569
ac_cpp='$CPP $CPPFLAGS'
 
22570
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
22571
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
22572
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
22573
 
 
22574
 
 
22575
# make sure binreloc funtionality is used
 
22576
 
 
22577
        # Check whether --enable-binreloc was given.
 
22578
if test "${enable_binreloc+set}" = set; then
 
22579
  enableval=$enable_binreloc; enable_binreloc=$enableval
 
22580
else
 
22581
  enable_binreloc=auto
 
22582
fi
 
22583
 
 
22584
 
 
22585
        # Check whether --enable-binreloc-threads was given.
 
22586
if test "${enable_binreloc_threads+set}" = set; then
 
22587
  enableval=$enable_binreloc_threads; enable_binreloc_threads=$enableval
 
22588
else
 
22589
  enable_binreloc_threads=yes
 
22590
fi
 
22591
 
 
22592
 
 
22593
        BINRELOC_CFLAGS=
 
22594
        BINRELOC_LIBS=
 
22595
        if test "x$enable_binreloc" = "xauto"; then
 
22596
                { $as_echo "$as_me:$LINENO: checking for /proc/self/maps" >&5
 
22597
$as_echo_n "checking for /proc/self/maps... " >&6; }
 
22598
if test "${ac_cv_file__proc_self_maps+set}" = set; then
 
22599
  $as_echo_n "(cached) " >&6
 
22600
else
 
22601
  test "$cross_compiling" = yes &&
 
22602
  { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
 
22603
$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
 
22604
   { (exit 1); exit 1; }; }
 
22605
if test -r "/proc/self/maps"; then
 
22606
  ac_cv_file__proc_self_maps=yes
 
22607
else
 
22608
  ac_cv_file__proc_self_maps=no
 
22609
fi
 
22610
fi
 
22611
{ $as_echo "$as_me:$LINENO: result: $ac_cv_file__proc_self_maps" >&5
 
22612
$as_echo "$ac_cv_file__proc_self_maps" >&6; }
 
22613
 
 
22614
                { $as_echo "$as_me:$LINENO: checking whether everything is installed to the same prefix" >&5
 
22615
$as_echo_n "checking whether everything is installed to the same prefix... " >&6; }
 
22616
if test "${br_cv_valid_prefixes+set}" = set; then
 
22617
  $as_echo_n "(cached) " >&6
 
22618
else
 
22619
 
 
22620
                                if test "$bindir" = '${exec_prefix}/bin' -a "$sbindir" = '${exec_prefix}/sbin' -a \
 
22621
                                        "$datadir" = '${prefix}/share' -a "$libdir" = '${exec_prefix}/lib' -a \
 
22622
                                        "$libexecdir" = '${exec_prefix}/libexec' -a "$sysconfdir" = '${prefix}/etc'
 
22623
                                then
 
22624
                                        br_cv_valid_prefixes=yes
 
22625
                                else
 
22626
                                        br_cv_valid_prefixes=no
 
22627
                                fi
 
22628
 
 
22629
fi
 
22630
{ $as_echo "$as_me:$LINENO: result: $br_cv_valid_prefixes" >&5
 
22631
$as_echo "$br_cv_valid_prefixes" >&6; }
 
22632
        fi
 
22633
        { $as_echo "$as_me:$LINENO: checking whether binary relocation support should be enabled" >&5
 
22634
$as_echo_n "checking whether binary relocation support should be enabled... " >&6; }
 
22635
if test "${br_cv_binreloc+set}" = set; then
 
22636
  $as_echo_n "(cached) " >&6
 
22637
else
 
22638
  if test "x$enable_binreloc" = "xyes"; then
 
22639
                               br_cv_binreloc=yes
 
22640
                       elif test "x$enable_binreloc" = "xauto"; then
 
22641
                               if test "x$br_cv_valid_prefixes" = "xyes" -a \
 
22642
                                       "x$ac_cv_file__proc_self_maps" = "xyes"; then
 
22643
                                       br_cv_binreloc=yes
 
22644
                               else
 
22645
                                       br_cv_binreloc=no
 
22646
                               fi
 
22647
                       else
 
22648
                               br_cv_binreloc=no
 
22649
                       fi
 
22650
fi
 
22651
{ $as_echo "$as_me:$LINENO: result: $br_cv_binreloc" >&5
 
22652
$as_echo "$br_cv_binreloc" >&6; }
 
22653
 
 
22654
        if test "x$br_cv_binreloc" = "xyes"; then
 
22655
                BINRELOC_CFLAGS="-DENABLE_BINRELOC"
 
22656
 
 
22657
cat >>confdefs.h <<\_ACEOF
 
22658
#define ENABLE_BINRELOC /**/
 
22659
_ACEOF
 
22660
 
 
22661
                if test "x$enable_binreloc_threads" = "xyes"; then
 
22662
 
 
22663
{ $as_echo "$as_me:$LINENO: checking for pthread_getspecific in -lpthread" >&5
 
22664
$as_echo_n "checking for pthread_getspecific in -lpthread... " >&6; }
 
22665
if test "${ac_cv_lib_pthread_pthread_getspecific+set}" = set; then
 
22666
  $as_echo_n "(cached) " >&6
 
22667
else
 
22668
  ac_check_lib_save_LIBS=$LIBS
 
22669
LIBS="-lpthread  $LIBS"
 
22670
cat >conftest.$ac_ext <<_ACEOF
 
22671
/* confdefs.h.  */
 
22672
_ACEOF
 
22673
cat confdefs.h >>conftest.$ac_ext
 
22674
cat >>conftest.$ac_ext <<_ACEOF
 
22675
/* end confdefs.h.  */
 
22676
 
 
22677
/* Override any GCC internal prototype to avoid an error.
 
22678
   Use char because int might match the return type of a GCC
 
22679
   builtin and then its argument prototype would still apply.  */
 
22680
#ifdef __cplusplus
 
22681
extern "C"
 
22682
#endif
 
22683
char pthread_getspecific ();
 
22684
int
 
22685
main ()
 
22686
{
 
22687
return pthread_getspecific ();
 
22688
  ;
 
22689
  return 0;
 
22690
}
 
22691
_ACEOF
 
22692
rm -f conftest.$ac_objext conftest$ac_exeext
 
22693
if { (ac_try="$ac_link"
 
22694
case "(($ac_try" in
 
22695
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22696
  *) ac_try_echo=$ac_try;;
 
22697
esac
 
22698
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22699
$as_echo "$ac_try_echo") >&5
 
22700
  (eval "$ac_link") 2>conftest.er1
 
22701
  ac_status=$?
 
22702
  grep -v '^ *+' conftest.er1 >conftest.err
 
22703
  rm -f conftest.er1
 
22704
  cat conftest.err >&5
 
22705
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22706
  (exit $ac_status); } && {
 
22707
         test -z "$ac_c_werror_flag" ||
 
22708
         test ! -s conftest.err
 
22709
       } && test -s conftest$ac_exeext && {
 
22710
         test "$cross_compiling" = yes ||
 
22711
         $as_test_x conftest$ac_exeext
 
22712
       }; then
 
22713
  ac_cv_lib_pthread_pthread_getspecific=yes
 
22714
else
 
22715
  $as_echo "$as_me: failed program was:" >&5
 
22716
sed 's/^/| /' conftest.$ac_ext >&5
 
22717
 
 
22718
        ac_cv_lib_pthread_pthread_getspecific=no
 
22719
fi
 
22720
 
 
22721
rm -rf conftest.dSYM
 
22722
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
22723
      conftest$ac_exeext conftest.$ac_ext
 
22724
LIBS=$ac_check_lib_save_LIBS
 
22725
fi
 
22726
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_getspecific" >&5
 
22727
$as_echo "$ac_cv_lib_pthread_pthread_getspecific" >&6; }
 
22728
if test "x$ac_cv_lib_pthread_pthread_getspecific" = x""yes; then
 
22729
  cat >>confdefs.h <<_ACEOF
 
22730
#define HAVE_LIBPTHREAD 1
 
22731
_ACEOF
 
22732
 
 
22733
  LIBS="-lpthread $LIBS"
 
22734
 
 
22735
fi
 
22736
 
 
22737
                fi
 
22738
 
 
22739
                { $as_echo "$as_me:$LINENO: checking whether binary relocation should use threads" >&5
 
22740
$as_echo_n "checking whether binary relocation should use threads... " >&6; }
 
22741
if test "${br_cv_binreloc_threads+set}" = set; then
 
22742
  $as_echo_n "(cached) " >&6
 
22743
else
 
22744
  if test "x$enable_binreloc_threads" = "xyes"; then
 
22745
                                        if test "x$ac_cv_lib_pthread_pthread_getspecific" = "xyes"; then
 
22746
                                                br_cv_binreloc_threads=yes
 
22747
                                        else
 
22748
                                                br_cv_binreloc_threads=no
 
22749
                                        fi
 
22750
                                else
 
22751
                                        br_cv_binreloc_threads=no
 
22752
                                fi
 
22753
fi
 
22754
{ $as_echo "$as_me:$LINENO: result: $br_cv_binreloc_threads" >&5
 
22755
$as_echo "$br_cv_binreloc_threads" >&6; }
 
22756
 
 
22757
                if test "x$br_cv_binreloc_threads" = "xyes"; then
 
22758
                        BINRELOC_LIBS="-lpthread"
 
22759
 
 
22760
cat >>confdefs.h <<\_ACEOF
 
22761
#define BR_PTHREAD 1
 
22762
_ACEOF
 
22763
 
 
22764
                else
 
22765
                        BINRELOC_CFLAGS="$BINRELOC_CFLAGS -DBR_PTHREADS=0"
 
22766
 
 
22767
cat >>confdefs.h <<\_ACEOF
 
22768
#define BR_PTHREAD 0
 
22769
_ACEOF
 
22770
 
 
22771
                fi
 
22772
        fi
 
22773
 
 
22774
 
 
22775
 
 
22776
 
 
22777
# Try to find system-wide installation of tinyxml
 
22778
# If found, add define to config.h, set LIBS and add automake conditional
 
22779
{ $as_echo "$as_me:$LINENO: checking for main in -ltinyxml" >&5
 
22780
$as_echo_n "checking for main in -ltinyxml... " >&6; }
 
22781
if test "${ac_cv_lib_tinyxml_main+set}" = set; then
 
22782
  $as_echo_n "(cached) " >&6
 
22783
else
 
22784
  ac_check_lib_save_LIBS=$LIBS
 
22785
LIBS="-ltinyxml  $LIBS"
 
22786
cat >conftest.$ac_ext <<_ACEOF
 
22787
/* confdefs.h.  */
 
22788
_ACEOF
 
22789
cat confdefs.h >>conftest.$ac_ext
 
22790
cat >>conftest.$ac_ext <<_ACEOF
 
22791
/* end confdefs.h.  */
 
22792
 
 
22793
 
 
22794
int
 
22795
main ()
 
22796
{
 
22797
return main ();
 
22798
  ;
 
22799
  return 0;
 
22800
}
 
22801
_ACEOF
 
22802
rm -f conftest.$ac_objext conftest$ac_exeext
 
22803
if { (ac_try="$ac_link"
 
22804
case "(($ac_try" in
 
22805
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22806
  *) ac_try_echo=$ac_try;;
 
22807
esac
 
22808
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22809
$as_echo "$ac_try_echo") >&5
 
22810
  (eval "$ac_link") 2>conftest.er1
 
22811
  ac_status=$?
 
22812
  grep -v '^ *+' conftest.er1 >conftest.err
 
22813
  rm -f conftest.er1
 
22814
  cat conftest.err >&5
 
22815
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22816
  (exit $ac_status); } && {
 
22817
         test -z "$ac_c_werror_flag" ||
 
22818
         test ! -s conftest.err
 
22819
       } && test -s conftest$ac_exeext && {
 
22820
         test "$cross_compiling" = yes ||
 
22821
         $as_test_x conftest$ac_exeext
 
22822
       }; then
 
22823
  ac_cv_lib_tinyxml_main=yes
 
22824
else
 
22825
  $as_echo "$as_me: failed program was:" >&5
 
22826
sed 's/^/| /' conftest.$ac_ext >&5
 
22827
 
 
22828
        ac_cv_lib_tinyxml_main=no
 
22829
fi
 
22830
 
 
22831
rm -rf conftest.dSYM
 
22832
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
22833
      conftest$ac_exeext conftest.$ac_ext
 
22834
LIBS=$ac_check_lib_save_LIBS
 
22835
fi
 
22836
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tinyxml_main" >&5
 
22837
$as_echo "$ac_cv_lib_tinyxml_main" >&6; }
 
22838
if test "x$ac_cv_lib_tinyxml_main" = x""yes; then
 
22839
 
 
22840
 
 
22841
cat >>confdefs.h <<\_ACEOF
 
22842
#define HAVE_LIBTINYXML 1
 
22843
_ACEOF
 
22844
 
 
22845
                LIBS="-ltinyxml $LIBS"
 
22846
                have_tinyxml=true
 
22847
 
 
22848
else
 
22849
 
 
22850
                have_tinyxml=false
 
22851
 
 
22852
 
 
22853
fi
 
22854
 
 
22855
 if test x$have_tinyxml = xtrue; then
 
22856
  HAVE_LIBTINYXML_TRUE=
 
22857
  HAVE_LIBTINYXML_FALSE='#'
 
22858
else
 
22859
  HAVE_LIBTINYXML_TRUE='#'
 
22860
  HAVE_LIBTINYXML_FALSE=
 
22861
fi
 
22862
 
 
22863
 
 
22864
# Check for C++ libraries:
 
22865
ac_ext=cpp
 
22866
ac_cpp='$CXXCPP $CPPFLAGS'
 
22867
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
22868
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
22869
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
22870
 
 
22871
 
 
22872
{ $as_echo "$as_me:$LINENO: result:
 
22873
 
 
22874
                **************************************
 
22875
                * Checking for C++ Libraries
 
22876
                **************************************
 
22877
 
 
22878
        " >&5
 
22879
$as_echo "
 
22880
 
 
22881
                **************************************
 
22882
                * Checking for C++ Libraries
 
22883
                **************************************
 
22884
 
 
22885
        " >&6; }
 
22886
#AC_CHECK_LIB(IL, ilInit,
 
22887
#       [
 
22888
#               CXXFLAGS="$CXXFLAGS $IL_CFLAGS"
 
22889
#               LIBS="$LIBS $IL_LIBS -lIL"
 
22890
#       ]
 
22891
#,AC_MSG_ERROR([
 
22892
#****************************************************************
 
22893
#* You do not have DevIL installed.  This is required to build. *
 
22894
#* You may find it at http://openil.sourceforge.net/.           *
 
22895
#****************************************************************]))
 
22896
#AC_CHECK_LIB(ILU, iluFlipImage,
 
22897
#       [
 
22898
#               CXXFLAGS="$CXXFLAGS $ILU_CFLAGS"
 
22899
#               LIBS="$LIBS $ILU_LIBS -lILU"
 
22900
#       ]
 
22901
#,AC_MSG_ERROR([
 
22902
#****************************************************************
 
22903
#* You do not have DevIL installed.  This is required to build. *
 
22904
#* You may find it at http://openil.sourceforge.net/.           *
 
22905
#****************************************************************]))
 
22906
 
 
22907
#AC_DEFINE(LIBSIGC_DISABLE_DEPRECATED, 1, [Don't use deprecated sigc methods.])
 
22908
 
 
22909
 
 
22910
if test "${ac_cv_header_ext_hash_set+set}" = set; then
 
22911
  { $as_echo "$as_me:$LINENO: checking for ext/hash_set" >&5
 
22912
$as_echo_n "checking for ext/hash_set... " >&6; }
 
22913
if test "${ac_cv_header_ext_hash_set+set}" = set; then
 
22914
  $as_echo_n "(cached) " >&6
 
22915
fi
 
22916
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_set" >&5
 
22917
$as_echo "$ac_cv_header_ext_hash_set" >&6; }
 
22918
else
 
22919
  # Is the header compilable?
 
22920
{ $as_echo "$as_me:$LINENO: checking ext/hash_set usability" >&5
 
22921
$as_echo_n "checking ext/hash_set usability... " >&6; }
 
22922
cat >conftest.$ac_ext <<_ACEOF
 
22923
/* confdefs.h.  */
 
22924
_ACEOF
 
22925
cat confdefs.h >>conftest.$ac_ext
 
22926
cat >>conftest.$ac_ext <<_ACEOF
 
22927
/* end confdefs.h.  */
 
22928
$ac_includes_default
 
22929
#include <ext/hash_set>
 
22930
_ACEOF
 
22931
rm -f conftest.$ac_objext
 
22932
if { (ac_try="$ac_compile"
 
22933
case "(($ac_try" in
 
22934
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22935
  *) ac_try_echo=$ac_try;;
 
22936
esac
 
22937
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22938
$as_echo "$ac_try_echo") >&5
 
22939
  (eval "$ac_compile") 2>conftest.er1
 
22940
  ac_status=$?
 
22941
  grep -v '^ *+' conftest.er1 >conftest.err
 
22942
  rm -f conftest.er1
 
22943
  cat conftest.err >&5
 
22944
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22945
  (exit $ac_status); } && {
 
22946
         test -z "$ac_cxx_werror_flag" ||
 
22947
         test ! -s conftest.err
 
22948
       } && test -s conftest.$ac_objext; then
 
22949
  ac_header_compiler=yes
 
22950
else
 
22951
  $as_echo "$as_me: failed program was:" >&5
 
22952
sed 's/^/| /' conftest.$ac_ext >&5
 
22953
 
 
22954
        ac_header_compiler=no
 
22955
fi
 
22956
 
 
22957
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22958
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
22959
$as_echo "$ac_header_compiler" >&6; }
 
22960
 
 
22961
# Is the header present?
 
22962
{ $as_echo "$as_me:$LINENO: checking ext/hash_set presence" >&5
 
22963
$as_echo_n "checking ext/hash_set presence... " >&6; }
 
22964
cat >conftest.$ac_ext <<_ACEOF
 
22965
/* confdefs.h.  */
 
22966
_ACEOF
 
22967
cat confdefs.h >>conftest.$ac_ext
 
22968
cat >>conftest.$ac_ext <<_ACEOF
 
22969
/* end confdefs.h.  */
 
22970
#include <ext/hash_set>
 
22971
_ACEOF
 
22972
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
22973
case "(($ac_try" in
 
22974
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22975
  *) ac_try_echo=$ac_try;;
 
22976
esac
 
22977
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
22978
$as_echo "$ac_try_echo") >&5
 
22979
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
22980
  ac_status=$?
 
22981
  grep -v '^ *+' conftest.er1 >conftest.err
 
22982
  rm -f conftest.er1
 
22983
  cat conftest.err >&5
 
22984
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22985
  (exit $ac_status); } >/dev/null && {
 
22986
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
22987
         test ! -s conftest.err
 
22988
       }; then
 
22989
  ac_header_preproc=yes
 
22990
else
 
22991
  $as_echo "$as_me: failed program was:" >&5
 
22992
sed 's/^/| /' conftest.$ac_ext >&5
 
22993
 
 
22994
  ac_header_preproc=no
 
22995
fi
 
22996
 
 
22997
rm -f conftest.err conftest.$ac_ext
 
22998
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
22999
$as_echo "$ac_header_preproc" >&6; }
 
23000
 
 
23001
# So?  What about this header?
 
23002
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
 
23003
  yes:no: )
 
23004
    { $as_echo "$as_me:$LINENO: WARNING: ext/hash_set: accepted by the compiler, rejected by the preprocessor!" >&5
 
23005
$as_echo "$as_me: WARNING: ext/hash_set: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
23006
    { $as_echo "$as_me:$LINENO: WARNING: ext/hash_set: proceeding with the compiler's result" >&5
 
23007
$as_echo "$as_me: WARNING: ext/hash_set: proceeding with the compiler's result" >&2;}
 
23008
    ac_header_preproc=yes
 
23009
    ;;
 
23010
  no:yes:* )
 
23011
    { $as_echo "$as_me:$LINENO: WARNING: ext/hash_set: present but cannot be compiled" >&5
 
23012
$as_echo "$as_me: WARNING: ext/hash_set: present but cannot be compiled" >&2;}
 
23013
    { $as_echo "$as_me:$LINENO: WARNING: ext/hash_set:     check for missing prerequisite headers?" >&5
 
23014
$as_echo "$as_me: WARNING: ext/hash_set:     check for missing prerequisite headers?" >&2;}
 
23015
    { $as_echo "$as_me:$LINENO: WARNING: ext/hash_set: see the Autoconf documentation" >&5
 
23016
$as_echo "$as_me: WARNING: ext/hash_set: see the Autoconf documentation" >&2;}
 
23017
    { $as_echo "$as_me:$LINENO: WARNING: ext/hash_set:     section \"Present But Cannot Be Compiled\"" >&5
 
23018
$as_echo "$as_me: WARNING: ext/hash_set:     section \"Present But Cannot Be Compiled\"" >&2;}
 
23019
    { $as_echo "$as_me:$LINENO: WARNING: ext/hash_set: proceeding with the preprocessor's result" >&5
 
23020
$as_echo "$as_me: WARNING: ext/hash_set: proceeding with the preprocessor's result" >&2;}
 
23021
    { $as_echo "$as_me:$LINENO: WARNING: ext/hash_set: in the future, the compiler will take precedence" >&5
 
23022
$as_echo "$as_me: WARNING: ext/hash_set: in the future, the compiler will take precedence" >&2;}
 
23023
    ( cat <<\_ASBOX
 
23024
## ------------------------------------- ##
 
23025
## Report this to clients@worldforge.org ##
 
23026
## ------------------------------------- ##
 
23027
_ASBOX
 
23028
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
23029
    ;;
 
23030
esac
 
23031
{ $as_echo "$as_me:$LINENO: checking for ext/hash_set" >&5
 
23032
$as_echo_n "checking for ext/hash_set... " >&6; }
 
23033
if test "${ac_cv_header_ext_hash_set+set}" = set; then
 
23034
  $as_echo_n "(cached) " >&6
 
23035
else
 
23036
  ac_cv_header_ext_hash_set=$ac_header_preproc
 
23037
fi
 
23038
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_set" >&5
 
23039
$as_echo "$ac_cv_header_ext_hash_set" >&6; }
 
23040
 
 
23041
fi
 
23042
if test "x$ac_cv_header_ext_hash_set" = x""yes; then
 
23043
 
 
23044
cat >>confdefs.h <<\_ACEOF
 
23045
#define EXT_HASH 1
 
23046
_ACEOF
 
23047
 
 
23048
fi
 
23049
 
 
23050
 
 
23051
 
 
23052
 
 
23053
 
 
23054
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 
23055
        if test -n "$ac_tool_prefix"; then
 
23056
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
 
23057
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
 
23058
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
23059
$as_echo_n "checking for $ac_word... " >&6; }
 
23060
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
 
23061
  $as_echo_n "(cached) " >&6
 
23062
else
 
23063
  case $PKG_CONFIG in
 
23064
  [\\/]* | ?:[\\/]*)
 
23065
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
23066
  ;;
 
23067
  *)
 
23068
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
23069
for as_dir in $PATH
 
23070
do
 
23071
  IFS=$as_save_IFS
 
23072
  test -z "$as_dir" && as_dir=.
 
23073
  for ac_exec_ext in '' $ac_executable_extensions; do
 
23074
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
23075
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
23076
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
23077
    break 2
 
23078
  fi
 
23079
done
 
23080
done
 
23081
IFS=$as_save_IFS
 
23082
 
 
23083
  ;;
 
23084
esac
 
23085
fi
 
23086
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
23087
if test -n "$PKG_CONFIG"; then
 
23088
  { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 
23089
$as_echo "$PKG_CONFIG" >&6; }
 
23090
else
 
23091
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
23092
$as_echo "no" >&6; }
 
23093
fi
 
23094
 
 
23095
 
 
23096
fi
 
23097
if test -z "$ac_cv_path_PKG_CONFIG"; then
 
23098
  ac_pt_PKG_CONFIG=$PKG_CONFIG
 
23099
  # Extract the first word of "pkg-config", so it can be a program name with args.
 
23100
set dummy pkg-config; ac_word=$2
 
23101
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
 
23102
$as_echo_n "checking for $ac_word... " >&6; }
 
23103
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
 
23104
  $as_echo_n "(cached) " >&6
 
23105
else
 
23106
  case $ac_pt_PKG_CONFIG in
 
23107
  [\\/]* | ?:[\\/]*)
 
23108
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
 
23109
  ;;
 
23110
  *)
 
23111
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
23112
for as_dir in $PATH
 
23113
do
 
23114
  IFS=$as_save_IFS
 
23115
  test -z "$as_dir" && as_dir=.
 
23116
  for ac_exec_ext in '' $ac_executable_extensions; do
 
23117
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
23118
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
23119
    $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
23120
    break 2
 
23121
  fi
 
23122
done
 
23123
done
 
23124
IFS=$as_save_IFS
 
23125
 
 
23126
  ;;
 
23127
esac
 
23128
fi
 
23129
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
 
23130
if test -n "$ac_pt_PKG_CONFIG"; then
 
23131
  { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
 
23132
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
 
23133
else
 
23134
  { $as_echo "$as_me:$LINENO: result: no" >&5
 
23135
$as_echo "no" >&6; }
 
23136
fi
 
23137
 
 
23138
  if test "x$ac_pt_PKG_CONFIG" = x; then
 
23139
    PKG_CONFIG=""
 
23140
  else
 
23141
    case $cross_compiling:$ac_tool_warned in
 
23142
yes:)
 
23143
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
 
23144
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
 
23145
ac_tool_warned=yes ;;
 
23146
esac
 
23147
    PKG_CONFIG=$ac_pt_PKG_CONFIG
 
23148
  fi
 
23149
else
 
23150
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
 
23151
fi
 
23152
 
 
23153
fi
 
23154
if test -n "$PKG_CONFIG"; then
 
23155
        _pkg_min_version=0.9.0
 
23156
        { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
 
23157
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
 
23158
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 
23159
                { $as_echo "$as_me:$LINENO: result: yes" >&5
 
23160
$as_echo "yes" >&6; }
 
23161
        else
 
23162
                { $as_echo "$as_me:$LINENO: result: no" >&5
 
23163
$as_echo "no" >&6; }
 
23164
                PKG_CONFIG=""
 
23165
        fi
 
23166
 
 
23167
fi
 
23168
 
 
23169
pkg_failed=no
 
23170
{ $as_echo "$as_me:$LINENO: checking for CEGUI" >&5
 
23171
$as_echo_n "checking for CEGUI... " >&6; }
 
23172
 
 
23173
if test -n "$CEGUI_CFLAGS"; then
 
23174
    pkg_cv_CEGUI_CFLAGS="$CEGUI_CFLAGS"
 
23175
 elif test -n "$PKG_CONFIG"; then
 
23176
    if test -n "$PKG_CONFIG" && \
 
23177
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"CEGUI >= 0.6.2\"") >&5
 
23178
  ($PKG_CONFIG --exists --print-errors "CEGUI >= 0.6.2") 2>&5
 
23179
  ac_status=$?
 
23180
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23181
  (exit $ac_status); }; then
 
23182
  pkg_cv_CEGUI_CFLAGS=`$PKG_CONFIG --cflags "CEGUI >= 0.6.2" 2>/dev/null`
 
23183
else
 
23184
  pkg_failed=yes
 
23185
fi
 
23186
 else
 
23187
    pkg_failed=untried
 
23188
fi
 
23189
if test -n "$CEGUI_LIBS"; then
 
23190
    pkg_cv_CEGUI_LIBS="$CEGUI_LIBS"
 
23191
 elif test -n "$PKG_CONFIG"; then
 
23192
    if test -n "$PKG_CONFIG" && \
 
23193
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"CEGUI >= 0.6.2\"") >&5
 
23194
  ($PKG_CONFIG --exists --print-errors "CEGUI >= 0.6.2") 2>&5
 
23195
  ac_status=$?
 
23196
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23197
  (exit $ac_status); }; then
 
23198
  pkg_cv_CEGUI_LIBS=`$PKG_CONFIG --libs "CEGUI >= 0.6.2" 2>/dev/null`
 
23199
else
 
23200
  pkg_failed=yes
 
23201
fi
 
23202
 else
 
23203
    pkg_failed=untried
 
23204
fi
 
23205
 
 
23206
 
 
23207
 
 
23208
if test $pkg_failed = yes; then
 
23209
 
 
23210
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
23211
        _pkg_short_errors_supported=yes
 
23212
else
 
23213
        _pkg_short_errors_supported=no
 
23214
fi
 
23215
        if test $_pkg_short_errors_supported = yes; then
 
23216
                CEGUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "CEGUI >= 0.6.2" 2>&1`
 
23217
        else
 
23218
                CEGUI_PKG_ERRORS=`$PKG_CONFIG --print-errors "CEGUI >= 0.6.2" 2>&1`
 
23219
        fi
 
23220
        # Put the nasty error message in config.log where it belongs
 
23221
        echo "$CEGUI_PKG_ERRORS" >&5
 
23222
 
 
23223
        { $as_echo "$as_me:$LINENO: result: no" >&5
 
23224
$as_echo "no" >&6; }
 
23225
 
 
23226
                { { $as_echo "$as_me:$LINENO: error: Couldn't find CEGUI-OGRE or tests failed:
 
23227
$CEGUI_PKG_ERRORS
 
23228
Please go to http://crayzedsgui.sourceforge.net to get the latest, or check
 
23229
config.log to see why the tests failed, and fix it." >&5
 
23230
$as_echo "$as_me: error: Couldn't find CEGUI-OGRE or tests failed:
 
23231
$CEGUI_PKG_ERRORS
 
23232
Please go to http://crayzedsgui.sourceforge.net to get the latest, or check
 
23233
config.log to see why the tests failed, and fix it." >&2;}
 
23234
   { (exit 1); exit 1; }; }
 
23235
 
 
23236
elif test $pkg_failed = untried; then
 
23237
 
 
23238
                { { $as_echo "$as_me:$LINENO: error: Couldn't find CEGUI-OGRE or tests failed:
 
23239
$CEGUI_PKG_ERRORS
 
23240
Please go to http://crayzedsgui.sourceforge.net to get the latest, or check
 
23241
config.log to see why the tests failed, and fix it." >&5
 
23242
$as_echo "$as_me: error: Couldn't find CEGUI-OGRE or tests failed:
 
23243
$CEGUI_PKG_ERRORS
 
23244
Please go to http://crayzedsgui.sourceforge.net to get the latest, or check
 
23245
config.log to see why the tests failed, and fix it." >&2;}
 
23246
   { (exit 1); exit 1; }; }
 
23247
 
 
23248
else
 
23249
        CEGUI_CFLAGS=$pkg_cv_CEGUI_CFLAGS
 
23250
        CEGUI_LIBS=$pkg_cv_CEGUI_LIBS
 
23251
        { $as_echo "$as_me:$LINENO: result: yes" >&5
 
23252
$as_echo "yes" >&6; }
 
23253
 
 
23254
                CXXFLAGS="$CXXFLAGS $CEGUI_CFLAGS"
 
23255
                LIBS="$LIBS $CEGUI_LIBS"
 
23256
 
 
23257
fi
 
23258
 
 
23259
# Check for OGRE
 
23260
OGRE_VERSION=1.6.0
 
23261
OGRE_MAX_VERSION=1.8.0
 
23262
 
 
23263
pkg_failed=no
 
23264
{ $as_echo "$as_me:$LINENO: checking for OGRE" >&5
 
23265
$as_echo_n "checking for OGRE... " >&6; }
 
23266
 
 
23267
if test -n "$OGRE_CFLAGS"; then
 
23268
    pkg_cv_OGRE_CFLAGS="$OGRE_CFLAGS"
 
23269
 elif test -n "$PKG_CONFIG"; then
 
23270
    if test -n "$PKG_CONFIG" && \
 
23271
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"OGRE >= \$OGRE_VERSION OGRE < \$OGRE_MAX_VERSION CEGUI-OGRE >= \$OGRE_VERSION\"") >&5
 
23272
  ($PKG_CONFIG --exists --print-errors "OGRE >= $OGRE_VERSION OGRE < $OGRE_MAX_VERSION CEGUI-OGRE >= $OGRE_VERSION") 2>&5
 
23273
  ac_status=$?
 
23274
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23275
  (exit $ac_status); }; then
 
23276
  pkg_cv_OGRE_CFLAGS=`$PKG_CONFIG --cflags "OGRE >= $OGRE_VERSION OGRE < $OGRE_MAX_VERSION CEGUI-OGRE >= $OGRE_VERSION" 2>/dev/null`
 
23277
else
 
23278
  pkg_failed=yes
 
23279
fi
 
23280
 else
 
23281
    pkg_failed=untried
 
23282
fi
 
23283
if test -n "$OGRE_LIBS"; then
 
23284
    pkg_cv_OGRE_LIBS="$OGRE_LIBS"
 
23285
 elif test -n "$PKG_CONFIG"; then
 
23286
    if test -n "$PKG_CONFIG" && \
 
23287
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"OGRE >= \$OGRE_VERSION OGRE < \$OGRE_MAX_VERSION CEGUI-OGRE >= \$OGRE_VERSION\"") >&5
 
23288
  ($PKG_CONFIG --exists --print-errors "OGRE >= $OGRE_VERSION OGRE < $OGRE_MAX_VERSION CEGUI-OGRE >= $OGRE_VERSION") 2>&5
 
23289
  ac_status=$?
 
23290
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23291
  (exit $ac_status); }; then
 
23292
  pkg_cv_OGRE_LIBS=`$PKG_CONFIG --libs "OGRE >= $OGRE_VERSION OGRE < $OGRE_MAX_VERSION CEGUI-OGRE >= $OGRE_VERSION" 2>/dev/null`
 
23293
else
 
23294
  pkg_failed=yes
 
23295
fi
 
23296
 else
 
23297
    pkg_failed=untried
 
23298
fi
 
23299
 
 
23300
 
 
23301
 
 
23302
if test $pkg_failed = yes; then
 
23303
 
 
23304
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
23305
        _pkg_short_errors_supported=yes
 
23306
else
 
23307
        _pkg_short_errors_supported=no
 
23308
fi
 
23309
        if test $_pkg_short_errors_supported = yes; then
 
23310
                OGRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OGRE >= $OGRE_VERSION OGRE < $OGRE_MAX_VERSION CEGUI-OGRE >= $OGRE_VERSION" 2>&1`
 
23311
        else
 
23312
                OGRE_PKG_ERRORS=`$PKG_CONFIG --print-errors "OGRE >= $OGRE_VERSION OGRE < $OGRE_MAX_VERSION CEGUI-OGRE >= $OGRE_VERSION" 2>&1`
 
23313
        fi
 
23314
        # Put the nasty error message in config.log where it belongs
 
23315
        echo "$OGRE_PKG_ERRORS" >&5
 
23316
 
 
23317
        { $as_echo "$as_me:$LINENO: result: no" >&5
 
23318
$as_echo "no" >&6; }
 
23319
 
 
23320
                { { $as_echo "$as_me:$LINENO: error: Couldn't find OGRE or tests failed:
 
23321
$OGRE_PKG_ERRORS
 
23322
Please goto http://www.ogre3d.org to get the latest, or check config.log to
 
23323
see why the tests failed, and fix it." >&5
 
23324
$as_echo "$as_me: error: Couldn't find OGRE or tests failed:
 
23325
$OGRE_PKG_ERRORS
 
23326
Please goto http://www.ogre3d.org to get the latest, or check config.log to
 
23327
see why the tests failed, and fix it." >&2;}
 
23328
   { (exit 1); exit 1; }; }
 
23329
 
 
23330
elif test $pkg_failed = untried; then
 
23331
 
 
23332
                { { $as_echo "$as_me:$LINENO: error: Couldn't find OGRE or tests failed:
 
23333
$OGRE_PKG_ERRORS
 
23334
Please goto http://www.ogre3d.org to get the latest, or check config.log to
 
23335
see why the tests failed, and fix it." >&5
 
23336
$as_echo "$as_me: error: Couldn't find OGRE or tests failed:
 
23337
$OGRE_PKG_ERRORS
 
23338
Please goto http://www.ogre3d.org to get the latest, or check config.log to
 
23339
see why the tests failed, and fix it." >&2;}
 
23340
   { (exit 1); exit 1; }; }
 
23341
 
 
23342
else
 
23343
        OGRE_CFLAGS=$pkg_cv_OGRE_CFLAGS
 
23344
        OGRE_LIBS=$pkg_cv_OGRE_LIBS
 
23345
        { $as_echo "$as_me:$LINENO: result: yes" >&5
 
23346
$as_echo "yes" >&6; }
 
23347
 
 
23348
                CXXFLAGS="$CXXFLAGS $OGRE_CFLAGS"
 
23349
                LIBS="$LIBS $OGRE_LIBS"
 
23350
 
 
23351
cat >>confdefs.h <<_ACEOF
 
23352
#define OGRE_PLUGINDIR "`pkg-config --variable=plugindir OGRE`"
 
23353
_ACEOF
 
23354
 
 
23355
 
 
23356
fi
 
23357
 
 
23358
if test "$freeimage_check" = "true"; then
 
23359
        { $as_echo "$as_me:$LINENO: checking whether OGRE_NO_FREEIMAGE
 
23360
         is declared" >&5
 
23361
$as_echo_n "checking whether OGRE_NO_FREEIMAGE
 
23362
         is declared... " >&6; }
 
23363
if test "${ac_cv_have_decl_OGRE_NO_FREEIMAGE__+set}" = set; then
 
23364
  $as_echo_n "(cached) " >&6
 
23365
else
 
23366
  cat >conftest.$ac_ext <<_ACEOF
 
23367
/* confdefs.h.  */
 
23368
_ACEOF
 
23369
cat confdefs.h >>conftest.$ac_ext
 
23370
cat >>conftest.$ac_ext <<_ACEOF
 
23371
/* end confdefs.h.  */
 
23372
$ac_includes_default
 
23373
int
 
23374
main ()
 
23375
{
 
23376
#ifndef OGRE_NO_FREEIMAGE
 
23377
 
 
23378
  (void) OGRE_NO_FREEIMAGE
 
23379
        ;
 
23380
#endif
 
23381
 
 
23382
  ;
 
23383
  return 0;
 
23384
}
 
23385
_ACEOF
 
23386
rm -f conftest.$ac_objext
 
23387
if { (ac_try="$ac_compile"
 
23388
case "(($ac_try" in
 
23389
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23390
  *) ac_try_echo=$ac_try;;
 
23391
esac
 
23392
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
23393
$as_echo "$ac_try_echo") >&5
 
23394
  (eval "$ac_compile") 2>conftest.er1
 
23395
  ac_status=$?
 
23396
  grep -v '^ *+' conftest.er1 >conftest.err
 
23397
  rm -f conftest.er1
 
23398
  cat conftest.err >&5
 
23399
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23400
  (exit $ac_status); } && {
 
23401
         test -z "$ac_cxx_werror_flag" ||
 
23402
         test ! -s conftest.err
 
23403
       } && test -s conftest.$ac_objext; then
 
23404
  ac_cv_have_decl_OGRE_NO_FREEIMAGE__=yes
 
23405
else
 
23406
  $as_echo "$as_me: failed program was:" >&5
 
23407
sed 's/^/| /' conftest.$ac_ext >&5
 
23408
 
 
23409
        ac_cv_have_decl_OGRE_NO_FREEIMAGE__=no
 
23410
fi
 
23411
 
 
23412
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
23413
fi
 
23414
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_OGRE_NO_FREEIMAGE__" >&5
 
23415
$as_echo "$ac_cv_have_decl_OGRE_NO_FREEIMAGE__" >&6; }
 
23416
if test "x$ac_cv_have_decl_OGRE_NO_FREEIMAGE__" = x""yes; then
 
23417
 
 
23418
cat >>confdefs.h <<_ACEOF
 
23419
#define HAVE_DECL_OGRE_NO_FREEIMAGE__ 1
 
23420
_ACEOF
 
23421
 
 
23422
 
 
23423
else
 
23424
  cat >>confdefs.h <<_ACEOF
 
23425
#define HAVE_DECL_OGRE_NO_FREEIMAGE__ 0
 
23426
_ACEOF
 
23427
 
 
23428
{ $as_echo "$as_me:$LINENO: You've compiled Ogre with FreeImage support. Due to the way old versions of FreeImage includes its own versions of common image libraries such as libpng this could clash with other system libs such as DevIL, leading to random crashes. If you have old version of FreeImage, please compile Ogre with FreeImage disabled (by using the --disable-freeimage configure switch). Ogre will then use DevIL instead." >&5
 
23429
$as_echo "$as_me: You've compiled Ogre with FreeImage support. Due to the way old versions of FreeImage includes its own versions of common image libraries such as libpng this could clash with other system libs such as DevIL, leading to random crashes. If you have old version of FreeImage, please compile Ogre with FreeImage disabled (by using the --disable-freeimage configure switch). Ogre will then use DevIL instead." >&6;}
 
23430
 
 
23431
fi
 
23432
 
 
23433
 
 
23434
else
 
23435
        { $as_echo "$as_me:$LINENO: result: ********
 
23436
You've chosen to disable the FreeImage tests. Proceed on your own risk.
 
23437
********" >&5
 
23438
$as_echo "********
 
23439
You've chosen to disable the FreeImage tests. Proceed on your own risk.
 
23440
********" >&6; }
 
23441
fi
 
23442
 
 
23443
 
 
23444
 
 
23445
#check for lua
 
23446
 
 
23447
pkg_failed=no
 
23448
{ $as_echo "$as_me:$LINENO: checking for LUA" >&5
 
23449
$as_echo_n "checking for LUA... " >&6; }
 
23450
 
 
23451
if test -n "$LUA_CFLAGS"; then
 
23452
    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
 
23453
 elif test -n "$PKG_CONFIG"; then
 
23454
    if test -n "$PKG_CONFIG" && \
 
23455
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\"") >&5
 
23456
  ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
 
23457
  ac_status=$?
 
23458
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23459
  (exit $ac_status); }; then
 
23460
  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1 >= 5.1" 2>/dev/null`
 
23461
else
 
23462
  pkg_failed=yes
 
23463
fi
 
23464
 else
 
23465
    pkg_failed=untried
 
23466
fi
 
23467
if test -n "$LUA_LIBS"; then
 
23468
    pkg_cv_LUA_LIBS="$LUA_LIBS"
 
23469
 elif test -n "$PKG_CONFIG"; then
 
23470
    if test -n "$PKG_CONFIG" && \
 
23471
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"lua5.1 >= 5.1\"") >&5
 
23472
  ($PKG_CONFIG --exists --print-errors "lua5.1 >= 5.1") 2>&5
 
23473
  ac_status=$?
 
23474
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23475
  (exit $ac_status); }; then
 
23476
  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1 >= 5.1" 2>/dev/null`
 
23477
else
 
23478
  pkg_failed=yes
 
23479
fi
 
23480
 else
 
23481
    pkg_failed=untried
 
23482
fi
 
23483
 
 
23484
 
 
23485
 
 
23486
if test $pkg_failed = yes; then
 
23487
 
 
23488
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
23489
        _pkg_short_errors_supported=yes
 
23490
else
 
23491
        _pkg_short_errors_supported=no
 
23492
fi
 
23493
        if test $_pkg_short_errors_supported = yes; then
 
23494
                LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua5.1 >= 5.1" 2>&1`
 
23495
        else
 
23496
                LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua5.1 >= 5.1" 2>&1`
 
23497
        fi
 
23498
        # Put the nasty error message in config.log where it belongs
 
23499
        echo "$LUA_PKG_ERRORS" >&5
 
23500
 
 
23501
        { $as_echo "$as_me:$LINENO: result: no" >&5
 
23502
$as_echo "no" >&6; }
 
23503
 
 
23504
 
 
23505
pkg_failed=no
 
23506
{ $as_echo "$as_me:$LINENO: checking for LUA" >&5
 
23507
$as_echo_n "checking for LUA... " >&6; }
 
23508
 
 
23509
if test -n "$LUA_CFLAGS"; then
 
23510
    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
 
23511
 elif test -n "$PKG_CONFIG"; then
 
23512
    if test -n "$PKG_CONFIG" && \
 
23513
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\"") >&5
 
23514
  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
 
23515
  ac_status=$?
 
23516
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23517
  (exit $ac_status); }; then
 
23518
  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
 
23519
else
 
23520
  pkg_failed=yes
 
23521
fi
 
23522
 else
 
23523
    pkg_failed=untried
 
23524
fi
 
23525
if test -n "$LUA_LIBS"; then
 
23526
    pkg_cv_LUA_LIBS="$LUA_LIBS"
 
23527
 elif test -n "$PKG_CONFIG"; then
 
23528
    if test -n "$PKG_CONFIG" && \
 
23529
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\"") >&5
 
23530
  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
 
23531
  ac_status=$?
 
23532
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23533
  (exit $ac_status); }; then
 
23534
  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
 
23535
else
 
23536
  pkg_failed=yes
 
23537
fi
 
23538
 else
 
23539
    pkg_failed=untried
 
23540
fi
 
23541
 
 
23542
 
 
23543
 
 
23544
if test $pkg_failed = yes; then
 
23545
 
 
23546
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
23547
        _pkg_short_errors_supported=yes
 
23548
else
 
23549
        _pkg_short_errors_supported=no
 
23550
fi
 
23551
        if test $_pkg_short_errors_supported = yes; then
 
23552
                LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua >= 5.1" 2>&1`
 
23553
        else
 
23554
                LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua >= 5.1" 2>&1`
 
23555
        fi
 
23556
        # Put the nasty error message in config.log where it belongs
 
23557
        echo "$LUA_PKG_ERRORS" >&5
 
23558
 
 
23559
        { $as_echo "$as_me:$LINENO: result: no" >&5
 
23560
$as_echo "no" >&6; }
 
23561
 
 
23562
                { { $as_echo "$as_me:$LINENO: error: Couldn't find Lua or tests failed. Error: $LUA_PKG_ERRORS. Please go to http://www.lua.org to get the latest, or check config.log to see why the tests failed, and fix it. Also make sure that CEGUI is built with Lua support." >&5
 
23563
$as_echo "$as_me: error: Couldn't find Lua or tests failed. Error: $LUA_PKG_ERRORS. Please go to http://www.lua.org to get the latest, or check config.log to see why the tests failed, and fix it. Also make sure that CEGUI is built with Lua support." >&2;}
 
23564
   { (exit 1); exit 1; }; }
 
23565
 
 
23566
elif test $pkg_failed = untried; then
 
23567
 
 
23568
                { { $as_echo "$as_me:$LINENO: error: Couldn't find Lua or tests failed. Error: $LUA_PKG_ERRORS. Please go to http://www.lua.org to get the latest, or check config.log to see why the tests failed, and fix it. Also make sure that CEGUI is built with Lua support." >&5
 
23569
$as_echo "$as_me: error: Couldn't find Lua or tests failed. Error: $LUA_PKG_ERRORS. Please go to http://www.lua.org to get the latest, or check config.log to see why the tests failed, and fix it. Also make sure that CEGUI is built with Lua support." >&2;}
 
23570
   { (exit 1); exit 1; }; }
 
23571
 
 
23572
else
 
23573
        LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
 
23574
        LUA_LIBS=$pkg_cv_LUA_LIBS
 
23575
        { $as_echo "$as_me:$LINENO: result: yes" >&5
 
23576
$as_echo "yes" >&6; }
 
23577
 
 
23578
                CXXFLAGS="$CXXFLAGS $LUA_CFLAGS -DLUA51"
 
23579
                LIBS="$LIBS $LUA_LIBS"
 
23580
                { $as_echo "$as_me:$LINENO: Lua version => 5.1, make sure that CEGUI also has been compiled for this version" >&5
 
23581
$as_echo "$as_me: Lua version => 5.1, make sure that CEGUI also has been compiled for this version" >&6;}
 
23582
 
 
23583
fi
 
23584
 
 
23585
elif test $pkg_failed = untried; then
 
23586
 
 
23587
 
 
23588
pkg_failed=no
 
23589
{ $as_echo "$as_me:$LINENO: checking for LUA" >&5
 
23590
$as_echo_n "checking for LUA... " >&6; }
 
23591
 
 
23592
if test -n "$LUA_CFLAGS"; then
 
23593
    pkg_cv_LUA_CFLAGS="$LUA_CFLAGS"
 
23594
 elif test -n "$PKG_CONFIG"; then
 
23595
    if test -n "$PKG_CONFIG" && \
 
23596
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\"") >&5
 
23597
  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
 
23598
  ac_status=$?
 
23599
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23600
  (exit $ac_status); }; then
 
23601
  pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua >= 5.1" 2>/dev/null`
 
23602
else
 
23603
  pkg_failed=yes
 
23604
fi
 
23605
 else
 
23606
    pkg_failed=untried
 
23607
fi
 
23608
if test -n "$LUA_LIBS"; then
 
23609
    pkg_cv_LUA_LIBS="$LUA_LIBS"
 
23610
 elif test -n "$PKG_CONFIG"; then
 
23611
    if test -n "$PKG_CONFIG" && \
 
23612
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"lua >= 5.1\"") >&5
 
23613
  ($PKG_CONFIG --exists --print-errors "lua >= 5.1") 2>&5
 
23614
  ac_status=$?
 
23615
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23616
  (exit $ac_status); }; then
 
23617
  pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua >= 5.1" 2>/dev/null`
 
23618
else
 
23619
  pkg_failed=yes
 
23620
fi
 
23621
 else
 
23622
    pkg_failed=untried
 
23623
fi
 
23624
 
 
23625
 
 
23626
 
 
23627
if test $pkg_failed = yes; then
 
23628
 
 
23629
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
23630
        _pkg_short_errors_supported=yes
 
23631
else
 
23632
        _pkg_short_errors_supported=no
 
23633
fi
 
23634
        if test $_pkg_short_errors_supported = yes; then
 
23635
                LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lua >= 5.1" 2>&1`
 
23636
        else
 
23637
                LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors "lua >= 5.1" 2>&1`
 
23638
        fi
 
23639
        # Put the nasty error message in config.log where it belongs
 
23640
        echo "$LUA_PKG_ERRORS" >&5
 
23641
 
 
23642
        { $as_echo "$as_me:$LINENO: result: no" >&5
 
23643
$as_echo "no" >&6; }
 
23644
 
 
23645
                { { $as_echo "$as_me:$LINENO: error: Couldn't find Lua or tests failed. Error: $LUA_PKG_ERRORS. Please go to http://www.lua.org to get the latest, or check config.log to see why the tests failed, and fix it. Also make sure that CEGUI is built with Lua support." >&5
 
23646
$as_echo "$as_me: error: Couldn't find Lua or tests failed. Error: $LUA_PKG_ERRORS. Please go to http://www.lua.org to get the latest, or check config.log to see why the tests failed, and fix it. Also make sure that CEGUI is built with Lua support." >&2;}
 
23647
   { (exit 1); exit 1; }; }
 
23648
 
 
23649
elif test $pkg_failed = untried; then
 
23650
 
 
23651
                { { $as_echo "$as_me:$LINENO: error: Couldn't find Lua or tests failed. Error: $LUA_PKG_ERRORS. Please go to http://www.lua.org to get the latest, or check config.log to see why the tests failed, and fix it. Also make sure that CEGUI is built with Lua support." >&5
 
23652
$as_echo "$as_me: error: Couldn't find Lua or tests failed. Error: $LUA_PKG_ERRORS. Please go to http://www.lua.org to get the latest, or check config.log to see why the tests failed, and fix it. Also make sure that CEGUI is built with Lua support." >&2;}
 
23653
   { (exit 1); exit 1; }; }
 
23654
 
 
23655
else
 
23656
        LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
 
23657
        LUA_LIBS=$pkg_cv_LUA_LIBS
 
23658
        { $as_echo "$as_me:$LINENO: result: yes" >&5
 
23659
$as_echo "yes" >&6; }
 
23660
 
 
23661
                CXXFLAGS="$CXXFLAGS $LUA_CFLAGS -DLUA51"
 
23662
                LIBS="$LIBS $LUA_LIBS"
 
23663
                { $as_echo "$as_me:$LINENO: Lua version => 5.1, make sure that CEGUI also has been compiled for this version" >&5
 
23664
$as_echo "$as_me: Lua version => 5.1, make sure that CEGUI also has been compiled for this version" >&6;}
 
23665
 
 
23666
fi
 
23667
 
 
23668
else
 
23669
        LUA_CFLAGS=$pkg_cv_LUA_CFLAGS
 
23670
        LUA_LIBS=$pkg_cv_LUA_LIBS
 
23671
        { $as_echo "$as_me:$LINENO: result: yes" >&5
 
23672
$as_echo "yes" >&6; }
 
23673
 
 
23674
        CXXFLAGS="$CXXFLAGS $LUA_CFLAGS -DLUA51"
 
23675
        LIBS="$LIBS $LUA_LIBS"
 
23676
        { $as_echo "$as_me:$LINENO: Lua version => 5.1, make sure that CEGUI also has been compiled for this version" >&5
 
23677
$as_echo "$as_me: Lua version => 5.1, make sure that CEGUI also has been compiled for this version" >&6;}
 
23678
 
 
23679
fi
 
23680
 
 
23681
# Check for tolua++
 
23682
{ $as_echo "$as_me:$LINENO: checking for main in -lCEGUItoluapp" >&5
 
23683
$as_echo_n "checking for main in -lCEGUItoluapp... " >&6; }
 
23684
if test "${ac_cv_lib_CEGUItoluapp_main+set}" = set; then
 
23685
  $as_echo_n "(cached) " >&6
 
23686
else
 
23687
  ac_check_lib_save_LIBS=$LIBS
 
23688
LIBS="-lCEGUItoluapp  $LIBS"
 
23689
cat >conftest.$ac_ext <<_ACEOF
 
23690
/* confdefs.h.  */
 
23691
_ACEOF
 
23692
cat confdefs.h >>conftest.$ac_ext
 
23693
cat >>conftest.$ac_ext <<_ACEOF
 
23694
/* end confdefs.h.  */
 
23695
 
 
23696
 
 
23697
int
 
23698
main ()
 
23699
{
 
23700
return main ();
 
23701
  ;
 
23702
  return 0;
 
23703
}
 
23704
_ACEOF
 
23705
rm -f conftest.$ac_objext conftest$ac_exeext
 
23706
if { (ac_try="$ac_link"
 
23707
case "(($ac_try" in
 
23708
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23709
  *) ac_try_echo=$ac_try;;
 
23710
esac
 
23711
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
23712
$as_echo "$ac_try_echo") >&5
 
23713
  (eval "$ac_link") 2>conftest.er1
 
23714
  ac_status=$?
 
23715
  grep -v '^ *+' conftest.er1 >conftest.err
 
23716
  rm -f conftest.er1
 
23717
  cat conftest.err >&5
 
23718
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23719
  (exit $ac_status); } && {
 
23720
         test -z "$ac_cxx_werror_flag" ||
 
23721
         test ! -s conftest.err
 
23722
       } && test -s conftest$ac_exeext && {
 
23723
         test "$cross_compiling" = yes ||
 
23724
         $as_test_x conftest$ac_exeext
 
23725
       }; then
 
23726
  ac_cv_lib_CEGUItoluapp_main=yes
 
23727
else
 
23728
  $as_echo "$as_me: failed program was:" >&5
 
23729
sed 's/^/| /' conftest.$ac_ext >&5
 
23730
 
 
23731
        ac_cv_lib_CEGUItoluapp_main=no
 
23732
fi
 
23733
 
 
23734
rm -rf conftest.dSYM
 
23735
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
23736
      conftest$ac_exeext conftest.$ac_ext
 
23737
LIBS=$ac_check_lib_save_LIBS
 
23738
fi
 
23739
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_CEGUItoluapp_main" >&5
 
23740
$as_echo "$ac_cv_lib_CEGUItoluapp_main" >&6; }
 
23741
if test "x$ac_cv_lib_CEGUItoluapp_main" = x""yes; then
 
23742
 
 
23743
        LIBS="-lCEGUItoluapp $LIBS"
 
23744
 
 
23745
else
 
23746
 
 
23747
        { $as_echo "$as_me:$LINENO: checking for main in -ltolua++" >&5
 
23748
$as_echo_n "checking for main in -ltolua++... " >&6; }
 
23749
if test "${ac_cv_lib_toluapp_main+set}" = set; then
 
23750
  $as_echo_n "(cached) " >&6
 
23751
else
 
23752
  ac_check_lib_save_LIBS=$LIBS
 
23753
LIBS="-ltolua++  $LIBS"
 
23754
cat >conftest.$ac_ext <<_ACEOF
 
23755
/* confdefs.h.  */
 
23756
_ACEOF
 
23757
cat confdefs.h >>conftest.$ac_ext
 
23758
cat >>conftest.$ac_ext <<_ACEOF
 
23759
/* end confdefs.h.  */
 
23760
 
 
23761
 
 
23762
int
 
23763
main ()
 
23764
{
 
23765
return main ();
 
23766
  ;
 
23767
  return 0;
 
23768
}
 
23769
_ACEOF
 
23770
rm -f conftest.$ac_objext conftest$ac_exeext
 
23771
if { (ac_try="$ac_link"
 
23772
case "(($ac_try" in
 
23773
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23774
  *) ac_try_echo=$ac_try;;
 
23775
esac
 
23776
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
23777
$as_echo "$ac_try_echo") >&5
 
23778
  (eval "$ac_link") 2>conftest.er1
 
23779
  ac_status=$?
 
23780
  grep -v '^ *+' conftest.er1 >conftest.err
 
23781
  rm -f conftest.er1
 
23782
  cat conftest.err >&5
 
23783
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23784
  (exit $ac_status); } && {
 
23785
         test -z "$ac_cxx_werror_flag" ||
 
23786
         test ! -s conftest.err
 
23787
       } && test -s conftest$ac_exeext && {
 
23788
         test "$cross_compiling" = yes ||
 
23789
         $as_test_x conftest$ac_exeext
 
23790
       }; then
 
23791
  ac_cv_lib_toluapp_main=yes
 
23792
else
 
23793
  $as_echo "$as_me: failed program was:" >&5
 
23794
sed 's/^/| /' conftest.$ac_ext >&5
 
23795
 
 
23796
        ac_cv_lib_toluapp_main=no
 
23797
fi
 
23798
 
 
23799
rm -rf conftest.dSYM
 
23800
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
23801
      conftest$ac_exeext conftest.$ac_ext
 
23802
LIBS=$ac_check_lib_save_LIBS
 
23803
fi
 
23804
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_toluapp_main" >&5
 
23805
$as_echo "$ac_cv_lib_toluapp_main" >&6; }
 
23806
if test "x$ac_cv_lib_toluapp_main" = x""yes; then
 
23807
 
 
23808
                LIBS="-ltolua++ $LIBS"
 
23809
 
 
23810
else
 
23811
 
 
23812
                { { $as_echo "$as_me:$LINENO: error: Couldn't find tolua++. Make sure that CEGUI compiled with Lua scripting support." >&5
 
23813
$as_echo "$as_me: error: Couldn't find tolua++. Make sure that CEGUI compiled with Lua scripting support." >&2;}
 
23814
   { (exit 1); exit 1; }; }
 
23815
 
 
23816
 
 
23817
fi
 
23818
 
 
23819
 
 
23820
 
 
23821
fi
 
23822
 
 
23823
 
 
23824
# We have lua and tolua++. Now, check for CEGUI lua module
 
23825
{ $as_echo "$as_me:$LINENO: checking for main in -lCEGUILuaScriptModule" >&5
 
23826
$as_echo_n "checking for main in -lCEGUILuaScriptModule... " >&6; }
 
23827
if test "${ac_cv_lib_CEGUILuaScriptModule_main+set}" = set; then
 
23828
  $as_echo_n "(cached) " >&6
 
23829
else
 
23830
  ac_check_lib_save_LIBS=$LIBS
 
23831
LIBS="-lCEGUILuaScriptModule  $LIBS"
 
23832
cat >conftest.$ac_ext <<_ACEOF
 
23833
/* confdefs.h.  */
 
23834
_ACEOF
 
23835
cat confdefs.h >>conftest.$ac_ext
 
23836
cat >>conftest.$ac_ext <<_ACEOF
 
23837
/* end confdefs.h.  */
 
23838
 
 
23839
 
 
23840
int
 
23841
main ()
 
23842
{
 
23843
return main ();
 
23844
  ;
 
23845
  return 0;
 
23846
}
 
23847
_ACEOF
 
23848
rm -f conftest.$ac_objext conftest$ac_exeext
 
23849
if { (ac_try="$ac_link"
 
23850
case "(($ac_try" in
 
23851
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23852
  *) ac_try_echo=$ac_try;;
 
23853
esac
 
23854
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
 
23855
$as_echo "$ac_try_echo") >&5
 
23856
  (eval "$ac_link") 2>conftest.er1
 
23857
  ac_status=$?
 
23858
  grep -v '^ *+' conftest.er1 >conftest.err
 
23859
  rm -f conftest.er1
 
23860
  cat conftest.err >&5
 
23861
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23862
  (exit $ac_status); } && {
 
23863
         test -z "$ac_cxx_werror_flag" ||
 
23864
         test ! -s conftest.err
 
23865
       } && test -s conftest$ac_exeext && {
 
23866
         test "$cross_compiling" = yes ||
 
23867
         $as_test_x conftest$ac_exeext
 
23868
       }; then
 
23869
  ac_cv_lib_CEGUILuaScriptModule_main=yes
 
23870
else
 
23871
  $as_echo "$as_me: failed program was:" >&5
 
23872
sed 's/^/| /' conftest.$ac_ext >&5
 
23873
 
 
23874
        ac_cv_lib_CEGUILuaScriptModule_main=no
 
23875
fi
 
23876
 
 
23877
rm -rf conftest.dSYM
 
23878
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
23879
      conftest$ac_exeext conftest.$ac_ext
 
23880
LIBS=$ac_check_lib_save_LIBS
 
23881
fi
 
23882
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_CEGUILuaScriptModule_main" >&5
 
23883
$as_echo "$ac_cv_lib_CEGUILuaScriptModule_main" >&6; }
 
23884
if test "x$ac_cv_lib_CEGUILuaScriptModule_main" = x""yes; then
 
23885
 
 
23886
        LIBS="-lCEGUILuaScriptModule $LIBS"
 
23887
 
 
23888
else
 
23889
 
 
23890
        { { $as_echo "$as_me:$LINENO: error: Couldn't find Lua CEGUI module. Make sure that CEGUI compiled with Lua scripting support." >&5
 
23891
$as_echo "$as_me: error: Couldn't find Lua CEGUI module. Make sure that CEGUI compiled with Lua scripting support." >&2;}
 
23892
   { (exit 1); exit 1; }; }
 
23893
 
 
23894
 
 
23895
fi
 
23896
 
 
23897
 
 
23898
 
 
23899
 
 
23900
# Check for OpenAL
 
23901
OPENAL_VERSION=0.0.8
 
23902
 
 
23903
pkg_failed=no
 
23904
{ $as_echo "$as_me:$LINENO: checking for OPENAL" >&5
 
23905
$as_echo_n "checking for OPENAL... " >&6; }
 
23906
 
 
23907
if test -n "$OPENAL_CFLAGS"; then
 
23908
    pkg_cv_OPENAL_CFLAGS="$OPENAL_CFLAGS"
 
23909
 elif test -n "$PKG_CONFIG"; then
 
23910
    if test -n "$PKG_CONFIG" && \
 
23911
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"openal >= \$OPENAL_VERSION\"") >&5
 
23912
  ($PKG_CONFIG --exists --print-errors "openal >= $OPENAL_VERSION") 2>&5
 
23913
  ac_status=$?
 
23914
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23915
  (exit $ac_status); }; then
 
23916
  pkg_cv_OPENAL_CFLAGS=`$PKG_CONFIG --cflags "openal >= $OPENAL_VERSION" 2>/dev/null`
 
23917
else
 
23918
  pkg_failed=yes
 
23919
fi
 
23920
 else
 
23921
    pkg_failed=untried
 
23922
fi
 
23923
if test -n "$OPENAL_LIBS"; then
 
23924
    pkg_cv_OPENAL_LIBS="$OPENAL_LIBS"
 
23925
 elif test -n "$PKG_CONFIG"; then
 
23926
    if test -n "$PKG_CONFIG" && \
 
23927
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"openal >= \$OPENAL_VERSION\"") >&5
 
23928
  ($PKG_CONFIG --exists --print-errors "openal >= $OPENAL_VERSION") 2>&5
 
23929
  ac_status=$?
 
23930
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23931
  (exit $ac_status); }; then
 
23932
  pkg_cv_OPENAL_LIBS=`$PKG_CONFIG --libs "openal >= $OPENAL_VERSION" 2>/dev/null`
 
23933
else
 
23934
  pkg_failed=yes
 
23935
fi
 
23936
 else
 
23937
    pkg_failed=untried
 
23938
fi
 
23939
 
 
23940
 
 
23941
 
 
23942
if test $pkg_failed = yes; then
 
23943
 
 
23944
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
23945
        _pkg_short_errors_supported=yes
 
23946
else
 
23947
        _pkg_short_errors_supported=no
 
23948
fi
 
23949
        if test $_pkg_short_errors_supported = yes; then
 
23950
                OPENAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "openal >= $OPENAL_VERSION" 2>&1`
 
23951
        else
 
23952
                OPENAL_PKG_ERRORS=`$PKG_CONFIG --print-errors "openal >= $OPENAL_VERSION" 2>&1`
 
23953
        fi
 
23954
        # Put the nasty error message in config.log where it belongs
 
23955
        echo "$OPENAL_PKG_ERRORS" >&5
 
23956
 
 
23957
        { $as_echo "$as_me:$LINENO: result: no" >&5
 
23958
$as_echo "no" >&6; }
 
23959
 
 
23960
                { { $as_echo "$as_me:$LINENO: error: Couldn't find OpenAL or tests failed. Error: $OPENAL_PKG_ERRORS. Please go to http://www.openal.org to get the latest, or check config.log to see why the tests failed, and fix it." >&5
 
23961
$as_echo "$as_me: error: Couldn't find OpenAL or tests failed. Error: $OPENAL_PKG_ERRORS. Please go to http://www.openal.org to get the latest, or check config.log to see why the tests failed, and fix it." >&2;}
 
23962
   { (exit 1); exit 1; }; }
 
23963
 
 
23964
elif test $pkg_failed = untried; then
 
23965
 
 
23966
                { { $as_echo "$as_me:$LINENO: error: Couldn't find OpenAL or tests failed. Error: $OPENAL_PKG_ERRORS. Please go to http://www.openal.org to get the latest, or check config.log to see why the tests failed, and fix it." >&5
 
23967
$as_echo "$as_me: error: Couldn't find OpenAL or tests failed. Error: $OPENAL_PKG_ERRORS. Please go to http://www.openal.org to get the latest, or check config.log to see why the tests failed, and fix it." >&2;}
 
23968
   { (exit 1); exit 1; }; }
 
23969
 
 
23970
else
 
23971
        OPENAL_CFLAGS=$pkg_cv_OPENAL_CFLAGS
 
23972
        OPENAL_LIBS=$pkg_cv_OPENAL_LIBS
 
23973
        { $as_echo "$as_me:$LINENO: result: yes" >&5
 
23974
$as_echo "yes" >&6; }
 
23975
 
 
23976
                CXXFLAGS="$CXXFLAGS $OPENAL_CFLAGS"
 
23977
                LIBS="$LIBS $OPENAL_LIBS"
 
23978
 
 
23979
fi
 
23980
 
 
23981
#check for libogg
 
23982
#OGG_VERSION=1.1.3
 
23983
#PKG_CHECK_MODULES(OGG, ogg >= $OGG_VERSION,
 
23984
#               [
 
23985
#                       CXXFLAGS="$CXXFLAGS $OGG_CFLAGS"
 
23986
#                       LIBS="$LIBS $OGG_LIBS"
 
23987
#               ],
 
23988
#               [
 
23989
#                       AC_MSG_ERROR([Couldn't find libogg or tests failed. Error: $OGG_PKG_ERRORS. Please go to http://www.vorbis.com to get the latest, or check config.log to see why the tests failed, and fix it.])
 
23990
#               ])
 
23991
 
 
23992
#check for vorbis
 
23993
#VORBIS_VERSION=1.2.0
 
23994
#PKG_CHECK_MODULES(VORBIS, vorbis >= $VORBIS_VERSION,
 
23995
#               [
 
23996
#                       CXXFLAGS="$CXXFLAGS $VORBIS_CFLAGS"
 
23997
#                       LIBS="$LIBS $VORBIS_LIBS"
 
23998
#               ],
 
23999
#               [
 
24000
#                       AC_MSG_ERROR([Couldn't find libvorbis or tests failed. Error: $VORBIS_PKG_ERRORS. Please go to http://www.vorbis.com to get the latest, or check config.log to see why the tests failed, and fix it.])
 
24001
#               ])
 
24002
 
 
24003
#check for vorbisfile
 
24004
#VORBISF_VERSION=1.2.0
 
24005
#PKG_CHECK_MODULES(VORBISF, vorbisfile >= $VORBISF_VERSION,
 
24006
#               [
 
24007
#                       CXXFLAGS="$CXXFLAGS $VORBISF_CFLAGS"
 
24008
#                       LIBS="$LIBS $VORBISF_LIBS"
 
24009
#               ],
 
24010
#               [
 
24011
#                       AC_MSG_ERROR([Couldn't find vorbisfile tests failed. Error: $VORBISF_PKG_ERRORS. Please go to http://www.vorbis.com to get the latest, or check config.log to see why the tests failed, and fix it.])
 
24012
#               ])
 
24013
 
 
24014
# Check for FreeALUT
 
24015
FREEALUT_VERSION=1.0.0
 
24016
 
 
24017
pkg_failed=no
 
24018
{ $as_echo "$as_me:$LINENO: checking for FREEALUT" >&5
 
24019
$as_echo_n "checking for FREEALUT... " >&6; }
 
24020
 
 
24021
if test -n "$FREEALUT_CFLAGS"; then
 
24022
    pkg_cv_FREEALUT_CFLAGS="$FREEALUT_CFLAGS"
 
24023
 elif test -n "$PKG_CONFIG"; then
 
24024
    if test -n "$PKG_CONFIG" && \
 
24025
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"freealut >= \$FREEALUT_VERSION\"") >&5
 
24026
  ($PKG_CONFIG --exists --print-errors "freealut >= $FREEALUT_VERSION") 2>&5
 
24027
  ac_status=$?
 
24028
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24029
  (exit $ac_status); }; then
 
24030
  pkg_cv_FREEALUT_CFLAGS=`$PKG_CONFIG --cflags "freealut >= $FREEALUT_VERSION" 2>/dev/null`
 
24031
else
 
24032
  pkg_failed=yes
 
24033
fi
 
24034
 else
 
24035
    pkg_failed=untried
 
24036
fi
 
24037
if test -n "$FREEALUT_LIBS"; then
 
24038
    pkg_cv_FREEALUT_LIBS="$FREEALUT_LIBS"
 
24039
 elif test -n "$PKG_CONFIG"; then
 
24040
    if test -n "$PKG_CONFIG" && \
 
24041
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"freealut >= \$FREEALUT_VERSION\"") >&5
 
24042
  ($PKG_CONFIG --exists --print-errors "freealut >= $FREEALUT_VERSION") 2>&5
 
24043
  ac_status=$?
 
24044
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24045
  (exit $ac_status); }; then
 
24046
  pkg_cv_FREEALUT_LIBS=`$PKG_CONFIG --libs "freealut >= $FREEALUT_VERSION" 2>/dev/null`
 
24047
else
 
24048
  pkg_failed=yes
 
24049
fi
 
24050
 else
 
24051
    pkg_failed=untried
 
24052
fi
 
24053
 
 
24054
 
 
24055
 
 
24056
if test $pkg_failed = yes; then
 
24057
 
 
24058
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
24059
        _pkg_short_errors_supported=yes
 
24060
else
 
24061
        _pkg_short_errors_supported=no
 
24062
fi
 
24063
        if test $_pkg_short_errors_supported = yes; then
 
24064
                FREEALUT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freealut >= $FREEALUT_VERSION" 2>&1`
 
24065
        else
 
24066
                FREEALUT_PKG_ERRORS=`$PKG_CONFIG --print-errors "freealut >= $FREEALUT_VERSION" 2>&1`
 
24067
        fi
 
24068
        # Put the nasty error message in config.log where it belongs
 
24069
        echo "$FREEALUT_PKG_ERRORS" >&5
 
24070
 
 
24071
        { $as_echo "$as_me:$LINENO: result: no" >&5
 
24072
$as_echo "no" >&6; }
 
24073
 
 
24074
                { { $as_echo "$as_me:$LINENO: error: Couldn't find FreeALUT or tests failed. Error: $FREEALUT_PKG_ERRORS. Please go to http://www.openal.org to get the latest, or check config.log to see why the tests failed, and fix it." >&5
 
24075
$as_echo "$as_me: error: Couldn't find FreeALUT or tests failed. Error: $FREEALUT_PKG_ERRORS. Please go to http://www.openal.org to get the latest, or check config.log to see why the tests failed, and fix it." >&2;}
 
24076
   { (exit 1); exit 1; }; }
 
24077
 
 
24078
elif test $pkg_failed = untried; then
 
24079
 
 
24080
                { { $as_echo "$as_me:$LINENO: error: Couldn't find FreeALUT or tests failed. Error: $FREEALUT_PKG_ERRORS. Please go to http://www.openal.org to get the latest, or check config.log to see why the tests failed, and fix it." >&5
 
24081
$as_echo "$as_me: error: Couldn't find FreeALUT or tests failed. Error: $FREEALUT_PKG_ERRORS. Please go to http://www.openal.org to get the latest, or check config.log to see why the tests failed, and fix it." >&2;}
 
24082
   { (exit 1); exit 1; }; }
 
24083
 
 
24084
else
 
24085
        FREEALUT_CFLAGS=$pkg_cv_FREEALUT_CFLAGS
 
24086
        FREEALUT_LIBS=$pkg_cv_FREEALUT_LIBS
 
24087
        { $as_echo "$as_me:$LINENO: result: yes" >&5
 
24088
$as_echo "yes" >&6; }
 
24089
 
 
24090
                CXXFLAGS="$CXXFLAGS $FREEALUT_CFLAGS"
 
24091
                LIBS="$LIBS $FREEALUT_LIBS"
 
24092
 
 
24093
fi
 
24094
 
 
24095
 
 
24096
 
 
24097
#CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
 
24098
 
 
24099
#SDL_VERSION=1.2.0
 
24100
#AC_SUBST(SDL_VERSION)
 
24101
 
 
24102
# check for sigc++ separately from the WF checks
 
24103
 
 
24104
pkg_failed=no
 
24105
{ $as_echo "$as_me:$LINENO: checking for SIG" >&5
 
24106
$as_echo_n "checking for SIG... " >&6; }
 
24107
 
 
24108
if test -n "$SIG_CFLAGS"; then
 
24109
    pkg_cv_SIG_CFLAGS="$SIG_CFLAGS"
 
24110
 elif test -n "$PKG_CONFIG"; then
 
24111
    if test -n "$PKG_CONFIG" && \
 
24112
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sigc++-2.0 >= 2.0\"") >&5
 
24113
  ($PKG_CONFIG --exists --print-errors "sigc++-2.0 >= 2.0") 2>&5
 
24114
  ac_status=$?
 
24115
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24116
  (exit $ac_status); }; then
 
24117
  pkg_cv_SIG_CFLAGS=`$PKG_CONFIG --cflags "sigc++-2.0 >= 2.0" 2>/dev/null`
 
24118
else
 
24119
  pkg_failed=yes
 
24120
fi
 
24121
 else
 
24122
    pkg_failed=untried
 
24123
fi
 
24124
if test -n "$SIG_LIBS"; then
 
24125
    pkg_cv_SIG_LIBS="$SIG_LIBS"
 
24126
 elif test -n "$PKG_CONFIG"; then
 
24127
    if test -n "$PKG_CONFIG" && \
 
24128
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sigc++-2.0 >= 2.0\"") >&5
 
24129
  ($PKG_CONFIG --exists --print-errors "sigc++-2.0 >= 2.0") 2>&5
 
24130
  ac_status=$?
 
24131
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24132
  (exit $ac_status); }; then
 
24133
  pkg_cv_SIG_LIBS=`$PKG_CONFIG --libs "sigc++-2.0 >= 2.0" 2>/dev/null`
 
24134
else
 
24135
  pkg_failed=yes
 
24136
fi
 
24137
 else
 
24138
    pkg_failed=untried
 
24139
fi
 
24140
 
 
24141
 
 
24142
 
 
24143
if test $pkg_failed = yes; then
 
24144
 
 
24145
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
24146
        _pkg_short_errors_supported=yes
 
24147
else
 
24148
        _pkg_short_errors_supported=no
 
24149
fi
 
24150
        if test $_pkg_short_errors_supported = yes; then
 
24151
                SIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "sigc++-2.0 >= 2.0" 2>&1`
 
24152
        else
 
24153
                SIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "sigc++-2.0 >= 2.0" 2>&1`
 
24154
        fi
 
24155
        # Put the nasty error message in config.log where it belongs
 
24156
        echo "$SIG_PKG_ERRORS" >&5
 
24157
 
 
24158
        { $as_echo "$as_me:$LINENO: result: no" >&5
 
24159
$as_echo "no" >&6; }
 
24160
 
 
24161
      { { $as_echo "$as_me:$LINENO: error: Couldn't find SIGC++2.0" >&5
 
24162
$as_echo "$as_me: error: Couldn't find SIGC++2.0" >&2;}
 
24163
   { (exit 1); exit 1; }; }
 
24164
 
 
24165
elif test $pkg_failed = untried; then
 
24166
 
 
24167
      { { $as_echo "$as_me:$LINENO: error: Couldn't find SIGC++2.0" >&5
 
24168
$as_echo "$as_me: error: Couldn't find SIGC++2.0" >&2;}
 
24169
   { (exit 1); exit 1; }; }
 
24170
 
 
24171
else
 
24172
        SIG_CFLAGS=$pkg_cv_SIG_CFLAGS
 
24173
        SIG_LIBS=$pkg_cv_SIG_LIBS
 
24174
        { $as_echo "$as_me:$LINENO: result: yes" >&5
 
24175
$as_echo "yes" >&6; }
 
24176
 
 
24177
      CXXFLAGS="$CXXFLAGS $SIG_CFLAGS"
 
24178
      LIBS="$LIBS $SIG_LIBS"
 
24179
 
 
24180
fi
 
24181
 
 
24182
# Check for the WorldForge libs
 
24183
 
 
24184
pkg_failed=no
 
24185
{ $as_echo "$as_me:$LINENO: checking for WF" >&5
 
24186
$as_echo_n "checking for WF... " >&6; }
 
24187
 
 
24188
if test -n "$WF_CFLAGS"; then
 
24189
    pkg_cv_WF_CFLAGS="$WF_CFLAGS"
 
24190
 elif test -n "$PKG_CONFIG"; then
 
24191
    if test -n "$PKG_CONFIG" && \
 
24192
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"eris-1.3 >= 1.3.14 \\
 
24193
 varconf-1.0 >= 0.6.5 mercator-0.2 >= 0.2.6 atlascpp-0.6 >= 0.6.0 wfmath-0.3 >= 0.3.9 libwfut-0.2 >= 0.2.0\"") >&5
 
24194
  ($PKG_CONFIG --exists --print-errors "eris-1.3 >= 1.3.14 \
 
24195
 varconf-1.0 >= 0.6.5 mercator-0.2 >= 0.2.6 atlascpp-0.6 >= 0.6.0 wfmath-0.3 >= 0.3.9 libwfut-0.2 >= 0.2.0") 2>&5
 
24196
  ac_status=$?
 
24197
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24198
  (exit $ac_status); }; then
 
24199
  pkg_cv_WF_CFLAGS=`$PKG_CONFIG --cflags "eris-1.3 >= 1.3.14 \
 
24200
 varconf-1.0 >= 0.6.5 mercator-0.2 >= 0.2.6 atlascpp-0.6 >= 0.6.0 wfmath-0.3 >= 0.3.9 libwfut-0.2 >= 0.2.0" 2>/dev/null`
 
24201
else
 
24202
  pkg_failed=yes
 
24203
fi
 
24204
 else
 
24205
    pkg_failed=untried
 
24206
fi
 
24207
if test -n "$WF_LIBS"; then
 
24208
    pkg_cv_WF_LIBS="$WF_LIBS"
 
24209
 elif test -n "$PKG_CONFIG"; then
 
24210
    if test -n "$PKG_CONFIG" && \
 
24211
    { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"eris-1.3 >= 1.3.14 \\
 
24212
 varconf-1.0 >= 0.6.5 mercator-0.2 >= 0.2.6 atlascpp-0.6 >= 0.6.0 wfmath-0.3 >= 0.3.9 libwfut-0.2 >= 0.2.0\"") >&5
 
24213
  ($PKG_CONFIG --exists --print-errors "eris-1.3 >= 1.3.14 \
 
24214
 varconf-1.0 >= 0.6.5 mercator-0.2 >= 0.2.6 atlascpp-0.6 >= 0.6.0 wfmath-0.3 >= 0.3.9 libwfut-0.2 >= 0.2.0") 2>&5
 
24215
  ac_status=$?
 
24216
  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24217
  (exit $ac_status); }; then
 
24218
  pkg_cv_WF_LIBS=`$PKG_CONFIG --libs "eris-1.3 >= 1.3.14 \
 
24219
 varconf-1.0 >= 0.6.5 mercator-0.2 >= 0.2.6 atlascpp-0.6 >= 0.6.0 wfmath-0.3 >= 0.3.9 libwfut-0.2 >= 0.2.0" 2>/dev/null`
 
24220
else
 
24221
  pkg_failed=yes
 
24222
fi
 
24223
 else
 
24224
    pkg_failed=untried
 
24225
fi
 
24226
 
 
24227
 
 
24228
 
 
24229
if test $pkg_failed = yes; then
 
24230
 
 
24231
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
24232
        _pkg_short_errors_supported=yes
 
24233
else
 
24234
        _pkg_short_errors_supported=no
 
24235
fi
 
24236
        if test $_pkg_short_errors_supported = yes; then
 
24237
                WF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "eris-1.3 >= 1.3.14 \
 
24238
 varconf-1.0 >= 0.6.5 mercator-0.2 >= 0.2.6 atlascpp-0.6 >= 0.6.0 wfmath-0.3 >= 0.3.9 libwfut-0.2 >= 0.2.0" 2>&1`
 
24239
        else
 
24240
                WF_PKG_ERRORS=`$PKG_CONFIG --print-errors "eris-1.3 >= 1.3.14 \
 
24241
 varconf-1.0 >= 0.6.5 mercator-0.2 >= 0.2.6 atlascpp-0.6 >= 0.6.0 wfmath-0.3 >= 0.3.9 libwfut-0.2 >= 0.2.0" 2>&1`
 
24242
        fi
 
24243
        # Put the nasty error message in config.log where it belongs
 
24244
        echo "$WF_PKG_ERRORS" >&5
 
24245
 
 
24246
        { $as_echo "$as_me:$LINENO: result: no" >&5
 
24247
$as_echo "no" >&6; }
 
24248
                { { $as_echo "$as_me:$LINENO: error: Couldn't find some of the required WorldForge libraries: $WF_PKG_ERRORS
 
24249
Please visit  http://worldforge.org/dev/eng/libraries to get the latest versions." >&5
 
24250
$as_echo "$as_me: error: Couldn't find some of the required WorldForge libraries: $WF_PKG_ERRORS
 
24251
Please visit  http://worldforge.org/dev/eng/libraries to get the latest versions." >&2;}
 
24252
   { (exit 1); exit 1; }; }
 
24253
 
 
24254
elif test $pkg_failed = untried; then
 
24255
        { { $as_echo "$as_me:$LINENO: error: Couldn't find some of the required WorldForge libraries: $WF_PKG_ERRORS
 
24256
Please visit  http://worldforge.org/dev/eng/libraries to get the latest versions." >&5
 
24257
$as_echo "$as_me: error: Couldn't find some of the required WorldForge libraries: $WF_PKG_ERRORS
 
24258
Please visit  http://worldforge.org/dev/eng/libraries to get the latest versions." >&2;}
 
24259
   { (exit 1); exit 1; }; }
 
24260
 
 
24261
else
 
24262
        WF_CFLAGS=$pkg_cv_WF_CFLAGS
 
24263
        WF_LIBS=$pkg_cv_WF_LIBS
 
24264
        { $as_echo "$as_me:$LINENO: result: yes" >&5
 
24265
$as_echo "yes" >&6; }
 
24266
 
 
24267
                CXXFLAGS="$CXXFLAGS $WF_CFLAGS"
 
24268
                LIBS="$LIBS $WF_LIBS"
 
24269
 
 
24270
fi
 
24271
 
 
24272
 
 
24273
 
 
24274
# Cppunit check
 
24275
 
 
24276
#AC_ARG_ENABLE(cppunit,[  --enable-cppunit     enables cppunit tests [default=yes]],
 
24277
#[
 
24278
#   if test x$enableval = xno; then
 
24279
#               ac_use_cppunit="no"
 
24280
#   else
 
24281
#               ac_use_cppunit="yes"
 
24282
#   fi
 
24283
#], [ac_use_cppunit="yes"])
 
24284
 
 
24285
#found_cppunit=no
 
24286
 
 
24287
#if test "$ac_use_cppunit" = "yes"; then
 
24288
#AM_PATH_CPPUNIT(1.8.0, [
 
24289
#  AC_MSG_RESULT([
 
24290
#*** Found CppUnit
 
24291
#*** Setting up make check to run tests...])
 
24292
#       CXXFLAGS="$CXXFLAGS -DUSE_CPP_UNIT"
 
24293
#       LIBS="$LIBS $CPPUNIT_LIBS"
 
24294
#],
 
24295
#  AC_MSG_RESULT([
 
24296
#
 
24297
#*** Unable to find a recent enough CppUnit
 
24298
#*** Will not run unit testing!!
 
24299
#***
 
24300
#*** To get CppUnit see http://cppunit.sourceforge.net
 
24301
#]))
 
24302
#fi
 
24303
 
 
24304
 
 
24305
# debugging option
 
24306
# Check whether --enable-debug was given.
 
24307
if test "${enable_debug+set}" = set; then
 
24308
  enableval=$enable_debug;
 
24309
   if test x$enableval = xno; then
 
24310
                ac_use_debug_code="no"
 
24311
   else
 
24312
                ac_use_debug_code="yes"
 
24313
   fi
 
24314
 
 
24315
else
 
24316
  ac_use_debug_code="no"
 
24317
fi
 
24318
 
 
24319
 
 
24320
if test "$ac_use_debug_code" = "yes"; then
 
24321
      CFLAGS="$CFLAGS -DDEBUG"
 
24322
      CXXFLAGS="$CXXFLAGS -DDEBUG"
 
24323
else
 
24324
      CFLAGS="$CFLAGS -DNDEBUG"
 
24325
      CXXFLAGS="$CXXFLAGS -DNDEBUG"
 
24326
fi
 
24327
 
 
24328
#multi threading
 
24329
# Check whether --enable-thread_safe was given.
 
24330
if test "${enable_thread_safe+set}" = set; then
 
24331
  enableval=$enable_thread_safe;
 
24332
   if test x$enableval = xno; then
 
24333
                ac_use_thread_code="no"
 
24334
   else
 
24335
                ac_use_thread_code="yes"
 
24336
   fi
 
24337
 
 
24338
else
 
24339
  ac_use_thread_code="no"
 
24340
fi
 
24341
 
 
24342
 
 
24343
if test "$ac_use_thread_code" = "yes"; then
 
24344
      CFLAGS="$CFLAGS -DTHREAD_SAFE"
 
24345
      CXXFLAGS="$CXXFLAGS -DTHREAD_SAFE"
 
24346
                LIBS="$LIBS -lpthread"
 
24347
fi
 
24348
 
 
24349
# gprof debugging option
 
24350
# Check whether --enable-gprof was given.
 
24351
if test "${enable_gprof+set}" = set; then
 
24352
  enableval=$enable_gprof;
 
24353
   if test x$enableval = xno; then
 
24354
                ac_use_gprof_code="no"
 
24355
   else
 
24356
                ac_use_gprof_code="yes"
 
24357
   fi
 
24358
 
 
24359
else
 
24360
  ac_use_gprof_code="no"
 
24361
fi
 
24362
 
 
24363
 
 
24364
if test "$ac_use_gprof_code" = "yes"; then
 
24365
      CFLAGS="$CFLAGS -pg -g"
 
24366
      CXXFLAGS="$CXXFLAGS -pg -g"
 
24367
fi
 
24368
 
 
24369
 
 
24370
 
 
24371
 
 
24372
 
 
24373
 
 
24374
#dnl add SDL flags here, now that we're done with the other tests
 
24375
CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
 
24376
LIBS="$LIBS $SDL_LIBS"
 
24377
 
 
24378
 
 
24379
{ $as_echo "$as_me:$LINENO: result:
 
24380
 
 
24381
                **************************************
 
24382
                * Tests Passed, Creating Makefiles.
 
24383
                **************************************
 
24384
 
 
24385
        " >&5
 
24386
$as_echo "
 
24387
 
 
24388
                **************************************
 
24389
                * Tests Passed, Creating Makefiles.
 
24390
                **************************************
 
24391
 
 
24392
        " >&6; }
 
24393
 
 
24394
ac_config_files="$ac_config_files Makefile src/Makefile src/main/Makefile src/main/bindings/Makefile src/main/bindings/lua/Makefile src/components/Makefile src/framework/Makefile src/framework/bindings/Makefile src/framework/bindings/lua/Makefile src/framework/bindings/lua/eris/Makefile src/framework/bindings/lua/atlas/Makefile src/services/Makefile src/services/config/Makefile src/services/logging/Makefile src/services/metaserver/Makefile src/services/server/Makefile src/services/scripting/Makefile src/services/sound/Makefile src/services/time/Makefile src/services/bindings/Makefile src/services/bindings/lua/Makefile src/services/wfut/Makefile src/services/input/Makefile ember.dox ember ember.spec ember-media.spec autopackage/default.apspec src/extensions/Makefile src/components/ogre/scripting/Makefile src/components/ogre/scripting/bindings/Makefile src/components/ogre/scripting/bindings/lua/Makefile src/components/ogre/scripting/bindings/lua/ogre/Makefile src/components/ogre/scripting/bindings/lua/helpers/Makefile src/components/ogre/sound/Makefile src/components/ogre/ogreopcode/Makefile src/components/ogre/ogreopcode/src/Makefile src/components/ogre/ogreopcode/src/Opcode/Makefile src/components/ogre/ogreopcode/include/Makefile src/components/ogre/ogreopcode/include/Opcode/Makefile src/components/ogre/Makefile src/components/ogre/gui/Makefile src/components/ogre/cegui/Makefile src/components/ogre/widgets/Makefile src/components/ogre/widgets/adapters/Makefile src/components/ogre/widgets/adapters/atlas/Makefile src/components/ogre/widgets/icons/Makefile src/components/ogre/environment/meshtree/Makefile src/components/ogre/environment/caelum/Makefile src/components/ogre/environment/hydrax/Makefile src/components/ogre/environment/pagedgeometry/Makefile src/components/ogre/environment/Makefile src/components/ogre/model/Makefile src/components/ogre/model/mapping/Makefile src/components/ogre/modeldefinitions/Makefile src/components/ogre/sounddefinitions/Makefile src/components/ogre/carpenter/Makefile src/components/ogre/jesus/Makefile src/components/ogre/manipulation/Makefile src/components/ogre/manipulation/entityrecipes/Makefile src/components/ogre/terrain/Makefile src/components/ogre/SceneManagers/Makefile src/components/ogre/SceneManagers/EmberPagingSceneManager/Makefile src/components/ogre/SceneManagers/EmberPagingSceneManager/src/Makefile src/components/ogre/SceneManagers/EmberPagingSceneManager/include/Makefile media/Makefile media/packs/Makefile"
 
24395
 
 
24396
 
 
24397
cat >confcache <<\_ACEOF
 
24398
# This file is a shell script that caches the results of configure
 
24399
# tests run on this system so they can be shared between configure
 
24400
# scripts and configure runs, see configure's option --config-cache.
 
24401
# It is not useful on other systems.  If it contains results you don't
 
24402
# want to keep, you may remove or edit it.
 
24403
#
 
24404
# config.status only pays attention to the cache file if you give it
 
24405
# the --recheck option to rerun configure.
 
24406
#
 
24407
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
24408
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
24409
# following values.
 
24410
 
 
24411
_ACEOF
 
24412
 
 
24413
# The following way of writing the cache mishandles newlines in values,
 
24414
# but we know of no workaround that is simple, portable, and efficient.
 
24415
# So, we kill variables containing newlines.
 
24416
# Ultrix sh set writes to stderr and can't be redirected directly,
 
24417
# and sets the high bit in the cache file unless we assign to the vars.
 
24418
(
 
24419
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
24420
    eval ac_val=\$$ac_var
 
24421
    case $ac_val in #(
 
24422
    *${as_nl}*)
 
24423
      case $ac_var in #(
 
24424
      *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
 
24425
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 
24426
      esac
 
24427
      case $ac_var in #(
 
24428
      _ | IFS | as_nl) ;; #(
 
24429
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 
24430
      *) $as_unset $ac_var ;;
 
24431
      esac ;;
 
24432
    esac
 
24433
  done
 
24434
 
 
24435
  (set) 2>&1 |
 
24436
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
24437
    *${as_nl}ac_space=\ *)
 
24438
      # `set' does not quote correctly, so add quotes (double-quote
 
24439
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
24440
      sed -n \
 
24441
        "s/'/'\\\\''/g;
 
24442
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
24443
      ;; #(
 
24444
    *)
 
24445
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
24446
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
24447
      ;;
 
24448
    esac |
 
24449
    sort
 
24450
) |
 
24451
  sed '
 
24452
     /^ac_cv_env_/b end
 
24453
     t clear
 
24454
     :clear
 
24455
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
24456
     t end
 
24457
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
24458
     :end' >>confcache
 
24459
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
24460
  if test -w "$cache_file"; then
 
24461
    test "x$cache_file" != "x/dev/null" &&
 
24462
      { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
 
24463
$as_echo "$as_me: updating cache $cache_file" >&6;}
 
24464
    cat confcache >$cache_file
 
24465
  else
 
24466
    { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
 
24467
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
24468
  fi
 
24469
fi
 
24470
rm -f confcache
 
24471
 
 
24472
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
24473
# Let make expand exec_prefix.
 
24474
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
24475
 
 
24476
DEFS=-DHAVE_CONFIG_H
 
24477
 
 
24478
ac_libobjs=
 
24479
ac_ltlibobjs=
 
24480
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
24481
  # 1. Remove the extension, and $U if already installed.
 
24482
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
24483
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
 
24484
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
24485
  #    will be set to the directory where LIBOBJS objects are built.
 
24486
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
24487
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
 
24488
done
 
24489
LIBOBJS=$ac_libobjs
 
24490
 
 
24491
LTLIBOBJS=$ac_ltlibobjs
 
24492
 
 
24493
 
 
24494
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
24495
  { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
24496
Usually this means the macro was only invoked conditionally." >&5
 
24497
$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
24498
Usually this means the macro was only invoked conditionally." >&2;}
 
24499
   { (exit 1); exit 1; }; }
 
24500
fi
 
24501
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
24502
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
24503
Usually this means the macro was only invoked conditionally." >&5
 
24504
$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
24505
Usually this means the macro was only invoked conditionally." >&2;}
 
24506
   { (exit 1); exit 1; }; }
 
24507
fi
 
24508
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
24509
  { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
24510
Usually this means the macro was only invoked conditionally." >&5
 
24511
$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
24512
Usually this means the macro was only invoked conditionally." >&2;}
 
24513
   { (exit 1); exit 1; }; }
 
24514
fi
 
24515
if test -z "${BUILD_STATIC_TRUE}" && test -z "${BUILD_STATIC_FALSE}"; then
 
24516
  { { $as_echo "$as_me:$LINENO: error: conditional \"BUILD_STATIC\" was never defined.
 
24517
Usually this means the macro was only invoked conditionally." >&5
 
24518
$as_echo "$as_me: error: conditional \"BUILD_STATIC\" was never defined.
 
24519
Usually this means the macro was only invoked conditionally." >&2;}
 
24520
   { (exit 1); exit 1; }; }
 
24521
fi
 
24522
if test -z "${HAVE_LIBTINYXML_TRUE}" && test -z "${HAVE_LIBTINYXML_FALSE}"; then
 
24523
  { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LIBTINYXML\" was never defined.
 
24524
Usually this means the macro was only invoked conditionally." >&5
 
24525
$as_echo "$as_me: error: conditional \"HAVE_LIBTINYXML\" was never defined.
 
24526
Usually this means the macro was only invoked conditionally." >&2;}
 
24527
   { (exit 1); exit 1; }; }
 
24528
fi
 
24529
 
 
24530
: ${CONFIG_STATUS=./config.status}
 
24531
ac_write_fail=0
 
24532
ac_clean_files_save=$ac_clean_files
 
24533
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
24534
{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
24535
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
24536
cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
24537
#! $SHELL
 
24538
# Generated by $as_me.
 
24539
# Run this file to recreate the current configuration.
 
24540
# Compiler output produced by configure, useful for debugging
 
24541
# configure, is in config.log if it exists.
 
24542
 
 
24543
debug=false
 
24544
ac_cs_recheck=false
 
24545
ac_cs_silent=false
 
24546
SHELL=\${CONFIG_SHELL-$SHELL}
 
24547
_ACEOF
 
24548
 
 
24549
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
24550
## --------------------- ##
 
24551
## M4sh Initialization.  ##
 
24552
## --------------------- ##
 
24553
 
 
24554
# Be more Bourne compatible
 
24555
DUALCASE=1; export DUALCASE # for MKS sh
 
24556
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
24557
  emulate sh
 
24558
  NULLCMD=:
 
24559
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 
24560
  # is contrary to our usage.  Disable this feature.
 
24561
  alias -g '${1+"$@"}'='"$@"'
 
24562
  setopt NO_GLOB_SUBST
 
24563
else
 
24564
  case `(set -o) 2>/dev/null` in
 
24565
  *posix*) set -o posix ;;
 
24566
esac
 
24567
 
 
24568
fi
 
24569
 
 
24570
 
 
24571
 
 
24572
 
 
24573
# PATH needs CR
 
24574
# Avoid depending upon Character Ranges.
 
24575
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
24576
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
24577
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
24578
as_cr_digits='0123456789'
 
24579
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
24580
 
 
24581
as_nl='
 
24582
'
 
24583
export as_nl
 
24584
# Printing a long string crashes Solaris 7 /usr/bin/printf.
 
24585
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 
24586
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 
24587
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 
24588
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 
24589
  as_echo='printf %s\n'
 
24590
  as_echo_n='printf %s'
 
24591
else
 
24592
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 
24593
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 
24594
    as_echo_n='/usr/ucb/echo -n'
 
24595
  else
 
24596
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 
24597
    as_echo_n_body='eval
 
24598
      arg=$1;
 
24599
      case $arg in
 
24600
      *"$as_nl"*)
 
24601
        expr "X$arg" : "X\\(.*\\)$as_nl";
 
24602
        arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 
24603
      esac;
 
24604
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 
24605
    '
 
24606
    export as_echo_n_body
 
24607
    as_echo_n='sh -c $as_echo_n_body as_echo'
 
24608
  fi
 
24609
  export as_echo_body
 
24610
  as_echo='sh -c $as_echo_body as_echo'
 
24611
fi
 
24612
 
 
24613
# The user is always right.
 
24614
if test "${PATH_SEPARATOR+set}" != set; then
 
24615
  PATH_SEPARATOR=:
 
24616
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 
24617
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 
24618
      PATH_SEPARATOR=';'
 
24619
  }
 
24620
fi
 
24621
 
 
24622
# Support unset when possible.
 
24623
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
24624
  as_unset=unset
 
24625
else
 
24626
  as_unset=false
 
24627
fi
 
24628
 
 
24629
 
 
24630
# IFS
 
24631
# We need space, tab and new line, in precisely that order.  Quoting is
 
24632
# there to prevent editors from complaining about space-tab.
 
24633
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
24634
# splitting by setting IFS to empty value.)
 
24635
IFS=" ""        $as_nl"
 
24636
 
 
24637
# Find who we are.  Look in the path if we contain no directory separator.
 
24638
case $0 in
 
24639
  *[\\/]* ) as_myself=$0 ;;
 
24640
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
24641
for as_dir in $PATH
 
24642
do
 
24643
  IFS=$as_save_IFS
 
24644
  test -z "$as_dir" && as_dir=.
 
24645
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
24646
done
 
24647
IFS=$as_save_IFS
 
24648
 
 
24649
     ;;
 
24650
esac
 
24651
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
24652
# in which case we are not to be found in the path.
 
24653
if test "x$as_myself" = x; then
 
24654
  as_myself=$0
 
24655
fi
 
24656
if test ! -f "$as_myself"; then
 
24657
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
24658
  { (exit 1); exit 1; }
 
24659
fi
 
24660
 
 
24661
# Work around bugs in pre-3.0 UWIN ksh.
 
24662
for as_var in ENV MAIL MAILPATH
 
24663
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
24664
done
 
24665
PS1='$ '
 
24666
PS2='> '
 
24667
PS4='+ '
 
24668
 
 
24669
# NLS nuisances.
 
24670
LC_ALL=C
 
24671
export LC_ALL
 
24672
LANGUAGE=C
 
24673
export LANGUAGE
 
24674
 
 
24675
# Required to use basename.
 
24676
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
24677
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
24678
  as_expr=expr
 
24679
else
 
24680
  as_expr=false
 
24681
fi
 
24682
 
 
24683
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
24684
  as_basename=basename
 
24685
else
 
24686
  as_basename=false
 
24687
fi
 
24688
 
 
24689
 
 
24690
# Name of the executable.
 
24691
as_me=`$as_basename -- "$0" ||
 
24692
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
24693
         X"$0" : 'X\(//\)$' \| \
 
24694
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
24695
$as_echo X/"$0" |
 
24696
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
24697
            s//\1/
 
24698
            q
 
24699
          }
 
24700
          /^X\/\(\/\/\)$/{
 
24701
            s//\1/
 
24702
            q
 
24703
          }
 
24704
          /^X\/\(\/\).*/{
 
24705
            s//\1/
 
24706
            q
 
24707
          }
 
24708
          s/.*/./; q'`
 
24709
 
 
24710
# CDPATH.
 
24711
$as_unset CDPATH
 
24712
 
 
24713
 
 
24714
 
 
24715
  as_lineno_1=$LINENO
 
24716
  as_lineno_2=$LINENO
 
24717
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
24718
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
24719
 
 
24720
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
24721
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
24722
  # line-number line after each line using $LINENO; the second 'sed'
 
24723
  # does the real work.  The second script uses 'N' to pair each
 
24724
  # line-number line with the line containing $LINENO, and appends
 
24725
  # trailing '-' during substitution so that $LINENO is not a special
 
24726
  # case at line end.
 
24727
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
24728
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
24729
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
24730
  sed -n '
 
24731
    p
 
24732
    /[$]LINENO/=
 
24733
  ' <$as_myself |
 
24734
    sed '
 
24735
      s/[$]LINENO.*/&-/
 
24736
      t lineno
 
24737
      b
 
24738
      :lineno
 
24739
      N
 
24740
      :loop
 
24741
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
24742
      t loop
 
24743
      s/-\n.*//
 
24744
    ' >$as_me.lineno &&
 
24745
  chmod +x "$as_me.lineno" ||
 
24746
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
24747
   { (exit 1); exit 1; }; }
 
24748
 
 
24749
  # Don't try to exec as it changes $[0], causing all sort of problems
 
24750
  # (the dirname of $[0] is not the place where we might find the
 
24751
  # original and so on.  Autoconf is especially sensitive to this).
 
24752
  . "./$as_me.lineno"
 
24753
  # Exit status is that of the last command.
 
24754
  exit
 
24755
}
 
24756
 
 
24757
 
 
24758
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
24759
  as_dirname=dirname
 
24760
else
 
24761
  as_dirname=false
 
24762
fi
 
24763
 
 
24764
ECHO_C= ECHO_N= ECHO_T=
 
24765
case `echo -n x` in
 
24766
-n*)
 
24767
  case `echo 'x\c'` in
 
24768
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
24769
  *)   ECHO_C='\c';;
 
24770
  esac;;
 
24771
*)
 
24772
  ECHO_N='-n';;
 
24773
esac
 
24774
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
24775
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
24776
  as_expr=expr
 
24777
else
 
24778
  as_expr=false
 
24779
fi
 
24780
 
 
24781
rm -f conf$$ conf$$.exe conf$$.file
 
24782
if test -d conf$$.dir; then
 
24783
  rm -f conf$$.dir/conf$$.file
 
24784
else
 
24785
  rm -f conf$$.dir
 
24786
  mkdir conf$$.dir 2>/dev/null
 
24787
fi
 
24788
if (echo >conf$$.file) 2>/dev/null; then
 
24789
  if ln -s conf$$.file conf$$ 2>/dev/null; then
 
24790
    as_ln_s='ln -s'
 
24791
    # ... but there are two gotchas:
 
24792
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
24793
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
24794
    # In both cases, we have to default to `cp -p'.
 
24795
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
24796
      as_ln_s='cp -p'
 
24797
  elif ln conf$$.file conf$$ 2>/dev/null; then
 
24798
    as_ln_s=ln
 
24799
  else
 
24800
    as_ln_s='cp -p'
 
24801
  fi
 
24802
else
 
24803
  as_ln_s='cp -p'
 
24804
fi
 
24805
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
24806
rmdir conf$$.dir 2>/dev/null
 
24807
 
 
24808
if mkdir -p . 2>/dev/null; then
 
24809
  as_mkdir_p=:
 
24810
else
 
24811
  test -d ./-p && rmdir ./-p
 
24812
  as_mkdir_p=false
 
24813
fi
 
24814
 
 
24815
if test -x / >/dev/null 2>&1; then
 
24816
  as_test_x='test -x'
 
24817
else
 
24818
  if ls -dL / >/dev/null 2>&1; then
 
24819
    as_ls_L_option=L
 
24820
  else
 
24821
    as_ls_L_option=
 
24822
  fi
 
24823
  as_test_x='
 
24824
    eval sh -c '\''
 
24825
      if test -d "$1"; then
 
24826
        test -d "$1/.";
 
24827
      else
 
24828
        case $1 in
 
24829
        -*)set "./$1";;
 
24830
        esac;
 
24831
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
24832
        ???[sx]*):;;*)false;;esac;fi
 
24833
    '\'' sh
 
24834
  '
 
24835
fi
 
24836
as_executable_p=$as_test_x
 
24837
 
 
24838
# Sed expression to map a string onto a valid CPP name.
 
24839
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
24840
 
 
24841
# Sed expression to map a string onto a valid variable name.
 
24842
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
24843
 
 
24844
 
 
24845
exec 6>&1
 
24846
 
 
24847
# Save the log message, to keep $[0] and so on meaningful, and to
 
24848
# report actual input values of CONFIG_FILES etc. instead of their
 
24849
# values after options handling.
 
24850
ac_log="
 
24851
This file was extended by Ember $as_me 0.5.6, which was
 
24852
generated by GNU Autoconf 2.63.  Invocation command line was
 
24853
 
 
24854
  CONFIG_FILES    = $CONFIG_FILES
 
24855
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
24856
  CONFIG_LINKS    = $CONFIG_LINKS
 
24857
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
24858
  $ $0 $@
 
24859
 
 
24860
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
24861
"
 
24862
 
 
24863
_ACEOF
 
24864
 
 
24865
case $ac_config_files in *"
 
24866
"*) set x $ac_config_files; shift; ac_config_files=$*;;
 
24867
esac
 
24868
 
 
24869
case $ac_config_headers in *"
 
24870
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
 
24871
esac
 
24872
 
 
24873
 
 
24874
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
24875
# Files that config.status was made for.
 
24876
config_files="`echo $ac_config_files`"
 
24877
config_headers="`echo $ac_config_headers`"
 
24878
config_commands="`echo $ac_config_commands`"
 
24879
 
 
24880
_ACEOF
 
24881
 
 
24882
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
24883
ac_cs_usage="\
 
24884
\`$as_me' instantiates files from templates according to the
 
24885
current configuration.
 
24886
 
 
24887
Usage: $0 [OPTION]... [FILE]...
 
24888
 
 
24889
  -h, --help       print this help, then exit
 
24890
  -V, --version    print version number and configuration settings, then exit
 
24891
  -q, --quiet, --silent
 
24892
                   do not print progress messages
 
24893
  -d, --debug      don't remove temporary files
 
24894
      --recheck    update $as_me by reconfiguring in the same conditions
 
24895
      --file=FILE[:TEMPLATE]
 
24896
                   instantiate the configuration file FILE
 
24897
      --header=FILE[:TEMPLATE]
 
24898
                   instantiate the configuration header FILE
 
24899
 
 
24900
Configuration files:
 
24901
$config_files
 
24902
 
 
24903
Configuration headers:
 
24904
$config_headers
 
24905
 
 
24906
Configuration commands:
 
24907
$config_commands
 
24908
 
 
24909
Report bugs to <bug-autoconf@gnu.org>."
 
24910
 
 
24911
_ACEOF
 
24912
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
24913
ac_cs_version="\\
 
24914
Ember config.status 0.5.6
 
24915
configured by $0, generated by GNU Autoconf 2.63,
 
24916
  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
 
24917
 
 
24918
Copyright (C) 2008 Free Software Foundation, Inc.
 
24919
This config.status script is free software; the Free Software Foundation
 
24920
gives unlimited permission to copy, distribute and modify it."
 
24921
 
 
24922
ac_pwd='$ac_pwd'
 
24923
srcdir='$srcdir'
 
24924
INSTALL='$INSTALL'
 
24925
MKDIR_P='$MKDIR_P'
 
24926
AWK='$AWK'
 
24927
test -n "\$AWK" || AWK=awk
 
24928
_ACEOF
 
24929
 
 
24930
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
24931
# The default lists apply if the user does not specify any file.
 
24932
ac_need_defaults=:
 
24933
while test $# != 0
 
24934
do
 
24935
  case $1 in
 
24936
  --*=*)
 
24937
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
24938
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
24939
    ac_shift=:
 
24940
    ;;
 
24941
  *)
 
24942
    ac_option=$1
 
24943
    ac_optarg=$2
 
24944
    ac_shift=shift
 
24945
    ;;
 
24946
  esac
 
24947
 
 
24948
  case $ac_option in
 
24949
  # Handling of the options.
 
24950
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
24951
    ac_cs_recheck=: ;;
 
24952
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
24953
    $as_echo "$ac_cs_version"; exit ;;
 
24954
  --debug | --debu | --deb | --de | --d | -d )
 
24955
    debug=: ;;
 
24956
  --file | --fil | --fi | --f )
 
24957
    $ac_shift
 
24958
    case $ac_optarg in
 
24959
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
24960
    esac
 
24961
    CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
 
24962
    ac_need_defaults=false;;
 
24963
  --header | --heade | --head | --hea )
 
24964
    $ac_shift
 
24965
    case $ac_optarg in
 
24966
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
24967
    esac
 
24968
    CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
 
24969
    ac_need_defaults=false;;
 
24970
  --he | --h)
 
24971
    # Conflict between --help and --header
 
24972
    { $as_echo "$as_me: error: ambiguous option: $1
 
24973
Try \`$0 --help' for more information." >&2
 
24974
   { (exit 1); exit 1; }; };;
 
24975
  --help | --hel | -h )
 
24976
    $as_echo "$ac_cs_usage"; exit ;;
 
24977
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
24978
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
24979
    ac_cs_silent=: ;;
 
24980
 
 
24981
  # This is an error.
 
24982
  -*) { $as_echo "$as_me: error: unrecognized option: $1
 
24983
Try \`$0 --help' for more information." >&2
 
24984
   { (exit 1); exit 1; }; } ;;
 
24985
 
 
24986
  *) ac_config_targets="$ac_config_targets $1"
 
24987
     ac_need_defaults=false ;;
 
24988
 
 
24989
  esac
 
24990
  shift
 
24991
done
 
24992
 
 
24993
ac_configure_extra_args=
 
24994
 
 
24995
if $ac_cs_silent; then
 
24996
  exec 6>/dev/null
 
24997
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
24998
fi
 
24999
 
 
25000
_ACEOF
 
25001
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
25002
if \$ac_cs_recheck; then
 
25003
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
25004
  shift
 
25005
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 
25006
  CONFIG_SHELL='$SHELL'
 
25007
  export CONFIG_SHELL
 
25008
  exec "\$@"
 
25009
fi
 
25010
 
 
25011
_ACEOF
 
25012
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
25013
exec 5>>config.log
 
25014
{
 
25015
  echo
 
25016
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
25017
## Running $as_me. ##
 
25018
_ASBOX
 
25019
  $as_echo "$ac_log"
 
25020
} >&5
 
25021
 
 
25022
_ACEOF
 
25023
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
25024
#
 
25025
# INIT-COMMANDS
 
25026
#
 
25027
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
25028
 
 
25029
_ACEOF
 
25030
 
 
25031
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
25032
 
 
25033
# Handling of arguments.
 
25034
for ac_config_target in $ac_config_targets
 
25035
do
 
25036
  case $ac_config_target in
 
25037
    "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
 
25038
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
25039
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
25040
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 
25041
    "src/main/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/Makefile" ;;
 
25042
    "src/main/bindings/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/bindings/Makefile" ;;
 
25043
    "src/main/bindings/lua/Makefile") CONFIG_FILES="$CONFIG_FILES src/main/bindings/lua/Makefile" ;;
 
25044
    "src/components/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/Makefile" ;;
 
25045
    "src/framework/Makefile") CONFIG_FILES="$CONFIG_FILES src/framework/Makefile" ;;
 
25046
    "src/framework/bindings/Makefile") CONFIG_FILES="$CONFIG_FILES src/framework/bindings/Makefile" ;;
 
25047
    "src/framework/bindings/lua/Makefile") CONFIG_FILES="$CONFIG_FILES src/framework/bindings/lua/Makefile" ;;
 
25048
    "src/framework/bindings/lua/eris/Makefile") CONFIG_FILES="$CONFIG_FILES src/framework/bindings/lua/eris/Makefile" ;;
 
25049
    "src/framework/bindings/lua/atlas/Makefile") CONFIG_FILES="$CONFIG_FILES src/framework/bindings/lua/atlas/Makefile" ;;
 
25050
    "src/services/Makefile") CONFIG_FILES="$CONFIG_FILES src/services/Makefile" ;;
 
25051
    "src/services/config/Makefile") CONFIG_FILES="$CONFIG_FILES src/services/config/Makefile" ;;
 
25052
    "src/services/logging/Makefile") CONFIG_FILES="$CONFIG_FILES src/services/logging/Makefile" ;;
 
25053
    "src/services/metaserver/Makefile") CONFIG_FILES="$CONFIG_FILES src/services/metaserver/Makefile" ;;
 
25054
    "src/services/server/Makefile") CONFIG_FILES="$CONFIG_FILES src/services/server/Makefile" ;;
 
25055
    "src/services/scripting/Makefile") CONFIG_FILES="$CONFIG_FILES src/services/scripting/Makefile" ;;
 
25056
    "src/services/sound/Makefile") CONFIG_FILES="$CONFIG_FILES src/services/sound/Makefile" ;;
 
25057
    "src/services/time/Makefile") CONFIG_FILES="$CONFIG_FILES src/services/time/Makefile" ;;
 
25058
    "src/services/bindings/Makefile") CONFIG_FILES="$CONFIG_FILES src/services/bindings/Makefile" ;;
 
25059
    "src/services/bindings/lua/Makefile") CONFIG_FILES="$CONFIG_FILES src/services/bindings/lua/Makefile" ;;
 
25060
    "src/services/wfut/Makefile") CONFIG_FILES="$CONFIG_FILES src/services/wfut/Makefile" ;;
 
25061
    "src/services/input/Makefile") CONFIG_FILES="$CONFIG_FILES src/services/input/Makefile" ;;
 
25062
    "ember.dox") CONFIG_FILES="$CONFIG_FILES ember.dox" ;;
 
25063
    "ember") CONFIG_FILES="$CONFIG_FILES ember" ;;
 
25064
    "ember.spec") CONFIG_FILES="$CONFIG_FILES ember.spec" ;;
 
25065
    "ember-media.spec") CONFIG_FILES="$CONFIG_FILES ember-media.spec" ;;
 
25066
    "autopackage/default.apspec") CONFIG_FILES="$CONFIG_FILES autopackage/default.apspec" ;;
 
25067
    "src/extensions/Makefile") CONFIG_FILES="$CONFIG_FILES src/extensions/Makefile" ;;
 
25068
    "src/components/ogre/scripting/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/scripting/Makefile" ;;
 
25069
    "src/components/ogre/scripting/bindings/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/scripting/bindings/Makefile" ;;
 
25070
    "src/components/ogre/scripting/bindings/lua/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/scripting/bindings/lua/Makefile" ;;
 
25071
    "src/components/ogre/scripting/bindings/lua/ogre/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/scripting/bindings/lua/ogre/Makefile" ;;
 
25072
    "src/components/ogre/scripting/bindings/lua/helpers/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/scripting/bindings/lua/helpers/Makefile" ;;
 
25073
    "src/components/ogre/sound/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/sound/Makefile" ;;
 
25074
    "src/components/ogre/ogreopcode/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/ogreopcode/Makefile" ;;
 
25075
    "src/components/ogre/ogreopcode/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/ogreopcode/src/Makefile" ;;
 
25076
    "src/components/ogre/ogreopcode/src/Opcode/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/ogreopcode/src/Opcode/Makefile" ;;
 
25077
    "src/components/ogre/ogreopcode/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/ogreopcode/include/Makefile" ;;
 
25078
    "src/components/ogre/ogreopcode/include/Opcode/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/ogreopcode/include/Opcode/Makefile" ;;
 
25079
    "src/components/ogre/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/Makefile" ;;
 
25080
    "src/components/ogre/gui/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/gui/Makefile" ;;
 
25081
    "src/components/ogre/cegui/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/cegui/Makefile" ;;
 
25082
    "src/components/ogre/widgets/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/widgets/Makefile" ;;
 
25083
    "src/components/ogre/widgets/adapters/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/widgets/adapters/Makefile" ;;
 
25084
    "src/components/ogre/widgets/adapters/atlas/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/widgets/adapters/atlas/Makefile" ;;
 
25085
    "src/components/ogre/widgets/icons/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/widgets/icons/Makefile" ;;
 
25086
    "src/components/ogre/environment/meshtree/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/environment/meshtree/Makefile" ;;
 
25087
    "src/components/ogre/environment/caelum/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/environment/caelum/Makefile" ;;
 
25088
    "src/components/ogre/environment/hydrax/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/environment/hydrax/Makefile" ;;
 
25089
    "src/components/ogre/environment/pagedgeometry/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/environment/pagedgeometry/Makefile" ;;
 
25090
    "src/components/ogre/environment/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/environment/Makefile" ;;
 
25091
    "src/components/ogre/model/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/model/Makefile" ;;
 
25092
    "src/components/ogre/model/mapping/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/model/mapping/Makefile" ;;
 
25093
    "src/components/ogre/modeldefinitions/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/modeldefinitions/Makefile" ;;
 
25094
    "src/components/ogre/sounddefinitions/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/sounddefinitions/Makefile" ;;
 
25095
    "src/components/ogre/carpenter/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/carpenter/Makefile" ;;
 
25096
    "src/components/ogre/jesus/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/jesus/Makefile" ;;
 
25097
    "src/components/ogre/manipulation/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/manipulation/Makefile" ;;
 
25098
    "src/components/ogre/manipulation/entityrecipes/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/manipulation/entityrecipes/Makefile" ;;
 
25099
    "src/components/ogre/terrain/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/terrain/Makefile" ;;
 
25100
    "src/components/ogre/SceneManagers/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/SceneManagers/Makefile" ;;
 
25101
    "src/components/ogre/SceneManagers/EmberPagingSceneManager/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/SceneManagers/EmberPagingSceneManager/Makefile" ;;
 
25102
    "src/components/ogre/SceneManagers/EmberPagingSceneManager/src/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/SceneManagers/EmberPagingSceneManager/src/Makefile" ;;
 
25103
    "src/components/ogre/SceneManagers/EmberPagingSceneManager/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/components/ogre/SceneManagers/EmberPagingSceneManager/include/Makefile" ;;
 
25104
    "media/Makefile") CONFIG_FILES="$CONFIG_FILES media/Makefile" ;;
 
25105
    "media/packs/Makefile") CONFIG_FILES="$CONFIG_FILES media/packs/Makefile" ;;
 
25106
 
 
25107
  *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
25108
$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
25109
   { (exit 1); exit 1; }; };;
 
25110
  esac
 
25111
done
 
25112
 
 
25113
 
 
25114
# If the user did not use the arguments to specify the items to instantiate,
 
25115
# then the envvar interface is used.  Set only those that are not.
 
25116
# We use the long form for the default assignment because of an extremely
 
25117
# bizarre bug on SunOS 4.1.3.
 
25118
if $ac_need_defaults; then
 
25119
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
25120
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
25121
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
25122
fi
 
25123
 
 
25124
# Have a temporary directory for convenience.  Make it in the build tree
 
25125
# simply because there is no reason against having it here, and in addition,
 
25126
# creating and moving files from /tmp can sometimes cause problems.
 
25127
# Hook for its removal unless debugging.
 
25128
# Note that there is a small window in which the directory will not be cleaned:
 
25129
# after its creation but before its name has been assigned to `$tmp'.
 
25130
$debug ||
 
25131
{
 
25132
  tmp=
 
25133
  trap 'exit_status=$?
 
25134
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 
25135
' 0
 
25136
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
25137
}
 
25138
# Create a (secure) tmp directory for tmp files.
 
25139
 
 
25140
{
 
25141
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
25142
  test -n "$tmp" && test -d "$tmp"
 
25143
}  ||
 
25144
{
 
25145
  tmp=./conf$$-$RANDOM
 
25146
  (umask 077 && mkdir "$tmp")
 
25147
} ||
 
25148
{
 
25149
   $as_echo "$as_me: cannot create a temporary directory in ." >&2
 
25150
   { (exit 1); exit 1; }
 
25151
}
 
25152
 
 
25153
# Set up the scripts for CONFIG_FILES section.
 
25154
# No need to generate them if there are no CONFIG_FILES.
 
25155
# This happens for instance with `./config.status config.h'.
 
25156
if test -n "$CONFIG_FILES"; then
 
25157
 
 
25158
 
 
25159
ac_cr='
 
 
b"'"
 
25160
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 
25161
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 
25162
  ac_cs_awk_cr='\\r'
 
25163
else
 
25164
  ac_cs_awk_cr=$ac_cr
 
25165
fi
 
25166
 
 
25167
echo 'BEGIN {' >"$tmp/subs1.awk" &&
 
25168
_ACEOF
 
25169
 
 
25170
 
 
25171
{
 
25172
  echo "cat >conf$$subs.awk <<_ACEOF" &&
 
25173
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 
25174
  echo "_ACEOF"
 
25175
} >conf$$subs.sh ||
 
25176
  { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
25177
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
25178
   { (exit 1); exit 1; }; }
 
25179
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
 
25180
ac_delim='%!_!# '
 
25181
for ac_last_try in false false false false false :; do
 
25182
  . ./conf$$subs.sh ||
 
25183
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
25184
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
25185
   { (exit 1); exit 1; }; }
 
25186
 
 
25187
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
 
25188
  if test $ac_delim_n = $ac_delim_num; then
 
25189
    break
 
25190
  elif $ac_last_try; then
 
25191
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
25192
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
25193
   { (exit 1); exit 1; }; }
 
25194
  else
 
25195
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
25196
  fi
 
25197
done
 
25198
rm -f conf$$subs.sh
 
25199
 
 
25200
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
25201
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
 
25202
_ACEOF
 
25203
sed -n '
 
25204
h
 
25205
s/^/S["/; s/!.*/"]=/
 
25206
p
 
25207
g
 
25208
s/^[^!]*!//
 
25209
:repl
 
25210
t repl
 
25211
s/'"$ac_delim"'$//
 
25212
t delim
 
25213
:nl
 
25214
h
 
25215
s/\(.\{148\}\).*/\1/
 
25216
t more1
 
25217
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 
25218
p
 
25219
n
 
25220
b repl
 
25221
:more1
 
25222
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
25223
p
 
25224
g
 
25225
s/.\{148\}//
 
25226
t nl
 
25227
:delim
 
25228
h
 
25229
s/\(.\{148\}\).*/\1/
 
25230
t more2
 
25231
s/["\\]/\\&/g; s/^/"/; s/$/"/
 
25232
p
 
25233
b
 
25234
:more2
 
25235
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 
25236
p
 
25237
g
 
25238
s/.\{148\}//
 
25239
t delim
 
25240
' <conf$$subs.awk | sed '
 
25241
/^[^""]/{
 
25242
  N
 
25243
  s/\n//
 
25244
}
 
25245
' >>$CONFIG_STATUS || ac_write_fail=1
 
25246
rm -f conf$$subs.awk
 
25247
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
25248
_ACAWK
 
25249
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
 
25250
  for (key in S) S_is_set[key] = 1
 
25251
  FS = ""
 
25252
 
 
25253
}
 
25254
{
 
25255
  line = $ 0
 
25256
  nfields = split(line, field, "@")
 
25257
  substed = 0
 
25258
  len = length(field[1])
 
25259
  for (i = 2; i < nfields; i++) {
 
25260
    key = field[i]
 
25261
    keylen = length(key)
 
25262
    if (S_is_set[key]) {
 
25263
      value = S[key]
 
25264
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 
25265
      len += length(value) + length(field[++i])
 
25266
      substed = 1
 
25267
    } else
 
25268
      len += 1 + keylen
 
25269
  }
 
25270
 
 
25271
  print line
 
25272
}
 
25273
 
 
25274
_ACAWK
 
25275
_ACEOF
 
25276
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
25277
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 
25278
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 
25279
else
 
25280
  cat
 
25281
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
 
25282
  || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
 
25283
$as_echo "$as_me: error: could not setup config files machinery" >&2;}
 
25284
   { (exit 1); exit 1; }; }
 
25285
_ACEOF
 
25286
 
 
25287
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
25288
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
25289
# trailing colons and then remove the whole line if VPATH becomes empty
 
25290
# (actually we leave an empty line to preserve line numbers).
 
25291
if test "x$srcdir" = x.; then
 
25292
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
25293
s/:*\$(srcdir):*/:/
 
25294
s/:*\${srcdir}:*/:/
 
25295
s/:*@srcdir@:*/:/
 
25296
s/^\([^=]*=[     ]*\):*/\1/
 
25297
s/:*$//
 
25298
s/^[^=]*=[       ]*$//
 
25299
}'
 
25300
fi
 
25301
 
 
25302
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
25303
fi # test -n "$CONFIG_FILES"
 
25304
 
 
25305
# Set up the scripts for CONFIG_HEADERS section.
 
25306
# No need to generate them if there are no CONFIG_HEADERS.
 
25307
# This happens for instance with `./config.status Makefile'.
 
25308
if test -n "$CONFIG_HEADERS"; then
 
25309
cat >"$tmp/defines.awk" <<\_ACAWK ||
 
25310
BEGIN {
 
25311
_ACEOF
 
25312
 
 
25313
# Transform confdefs.h into an awk script `defines.awk', embedded as
 
25314
# here-document in config.status, that substitutes the proper values into
 
25315
# config.h.in to produce config.h.
 
25316
 
 
25317
# Create a delimiter string that does not exist in confdefs.h, to ease
 
25318
# handling of long lines.
 
25319
ac_delim='%!_!# '
 
25320
for ac_last_try in false false :; do
 
25321
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
 
25322
  if test -z "$ac_t"; then
 
25323
    break
 
25324
  elif $ac_last_try; then
 
25325
    { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
 
25326
$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
 
25327
   { (exit 1); exit 1; }; }
 
25328
  else
 
25329
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
25330
  fi
 
25331
done
 
25332
 
 
25333
# For the awk script, D is an array of macro values keyed by name,
 
25334
# likewise P contains macro parameters if any.  Preserve backslash
 
25335
# newline sequences.
 
25336
 
 
25337
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
25338
sed -n '
 
25339
s/.\{148\}/&'"$ac_delim"'/g
 
25340
t rset
 
25341
:rset
 
25342
s/^[     ]*#[    ]*define[       ][      ]*/ /
 
25343
t def
 
25344
d
 
25345
:def
 
25346
s/\\$//
 
25347
t bsnl
 
25348
s/["\\]/\\&/g
 
25349
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
25350
D["\1"]=" \3"/p
 
25351
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
 
25352
d
 
25353
:bsnl
 
25354
s/["\\]/\\&/g
 
25355
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
 
25356
D["\1"]=" \3\\\\\\n"\\/p
 
25357
t cont
 
25358
s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
 
25359
t cont
 
25360
d
 
25361
:cont
 
25362
n
 
25363
s/.\{148\}/&'"$ac_delim"'/g
 
25364
t clear
 
25365
:clear
 
25366
s/\\$//
 
25367
t bsnlc
 
25368
s/["\\]/\\&/g; s/^/"/; s/$/"/p
 
25369
d
 
25370
:bsnlc
 
25371
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
 
25372
b cont
 
25373
' <confdefs.h | sed '
 
25374
s/'"$ac_delim"'/"\\\
 
25375
"/g' >>$CONFIG_STATUS || ac_write_fail=1
 
25376
 
 
25377
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
25378
  for (key in D) D_is_set[key] = 1
 
25379
  FS = ""
 
25380
}
 
25381
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
 
25382
  line = \$ 0
 
25383
  split(line, arg, " ")
 
25384
  if (arg[1] == "#") {
 
25385
    defundef = arg[2]
 
25386
    mac1 = arg[3]
 
25387
  } else {
 
25388
    defundef = substr(arg[1], 2)
 
25389
    mac1 = arg[2]
 
25390
  }
 
25391
  split(mac1, mac2, "(") #)
 
25392
  macro = mac2[1]
 
25393
  prefix = substr(line, 1, index(line, defundef) - 1)
 
25394
  if (D_is_set[macro]) {
 
25395
    # Preserve the white space surrounding the "#".
 
25396
    print prefix "define", macro P[macro] D[macro]
 
25397
    next
 
25398
  } else {
 
25399
    # Replace #undef with comments.  This is necessary, for example,
 
25400
    # in the case of _POSIX_SOURCE, which is predefined and required
 
25401
    # on some systems where configure will not decide to define it.
 
25402
    if (defundef == "undef") {
 
25403
      print "/*", prefix defundef, macro, "*/"
 
25404
      next
 
25405
    }
 
25406
  }
 
25407
}
 
25408
{ print }
 
25409
_ACAWK
 
25410
_ACEOF
 
25411
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
25412
  { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
 
25413
$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
 
25414
   { (exit 1); exit 1; }; }
 
25415
fi # test -n "$CONFIG_HEADERS"
 
25416
 
 
25417
 
 
25418
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
 
25419
shift
 
25420
for ac_tag
 
25421
do
 
25422
  case $ac_tag in
 
25423
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
25424
  esac
 
25425
  case $ac_mode$ac_tag in
 
25426
  :[FHL]*:*);;
 
25427
  :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
 
25428
$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
 
25429
   { (exit 1); exit 1; }; };;
 
25430
  :[FH]-) ac_tag=-:-;;
 
25431
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
25432
  esac
 
25433
  ac_save_IFS=$IFS
 
25434
  IFS=:
 
25435
  set x $ac_tag
 
25436
  IFS=$ac_save_IFS
 
25437
  shift
 
25438
  ac_file=$1
 
25439
  shift
 
25440
 
 
25441
  case $ac_mode in
 
25442
  :L) ac_source=$1;;
 
25443
  :[FH])
 
25444
    ac_file_inputs=
 
25445
    for ac_f
 
25446
    do
 
25447
      case $ac_f in
 
25448
      -) ac_f="$tmp/stdin";;
 
25449
      *) # Look for the file first in the build tree, then in the source tree
 
25450
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
25451
         # because $ac_f cannot contain `:'.
 
25452
         test -f "$ac_f" ||
 
25453
           case $ac_f in
 
25454
           [\\/$]*) false;;
 
25455
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
25456
           esac ||
 
25457
           { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
 
25458
$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
 
25459
   { (exit 1); exit 1; }; };;
 
25460
      esac
 
25461
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
 
25462
      ac_file_inputs="$ac_file_inputs '$ac_f'"
 
25463
    done
 
25464
 
 
25465
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
25466
    # use $as_me), people would be surprised to read:
 
25467
    #    /* config.h.  Generated by config.status.  */
 
25468
    configure_input='Generated from '`
 
25469
          $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
 
25470
        `' by configure.'
 
25471
    if test x"$ac_file" != x-; then
 
25472
      configure_input="$ac_file.  $configure_input"
 
25473
      { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
 
25474
$as_echo "$as_me: creating $ac_file" >&6;}
 
25475
    fi
 
25476
    # Neutralize special characters interpreted by sed in replacement strings.
 
25477
    case $configure_input in #(
 
25478
    *\&* | *\|* | *\\* )
 
25479
       ac_sed_conf_input=`$as_echo "$configure_input" |
 
25480
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
 
25481
    *) ac_sed_conf_input=$configure_input;;
 
25482
    esac
 
25483
 
 
25484
    case $ac_tag in
 
25485
    *:-:* | *:-) cat >"$tmp/stdin" \
 
25486
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 
25487
$as_echo "$as_me: error: could not create $ac_file" >&2;}
 
25488
   { (exit 1); exit 1; }; } ;;
 
25489
    esac
 
25490
    ;;
 
25491
  esac
 
25492
 
 
25493
  ac_dir=`$as_dirname -- "$ac_file" ||
 
25494
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
25495
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
25496
         X"$ac_file" : 'X\(//\)$' \| \
 
25497
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
25498
$as_echo X"$ac_file" |
 
25499
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
25500
            s//\1/
 
25501
            q
 
25502
          }
 
25503
          /^X\(\/\/\)[^/].*/{
 
25504
            s//\1/
 
25505
            q
 
25506
          }
 
25507
          /^X\(\/\/\)$/{
 
25508
            s//\1/
 
25509
            q
 
25510
          }
 
25511
          /^X\(\/\).*/{
 
25512
            s//\1/
 
25513
            q
 
25514
          }
 
25515
          s/.*/./; q'`
 
25516
  { as_dir="$ac_dir"
 
25517
  case $as_dir in #(
 
25518
  -*) as_dir=./$as_dir;;
 
25519
  esac
 
25520
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
25521
    as_dirs=
 
25522
    while :; do
 
25523
      case $as_dir in #(
 
25524
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
25525
      *) as_qdir=$as_dir;;
 
25526
      esac
 
25527
      as_dirs="'$as_qdir' $as_dirs"
 
25528
      as_dir=`$as_dirname -- "$as_dir" ||
 
25529
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
25530
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
25531
         X"$as_dir" : 'X\(//\)$' \| \
 
25532
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
25533
$as_echo X"$as_dir" |
 
25534
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
25535
            s//\1/
 
25536
            q
 
25537
          }
 
25538
          /^X\(\/\/\)[^/].*/{
 
25539
            s//\1/
 
25540
            q
 
25541
          }
 
25542
          /^X\(\/\/\)$/{
 
25543
            s//\1/
 
25544
            q
 
25545
          }
 
25546
          /^X\(\/\).*/{
 
25547
            s//\1/
 
25548
            q
 
25549
          }
 
25550
          s/.*/./; q'`
 
25551
      test -d "$as_dir" && break
 
25552
    done
 
25553
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
25554
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
25555
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
25556
   { (exit 1); exit 1; }; }; }
 
25557
  ac_builddir=.
 
25558
 
 
25559
case "$ac_dir" in
 
25560
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
25561
*)
 
25562
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 
25563
  # A ".." for each directory in $ac_dir_suffix.
 
25564
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 
25565
  case $ac_top_builddir_sub in
 
25566
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
25567
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
25568
  esac ;;
 
25569
esac
 
25570
ac_abs_top_builddir=$ac_pwd
 
25571
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
25572
# for backward compatibility:
 
25573
ac_top_builddir=$ac_top_build_prefix
 
25574
 
 
25575
case $srcdir in
 
25576
  .)  # We are building in place.
 
25577
    ac_srcdir=.
 
25578
    ac_top_srcdir=$ac_top_builddir_sub
 
25579
    ac_abs_top_srcdir=$ac_pwd ;;
 
25580
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
25581
    ac_srcdir=$srcdir$ac_dir_suffix;
 
25582
    ac_top_srcdir=$srcdir
 
25583
    ac_abs_top_srcdir=$srcdir ;;
 
25584
  *) # Relative name.
 
25585
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
25586
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
25587
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
25588
esac
 
25589
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
25590
 
 
25591
 
 
25592
  case $ac_mode in
 
25593
  :F)
 
25594
  #
 
25595
  # CONFIG_FILE
 
25596
  #
 
25597
 
 
25598
  case $INSTALL in
 
25599
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
25600
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
25601
  esac
 
25602
  ac_MKDIR_P=$MKDIR_P
 
25603
  case $MKDIR_P in
 
25604
  [\\/$]* | ?:[\\/]* ) ;;
 
25605
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
 
25606
  esac
 
25607
_ACEOF
 
25608
 
 
25609
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
25610
# If the template does not know about datarootdir, expand it.
 
25611
# FIXME: This hack should be removed a few years after 2.60.
 
25612
ac_datarootdir_hack=; ac_datarootdir_seen=
 
25613
 
 
25614
ac_sed_dataroot='
 
25615
/datarootdir/ {
 
25616
  p
 
25617
  q
 
25618
}
 
25619
/@datadir@/p
 
25620
/@docdir@/p
 
25621
/@infodir@/p
 
25622
/@localedir@/p
 
25623
/@mandir@/p
 
25624
'
 
25625
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
 
25626
*datarootdir*) ac_datarootdir_seen=yes;;
 
25627
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
25628
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
25629
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
25630
_ACEOF
 
25631
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
25632
  ac_datarootdir_hack='
 
25633
  s&@datadir@&$datadir&g
 
25634
  s&@docdir@&$docdir&g
 
25635
  s&@infodir@&$infodir&g
 
25636
  s&@localedir@&$localedir&g
 
25637
  s&@mandir@&$mandir&g
 
25638
    s&\\\${datarootdir}&$datarootdir&g' ;;
 
25639
esac
 
25640
_ACEOF
 
25641
 
 
25642
# Neutralize VPATH when `$srcdir' = `.'.
 
25643
# Shell code in configure.ac might set extrasub.
 
25644
# FIXME: do we really want to maintain this feature?
 
25645
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 
25646
ac_sed_extra="$ac_vpsub
 
25647
$extrasub
 
25648
_ACEOF
 
25649
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 
25650
:t
 
25651
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
25652
s|@configure_input@|$ac_sed_conf_input|;t t
 
25653
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
25654
s&@top_build_prefix@&$ac_top_build_prefix&;t t
 
25655
s&@srcdir@&$ac_srcdir&;t t
 
25656
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
25657
s&@top_srcdir@&$ac_top_srcdir&;t t
 
25658
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
25659
s&@builddir@&$ac_builddir&;t t
 
25660
s&@abs_builddir@&$ac_abs_builddir&;t t
 
25661
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
25662
s&@INSTALL@&$ac_INSTALL&;t t
 
25663
s&@MKDIR_P@&$ac_MKDIR_P&;t t
 
25664
$ac_datarootdir_hack
 
25665
"
 
25666
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
 
25667
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 
25668
$as_echo "$as_me: error: could not create $ac_file" >&2;}
 
25669
   { (exit 1); exit 1; }; }
 
25670
 
 
25671
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
25672
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 
25673
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 
25674
  { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
25675
which seems to be undefined.  Please make sure it is defined." >&5
 
25676
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
25677
which seems to be undefined.  Please make sure it is defined." >&2;}
 
25678
 
 
25679
  rm -f "$tmp/stdin"
 
25680
  case $ac_file in
 
25681
  -) cat "$tmp/out" && rm -f "$tmp/out";;
 
25682
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
 
25683
  esac \
 
25684
  || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 
25685
$as_echo "$as_me: error: could not create $ac_file" >&2;}
 
25686
   { (exit 1); exit 1; }; }
 
25687
 ;;
 
25688
  :H)
 
25689
  #
 
25690
  # CONFIG_HEADER
 
25691
  #
 
25692
  if test x"$ac_file" != x-; then
 
25693
    {
 
25694
      $as_echo "/* $configure_input  */" \
 
25695
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
 
25696
    } >"$tmp/config.h" \
 
25697
      || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 
25698
$as_echo "$as_me: error: could not create $ac_file" >&2;}
 
25699
   { (exit 1); exit 1; }; }
 
25700
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
 
25701
      { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
25702
$as_echo "$as_me: $ac_file is unchanged" >&6;}
 
25703
    else
 
25704
      rm -f "$ac_file"
 
25705
      mv "$tmp/config.h" "$ac_file" \
 
25706
        || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
 
25707
$as_echo "$as_me: error: could not create $ac_file" >&2;}
 
25708
   { (exit 1); exit 1; }; }
 
25709
    fi
 
25710
  else
 
25711
    $as_echo "/* $configure_input  */" \
 
25712
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
 
25713
      || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
 
25714
$as_echo "$as_me: error: could not create -" >&2;}
 
25715
   { (exit 1); exit 1; }; }
 
25716
  fi
 
25717
# Compute "$ac_file"'s index in $config_headers.
 
25718
_am_arg="$ac_file"
 
25719
_am_stamp_count=1
 
25720
for _am_header in $config_headers :; do
 
25721
  case $_am_header in
 
25722
    $_am_arg | $_am_arg:* )
 
25723
      break ;;
 
25724
    * )
 
25725
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
25726
  esac
 
25727
done
 
25728
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
 
25729
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
25730
         X"$_am_arg" : 'X\(//\)[^/]' \| \
 
25731
         X"$_am_arg" : 'X\(//\)$' \| \
 
25732
         X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
 
25733
$as_echo X"$_am_arg" |
 
25734
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
25735
            s//\1/
 
25736
            q
 
25737
          }
 
25738
          /^X\(\/\/\)[^/].*/{
 
25739
            s//\1/
 
25740
            q
 
25741
          }
 
25742
          /^X\(\/\/\)$/{
 
25743
            s//\1/
 
25744
            q
 
25745
          }
 
25746
          /^X\(\/\).*/{
 
25747
            s//\1/
 
25748
            q
 
25749
          }
 
25750
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
25751
 ;;
 
25752
 
 
25753
  :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
 
25754
$as_echo "$as_me: executing $ac_file commands" >&6;}
 
25755
 ;;
 
25756
  esac
 
25757
 
 
25758
 
 
25759
  case $ac_file$ac_mode in
 
25760
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
25761
  # Strip MF so we end up with the name of the file.
 
25762
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
25763
  # Check whether this is an Automake generated Makefile or not.
 
25764
  # We used to match only the files named `Makefile.in', but
 
25765
  # some people rename them; so instead we look at the file content.
 
25766
  # Grep'ing the first line is not enough: some people post-process
 
25767
  # each Makefile.in and add a new line on top of each file to say so.
 
25768
  # Grep'ing the whole file is not good either: AIX grep has a line
 
25769
  # limit of 2048, but all sed's we know have understand at least 4000.
 
25770
  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
25771
    dirpart=`$as_dirname -- "$mf" ||
 
25772
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
25773
         X"$mf" : 'X\(//\)[^/]' \| \
 
25774
         X"$mf" : 'X\(//\)$' \| \
 
25775
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 
25776
$as_echo X"$mf" |
 
25777
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
25778
            s//\1/
 
25779
            q
 
25780
          }
 
25781
          /^X\(\/\/\)[^/].*/{
 
25782
            s//\1/
 
25783
            q
 
25784
          }
 
25785
          /^X\(\/\/\)$/{
 
25786
            s//\1/
 
25787
            q
 
25788
          }
 
25789
          /^X\(\/\).*/{
 
25790
            s//\1/
 
25791
            q
 
25792
          }
 
25793
          s/.*/./; q'`
 
25794
  else
 
25795
    continue
 
25796
  fi
 
25797
  # Extract the definition of DEPDIR, am__include, and am__quote
 
25798
  # from the Makefile without running `make'.
 
25799
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
25800
  test -z "$DEPDIR" && continue
 
25801
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
25802
  test -z "am__include" && continue
 
25803
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
25804
  # When using ansi2knr, U may be empty or an underscore; expand it
 
25805
  U=`sed -n 's/^U = //p' < "$mf"`
 
25806
  # Find all dependency output files, they are included files with
 
25807
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
25808
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
25809
  # expansion.
 
25810
  for file in `sed -n "
 
25811
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
25812
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
25813
    # Make sure the directory exists.
 
25814
    test -f "$dirpart/$file" && continue
 
25815
    fdir=`$as_dirname -- "$file" ||
 
25816
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
25817
         X"$file" : 'X\(//\)[^/]' \| \
 
25818
         X"$file" : 'X\(//\)$' \| \
 
25819
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 
25820
$as_echo X"$file" |
 
25821
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
25822
            s//\1/
 
25823
            q
 
25824
          }
 
25825
          /^X\(\/\/\)[^/].*/{
 
25826
            s//\1/
 
25827
            q
 
25828
          }
 
25829
          /^X\(\/\/\)$/{
 
25830
            s//\1/
 
25831
            q
 
25832
          }
 
25833
          /^X\(\/\).*/{
 
25834
            s//\1/
 
25835
            q
 
25836
          }
 
25837
          s/.*/./; q'`
 
25838
    { as_dir=$dirpart/$fdir
 
25839
  case $as_dir in #(
 
25840
  -*) as_dir=./$as_dir;;
 
25841
  esac
 
25842
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
25843
    as_dirs=
 
25844
    while :; do
 
25845
      case $as_dir in #(
 
25846
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 
25847
      *) as_qdir=$as_dir;;
 
25848
      esac
 
25849
      as_dirs="'$as_qdir' $as_dirs"
 
25850
      as_dir=`$as_dirname -- "$as_dir" ||
 
25851
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
25852
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
25853
         X"$as_dir" : 'X\(//\)$' \| \
 
25854
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
25855
$as_echo X"$as_dir" |
 
25856
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
25857
            s//\1/
 
25858
            q
 
25859
          }
 
25860
          /^X\(\/\/\)[^/].*/{
 
25861
            s//\1/
 
25862
            q
 
25863
          }
 
25864
          /^X\(\/\/\)$/{
 
25865
            s//\1/
 
25866
            q
 
25867
          }
 
25868
          /^X\(\/\).*/{
 
25869
            s//\1/
 
25870
            q
 
25871
          }
 
25872
          s/.*/./; q'`
 
25873
      test -d "$as_dir" && break
 
25874
    done
 
25875
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
25876
  } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
25877
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
25878
   { (exit 1); exit 1; }; }; }
 
25879
    # echo "creating $dirpart/$file"
 
25880
    echo '# dummy' > "$dirpart/$file"
 
25881
  done
 
25882
done
 
25883
 ;;
 
25884
 
 
25885
  esac
 
25886
done # for ac_tag
 
25887
 
 
25888
 
 
25889
{ (exit 0); exit 0; }
 
25890
_ACEOF
 
25891
chmod +x $CONFIG_STATUS
 
25892
ac_clean_files=$ac_clean_files_save
 
25893
 
 
25894
test $ac_write_fail = 0 ||
 
25895
  { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
 
25896
$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
 
25897
   { (exit 1); exit 1; }; }
 
25898
 
 
25899
 
 
25900
# configure is writing to config.log, and then calls config.status.
 
25901
# config.status does its own redirection, appending to config.log.
 
25902
# Unfortunately, on DOS this fails, as config.log is still kept open
 
25903
# by configure, so config.status won't be able to write to it; its
 
25904
# output is simply discarded.  So we exec the FD to /dev/null,
 
25905
# effectively closing config.log, so it can be properly (re)opened and
 
25906
# appended to by config.status.  When coming back to configure, we
 
25907
# need to make the FD available again.
 
25908
if test "$no_create" != yes; then
 
25909
  ac_cs_success=:
 
25910
  ac_config_status_args=
 
25911
  test "$silent" = yes &&
 
25912
    ac_config_status_args="$ac_config_status_args --quiet"
 
25913
  exec 5>/dev/null
 
25914
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
25915
  exec 5>>config.log
 
25916
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
25917
  # would make configure fail if this is the last instruction.
 
25918
  $ac_cs_success || { (exit 1); exit 1; }
 
25919
fi
 
25920
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
 
25921
  { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
 
25922
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
 
25923
fi
 
25924
 
 
25925
 
 
25926
{ $as_echo "$as_me:$LINENO: result:
 
25927
 
 
25928
                **************************************
 
25929
                * Finished.  Run make to compile Ember.
 
25930
                * Note that you also need to install the media. This can be gotten in a couple of different ways.
 
25931
                * The easiest way is to use the rsync make target (which uses the rsync program to update the media.).
 
25932
                * If you're compiling from git and want to use the development version, do:
 
25933
                *
 
25934
                * make devmedia
 
25935
                *
 
25936
                * If you're using a release version, you should however instead do:
 
25937
                *
 
25938
                * make releasemediarsync
 
25939
                *
 
25940
                * Note that both of these make targets will just fetch and install the files directly, bypassing normal \"make install\" producures. They should therefore not be used if you don't want to pollute your installation directory, and shouldn't be used if you install to a system directory.
 
25941
                *
 
25942
                * A third way is to get the media tarball directly. This only works for release versions however.
 
25943
                * You can find these media tarballs at http://amber.worldforge.org/WFUT .
 
25944
                * The media should be installed to PREFIX/share/ember/media
 
25945
                * so that you get PREFIX/share/ember/media/user and PREFIX/share/ember/media/shared.
 
25946
                * More information can be found at the Ember page at http://www.worldforge.org
 
25947
                **************************************
 
25948
 
 
25949
        " >&5
 
25950
$as_echo "
 
25951
 
 
25952
                **************************************
 
25953
                * Finished.  Run make to compile Ember.
 
25954
                * Note that you also need to install the media. This can be gotten in a couple of different ways.
 
25955
                * The easiest way is to use the rsync make target (which uses the rsync program to update the media.).
 
25956
                * If you're compiling from git and want to use the development version, do:
 
25957
                *
 
25958
                * make devmedia
 
25959
                *
 
25960
                * If you're using a release version, you should however instead do:
 
25961
                *
 
25962
                * make releasemediarsync
 
25963
                *
 
25964
                * Note that both of these make targets will just fetch and install the files directly, bypassing normal \"make install\" producures. They should therefore not be used if you don't want to pollute your installation directory, and shouldn't be used if you install to a system directory.
 
25965
                *
 
25966
                * A third way is to get the media tarball directly. This only works for release versions however.
 
25967
                * You can find these media tarballs at http://amber.worldforge.org/WFUT .
 
25968
                * The media should be installed to PREFIX/share/ember/media
 
25969
                * so that you get PREFIX/share/ember/media/user and PREFIX/share/ember/media/shared.
 
25970
                * More information can be found at the Ember page at http://www.worldforge.org
 
25971
                **************************************
 
25972
 
 
25973
        " >&6; }
 
25974