~ubuntu-branches/ubuntu/vivid/linphone/vivid

« back to all changes in this revision

Viewing changes to mediastreamer2/configure

  • Committer: Bazaar Package Importer
  • Author(s): Samuel Mimram
  • Date: 2006-11-15 10:34:50 UTC
  • mfrom: (1.2.1 upstream) (2.1.8 feisty)
  • Revision ID: james.westby@ubuntu.com-20061115103450-qgafwcks2lkhctlj
* New upstream release.
* Enable video support.
* Fix mismatched #endif in mscommon.h, closes: #398307.

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.60a for mediastreamer 2.0.0.
 
4
#
 
5
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
6
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
 
7
# This configure script is free software; the Free Software Foundation
 
8
# gives unlimited permission to copy, distribute and modify it.
 
9
## --------------------- ##
 
10
## M4sh Initialization.  ##
 
11
## --------------------- ##
 
12
 
 
13
# Be Bourne compatible
 
14
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
15
  emulate sh
 
16
  NULLCMD=:
 
17
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
18
  # is contrary to our usage.  Disable this feature.
 
19
  alias -g '${1+"$@"}'='"$@"'
 
20
  setopt NO_GLOB_SUBST
 
21
else
 
22
  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
 
23
fi
 
24
BIN_SH=xpg4; export BIN_SH # for Tru64
 
25
DUALCASE=1; export DUALCASE # for MKS sh
 
26
 
 
27
 
 
28
# PATH needs CR
 
29
# Avoid depending upon Character Ranges.
 
30
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
31
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
32
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
33
as_cr_digits='0123456789'
 
34
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
35
 
 
36
# The user is always right.
 
37
if test "${PATH_SEPARATOR+set}" != set; then
 
38
  echo "#! /bin/sh" >conf$$.sh
 
39
  echo  "exit 0"   >>conf$$.sh
 
40
  chmod +x conf$$.sh
 
41
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
42
    PATH_SEPARATOR=';'
 
43
  else
 
44
    PATH_SEPARATOR=:
 
45
  fi
 
46
  rm -f conf$$.sh
 
47
fi
 
48
 
 
49
# Support unset when possible.
 
50
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
51
  as_unset=unset
 
52
else
 
53
  as_unset=false
 
54
fi
 
55
 
 
56
 
 
57
# IFS
 
58
# We need space, tab and new line, in precisely that order.  Quoting is
 
59
# there to prevent editors from complaining about space-tab.
 
60
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
61
# splitting by setting IFS to empty value.)
 
62
as_nl='
 
63
'
 
64
IFS=" ""        $as_nl"
 
65
 
 
66
# Find who we are.  Look in the path if we contain no directory separator.
 
67
case $0 in
 
68
  *[\\/]* ) as_myself=$0 ;;
 
69
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
70
for as_dir in $PATH
 
71
do
 
72
  IFS=$as_save_IFS
 
73
  test -z "$as_dir" && as_dir=.
 
74
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
75
done
 
76
IFS=$as_save_IFS
 
77
 
 
78
     ;;
 
79
esac
 
80
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
81
# in which case we are not to be found in the path.
 
82
if test "x$as_myself" = x; then
 
83
  as_myself=$0
 
84
fi
 
85
if test ! -f "$as_myself"; then
 
86
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
87
  { (exit 1); exit 1; }
 
88
fi
 
89
 
 
90
# Work around bugs in pre-3.0 UWIN ksh.
 
91
for as_var in ENV MAIL MAILPATH
 
92
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
93
done
 
94
PS1='$ '
 
95
PS2='> '
 
96
PS4='+ '
 
97
 
 
98
# NLS nuisances.
 
99
for as_var in \
 
100
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
101
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
102
  LC_TELEPHONE LC_TIME
 
103
do
 
104
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
105
    eval $as_var=C; export $as_var
 
106
  else
 
107
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
108
  fi
 
109
done
 
110
 
 
111
# Required to use basename.
 
112
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
113
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
114
  as_expr=expr
 
115
else
 
116
  as_expr=false
 
117
fi
 
118
 
 
119
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
120
  as_basename=basename
 
121
else
 
122
  as_basename=false
 
123
fi
 
124
 
 
125
 
 
126
# Name of the executable.
 
127
as_me=`$as_basename -- "$0" ||
 
128
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
129
         X"$0" : 'X\(//\)$' \| \
 
130
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
131
echo X/"$0" |
 
132
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
133
            s//\1/
 
134
            q
 
135
          }
 
136
          /^X\/\(\/\/\)$/{
 
137
            s//\1/
 
138
            q
 
139
          }
 
140
          /^X\/\(\/\).*/{
 
141
            s//\1/
 
142
            q
 
143
          }
 
144
          s/.*/./; q'`
 
145
 
 
146
# CDPATH.
 
147
$as_unset CDPATH
 
148
 
 
149
 
 
150
if test "x$CONFIG_SHELL" = x; then
 
151
  if (eval ":") 2>/dev/null; then
 
152
  as_have_required=yes
 
153
else
 
154
  as_have_required=no
 
155
fi
 
156
 
 
157
  if test $as_have_required = yes &&     (eval ":
 
158
(as_func_return () {
 
159
  (exit \$1)
 
160
}
 
161
as_func_success () {
 
162
  as_func_return 0
 
163
}
 
164
as_func_failure () {
 
165
  as_func_return 1
 
166
}
 
167
as_func_ret_success () {
 
168
  return 0
 
169
}
 
170
as_func_ret_failure () {
 
171
  return 1
 
172
}
 
173
 
 
174
exitcode=0
 
175
if as_func_success; then
 
176
  :
 
177
else
 
178
  exitcode=1
 
179
  echo as_func_success failed.
 
180
fi
 
181
 
 
182
if as_func_failure; then
 
183
  exitcode=1
 
184
  echo as_func_failure succeeded.
 
185
fi
 
186
 
 
187
if as_func_ret_success; then
 
188
  :
 
189
else
 
190
  exitcode=1
 
191
  echo as_func_ret_success failed.
 
192
fi
 
193
 
 
194
if as_func_ret_failure; then
 
195
  exitcode=1
 
196
  echo as_func_ret_failure succeeded.
 
197
fi
 
198
 
 
199
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
200
  :
 
201
else
 
202
  exitcode=1
 
203
  echo positional parameters were not saved.
 
204
fi
 
205
 
 
206
test \$exitcode = 0) || { (exit 1); exit 1; }
 
207
 
 
208
(
 
209
  as_lineno_1=\$LINENO
 
210
  as_lineno_2=\$LINENO
 
211
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
 
212
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
 
213
") 2> /dev/null; then
 
214
  :
 
215
else
 
216
  as_candidate_shells=
 
217
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
218
for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
219
do
 
220
  IFS=$as_save_IFS
 
221
  test -z "$as_dir" && as_dir=.
 
222
  case $as_dir in
 
223
         /*)
 
224
           for as_base in sh bash ksh sh5; do
 
225
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
 
226
           done;;
 
227
       esac
 
228
done
 
229
IFS=$as_save_IFS
 
230
 
 
231
 
 
232
      for as_shell in $as_candidate_shells $SHELL; do
 
233
         # Try only shells that exist, to save several forks.
 
234
         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
235
                { ("$as_shell") 2> /dev/null <<\_ASEOF
 
236
# Be Bourne compatible
 
237
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
238
  emulate sh
 
239
  NULLCMD=:
 
240
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
241
  # is contrary to our usage.  Disable this feature.
 
242
  alias -g '${1+"$@"}'='"$@"'
 
243
  setopt NO_GLOB_SUBST
 
244
else
 
245
  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
 
246
fi
 
247
BIN_SH=xpg4; export BIN_SH # for Tru64
 
248
DUALCASE=1; export DUALCASE # for MKS sh
 
249
 
 
250
:
 
251
_ASEOF
 
252
}; then
 
253
  CONFIG_SHELL=$as_shell
 
254
               as_have_required=yes
 
255
               if { "$as_shell" 2> /dev/null <<\_ASEOF
 
256
# Be Bourne compatible
 
257
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
258
  emulate sh
 
259
  NULLCMD=:
 
260
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
261
  # is contrary to our usage.  Disable this feature.
 
262
  alias -g '${1+"$@"}'='"$@"'
 
263
  setopt NO_GLOB_SUBST
 
264
else
 
265
  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
 
266
fi
 
267
BIN_SH=xpg4; export BIN_SH # for Tru64
 
268
DUALCASE=1; export DUALCASE # for MKS sh
 
269
 
 
270
:
 
271
(as_func_return () {
 
272
  (exit $1)
 
273
}
 
274
as_func_success () {
 
275
  as_func_return 0
 
276
}
 
277
as_func_failure () {
 
278
  as_func_return 1
 
279
}
 
280
as_func_ret_success () {
 
281
  return 0
 
282
}
 
283
as_func_ret_failure () {
 
284
  return 1
 
285
}
 
286
 
 
287
exitcode=0
 
288
if as_func_success; then
 
289
  :
 
290
else
 
291
  exitcode=1
 
292
  echo as_func_success failed.
 
293
fi
 
294
 
 
295
if as_func_failure; then
 
296
  exitcode=1
 
297
  echo as_func_failure succeeded.
 
298
fi
 
299
 
 
300
if as_func_ret_success; then
 
301
  :
 
302
else
 
303
  exitcode=1
 
304
  echo as_func_ret_success failed.
 
305
fi
 
306
 
 
307
if as_func_ret_failure; then
 
308
  exitcode=1
 
309
  echo as_func_ret_failure succeeded.
 
310
fi
 
311
 
 
312
if ( set x; as_func_ret_success y && test x = "$1" ); then
 
313
  :
 
314
else
 
315
  exitcode=1
 
316
  echo positional parameters were not saved.
 
317
fi
 
318
 
 
319
test $exitcode = 0) || { (exit 1); exit 1; }
 
320
 
 
321
(
 
322
  as_lineno_1=$LINENO
 
323
  as_lineno_2=$LINENO
 
324
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
325
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
 
326
 
 
327
_ASEOF
 
328
}; then
 
329
  break
 
330
fi
 
331
 
 
332
fi
 
333
 
 
334
      done
 
335
 
 
336
      if test "x$CONFIG_SHELL" != x; then
 
337
  for as_var in BASH_ENV ENV
 
338
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
339
        done
 
340
        export CONFIG_SHELL
 
341
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
 
342
fi
 
343
 
 
344
 
 
345
    if test $as_have_required = no; then
 
346
  echo This script requires a shell more modern than all the
 
347
      echo shells that I found on your system.  Please install a
 
348
      echo modern shell, or manually run the script under such a
 
349
      echo shell if you do have one.
 
350
      { (exit 1); exit 1; }
 
351
fi
 
352
 
 
353
 
 
354
fi
 
355
 
 
356
fi
 
357
 
 
358
 
 
359
 
 
360
(eval "as_func_return () {
 
361
  (exit \$1)
 
362
}
 
363
as_func_success () {
 
364
  as_func_return 0
 
365
}
 
366
as_func_failure () {
 
367
  as_func_return 1
 
368
}
 
369
as_func_ret_success () {
 
370
  return 0
 
371
}
 
372
as_func_ret_failure () {
 
373
  return 1
 
374
}
 
375
 
 
376
exitcode=0
 
377
if as_func_success; then
 
378
  :
 
379
else
 
380
  exitcode=1
 
381
  echo as_func_success failed.
 
382
fi
 
383
 
 
384
if as_func_failure; then
 
385
  exitcode=1
 
386
  echo as_func_failure succeeded.
 
387
fi
 
388
 
 
389
if as_func_ret_success; then
 
390
  :
 
391
else
 
392
  exitcode=1
 
393
  echo as_func_ret_success failed.
 
394
fi
 
395
 
 
396
if as_func_ret_failure; then
 
397
  exitcode=1
 
398
  echo as_func_ret_failure succeeded.
 
399
fi
 
400
 
 
401
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
402
  :
 
403
else
 
404
  exitcode=1
 
405
  echo positional parameters were not saved.
 
406
fi
 
407
 
 
408
test \$exitcode = 0") || {
 
409
  echo No shell found that supports shell functions.
 
410
  echo Please tell autoconf@gnu.org about your system,
 
411
  echo including any error possibly output before this
 
412
  echo message
 
413
}
 
414
 
 
415
 
 
416
 
 
417
  as_lineno_1=$LINENO
 
418
  as_lineno_2=$LINENO
 
419
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
420
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
421
 
 
422
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
423
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
424
  # line-number line after each line using $LINENO; the second 'sed'
 
425
  # does the real work.  The second script uses 'N' to pair each
 
426
  # line-number line with the line containing $LINENO, and appends
 
427
  # trailing '-' during substitution so that $LINENO is not a special
 
428
  # case at line end.
 
429
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
430
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
431
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
432
  sed -n '
 
433
    p
 
434
    /[$]LINENO/=
 
435
  ' <$as_myself |
 
436
    sed '
 
437
      s/[$]LINENO.*/&-/
 
438
      t lineno
 
439
      b
 
440
      :lineno
 
441
      N
 
442
      :loop
 
443
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
444
      t loop
 
445
      s/-\n.*//
 
446
    ' >$as_me.lineno &&
 
447
  chmod +x "$as_me.lineno" ||
 
448
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
449
   { (exit 1); exit 1; }; }
 
450
 
 
451
  # Don't try to exec as it changes $[0], causing all sort of problems
 
452
  # (the dirname of $[0] is not the place where we might find the
 
453
  # original and so on.  Autoconf is especially sensitive to this).
 
454
  . "./$as_me.lineno"
 
455
  # Exit status is that of the last command.
 
456
  exit
 
457
}
 
458
 
 
459
 
 
460
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
461
  as_dirname=dirname
 
462
else
 
463
  as_dirname=false
 
464
fi
 
465
 
 
466
ECHO_C= ECHO_N= ECHO_T=
 
467
case `echo -n x` in
 
468
-n*)
 
469
  case `echo 'x\c'` in
 
470
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
471
  *)   ECHO_C='\c';;
 
472
  esac;;
 
473
*)
 
474
  ECHO_N='-n';;
 
475
esac
 
476
 
 
477
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
478
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
479
  as_expr=expr
 
480
else
 
481
  as_expr=false
 
482
fi
 
483
 
 
484
rm -f conf$$ conf$$.exe conf$$.file
 
485
if test -d conf$$.dir; then
 
486
  rm -f conf$$.dir/conf$$.file
 
487
else
 
488
  rm -f conf$$.dir
 
489
  mkdir conf$$.dir
 
490
fi
 
491
echo >conf$$.file
 
492
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
493
  as_ln_s='ln -s'
 
494
  # ... but there are two gotchas:
 
495
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
496
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
497
  # In both cases, we have to default to `cp -p'.
 
498
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
499
    as_ln_s='cp -p'
 
500
elif ln conf$$.file conf$$ 2>/dev/null; then
 
501
  as_ln_s=ln
 
502
else
 
503
  as_ln_s='cp -p'
 
504
fi
 
505
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
506
rmdir conf$$.dir 2>/dev/null
 
507
 
 
508
if mkdir -p . 2>/dev/null; then
 
509
  as_mkdir_p=:
 
510
else
 
511
  test -d ./-p && rmdir ./-p
 
512
  as_mkdir_p=false
 
513
fi
 
514
 
 
515
# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
 
516
# systems may use methods other than mode bits to determine executability.
 
517
cat >conf$$.file <<_ASEOF
 
518
#! /bin/sh
 
519
exit 0
 
520
_ASEOF
 
521
chmod +x conf$$.file
 
522
if test -x conf$$.file >/dev/null 2>&1; then
 
523
  as_executable_p="test -x"
 
524
else
 
525
  as_executable_p=:
 
526
fi
 
527
rm -f conf$$.file
 
528
 
 
529
# Sed expression to map a string onto a valid CPP name.
 
530
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
531
 
 
532
# Sed expression to map a string onto a valid variable name.
 
533
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
534
 
 
535
 
 
536
 
 
537
 
 
538
# Check that we are running under the correct shell.
 
539
SHELL=${CONFIG_SHELL-/bin/sh}
 
540
 
 
541
case X$ECHO in
 
542
X*--fallback-echo)
 
543
  # Remove one level of quotation (which was required for Make).
 
544
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
545
  ;;
 
546
esac
 
547
 
 
548
echo=${ECHO-echo}
 
549
if test "X$1" = X--no-reexec; then
 
550
  # Discard the --no-reexec flag, and continue.
 
551
  shift
 
552
elif test "X$1" = X--fallback-echo; then
 
553
  # Avoid inline document here, it may be left over
 
554
  :
 
555
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
 
556
  # Yippee, $echo works!
 
557
  :
 
558
else
 
559
  # Restart under the correct shell.
 
560
  exec $SHELL "$0" --no-reexec ${1+"$@"}
 
561
fi
 
562
 
 
563
if test "X$1" = X--fallback-echo; then
 
564
  # used as fallback echo
 
565
  shift
 
566
  cat <<EOF
 
567
$*
 
568
EOF
 
569
  exit 0
 
570
fi
 
571
 
 
572
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
573
# if CDPATH is set.
 
574
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
575
 
 
576
if test -z "$ECHO"; then
 
577
if test "X${echo_test_string+set}" != Xset; then
 
578
# find a string as large as possible, as long as the shell can cope with it
 
579
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
580
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
581
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
 
582
       echo_test_string=`eval $cmd` &&
 
583
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
 
584
    then
 
585
      break
 
586
    fi
 
587
  done
 
588
fi
 
589
 
 
590
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
591
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
592
   test "X$echo_testing_string" = "X$echo_test_string"; then
 
593
  :
 
594
else
 
595
  # The Solaris, AIX, and Digital Unix default echo programs unquote
 
596
  # backslashes.  This makes it impossible to quote backslashes using
 
597
  #   echo "$something" | sed 's/\\/\\\\/g'
 
598
  #
 
599
  # So, first we look for a working echo in the user's PATH.
 
600
 
 
601
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
602
  for dir in $PATH /usr/ucb; do
 
603
    IFS="$lt_save_ifs"
 
604
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
605
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
606
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
607
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
608
      echo="$dir/echo"
 
609
      break
 
610
    fi
 
611
  done
 
612
  IFS="$lt_save_ifs"
 
613
 
 
614
  if test "X$echo" = Xecho; then
 
615
    # We didn't find a better echo, so look for alternatives.
 
616
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
 
617
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
 
618
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
619
      # This shell has a builtin print -r that does the trick.
 
620
      echo='print -r'
 
621
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
 
622
         test "X$CONFIG_SHELL" != X/bin/ksh; then
 
623
      # If we have ksh, try running configure again with it.
 
624
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
625
      export ORIGINAL_CONFIG_SHELL
 
626
      CONFIG_SHELL=/bin/ksh
 
627
      export CONFIG_SHELL
 
628
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
629
    else
 
630
      # Try using printf.
 
631
      echo='printf %s\n'
 
632
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
633
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
634
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
635
        # Cool, printf works
 
636
        :
 
637
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
638
           test "X$echo_testing_string" = 'X\t' &&
 
639
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
640
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
641
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
642
        export CONFIG_SHELL
 
643
        SHELL="$CONFIG_SHELL"
 
644
        export SHELL
 
645
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
646
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
647
           test "X$echo_testing_string" = 'X\t' &&
 
648
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
649
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
650
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
651
      else
 
652
        # maybe with a smaller string...
 
653
        prev=:
 
654
 
 
655
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
656
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
 
657
          then
 
658
            break
 
659
          fi
 
660
          prev="$cmd"
 
661
        done
 
662
 
 
663
        if test "$prev" != 'sed 50q "$0"'; then
 
664
          echo_test_string=`eval $prev`
 
665
          export echo_test_string
 
666
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
667
        else
 
668
          # Oops.  We lost completely, so just stick with echo.
 
669
          echo=echo
 
670
        fi
 
671
      fi
 
672
    fi
 
673
  fi
 
674
fi
 
675
fi
 
676
 
 
677
# Copy echo and quote the copy suitably for passing to libtool from
 
678
# the Makefile, instead of quoting the original, which is used later.
 
679
ECHO=$echo
 
680
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
681
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
682
fi
 
683
 
 
684
 
 
685
 
 
686
 
 
687
tagnames=${tagnames+${tagnames},}CXX
 
688
 
 
689
tagnames=${tagnames+${tagnames},}F77
 
690
 
 
691
exec 7<&0 </dev/null 6>&1
 
692
 
 
693
# Name of the host.
 
694
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
695
# so uname gets run too.
 
696
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
697
 
 
698
#
 
699
# Initializations.
 
700
#
 
701
ac_default_prefix=/usr/local
 
702
ac_clean_files=
 
703
ac_config_libobj_dir=.
 
704
LIBOBJS=
 
705
cross_compiling=no
 
706
subdirs=
 
707
MFLAGS=
 
708
MAKEFLAGS=
 
709
SHELL=${CONFIG_SHELL-/bin/sh}
 
710
 
 
711
# Identity of this package.
 
712
PACKAGE_NAME='mediastreamer'
 
713
PACKAGE_TARNAME='mediastreamer'
 
714
PACKAGE_VERSION='2.0.0'
 
715
PACKAGE_STRING='mediastreamer 2.0.0'
 
716
PACKAGE_BUGREPORT=''
 
717
 
 
718
# Factoring default headers for most tests.
 
719
ac_includes_default="\
 
720
#include <stdio.h>
 
721
#ifdef HAVE_SYS_TYPES_H
 
722
# include <sys/types.h>
 
723
#endif
 
724
#ifdef HAVE_SYS_STAT_H
 
725
# include <sys/stat.h>
 
726
#endif
 
727
#ifdef STDC_HEADERS
 
728
# include <stdlib.h>
 
729
# include <stddef.h>
 
730
#else
 
731
# ifdef HAVE_STDLIB_H
 
732
#  include <stdlib.h>
 
733
# endif
 
734
#endif
 
735
#ifdef HAVE_STRING_H
 
736
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
737
#  include <memory.h>
 
738
# endif
 
739
# include <string.h>
 
740
#endif
 
741
#ifdef HAVE_STRINGS_H
 
742
# include <strings.h>
 
743
#endif
 
744
#ifdef HAVE_INTTYPES_H
 
745
# include <inttypes.h>
 
746
#endif
 
747
#ifdef HAVE_STDINT_H
 
748
# include <stdint.h>
 
749
#endif
 
750
#ifdef HAVE_UNISTD_H
 
751
# include <unistd.h>
 
752
#endif"
 
753
 
 
754
ac_subst_vars='SHELL
 
755
PATH_SEPARATOR
 
756
PACKAGE_NAME
 
757
PACKAGE_TARNAME
 
758
PACKAGE_VERSION
 
759
PACKAGE_STRING
 
760
PACKAGE_BUGREPORT
 
761
exec_prefix
 
762
prefix
 
763
program_transform_name
 
764
bindir
 
765
sbindir
 
766
libexecdir
 
767
datarootdir
 
768
datadir
 
769
sysconfdir
 
770
sharedstatedir
 
771
localstatedir
 
772
includedir
 
773
oldincludedir
 
774
docdir
 
775
infodir
 
776
htmldir
 
777
dvidir
 
778
pdfdir
 
779
psdir
 
780
libdir
 
781
localedir
 
782
mandir
 
783
DEFS
 
784
ECHO_C
 
785
ECHO_N
 
786
ECHO_T
 
787
LIBS
 
788
build_alias
 
789
host_alias
 
790
target_alias
 
791
build
 
792
build_cpu
 
793
build_vendor
 
794
build_os
 
795
host
 
796
host_cpu
 
797
host_vendor
 
798
host_os
 
799
target
 
800
target_cpu
 
801
target_vendor
 
802
target_os
 
803
LIBMEDIASTREAMER_SO_VERSION
 
804
MEDIASTREAMER_VERSION
 
805
INSTALL_PROGRAM
 
806
INSTALL_SCRIPT
 
807
INSTALL_DATA
 
808
CYGPATH_W
 
809
PACKAGE
 
810
VERSION
 
811
ACLOCAL
 
812
AUTOCONF
 
813
AUTOMAKE
 
814
AUTOHEADER
 
815
MAKEINFO
 
816
install_sh
 
817
STRIP
 
818
INSTALL_STRIP_PROGRAM
 
819
mkdir_p
 
820
AWK
 
821
SET_MAKE
 
822
am__leading_dot
 
823
AMTAR
 
824
am__tar
 
825
am__untar
 
826
CC
 
827
CFLAGS
 
828
LDFLAGS
 
829
CPPFLAGS
 
830
ac_ct_CC
 
831
EXEEXT
 
832
OBJEXT
 
833
DEPDIR
 
834
am__include
 
835
am__quote
 
836
AMDEP_TRUE
 
837
AMDEP_FALSE
 
838
AMDEPBACKSLASH
 
839
CCDEPMODE
 
840
am__fastdepCC_TRUE
 
841
am__fastdepCC_FALSE
 
842
GREP
 
843
EGREP
 
844
LN_S
 
845
ECHO
 
846
AR
 
847
RANLIB
 
848
CPP
 
849
CXX
 
850
CXXFLAGS
 
851
ac_ct_CXX
 
852
CXXDEPMODE
 
853
am__fastdepCXX_TRUE
 
854
am__fastdepCXX_FALSE
 
855
CXXCPP
 
856
F77
 
857
FFLAGS
 
858
ac_ct_F77
 
859
LIBTOOL
 
860
MSPLUGINS_CFLAGS
 
861
MSPLUGINS_LIBS
 
862
BUILD_OSS_TRUE
 
863
BUILD_OSS_FALSE
 
864
ALSA_LIBS
 
865
BUILD_ALSA_TRUE
 
866
BUILD_ALSA_FALSE
 
867
ARTS_LIBS
 
868
BUILD_ARTS_TRUE
 
869
BUILD_ARTS_FALSE
 
870
PORTAUDIO_LIBS
 
871
BUILD_PORTAUDIO_TRUE
 
872
BUILD_PORTAUDIO_FALSE
 
873
PKG_CONFIG
 
874
JACK_CFLAGS
 
875
JACK_LIBS
 
876
SAMPLERATE_CFLAGS
 
877
SAMPLERATE_LIBS
 
878
SPEEX_CFLAGS
 
879
SPEEX_LIBS
 
880
BUILD_SPEEX_TRUE
 
881
BUILD_SPEEX_FALSE
 
882
GSM_CFLAGS
 
883
GSM_LIBS
 
884
BUILD_GSM_TRUE
 
885
BUILD_GSM_FALSE
 
886
FFMPEG_CFLAGS
 
887
FFMPEG_LIBS
 
888
SDL_CFLAGS
 
889
SDL_LIBS
 
890
THEORA_CFLAGS
 
891
THEORA_LIBS
 
892
VIDEO_CFLAGS
 
893
VIDEO_LIBS
 
894
BUILD_VIDEO_TRUE
 
895
BUILD_VIDEO_FALSE
 
896
BUILD_THEORA_TRUE
 
897
BUILD_THEORA_FALSE
 
898
ORTP_CFLAGS
 
899
ORTP_LIBS
 
900
PACKAGE_PLUGINS_DIR
 
901
EPM
 
902
MKEPMLIST
 
903
EPMINSTALL
 
904
WITH_EPM_TRUE
 
905
WITH_EPM_FALSE
 
906
EPM_PKG_EXT
 
907
SYS_USER
 
908
SYS_GROUP
 
909
ARCH
 
910
SUMMARY
 
911
PACKAGER
 
912
LICENSE
 
913
VENDOR
 
914
RELEASE
 
915
LIBOBJS
 
916
LTLIBOBJS'
 
917
ac_subst_files=''
 
918
      ac_precious_vars='build_alias
 
919
host_alias
 
920
target_alias
 
921
CC
 
922
CFLAGS
 
923
LDFLAGS
 
924
CPPFLAGS
 
925
CPP
 
926
CXX
 
927
CXXFLAGS
 
928
CCC
 
929
CXXCPP
 
930
F77
 
931
FFLAGS
 
932
PKG_CONFIG
 
933
JACK_CFLAGS
 
934
JACK_LIBS
 
935
SAMPLERATE_CFLAGS
 
936
SAMPLERATE_LIBS
 
937
SPEEX_CFLAGS
 
938
SPEEX_LIBS
 
939
FFMPEG_CFLAGS
 
940
FFMPEG_LIBS
 
941
THEORA_CFLAGS
 
942
THEORA_LIBS
 
943
ORTP_CFLAGS
 
944
ORTP_LIBS'
 
945
 
 
946
 
 
947
# Initialize some variables set by options.
 
948
ac_init_help=
 
949
ac_init_version=false
 
950
# The variables have the same names as the options, with
 
951
# dashes changed to underlines.
 
952
cache_file=/dev/null
 
953
exec_prefix=NONE
 
954
no_create=
 
955
no_recursion=
 
956
prefix=NONE
 
957
program_prefix=NONE
 
958
program_suffix=NONE
 
959
program_transform_name=s,x,x,
 
960
silent=
 
961
site=
 
962
srcdir=
 
963
verbose=
 
964
x_includes=NONE
 
965
x_libraries=NONE
 
966
 
 
967
# Installation directory options.
 
968
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
969
# and all the variables that are supposed to be based on exec_prefix
 
970
# by default will actually change.
 
971
# Use braces instead of parens because sh, perl, etc. also accept them.
 
972
# (The list follows the same order as the GNU Coding Standards.)
 
973
bindir='${exec_prefix}/bin'
 
974
sbindir='${exec_prefix}/sbin'
 
975
libexecdir='${exec_prefix}/libexec'
 
976
datarootdir='${prefix}/share'
 
977
datadir='${datarootdir}'
 
978
sysconfdir='${prefix}/etc'
 
979
sharedstatedir='${prefix}/com'
 
980
localstatedir='${prefix}/var'
 
981
includedir='${prefix}/include'
 
982
oldincludedir='/usr/include'
 
983
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
984
infodir='${datarootdir}/info'
 
985
htmldir='${docdir}'
 
986
dvidir='${docdir}'
 
987
pdfdir='${docdir}'
 
988
psdir='${docdir}'
 
989
libdir='${exec_prefix}/lib'
 
990
localedir='${datarootdir}/locale'
 
991
mandir='${datarootdir}/man'
 
992
 
 
993
ac_prev=
 
994
ac_dashdash=
 
995
for ac_option
 
996
do
 
997
  # If the previous option needs an argument, assign it.
 
998
  if test -n "$ac_prev"; then
 
999
    eval $ac_prev=\$ac_option
 
1000
    ac_prev=
 
1001
    continue
 
1002
  fi
 
1003
 
 
1004
  case $ac_option in
 
1005
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
1006
  *)    ac_optarg=yes ;;
 
1007
  esac
 
1008
 
 
1009
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
1010
 
 
1011
  case $ac_dashdash$ac_option in
 
1012
  --)
 
1013
    ac_dashdash=yes ;;
 
1014
 
 
1015
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
1016
    ac_prev=bindir ;;
 
1017
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
1018
    bindir=$ac_optarg ;;
 
1019
 
 
1020
  -build | --build | --buil | --bui | --bu)
 
1021
    ac_prev=build_alias ;;
 
1022
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
1023
    build_alias=$ac_optarg ;;
 
1024
 
 
1025
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
1026
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
1027
    ac_prev=cache_file ;;
 
1028
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
1029
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
1030
    cache_file=$ac_optarg ;;
 
1031
 
 
1032
  --config-cache | -C)
 
1033
    cache_file=config.cache ;;
 
1034
 
 
1035
  -datadir | --datadir | --datadi | --datad)
 
1036
    ac_prev=datadir ;;
 
1037
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
1038
    datadir=$ac_optarg ;;
 
1039
 
 
1040
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
1041
  | --dataroo | --dataro | --datar)
 
1042
    ac_prev=datarootdir ;;
 
1043
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
1044
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
1045
    datarootdir=$ac_optarg ;;
 
1046
 
 
1047
  -disable-* | --disable-*)
 
1048
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
1049
    # Reject names that are not valid shell variable names.
 
1050
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
1051
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
1052
   { (exit 1); exit 1; }; }
 
1053
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
1054
    eval enable_$ac_feature=no ;;
 
1055
 
 
1056
  -docdir | --docdir | --docdi | --doc | --do)
 
1057
    ac_prev=docdir ;;
 
1058
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
1059
    docdir=$ac_optarg ;;
 
1060
 
 
1061
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
1062
    ac_prev=dvidir ;;
 
1063
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
1064
    dvidir=$ac_optarg ;;
 
1065
 
 
1066
  -enable-* | --enable-*)
 
1067
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
1068
    # Reject names that are not valid shell variable names.
 
1069
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
1070
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
1071
   { (exit 1); exit 1; }; }
 
1072
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
1073
    eval enable_$ac_feature=\$ac_optarg ;;
 
1074
 
 
1075
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
1076
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
1077
  | --exec | --exe | --ex)
 
1078
    ac_prev=exec_prefix ;;
 
1079
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
1080
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
1081
  | --exec=* | --exe=* | --ex=*)
 
1082
    exec_prefix=$ac_optarg ;;
 
1083
 
 
1084
  -gas | --gas | --ga | --g)
 
1085
    # Obsolete; use --with-gas.
 
1086
    with_gas=yes ;;
 
1087
 
 
1088
  -help | --help | --hel | --he | -h)
 
1089
    ac_init_help=long ;;
 
1090
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
1091
    ac_init_help=recursive ;;
 
1092
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
1093
    ac_init_help=short ;;
 
1094
 
 
1095
  -host | --host | --hos | --ho)
 
1096
    ac_prev=host_alias ;;
 
1097
  -host=* | --host=* | --hos=* | --ho=*)
 
1098
    host_alias=$ac_optarg ;;
 
1099
 
 
1100
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
1101
    ac_prev=htmldir ;;
 
1102
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
1103
  | --ht=*)
 
1104
    htmldir=$ac_optarg ;;
 
1105
 
 
1106
  -includedir | --includedir | --includedi | --included | --include \
 
1107
  | --includ | --inclu | --incl | --inc)
 
1108
    ac_prev=includedir ;;
 
1109
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
1110
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
1111
    includedir=$ac_optarg ;;
 
1112
 
 
1113
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
1114
    ac_prev=infodir ;;
 
1115
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
1116
    infodir=$ac_optarg ;;
 
1117
 
 
1118
  -libdir | --libdir | --libdi | --libd)
 
1119
    ac_prev=libdir ;;
 
1120
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
1121
    libdir=$ac_optarg ;;
 
1122
 
 
1123
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
1124
  | --libexe | --libex | --libe)
 
1125
    ac_prev=libexecdir ;;
 
1126
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
1127
  | --libexe=* | --libex=* | --libe=*)
 
1128
    libexecdir=$ac_optarg ;;
 
1129
 
 
1130
  -localedir | --localedir | --localedi | --localed | --locale)
 
1131
    ac_prev=localedir ;;
 
1132
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
1133
    localedir=$ac_optarg ;;
 
1134
 
 
1135
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
1136
  | --localstate | --localstat | --localsta | --localst | --locals)
 
1137
    ac_prev=localstatedir ;;
 
1138
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
1139
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
1140
    localstatedir=$ac_optarg ;;
 
1141
 
 
1142
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
1143
    ac_prev=mandir ;;
 
1144
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
1145
    mandir=$ac_optarg ;;
 
1146
 
 
1147
  -nfp | --nfp | --nf)
 
1148
    # Obsolete; use --without-fp.
 
1149
    with_fp=no ;;
 
1150
 
 
1151
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
1152
  | --no-cr | --no-c | -n)
 
1153
    no_create=yes ;;
 
1154
 
 
1155
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
1156
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
1157
    no_recursion=yes ;;
 
1158
 
 
1159
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
1160
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
1161
  | --oldin | --oldi | --old | --ol | --o)
 
1162
    ac_prev=oldincludedir ;;
 
1163
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
1164
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
1165
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
1166
    oldincludedir=$ac_optarg ;;
 
1167
 
 
1168
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
1169
    ac_prev=prefix ;;
 
1170
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
1171
    prefix=$ac_optarg ;;
 
1172
 
 
1173
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
1174
  | --program-pre | --program-pr | --program-p)
 
1175
    ac_prev=program_prefix ;;
 
1176
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
1177
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
1178
    program_prefix=$ac_optarg ;;
 
1179
 
 
1180
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
1181
  | --program-suf | --program-su | --program-s)
 
1182
    ac_prev=program_suffix ;;
 
1183
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
1184
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
1185
    program_suffix=$ac_optarg ;;
 
1186
 
 
1187
  -program-transform-name | --program-transform-name \
 
1188
  | --program-transform-nam | --program-transform-na \
 
1189
  | --program-transform-n | --program-transform- \
 
1190
  | --program-transform | --program-transfor \
 
1191
  | --program-transfo | --program-transf \
 
1192
  | --program-trans | --program-tran \
 
1193
  | --progr-tra | --program-tr | --program-t)
 
1194
    ac_prev=program_transform_name ;;
 
1195
  -program-transform-name=* | --program-transform-name=* \
 
1196
  | --program-transform-nam=* | --program-transform-na=* \
 
1197
  | --program-transform-n=* | --program-transform-=* \
 
1198
  | --program-transform=* | --program-transfor=* \
 
1199
  | --program-transfo=* | --program-transf=* \
 
1200
  | --program-trans=* | --program-tran=* \
 
1201
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
1202
    program_transform_name=$ac_optarg ;;
 
1203
 
 
1204
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1205
    ac_prev=pdfdir ;;
 
1206
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1207
    pdfdir=$ac_optarg ;;
 
1208
 
 
1209
  -psdir | --psdir | --psdi | --psd | --ps)
 
1210
    ac_prev=psdir ;;
 
1211
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1212
    psdir=$ac_optarg ;;
 
1213
 
 
1214
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1215
  | -silent | --silent | --silen | --sile | --sil)
 
1216
    silent=yes ;;
 
1217
 
 
1218
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
1219
    ac_prev=sbindir ;;
 
1220
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
1221
  | --sbi=* | --sb=*)
 
1222
    sbindir=$ac_optarg ;;
 
1223
 
 
1224
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
1225
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
1226
  | --sharedst | --shareds | --shared | --share | --shar \
 
1227
  | --sha | --sh)
 
1228
    ac_prev=sharedstatedir ;;
 
1229
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
1230
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
1231
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
1232
  | --sha=* | --sh=*)
 
1233
    sharedstatedir=$ac_optarg ;;
 
1234
 
 
1235
  -site | --site | --sit)
 
1236
    ac_prev=site ;;
 
1237
  -site=* | --site=* | --sit=*)
 
1238
    site=$ac_optarg ;;
 
1239
 
 
1240
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
1241
    ac_prev=srcdir ;;
 
1242
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
1243
    srcdir=$ac_optarg ;;
 
1244
 
 
1245
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
1246
  | --syscon | --sysco | --sysc | --sys | --sy)
 
1247
    ac_prev=sysconfdir ;;
 
1248
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
1249
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
1250
    sysconfdir=$ac_optarg ;;
 
1251
 
 
1252
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
1253
    ac_prev=target_alias ;;
 
1254
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
1255
    target_alias=$ac_optarg ;;
 
1256
 
 
1257
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
1258
    verbose=yes ;;
 
1259
 
 
1260
  -version | --version | --versio | --versi | --vers | -V)
 
1261
    ac_init_version=: ;;
 
1262
 
 
1263
  -with-* | --with-*)
 
1264
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1265
    # Reject names that are not valid shell variable names.
 
1266
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
1267
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
1268
   { (exit 1); exit 1; }; }
 
1269
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
1270
    eval with_$ac_package=\$ac_optarg ;;
 
1271
 
 
1272
  -without-* | --without-*)
 
1273
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1274
    # Reject names that are not valid shell variable names.
 
1275
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
1276
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
1277
   { (exit 1); exit 1; }; }
 
1278
    ac_package=`echo $ac_package | sed 's/-/_/g'`
 
1279
    eval with_$ac_package=no ;;
 
1280
 
 
1281
  --x)
 
1282
    # Obsolete; use --with-x.
 
1283
    with_x=yes ;;
 
1284
 
 
1285
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
1286
  | --x-incl | --x-inc | --x-in | --x-i)
 
1287
    ac_prev=x_includes ;;
 
1288
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
1289
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
1290
    x_includes=$ac_optarg ;;
 
1291
 
 
1292
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
1293
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
1294
    ac_prev=x_libraries ;;
 
1295
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
1296
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
1297
    x_libraries=$ac_optarg ;;
 
1298
 
 
1299
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
1300
Try \`$0 --help' for more information." >&2
 
1301
   { (exit 1); exit 1; }; }
 
1302
    ;;
 
1303
 
 
1304
  *=*)
 
1305
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1306
    # Reject names that are not valid shell variable names.
 
1307
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
1308
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
1309
   { (exit 1); exit 1; }; }
 
1310
    eval $ac_envvar=\$ac_optarg
 
1311
    export $ac_envvar ;;
 
1312
 
 
1313
  *)
 
1314
    # FIXME: should be removed in autoconf 3.0.
 
1315
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1316
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1317
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1318
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
1319
    ;;
 
1320
 
 
1321
  esac
 
1322
done
 
1323
 
 
1324
if test -n "$ac_prev"; then
 
1325
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1326
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
1327
   { (exit 1); exit 1; }; }
 
1328
fi
 
1329
 
 
1330
# Be sure to have absolute directory names.
 
1331
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1332
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1333
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1334
                libdir localedir mandir
 
1335
do
 
1336
  eval ac_val=\$$ac_var
 
1337
  case $ac_val in
 
1338
    [\\/$]* | ?:[\\/]* )  continue;;
 
1339
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1340
  esac
 
1341
  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
1342
   { (exit 1); exit 1; }; }
 
1343
done
 
1344
 
 
1345
# There might be people who depend on the old broken behavior: `$host'
 
1346
# used to hold the argument of --host etc.
 
1347
# FIXME: To remove some day.
 
1348
build=$build_alias
 
1349
host=$host_alias
 
1350
target=$target_alias
 
1351
 
 
1352
# FIXME: To remove some day.
 
1353
if test "x$host_alias" != x; then
 
1354
  if test "x$build_alias" = x; then
 
1355
    cross_compiling=maybe
 
1356
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
1357
    If a cross compiler is detected then cross compile mode will be used." >&2
 
1358
  elif test "x$build_alias" != "x$host_alias"; then
 
1359
    cross_compiling=yes
 
1360
  fi
 
1361
fi
 
1362
 
 
1363
ac_tool_prefix=
 
1364
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1365
 
 
1366
test "$silent" = yes && exec 6>/dev/null
 
1367
 
 
1368
 
 
1369
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1370
ac_ls_di=`ls -di .` &&
 
1371
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1372
  { echo "$as_me: error: Working directory cannot be determined" >&2
 
1373
   { (exit 1); exit 1; }; }
 
1374
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1375
  { echo "$as_me: error: pwd does not report name of working directory" >&2
 
1376
   { (exit 1); exit 1; }; }
 
1377
 
 
1378
 
 
1379
# Find the source files, if location was not specified.
 
1380
if test -z "$srcdir"; then
 
1381
  ac_srcdir_defaulted=yes
 
1382
  # Try the directory containing this script, then the parent directory.
 
1383
  ac_confdir=`$as_dirname -- "$0" ||
 
1384
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1385
         X"$0" : 'X\(//\)[^/]' \| \
 
1386
         X"$0" : 'X\(//\)$' \| \
 
1387
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
1388
echo X"$0" |
 
1389
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1390
            s//\1/
 
1391
            q
 
1392
          }
 
1393
          /^X\(\/\/\)[^/].*/{
 
1394
            s//\1/
 
1395
            q
 
1396
          }
 
1397
          /^X\(\/\/\)$/{
 
1398
            s//\1/
 
1399
            q
 
1400
          }
 
1401
          /^X\(\/\).*/{
 
1402
            s//\1/
 
1403
            q
 
1404
          }
 
1405
          s/.*/./; q'`
 
1406
  srcdir=$ac_confdir
 
1407
  if test ! -r "$srcdir/$ac_unique_file"; then
 
1408
    srcdir=..
 
1409
  fi
 
1410
else
 
1411
  ac_srcdir_defaulted=no
 
1412
fi
 
1413
if test ! -r "$srcdir/$ac_unique_file"; then
 
1414
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1415
  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
1416
   { (exit 1); exit 1; }; }
 
1417
fi
 
1418
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1419
ac_abs_confdir=`(
 
1420
        cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
 
1421
   { (exit 1); exit 1; }; }
 
1422
        pwd)`
 
1423
# When building in place, set srcdir=.
 
1424
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1425
  srcdir=.
 
1426
fi
 
1427
# Remove unnecessary trailing slashes from srcdir.
 
1428
# Double slashes in file names in object file debugging info
 
1429
# mess up M-x gdb in Emacs.
 
1430
case $srcdir in
 
1431
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1432
esac
 
1433
for ac_var in $ac_precious_vars; do
 
1434
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1435
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1436
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1437
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1438
done
 
1439
 
 
1440
#
 
1441
# Report the --help message.
 
1442
#
 
1443
if test "$ac_init_help" = "long"; then
 
1444
  # Omit some internal or obsolete options to make the list less imposing.
 
1445
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1446
  cat <<_ACEOF
 
1447
\`configure' configures mediastreamer 2.0.0 to adapt to many kinds of systems.
 
1448
 
 
1449
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1450
 
 
1451
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1452
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1453
 
 
1454
Defaults for the options are specified in brackets.
 
1455
 
 
1456
Configuration:
 
1457
  -h, --help              display this help and exit
 
1458
      --help=short        display options specific to this package
 
1459
      --help=recursive    display the short help of all the included packages
 
1460
  -V, --version           display version information and exit
 
1461
  -q, --quiet, --silent   do not print \`checking...' messages
 
1462
      --cache-file=FILE   cache test results in FILE [disabled]
 
1463
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1464
  -n, --no-create         do not create output files
 
1465
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1466
 
 
1467
Installation directories:
 
1468
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1469
                          [$ac_default_prefix]
 
1470
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1471
                          [PREFIX]
 
1472
 
 
1473
By default, \`make install' will install all the files in
 
1474
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1475
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1476
for instance \`--prefix=\$HOME'.
 
1477
 
 
1478
For better control, use the options below.
 
1479
 
 
1480
Fine tuning of the installation directories:
 
1481
  --bindir=DIR           user executables [EPREFIX/bin]
 
1482
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
1483
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
1484
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
1485
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
1486
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
1487
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
1488
  --includedir=DIR       C header files [PREFIX/include]
 
1489
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
1490
  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
 
1491
  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
 
1492
  --infodir=DIR          info documentation [DATAROOTDIR/info]
 
1493
  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
 
1494
  --mandir=DIR           man documentation [DATAROOTDIR/man]
 
1495
  --docdir=DIR           documentation root [DATAROOTDIR/doc/mediastreamer]
 
1496
  --htmldir=DIR          html documentation [DOCDIR]
 
1497
  --dvidir=DIR           dvi documentation [DOCDIR]
 
1498
  --pdfdir=DIR           pdf documentation [DOCDIR]
 
1499
  --psdir=DIR            ps documentation [DOCDIR]
 
1500
_ACEOF
 
1501
 
 
1502
  cat <<\_ACEOF
 
1503
 
 
1504
Program names:
 
1505
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1506
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1507
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1508
 
 
1509
System types:
 
1510
  --build=BUILD     configure for building on BUILD [guessed]
 
1511
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1512
  --target=TARGET   configure for building compilers for TARGET [HOST]
 
1513
_ACEOF
 
1514
fi
 
1515
 
 
1516
if test -n "$ac_init_help"; then
 
1517
  case $ac_init_help in
 
1518
     short | recursive ) echo "Configuration of mediastreamer 2.0.0:";;
 
1519
   esac
 
1520
  cat <<\_ACEOF
 
1521
 
 
1522
Optional Features:
 
1523
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1524
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1525
  --enable-strict       Enable error on compilation warning default=yes
 
1526
  --enable-ipv6    Turn on ipv6 support
 
1527
  --enable-debug=yes/no   enables the display of traces showing the execution of the library. default=yes
 
1528
  --disable-dependency-tracking  speeds up one-time build
 
1529
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1530
  --enable-shared[=PKGS]  build shared libraries [default=yes]
 
1531
  --enable-static[=PKGS]  build static libraries [default=yes]
 
1532
  --enable-fast-install[=PKGS]
 
1533
                          optimize for fast installation [default=yes]
 
1534
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1535
  --enable-alsa    Turn on alsa native support compiling
 
1536
  --enable-portaudio    Turn on portaudio native support compiling
 
1537
  --enable-video    Turn on video support compiling
 
1538
 
 
1539
Optional Packages:
 
1540
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1541
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1542
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1543
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1544
                          both]
 
1545
  --with-tags[=TAGS]      include additional configurations [automatic]
 
1546
  --with-gsm            Sets the installation prefix of gsm codec library default=/usr
 
1547
  --with-ffmpeg         Sets the installation prefix of ffmpeg, needed for video support. default=/usr
 
1548
  --with-sdl            Sets the installation prefix of libSDL, needed for video support. default=/usr
 
1549
 
 
1550
Some influential environment variables:
 
1551
  CC          C compiler command
 
1552
  CFLAGS      C compiler flags
 
1553
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1554
              nonstandard directory <lib dir>
 
1555
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
 
1556
              you have headers in a nonstandard directory <include dir>
 
1557
  CPP         C preprocessor
 
1558
  CXX         C++ compiler command
 
1559
  CXXFLAGS    C++ compiler flags
 
1560
  CXXCPP      C++ preprocessor
 
1561
  F77         Fortran 77 compiler command
 
1562
  FFLAGS      Fortran 77 compiler flags
 
1563
  PKG_CONFIG  path to pkg-config utility
 
1564
  JACK_CFLAGS C compiler flags for JACK, overriding pkg-config
 
1565
  JACK_LIBS   linker flags for JACK, overriding pkg-config
 
1566
  SAMPLERATE_CFLAGS
 
1567
              C compiler flags for SAMPLERATE, overriding pkg-config
 
1568
  SAMPLERATE_LIBS
 
1569
              linker flags for SAMPLERATE, overriding pkg-config
 
1570
  SPEEX_CFLAGS
 
1571
              C compiler flags for SPEEX, overriding pkg-config
 
1572
  SPEEX_LIBS  linker flags for SPEEX, overriding pkg-config
 
1573
  FFMPEG_CFLAGS
 
1574
              C compiler flags for FFMPEG, overriding pkg-config
 
1575
  FFMPEG_LIBS linker flags for FFMPEG, overriding pkg-config
 
1576
  THEORA_CFLAGS
 
1577
              C compiler flags for THEORA, overriding pkg-config
 
1578
  THEORA_LIBS linker flags for THEORA, overriding pkg-config
 
1579
  ORTP_CFLAGS C compiler flags for ORTP, overriding pkg-config
 
1580
  ORTP_LIBS   linker flags for ORTP, overriding pkg-config
 
1581
 
 
1582
Use these variables to override the choices made by `configure' or to help
 
1583
it to find libraries and programs with nonstandard names/locations.
 
1584
 
 
1585
_ACEOF
 
1586
ac_status=$?
 
1587
fi
 
1588
 
 
1589
if test "$ac_init_help" = "recursive"; then
 
1590
  # If there are subdirs, report their specific --help.
 
1591
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1592
    test -d "$ac_dir" || continue
 
1593
    ac_builddir=.
 
1594
 
 
1595
case "$ac_dir" in
 
1596
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1597
*)
 
1598
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1599
  # A ".." for each directory in $ac_dir_suffix.
 
1600
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
1601
  case $ac_top_builddir_sub in
 
1602
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1603
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1604
  esac ;;
 
1605
esac
 
1606
ac_abs_top_builddir=$ac_pwd
 
1607
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1608
# for backward compatibility:
 
1609
ac_top_builddir=$ac_top_build_prefix
 
1610
 
 
1611
case $srcdir in
 
1612
  .)  # We are building in place.
 
1613
    ac_srcdir=.
 
1614
    ac_top_srcdir=$ac_top_builddir_sub
 
1615
    ac_abs_top_srcdir=$ac_pwd ;;
 
1616
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
1617
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1618
    ac_top_srcdir=$srcdir
 
1619
    ac_abs_top_srcdir=$srcdir ;;
 
1620
  *) # Relative name.
 
1621
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1622
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1623
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1624
esac
 
1625
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1626
 
 
1627
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1628
    # Check for guested configure.
 
1629
    if test -f "$ac_srcdir/configure.gnu"; then
 
1630
      echo &&
 
1631
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1632
    elif test -f "$ac_srcdir/configure"; then
 
1633
      echo &&
 
1634
      $SHELL "$ac_srcdir/configure" --help=recursive
 
1635
    else
 
1636
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1637
    fi || ac_status=$?
 
1638
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1639
  done
 
1640
fi
 
1641
 
 
1642
test -n "$ac_init_help" && exit $ac_status
 
1643
if $ac_init_version; then
 
1644
  cat <<\_ACEOF
 
1645
mediastreamer configure 2.0.0
 
1646
generated by GNU Autoconf 2.60a
 
1647
 
 
1648
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
1649
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
 
1650
This configure script is free software; the Free Software Foundation
 
1651
gives unlimited permission to copy, distribute and modify it.
 
1652
_ACEOF
 
1653
  exit
 
1654
fi
 
1655
cat >config.log <<_ACEOF
 
1656
This file contains any messages produced by compilers while
 
1657
running configure, to aid debugging if configure makes a mistake.
 
1658
 
 
1659
It was created by mediastreamer $as_me 2.0.0, which was
 
1660
generated by GNU Autoconf 2.60a.  Invocation command line was
 
1661
 
 
1662
  $ $0 $@
 
1663
 
 
1664
_ACEOF
 
1665
exec 5>>config.log
 
1666
{
 
1667
cat <<_ASUNAME
 
1668
## --------- ##
 
1669
## Platform. ##
 
1670
## --------- ##
 
1671
 
 
1672
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1673
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1674
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1675
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1676
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1677
 
 
1678
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1679
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1680
 
 
1681
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1682
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1683
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1684
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
1685
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1686
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1687
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1688
 
 
1689
_ASUNAME
 
1690
 
 
1691
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1692
for as_dir in $PATH
 
1693
do
 
1694
  IFS=$as_save_IFS
 
1695
  test -z "$as_dir" && as_dir=.
 
1696
  echo "PATH: $as_dir"
 
1697
done
 
1698
IFS=$as_save_IFS
 
1699
 
 
1700
} >&5
 
1701
 
 
1702
cat >&5 <<_ACEOF
 
1703
 
 
1704
 
 
1705
## ----------- ##
 
1706
## Core tests. ##
 
1707
## ----------- ##
 
1708
 
 
1709
_ACEOF
 
1710
 
 
1711
 
 
1712
# Keep a trace of the command line.
 
1713
# Strip out --no-create and --no-recursion so they do not pile up.
 
1714
# Strip out --silent because we don't want to record it for future runs.
 
1715
# Also quote any args containing shell meta-characters.
 
1716
# Make two passes to allow for proper duplicate-argument suppression.
 
1717
ac_configure_args=
 
1718
ac_configure_args0=
 
1719
ac_configure_args1=
 
1720
ac_must_keep_next=false
 
1721
for ac_pass in 1 2
 
1722
do
 
1723
  for ac_arg
 
1724
  do
 
1725
    case $ac_arg in
 
1726
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1727
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1728
    | -silent | --silent | --silen | --sile | --sil)
 
1729
      continue ;;
 
1730
    *\'*)
 
1731
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1732
    esac
 
1733
    case $ac_pass in
 
1734
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1735
    2)
 
1736
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1737
      if test $ac_must_keep_next = true; then
 
1738
        ac_must_keep_next=false # Got value, back to normal.
 
1739
      else
 
1740
        case $ac_arg in
 
1741
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1742
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1743
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1744
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1745
            case "$ac_configure_args0 " in
 
1746
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1747
            esac
 
1748
            ;;
 
1749
          -* ) ac_must_keep_next=true ;;
 
1750
        esac
 
1751
      fi
 
1752
      ac_configure_args="$ac_configure_args '$ac_arg'"
 
1753
      ;;
 
1754
    esac
 
1755
  done
 
1756
done
 
1757
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1758
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1759
 
 
1760
# When interrupted or exit'd, cleanup temporary files, and complete
 
1761
# config.log.  We remove comments because anyway the quotes in there
 
1762
# would cause problems or look ugly.
 
1763
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
1764
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
1765
trap 'exit_status=$?
 
1766
  # Save into config.log some information that might help in debugging.
 
1767
  {
 
1768
    echo
 
1769
 
 
1770
    cat <<\_ASBOX
 
1771
## ---------------- ##
 
1772
## Cache variables. ##
 
1773
## ---------------- ##
 
1774
_ASBOX
 
1775
    echo
 
1776
    # The following way of writing the cache mishandles newlines in values,
 
1777
(
 
1778
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
1779
    eval ac_val=\$$ac_var
 
1780
    case $ac_val in #(
 
1781
    *${as_nl}*)
 
1782
      case $ac_var in #(
 
1783
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 
1784
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
1785
      esac
 
1786
      case $ac_var in #(
 
1787
      _ | IFS | as_nl) ;; #(
 
1788
      *) $as_unset $ac_var ;;
 
1789
      esac ;;
 
1790
    esac
 
1791
  done
 
1792
  (set) 2>&1 |
 
1793
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
1794
    *${as_nl}ac_space=\ *)
 
1795
      sed -n \
 
1796
        "s/'\''/'\''\\\\'\'''\''/g;
 
1797
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
1798
      ;; #(
 
1799
    *)
 
1800
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
1801
      ;;
 
1802
    esac |
 
1803
    sort
 
1804
)
 
1805
    echo
 
1806
 
 
1807
    cat <<\_ASBOX
 
1808
## ----------------- ##
 
1809
## Output variables. ##
 
1810
## ----------------- ##
 
1811
_ASBOX
 
1812
    echo
 
1813
    for ac_var in $ac_subst_vars
 
1814
    do
 
1815
      eval ac_val=\$$ac_var
 
1816
      case $ac_val in
 
1817
      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1818
      esac
 
1819
      echo "$ac_var='\''$ac_val'\''"
 
1820
    done | sort
 
1821
    echo
 
1822
 
 
1823
    if test -n "$ac_subst_files"; then
 
1824
      cat <<\_ASBOX
 
1825
## ------------------- ##
 
1826
## File substitutions. ##
 
1827
## ------------------- ##
 
1828
_ASBOX
 
1829
      echo
 
1830
      for ac_var in $ac_subst_files
 
1831
      do
 
1832
        eval ac_val=\$$ac_var
 
1833
        case $ac_val in
 
1834
        *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1835
        esac
 
1836
        echo "$ac_var='\''$ac_val'\''"
 
1837
      done | sort
 
1838
      echo
 
1839
    fi
 
1840
 
 
1841
    if test -s confdefs.h; then
 
1842
      cat <<\_ASBOX
 
1843
## ----------- ##
 
1844
## confdefs.h. ##
 
1845
## ----------- ##
 
1846
_ASBOX
 
1847
      echo
 
1848
      cat confdefs.h
 
1849
      echo
 
1850
    fi
 
1851
    test "$ac_signal" != 0 &&
 
1852
      echo "$as_me: caught signal $ac_signal"
 
1853
    echo "$as_me: exit $exit_status"
 
1854
  } >&5
 
1855
  rm -f core *.core core.conftest.* &&
 
1856
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
1857
    exit $exit_status
 
1858
' 0
 
1859
for ac_signal in 1 2 13 15; do
 
1860
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1861
done
 
1862
ac_signal=0
 
1863
 
 
1864
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1865
rm -f -r conftest* confdefs.h
 
1866
 
 
1867
# Predefined preprocessor variables.
 
1868
 
 
1869
cat >>confdefs.h <<_ACEOF
 
1870
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1871
_ACEOF
 
1872
 
 
1873
 
 
1874
cat >>confdefs.h <<_ACEOF
 
1875
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1876
_ACEOF
 
1877
 
 
1878
 
 
1879
cat >>confdefs.h <<_ACEOF
 
1880
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1881
_ACEOF
 
1882
 
 
1883
 
 
1884
cat >>confdefs.h <<_ACEOF
 
1885
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1886
_ACEOF
 
1887
 
 
1888
 
 
1889
cat >>confdefs.h <<_ACEOF
 
1890
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1891
_ACEOF
 
1892
 
 
1893
 
 
1894
# Let the site file select an alternate cache file if it wants to.
 
1895
# Prefer explicitly selected file to automatically selected ones.
 
1896
if test -n "$CONFIG_SITE"; then
 
1897
  set x "$CONFIG_SITE"
 
1898
elif test "x$prefix" != xNONE; then
 
1899
  set x "$prefix/share/config.site" "$prefix/etc/config.site"
 
1900
else
 
1901
  set x "$ac_default_prefix/share/config.site" \
 
1902
        "$ac_default_prefix/etc/config.site"
 
1903
fi
 
1904
shift
 
1905
for ac_site_file
 
1906
do
 
1907
  if test -r "$ac_site_file"; then
 
1908
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1909
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1910
    sed 's/^/| /' "$ac_site_file" >&5
 
1911
    . "$ac_site_file"
 
1912
  fi
 
1913
done
 
1914
 
 
1915
if test -r "$cache_file"; then
 
1916
  # Some versions of bash will fail to source /dev/null (special
 
1917
  # files actually), so we avoid doing that.
 
1918
  if test -f "$cache_file"; then
 
1919
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1920
echo "$as_me: loading cache $cache_file" >&6;}
 
1921
    case $cache_file in
 
1922
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
1923
      *)                      . "./$cache_file";;
 
1924
    esac
 
1925
  fi
 
1926
else
 
1927
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1928
echo "$as_me: creating cache $cache_file" >&6;}
 
1929
  >$cache_file
 
1930
fi
 
1931
 
 
1932
# Check that the precious variables saved in the cache have kept the same
 
1933
# value.
 
1934
ac_cache_corrupted=false
 
1935
for ac_var in $ac_precious_vars; do
 
1936
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1937
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1938
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
1939
  eval ac_new_val=\$ac_env_${ac_var}_value
 
1940
  case $ac_old_set,$ac_new_set in
 
1941
    set,)
 
1942
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1943
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1944
      ac_cache_corrupted=: ;;
 
1945
    ,set)
 
1946
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1947
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1948
      ac_cache_corrupted=: ;;
 
1949
    ,);;
 
1950
    *)
 
1951
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1952
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1953
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1954
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1955
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1956
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1957
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1958
        ac_cache_corrupted=:
 
1959
      fi;;
 
1960
  esac
 
1961
  # Pass precious variables to config.status.
 
1962
  if test "$ac_new_set" = set; then
 
1963
    case $ac_new_val in
 
1964
    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1965
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1966
    esac
 
1967
    case " $ac_configure_args " in
 
1968
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1969
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1970
    esac
 
1971
  fi
 
1972
done
 
1973
if $ac_cache_corrupted; then
 
1974
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1975
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1976
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1977
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1978
   { (exit 1); exit 1; }; }
 
1979
fi
 
1980
 
 
1981
 
 
1982
 
 
1983
 
 
1984
 
 
1985
 
 
1986
 
 
1987
 
 
1988
 
 
1989
 
 
1990
 
 
1991
 
 
1992
 
 
1993
 
 
1994
 
 
1995
 
 
1996
 
 
1997
 
 
1998
 
 
1999
 
 
2000
 
 
2001
 
 
2002
 
 
2003
 
 
2004
 
 
2005
ac_ext=c
 
2006
ac_cpp='$CPP $CPPFLAGS'
 
2007
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2008
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2009
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2010
 
 
2011
 
 
2012
 
 
2013
{ echo "$as_me:$LINENO: $PACKAGE_NAME-$PACKAGE_VERSION          A mediastreaming library for telephony application." >&5
 
2014
echo "$as_me: $PACKAGE_NAME-$PACKAGE_VERSION            A mediastreaming library for telephony application." >&6;}
 
2015
{ echo "$as_me:$LINENO: licensed under the terms of the General Public License (GPL)" >&5
 
2016
echo "$as_me: licensed under the terms of the General Public License (GPL)" >&6;}
 
2017
 
 
2018
ac_aux_dir=
 
2019
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
 
2020
  if test -f "$ac_dir/install-sh"; then
 
2021
    ac_aux_dir=$ac_dir
 
2022
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
2023
    break
 
2024
  elif test -f "$ac_dir/install.sh"; then
 
2025
    ac_aux_dir=$ac_dir
 
2026
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
2027
    break
 
2028
  elif test -f "$ac_dir/shtool"; then
 
2029
    ac_aux_dir=$ac_dir
 
2030
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
2031
    break
 
2032
  fi
 
2033
done
 
2034
if test -z "$ac_aux_dir"; then
 
2035
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
 
2036
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
 
2037
   { (exit 1); exit 1; }; }
 
2038
fi
 
2039
 
 
2040
# These three variables are undocumented and unsupported,
 
2041
# and are intended to be withdrawn in a future Autoconf release.
 
2042
# They can cause serious problems if a builder's source tree is in a directory
 
2043
# whose full name contains unusual characters.
 
2044
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
2045
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
2046
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
2047
 
 
2048
 
 
2049
# Make sure we can run config.sub.
 
2050
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
2051
  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
 
2052
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
 
2053
   { (exit 1); exit 1; }; }
 
2054
 
 
2055
{ echo "$as_me:$LINENO: checking build system type" >&5
 
2056
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
 
2057
if test "${ac_cv_build+set}" = set; then
 
2058
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2059
else
 
2060
  ac_build_alias=$build_alias
 
2061
test "x$ac_build_alias" = x &&
 
2062
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
2063
test "x$ac_build_alias" = x &&
 
2064
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
2065
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
2066
   { (exit 1); exit 1; }; }
 
2067
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
2068
  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
 
2069
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
 
2070
   { (exit 1); exit 1; }; }
 
2071
 
 
2072
fi
 
2073
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
2074
echo "${ECHO_T}$ac_cv_build" >&6; }
 
2075
case $ac_cv_build in
 
2076
*-*-*) ;;
 
2077
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
 
2078
echo "$as_me: error: invalid value of canonical build" >&2;}
 
2079
   { (exit 1); exit 1; }; };;
 
2080
esac
 
2081
build=$ac_cv_build
 
2082
ac_save_IFS=$IFS; IFS='-'
 
2083
set x $ac_cv_build
 
2084
shift
 
2085
build_cpu=$1
 
2086
build_vendor=$2
 
2087
shift; shift
 
2088
# Remember, the first character of IFS is used to create $*,
 
2089
# except with old shells:
 
2090
build_os=$*
 
2091
IFS=$ac_save_IFS
 
2092
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
2093
 
 
2094
 
 
2095
{ echo "$as_me:$LINENO: checking host system type" >&5
 
2096
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
 
2097
if test "${ac_cv_host+set}" = set; then
 
2098
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2099
else
 
2100
  if test "x$host_alias" = x; then
 
2101
  ac_cv_host=$ac_cv_build
 
2102
else
 
2103
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
2104
    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
 
2105
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
 
2106
   { (exit 1); exit 1; }; }
 
2107
fi
 
2108
 
 
2109
fi
 
2110
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
2111
echo "${ECHO_T}$ac_cv_host" >&6; }
 
2112
case $ac_cv_host in
 
2113
*-*-*) ;;
 
2114
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
 
2115
echo "$as_me: error: invalid value of canonical host" >&2;}
 
2116
   { (exit 1); exit 1; }; };;
 
2117
esac
 
2118
host=$ac_cv_host
 
2119
ac_save_IFS=$IFS; IFS='-'
 
2120
set x $ac_cv_host
 
2121
shift
 
2122
host_cpu=$1
 
2123
host_vendor=$2
 
2124
shift; shift
 
2125
# Remember, the first character of IFS is used to create $*,
 
2126
# except with old shells:
 
2127
host_os=$*
 
2128
IFS=$ac_save_IFS
 
2129
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
2130
 
 
2131
 
 
2132
{ echo "$as_me:$LINENO: checking target system type" >&5
 
2133
echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
 
2134
if test "${ac_cv_target+set}" = set; then
 
2135
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2136
else
 
2137
  if test "x$target_alias" = x; then
 
2138
  ac_cv_target=$ac_cv_host
 
2139
else
 
2140
  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
 
2141
    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
 
2142
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
 
2143
   { (exit 1); exit 1; }; }
 
2144
fi
 
2145
 
 
2146
fi
 
2147
{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
 
2148
echo "${ECHO_T}$ac_cv_target" >&6; }
 
2149
case $ac_cv_target in
 
2150
*-*-*) ;;
 
2151
*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
 
2152
echo "$as_me: error: invalid value of canonical target" >&2;}
 
2153
   { (exit 1); exit 1; }; };;
 
2154
esac
 
2155
target=$ac_cv_target
 
2156
ac_save_IFS=$IFS; IFS='-'
 
2157
set x $ac_cv_target
 
2158
shift
 
2159
target_cpu=$1
 
2160
target_vendor=$2
 
2161
shift; shift
 
2162
# Remember, the first character of IFS is used to create $*,
 
2163
# except with old shells:
 
2164
target_os=$*
 
2165
IFS=$ac_save_IFS
 
2166
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
 
2167
 
 
2168
 
 
2169
# The aliases save the names the user supplied, while $host etc.
 
2170
# will get canonicalized.
 
2171
test -n "$target_alias" &&
 
2172
  test "$program_prefix$program_suffix$program_transform_name" = \
 
2173
    NONENONEs,x,x, &&
 
2174
  program_prefix=${target_alias}-
 
2175
 
 
2176
MEDIASTREAMER_MAJOR_VERSION=$(echo $PACKAGE_VERSION | cut -d. -f1)
 
2177
MEDIASTREAMER_MINOR_VERSION=$(echo $PACKAGE_VERSION | cut -d. -f2)
 
2178
MEDIASTREAMER_MICRO_VERSION=$(echo $PACKAGE_VERSION | cut -d. -f3)
 
2179
MEDIASTREAMER_EXTRA_VERSION=$(echo $PACKAGE_VERSION | cut -d. -f4)
 
2180
 
 
2181
LIBMEDIASTREAMER_SO_CURRENT=0 LIBMEDIASTREAMER_SO_REVISION=0 LIBMEDIASTREAMER_SO_AGE=0
 
2182
LIBMEDIASTREAMER_SO_VERSION=$LIBMEDIASTREAMER_SO_CURRENT:$LIBMEDIASTREAMER_SO_REVISION:$LIBMEDIASTREAMER_SO_AGE
 
2183
MEDIASTREAMER_VERSION=${MEDIASTREAMER_MAJOR_VERSION}.${MEDIASTREAMER_MINOR_VERSION}.${MEDIASTREAMER_MICRO_VERSION}
 
2184
 
 
2185
if test -n "$MEDIASTREAMER_EXTRA_VERSION" ; then
 
2186
        MEDIASTREAMER_VERSION="${MEDIASTREAMER_VERSION}.${MEDIASTREAMER_EXTRA_VERSION}"
 
2187
fi
 
2188
 
 
2189
 
 
2190
 
 
2191
 
 
2192
PACKAGE=mediastreamer
 
2193
 
 
2194
OS=`uname|sed -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'`
 
2195
{ echo "$as_me:$LINENO: result: Building Package on ${OS}" >&5
 
2196
echo "${ECHO_T}Building Package on ${OS}" >&6; }
 
2197
 
 
2198
am__api_version="1.9"
 
2199
# Find a good install program.  We prefer a C program (faster),
 
2200
# so one script is as good as another.  But avoid the broken or
 
2201
# incompatible versions:
 
2202
# SysV /etc/install, /usr/sbin/install
 
2203
# SunOS /usr/etc/install
 
2204
# IRIX /sbin/install
 
2205
# AIX /bin/install
 
2206
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
2207
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
2208
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
2209
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
2210
# OS/2's system install, which has a completely different semantic
 
2211
# ./install, which can be erroneously created by make from ./install.sh.
 
2212
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
2213
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
 
2214
if test -z "$INSTALL"; then
 
2215
if test "${ac_cv_path_install+set}" = set; then
 
2216
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2217
else
 
2218
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2219
for as_dir in $PATH
 
2220
do
 
2221
  IFS=$as_save_IFS
 
2222
  test -z "$as_dir" && as_dir=.
 
2223
  # Account for people who put trailing slashes in PATH elements.
 
2224
case $as_dir/ in
 
2225
  ./ | .// | /cC/* | \
 
2226
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
2227
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
2228
  /usr/ucb/* ) ;;
 
2229
  *)
 
2230
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
2231
    # Don't use installbsd from OSF since it installs stuff as root
 
2232
    # by default.
 
2233
    for ac_prog in ginstall scoinst install; do
 
2234
      for ac_exec_ext in '' $ac_executable_extensions; do
 
2235
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
2236
          if test $ac_prog = install &&
 
2237
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2238
            # AIX install.  It has an incompatible calling convention.
 
2239
            :
 
2240
          elif test $ac_prog = install &&
 
2241
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2242
            # program-specific install script used by HP pwplus--don't use.
 
2243
            :
 
2244
          else
 
2245
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
2246
            break 3
 
2247
          fi
 
2248
        fi
 
2249
      done
 
2250
    done
 
2251
    ;;
 
2252
esac
 
2253
done
 
2254
IFS=$as_save_IFS
 
2255
 
 
2256
 
 
2257
fi
 
2258
  if test "${ac_cv_path_install+set}" = set; then
 
2259
    INSTALL=$ac_cv_path_install
 
2260
  else
 
2261
    # As a last resort, use the slow shell script.  Don't cache a
 
2262
    # value for INSTALL within a source directory, because that will
 
2263
    # break other packages using the cache if that directory is
 
2264
    # removed, or if the value is a relative name.
 
2265
    INSTALL=$ac_install_sh
 
2266
  fi
 
2267
fi
 
2268
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
 
2269
echo "${ECHO_T}$INSTALL" >&6; }
 
2270
 
 
2271
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
2272
# It thinks the first close brace ends the variable substitution.
 
2273
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
2274
 
 
2275
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
2276
 
 
2277
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
2278
 
 
2279
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
2280
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
 
2281
# Just in case
 
2282
sleep 1
 
2283
echo timestamp > conftest.file
 
2284
# Do `set' in a subshell so we don't clobber the current shell's
 
2285
# arguments.  Must try -L first in case configure is actually a
 
2286
# symlink; some systems play weird games with the mod time of symlinks
 
2287
# (eg FreeBSD returns the mod time of the symlink's containing
 
2288
# directory).
 
2289
if (
 
2290
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
2291
   if test "$*" = "X"; then
 
2292
      # -L didn't work.
 
2293
      set X `ls -t $srcdir/configure conftest.file`
 
2294
   fi
 
2295
   rm -f conftest.file
 
2296
   if test "$*" != "X $srcdir/configure conftest.file" \
 
2297
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
2298
 
 
2299
      # If neither matched, then we have a broken ls.  This can happen
 
2300
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
2301
      # broken ls alias from the environment.  This has actually
 
2302
      # happened.  Such a system could not be considered "sane".
 
2303
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
2304
alias in your environment" >&5
 
2305
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
2306
alias in your environment" >&2;}
 
2307
   { (exit 1); exit 1; }; }
 
2308
   fi
 
2309
 
 
2310
   test "$2" = conftest.file
 
2311
   )
 
2312
then
 
2313
   # Ok.
 
2314
   :
 
2315
else
 
2316
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
2317
Check your system clock" >&5
 
2318
echo "$as_me: error: newly created file is older than distributed files!
 
2319
Check your system clock" >&2;}
 
2320
   { (exit 1); exit 1; }; }
 
2321
fi
 
2322
{ echo "$as_me:$LINENO: result: yes" >&5
 
2323
echo "${ECHO_T}yes" >&6; }
 
2324
test "$program_prefix" != NONE &&
 
2325
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
 
2326
# Use a double $ so make ignores it.
 
2327
test "$program_suffix" != NONE &&
 
2328
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
 
2329
# Double any \ or $.  echo might interpret backslashes.
 
2330
# By default was `s,x,x', remove it if useless.
 
2331
cat <<\_ACEOF >conftest.sed
 
2332
s/[\\$]/&&/g;s/;s,x,x,$//
 
2333
_ACEOF
 
2334
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 
2335
rm -f conftest.sed
 
2336
 
 
2337
# expand $ac_aux_dir to an absolute path
 
2338
am_aux_dir=`cd $ac_aux_dir && pwd`
 
2339
 
 
2340
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
2341
# Use eval to expand $SHELL
 
2342
if eval "$MISSING --run true"; then
 
2343
  am_missing_run="$MISSING --run "
 
2344
else
 
2345
  am_missing_run=
 
2346
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
2347
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
2348
fi
 
2349
 
 
2350
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
 
2351
  # We used to keeping the `.' as first argument, in order to
 
2352
  # allow $(mkdir_p) to be used without argument.  As in
 
2353
  #   $(mkdir_p) $(somedir)
 
2354
  # where $(somedir) is conditionally defined.  However this is wrong
 
2355
  # for two reasons:
 
2356
  #  1. if the package is installed by a user who cannot write `.'
 
2357
  #     make install will fail,
 
2358
  #  2. the above comment should most certainly read
 
2359
  #     $(mkdir_p) $(DESTDIR)$(somedir)
 
2360
  #     so it does not work when $(somedir) is undefined and
 
2361
  #     $(DESTDIR) is not.
 
2362
  #  To support the latter case, we have to write
 
2363
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
 
2364
  #  so the `.' trick is pointless.
 
2365
  mkdir_p='mkdir -p --'
 
2366
else
 
2367
  # On NextStep and OpenStep, the `mkdir' command does not
 
2368
  # recognize any option.  It will interpret all options as
 
2369
  # directories to create, and then abort because `.' already
 
2370
  # exists.
 
2371
  for d in ./-p ./--version;
 
2372
  do
 
2373
    test -d $d && rmdir $d
 
2374
  done
 
2375
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
 
2376
  if test -f "$ac_aux_dir/mkinstalldirs"; then
 
2377
    mkdir_p='$(mkinstalldirs)'
 
2378
  else
 
2379
    mkdir_p='$(install_sh) -d'
 
2380
  fi
 
2381
fi
 
2382
 
 
2383
for ac_prog in gawk mawk nawk awk
 
2384
do
 
2385
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2386
set dummy $ac_prog; ac_word=$2
 
2387
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2388
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2389
if test "${ac_cv_prog_AWK+set}" = set; then
 
2390
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2391
else
 
2392
  if test -n "$AWK"; then
 
2393
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
2394
else
 
2395
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2396
for as_dir in $PATH
 
2397
do
 
2398
  IFS=$as_save_IFS
 
2399
  test -z "$as_dir" && as_dir=.
 
2400
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2401
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2402
    ac_cv_prog_AWK="$ac_prog"
 
2403
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2404
    break 2
 
2405
  fi
 
2406
done
 
2407
done
 
2408
IFS=$as_save_IFS
 
2409
 
 
2410
fi
 
2411
fi
 
2412
AWK=$ac_cv_prog_AWK
 
2413
if test -n "$AWK"; then
 
2414
  { echo "$as_me:$LINENO: result: $AWK" >&5
 
2415
echo "${ECHO_T}$AWK" >&6; }
 
2416
else
 
2417
  { echo "$as_me:$LINENO: result: no" >&5
 
2418
echo "${ECHO_T}no" >&6; }
 
2419
fi
 
2420
 
 
2421
 
 
2422
  test -n "$AWK" && break
 
2423
done
 
2424
 
 
2425
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2426
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
 
2427
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
2428
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
 
2429
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2430
else
 
2431
  cat >conftest.make <<\_ACEOF
 
2432
SHELL = /bin/sh
 
2433
all:
 
2434
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
2435
_ACEOF
 
2436
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
2437
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
2438
  *@@@%%%=?*=@@@%%%*)
 
2439
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
2440
  *)
 
2441
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
2442
esac
 
2443
rm -f conftest.make
 
2444
fi
 
2445
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
2446
  { echo "$as_me:$LINENO: result: yes" >&5
 
2447
echo "${ECHO_T}yes" >&6; }
 
2448
  SET_MAKE=
 
2449
else
 
2450
  { echo "$as_me:$LINENO: result: no" >&5
 
2451
echo "${ECHO_T}no" >&6; }
 
2452
  SET_MAKE="MAKE=${MAKE-make}"
 
2453
fi
 
2454
 
 
2455
rm -rf .tst 2>/dev/null
 
2456
mkdir .tst 2>/dev/null
 
2457
if test -d .tst; then
 
2458
  am__leading_dot=.
 
2459
else
 
2460
  am__leading_dot=_
 
2461
fi
 
2462
rmdir .tst 2>/dev/null
 
2463
 
 
2464
# test to see if srcdir already configured
 
2465
if test "`cd $srcdir && pwd`" != "`pwd`" &&
 
2466
   test -f $srcdir/config.status; then
 
2467
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
2468
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
2469
   { (exit 1); exit 1; }; }
 
2470
fi
 
2471
 
 
2472
# test whether we have cygpath
 
2473
if test -z "$CYGPATH_W"; then
 
2474
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
2475
    CYGPATH_W='cygpath -w'
 
2476
  else
 
2477
    CYGPATH_W=echo
 
2478
  fi
 
2479
fi
 
2480
 
 
2481
 
 
2482
# Define the identity of the package.
 
2483
 PACKAGE='mediastreamer'
 
2484
 VERSION='2.0.0'
 
2485
 
 
2486
 
 
2487
cat >>confdefs.h <<_ACEOF
 
2488
#define PACKAGE "$PACKAGE"
 
2489
_ACEOF
 
2490
 
 
2491
 
 
2492
cat >>confdefs.h <<_ACEOF
 
2493
#define VERSION "$VERSION"
 
2494
_ACEOF
 
2495
 
 
2496
# Some tools Automake needs.
 
2497
 
 
2498
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
2499
 
 
2500
 
 
2501
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
2502
 
 
2503
 
 
2504
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
2505
 
 
2506
 
 
2507
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
2508
 
 
2509
 
 
2510
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
2511
 
 
2512
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
2513
 
 
2514
# Installed binaries are usually stripped using `strip' when the user
 
2515
# run `make install-strip'.  However `strip' might not be the right
 
2516
# tool to use in cross-compilation environments, therefore Automake
 
2517
# will honor the `STRIP' environment variable to overrule this program.
 
2518
if test "$cross_compiling" != no; then
 
2519
  if test -n "$ac_tool_prefix"; then
 
2520
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
2521
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
2522
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2523
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2524
if test "${ac_cv_prog_STRIP+set}" = set; then
 
2525
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2526
else
 
2527
  if test -n "$STRIP"; then
 
2528
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2529
else
 
2530
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2531
for as_dir in $PATH
 
2532
do
 
2533
  IFS=$as_save_IFS
 
2534
  test -z "$as_dir" && as_dir=.
 
2535
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2536
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2537
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2538
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2539
    break 2
 
2540
  fi
 
2541
done
 
2542
done
 
2543
IFS=$as_save_IFS
 
2544
 
 
2545
fi
 
2546
fi
 
2547
STRIP=$ac_cv_prog_STRIP
 
2548
if test -n "$STRIP"; then
 
2549
  { echo "$as_me:$LINENO: result: $STRIP" >&5
 
2550
echo "${ECHO_T}$STRIP" >&6; }
 
2551
else
 
2552
  { echo "$as_me:$LINENO: result: no" >&5
 
2553
echo "${ECHO_T}no" >&6; }
 
2554
fi
 
2555
 
 
2556
 
 
2557
fi
 
2558
if test -z "$ac_cv_prog_STRIP"; then
 
2559
  ac_ct_STRIP=$STRIP
 
2560
  # Extract the first word of "strip", so it can be a program name with args.
 
2561
set dummy strip; ac_word=$2
 
2562
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2563
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2564
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
2565
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2566
else
 
2567
  if test -n "$ac_ct_STRIP"; then
 
2568
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
2569
else
 
2570
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2571
for as_dir in $PATH
 
2572
do
 
2573
  IFS=$as_save_IFS
 
2574
  test -z "$as_dir" && as_dir=.
 
2575
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2576
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2577
    ac_cv_prog_ac_ct_STRIP="strip"
 
2578
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2579
    break 2
 
2580
  fi
 
2581
done
 
2582
done
 
2583
IFS=$as_save_IFS
 
2584
 
 
2585
fi
 
2586
fi
 
2587
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
2588
if test -n "$ac_ct_STRIP"; then
 
2589
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
2590
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
 
2591
else
 
2592
  { echo "$as_me:$LINENO: result: no" >&5
 
2593
echo "${ECHO_T}no" >&6; }
 
2594
fi
 
2595
 
 
2596
  if test "x$ac_ct_STRIP" = x; then
 
2597
    STRIP=":"
 
2598
  else
 
2599
    case $cross_compiling:$ac_tool_warned in
 
2600
yes:)
 
2601
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2602
whose name does not start with the host triplet.  If you think this
 
2603
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2604
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2605
whose name does not start with the host triplet.  If you think this
 
2606
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2607
ac_tool_warned=yes ;;
 
2608
esac
 
2609
    STRIP=$ac_ct_STRIP
 
2610
  fi
 
2611
else
 
2612
  STRIP="$ac_cv_prog_STRIP"
 
2613
fi
 
2614
 
 
2615
fi
 
2616
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
2617
 
 
2618
# We need awk for the "check" target.  The system "awk" is bad on
 
2619
# some platforms.
 
2620
# Always define AMTAR for backward compatibility.
 
2621
 
 
2622
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
2623
 
 
2624
 
 
2625
{ echo "$as_me:$LINENO: checking how to create a ustar tar archive" >&5
 
2626
echo $ECHO_N "checking how to create a ustar tar archive... $ECHO_C" >&6; }
 
2627
# Loop over all known methods to create a tar archive until one works.
 
2628
_am_tools='gnutar plaintar pax cpio none'
 
2629
_am_tools=${am_cv_prog_tar_ustar-$_am_tools}
 
2630
# Do not fold the above two line into one, because Tru64 sh and
 
2631
# Solaris sh will not grok spaces in the rhs of `-'.
 
2632
for _am_tool in $_am_tools
 
2633
do
 
2634
  case $_am_tool in
 
2635
  gnutar)
 
2636
    for _am_tar in tar gnutar gtar;
 
2637
    do
 
2638
      { echo "$as_me:$LINENO: $_am_tar --version" >&5
 
2639
   ($_am_tar --version) >&5 2>&5
 
2640
   ac_status=$?
 
2641
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2642
   (exit $ac_status); } && break
 
2643
    done
 
2644
    am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
 
2645
    am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
 
2646
    am__untar="$_am_tar -xf -"
 
2647
    ;;
 
2648
  plaintar)
 
2649
    # Must skip GNU tar: if it does not support --format= it doesn't create
 
2650
    # ustar tarball either.
 
2651
    (tar --version) >/dev/null 2>&1 && continue
 
2652
    am__tar='tar chf - "$$tardir"'
 
2653
    am__tar_='tar chf - "$tardir"'
 
2654
    am__untar='tar xf -'
 
2655
    ;;
 
2656
  pax)
 
2657
    am__tar='pax -L -x ustar -w "$$tardir"'
 
2658
    am__tar_='pax -L -x ustar -w "$tardir"'
 
2659
    am__untar='pax -r'
 
2660
    ;;
 
2661
  cpio)
 
2662
    am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
 
2663
    am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
 
2664
    am__untar='cpio -i -H ustar -d'
 
2665
    ;;
 
2666
  none)
 
2667
    am__tar=false
 
2668
    am__tar_=false
 
2669
    am__untar=false
 
2670
    ;;
 
2671
  esac
 
2672
 
 
2673
  # If the value was cached, stop now.  We just wanted to have am__tar
 
2674
  # and am__untar set.
 
2675
  test -n "${am_cv_prog_tar_ustar}" && break
 
2676
 
 
2677
  # tar/untar a dummy directory, and stop if the command works
 
2678
  rm -rf conftest.dir
 
2679
  mkdir conftest.dir
 
2680
  echo GrepMe > conftest.dir/file
 
2681
  { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
 
2682
   (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
 
2683
   ac_status=$?
 
2684
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2685
   (exit $ac_status); }
 
2686
  rm -rf conftest.dir
 
2687
  if test -s conftest.tar; then
 
2688
    { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
 
2689
   ($am__untar <conftest.tar) >&5 2>&5
 
2690
   ac_status=$?
 
2691
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2692
   (exit $ac_status); }
 
2693
    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
 
2694
  fi
 
2695
done
 
2696
rm -rf conftest.dir
 
2697
 
 
2698
if test "${am_cv_prog_tar_ustar+set}" = set; then
 
2699
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2700
else
 
2701
  am_cv_prog_tar_ustar=$_am_tool
 
2702
fi
 
2703
 
 
2704
{ echo "$as_me:$LINENO: result: $am_cv_prog_tar_ustar" >&5
 
2705
echo "${ECHO_T}$am_cv_prog_tar_ustar" >&6; }
 
2706
 
 
2707
 
 
2708
 
 
2709
 
 
2710
 
 
2711
ac_config_headers="$ac_config_headers mediastreamer-config.h"
 
2712
 
 
2713
 
 
2714
cat >>confdefs.h <<_ACEOF
 
2715
#define MEDIASTREAMER_MAJOR_VERSION $MEDIASTREAMER_MAJOR_VERSION
 
2716
_ACEOF
 
2717
 
 
2718
 
 
2719
cat >>confdefs.h <<_ACEOF
 
2720
#define MEDIASTREAMER_MINOR_VERSION $MEDIASTREAMER_MINOR_VERSION
 
2721
_ACEOF
 
2722
 
 
2723
 
 
2724
cat >>confdefs.h <<_ACEOF
 
2725
#define MEDIASTREAMER_MICRO_VERSION $MEDIASTREAMER_MICRO_VERSION
 
2726
_ACEOF
 
2727
 
 
2728
 
 
2729
cat >>confdefs.h <<_ACEOF
 
2730
#define MEDIASTREAMER_VERSION "$MEDIASTREAMER_VERSION"
 
2731
_ACEOF
 
2732
 
 
2733
 
 
2734
 
 
2735
 
 
2736
{ echo "$as_me:$LINENO: checking warning make an error on compilation" >&5
 
2737
echo $ECHO_N "checking warning make an error on compilation... $ECHO_C" >&6; }
 
2738
# Check whether --enable-strict was given.
 
2739
if test "${enable_strict+set}" = set; then
 
2740
  enableval=$enable_strict; wall_werror=$enableval
 
2741
else
 
2742
  wall_werror=yes
 
2743
 
 
2744
fi
 
2745
 
 
2746
 
 
2747
CFLAGS="-DORTP_INET6 $CFLAGS "
 
2748
 
 
2749
# Check whether --enable-ipv6 was given.
 
2750
if test "${enable_ipv6+set}" = set; then
 
2751
  enableval=$enable_ipv6; case "${enableval}" in
 
2752
        yes)  ipv6=true;;
 
2753
        no)   ipv6=false;;
 
2754
        *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-ipv6" >&5
 
2755
echo "$as_me: error: bad value ${enableval} for --enable-ipv6" >&2;}
 
2756
   { (exit 1); exit 1; }; } ;;
 
2757
      esac
 
2758
else
 
2759
  ipv6=true
 
2760
fi
 
2761
 
 
2762
if test x$ipv6 = xtrue ; then
 
2763
        CFLAGS="$CFLAGS -DINET6"
 
2764
fi
 
2765
 
 
2766
 
 
2767
# Check whether --enable-debug was given.
 
2768
if test "${enable_debug+set}" = set; then
 
2769
  enableval=$enable_debug; case "${enableval}" in
 
2770
                                yes) debug_enabled=yes;;
 
2771
                                no) debug_enabled=no;;
 
2772
                                *) { { echo "$as_me:$LINENO: error: \"Bad value for --enable-debug\"" >&5
 
2773
echo "$as_me: error: \"Bad value for --enable-debug\"" >&2;}
 
2774
   { (exit 1); exit 1; }; };;
 
2775
                        esac
 
2776
else
 
2777
  debug_enabled=no
 
2778
fi
 
2779
 
 
2780
 
 
2781
 
 
2782
ac_ext=c
 
2783
ac_cpp='$CPP $CPPFLAGS'
 
2784
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2785
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2786
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2787
if test -n "$ac_tool_prefix"; then
 
2788
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
2789
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
2790
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2791
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2792
if test "${ac_cv_prog_CC+set}" = set; then
 
2793
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2794
else
 
2795
  if test -n "$CC"; then
 
2796
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2797
else
 
2798
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2799
for as_dir in $PATH
 
2800
do
 
2801
  IFS=$as_save_IFS
 
2802
  test -z "$as_dir" && as_dir=.
 
2803
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2804
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2805
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2806
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2807
    break 2
 
2808
  fi
 
2809
done
 
2810
done
 
2811
IFS=$as_save_IFS
 
2812
 
 
2813
fi
 
2814
fi
 
2815
CC=$ac_cv_prog_CC
 
2816
if test -n "$CC"; then
 
2817
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2818
echo "${ECHO_T}$CC" >&6; }
 
2819
else
 
2820
  { echo "$as_me:$LINENO: result: no" >&5
 
2821
echo "${ECHO_T}no" >&6; }
 
2822
fi
 
2823
 
 
2824
 
 
2825
fi
 
2826
if test -z "$ac_cv_prog_CC"; then
 
2827
  ac_ct_CC=$CC
 
2828
  # Extract the first word of "gcc", so it can be a program name with args.
 
2829
set dummy gcc; ac_word=$2
 
2830
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2831
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2832
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2833
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2834
else
 
2835
  if test -n "$ac_ct_CC"; then
 
2836
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2837
else
 
2838
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2839
for as_dir in $PATH
 
2840
do
 
2841
  IFS=$as_save_IFS
 
2842
  test -z "$as_dir" && as_dir=.
 
2843
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2844
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2845
    ac_cv_prog_ac_ct_CC="gcc"
 
2846
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2847
    break 2
 
2848
  fi
 
2849
done
 
2850
done
 
2851
IFS=$as_save_IFS
 
2852
 
 
2853
fi
 
2854
fi
 
2855
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2856
if test -n "$ac_ct_CC"; then
 
2857
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2858
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
2859
else
 
2860
  { echo "$as_me:$LINENO: result: no" >&5
 
2861
echo "${ECHO_T}no" >&6; }
 
2862
fi
 
2863
 
 
2864
  if test "x$ac_ct_CC" = x; then
 
2865
    CC=""
 
2866
  else
 
2867
    case $cross_compiling:$ac_tool_warned in
 
2868
yes:)
 
2869
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2870
whose name does not start with the host triplet.  If you think this
 
2871
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2872
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2873
whose name does not start with the host triplet.  If you think this
 
2874
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2875
ac_tool_warned=yes ;;
 
2876
esac
 
2877
    CC=$ac_ct_CC
 
2878
  fi
 
2879
else
 
2880
  CC="$ac_cv_prog_CC"
 
2881
fi
 
2882
 
 
2883
if test -z "$CC"; then
 
2884
          if test -n "$ac_tool_prefix"; then
 
2885
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2886
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
2887
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2888
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2889
if test "${ac_cv_prog_CC+set}" = set; then
 
2890
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2891
else
 
2892
  if test -n "$CC"; then
 
2893
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2894
else
 
2895
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2896
for as_dir in $PATH
 
2897
do
 
2898
  IFS=$as_save_IFS
 
2899
  test -z "$as_dir" && as_dir=.
 
2900
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2901
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2902
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2903
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2904
    break 2
 
2905
  fi
 
2906
done
 
2907
done
 
2908
IFS=$as_save_IFS
 
2909
 
 
2910
fi
 
2911
fi
 
2912
CC=$ac_cv_prog_CC
 
2913
if test -n "$CC"; then
 
2914
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2915
echo "${ECHO_T}$CC" >&6; }
 
2916
else
 
2917
  { echo "$as_me:$LINENO: result: no" >&5
 
2918
echo "${ECHO_T}no" >&6; }
 
2919
fi
 
2920
 
 
2921
 
 
2922
  fi
 
2923
fi
 
2924
if test -z "$CC"; then
 
2925
  # Extract the first word of "cc", so it can be a program name with args.
 
2926
set dummy cc; ac_word=$2
 
2927
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2928
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2929
if test "${ac_cv_prog_CC+set}" = set; then
 
2930
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2931
else
 
2932
  if test -n "$CC"; then
 
2933
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2934
else
 
2935
  ac_prog_rejected=no
 
2936
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2937
for as_dir in $PATH
 
2938
do
 
2939
  IFS=$as_save_IFS
 
2940
  test -z "$as_dir" && as_dir=.
 
2941
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2942
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2943
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2944
       ac_prog_rejected=yes
 
2945
       continue
 
2946
     fi
 
2947
    ac_cv_prog_CC="cc"
 
2948
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2949
    break 2
 
2950
  fi
 
2951
done
 
2952
done
 
2953
IFS=$as_save_IFS
 
2954
 
 
2955
if test $ac_prog_rejected = yes; then
 
2956
  # We found a bogon in the path, so make sure we never use it.
 
2957
  set dummy $ac_cv_prog_CC
 
2958
  shift
 
2959
  if test $# != 0; then
 
2960
    # We chose a different compiler from the bogus one.
 
2961
    # However, it has the same basename, so the bogon will be chosen
 
2962
    # first if we set CC to just the basename; use the full file name.
 
2963
    shift
 
2964
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
2965
  fi
 
2966
fi
 
2967
fi
 
2968
fi
 
2969
CC=$ac_cv_prog_CC
 
2970
if test -n "$CC"; then
 
2971
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2972
echo "${ECHO_T}$CC" >&6; }
 
2973
else
 
2974
  { echo "$as_me:$LINENO: result: no" >&5
 
2975
echo "${ECHO_T}no" >&6; }
 
2976
fi
 
2977
 
 
2978
 
 
2979
fi
 
2980
if test -z "$CC"; then
 
2981
  if test -n "$ac_tool_prefix"; then
 
2982
  for ac_prog in cl.exe
 
2983
  do
 
2984
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2985
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2986
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2987
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2988
if test "${ac_cv_prog_CC+set}" = set; then
 
2989
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2990
else
 
2991
  if test -n "$CC"; then
 
2992
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2993
else
 
2994
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2995
for as_dir in $PATH
 
2996
do
 
2997
  IFS=$as_save_IFS
 
2998
  test -z "$as_dir" && as_dir=.
 
2999
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3000
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3001
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
3002
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3003
    break 2
 
3004
  fi
 
3005
done
 
3006
done
 
3007
IFS=$as_save_IFS
 
3008
 
 
3009
fi
 
3010
fi
 
3011
CC=$ac_cv_prog_CC
 
3012
if test -n "$CC"; then
 
3013
  { echo "$as_me:$LINENO: result: $CC" >&5
 
3014
echo "${ECHO_T}$CC" >&6; }
 
3015
else
 
3016
  { echo "$as_me:$LINENO: result: no" >&5
 
3017
echo "${ECHO_T}no" >&6; }
 
3018
fi
 
3019
 
 
3020
 
 
3021
    test -n "$CC" && break
 
3022
  done
 
3023
fi
 
3024
if test -z "$CC"; then
 
3025
  ac_ct_CC=$CC
 
3026
  for ac_prog in cl.exe
 
3027
do
 
3028
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3029
set dummy $ac_prog; ac_word=$2
 
3030
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3031
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3032
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
3033
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3034
else
 
3035
  if test -n "$ac_ct_CC"; then
 
3036
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3037
else
 
3038
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3039
for as_dir in $PATH
 
3040
do
 
3041
  IFS=$as_save_IFS
 
3042
  test -z "$as_dir" && as_dir=.
 
3043
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3044
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3045
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
3046
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3047
    break 2
 
3048
  fi
 
3049
done
 
3050
done
 
3051
IFS=$as_save_IFS
 
3052
 
 
3053
fi
 
3054
fi
 
3055
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3056
if test -n "$ac_ct_CC"; then
 
3057
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
3058
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
3059
else
 
3060
  { echo "$as_me:$LINENO: result: no" >&5
 
3061
echo "${ECHO_T}no" >&6; }
 
3062
fi
 
3063
 
 
3064
 
 
3065
  test -n "$ac_ct_CC" && break
 
3066
done
 
3067
 
 
3068
  if test "x$ac_ct_CC" = x; then
 
3069
    CC=""
 
3070
  else
 
3071
    case $cross_compiling:$ac_tool_warned in
 
3072
yes:)
 
3073
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
3074
whose name does not start with the host triplet.  If you think this
 
3075
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
3076
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
3077
whose name does not start with the host triplet.  If you think this
 
3078
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
3079
ac_tool_warned=yes ;;
 
3080
esac
 
3081
    CC=$ac_ct_CC
 
3082
  fi
 
3083
fi
 
3084
 
 
3085
fi
 
3086
 
 
3087
 
 
3088
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
3089
See \`config.log' for more details." >&5
 
3090
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
3091
See \`config.log' for more details." >&2;}
 
3092
   { (exit 1); exit 1; }; }
 
3093
 
 
3094
# Provide some information about the compiler.
 
3095
echo "$as_me:$LINENO: checking for C compiler version" >&5
 
3096
ac_compiler=`set X $ac_compile; echo $2`
 
3097
{ (ac_try="$ac_compiler --version >&5"
 
3098
case "(($ac_try" in
 
3099
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3100
  *) ac_try_echo=$ac_try;;
 
3101
esac
 
3102
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3103
  (eval "$ac_compiler --version >&5") 2>&5
 
3104
  ac_status=$?
 
3105
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3106
  (exit $ac_status); }
 
3107
{ (ac_try="$ac_compiler -v >&5"
 
3108
case "(($ac_try" in
 
3109
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3110
  *) ac_try_echo=$ac_try;;
 
3111
esac
 
3112
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3113
  (eval "$ac_compiler -v >&5") 2>&5
 
3114
  ac_status=$?
 
3115
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3116
  (exit $ac_status); }
 
3117
{ (ac_try="$ac_compiler -V >&5"
 
3118
case "(($ac_try" in
 
3119
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3120
  *) ac_try_echo=$ac_try;;
 
3121
esac
 
3122
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3123
  (eval "$ac_compiler -V >&5") 2>&5
 
3124
  ac_status=$?
 
3125
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3126
  (exit $ac_status); }
 
3127
 
 
3128
cat >conftest.$ac_ext <<_ACEOF
 
3129
/* confdefs.h.  */
 
3130
_ACEOF
 
3131
cat confdefs.h >>conftest.$ac_ext
 
3132
cat >>conftest.$ac_ext <<_ACEOF
 
3133
/* end confdefs.h.  */
 
3134
 
 
3135
int
 
3136
main ()
 
3137
{
 
3138
 
 
3139
  ;
 
3140
  return 0;
 
3141
}
 
3142
_ACEOF
 
3143
ac_clean_files_save=$ac_clean_files
 
3144
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
3145
# Try to create an executable without -o first, disregard a.out.
 
3146
# It will help us diagnose broken compilers, and finding out an intuition
 
3147
# of exeext.
 
3148
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
3149
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
 
3150
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
3151
#
 
3152
# List of possible output files, starting from the most likely.
 
3153
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
 
3154
# only as a last resort.  b.out is created by i960 compilers.
 
3155
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
 
3156
#
 
3157
# The IRIX 6 linker writes into existing files which may not be
 
3158
# executable, retaining their permissions.  Remove them first so a
 
3159
# subsequent execution test works.
 
3160
ac_rmfiles=
 
3161
for ac_file in $ac_files
 
3162
do
 
3163
  case $ac_file in
 
3164
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
3165
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
3166
  esac
 
3167
done
 
3168
rm -f $ac_rmfiles
 
3169
 
 
3170
if { (ac_try="$ac_link_default"
 
3171
case "(($ac_try" in
 
3172
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3173
  *) ac_try_echo=$ac_try;;
 
3174
esac
 
3175
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3176
  (eval "$ac_link_default") 2>&5
 
3177
  ac_status=$?
 
3178
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3179
  (exit $ac_status); }; then
 
3180
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
3181
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
3182
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
3183
# so that the user can short-circuit this test for compilers unknown to
 
3184
# Autoconf.
 
3185
for ac_file in $ac_files ''
 
3186
do
 
3187
  test -f "$ac_file" || continue
 
3188
  case $ac_file in
 
3189
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
 
3190
        ;;
 
3191
    [ab].out )
 
3192
        # We found the default executable, but exeext='' is most
 
3193
        # certainly right.
 
3194
        break;;
 
3195
    *.* )
 
3196
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
3197
        then :; else
 
3198
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3199
        fi
 
3200
        # We set ac_cv_exeext here because the later test for it is not
 
3201
        # safe: cross compilers may not add the suffix if given an `-o'
 
3202
        # argument, so we may need to know it at that point already.
 
3203
        # Even if this section looks crufty: it has the advantage of
 
3204
        # actually working.
 
3205
        break;;
 
3206
    * )
 
3207
        break;;
 
3208
  esac
 
3209
done
 
3210
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
3211
 
 
3212
else
 
3213
  ac_file=''
 
3214
fi
 
3215
 
 
3216
{ echo "$as_me:$LINENO: result: $ac_file" >&5
 
3217
echo "${ECHO_T}$ac_file" >&6; }
 
3218
if test -z "$ac_file"; then
 
3219
  echo "$as_me: failed program was:" >&5
 
3220
sed 's/^/| /' conftest.$ac_ext >&5
 
3221
 
 
3222
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
3223
See \`config.log' for more details." >&5
 
3224
echo "$as_me: error: C compiler cannot create executables
 
3225
See \`config.log' for more details." >&2;}
 
3226
   { (exit 77); exit 77; }; }
 
3227
fi
 
3228
 
 
3229
ac_exeext=$ac_cv_exeext
 
3230
 
 
3231
# Check that the compiler produces executables we can run.  If not, either
 
3232
# the compiler is broken, or we cross compile.
 
3233
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
3234
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
 
3235
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
3236
# If not cross compiling, check that we can run a simple program.
 
3237
if test "$cross_compiling" != yes; then
 
3238
  if { ac_try='./$ac_file'
 
3239
  { (case "(($ac_try" in
 
3240
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3241
  *) ac_try_echo=$ac_try;;
 
3242
esac
 
3243
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3244
  (eval "$ac_try") 2>&5
 
3245
  ac_status=$?
 
3246
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3247
  (exit $ac_status); }; }; then
 
3248
    cross_compiling=no
 
3249
  else
 
3250
    if test "$cross_compiling" = maybe; then
 
3251
        cross_compiling=yes
 
3252
    else
 
3253
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
3254
If you meant to cross compile, use \`--host'.
 
3255
See \`config.log' for more details." >&5
 
3256
echo "$as_me: error: cannot run C compiled programs.
 
3257
If you meant to cross compile, use \`--host'.
 
3258
See \`config.log' for more details." >&2;}
 
3259
   { (exit 1); exit 1; }; }
 
3260
    fi
 
3261
  fi
 
3262
fi
 
3263
{ echo "$as_me:$LINENO: result: yes" >&5
 
3264
echo "${ECHO_T}yes" >&6; }
 
3265
 
 
3266
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
3267
ac_clean_files=$ac_clean_files_save
 
3268
# Check that the compiler produces executables we can run.  If not, either
 
3269
# the compiler is broken, or we cross compile.
 
3270
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
3271
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
 
3272
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
3273
echo "${ECHO_T}$cross_compiling" >&6; }
 
3274
 
 
3275
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
3276
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
 
3277
if { (ac_try="$ac_link"
 
3278
case "(($ac_try" in
 
3279
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3280
  *) ac_try_echo=$ac_try;;
 
3281
esac
 
3282
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3283
  (eval "$ac_link") 2>&5
 
3284
  ac_status=$?
 
3285
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3286
  (exit $ac_status); }; then
 
3287
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
3288
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
3289
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
3290
# `rm'.
 
3291
for ac_file in conftest.exe conftest conftest.*; do
 
3292
  test -f "$ac_file" || continue
 
3293
  case $ac_file in
 
3294
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
3295
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3296
          break;;
 
3297
    * ) break;;
 
3298
  esac
 
3299
done
 
3300
else
 
3301
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
3302
See \`config.log' for more details." >&5
 
3303
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
3304
See \`config.log' for more details." >&2;}
 
3305
   { (exit 1); exit 1; }; }
 
3306
fi
 
3307
 
 
3308
rm -f conftest$ac_cv_exeext
 
3309
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
3310
echo "${ECHO_T}$ac_cv_exeext" >&6; }
 
3311
 
 
3312
rm -f conftest.$ac_ext
 
3313
EXEEXT=$ac_cv_exeext
 
3314
ac_exeext=$EXEEXT
 
3315
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
3316
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
 
3317
if test "${ac_cv_objext+set}" = set; then
 
3318
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3319
else
 
3320
  cat >conftest.$ac_ext <<_ACEOF
 
3321
/* confdefs.h.  */
 
3322
_ACEOF
 
3323
cat confdefs.h >>conftest.$ac_ext
 
3324
cat >>conftest.$ac_ext <<_ACEOF
 
3325
/* end confdefs.h.  */
 
3326
 
 
3327
int
 
3328
main ()
 
3329
{
 
3330
 
 
3331
  ;
 
3332
  return 0;
 
3333
}
 
3334
_ACEOF
 
3335
rm -f conftest.o conftest.obj
 
3336
if { (ac_try="$ac_compile"
 
3337
case "(($ac_try" in
 
3338
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3339
  *) ac_try_echo=$ac_try;;
 
3340
esac
 
3341
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3342
  (eval "$ac_compile") 2>&5
 
3343
  ac_status=$?
 
3344
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3345
  (exit $ac_status); }; then
 
3346
  for ac_file in conftest.o conftest.obj conftest.*; do
 
3347
  test -f "$ac_file" || continue;
 
3348
  case $ac_file in
 
3349
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
 
3350
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
3351
       break;;
 
3352
  esac
 
3353
done
 
3354
else
 
3355
  echo "$as_me: failed program was:" >&5
 
3356
sed 's/^/| /' conftest.$ac_ext >&5
 
3357
 
 
3358
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
3359
See \`config.log' for more details." >&5
 
3360
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
3361
See \`config.log' for more details." >&2;}
 
3362
   { (exit 1); exit 1; }; }
 
3363
fi
 
3364
 
 
3365
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
3366
fi
 
3367
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
3368
echo "${ECHO_T}$ac_cv_objext" >&6; }
 
3369
OBJEXT=$ac_cv_objext
 
3370
ac_objext=$OBJEXT
 
3371
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
3372
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
 
3373
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
3374
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3375
else
 
3376
  cat >conftest.$ac_ext <<_ACEOF
 
3377
/* confdefs.h.  */
 
3378
_ACEOF
 
3379
cat confdefs.h >>conftest.$ac_ext
 
3380
cat >>conftest.$ac_ext <<_ACEOF
 
3381
/* end confdefs.h.  */
 
3382
 
 
3383
int
 
3384
main ()
 
3385
{
 
3386
#ifndef __GNUC__
 
3387
       choke me
 
3388
#endif
 
3389
 
 
3390
  ;
 
3391
  return 0;
 
3392
}
 
3393
_ACEOF
 
3394
rm -f conftest.$ac_objext
 
3395
if { (ac_try="$ac_compile"
 
3396
case "(($ac_try" in
 
3397
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3398
  *) ac_try_echo=$ac_try;;
 
3399
esac
 
3400
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3401
  (eval "$ac_compile") 2>conftest.er1
 
3402
  ac_status=$?
 
3403
  grep -v '^ *+' conftest.er1 >conftest.err
 
3404
  rm -f conftest.er1
 
3405
  cat conftest.err >&5
 
3406
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3407
  (exit $ac_status); } &&
 
3408
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
3409
  { (case "(($ac_try" in
 
3410
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3411
  *) ac_try_echo=$ac_try;;
 
3412
esac
 
3413
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3414
  (eval "$ac_try") 2>&5
 
3415
  ac_status=$?
 
3416
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3417
  (exit $ac_status); }; } &&
 
3418
         { ac_try='test -s conftest.$ac_objext'
 
3419
  { (case "(($ac_try" in
 
3420
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3421
  *) ac_try_echo=$ac_try;;
 
3422
esac
 
3423
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3424
  (eval "$ac_try") 2>&5
 
3425
  ac_status=$?
 
3426
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3427
  (exit $ac_status); }; }; then
 
3428
  ac_compiler_gnu=yes
 
3429
else
 
3430
  echo "$as_me: failed program was:" >&5
 
3431
sed 's/^/| /' conftest.$ac_ext >&5
 
3432
 
 
3433
        ac_compiler_gnu=no
 
3434
fi
 
3435
 
 
3436
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3437
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
3438
 
 
3439
fi
 
3440
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
3441
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
 
3442
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
3443
ac_test_CFLAGS=${CFLAGS+set}
 
3444
ac_save_CFLAGS=$CFLAGS
 
3445
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
3446
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
 
3447
if test "${ac_cv_prog_cc_g+set}" = set; then
 
3448
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3449
else
 
3450
  ac_save_c_werror_flag=$ac_c_werror_flag
 
3451
   ac_c_werror_flag=yes
 
3452
   ac_cv_prog_cc_g=no
 
3453
   CFLAGS="-g"
 
3454
   cat >conftest.$ac_ext <<_ACEOF
 
3455
/* confdefs.h.  */
 
3456
_ACEOF
 
3457
cat confdefs.h >>conftest.$ac_ext
 
3458
cat >>conftest.$ac_ext <<_ACEOF
 
3459
/* end confdefs.h.  */
 
3460
 
 
3461
int
 
3462
main ()
 
3463
{
 
3464
 
 
3465
  ;
 
3466
  return 0;
 
3467
}
 
3468
_ACEOF
 
3469
rm -f conftest.$ac_objext
 
3470
if { (ac_try="$ac_compile"
 
3471
case "(($ac_try" in
 
3472
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3473
  *) ac_try_echo=$ac_try;;
 
3474
esac
 
3475
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3476
  (eval "$ac_compile") 2>conftest.er1
 
3477
  ac_status=$?
 
3478
  grep -v '^ *+' conftest.er1 >conftest.err
 
3479
  rm -f conftest.er1
 
3480
  cat conftest.err >&5
 
3481
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3482
  (exit $ac_status); } &&
 
3483
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
3484
  { (case "(($ac_try" in
 
3485
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3486
  *) ac_try_echo=$ac_try;;
 
3487
esac
 
3488
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3489
  (eval "$ac_try") 2>&5
 
3490
  ac_status=$?
 
3491
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3492
  (exit $ac_status); }; } &&
 
3493
         { ac_try='test -s conftest.$ac_objext'
 
3494
  { (case "(($ac_try" in
 
3495
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3496
  *) ac_try_echo=$ac_try;;
 
3497
esac
 
3498
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3499
  (eval "$ac_try") 2>&5
 
3500
  ac_status=$?
 
3501
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3502
  (exit $ac_status); }; }; then
 
3503
  ac_cv_prog_cc_g=yes
 
3504
else
 
3505
  echo "$as_me: failed program was:" >&5
 
3506
sed 's/^/| /' conftest.$ac_ext >&5
 
3507
 
 
3508
        CFLAGS=""
 
3509
      cat >conftest.$ac_ext <<_ACEOF
 
3510
/* confdefs.h.  */
 
3511
_ACEOF
 
3512
cat confdefs.h >>conftest.$ac_ext
 
3513
cat >>conftest.$ac_ext <<_ACEOF
 
3514
/* end confdefs.h.  */
 
3515
 
 
3516
int
 
3517
main ()
 
3518
{
 
3519
 
 
3520
  ;
 
3521
  return 0;
 
3522
}
 
3523
_ACEOF
 
3524
rm -f conftest.$ac_objext
 
3525
if { (ac_try="$ac_compile"
 
3526
case "(($ac_try" in
 
3527
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3528
  *) ac_try_echo=$ac_try;;
 
3529
esac
 
3530
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3531
  (eval "$ac_compile") 2>conftest.er1
 
3532
  ac_status=$?
 
3533
  grep -v '^ *+' conftest.er1 >conftest.err
 
3534
  rm -f conftest.er1
 
3535
  cat conftest.err >&5
 
3536
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3537
  (exit $ac_status); } &&
 
3538
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
3539
  { (case "(($ac_try" in
 
3540
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3541
  *) ac_try_echo=$ac_try;;
 
3542
esac
 
3543
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3544
  (eval "$ac_try") 2>&5
 
3545
  ac_status=$?
 
3546
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3547
  (exit $ac_status); }; } &&
 
3548
         { ac_try='test -s conftest.$ac_objext'
 
3549
  { (case "(($ac_try" in
 
3550
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3551
  *) ac_try_echo=$ac_try;;
 
3552
esac
 
3553
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3554
  (eval "$ac_try") 2>&5
 
3555
  ac_status=$?
 
3556
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3557
  (exit $ac_status); }; }; then
 
3558
  :
 
3559
else
 
3560
  echo "$as_me: failed program was:" >&5
 
3561
sed 's/^/| /' conftest.$ac_ext >&5
 
3562
 
 
3563
        ac_c_werror_flag=$ac_save_c_werror_flag
 
3564
         CFLAGS="-g"
 
3565
         cat >conftest.$ac_ext <<_ACEOF
 
3566
/* confdefs.h.  */
 
3567
_ACEOF
 
3568
cat confdefs.h >>conftest.$ac_ext
 
3569
cat >>conftest.$ac_ext <<_ACEOF
 
3570
/* end confdefs.h.  */
 
3571
 
 
3572
int
 
3573
main ()
 
3574
{
 
3575
 
 
3576
  ;
 
3577
  return 0;
 
3578
}
 
3579
_ACEOF
 
3580
rm -f conftest.$ac_objext
 
3581
if { (ac_try="$ac_compile"
 
3582
case "(($ac_try" in
 
3583
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3584
  *) ac_try_echo=$ac_try;;
 
3585
esac
 
3586
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3587
  (eval "$ac_compile") 2>conftest.er1
 
3588
  ac_status=$?
 
3589
  grep -v '^ *+' conftest.er1 >conftest.err
 
3590
  rm -f conftest.er1
 
3591
  cat conftest.err >&5
 
3592
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3593
  (exit $ac_status); } &&
 
3594
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
3595
  { (case "(($ac_try" in
 
3596
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3597
  *) ac_try_echo=$ac_try;;
 
3598
esac
 
3599
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3600
  (eval "$ac_try") 2>&5
 
3601
  ac_status=$?
 
3602
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3603
  (exit $ac_status); }; } &&
 
3604
         { ac_try='test -s conftest.$ac_objext'
 
3605
  { (case "(($ac_try" in
 
3606
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3607
  *) ac_try_echo=$ac_try;;
 
3608
esac
 
3609
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3610
  (eval "$ac_try") 2>&5
 
3611
  ac_status=$?
 
3612
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3613
  (exit $ac_status); }; }; then
 
3614
  ac_cv_prog_cc_g=yes
 
3615
else
 
3616
  echo "$as_me: failed program was:" >&5
 
3617
sed 's/^/| /' conftest.$ac_ext >&5
 
3618
 
 
3619
 
 
3620
fi
 
3621
 
 
3622
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3623
fi
 
3624
 
 
3625
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3626
fi
 
3627
 
 
3628
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3629
   ac_c_werror_flag=$ac_save_c_werror_flag
 
3630
fi
 
3631
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
3632
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
 
3633
if test "$ac_test_CFLAGS" = set; then
 
3634
  CFLAGS=$ac_save_CFLAGS
 
3635
elif test $ac_cv_prog_cc_g = yes; then
 
3636
  if test "$GCC" = yes; then
 
3637
    CFLAGS="-g -O2"
 
3638
  else
 
3639
    CFLAGS="-g"
 
3640
  fi
 
3641
else
 
3642
  if test "$GCC" = yes; then
 
3643
    CFLAGS="-O2"
 
3644
  else
 
3645
    CFLAGS=
 
3646
  fi
 
3647
fi
 
3648
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
 
3649
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
 
3650
if test "${ac_cv_prog_cc_c89+set}" = set; then
 
3651
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3652
else
 
3653
  ac_cv_prog_cc_c89=no
 
3654
ac_save_CC=$CC
 
3655
cat >conftest.$ac_ext <<_ACEOF
 
3656
/* confdefs.h.  */
 
3657
_ACEOF
 
3658
cat confdefs.h >>conftest.$ac_ext
 
3659
cat >>conftest.$ac_ext <<_ACEOF
 
3660
/* end confdefs.h.  */
 
3661
#include <stdarg.h>
 
3662
#include <stdio.h>
 
3663
#include <sys/types.h>
 
3664
#include <sys/stat.h>
 
3665
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
3666
struct buf { int x; };
 
3667
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
3668
static char *e (p, i)
 
3669
     char **p;
 
3670
     int i;
 
3671
{
 
3672
  return p[i];
 
3673
}
 
3674
static char *f (char * (*g) (char **, int), char **p, ...)
 
3675
{
 
3676
  char *s;
 
3677
  va_list v;
 
3678
  va_start (v,p);
 
3679
  s = g (p, va_arg (v,int));
 
3680
  va_end (v);
 
3681
  return s;
 
3682
}
 
3683
 
 
3684
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
3685
   function prototypes and stuff, but not '\xHH' hex character constants.
 
3686
   These don't provoke an error unfortunately, instead are silently treated
 
3687
   as 'x'.  The following induces an error, until -std is added to get
 
3688
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
3689
   array size at least.  It's necessary to write '\x00'==0 to get something
 
3690
   that's true only with -std.  */
 
3691
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
3692
 
 
3693
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
3694
   inside strings and character constants.  */
 
3695
#define FOO(x) 'x'
 
3696
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
3697
 
 
3698
int test (int i, double x);
 
3699
struct s1 {int (*f) (int a);};
 
3700
struct s2 {int (*f) (double a);};
 
3701
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
3702
int argc;
 
3703
char **argv;
 
3704
int
 
3705
main ()
 
3706
{
 
3707
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
3708
  ;
 
3709
  return 0;
 
3710
}
 
3711
_ACEOF
 
3712
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
3713
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3714
do
 
3715
  CC="$ac_save_CC $ac_arg"
 
3716
  rm -f conftest.$ac_objext
 
3717
if { (ac_try="$ac_compile"
 
3718
case "(($ac_try" in
 
3719
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3720
  *) ac_try_echo=$ac_try;;
 
3721
esac
 
3722
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3723
  (eval "$ac_compile") 2>conftest.er1
 
3724
  ac_status=$?
 
3725
  grep -v '^ *+' conftest.er1 >conftest.err
 
3726
  rm -f conftest.er1
 
3727
  cat conftest.err >&5
 
3728
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3729
  (exit $ac_status); } &&
 
3730
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
3731
  { (case "(($ac_try" in
 
3732
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3733
  *) ac_try_echo=$ac_try;;
 
3734
esac
 
3735
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3736
  (eval "$ac_try") 2>&5
 
3737
  ac_status=$?
 
3738
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3739
  (exit $ac_status); }; } &&
 
3740
         { ac_try='test -s conftest.$ac_objext'
 
3741
  { (case "(($ac_try" in
 
3742
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3743
  *) ac_try_echo=$ac_try;;
 
3744
esac
 
3745
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3746
  (eval "$ac_try") 2>&5
 
3747
  ac_status=$?
 
3748
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3749
  (exit $ac_status); }; }; then
 
3750
  ac_cv_prog_cc_c89=$ac_arg
 
3751
else
 
3752
  echo "$as_me: failed program was:" >&5
 
3753
sed 's/^/| /' conftest.$ac_ext >&5
 
3754
 
 
3755
 
 
3756
fi
 
3757
 
 
3758
rm -f core conftest.err conftest.$ac_objext
 
3759
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
3760
done
 
3761
rm -f conftest.$ac_ext
 
3762
CC=$ac_save_CC
 
3763
 
 
3764
fi
 
3765
# AC_CACHE_VAL
 
3766
case "x$ac_cv_prog_cc_c89" in
 
3767
  x)
 
3768
    { echo "$as_me:$LINENO: result: none needed" >&5
 
3769
echo "${ECHO_T}none needed" >&6; } ;;
 
3770
  xno)
 
3771
    { echo "$as_me:$LINENO: result: unsupported" >&5
 
3772
echo "${ECHO_T}unsupported" >&6; } ;;
 
3773
  *)
 
3774
    CC="$CC $ac_cv_prog_cc_c89"
 
3775
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
 
3776
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
 
3777
esac
 
3778
 
 
3779
 
 
3780
ac_ext=c
 
3781
ac_cpp='$CPP $CPPFLAGS'
 
3782
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3783
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3784
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3785
DEPDIR="${am__leading_dot}deps"
 
3786
 
 
3787
ac_config_commands="$ac_config_commands depfiles"
 
3788
 
 
3789
 
 
3790
am_make=${MAKE-make}
 
3791
cat > confinc << 'END'
 
3792
am__doit:
 
3793
        @echo done
 
3794
.PHONY: am__doit
 
3795
END
 
3796
# If we don't find an include directive, just comment out the code.
 
3797
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
3798
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
 
3799
am__include="#"
 
3800
am__quote=
 
3801
_am_result=none
 
3802
# First try GNU make style include.
 
3803
echo "include confinc" > confmf
 
3804
# We grep out `Entering directory' and `Leaving directory'
 
3805
# messages which can occur if `w' ends up in MAKEFLAGS.
 
3806
# In particular we don't look at `^make:' because GNU make might
 
3807
# be invoked under some other name (usually "gmake"), in which
 
3808
# case it prints its new name instead of `make'.
 
3809
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
3810
   am__include=include
 
3811
   am__quote=
 
3812
   _am_result=GNU
 
3813
fi
 
3814
# Now try BSD make style include.
 
3815
if test "$am__include" = "#"; then
 
3816
   echo '.include "confinc"' > confmf
 
3817
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
3818
      am__include=.include
 
3819
      am__quote="\""
 
3820
      _am_result=BSD
 
3821
   fi
 
3822
fi
 
3823
 
 
3824
 
 
3825
{ echo "$as_me:$LINENO: result: $_am_result" >&5
 
3826
echo "${ECHO_T}$_am_result" >&6; }
 
3827
rm -f confinc confmf
 
3828
 
 
3829
# Check whether --enable-dependency-tracking was given.
 
3830
if test "${enable_dependency_tracking+set}" = set; then
 
3831
  enableval=$enable_dependency_tracking;
 
3832
fi
 
3833
 
 
3834
if test "x$enable_dependency_tracking" != xno; then
 
3835
  am_depcomp="$ac_aux_dir/depcomp"
 
3836
  AMDEPBACKSLASH='\'
 
3837
fi
 
3838
 
 
3839
 
 
3840
if test "x$enable_dependency_tracking" != xno; then
 
3841
  AMDEP_TRUE=
 
3842
  AMDEP_FALSE='#'
 
3843
else
 
3844
  AMDEP_TRUE='#'
 
3845
  AMDEP_FALSE=
 
3846
fi
 
3847
 
 
3848
 
 
3849
 
 
3850
 
 
3851
depcc="$CC"   am_compiler_list=
 
3852
 
 
3853
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
3854
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
 
3855
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
3856
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3857
else
 
3858
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3859
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3860
  # making bogus files that we don't know about and never remove.  For
 
3861
  # instance it was reported that on HP-UX the gcc test will end up
 
3862
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3863
  # in D'.
 
3864
  mkdir conftest.dir
 
3865
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3866
  # using a relative directory.
 
3867
  cp "$am_depcomp" conftest.dir
 
3868
  cd conftest.dir
 
3869
  # We will build objects and dependencies in a subdirectory because
 
3870
  # it helps to detect inapplicable dependency modes.  For instance
 
3871
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3872
  # side effect of compilation, but ICC will put the dependencies in
 
3873
  # the current directory while Tru64 will put them in the object
 
3874
  # directory.
 
3875
  mkdir sub
 
3876
 
 
3877
  am_cv_CC_dependencies_compiler_type=none
 
3878
  if test "$am_compiler_list" = ""; then
 
3879
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3880
  fi
 
3881
  for depmode in $am_compiler_list; do
 
3882
    # Setup a source with many dependencies, because some compilers
 
3883
    # like to wrap large dependency lists on column 80 (with \), and
 
3884
    # we should not choose a depcomp mode which is confused by this.
 
3885
    #
 
3886
    # We need to recreate these files for each test, as the compiler may
 
3887
    # overwrite some of them when testing with obscure command lines.
 
3888
    # This happens at least with the AIX C compiler.
 
3889
    : > sub/conftest.c
 
3890
    for i in 1 2 3 4 5 6; do
 
3891
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3892
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3893
      # Solaris 8's {/usr,}/bin/sh.
 
3894
      touch sub/conftst$i.h
 
3895
    done
 
3896
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3897
 
 
3898
    case $depmode in
 
3899
    nosideeffect)
 
3900
      # after this tag, mechanisms are not by side-effect, so they'll
 
3901
      # only be used when explicitly requested
 
3902
      if test "x$enable_dependency_tracking" = xyes; then
 
3903
        continue
 
3904
      else
 
3905
        break
 
3906
      fi
 
3907
      ;;
 
3908
    none) break ;;
 
3909
    esac
 
3910
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3911
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3912
    # handle `-M -o', and we need to detect this.
 
3913
    if depmode=$depmode \
 
3914
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
3915
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3916
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
3917
         >/dev/null 2>conftest.err &&
 
3918
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3919
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
3920
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3921
      # icc doesn't choke on unknown options, it will just issue warnings
 
3922
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3923
      # that says an option was ignored or not supported.
 
3924
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3925
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3926
      # The diagnosis changed in icc 8.0:
 
3927
      #   icc: Command line remark: option '-MP' not supported
 
3928
      if (grep 'ignoring option' conftest.err ||
 
3929
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3930
        am_cv_CC_dependencies_compiler_type=$depmode
 
3931
        break
 
3932
      fi
 
3933
    fi
 
3934
  done
 
3935
 
 
3936
  cd ..
 
3937
  rm -rf conftest.dir
 
3938
else
 
3939
  am_cv_CC_dependencies_compiler_type=none
 
3940
fi
 
3941
 
 
3942
fi
 
3943
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3944
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
 
3945
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
3946
 
 
3947
 
 
3948
 
 
3949
if
 
3950
  test "x$enable_dependency_tracking" != xno \
 
3951
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
3952
  am__fastdepCC_TRUE=
 
3953
  am__fastdepCC_FALSE='#'
 
3954
else
 
3955
  am__fastdepCC_TRUE='#'
 
3956
  am__fastdepCC_FALSE=
 
3957
fi
 
3958
 
 
3959
 
 
3960
# Check whether --enable-shared was given.
 
3961
if test "${enable_shared+set}" = set; then
 
3962
  enableval=$enable_shared; p=${PACKAGE-default}
 
3963
    case $enableval in
 
3964
    yes) enable_shared=yes ;;
 
3965
    no) enable_shared=no ;;
 
3966
    *)
 
3967
      enable_shared=no
 
3968
      # Look at the argument we got.  We use all the common list separators.
 
3969
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3970
      for pkg in $enableval; do
 
3971
        IFS="$lt_save_ifs"
 
3972
        if test "X$pkg" = "X$p"; then
 
3973
          enable_shared=yes
 
3974
        fi
 
3975
      done
 
3976
      IFS="$lt_save_ifs"
 
3977
      ;;
 
3978
    esac
 
3979
else
 
3980
  enable_shared=yes
 
3981
fi
 
3982
 
 
3983
 
 
3984
# Check whether --enable-static was given.
 
3985
if test "${enable_static+set}" = set; then
 
3986
  enableval=$enable_static; p=${PACKAGE-default}
 
3987
    case $enableval in
 
3988
    yes) enable_static=yes ;;
 
3989
    no) enable_static=no ;;
 
3990
    *)
 
3991
     enable_static=no
 
3992
      # Look at the argument we got.  We use all the common list separators.
 
3993
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3994
      for pkg in $enableval; do
 
3995
        IFS="$lt_save_ifs"
 
3996
        if test "X$pkg" = "X$p"; then
 
3997
          enable_static=yes
 
3998
        fi
 
3999
      done
 
4000
      IFS="$lt_save_ifs"
 
4001
      ;;
 
4002
    esac
 
4003
else
 
4004
  enable_static=yes
 
4005
fi
 
4006
 
 
4007
 
 
4008
# Check whether --enable-fast-install was given.
 
4009
if test "${enable_fast_install+set}" = set; then
 
4010
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
4011
    case $enableval in
 
4012
    yes) enable_fast_install=yes ;;
 
4013
    no) enable_fast_install=no ;;
 
4014
    *)
 
4015
      enable_fast_install=no
 
4016
      # Look at the argument we got.  We use all the common list separators.
 
4017
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
4018
      for pkg in $enableval; do
 
4019
        IFS="$lt_save_ifs"
 
4020
        if test "X$pkg" = "X$p"; then
 
4021
          enable_fast_install=yes
 
4022
        fi
 
4023
      done
 
4024
      IFS="$lt_save_ifs"
 
4025
      ;;
 
4026
    esac
 
4027
else
 
4028
  enable_fast_install=yes
 
4029
fi
 
4030
 
 
4031
 
 
4032
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
4033
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
 
4034
if test "${lt_cv_path_SED+set}" = set; then
 
4035
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4036
else
 
4037
  # Loop through the user's path and test for sed and gsed.
 
4038
# Then use that list of sed's as ones to test for truncation.
 
4039
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4040
for as_dir in $PATH
 
4041
do
 
4042
  IFS=$as_save_IFS
 
4043
  test -z "$as_dir" && as_dir=.
 
4044
  for lt_ac_prog in sed gsed; do
 
4045
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4046
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
4047
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
4048
      fi
 
4049
    done
 
4050
  done
 
4051
done
 
4052
lt_ac_max=0
 
4053
lt_ac_count=0
 
4054
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
4055
# along with /bin/sed that truncates output.
 
4056
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
4057
  test ! -f $lt_ac_sed && continue
 
4058
  cat /dev/null > conftest.in
 
4059
  lt_ac_count=0
 
4060
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
4061
  # Check for GNU sed and select it if it is found.
 
4062
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
4063
    lt_cv_path_SED=$lt_ac_sed
 
4064
    break
 
4065
  fi
 
4066
  while true; do
 
4067
    cat conftest.in conftest.in >conftest.tmp
 
4068
    mv conftest.tmp conftest.in
 
4069
    cp conftest.in conftest.nl
 
4070
    echo >>conftest.nl
 
4071
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
4072
    cmp -s conftest.out conftest.nl || break
 
4073
    # 10000 chars as input seems more than enough
 
4074
    test $lt_ac_count -gt 10 && break
 
4075
    lt_ac_count=`expr $lt_ac_count + 1`
 
4076
    if test $lt_ac_count -gt $lt_ac_max; then
 
4077
      lt_ac_max=$lt_ac_count
 
4078
      lt_cv_path_SED=$lt_ac_sed
 
4079
    fi
 
4080
  done
 
4081
done
 
4082
 
 
4083
fi
 
4084
 
 
4085
SED=$lt_cv_path_SED
 
4086
{ echo "$as_me:$LINENO: result: $SED" >&5
 
4087
echo "${ECHO_T}$SED" >&6; }
 
4088
 
 
4089
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
 
4090
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
 
4091
if test "${ac_cv_path_GREP+set}" = set; then
 
4092
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4093
else
 
4094
  # Extract the first word of "grep ggrep" to use in msg output
 
4095
if test -z "$GREP"; then
 
4096
set dummy grep ggrep; ac_prog_name=$2
 
4097
if test "${ac_cv_path_GREP+set}" = set; then
 
4098
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4099
else
 
4100
  ac_path_GREP_found=false
 
4101
# Loop through the user's path and test for each of PROGNAME-LIST
 
4102
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4103
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4104
do
 
4105
  IFS=$as_save_IFS
 
4106
  test -z "$as_dir" && as_dir=.
 
4107
  for ac_prog in grep ggrep; do
 
4108
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4109
    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
4110
    { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
 
4111
    # Check for GNU ac_path_GREP and select it if it is found.
 
4112
  # Check for GNU $ac_path_GREP
 
4113
case `"$ac_path_GREP" --version 2>&1` in
 
4114
*GNU*)
 
4115
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
4116
*)
 
4117
  ac_count=0
 
4118
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
4119
  while :
 
4120
  do
 
4121
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4122
    mv "conftest.tmp" "conftest.in"
 
4123
    cp "conftest.in" "conftest.nl"
 
4124
    echo 'GREP' >> "conftest.nl"
 
4125
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4126
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4127
    ac_count=`expr $ac_count + 1`
 
4128
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
4129
      # Best one so far, save it but keep looking for a better one
 
4130
      ac_cv_path_GREP="$ac_path_GREP"
 
4131
      ac_path_GREP_max=$ac_count
 
4132
    fi
 
4133
    # 10*(2^10) chars as input seems more than enough
 
4134
    test $ac_count -gt 10 && break
 
4135
  done
 
4136
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4137
esac
 
4138
 
 
4139
 
 
4140
    $ac_path_GREP_found && break 3
 
4141
  done
 
4142
done
 
4143
 
 
4144
done
 
4145
IFS=$as_save_IFS
 
4146
 
 
4147
 
 
4148
fi
 
4149
 
 
4150
GREP="$ac_cv_path_GREP"
 
4151
if test -z "$GREP"; then
 
4152
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
4153
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
4154
   { (exit 1); exit 1; }; }
 
4155
fi
 
4156
 
 
4157
else
 
4158
  ac_cv_path_GREP=$GREP
 
4159
fi
 
4160
 
 
4161
 
 
4162
fi
 
4163
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
 
4164
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
 
4165
 GREP="$ac_cv_path_GREP"
 
4166
 
 
4167
 
 
4168
{ echo "$as_me:$LINENO: checking for egrep" >&5
 
4169
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
 
4170
if test "${ac_cv_path_EGREP+set}" = set; then
 
4171
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4172
else
 
4173
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
4174
   then ac_cv_path_EGREP="$GREP -E"
 
4175
   else
 
4176
     # Extract the first word of "egrep" to use in msg output
 
4177
if test -z "$EGREP"; then
 
4178
set dummy egrep; ac_prog_name=$2
 
4179
if test "${ac_cv_path_EGREP+set}" = set; then
 
4180
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4181
else
 
4182
  ac_path_EGREP_found=false
 
4183
# Loop through the user's path and test for each of PROGNAME-LIST
 
4184
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4185
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4186
do
 
4187
  IFS=$as_save_IFS
 
4188
  test -z "$as_dir" && as_dir=.
 
4189
  for ac_prog in egrep; do
 
4190
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4191
    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4192
    { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
 
4193
    # Check for GNU ac_path_EGREP and select it if it is found.
 
4194
  # Check for GNU $ac_path_EGREP
 
4195
case `"$ac_path_EGREP" --version 2>&1` in
 
4196
*GNU*)
 
4197
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
4198
*)
 
4199
  ac_count=0
 
4200
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
4201
  while :
 
4202
  do
 
4203
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4204
    mv "conftest.tmp" "conftest.in"
 
4205
    cp "conftest.in" "conftest.nl"
 
4206
    echo 'EGREP' >> "conftest.nl"
 
4207
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4208
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4209
    ac_count=`expr $ac_count + 1`
 
4210
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
4211
      # Best one so far, save it but keep looking for a better one
 
4212
      ac_cv_path_EGREP="$ac_path_EGREP"
 
4213
      ac_path_EGREP_max=$ac_count
 
4214
    fi
 
4215
    # 10*(2^10) chars as input seems more than enough
 
4216
    test $ac_count -gt 10 && break
 
4217
  done
 
4218
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4219
esac
 
4220
 
 
4221
 
 
4222
    $ac_path_EGREP_found && break 3
 
4223
  done
 
4224
done
 
4225
 
 
4226
done
 
4227
IFS=$as_save_IFS
 
4228
 
 
4229
 
 
4230
fi
 
4231
 
 
4232
EGREP="$ac_cv_path_EGREP"
 
4233
if test -z "$EGREP"; then
 
4234
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
4235
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
4236
   { (exit 1); exit 1; }; }
 
4237
fi
 
4238
 
 
4239
else
 
4240
  ac_cv_path_EGREP=$EGREP
 
4241
fi
 
4242
 
 
4243
 
 
4244
   fi
 
4245
fi
 
4246
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
 
4247
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
 
4248
 EGREP="$ac_cv_path_EGREP"
 
4249
 
 
4250
 
 
4251
 
 
4252
# Check whether --with-gnu-ld was given.
 
4253
if test "${with_gnu_ld+set}" = set; then
 
4254
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
4255
else
 
4256
  with_gnu_ld=no
 
4257
fi
 
4258
 
 
4259
ac_prog=ld
 
4260
if test "$GCC" = yes; then
 
4261
  # Check if gcc -print-prog-name=ld gives a path.
 
4262
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
4263
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
 
4264
  case $host in
 
4265
  *-*-mingw*)
 
4266
    # gcc leaves a trailing carriage return which upsets mingw
 
4267
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
4268
  *)
 
4269
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
4270
  esac
 
4271
  case $ac_prog in
 
4272
    # Accept absolute paths.
 
4273
    [\\/]* | ?:[\\/]*)
 
4274
      re_direlt='/[^/][^/]*/\.\./'
 
4275
      # Canonicalize the pathname of ld
 
4276
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
4277
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
4278
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
4279
      done
 
4280
      test -z "$LD" && LD="$ac_prog"
 
4281
      ;;
 
4282
  "")
 
4283
    # If it fails, then pretend we aren't using GCC.
 
4284
    ac_prog=ld
 
4285
    ;;
 
4286
  *)
 
4287
    # If it is relative, then search for the first ld in PATH.
 
4288
    with_gnu_ld=unknown
 
4289
    ;;
 
4290
  esac
 
4291
elif test "$with_gnu_ld" = yes; then
 
4292
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
 
4293
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
 
4294
else
 
4295
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
4296
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
 
4297
fi
 
4298
if test "${lt_cv_path_LD+set}" = set; then
 
4299
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4300
else
 
4301
  if test -z "$LD"; then
 
4302
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4303
  for ac_dir in $PATH; do
 
4304
    IFS="$lt_save_ifs"
 
4305
    test -z "$ac_dir" && ac_dir=.
 
4306
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
4307
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
4308
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
4309
      # but apparently some variants of GNU ld only accept -v.
 
4310
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
4311
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
4312
      *GNU* | *'with BFD'*)
 
4313
        test "$with_gnu_ld" != no && break
 
4314
        ;;
 
4315
      *)
 
4316
        test "$with_gnu_ld" != yes && break
 
4317
        ;;
 
4318
      esac
 
4319
    fi
 
4320
  done
 
4321
  IFS="$lt_save_ifs"
 
4322
else
 
4323
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
4324
fi
 
4325
fi
 
4326
 
 
4327
LD="$lt_cv_path_LD"
 
4328
if test -n "$LD"; then
 
4329
  { echo "$as_me:$LINENO: result: $LD" >&5
 
4330
echo "${ECHO_T}$LD" >&6; }
 
4331
else
 
4332
  { echo "$as_me:$LINENO: result: no" >&5
 
4333
echo "${ECHO_T}no" >&6; }
 
4334
fi
 
4335
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
4336
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
4337
   { (exit 1); exit 1; }; }
 
4338
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
4339
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
 
4340
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
4341
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4342
else
 
4343
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
4344
case `$LD -v 2>&1 </dev/null` in
 
4345
*GNU* | *'with BFD'*)
 
4346
  lt_cv_prog_gnu_ld=yes
 
4347
  ;;
 
4348
*)
 
4349
  lt_cv_prog_gnu_ld=no
 
4350
  ;;
 
4351
esac
 
4352
fi
 
4353
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
4354
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
 
4355
with_gnu_ld=$lt_cv_prog_gnu_ld
 
4356
 
 
4357
 
 
4358
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
4359
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
 
4360
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
4361
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4362
else
 
4363
  lt_cv_ld_reload_flag='-r'
 
4364
fi
 
4365
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
4366
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
 
4367
reload_flag=$lt_cv_ld_reload_flag
 
4368
case $reload_flag in
 
4369
"" | " "*) ;;
 
4370
*) reload_flag=" $reload_flag" ;;
 
4371
esac
 
4372
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4373
case $host_os in
 
4374
  darwin*)
 
4375
    if test "$GCC" = yes; then
 
4376
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
4377
    else
 
4378
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4379
    fi
 
4380
    ;;
 
4381
esac
 
4382
 
 
4383
{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
4384
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
 
4385
if test "${lt_cv_path_NM+set}" = set; then
 
4386
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4387
else
 
4388
  if test -n "$NM"; then
 
4389
  # Let the user override the test.
 
4390
  lt_cv_path_NM="$NM"
 
4391
else
 
4392
  lt_nm_to_check="${ac_tool_prefix}nm"
 
4393
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
4394
    lt_nm_to_check="$lt_nm_to_check nm"
 
4395
  fi
 
4396
  for lt_tmp_nm in $lt_nm_to_check; do
 
4397
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4398
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
4399
      IFS="$lt_save_ifs"
 
4400
      test -z "$ac_dir" && ac_dir=.
 
4401
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
4402
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
4403
        # Check to see if the nm accepts a BSD-compat flag.
 
4404
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
4405
        #   nm: unknown option "B" ignored
 
4406
        # Tru64's nm complains that /dev/null is an invalid object file
 
4407
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
4408
        */dev/null* | *'Invalid file or object type'*)
 
4409
          lt_cv_path_NM="$tmp_nm -B"
 
4410
          break
 
4411
          ;;
 
4412
        *)
 
4413
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
4414
          */dev/null*)
 
4415
            lt_cv_path_NM="$tmp_nm -p"
 
4416
            break
 
4417
            ;;
 
4418
          *)
 
4419
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
4420
            continue # so that we can try to find one that supports BSD flags
 
4421
            ;;
 
4422
          esac
 
4423
          ;;
 
4424
        esac
 
4425
      fi
 
4426
    done
 
4427
    IFS="$lt_save_ifs"
 
4428
  done
 
4429
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
4430
fi
 
4431
fi
 
4432
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
4433
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
 
4434
NM="$lt_cv_path_NM"
 
4435
 
 
4436
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
4437
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
 
4438
LN_S=$as_ln_s
 
4439
if test "$LN_S" = "ln -s"; then
 
4440
  { echo "$as_me:$LINENO: result: yes" >&5
 
4441
echo "${ECHO_T}yes" >&6; }
 
4442
else
 
4443
  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
4444
echo "${ECHO_T}no, using $LN_S" >&6; }
 
4445
fi
 
4446
 
 
4447
{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
 
4448
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
 
4449
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
4450
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4451
else
 
4452
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
4453
lt_cv_file_magic_test_file=
 
4454
lt_cv_deplibs_check_method='unknown'
 
4455
# Need to set the preceding variable on all platforms that support
 
4456
# interlibrary dependencies.
 
4457
# 'none' -- dependencies not supported.
 
4458
# `unknown' -- same as none, but documents that we really don't know.
 
4459
# 'pass_all' -- all dependencies passed with no checks.
 
4460
# 'test_compile' -- check by making test program.
 
4461
# 'file_magic [[regex]]' -- check by looking for files in library path
 
4462
# which responds to the $file_magic_cmd with a given extended regex.
 
4463
# If you have `file' or equivalent on your system and you're not sure
 
4464
# whether `pass_all' will *always* work, you probably want this one.
 
4465
 
 
4466
case $host_os in
 
4467
aix4* | aix5*)
 
4468
  lt_cv_deplibs_check_method=pass_all
 
4469
  ;;
 
4470
 
 
4471
beos*)
 
4472
  lt_cv_deplibs_check_method=pass_all
 
4473
  ;;
 
4474
 
 
4475
bsdi[45]*)
 
4476
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
4477
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
4478
  lt_cv_file_magic_test_file=/shlib/libc.so
 
4479
  ;;
 
4480
 
 
4481
cygwin*)
 
4482
  # func_win32_libid is a shell function defined in ltmain.sh
 
4483
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
4484
  lt_cv_file_magic_cmd='func_win32_libid'
 
4485
  ;;
 
4486
 
 
4487
mingw* | pw32*)
 
4488
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
4489
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
 
4490
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
4491
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
4492
  ;;
 
4493
 
 
4494
darwin* | rhapsody*)
 
4495
  lt_cv_deplibs_check_method=pass_all
 
4496
  ;;
 
4497
 
 
4498
freebsd* | dragonfly*)
 
4499
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
4500
    case $host_cpu in
 
4501
    i*86 )
 
4502
      # Not sure whether the presence of OpenBSD here was a mistake.
 
4503
      # Let's accept both of them until this is cleared up.
 
4504
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
4505
      lt_cv_file_magic_cmd=/usr/bin/file
 
4506
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
4507
      ;;
 
4508
    esac
 
4509
  else
 
4510
    lt_cv_deplibs_check_method=pass_all
 
4511
  fi
 
4512
  ;;
 
4513
 
 
4514
gnu*)
 
4515
  lt_cv_deplibs_check_method=pass_all
 
4516
  ;;
 
4517
 
 
4518
hpux10.20* | hpux11*)
 
4519
  lt_cv_file_magic_cmd=/usr/bin/file
 
4520
  case $host_cpu in
 
4521
  ia64*)
 
4522
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
4523
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
4524
    ;;
 
4525
  hppa*64*)
 
4526
    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]'
 
4527
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
4528
    ;;
 
4529
  *)
 
4530
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
4531
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
4532
    ;;
 
4533
  esac
 
4534
  ;;
 
4535
 
 
4536
interix3*)
 
4537
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
4538
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
4539
  ;;
 
4540
 
 
4541
irix5* | irix6* | nonstopux*)
 
4542
  case $LD in
 
4543
  *-32|*"-32 ") libmagic=32-bit;;
 
4544
  *-n32|*"-n32 ") libmagic=N32;;
 
4545
  *-64|*"-64 ") libmagic=64-bit;;
 
4546
  *) libmagic=never-match;;
 
4547
  esac
 
4548
  lt_cv_deplibs_check_method=pass_all
 
4549
  ;;
 
4550
 
 
4551
# This must be Linux ELF.
 
4552
linux* | k*bsd*-gnu)
 
4553
  lt_cv_deplibs_check_method=pass_all
 
4554
  ;;
 
4555
 
 
4556
netbsd* | netbsdelf*-gnu)
 
4557
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
4558
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
4559
  else
 
4560
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
4561
  fi
 
4562
  ;;
 
4563
 
 
4564
newos6*)
 
4565
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
4566
  lt_cv_file_magic_cmd=/usr/bin/file
 
4567
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
4568
  ;;
 
4569
 
 
4570
nto-qnx*)
 
4571
  lt_cv_deplibs_check_method=unknown
 
4572
  ;;
 
4573
 
 
4574
openbsd*)
 
4575
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
4576
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
4577
  else
 
4578
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
4579
  fi
 
4580
  ;;
 
4581
 
 
4582
osf3* | osf4* | osf5*)
 
4583
  lt_cv_deplibs_check_method=pass_all
 
4584
  ;;
 
4585
 
 
4586
solaris*)
 
4587
  lt_cv_deplibs_check_method=pass_all
 
4588
  ;;
 
4589
 
 
4590
sysv4 | sysv4.3*)
 
4591
  case $host_vendor in
 
4592
  motorola)
 
4593
    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]'
 
4594
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
4595
    ;;
 
4596
  ncr)
 
4597
    lt_cv_deplibs_check_method=pass_all
 
4598
    ;;
 
4599
  sequent)
 
4600
    lt_cv_file_magic_cmd='/bin/file'
 
4601
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
4602
    ;;
 
4603
  sni)
 
4604
    lt_cv_file_magic_cmd='/bin/file'
 
4605
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
4606
    lt_cv_file_magic_test_file=/lib/libc.so
 
4607
    ;;
 
4608
  siemens)
 
4609
    lt_cv_deplibs_check_method=pass_all
 
4610
    ;;
 
4611
  pc)
 
4612
    lt_cv_deplibs_check_method=pass_all
 
4613
    ;;
 
4614
  esac
 
4615
  ;;
 
4616
 
 
4617
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
4618
  lt_cv_deplibs_check_method=pass_all
 
4619
  ;;
 
4620
esac
 
4621
 
 
4622
fi
 
4623
{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
4624
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
 
4625
file_magic_cmd=$lt_cv_file_magic_cmd
 
4626
deplibs_check_method=$lt_cv_deplibs_check_method
 
4627
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
4628
 
 
4629
 
 
4630
 
 
4631
 
 
4632
# If no C compiler was specified, use CC.
 
4633
LTCC=${LTCC-"$CC"}
 
4634
 
 
4635
# If no C compiler flags were specified, use CFLAGS.
 
4636
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
4637
 
 
4638
# Allow CC to be a program name with arguments.
 
4639
compiler=$CC
 
4640
 
 
4641
 
 
4642
# Check whether --enable-libtool-lock was given.
 
4643
if test "${enable_libtool_lock+set}" = set; then
 
4644
  enableval=$enable_libtool_lock;
 
4645
fi
 
4646
 
 
4647
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
4648
 
 
4649
# Some flags need to be propagated to the compiler or linker for good
 
4650
# libtool support.
 
4651
case $host in
 
4652
ia64-*-hpux*)
 
4653
  # Find out which ABI we are using.
 
4654
  echo 'int i;' > conftest.$ac_ext
 
4655
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4656
  (eval $ac_compile) 2>&5
 
4657
  ac_status=$?
 
4658
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4659
  (exit $ac_status); }; then
 
4660
    case `/usr/bin/file conftest.$ac_objext` in
 
4661
    *ELF-32*)
 
4662
      HPUX_IA64_MODE="32"
 
4663
      ;;
 
4664
    *ELF-64*)
 
4665
      HPUX_IA64_MODE="64"
 
4666
      ;;
 
4667
    esac
 
4668
  fi
 
4669
  rm -rf conftest*
 
4670
  ;;
 
4671
*-*-irix6*)
 
4672
  # Find out which ABI we are using.
 
4673
  echo '#line 4673 "configure"' > conftest.$ac_ext
 
4674
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4675
  (eval $ac_compile) 2>&5
 
4676
  ac_status=$?
 
4677
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4678
  (exit $ac_status); }; then
 
4679
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
4680
    case `/usr/bin/file conftest.$ac_objext` in
 
4681
    *32-bit*)
 
4682
      LD="${LD-ld} -melf32bsmip"
 
4683
      ;;
 
4684
    *N32*)
 
4685
      LD="${LD-ld} -melf32bmipn32"
 
4686
      ;;
 
4687
    *64-bit*)
 
4688
      LD="${LD-ld} -melf64bmip"
 
4689
      ;;
 
4690
    esac
 
4691
   else
 
4692
    case `/usr/bin/file conftest.$ac_objext` in
 
4693
    *32-bit*)
 
4694
      LD="${LD-ld} -32"
 
4695
      ;;
 
4696
    *N32*)
 
4697
      LD="${LD-ld} -n32"
 
4698
      ;;
 
4699
    *64-bit*)
 
4700
      LD="${LD-ld} -64"
 
4701
      ;;
 
4702
    esac
 
4703
   fi
 
4704
  fi
 
4705
  rm -rf conftest*
 
4706
  ;;
 
4707
 
 
4708
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
4709
  # Find out which ABI we are using.
 
4710
  echo 'int i;' > conftest.$ac_ext
 
4711
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4712
  (eval $ac_compile) 2>&5
 
4713
  ac_status=$?
 
4714
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4715
  (exit $ac_status); }; then
 
4716
    case `/usr/bin/file conftest.o` in
 
4717
    *32-bit*)
 
4718
      case $host in
 
4719
        x86_64-*linux*)
 
4720
          LD="${LD-ld} -m elf_i386"
 
4721
          ;;
 
4722
        ppc64-*linux*|powerpc64-*linux*)
 
4723
          LD="${LD-ld} -m elf32ppclinux"
 
4724
          ;;
 
4725
        s390x-*linux*)
 
4726
          LD="${LD-ld} -m elf_s390"
 
4727
          ;;
 
4728
        sparc64-*linux*)
 
4729
          LD="${LD-ld} -m elf32_sparc"
 
4730
          ;;
 
4731
      esac
 
4732
      ;;
 
4733
    *64-bit*)
 
4734
      case $host in
 
4735
        x86_64-*linux*)
 
4736
          LD="${LD-ld} -m elf_x86_64"
 
4737
          ;;
 
4738
        ppc*-*linux*|powerpc*-*linux*)
 
4739
          LD="${LD-ld} -m elf64ppc"
 
4740
          ;;
 
4741
        s390*-*linux*)
 
4742
          LD="${LD-ld} -m elf64_s390"
 
4743
          ;;
 
4744
        sparc*-*linux*)
 
4745
          LD="${LD-ld} -m elf64_sparc"
 
4746
          ;;
 
4747
      esac
 
4748
      ;;
 
4749
    esac
 
4750
  fi
 
4751
  rm -rf conftest*
 
4752
  ;;
 
4753
 
 
4754
*-*-sco3.2v5*)
 
4755
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
4756
  SAVE_CFLAGS="$CFLAGS"
 
4757
  CFLAGS="$CFLAGS -belf"
 
4758
  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
4759
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
 
4760
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
4761
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4762
else
 
4763
  ac_ext=c
 
4764
ac_cpp='$CPP $CPPFLAGS'
 
4765
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4766
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4767
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4768
 
 
4769
     cat >conftest.$ac_ext <<_ACEOF
 
4770
/* confdefs.h.  */
 
4771
_ACEOF
 
4772
cat confdefs.h >>conftest.$ac_ext
 
4773
cat >>conftest.$ac_ext <<_ACEOF
 
4774
/* end confdefs.h.  */
 
4775
 
 
4776
int
 
4777
main ()
 
4778
{
 
4779
 
 
4780
  ;
 
4781
  return 0;
 
4782
}
 
4783
_ACEOF
 
4784
rm -f conftest.$ac_objext conftest$ac_exeext
 
4785
if { (ac_try="$ac_link"
 
4786
case "(($ac_try" in
 
4787
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4788
  *) ac_try_echo=$ac_try;;
 
4789
esac
 
4790
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4791
  (eval "$ac_link") 2>conftest.er1
 
4792
  ac_status=$?
 
4793
  grep -v '^ *+' conftest.er1 >conftest.err
 
4794
  rm -f conftest.er1
 
4795
  cat conftest.err >&5
 
4796
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4797
  (exit $ac_status); } &&
 
4798
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
4799
  { (case "(($ac_try" in
 
4800
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4801
  *) ac_try_echo=$ac_try;;
 
4802
esac
 
4803
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4804
  (eval "$ac_try") 2>&5
 
4805
  ac_status=$?
 
4806
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4807
  (exit $ac_status); }; } &&
 
4808
         { ac_try='test -s conftest$ac_exeext'
 
4809
  { (case "(($ac_try" in
 
4810
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4811
  *) ac_try_echo=$ac_try;;
 
4812
esac
 
4813
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4814
  (eval "$ac_try") 2>&5
 
4815
  ac_status=$?
 
4816
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4817
  (exit $ac_status); }; }; then
 
4818
  lt_cv_cc_needs_belf=yes
 
4819
else
 
4820
  echo "$as_me: failed program was:" >&5
 
4821
sed 's/^/| /' conftest.$ac_ext >&5
 
4822
 
 
4823
        lt_cv_cc_needs_belf=no
 
4824
fi
 
4825
 
 
4826
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
4827
      conftest$ac_exeext conftest.$ac_ext
 
4828
     ac_ext=c
 
4829
ac_cpp='$CPP $CPPFLAGS'
 
4830
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4831
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4832
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4833
 
 
4834
fi
 
4835
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
4836
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
 
4837
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
4838
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
4839
    CFLAGS="$SAVE_CFLAGS"
 
4840
  fi
 
4841
  ;;
 
4842
sparc*-*solaris*)
 
4843
  # Find out which ABI we are using.
 
4844
  echo 'int i;' > conftest.$ac_ext
 
4845
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4846
  (eval $ac_compile) 2>&5
 
4847
  ac_status=$?
 
4848
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4849
  (exit $ac_status); }; then
 
4850
    case `/usr/bin/file conftest.o` in
 
4851
    *64-bit*)
 
4852
      case $lt_cv_prog_gnu_ld in
 
4853
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
4854
      *)    LD="${LD-ld} -64" ;;
 
4855
      esac
 
4856
      ;;
 
4857
    esac
 
4858
  fi
 
4859
  rm -rf conftest*
 
4860
  ;;
 
4861
 
 
4862
 
 
4863
esac
 
4864
 
 
4865
need_locks="$enable_libtool_lock"
 
4866
 
 
4867
 
 
4868
ac_ext=c
 
4869
ac_cpp='$CPP $CPPFLAGS'
 
4870
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4871
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4872
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4873
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
4874
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
 
4875
# On Suns, sometimes $CPP names a directory.
 
4876
if test -n "$CPP" && test -d "$CPP"; then
 
4877
  CPP=
 
4878
fi
 
4879
if test -z "$CPP"; then
 
4880
  if test "${ac_cv_prog_CPP+set}" = set; then
 
4881
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4882
else
 
4883
      # Double quotes because CPP needs to be expanded
 
4884
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
4885
    do
 
4886
      ac_preproc_ok=false
 
4887
for ac_c_preproc_warn_flag in '' yes
 
4888
do
 
4889
  # Use a header file that comes with gcc, so configuring glibc
 
4890
  # with a fresh cross-compiler works.
 
4891
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4892
  # <limits.h> exists even on freestanding compilers.
 
4893
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4894
  # not just through cpp. "Syntax error" is here to catch this case.
 
4895
  cat >conftest.$ac_ext <<_ACEOF
 
4896
/* confdefs.h.  */
 
4897
_ACEOF
 
4898
cat confdefs.h >>conftest.$ac_ext
 
4899
cat >>conftest.$ac_ext <<_ACEOF
 
4900
/* end confdefs.h.  */
 
4901
#ifdef __STDC__
 
4902
# include <limits.h>
 
4903
#else
 
4904
# include <assert.h>
 
4905
#endif
 
4906
                     Syntax error
 
4907
_ACEOF
 
4908
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4909
case "(($ac_try" in
 
4910
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4911
  *) ac_try_echo=$ac_try;;
 
4912
esac
 
4913
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4914
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4915
  ac_status=$?
 
4916
  grep -v '^ *+' conftest.er1 >conftest.err
 
4917
  rm -f conftest.er1
 
4918
  cat conftest.err >&5
 
4919
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4920
  (exit $ac_status); } >/dev/null; then
 
4921
  if test -s conftest.err; then
 
4922
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4923
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4924
  else
 
4925
    ac_cpp_err=
 
4926
  fi
 
4927
else
 
4928
  ac_cpp_err=yes
 
4929
fi
 
4930
if test -z "$ac_cpp_err"; then
 
4931
  :
 
4932
else
 
4933
  echo "$as_me: failed program was:" >&5
 
4934
sed 's/^/| /' conftest.$ac_ext >&5
 
4935
 
 
4936
  # Broken: fails on valid input.
 
4937
continue
 
4938
fi
 
4939
 
 
4940
rm -f conftest.err conftest.$ac_ext
 
4941
 
 
4942
  # OK, works on sane cases.  Now check whether nonexistent headers
 
4943
  # can be detected and how.
 
4944
  cat >conftest.$ac_ext <<_ACEOF
 
4945
/* confdefs.h.  */
 
4946
_ACEOF
 
4947
cat confdefs.h >>conftest.$ac_ext
 
4948
cat >>conftest.$ac_ext <<_ACEOF
 
4949
/* end confdefs.h.  */
 
4950
#include <ac_nonexistent.h>
 
4951
_ACEOF
 
4952
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4953
case "(($ac_try" in
 
4954
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4955
  *) ac_try_echo=$ac_try;;
 
4956
esac
 
4957
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4958
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4959
  ac_status=$?
 
4960
  grep -v '^ *+' conftest.er1 >conftest.err
 
4961
  rm -f conftest.er1
 
4962
  cat conftest.err >&5
 
4963
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4964
  (exit $ac_status); } >/dev/null; then
 
4965
  if test -s conftest.err; then
 
4966
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4967
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4968
  else
 
4969
    ac_cpp_err=
 
4970
  fi
 
4971
else
 
4972
  ac_cpp_err=yes
 
4973
fi
 
4974
if test -z "$ac_cpp_err"; then
 
4975
  # Broken: success on invalid input.
 
4976
continue
 
4977
else
 
4978
  echo "$as_me: failed program was:" >&5
 
4979
sed 's/^/| /' conftest.$ac_ext >&5
 
4980
 
 
4981
  # Passes both tests.
 
4982
ac_preproc_ok=:
 
4983
break
 
4984
fi
 
4985
 
 
4986
rm -f conftest.err conftest.$ac_ext
 
4987
 
 
4988
done
 
4989
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4990
rm -f conftest.err conftest.$ac_ext
 
4991
if $ac_preproc_ok; then
 
4992
  break
 
4993
fi
 
4994
 
 
4995
    done
 
4996
    ac_cv_prog_CPP=$CPP
 
4997
 
 
4998
fi
 
4999
  CPP=$ac_cv_prog_CPP
 
5000
else
 
5001
  ac_cv_prog_CPP=$CPP
 
5002
fi
 
5003
{ echo "$as_me:$LINENO: result: $CPP" >&5
 
5004
echo "${ECHO_T}$CPP" >&6; }
 
5005
ac_preproc_ok=false
 
5006
for ac_c_preproc_warn_flag in '' yes
 
5007
do
 
5008
  # Use a header file that comes with gcc, so configuring glibc
 
5009
  # with a fresh cross-compiler works.
 
5010
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5011
  # <limits.h> exists even on freestanding compilers.
 
5012
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5013
  # not just through cpp. "Syntax error" is here to catch this case.
 
5014
  cat >conftest.$ac_ext <<_ACEOF
 
5015
/* confdefs.h.  */
 
5016
_ACEOF
 
5017
cat confdefs.h >>conftest.$ac_ext
 
5018
cat >>conftest.$ac_ext <<_ACEOF
 
5019
/* end confdefs.h.  */
 
5020
#ifdef __STDC__
 
5021
# include <limits.h>
 
5022
#else
 
5023
# include <assert.h>
 
5024
#endif
 
5025
                     Syntax error
 
5026
_ACEOF
 
5027
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5028
case "(($ac_try" in
 
5029
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5030
  *) ac_try_echo=$ac_try;;
 
5031
esac
 
5032
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5033
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5034
  ac_status=$?
 
5035
  grep -v '^ *+' conftest.er1 >conftest.err
 
5036
  rm -f conftest.er1
 
5037
  cat conftest.err >&5
 
5038
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5039
  (exit $ac_status); } >/dev/null; then
 
5040
  if test -s conftest.err; then
 
5041
    ac_cpp_err=$ac_c_preproc_warn_flag
 
5042
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
5043
  else
 
5044
    ac_cpp_err=
 
5045
  fi
 
5046
else
 
5047
  ac_cpp_err=yes
 
5048
fi
 
5049
if test -z "$ac_cpp_err"; then
 
5050
  :
 
5051
else
 
5052
  echo "$as_me: failed program was:" >&5
 
5053
sed 's/^/| /' conftest.$ac_ext >&5
 
5054
 
 
5055
  # Broken: fails on valid input.
 
5056
continue
 
5057
fi
 
5058
 
 
5059
rm -f conftest.err conftest.$ac_ext
 
5060
 
 
5061
  # OK, works on sane cases.  Now check whether nonexistent headers
 
5062
  # can be detected and how.
 
5063
  cat >conftest.$ac_ext <<_ACEOF
 
5064
/* confdefs.h.  */
 
5065
_ACEOF
 
5066
cat confdefs.h >>conftest.$ac_ext
 
5067
cat >>conftest.$ac_ext <<_ACEOF
 
5068
/* end confdefs.h.  */
 
5069
#include <ac_nonexistent.h>
 
5070
_ACEOF
 
5071
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5072
case "(($ac_try" in
 
5073
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5074
  *) ac_try_echo=$ac_try;;
 
5075
esac
 
5076
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5077
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5078
  ac_status=$?
 
5079
  grep -v '^ *+' conftest.er1 >conftest.err
 
5080
  rm -f conftest.er1
 
5081
  cat conftest.err >&5
 
5082
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5083
  (exit $ac_status); } >/dev/null; then
 
5084
  if test -s conftest.err; then
 
5085
    ac_cpp_err=$ac_c_preproc_warn_flag
 
5086
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
5087
  else
 
5088
    ac_cpp_err=
 
5089
  fi
 
5090
else
 
5091
  ac_cpp_err=yes
 
5092
fi
 
5093
if test -z "$ac_cpp_err"; then
 
5094
  # Broken: success on invalid input.
 
5095
continue
 
5096
else
 
5097
  echo "$as_me: failed program was:" >&5
 
5098
sed 's/^/| /' conftest.$ac_ext >&5
 
5099
 
 
5100
  # Passes both tests.
 
5101
ac_preproc_ok=:
 
5102
break
 
5103
fi
 
5104
 
 
5105
rm -f conftest.err conftest.$ac_ext
 
5106
 
 
5107
done
 
5108
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5109
rm -f conftest.err conftest.$ac_ext
 
5110
if $ac_preproc_ok; then
 
5111
  :
 
5112
else
 
5113
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
5114
See \`config.log' for more details." >&5
 
5115
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
5116
See \`config.log' for more details." >&2;}
 
5117
   { (exit 1); exit 1; }; }
 
5118
fi
 
5119
 
 
5120
ac_ext=c
 
5121
ac_cpp='$CPP $CPPFLAGS'
 
5122
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5123
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5124
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5125
 
 
5126
 
 
5127
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
5128
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
 
5129
if test "${ac_cv_header_stdc+set}" = set; then
 
5130
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5131
else
 
5132
  cat >conftest.$ac_ext <<_ACEOF
 
5133
/* confdefs.h.  */
 
5134
_ACEOF
 
5135
cat confdefs.h >>conftest.$ac_ext
 
5136
cat >>conftest.$ac_ext <<_ACEOF
 
5137
/* end confdefs.h.  */
 
5138
#include <stdlib.h>
 
5139
#include <stdarg.h>
 
5140
#include <string.h>
 
5141
#include <float.h>
 
5142
 
 
5143
int
 
5144
main ()
 
5145
{
 
5146
 
 
5147
  ;
 
5148
  return 0;
 
5149
}
 
5150
_ACEOF
 
5151
rm -f conftest.$ac_objext
 
5152
if { (ac_try="$ac_compile"
 
5153
case "(($ac_try" in
 
5154
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5155
  *) ac_try_echo=$ac_try;;
 
5156
esac
 
5157
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5158
  (eval "$ac_compile") 2>conftest.er1
 
5159
  ac_status=$?
 
5160
  grep -v '^ *+' conftest.er1 >conftest.err
 
5161
  rm -f conftest.er1
 
5162
  cat conftest.err >&5
 
5163
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5164
  (exit $ac_status); } &&
 
5165
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
5166
  { (case "(($ac_try" in
 
5167
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5168
  *) ac_try_echo=$ac_try;;
 
5169
esac
 
5170
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5171
  (eval "$ac_try") 2>&5
 
5172
  ac_status=$?
 
5173
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5174
  (exit $ac_status); }; } &&
 
5175
         { ac_try='test -s conftest.$ac_objext'
 
5176
  { (case "(($ac_try" in
 
5177
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5178
  *) ac_try_echo=$ac_try;;
 
5179
esac
 
5180
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5181
  (eval "$ac_try") 2>&5
 
5182
  ac_status=$?
 
5183
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5184
  (exit $ac_status); }; }; then
 
5185
  ac_cv_header_stdc=yes
 
5186
else
 
5187
  echo "$as_me: failed program was:" >&5
 
5188
sed 's/^/| /' conftest.$ac_ext >&5
 
5189
 
 
5190
        ac_cv_header_stdc=no
 
5191
fi
 
5192
 
 
5193
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5194
 
 
5195
if test $ac_cv_header_stdc = yes; then
 
5196
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
5197
  cat >conftest.$ac_ext <<_ACEOF
 
5198
/* confdefs.h.  */
 
5199
_ACEOF
 
5200
cat confdefs.h >>conftest.$ac_ext
 
5201
cat >>conftest.$ac_ext <<_ACEOF
 
5202
/* end confdefs.h.  */
 
5203
#include <string.h>
 
5204
 
 
5205
_ACEOF
 
5206
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
5207
  $EGREP "memchr" >/dev/null 2>&1; then
 
5208
  :
 
5209
else
 
5210
  ac_cv_header_stdc=no
 
5211
fi
 
5212
rm -f conftest*
 
5213
 
 
5214
fi
 
5215
 
 
5216
if test $ac_cv_header_stdc = yes; then
 
5217
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
5218
  cat >conftest.$ac_ext <<_ACEOF
 
5219
/* confdefs.h.  */
 
5220
_ACEOF
 
5221
cat confdefs.h >>conftest.$ac_ext
 
5222
cat >>conftest.$ac_ext <<_ACEOF
 
5223
/* end confdefs.h.  */
 
5224
#include <stdlib.h>
 
5225
 
 
5226
_ACEOF
 
5227
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
5228
  $EGREP "free" >/dev/null 2>&1; then
 
5229
  :
 
5230
else
 
5231
  ac_cv_header_stdc=no
 
5232
fi
 
5233
rm -f conftest*
 
5234
 
 
5235
fi
 
5236
 
 
5237
if test $ac_cv_header_stdc = yes; then
 
5238
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
5239
  if test "$cross_compiling" = yes; then
 
5240
  :
 
5241
else
 
5242
  cat >conftest.$ac_ext <<_ACEOF
 
5243
/* confdefs.h.  */
 
5244
_ACEOF
 
5245
cat confdefs.h >>conftest.$ac_ext
 
5246
cat >>conftest.$ac_ext <<_ACEOF
 
5247
/* end confdefs.h.  */
 
5248
#include <ctype.h>
 
5249
#include <stdlib.h>
 
5250
#if ((' ' & 0x0FF) == 0x020)
 
5251
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
5252
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
5253
#else
 
5254
# define ISLOWER(c) \
 
5255
                   (('a' <= (c) && (c) <= 'i') \
 
5256
                     || ('j' <= (c) && (c) <= 'r') \
 
5257
                     || ('s' <= (c) && (c) <= 'z'))
 
5258
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
5259
#endif
 
5260
 
 
5261
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
5262
int
 
5263
main ()
 
5264
{
 
5265
  int i;
 
5266
  for (i = 0; i < 256; i++)
 
5267
    if (XOR (islower (i), ISLOWER (i))
 
5268
        || toupper (i) != TOUPPER (i))
 
5269
      return 2;
 
5270
  return 0;
 
5271
}
 
5272
_ACEOF
 
5273
rm -f conftest$ac_exeext
 
5274
if { (ac_try="$ac_link"
 
5275
case "(($ac_try" in
 
5276
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5277
  *) ac_try_echo=$ac_try;;
 
5278
esac
 
5279
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5280
  (eval "$ac_link") 2>&5
 
5281
  ac_status=$?
 
5282
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5283
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5284
  { (case "(($ac_try" in
 
5285
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5286
  *) ac_try_echo=$ac_try;;
 
5287
esac
 
5288
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5289
  (eval "$ac_try") 2>&5
 
5290
  ac_status=$?
 
5291
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5292
  (exit $ac_status); }; }; then
 
5293
  :
 
5294
else
 
5295
  echo "$as_me: program exited with status $ac_status" >&5
 
5296
echo "$as_me: failed program was:" >&5
 
5297
sed 's/^/| /' conftest.$ac_ext >&5
 
5298
 
 
5299
( exit $ac_status )
 
5300
ac_cv_header_stdc=no
 
5301
fi
 
5302
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5303
fi
 
5304
 
 
5305
 
 
5306
fi
 
5307
fi
 
5308
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
5309
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
 
5310
if test $ac_cv_header_stdc = yes; then
 
5311
 
 
5312
cat >>confdefs.h <<\_ACEOF
 
5313
#define STDC_HEADERS 1
 
5314
_ACEOF
 
5315
 
 
5316
fi
 
5317
 
 
5318
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
5319
 
 
5320
 
 
5321
 
 
5322
 
 
5323
 
 
5324
 
 
5325
 
 
5326
 
 
5327
 
 
5328
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
5329
                  inttypes.h stdint.h unistd.h
 
5330
do
 
5331
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5332
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5333
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5334
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5335
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5336
else
 
5337
  cat >conftest.$ac_ext <<_ACEOF
 
5338
/* confdefs.h.  */
 
5339
_ACEOF
 
5340
cat confdefs.h >>conftest.$ac_ext
 
5341
cat >>conftest.$ac_ext <<_ACEOF
 
5342
/* end confdefs.h.  */
 
5343
$ac_includes_default
 
5344
 
 
5345
#include <$ac_header>
 
5346
_ACEOF
 
5347
rm -f conftest.$ac_objext
 
5348
if { (ac_try="$ac_compile"
 
5349
case "(($ac_try" in
 
5350
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5351
  *) ac_try_echo=$ac_try;;
 
5352
esac
 
5353
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5354
  (eval "$ac_compile") 2>conftest.er1
 
5355
  ac_status=$?
 
5356
  grep -v '^ *+' conftest.er1 >conftest.err
 
5357
  rm -f conftest.er1
 
5358
  cat conftest.err >&5
 
5359
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5360
  (exit $ac_status); } &&
 
5361
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
5362
  { (case "(($ac_try" in
 
5363
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5364
  *) ac_try_echo=$ac_try;;
 
5365
esac
 
5366
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5367
  (eval "$ac_try") 2>&5
 
5368
  ac_status=$?
 
5369
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5370
  (exit $ac_status); }; } &&
 
5371
         { ac_try='test -s conftest.$ac_objext'
 
5372
  { (case "(($ac_try" in
 
5373
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5374
  *) ac_try_echo=$ac_try;;
 
5375
esac
 
5376
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5377
  (eval "$ac_try") 2>&5
 
5378
  ac_status=$?
 
5379
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5380
  (exit $ac_status); }; }; then
 
5381
  eval "$as_ac_Header=yes"
 
5382
else
 
5383
  echo "$as_me: failed program was:" >&5
 
5384
sed 's/^/| /' conftest.$ac_ext >&5
 
5385
 
 
5386
        eval "$as_ac_Header=no"
 
5387
fi
 
5388
 
 
5389
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5390
fi
 
5391
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5392
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5393
echo "${ECHO_T}$ac_res" >&6; }
 
5394
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5395
  cat >>confdefs.h <<_ACEOF
 
5396
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5397
_ACEOF
 
5398
 
 
5399
fi
 
5400
 
 
5401
done
 
5402
 
 
5403
 
 
5404
 
 
5405
for ac_header in dlfcn.h
 
5406
do
 
5407
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5408
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5409
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5410
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5411
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5412
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5413
fi
 
5414
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5415
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5416
echo "${ECHO_T}$ac_res" >&6; }
 
5417
else
 
5418
  # Is the header compilable?
 
5419
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
5420
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
5421
cat >conftest.$ac_ext <<_ACEOF
 
5422
/* confdefs.h.  */
 
5423
_ACEOF
 
5424
cat confdefs.h >>conftest.$ac_ext
 
5425
cat >>conftest.$ac_ext <<_ACEOF
 
5426
/* end confdefs.h.  */
 
5427
$ac_includes_default
 
5428
#include <$ac_header>
 
5429
_ACEOF
 
5430
rm -f conftest.$ac_objext
 
5431
if { (ac_try="$ac_compile"
 
5432
case "(($ac_try" in
 
5433
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5434
  *) ac_try_echo=$ac_try;;
 
5435
esac
 
5436
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5437
  (eval "$ac_compile") 2>conftest.er1
 
5438
  ac_status=$?
 
5439
  grep -v '^ *+' conftest.er1 >conftest.err
 
5440
  rm -f conftest.er1
 
5441
  cat conftest.err >&5
 
5442
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5443
  (exit $ac_status); } &&
 
5444
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
5445
  { (case "(($ac_try" in
 
5446
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5447
  *) ac_try_echo=$ac_try;;
 
5448
esac
 
5449
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5450
  (eval "$ac_try") 2>&5
 
5451
  ac_status=$?
 
5452
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5453
  (exit $ac_status); }; } &&
 
5454
         { ac_try='test -s conftest.$ac_objext'
 
5455
  { (case "(($ac_try" in
 
5456
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5457
  *) ac_try_echo=$ac_try;;
 
5458
esac
 
5459
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5460
  (eval "$ac_try") 2>&5
 
5461
  ac_status=$?
 
5462
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5463
  (exit $ac_status); }; }; then
 
5464
  ac_header_compiler=yes
 
5465
else
 
5466
  echo "$as_me: failed program was:" >&5
 
5467
sed 's/^/| /' conftest.$ac_ext >&5
 
5468
 
 
5469
        ac_header_compiler=no
 
5470
fi
 
5471
 
 
5472
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5473
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
5474
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
5475
 
 
5476
# Is the header present?
 
5477
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
5478
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
5479
cat >conftest.$ac_ext <<_ACEOF
 
5480
/* confdefs.h.  */
 
5481
_ACEOF
 
5482
cat confdefs.h >>conftest.$ac_ext
 
5483
cat >>conftest.$ac_ext <<_ACEOF
 
5484
/* end confdefs.h.  */
 
5485
#include <$ac_header>
 
5486
_ACEOF
 
5487
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5488
case "(($ac_try" in
 
5489
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5490
  *) ac_try_echo=$ac_try;;
 
5491
esac
 
5492
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5493
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5494
  ac_status=$?
 
5495
  grep -v '^ *+' conftest.er1 >conftest.err
 
5496
  rm -f conftest.er1
 
5497
  cat conftest.err >&5
 
5498
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5499
  (exit $ac_status); } >/dev/null; then
 
5500
  if test -s conftest.err; then
 
5501
    ac_cpp_err=$ac_c_preproc_warn_flag
 
5502
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
5503
  else
 
5504
    ac_cpp_err=
 
5505
  fi
 
5506
else
 
5507
  ac_cpp_err=yes
 
5508
fi
 
5509
if test -z "$ac_cpp_err"; then
 
5510
  ac_header_preproc=yes
 
5511
else
 
5512
  echo "$as_me: failed program was:" >&5
 
5513
sed 's/^/| /' conftest.$ac_ext >&5
 
5514
 
 
5515
  ac_header_preproc=no
 
5516
fi
 
5517
 
 
5518
rm -f conftest.err conftest.$ac_ext
 
5519
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
5520
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
5521
 
 
5522
# So?  What about this header?
 
5523
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
5524
  yes:no: )
 
5525
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
5526
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
5527
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
5528
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
5529
    ac_header_preproc=yes
 
5530
    ;;
 
5531
  no:yes:* )
 
5532
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
5533
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
5534
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
5535
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
5536
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
5537
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
5538
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
5539
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
5540
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
5541
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5542
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
5543
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
5544
 
 
5545
    ;;
 
5546
esac
 
5547
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5548
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5549
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5550
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5551
else
 
5552
  eval "$as_ac_Header=\$ac_header_preproc"
 
5553
fi
 
5554
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5555
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5556
echo "${ECHO_T}$ac_res" >&6; }
 
5557
 
 
5558
fi
 
5559
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5560
  cat >>confdefs.h <<_ACEOF
 
5561
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5562
_ACEOF
 
5563
 
 
5564
fi
 
5565
 
 
5566
done
 
5567
 
 
5568
ac_ext=cpp
 
5569
ac_cpp='$CXXCPP $CPPFLAGS'
 
5570
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5571
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5572
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5573
if test -z "$CXX"; then
 
5574
  if test -n "$CCC"; then
 
5575
    CXX=$CCC
 
5576
  else
 
5577
    if test -n "$ac_tool_prefix"; then
 
5578
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
5579
  do
 
5580
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5581
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5582
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5583
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5584
if test "${ac_cv_prog_CXX+set}" = set; then
 
5585
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5586
else
 
5587
  if test -n "$CXX"; then
 
5588
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
5589
else
 
5590
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5591
for as_dir in $PATH
 
5592
do
 
5593
  IFS=$as_save_IFS
 
5594
  test -z "$as_dir" && as_dir=.
 
5595
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5596
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5597
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
5598
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5599
    break 2
 
5600
  fi
 
5601
done
 
5602
done
 
5603
IFS=$as_save_IFS
 
5604
 
 
5605
fi
 
5606
fi
 
5607
CXX=$ac_cv_prog_CXX
 
5608
if test -n "$CXX"; then
 
5609
  { echo "$as_me:$LINENO: result: $CXX" >&5
 
5610
echo "${ECHO_T}$CXX" >&6; }
 
5611
else
 
5612
  { echo "$as_me:$LINENO: result: no" >&5
 
5613
echo "${ECHO_T}no" >&6; }
 
5614
fi
 
5615
 
 
5616
 
 
5617
    test -n "$CXX" && break
 
5618
  done
 
5619
fi
 
5620
if test -z "$CXX"; then
 
5621
  ac_ct_CXX=$CXX
 
5622
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
5623
do
 
5624
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5625
set dummy $ac_prog; ac_word=$2
 
5626
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5627
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5628
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
5629
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5630
else
 
5631
  if test -n "$ac_ct_CXX"; then
 
5632
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
5633
else
 
5634
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5635
for as_dir in $PATH
 
5636
do
 
5637
  IFS=$as_save_IFS
 
5638
  test -z "$as_dir" && as_dir=.
 
5639
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5640
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5641
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
5642
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5643
    break 2
 
5644
  fi
 
5645
done
 
5646
done
 
5647
IFS=$as_save_IFS
 
5648
 
 
5649
fi
 
5650
fi
 
5651
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
5652
if test -n "$ac_ct_CXX"; then
 
5653
  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
5654
echo "${ECHO_T}$ac_ct_CXX" >&6; }
 
5655
else
 
5656
  { echo "$as_me:$LINENO: result: no" >&5
 
5657
echo "${ECHO_T}no" >&6; }
 
5658
fi
 
5659
 
 
5660
 
 
5661
  test -n "$ac_ct_CXX" && break
 
5662
done
 
5663
 
 
5664
  if test "x$ac_ct_CXX" = x; then
 
5665
    CXX="g++"
 
5666
  else
 
5667
    case $cross_compiling:$ac_tool_warned in
 
5668
yes:)
 
5669
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
5670
whose name does not start with the host triplet.  If you think this
 
5671
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
5672
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
5673
whose name does not start with the host triplet.  If you think this
 
5674
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
5675
ac_tool_warned=yes ;;
 
5676
esac
 
5677
    CXX=$ac_ct_CXX
 
5678
  fi
 
5679
fi
 
5680
 
 
5681
  fi
 
5682
fi
 
5683
# Provide some information about the compiler.
 
5684
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
 
5685
ac_compiler=`set X $ac_compile; echo $2`
 
5686
{ (ac_try="$ac_compiler --version >&5"
 
5687
case "(($ac_try" in
 
5688
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5689
  *) ac_try_echo=$ac_try;;
 
5690
esac
 
5691
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5692
  (eval "$ac_compiler --version >&5") 2>&5
 
5693
  ac_status=$?
 
5694
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5695
  (exit $ac_status); }
 
5696
{ (ac_try="$ac_compiler -v >&5"
 
5697
case "(($ac_try" in
 
5698
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5699
  *) ac_try_echo=$ac_try;;
 
5700
esac
 
5701
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5702
  (eval "$ac_compiler -v >&5") 2>&5
 
5703
  ac_status=$?
 
5704
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5705
  (exit $ac_status); }
 
5706
{ (ac_try="$ac_compiler -V >&5"
 
5707
case "(($ac_try" in
 
5708
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5709
  *) ac_try_echo=$ac_try;;
 
5710
esac
 
5711
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5712
  (eval "$ac_compiler -V >&5") 2>&5
 
5713
  ac_status=$?
 
5714
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5715
  (exit $ac_status); }
 
5716
 
 
5717
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
5718
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
 
5719
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
5720
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5721
else
 
5722
  cat >conftest.$ac_ext <<_ACEOF
 
5723
/* confdefs.h.  */
 
5724
_ACEOF
 
5725
cat confdefs.h >>conftest.$ac_ext
 
5726
cat >>conftest.$ac_ext <<_ACEOF
 
5727
/* end confdefs.h.  */
 
5728
 
 
5729
int
 
5730
main ()
 
5731
{
 
5732
#ifndef __GNUC__
 
5733
       choke me
 
5734
#endif
 
5735
 
 
5736
  ;
 
5737
  return 0;
 
5738
}
 
5739
_ACEOF
 
5740
rm -f conftest.$ac_objext
 
5741
if { (ac_try="$ac_compile"
 
5742
case "(($ac_try" in
 
5743
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5744
  *) ac_try_echo=$ac_try;;
 
5745
esac
 
5746
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5747
  (eval "$ac_compile") 2>conftest.er1
 
5748
  ac_status=$?
 
5749
  grep -v '^ *+' conftest.er1 >conftest.err
 
5750
  rm -f conftest.er1
 
5751
  cat conftest.err >&5
 
5752
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5753
  (exit $ac_status); } &&
 
5754
         { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
 
5755
  { (case "(($ac_try" in
 
5756
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5757
  *) ac_try_echo=$ac_try;;
 
5758
esac
 
5759
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5760
  (eval "$ac_try") 2>&5
 
5761
  ac_status=$?
 
5762
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5763
  (exit $ac_status); }; } &&
 
5764
         { ac_try='test -s conftest.$ac_objext'
 
5765
  { (case "(($ac_try" in
 
5766
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5767
  *) ac_try_echo=$ac_try;;
 
5768
esac
 
5769
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5770
  (eval "$ac_try") 2>&5
 
5771
  ac_status=$?
 
5772
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5773
  (exit $ac_status); }; }; then
 
5774
  ac_compiler_gnu=yes
 
5775
else
 
5776
  echo "$as_me: failed program was:" >&5
 
5777
sed 's/^/| /' conftest.$ac_ext >&5
 
5778
 
 
5779
        ac_compiler_gnu=no
 
5780
fi
 
5781
 
 
5782
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5783
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
5784
 
 
5785
fi
 
5786
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
5787
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
 
5788
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
5789
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
5790
ac_save_CXXFLAGS=$CXXFLAGS
 
5791
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
5792
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
 
5793
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
5794
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5795
else
 
5796
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
5797
   ac_cxx_werror_flag=yes
 
5798
   ac_cv_prog_cxx_g=no
 
5799
   CXXFLAGS="-g"
 
5800
   cat >conftest.$ac_ext <<_ACEOF
 
5801
/* confdefs.h.  */
 
5802
_ACEOF
 
5803
cat confdefs.h >>conftest.$ac_ext
 
5804
cat >>conftest.$ac_ext <<_ACEOF
 
5805
/* end confdefs.h.  */
 
5806
 
 
5807
int
 
5808
main ()
 
5809
{
 
5810
 
 
5811
  ;
 
5812
  return 0;
 
5813
}
 
5814
_ACEOF
 
5815
rm -f conftest.$ac_objext
 
5816
if { (ac_try="$ac_compile"
 
5817
case "(($ac_try" in
 
5818
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5819
  *) ac_try_echo=$ac_try;;
 
5820
esac
 
5821
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5822
  (eval "$ac_compile") 2>conftest.er1
 
5823
  ac_status=$?
 
5824
  grep -v '^ *+' conftest.er1 >conftest.err
 
5825
  rm -f conftest.er1
 
5826
  cat conftest.err >&5
 
5827
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5828
  (exit $ac_status); } &&
 
5829
         { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
 
5830
  { (case "(($ac_try" in
 
5831
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5832
  *) ac_try_echo=$ac_try;;
 
5833
esac
 
5834
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5835
  (eval "$ac_try") 2>&5
 
5836
  ac_status=$?
 
5837
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5838
  (exit $ac_status); }; } &&
 
5839
         { ac_try='test -s conftest.$ac_objext'
 
5840
  { (case "(($ac_try" in
 
5841
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5842
  *) ac_try_echo=$ac_try;;
 
5843
esac
 
5844
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5845
  (eval "$ac_try") 2>&5
 
5846
  ac_status=$?
 
5847
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5848
  (exit $ac_status); }; }; then
 
5849
  ac_cv_prog_cxx_g=yes
 
5850
else
 
5851
  echo "$as_me: failed program was:" >&5
 
5852
sed 's/^/| /' conftest.$ac_ext >&5
 
5853
 
 
5854
        CXXFLAGS=""
 
5855
      cat >conftest.$ac_ext <<_ACEOF
 
5856
/* confdefs.h.  */
 
5857
_ACEOF
 
5858
cat confdefs.h >>conftest.$ac_ext
 
5859
cat >>conftest.$ac_ext <<_ACEOF
 
5860
/* end confdefs.h.  */
 
5861
 
 
5862
int
 
5863
main ()
 
5864
{
 
5865
 
 
5866
  ;
 
5867
  return 0;
 
5868
}
 
5869
_ACEOF
 
5870
rm -f conftest.$ac_objext
 
5871
if { (ac_try="$ac_compile"
 
5872
case "(($ac_try" in
 
5873
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5874
  *) ac_try_echo=$ac_try;;
 
5875
esac
 
5876
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5877
  (eval "$ac_compile") 2>conftest.er1
 
5878
  ac_status=$?
 
5879
  grep -v '^ *+' conftest.er1 >conftest.err
 
5880
  rm -f conftest.er1
 
5881
  cat conftest.err >&5
 
5882
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5883
  (exit $ac_status); } &&
 
5884
         { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
 
5885
  { (case "(($ac_try" in
 
5886
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5887
  *) ac_try_echo=$ac_try;;
 
5888
esac
 
5889
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5890
  (eval "$ac_try") 2>&5
 
5891
  ac_status=$?
 
5892
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5893
  (exit $ac_status); }; } &&
 
5894
         { ac_try='test -s conftest.$ac_objext'
 
5895
  { (case "(($ac_try" in
 
5896
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5897
  *) ac_try_echo=$ac_try;;
 
5898
esac
 
5899
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5900
  (eval "$ac_try") 2>&5
 
5901
  ac_status=$?
 
5902
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5903
  (exit $ac_status); }; }; then
 
5904
  :
 
5905
else
 
5906
  echo "$as_me: failed program was:" >&5
 
5907
sed 's/^/| /' conftest.$ac_ext >&5
 
5908
 
 
5909
        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
5910
         CXXFLAGS="-g"
 
5911
         cat >conftest.$ac_ext <<_ACEOF
 
5912
/* confdefs.h.  */
 
5913
_ACEOF
 
5914
cat confdefs.h >>conftest.$ac_ext
 
5915
cat >>conftest.$ac_ext <<_ACEOF
 
5916
/* end confdefs.h.  */
 
5917
 
 
5918
int
 
5919
main ()
 
5920
{
 
5921
 
 
5922
  ;
 
5923
  return 0;
 
5924
}
 
5925
_ACEOF
 
5926
rm -f conftest.$ac_objext
 
5927
if { (ac_try="$ac_compile"
 
5928
case "(($ac_try" in
 
5929
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5930
  *) ac_try_echo=$ac_try;;
 
5931
esac
 
5932
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5933
  (eval "$ac_compile") 2>conftest.er1
 
5934
  ac_status=$?
 
5935
  grep -v '^ *+' conftest.er1 >conftest.err
 
5936
  rm -f conftest.er1
 
5937
  cat conftest.err >&5
 
5938
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5939
  (exit $ac_status); } &&
 
5940
         { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
 
5941
  { (case "(($ac_try" in
 
5942
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5943
  *) ac_try_echo=$ac_try;;
 
5944
esac
 
5945
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5946
  (eval "$ac_try") 2>&5
 
5947
  ac_status=$?
 
5948
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5949
  (exit $ac_status); }; } &&
 
5950
         { ac_try='test -s conftest.$ac_objext'
 
5951
  { (case "(($ac_try" in
 
5952
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5953
  *) ac_try_echo=$ac_try;;
 
5954
esac
 
5955
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5956
  (eval "$ac_try") 2>&5
 
5957
  ac_status=$?
 
5958
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5959
  (exit $ac_status); }; }; then
 
5960
  ac_cv_prog_cxx_g=yes
 
5961
else
 
5962
  echo "$as_me: failed program was:" >&5
 
5963
sed 's/^/| /' conftest.$ac_ext >&5
 
5964
 
 
5965
 
 
5966
fi
 
5967
 
 
5968
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5969
fi
 
5970
 
 
5971
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5972
fi
 
5973
 
 
5974
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5975
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
5976
fi
 
5977
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
5978
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
 
5979
if test "$ac_test_CXXFLAGS" = set; then
 
5980
  CXXFLAGS=$ac_save_CXXFLAGS
 
5981
elif test $ac_cv_prog_cxx_g = yes; then
 
5982
  if test "$GXX" = yes; then
 
5983
    CXXFLAGS="-g -O2"
 
5984
  else
 
5985
    CXXFLAGS="-g"
 
5986
  fi
 
5987
else
 
5988
  if test "$GXX" = yes; then
 
5989
    CXXFLAGS="-O2"
 
5990
  else
 
5991
    CXXFLAGS=
 
5992
  fi
 
5993
fi
 
5994
ac_ext=cpp
 
5995
ac_cpp='$CXXCPP $CPPFLAGS'
 
5996
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5997
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5998
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5999
 
 
6000
depcc="$CXX"  am_compiler_list=
 
6001
 
 
6002
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
6003
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
 
6004
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
6005
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6006
else
 
6007
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
6008
  # We make a subdir and do the tests there.  Otherwise we can end up
 
6009
  # making bogus files that we don't know about and never remove.  For
 
6010
  # instance it was reported that on HP-UX the gcc test will end up
 
6011
  # making a dummy file named `D' -- because `-MD' means `put the output
 
6012
  # in D'.
 
6013
  mkdir conftest.dir
 
6014
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
6015
  # using a relative directory.
 
6016
  cp "$am_depcomp" conftest.dir
 
6017
  cd conftest.dir
 
6018
  # We will build objects and dependencies in a subdirectory because
 
6019
  # it helps to detect inapplicable dependency modes.  For instance
 
6020
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
6021
  # side effect of compilation, but ICC will put the dependencies in
 
6022
  # the current directory while Tru64 will put them in the object
 
6023
  # directory.
 
6024
  mkdir sub
 
6025
 
 
6026
  am_cv_CXX_dependencies_compiler_type=none
 
6027
  if test "$am_compiler_list" = ""; then
 
6028
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
6029
  fi
 
6030
  for depmode in $am_compiler_list; do
 
6031
    # Setup a source with many dependencies, because some compilers
 
6032
    # like to wrap large dependency lists on column 80 (with \), and
 
6033
    # we should not choose a depcomp mode which is confused by this.
 
6034
    #
 
6035
    # We need to recreate these files for each test, as the compiler may
 
6036
    # overwrite some of them when testing with obscure command lines.
 
6037
    # This happens at least with the AIX C compiler.
 
6038
    : > sub/conftest.c
 
6039
    for i in 1 2 3 4 5 6; do
 
6040
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
6041
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
6042
      # Solaris 8's {/usr,}/bin/sh.
 
6043
      touch sub/conftst$i.h
 
6044
    done
 
6045
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
6046
 
 
6047
    case $depmode in
 
6048
    nosideeffect)
 
6049
      # after this tag, mechanisms are not by side-effect, so they'll
 
6050
      # only be used when explicitly requested
 
6051
      if test "x$enable_dependency_tracking" = xyes; then
 
6052
        continue
 
6053
      else
 
6054
        break
 
6055
      fi
 
6056
      ;;
 
6057
    none) break ;;
 
6058
    esac
 
6059
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
6060
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
6061
    # handle `-M -o', and we need to detect this.
 
6062
    if depmode=$depmode \
 
6063
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
6064
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
6065
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
6066
         >/dev/null 2>conftest.err &&
 
6067
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
6068
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
6069
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
6070
      # icc doesn't choke on unknown options, it will just issue warnings
 
6071
      # or remarks (even with -Werror).  So we grep stderr for any message
 
6072
      # that says an option was ignored or not supported.
 
6073
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
6074
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
6075
      # The diagnosis changed in icc 8.0:
 
6076
      #   icc: Command line remark: option '-MP' not supported
 
6077
      if (grep 'ignoring option' conftest.err ||
 
6078
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
6079
        am_cv_CXX_dependencies_compiler_type=$depmode
 
6080
        break
 
6081
      fi
 
6082
    fi
 
6083
  done
 
6084
 
 
6085
  cd ..
 
6086
  rm -rf conftest.dir
 
6087
else
 
6088
  am_cv_CXX_dependencies_compiler_type=none
 
6089
fi
 
6090
 
 
6091
fi
 
6092
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
6093
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
 
6094
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
6095
 
 
6096
 
 
6097
 
 
6098
if
 
6099
  test "x$enable_dependency_tracking" != xno \
 
6100
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
6101
  am__fastdepCXX_TRUE=
 
6102
  am__fastdepCXX_FALSE='#'
 
6103
else
 
6104
  am__fastdepCXX_TRUE='#'
 
6105
  am__fastdepCXX_FALSE=
 
6106
fi
 
6107
 
 
6108
 
 
6109
 
 
6110
 
 
6111
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
6112
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
6113
    (test "X$CXX" != "Xg++"))) ; then
 
6114
  ac_ext=cpp
 
6115
ac_cpp='$CXXCPP $CPPFLAGS'
 
6116
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6117
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6118
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6119
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
6120
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
 
6121
if test -z "$CXXCPP"; then
 
6122
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
6123
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6124
else
 
6125
      # Double quotes because CXXCPP needs to be expanded
 
6126
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
6127
    do
 
6128
      ac_preproc_ok=false
 
6129
for ac_cxx_preproc_warn_flag in '' yes
 
6130
do
 
6131
  # Use a header file that comes with gcc, so configuring glibc
 
6132
  # with a fresh cross-compiler works.
 
6133
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6134
  # <limits.h> exists even on freestanding compilers.
 
6135
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6136
  # not just through cpp. "Syntax error" is here to catch this case.
 
6137
  cat >conftest.$ac_ext <<_ACEOF
 
6138
/* confdefs.h.  */
 
6139
_ACEOF
 
6140
cat confdefs.h >>conftest.$ac_ext
 
6141
cat >>conftest.$ac_ext <<_ACEOF
 
6142
/* end confdefs.h.  */
 
6143
#ifdef __STDC__
 
6144
# include <limits.h>
 
6145
#else
 
6146
# include <assert.h>
 
6147
#endif
 
6148
                     Syntax error
 
6149
_ACEOF
 
6150
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6151
case "(($ac_try" in
 
6152
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6153
  *) ac_try_echo=$ac_try;;
 
6154
esac
 
6155
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6156
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6157
  ac_status=$?
 
6158
  grep -v '^ *+' conftest.er1 >conftest.err
 
6159
  rm -f conftest.er1
 
6160
  cat conftest.err >&5
 
6161
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6162
  (exit $ac_status); } >/dev/null; then
 
6163
  if test -s conftest.err; then
 
6164
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
6165
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
6166
  else
 
6167
    ac_cpp_err=
 
6168
  fi
 
6169
else
 
6170
  ac_cpp_err=yes
 
6171
fi
 
6172
if test -z "$ac_cpp_err"; then
 
6173
  :
 
6174
else
 
6175
  echo "$as_me: failed program was:" >&5
 
6176
sed 's/^/| /' conftest.$ac_ext >&5
 
6177
 
 
6178
  # Broken: fails on valid input.
 
6179
continue
 
6180
fi
 
6181
 
 
6182
rm -f conftest.err conftest.$ac_ext
 
6183
 
 
6184
  # OK, works on sane cases.  Now check whether nonexistent headers
 
6185
  # can be detected and how.
 
6186
  cat >conftest.$ac_ext <<_ACEOF
 
6187
/* confdefs.h.  */
 
6188
_ACEOF
 
6189
cat confdefs.h >>conftest.$ac_ext
 
6190
cat >>conftest.$ac_ext <<_ACEOF
 
6191
/* end confdefs.h.  */
 
6192
#include <ac_nonexistent.h>
 
6193
_ACEOF
 
6194
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6195
case "(($ac_try" in
 
6196
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6197
  *) ac_try_echo=$ac_try;;
 
6198
esac
 
6199
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6200
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6201
  ac_status=$?
 
6202
  grep -v '^ *+' conftest.er1 >conftest.err
 
6203
  rm -f conftest.er1
 
6204
  cat conftest.err >&5
 
6205
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6206
  (exit $ac_status); } >/dev/null; then
 
6207
  if test -s conftest.err; then
 
6208
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
6209
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
6210
  else
 
6211
    ac_cpp_err=
 
6212
  fi
 
6213
else
 
6214
  ac_cpp_err=yes
 
6215
fi
 
6216
if test -z "$ac_cpp_err"; then
 
6217
  # Broken: success on invalid input.
 
6218
continue
 
6219
else
 
6220
  echo "$as_me: failed program was:" >&5
 
6221
sed 's/^/| /' conftest.$ac_ext >&5
 
6222
 
 
6223
  # Passes both tests.
 
6224
ac_preproc_ok=:
 
6225
break
 
6226
fi
 
6227
 
 
6228
rm -f conftest.err conftest.$ac_ext
 
6229
 
 
6230
done
 
6231
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6232
rm -f conftest.err conftest.$ac_ext
 
6233
if $ac_preproc_ok; then
 
6234
  break
 
6235
fi
 
6236
 
 
6237
    done
 
6238
    ac_cv_prog_CXXCPP=$CXXCPP
 
6239
 
 
6240
fi
 
6241
  CXXCPP=$ac_cv_prog_CXXCPP
 
6242
else
 
6243
  ac_cv_prog_CXXCPP=$CXXCPP
 
6244
fi
 
6245
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
6246
echo "${ECHO_T}$CXXCPP" >&6; }
 
6247
ac_preproc_ok=false
 
6248
for ac_cxx_preproc_warn_flag in '' yes
 
6249
do
 
6250
  # Use a header file that comes with gcc, so configuring glibc
 
6251
  # with a fresh cross-compiler works.
 
6252
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6253
  # <limits.h> exists even on freestanding compilers.
 
6254
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6255
  # not just through cpp. "Syntax error" is here to catch this case.
 
6256
  cat >conftest.$ac_ext <<_ACEOF
 
6257
/* confdefs.h.  */
 
6258
_ACEOF
 
6259
cat confdefs.h >>conftest.$ac_ext
 
6260
cat >>conftest.$ac_ext <<_ACEOF
 
6261
/* end confdefs.h.  */
 
6262
#ifdef __STDC__
 
6263
# include <limits.h>
 
6264
#else
 
6265
# include <assert.h>
 
6266
#endif
 
6267
                     Syntax error
 
6268
_ACEOF
 
6269
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6270
case "(($ac_try" in
 
6271
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6272
  *) ac_try_echo=$ac_try;;
 
6273
esac
 
6274
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6275
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6276
  ac_status=$?
 
6277
  grep -v '^ *+' conftest.er1 >conftest.err
 
6278
  rm -f conftest.er1
 
6279
  cat conftest.err >&5
 
6280
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6281
  (exit $ac_status); } >/dev/null; then
 
6282
  if test -s conftest.err; then
 
6283
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
6284
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
6285
  else
 
6286
    ac_cpp_err=
 
6287
  fi
 
6288
else
 
6289
  ac_cpp_err=yes
 
6290
fi
 
6291
if test -z "$ac_cpp_err"; then
 
6292
  :
 
6293
else
 
6294
  echo "$as_me: failed program was:" >&5
 
6295
sed 's/^/| /' conftest.$ac_ext >&5
 
6296
 
 
6297
  # Broken: fails on valid input.
 
6298
continue
 
6299
fi
 
6300
 
 
6301
rm -f conftest.err conftest.$ac_ext
 
6302
 
 
6303
  # OK, works on sane cases.  Now check whether nonexistent headers
 
6304
  # can be detected and how.
 
6305
  cat >conftest.$ac_ext <<_ACEOF
 
6306
/* confdefs.h.  */
 
6307
_ACEOF
 
6308
cat confdefs.h >>conftest.$ac_ext
 
6309
cat >>conftest.$ac_ext <<_ACEOF
 
6310
/* end confdefs.h.  */
 
6311
#include <ac_nonexistent.h>
 
6312
_ACEOF
 
6313
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6314
case "(($ac_try" in
 
6315
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6316
  *) ac_try_echo=$ac_try;;
 
6317
esac
 
6318
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6319
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6320
  ac_status=$?
 
6321
  grep -v '^ *+' conftest.er1 >conftest.err
 
6322
  rm -f conftest.er1
 
6323
  cat conftest.err >&5
 
6324
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6325
  (exit $ac_status); } >/dev/null; then
 
6326
  if test -s conftest.err; then
 
6327
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
6328
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
6329
  else
 
6330
    ac_cpp_err=
 
6331
  fi
 
6332
else
 
6333
  ac_cpp_err=yes
 
6334
fi
 
6335
if test -z "$ac_cpp_err"; then
 
6336
  # Broken: success on invalid input.
 
6337
continue
 
6338
else
 
6339
  echo "$as_me: failed program was:" >&5
 
6340
sed 's/^/| /' conftest.$ac_ext >&5
 
6341
 
 
6342
  # Passes both tests.
 
6343
ac_preproc_ok=:
 
6344
break
 
6345
fi
 
6346
 
 
6347
rm -f conftest.err conftest.$ac_ext
 
6348
 
 
6349
done
 
6350
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6351
rm -f conftest.err conftest.$ac_ext
 
6352
if $ac_preproc_ok; then
 
6353
  :
 
6354
else
 
6355
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
6356
See \`config.log' for more details." >&5
 
6357
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
6358
See \`config.log' for more details." >&2;}
 
6359
   { (exit 1); exit 1; }; }
 
6360
fi
 
6361
 
 
6362
ac_ext=cpp
 
6363
ac_cpp='$CXXCPP $CPPFLAGS'
 
6364
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6365
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6366
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6367
 
 
6368
fi
 
6369
 
 
6370
 
 
6371
ac_ext=f
 
6372
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
6373
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6374
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
6375
if test -n "$ac_tool_prefix"; then
 
6376
  for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
 
6377
  do
 
6378
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
6379
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
6380
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6381
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6382
if test "${ac_cv_prog_F77+set}" = set; then
 
6383
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6384
else
 
6385
  if test -n "$F77"; then
 
6386
  ac_cv_prog_F77="$F77" # Let the user override the test.
 
6387
else
 
6388
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6389
for as_dir in $PATH
 
6390
do
 
6391
  IFS=$as_save_IFS
 
6392
  test -z "$as_dir" && as_dir=.
 
6393
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6394
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6395
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
 
6396
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6397
    break 2
 
6398
  fi
 
6399
done
 
6400
done
 
6401
IFS=$as_save_IFS
 
6402
 
 
6403
fi
 
6404
fi
 
6405
F77=$ac_cv_prog_F77
 
6406
if test -n "$F77"; then
 
6407
  { echo "$as_me:$LINENO: result: $F77" >&5
 
6408
echo "${ECHO_T}$F77" >&6; }
 
6409
else
 
6410
  { echo "$as_me:$LINENO: result: no" >&5
 
6411
echo "${ECHO_T}no" >&6; }
 
6412
fi
 
6413
 
 
6414
 
 
6415
    test -n "$F77" && break
 
6416
  done
 
6417
fi
 
6418
if test -z "$F77"; then
 
6419
  ac_ct_F77=$F77
 
6420
  for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn
 
6421
do
 
6422
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
6423
set dummy $ac_prog; ac_word=$2
 
6424
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6425
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6426
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
 
6427
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6428
else
 
6429
  if test -n "$ac_ct_F77"; then
 
6430
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
 
6431
else
 
6432
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6433
for as_dir in $PATH
 
6434
do
 
6435
  IFS=$as_save_IFS
 
6436
  test -z "$as_dir" && as_dir=.
 
6437
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6438
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6439
    ac_cv_prog_ac_ct_F77="$ac_prog"
 
6440
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6441
    break 2
 
6442
  fi
 
6443
done
 
6444
done
 
6445
IFS=$as_save_IFS
 
6446
 
 
6447
fi
 
6448
fi
 
6449
ac_ct_F77=$ac_cv_prog_ac_ct_F77
 
6450
if test -n "$ac_ct_F77"; then
 
6451
  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
6452
echo "${ECHO_T}$ac_ct_F77" >&6; }
 
6453
else
 
6454
  { echo "$as_me:$LINENO: result: no" >&5
 
6455
echo "${ECHO_T}no" >&6; }
 
6456
fi
 
6457
 
 
6458
 
 
6459
  test -n "$ac_ct_F77" && break
 
6460
done
 
6461
 
 
6462
  if test "x$ac_ct_F77" = x; then
 
6463
    F77=""
 
6464
  else
 
6465
    case $cross_compiling:$ac_tool_warned in
 
6466
yes:)
 
6467
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
6468
whose name does not start with the host triplet.  If you think this
 
6469
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
6470
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
6471
whose name does not start with the host triplet.  If you think this
 
6472
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
6473
ac_tool_warned=yes ;;
 
6474
esac
 
6475
    F77=$ac_ct_F77
 
6476
  fi
 
6477
fi
 
6478
 
 
6479
 
 
6480
# Provide some information about the compiler.
 
6481
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
 
6482
ac_compiler=`set X $ac_compile; echo $2`
 
6483
{ (ac_try="$ac_compiler --version >&5"
 
6484
case "(($ac_try" in
 
6485
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6486
  *) ac_try_echo=$ac_try;;
 
6487
esac
 
6488
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6489
  (eval "$ac_compiler --version >&5") 2>&5
 
6490
  ac_status=$?
 
6491
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6492
  (exit $ac_status); }
 
6493
{ (ac_try="$ac_compiler -v >&5"
 
6494
case "(($ac_try" in
 
6495
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6496
  *) ac_try_echo=$ac_try;;
 
6497
esac
 
6498
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6499
  (eval "$ac_compiler -v >&5") 2>&5
 
6500
  ac_status=$?
 
6501
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6502
  (exit $ac_status); }
 
6503
{ (ac_try="$ac_compiler -V >&5"
 
6504
case "(($ac_try" in
 
6505
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6506
  *) ac_try_echo=$ac_try;;
 
6507
esac
 
6508
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6509
  (eval "$ac_compiler -V >&5") 2>&5
 
6510
  ac_status=$?
 
6511
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6512
  (exit $ac_status); }
 
6513
rm -f a.out
 
6514
 
 
6515
# If we don't use `.F' as extension, the preprocessor is not run on the
 
6516
# input file.  (Note that this only needs to work for GNU compilers.)
 
6517
ac_save_ext=$ac_ext
 
6518
ac_ext=F
 
6519
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
6520
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
 
6521
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
 
6522
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6523
else
 
6524
  cat >conftest.$ac_ext <<_ACEOF
 
6525
      program main
 
6526
#ifndef __GNUC__
 
6527
       choke me
 
6528
#endif
 
6529
 
 
6530
      end
 
6531
_ACEOF
 
6532
rm -f conftest.$ac_objext
 
6533
if { (ac_try="$ac_compile"
 
6534
case "(($ac_try" in
 
6535
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6536
  *) ac_try_echo=$ac_try;;
 
6537
esac
 
6538
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6539
  (eval "$ac_compile") 2>conftest.er1
 
6540
  ac_status=$?
 
6541
  grep -v '^ *+' conftest.er1 >conftest.err
 
6542
  rm -f conftest.er1
 
6543
  cat conftest.err >&5
 
6544
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6545
  (exit $ac_status); } &&
 
6546
         { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
 
6547
  { (case "(($ac_try" in
 
6548
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6549
  *) ac_try_echo=$ac_try;;
 
6550
esac
 
6551
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6552
  (eval "$ac_try") 2>&5
 
6553
  ac_status=$?
 
6554
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6555
  (exit $ac_status); }; } &&
 
6556
         { ac_try='test -s conftest.$ac_objext'
 
6557
  { (case "(($ac_try" in
 
6558
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6559
  *) ac_try_echo=$ac_try;;
 
6560
esac
 
6561
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6562
  (eval "$ac_try") 2>&5
 
6563
  ac_status=$?
 
6564
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6565
  (exit $ac_status); }; }; then
 
6566
  ac_compiler_gnu=yes
 
6567
else
 
6568
  echo "$as_me: failed program was:" >&5
 
6569
sed 's/^/| /' conftest.$ac_ext >&5
 
6570
 
 
6571
        ac_compiler_gnu=no
 
6572
fi
 
6573
 
 
6574
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6575
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
 
6576
 
 
6577
fi
 
6578
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
6579
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
 
6580
ac_ext=$ac_save_ext
 
6581
ac_test_FFLAGS=${FFLAGS+set}
 
6582
ac_save_FFLAGS=$FFLAGS
 
6583
FFLAGS=
 
6584
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
6585
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
 
6586
if test "${ac_cv_prog_f77_g+set}" = set; then
 
6587
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6588
else
 
6589
  FFLAGS=-g
 
6590
cat >conftest.$ac_ext <<_ACEOF
 
6591
      program main
 
6592
 
 
6593
      end
 
6594
_ACEOF
 
6595
rm -f conftest.$ac_objext
 
6596
if { (ac_try="$ac_compile"
 
6597
case "(($ac_try" in
 
6598
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6599
  *) ac_try_echo=$ac_try;;
 
6600
esac
 
6601
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6602
  (eval "$ac_compile") 2>conftest.er1
 
6603
  ac_status=$?
 
6604
  grep -v '^ *+' conftest.er1 >conftest.err
 
6605
  rm -f conftest.er1
 
6606
  cat conftest.err >&5
 
6607
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6608
  (exit $ac_status); } &&
 
6609
         { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
 
6610
  { (case "(($ac_try" in
 
6611
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6612
  *) ac_try_echo=$ac_try;;
 
6613
esac
 
6614
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6615
  (eval "$ac_try") 2>&5
 
6616
  ac_status=$?
 
6617
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6618
  (exit $ac_status); }; } &&
 
6619
         { ac_try='test -s conftest.$ac_objext'
 
6620
  { (case "(($ac_try" in
 
6621
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6622
  *) ac_try_echo=$ac_try;;
 
6623
esac
 
6624
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6625
  (eval "$ac_try") 2>&5
 
6626
  ac_status=$?
 
6627
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6628
  (exit $ac_status); }; }; then
 
6629
  ac_cv_prog_f77_g=yes
 
6630
else
 
6631
  echo "$as_me: failed program was:" >&5
 
6632
sed 's/^/| /' conftest.$ac_ext >&5
 
6633
 
 
6634
        ac_cv_prog_f77_g=no
 
6635
fi
 
6636
 
 
6637
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6638
 
 
6639
fi
 
6640
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
6641
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
 
6642
if test "$ac_test_FFLAGS" = set; then
 
6643
  FFLAGS=$ac_save_FFLAGS
 
6644
elif test $ac_cv_prog_f77_g = yes; then
 
6645
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
6646
    FFLAGS="-g -O2"
 
6647
  else
 
6648
    FFLAGS="-g"
 
6649
  fi
 
6650
else
 
6651
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
6652
    FFLAGS="-O2"
 
6653
  else
 
6654
    FFLAGS=
 
6655
  fi
 
6656
fi
 
6657
 
 
6658
G77=`test $ac_compiler_gnu = yes && echo yes`
 
6659
ac_ext=c
 
6660
ac_cpp='$CPP $CPPFLAGS'
 
6661
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6662
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6663
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6664
 
 
6665
 
 
6666
 
 
6667
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
6668
 
 
6669
# find the maximum length of command line arguments
 
6670
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
6671
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
 
6672
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
6673
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6674
else
 
6675
    i=0
 
6676
  teststring="ABCD"
 
6677
 
 
6678
  case $build_os in
 
6679
  msdosdjgpp*)
 
6680
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
6681
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
6682
    # during glob expansion).  Even if it were fixed, the result of this
 
6683
    # check would be larger than it should be.
 
6684
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
6685
    ;;
 
6686
 
 
6687
  gnu*)
 
6688
    # Under GNU Hurd, this test is not required because there is
 
6689
    # no limit to the length of command line arguments.
 
6690
    # Libtool will interpret -1 as no limit whatsoever
 
6691
    lt_cv_sys_max_cmd_len=-1;
 
6692
    ;;
 
6693
 
 
6694
  cygwin* | mingw*)
 
6695
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
6696
    # about 5 minutes as the teststring grows exponentially.
 
6697
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
6698
    # you end up with a "frozen" computer, even though with patience
 
6699
    # the test eventually succeeds (with a max line length of 256k).
 
6700
    # Instead, let's just punt: use the minimum linelength reported by
 
6701
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
6702
    lt_cv_sys_max_cmd_len=8192;
 
6703
    ;;
 
6704
 
 
6705
  amigaos*)
 
6706
    # On AmigaOS with pdksh, this test takes hours, literally.
 
6707
    # So we just punt and use a minimum line length of 8192.
 
6708
    lt_cv_sys_max_cmd_len=8192;
 
6709
    ;;
 
6710
 
 
6711
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
6712
    # This has been around since 386BSD, at least.  Likely further.
 
6713
    if test -x /sbin/sysctl; then
 
6714
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
6715
    elif test -x /usr/sbin/sysctl; then
 
6716
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
6717
    else
 
6718
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
6719
    fi
 
6720
    # And add a safety zone
 
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
    ;;
 
6724
 
 
6725
  interix*)
 
6726
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
6727
    lt_cv_sys_max_cmd_len=196608
 
6728
    ;;
 
6729
 
 
6730
  osf*)
 
6731
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
6732
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
6733
    # nice to cause kernel panics so lets avoid the loop below.
 
6734
    # First set a reasonable default.
 
6735
    lt_cv_sys_max_cmd_len=16384
 
6736
    #
 
6737
    if test -x /sbin/sysconfig; then
 
6738
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
6739
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
6740
      esac
 
6741
    fi
 
6742
    ;;
 
6743
  sco3.2v5*)
 
6744
    lt_cv_sys_max_cmd_len=102400
 
6745
    ;;
 
6746
  sysv5* | sco5v6* | sysv4.2uw2*)
 
6747
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
6748
    if test -n "$kargmax"; then
 
6749
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
 
6750
    else
 
6751
      lt_cv_sys_max_cmd_len=32768
 
6752
    fi
 
6753
    ;;
 
6754
  *)
 
6755
    # If test is not a shell built-in, we'll probably end up computing a
 
6756
    # maximum length that is only half of the actual maximum length, but
 
6757
    # we can't tell.
 
6758
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
6759
    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
6760
               = "XX$teststring") >/dev/null 2>&1 &&
 
6761
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
6762
            lt_cv_sys_max_cmd_len=$new_result &&
 
6763
            test $i != 17 # 1/2 MB should be enough
 
6764
    do
 
6765
      i=`expr $i + 1`
 
6766
      teststring=$teststring$teststring
 
6767
    done
 
6768
    teststring=
 
6769
    # Add a significant safety factor because C++ compilers can tack on massive
 
6770
    # amounts of additional arguments before passing them to the linker.
 
6771
    # It appears as though 1/2 is a usable value.
 
6772
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
6773
    ;;
 
6774
  esac
 
6775
 
 
6776
fi
 
6777
 
 
6778
if test -n $lt_cv_sys_max_cmd_len ; then
 
6779
  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
6780
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
 
6781
else
 
6782
  { echo "$as_me:$LINENO: result: none" >&5
 
6783
echo "${ECHO_T}none" >&6; }
 
6784
fi
 
6785
 
 
6786
 
 
6787
 
 
6788
 
 
6789
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
6790
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
6791
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
 
6792
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
6793
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6794
else
 
6795
 
 
6796
# These are sane defaults that work on at least a few old systems.
 
6797
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
6798
 
 
6799
# Character class describing NM global symbol codes.
 
6800
symcode='[BCDEGRST]'
 
6801
 
 
6802
# Regexp to match symbols that can be accessed directly from C.
 
6803
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
6804
 
 
6805
# Transform an extracted symbol line into a proper C declaration
 
6806
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
6807
 
 
6808
# Transform an extracted symbol line into symbol name and symbol address
 
6809
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'"
 
6810
 
 
6811
# Define system-specific variables.
 
6812
case $host_os in
 
6813
aix*)
 
6814
  symcode='[BCDT]'
 
6815
  ;;
 
6816
cygwin* | mingw* | pw32*)
 
6817
  symcode='[ABCDGISTW]'
 
6818
  ;;
 
6819
hpux*) # Its linker distinguishes data from code symbols
 
6820
  if test "$host_cpu" = ia64; then
 
6821
    symcode='[ABCDEGRST]'
 
6822
  fi
 
6823
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6824
  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'"
 
6825
  ;;
 
6826
linux* | k*bsd*-gnu)
 
6827
  if test "$host_cpu" = ia64; then
 
6828
    symcode='[ABCDGIRSTW]'
 
6829
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6830
    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'"
 
6831
  fi
 
6832
  ;;
 
6833
irix* | nonstopux*)
 
6834
  symcode='[BCDEGRST]'
 
6835
  ;;
 
6836
osf*)
 
6837
  symcode='[BCDEGQRST]'
 
6838
  ;;
 
6839
solaris*)
 
6840
  symcode='[BDRT]'
 
6841
  ;;
 
6842
sco3.2v5*)
 
6843
  symcode='[DT]'
 
6844
  ;;
 
6845
sysv4.2uw2*)
 
6846
  symcode='[DT]'
 
6847
  ;;
 
6848
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
6849
  symcode='[ABDT]'
 
6850
  ;;
 
6851
sysv4)
 
6852
  symcode='[DFNSTU]'
 
6853
  ;;
 
6854
esac
 
6855
 
 
6856
# Handle CRLF in mingw tool chain
 
6857
opt_cr=
 
6858
case $build_os in
 
6859
mingw*)
 
6860
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
6861
  ;;
 
6862
esac
 
6863
 
 
6864
# If we're using GNU nm, then use its standard symbol codes.
 
6865
case `$NM -V 2>&1` in
 
6866
*GNU* | *'with BFD'*)
 
6867
  symcode='[ABCDGIRSTW]' ;;
 
6868
esac
 
6869
 
 
6870
# Try without a prefix undercore, then with it.
 
6871
for ac_symprfx in "" "_"; do
 
6872
 
 
6873
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
6874
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
6875
 
 
6876
  # Write the raw and C identifiers.
 
6877
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
6878
 
 
6879
  # Check to see that the pipe works correctly.
 
6880
  pipe_works=no
 
6881
 
 
6882
  rm -f conftest*
 
6883
  cat > conftest.$ac_ext <<EOF
 
6884
#ifdef __cplusplus
 
6885
extern "C" {
 
6886
#endif
 
6887
char nm_test_var;
 
6888
void nm_test_func(){}
 
6889
#ifdef __cplusplus
 
6890
}
 
6891
#endif
 
6892
int main(){nm_test_var='a';nm_test_func();return(0);}
 
6893
EOF
 
6894
 
 
6895
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6896
  (eval $ac_compile) 2>&5
 
6897
  ac_status=$?
 
6898
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6899
  (exit $ac_status); }; then
 
6900
    # Now try to grab the symbols.
 
6901
    nlist=conftest.nm
 
6902
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
6903
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
6904
  ac_status=$?
 
6905
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6906
  (exit $ac_status); } && test -s "$nlist"; then
 
6907
      # Try sorting and uniquifying the output.
 
6908
      if sort "$nlist" | uniq > "$nlist"T; then
 
6909
        mv -f "$nlist"T "$nlist"
 
6910
      else
 
6911
        rm -f "$nlist"T
 
6912
      fi
 
6913
 
 
6914
      # Make sure that we snagged all the symbols we need.
 
6915
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
6916
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
 
6917
          cat <<EOF > conftest.$ac_ext
 
6918
#ifdef __cplusplus
 
6919
extern "C" {
 
6920
#endif
 
6921
 
 
6922
EOF
 
6923
          # Now generate the symbol file.
 
6924
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 
6925
 
 
6926
          cat <<EOF >> conftest.$ac_ext
 
6927
#if defined (__STDC__) && __STDC__
 
6928
# define lt_ptr_t void *
 
6929
#else
 
6930
# define lt_ptr_t char *
 
6931
# define const
 
6932
#endif
 
6933
 
 
6934
/* The mapping between symbol names and symbols. */
 
6935
const struct {
 
6936
  const char *name;
 
6937
  lt_ptr_t address;
 
6938
}
 
6939
lt_preloaded_symbols[] =
 
6940
{
 
6941
EOF
 
6942
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 
6943
          cat <<\EOF >> conftest.$ac_ext
 
6944
  {0, (lt_ptr_t) 0}
 
6945
};
 
6946
 
 
6947
#ifdef __cplusplus
 
6948
}
 
6949
#endif
 
6950
EOF
 
6951
          # Now try linking the two files.
 
6952
          mv conftest.$ac_objext conftstm.$ac_objext
 
6953
          lt_save_LIBS="$LIBS"
 
6954
          lt_save_CFLAGS="$CFLAGS"
 
6955
          LIBS="conftstm.$ac_objext"
 
6956
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
6957
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6958
  (eval $ac_link) 2>&5
 
6959
  ac_status=$?
 
6960
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6961
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
 
6962
            pipe_works=yes
 
6963
          fi
 
6964
          LIBS="$lt_save_LIBS"
 
6965
          CFLAGS="$lt_save_CFLAGS"
 
6966
        else
 
6967
          echo "cannot find nm_test_func in $nlist" >&5
 
6968
        fi
 
6969
      else
 
6970
        echo "cannot find nm_test_var in $nlist" >&5
 
6971
      fi
 
6972
    else
 
6973
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
6974
    fi
 
6975
  else
 
6976
    echo "$progname: failed program was:" >&5
 
6977
    cat conftest.$ac_ext >&5
 
6978
  fi
 
6979
  rm -f conftest* conftst*
 
6980
 
 
6981
  # Do not use the global_symbol_pipe unless it works.
 
6982
  if test "$pipe_works" = yes; then
 
6983
    break
 
6984
  else
 
6985
    lt_cv_sys_global_symbol_pipe=
 
6986
  fi
 
6987
done
 
6988
 
 
6989
fi
 
6990
 
 
6991
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
6992
  lt_cv_sys_global_symbol_to_cdecl=
 
6993
fi
 
6994
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
6995
  { echo "$as_me:$LINENO: result: failed" >&5
 
6996
echo "${ECHO_T}failed" >&6; }
 
6997
else
 
6998
  { echo "$as_me:$LINENO: result: ok" >&5
 
6999
echo "${ECHO_T}ok" >&6; }
 
7000
fi
 
7001
 
 
7002
{ echo "$as_me:$LINENO: checking for objdir" >&5
 
7003
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
 
7004
if test "${lt_cv_objdir+set}" = set; then
 
7005
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7006
else
 
7007
  rm -f .libs 2>/dev/null
 
7008
mkdir .libs 2>/dev/null
 
7009
if test -d .libs; then
 
7010
  lt_cv_objdir=.libs
 
7011
else
 
7012
  # MS-DOS does not allow filenames that begin with a dot.
 
7013
  lt_cv_objdir=_libs
 
7014
fi
 
7015
rmdir .libs 2>/dev/null
 
7016
fi
 
7017
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
7018
echo "${ECHO_T}$lt_cv_objdir" >&6; }
 
7019
objdir=$lt_cv_objdir
 
7020
 
 
7021
 
 
7022
 
 
7023
 
 
7024
 
 
7025
case $host_os in
 
7026
aix3*)
 
7027
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
7028
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
7029
  # vanish in a puff of smoke.
 
7030
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
7031
    COLLECT_NAMES=
 
7032
    export COLLECT_NAMES
 
7033
  fi
 
7034
  ;;
 
7035
esac
 
7036
 
 
7037
# Sed substitution that helps us do robust quoting.  It backslashifies
 
7038
# metacharacters that are still active within double-quoted strings.
 
7039
Xsed='sed -e 1s/^X//'
 
7040
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
7041
 
 
7042
# Same as above, but do not quote variable references.
 
7043
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
7044
 
 
7045
# Sed substitution to delay expansion of an escaped shell variable in a
 
7046
# double_quote_subst'ed string.
 
7047
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
7048
 
 
7049
# Sed substitution to avoid accidental globbing in evaled expressions
 
7050
no_glob_subst='s/\*/\\\*/g'
 
7051
 
 
7052
# Constants:
 
7053
rm="rm -f"
 
7054
 
 
7055
# Global variables:
 
7056
default_ofile=libtool
 
7057
can_build_shared=yes
 
7058
 
 
7059
# All known linkers require a `.a' archive for static linking (except MSVC,
 
7060
# which needs '.lib').
 
7061
libext=a
 
7062
ltmain="$ac_aux_dir/ltmain.sh"
 
7063
ofile="$default_ofile"
 
7064
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
7065
 
 
7066
if test -n "$ac_tool_prefix"; then
 
7067
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
7068
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
7069
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7070
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7071
if test "${ac_cv_prog_AR+set}" = set; then
 
7072
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7073
else
 
7074
  if test -n "$AR"; then
 
7075
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
7076
else
 
7077
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7078
for as_dir in $PATH
 
7079
do
 
7080
  IFS=$as_save_IFS
 
7081
  test -z "$as_dir" && as_dir=.
 
7082
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7083
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7084
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
7085
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7086
    break 2
 
7087
  fi
 
7088
done
 
7089
done
 
7090
IFS=$as_save_IFS
 
7091
 
 
7092
fi
 
7093
fi
 
7094
AR=$ac_cv_prog_AR
 
7095
if test -n "$AR"; then
 
7096
  { echo "$as_me:$LINENO: result: $AR" >&5
 
7097
echo "${ECHO_T}$AR" >&6; }
 
7098
else
 
7099
  { echo "$as_me:$LINENO: result: no" >&5
 
7100
echo "${ECHO_T}no" >&6; }
 
7101
fi
 
7102
 
 
7103
 
 
7104
fi
 
7105
if test -z "$ac_cv_prog_AR"; then
 
7106
  ac_ct_AR=$AR
 
7107
  # Extract the first word of "ar", so it can be a program name with args.
 
7108
set dummy ar; ac_word=$2
 
7109
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7110
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7111
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
7112
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7113
else
 
7114
  if test -n "$ac_ct_AR"; then
 
7115
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
7116
else
 
7117
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7118
for as_dir in $PATH
 
7119
do
 
7120
  IFS=$as_save_IFS
 
7121
  test -z "$as_dir" && as_dir=.
 
7122
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7123
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7124
    ac_cv_prog_ac_ct_AR="ar"
 
7125
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7126
    break 2
 
7127
  fi
 
7128
done
 
7129
done
 
7130
IFS=$as_save_IFS
 
7131
 
 
7132
fi
 
7133
fi
 
7134
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
7135
if test -n "$ac_ct_AR"; then
 
7136
  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
7137
echo "${ECHO_T}$ac_ct_AR" >&6; }
 
7138
else
 
7139
  { echo "$as_me:$LINENO: result: no" >&5
 
7140
echo "${ECHO_T}no" >&6; }
 
7141
fi
 
7142
 
 
7143
  if test "x$ac_ct_AR" = x; then
 
7144
    AR="false"
 
7145
  else
 
7146
    case $cross_compiling:$ac_tool_warned in
 
7147
yes:)
 
7148
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
7149
whose name does not start with the host triplet.  If you think this
 
7150
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
7151
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
7152
whose name does not start with the host triplet.  If you think this
 
7153
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
7154
ac_tool_warned=yes ;;
 
7155
esac
 
7156
    AR=$ac_ct_AR
 
7157
  fi
 
7158
else
 
7159
  AR="$ac_cv_prog_AR"
 
7160
fi
 
7161
 
 
7162
if test -n "$ac_tool_prefix"; then
 
7163
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
7164
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
7165
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7166
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7167
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
7168
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7169
else
 
7170
  if test -n "$RANLIB"; then
 
7171
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
7172
else
 
7173
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7174
for as_dir in $PATH
 
7175
do
 
7176
  IFS=$as_save_IFS
 
7177
  test -z "$as_dir" && as_dir=.
 
7178
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7179
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7180
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
7181
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7182
    break 2
 
7183
  fi
 
7184
done
 
7185
done
 
7186
IFS=$as_save_IFS
 
7187
 
 
7188
fi
 
7189
fi
 
7190
RANLIB=$ac_cv_prog_RANLIB
 
7191
if test -n "$RANLIB"; then
 
7192
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
 
7193
echo "${ECHO_T}$RANLIB" >&6; }
 
7194
else
 
7195
  { echo "$as_me:$LINENO: result: no" >&5
 
7196
echo "${ECHO_T}no" >&6; }
 
7197
fi
 
7198
 
 
7199
 
 
7200
fi
 
7201
if test -z "$ac_cv_prog_RANLIB"; then
 
7202
  ac_ct_RANLIB=$RANLIB
 
7203
  # Extract the first word of "ranlib", so it can be a program name with args.
 
7204
set dummy ranlib; ac_word=$2
 
7205
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7206
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7207
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
7208
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7209
else
 
7210
  if test -n "$ac_ct_RANLIB"; then
 
7211
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
7212
else
 
7213
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7214
for as_dir in $PATH
 
7215
do
 
7216
  IFS=$as_save_IFS
 
7217
  test -z "$as_dir" && as_dir=.
 
7218
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7219
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7220
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
7221
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7222
    break 2
 
7223
  fi
 
7224
done
 
7225
done
 
7226
IFS=$as_save_IFS
 
7227
 
 
7228
fi
 
7229
fi
 
7230
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
7231
if test -n "$ac_ct_RANLIB"; then
 
7232
  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
7233
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
 
7234
else
 
7235
  { echo "$as_me:$LINENO: result: no" >&5
 
7236
echo "${ECHO_T}no" >&6; }
 
7237
fi
 
7238
 
 
7239
  if test "x$ac_ct_RANLIB" = x; then
 
7240
    RANLIB=":"
 
7241
  else
 
7242
    case $cross_compiling:$ac_tool_warned in
 
7243
yes:)
 
7244
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
7245
whose name does not start with the host triplet.  If you think this
 
7246
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
7247
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
7248
whose name does not start with the host triplet.  If you think this
 
7249
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
7250
ac_tool_warned=yes ;;
 
7251
esac
 
7252
    RANLIB=$ac_ct_RANLIB
 
7253
  fi
 
7254
else
 
7255
  RANLIB="$ac_cv_prog_RANLIB"
 
7256
fi
 
7257
 
 
7258
if test -n "$ac_tool_prefix"; then
 
7259
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
7260
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
7261
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7262
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7263
if test "${ac_cv_prog_STRIP+set}" = set; then
 
7264
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7265
else
 
7266
  if test -n "$STRIP"; then
 
7267
  ac_cv_prog_STRIP="$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_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7276
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
7277
    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
STRIP=$ac_cv_prog_STRIP
 
7287
if test -n "$STRIP"; then
 
7288
  { echo "$as_me:$LINENO: result: $STRIP" >&5
 
7289
echo "${ECHO_T}$STRIP" >&6; }
 
7290
else
 
7291
  { echo "$as_me:$LINENO: result: no" >&5
 
7292
echo "${ECHO_T}no" >&6; }
 
7293
fi
 
7294
 
 
7295
 
 
7296
fi
 
7297
if test -z "$ac_cv_prog_STRIP"; then
 
7298
  ac_ct_STRIP=$STRIP
 
7299
  # Extract the first word of "strip", so it can be a program name with args.
 
7300
set dummy strip; ac_word=$2
 
7301
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7302
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7303
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
7304
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7305
else
 
7306
  if test -n "$ac_ct_STRIP"; then
 
7307
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
7308
else
 
7309
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7310
for as_dir in $PATH
 
7311
do
 
7312
  IFS=$as_save_IFS
 
7313
  test -z "$as_dir" && as_dir=.
 
7314
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7315
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7316
    ac_cv_prog_ac_ct_STRIP="strip"
 
7317
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7318
    break 2
 
7319
  fi
 
7320
done
 
7321
done
 
7322
IFS=$as_save_IFS
 
7323
 
 
7324
fi
 
7325
fi
 
7326
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
7327
if test -n "$ac_ct_STRIP"; then
 
7328
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
7329
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
 
7330
else
 
7331
  { echo "$as_me:$LINENO: result: no" >&5
 
7332
echo "${ECHO_T}no" >&6; }
 
7333
fi
 
7334
 
 
7335
  if test "x$ac_ct_STRIP" = x; then
 
7336
    STRIP=":"
 
7337
  else
 
7338
    case $cross_compiling:$ac_tool_warned in
 
7339
yes:)
 
7340
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
7341
whose name does not start with the host triplet.  If you think this
 
7342
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
7343
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
7344
whose name does not start with the host triplet.  If you think this
 
7345
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
7346
ac_tool_warned=yes ;;
 
7347
esac
 
7348
    STRIP=$ac_ct_STRIP
 
7349
  fi
 
7350
else
 
7351
  STRIP="$ac_cv_prog_STRIP"
 
7352
fi
 
7353
 
 
7354
 
 
7355
old_CC="$CC"
 
7356
old_CFLAGS="$CFLAGS"
 
7357
 
 
7358
# Set sane defaults for various variables
 
7359
test -z "$AR" && AR=ar
 
7360
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
7361
test -z "$AS" && AS=as
 
7362
test -z "$CC" && CC=cc
 
7363
test -z "$LTCC" && LTCC=$CC
 
7364
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
7365
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
7366
test -z "$LD" && LD=ld
 
7367
test -z "$LN_S" && LN_S="ln -s"
 
7368
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
7369
test -z "$NM" && NM=nm
 
7370
test -z "$SED" && SED=sed
 
7371
test -z "$OBJDUMP" && OBJDUMP=objdump
 
7372
test -z "$RANLIB" && RANLIB=:
 
7373
test -z "$STRIP" && STRIP=:
 
7374
test -z "$ac_objext" && ac_objext=o
 
7375
 
 
7376
# Determine commands to create old-style static archives.
 
7377
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
7378
old_postinstall_cmds='chmod 644 $oldlib'
 
7379
old_postuninstall_cmds=
 
7380
 
 
7381
if test -n "$RANLIB"; then
 
7382
  case $host_os in
 
7383
  openbsd*)
 
7384
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
7385
    ;;
 
7386
  *)
 
7387
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
7388
    ;;
 
7389
  esac
 
7390
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
7391
fi
 
7392
 
 
7393
for cc_temp in $compiler""; do
 
7394
  case $cc_temp in
 
7395
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
7396
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
7397
    \-*) ;;
 
7398
    *) break;;
 
7399
  esac
 
7400
done
 
7401
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
7402
 
 
7403
 
 
7404
# Only perform the check for file, if the check method requires it
 
7405
case $deplibs_check_method in
 
7406
file_magic*)
 
7407
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
7408
    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
7409
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
 
7410
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
7411
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7412
else
 
7413
  case $MAGIC_CMD in
 
7414
[\\/*] |  ?:[\\/]*)
 
7415
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7416
  ;;
 
7417
*)
 
7418
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7419
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7420
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7421
  for ac_dir in $ac_dummy; do
 
7422
    IFS="$lt_save_ifs"
 
7423
    test -z "$ac_dir" && ac_dir=.
 
7424
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
7425
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
7426
      if test -n "$file_magic_test_file"; then
 
7427
        case $deplibs_check_method in
 
7428
        "file_magic "*)
 
7429
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7430
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7431
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7432
            $EGREP "$file_magic_regex" > /dev/null; then
 
7433
            :
 
7434
          else
 
7435
            cat <<EOF 1>&2
 
7436
 
 
7437
*** Warning: the command libtool uses to detect shared libraries,
 
7438
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7439
*** The result is that libtool may fail to recognize shared libraries
 
7440
*** as such.  This will affect the creation of libtool libraries that
 
7441
*** depend on shared libraries, but programs linked with such libtool
 
7442
*** libraries will work regardless of this problem.  Nevertheless, you
 
7443
*** may want to report the problem to your system manager and/or to
 
7444
*** bug-libtool@gnu.org
 
7445
 
 
7446
EOF
 
7447
          fi ;;
 
7448
        esac
 
7449
      fi
 
7450
      break
 
7451
    fi
 
7452
  done
 
7453
  IFS="$lt_save_ifs"
 
7454
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7455
  ;;
 
7456
esac
 
7457
fi
 
7458
 
 
7459
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7460
if test -n "$MAGIC_CMD"; then
 
7461
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
7462
echo "${ECHO_T}$MAGIC_CMD" >&6; }
 
7463
else
 
7464
  { echo "$as_me:$LINENO: result: no" >&5
 
7465
echo "${ECHO_T}no" >&6; }
 
7466
fi
 
7467
 
 
7468
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
7469
  if test -n "$ac_tool_prefix"; then
 
7470
    { echo "$as_me:$LINENO: checking for file" >&5
 
7471
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
 
7472
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
7473
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7474
else
 
7475
  case $MAGIC_CMD in
 
7476
[\\/*] |  ?:[\\/]*)
 
7477
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7478
  ;;
 
7479
*)
 
7480
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7481
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7482
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7483
  for ac_dir in $ac_dummy; do
 
7484
    IFS="$lt_save_ifs"
 
7485
    test -z "$ac_dir" && ac_dir=.
 
7486
    if test -f $ac_dir/file; then
 
7487
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
7488
      if test -n "$file_magic_test_file"; then
 
7489
        case $deplibs_check_method in
 
7490
        "file_magic "*)
 
7491
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7492
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7493
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7494
            $EGREP "$file_magic_regex" > /dev/null; then
 
7495
            :
 
7496
          else
 
7497
            cat <<EOF 1>&2
 
7498
 
 
7499
*** Warning: the command libtool uses to detect shared libraries,
 
7500
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7501
*** The result is that libtool may fail to recognize shared libraries
 
7502
*** as such.  This will affect the creation of libtool libraries that
 
7503
*** depend on shared libraries, but programs linked with such libtool
 
7504
*** libraries will work regardless of this problem.  Nevertheless, you
 
7505
*** may want to report the problem to your system manager and/or to
 
7506
*** bug-libtool@gnu.org
 
7507
 
 
7508
EOF
 
7509
          fi ;;
 
7510
        esac
 
7511
      fi
 
7512
      break
 
7513
    fi
 
7514
  done
 
7515
  IFS="$lt_save_ifs"
 
7516
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7517
  ;;
 
7518
esac
 
7519
fi
 
7520
 
 
7521
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7522
if test -n "$MAGIC_CMD"; then
 
7523
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
7524
echo "${ECHO_T}$MAGIC_CMD" >&6; }
 
7525
else
 
7526
  { echo "$as_me:$LINENO: result: no" >&5
 
7527
echo "${ECHO_T}no" >&6; }
 
7528
fi
 
7529
 
 
7530
  else
 
7531
    MAGIC_CMD=:
 
7532
  fi
 
7533
fi
 
7534
 
 
7535
  fi
 
7536
  ;;
 
7537
esac
 
7538
 
 
7539
enable_dlopen=no
 
7540
enable_win32_dll=no
 
7541
 
 
7542
# Check whether --enable-libtool-lock was given.
 
7543
if test "${enable_libtool_lock+set}" = set; then
 
7544
  enableval=$enable_libtool_lock;
 
7545
fi
 
7546
 
 
7547
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
7548
 
 
7549
 
 
7550
# Check whether --with-pic was given.
 
7551
if test "${with_pic+set}" = set; then
 
7552
  withval=$with_pic; pic_mode="$withval"
 
7553
else
 
7554
  pic_mode=default
 
7555
fi
 
7556
 
 
7557
test -z "$pic_mode" && pic_mode=default
 
7558
 
 
7559
# Use C for the default configuration in the libtool script
 
7560
tagname=
 
7561
lt_save_CC="$CC"
 
7562
ac_ext=c
 
7563
ac_cpp='$CPP $CPPFLAGS'
 
7564
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7565
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7566
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7567
 
 
7568
 
 
7569
# Source file extension for C test sources.
 
7570
ac_ext=c
 
7571
 
 
7572
# Object file extension for compiled C test sources.
 
7573
objext=o
 
7574
objext=$objext
 
7575
 
 
7576
# Code to be used in simple compile tests
 
7577
lt_simple_compile_test_code="int some_variable = 0;\n"
 
7578
 
 
7579
# Code to be used in simple link tests
 
7580
lt_simple_link_test_code='int main(){return(0);}\n'
 
7581
 
 
7582
 
 
7583
# If no C compiler was specified, use CC.
 
7584
LTCC=${LTCC-"$CC"}
 
7585
 
 
7586
# If no C compiler flags were specified, use CFLAGS.
 
7587
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
7588
 
 
7589
# Allow CC to be a program name with arguments.
 
7590
compiler=$CC
 
7591
 
 
7592
 
 
7593
# save warnings/boilerplate of simple test code
 
7594
ac_outfile=conftest.$ac_objext
 
7595
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
7596
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7597
_lt_compiler_boilerplate=`cat conftest.err`
 
7598
$rm conftest*
 
7599
 
 
7600
ac_outfile=conftest.$ac_objext
 
7601
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
7602
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7603
_lt_linker_boilerplate=`cat conftest.err`
 
7604
$rm conftest*
 
7605
 
 
7606
 
 
7607
 
 
7608
lt_prog_compiler_no_builtin_flag=
 
7609
 
 
7610
if test "$GCC" = yes; then
 
7611
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
7612
 
 
7613
 
 
7614
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
7615
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
 
7616
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
7617
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7618
else
 
7619
  lt_cv_prog_compiler_rtti_exceptions=no
 
7620
  ac_outfile=conftest.$ac_objext
 
7621
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7622
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
7623
   # Insert the option either (1) after the last *FLAGS variable, or
 
7624
   # (2) before a word containing "conftest.", or (3) at the end.
 
7625
   # Note that $ac_compile itself does not contain backslashes and begins
 
7626
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7627
   # The option is referenced via a variable to avoid confusing sed.
 
7628
   lt_compile=`echo "$ac_compile" | $SED \
 
7629
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7630
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7631
   -e 's:$: $lt_compiler_flag:'`
 
7632
   (eval echo "\"\$as_me:7632: $lt_compile\"" >&5)
 
7633
   (eval "$lt_compile" 2>conftest.err)
 
7634
   ac_status=$?
 
7635
   cat conftest.err >&5
 
7636
   echo "$as_me:7636: \$? = $ac_status" >&5
 
7637
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
7638
     # The compiler can only warn and ignore the option if not recognized
 
7639
     # So say no if there are warnings other than the usual output.
 
7640
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
7641
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7642
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
7643
       lt_cv_prog_compiler_rtti_exceptions=yes
 
7644
     fi
 
7645
   fi
 
7646
   $rm conftest*
 
7647
 
 
7648
fi
 
7649
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
7650
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
7651
 
 
7652
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
7653
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
7654
else
 
7655
    :
 
7656
fi
 
7657
 
 
7658
fi
 
7659
 
 
7660
lt_prog_compiler_wl=
 
7661
lt_prog_compiler_pic=
 
7662
lt_prog_compiler_static=
 
7663
 
 
7664
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
7665
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
7666
 
 
7667
  if test "$GCC" = yes; then
 
7668
    lt_prog_compiler_wl='-Wl,'
 
7669
    lt_prog_compiler_static='-static'
 
7670
 
 
7671
    case $host_os in
 
7672
      aix*)
 
7673
      # All AIX code is PIC.
 
7674
      if test "$host_cpu" = ia64; then
 
7675
        # AIX 5 now supports IA64 processor
 
7676
        lt_prog_compiler_static='-Bstatic'
 
7677
      fi
 
7678
      ;;
 
7679
 
 
7680
    amigaos*)
 
7681
      # FIXME: we need at least 68020 code to build shared libraries, but
 
7682
      # adding the `-m68020' flag to GCC prevents building anything better,
 
7683
      # like `-m68040'.
 
7684
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
7685
      ;;
 
7686
 
 
7687
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
7688
      # PIC is the default for these OSes.
 
7689
      ;;
 
7690
 
 
7691
    mingw* | pw32* | os2*)
 
7692
      # This hack is so that the source file can tell whether it is being
 
7693
      # built for inclusion in a dll (and should export symbols for example).
 
7694
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
7695
      ;;
 
7696
 
 
7697
    darwin* | rhapsody*)
 
7698
      # PIC is the default on this platform
 
7699
      # Common symbols not allowed in MH_DYLIB files
 
7700
      lt_prog_compiler_pic='-fno-common'
 
7701
      ;;
 
7702
 
 
7703
    interix3*)
 
7704
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
7705
      # Instead, we relocate shared libraries at runtime.
 
7706
      ;;
 
7707
 
 
7708
    msdosdjgpp*)
 
7709
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
7710
      # on systems that don't support them.
 
7711
      lt_prog_compiler_can_build_shared=no
 
7712
      enable_shared=no
 
7713
      ;;
 
7714
 
 
7715
    sysv4*MP*)
 
7716
      if test -d /usr/nec; then
 
7717
        lt_prog_compiler_pic=-Kconform_pic
 
7718
      fi
 
7719
      ;;
 
7720
 
 
7721
    hpux*)
 
7722
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
7723
      # not for PA HP-UX.
 
7724
      case $host_cpu in
 
7725
      hppa*64*|ia64*)
 
7726
        # +Z the default
 
7727
        ;;
 
7728
      *)
 
7729
        lt_prog_compiler_pic='-fPIC'
 
7730
        ;;
 
7731
      esac
 
7732
      ;;
 
7733
 
 
7734
    *)
 
7735
      lt_prog_compiler_pic='-fPIC'
 
7736
      ;;
 
7737
    esac
 
7738
  else
 
7739
    # PORTME Check for flag to pass linker flags through the system compiler.
 
7740
    case $host_os in
 
7741
    aix*)
 
7742
      lt_prog_compiler_wl='-Wl,'
 
7743
      if test "$host_cpu" = ia64; then
 
7744
        # AIX 5 now supports IA64 processor
 
7745
        lt_prog_compiler_static='-Bstatic'
 
7746
      else
 
7747
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
7748
      fi
 
7749
      ;;
 
7750
      darwin*)
 
7751
        # PIC is the default on this platform
 
7752
        # Common symbols not allowed in MH_DYLIB files
 
7753
       case $cc_basename in
 
7754
         xlc*)
 
7755
         lt_prog_compiler_pic='-qnocommon'
 
7756
         lt_prog_compiler_wl='-Wl,'
 
7757
         ;;
 
7758
       esac
 
7759
       ;;
 
7760
 
 
7761
    mingw* | pw32* | os2*)
 
7762
      # This hack is so that the source file can tell whether it is being
 
7763
      # built for inclusion in a dll (and should export symbols for example).
 
7764
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
7765
      ;;
 
7766
 
 
7767
    hpux9* | hpux10* | hpux11*)
 
7768
      lt_prog_compiler_wl='-Wl,'
 
7769
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
7770
      # not for PA HP-UX.
 
7771
      case $host_cpu in
 
7772
      hppa*64*|ia64*)
 
7773
        # +Z the default
 
7774
        ;;
 
7775
      *)
 
7776
        lt_prog_compiler_pic='+Z'
 
7777
        ;;
 
7778
      esac
 
7779
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
7780
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
7781
      ;;
 
7782
 
 
7783
    irix5* | irix6* | nonstopux*)
 
7784
      lt_prog_compiler_wl='-Wl,'
 
7785
      # PIC (with -KPIC) is the default.
 
7786
      lt_prog_compiler_static='-non_shared'
 
7787
      ;;
 
7788
 
 
7789
    newsos6)
 
7790
      lt_prog_compiler_pic='-KPIC'
 
7791
      lt_prog_compiler_static='-Bstatic'
 
7792
      ;;
 
7793
 
 
7794
    linux* | k*bsd*-gnu)
 
7795
      case $cc_basename in
 
7796
      icc* | ecc*)
 
7797
        lt_prog_compiler_wl='-Wl,'
 
7798
        lt_prog_compiler_pic='-KPIC'
 
7799
        lt_prog_compiler_static='-static'
 
7800
        ;;
 
7801
      pgcc* | pgf77* | pgf90* | pgf95*)
 
7802
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
7803
        # which looks to be a dead project)
 
7804
        lt_prog_compiler_wl='-Wl,'
 
7805
        lt_prog_compiler_pic='-fpic'
 
7806
        lt_prog_compiler_static='-Bstatic'
 
7807
        ;;
 
7808
      ccc*)
 
7809
        lt_prog_compiler_wl='-Wl,'
 
7810
        # All Alpha code is PIC.
 
7811
        lt_prog_compiler_static='-non_shared'
 
7812
        ;;
 
7813
      esac
 
7814
      ;;
 
7815
 
 
7816
    osf3* | osf4* | osf5*)
 
7817
      lt_prog_compiler_wl='-Wl,'
 
7818
      # All OSF/1 code is PIC.
 
7819
      lt_prog_compiler_static='-non_shared'
 
7820
      ;;
 
7821
 
 
7822
    solaris*)
 
7823
      lt_prog_compiler_pic='-KPIC'
 
7824
      lt_prog_compiler_static='-Bstatic'
 
7825
      case $cc_basename in
 
7826
      f77* | f90* | f95*)
 
7827
        lt_prog_compiler_wl='-Qoption ld ';;
 
7828
      *)
 
7829
        lt_prog_compiler_wl='-Wl,';;
 
7830
      esac
 
7831
      ;;
 
7832
 
 
7833
    sunos4*)
 
7834
      lt_prog_compiler_wl='-Qoption ld '
 
7835
      lt_prog_compiler_pic='-PIC'
 
7836
      lt_prog_compiler_static='-Bstatic'
 
7837
      ;;
 
7838
 
 
7839
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
7840
      lt_prog_compiler_wl='-Wl,'
 
7841
      lt_prog_compiler_pic='-KPIC'
 
7842
      lt_prog_compiler_static='-Bstatic'
 
7843
      ;;
 
7844
 
 
7845
    sysv4*MP*)
 
7846
      if test -d /usr/nec ;then
 
7847
        lt_prog_compiler_pic='-Kconform_pic'
 
7848
        lt_prog_compiler_static='-Bstatic'
 
7849
      fi
 
7850
      ;;
 
7851
 
 
7852
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
7853
      lt_prog_compiler_wl='-Wl,'
 
7854
      lt_prog_compiler_pic='-KPIC'
 
7855
      lt_prog_compiler_static='-Bstatic'
 
7856
      ;;
 
7857
 
 
7858
    unicos*)
 
7859
      lt_prog_compiler_wl='-Wl,'
 
7860
      lt_prog_compiler_can_build_shared=no
 
7861
      ;;
 
7862
 
 
7863
    uts4*)
 
7864
      lt_prog_compiler_pic='-pic'
 
7865
      lt_prog_compiler_static='-Bstatic'
 
7866
      ;;
 
7867
 
 
7868
    *)
 
7869
      lt_prog_compiler_can_build_shared=no
 
7870
      ;;
 
7871
    esac
 
7872
  fi
 
7873
 
 
7874
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
7875
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
 
7876
 
 
7877
#
 
7878
# Check to make sure the PIC flag actually works.
 
7879
#
 
7880
if test -n "$lt_prog_compiler_pic"; then
 
7881
 
 
7882
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
7883
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
 
7884
if test "${lt_prog_compiler_pic_works+set}" = set; then
 
7885
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7886
else
 
7887
  lt_prog_compiler_pic_works=no
 
7888
  ac_outfile=conftest.$ac_objext
 
7889
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7890
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
7891
   # Insert the option either (1) after the last *FLAGS variable, or
 
7892
   # (2) before a word containing "conftest.", or (3) at the end.
 
7893
   # Note that $ac_compile itself does not contain backslashes and begins
 
7894
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7895
   # The option is referenced via a variable to avoid confusing sed.
 
7896
   lt_compile=`echo "$ac_compile" | $SED \
 
7897
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7898
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7899
   -e 's:$: $lt_compiler_flag:'`
 
7900
   (eval echo "\"\$as_me:7900: $lt_compile\"" >&5)
 
7901
   (eval "$lt_compile" 2>conftest.err)
 
7902
   ac_status=$?
 
7903
   cat conftest.err >&5
 
7904
   echo "$as_me:7904: \$? = $ac_status" >&5
 
7905
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
7906
     # The compiler can only warn and ignore the option if not recognized
 
7907
     # So say no if there are warnings other than the usual output.
 
7908
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
7909
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7910
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
7911
       lt_prog_compiler_pic_works=yes
 
7912
     fi
 
7913
   fi
 
7914
   $rm conftest*
 
7915
 
 
7916
fi
 
7917
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
 
7918
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
 
7919
 
 
7920
if test x"$lt_prog_compiler_pic_works" = xyes; then
 
7921
    case $lt_prog_compiler_pic in
 
7922
     "" | " "*) ;;
 
7923
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
7924
     esac
 
7925
else
 
7926
    lt_prog_compiler_pic=
 
7927
     lt_prog_compiler_can_build_shared=no
 
7928
fi
 
7929
 
 
7930
fi
 
7931
case $host_os in
 
7932
  # For platforms which do not support PIC, -DPIC is meaningless:
 
7933
  *djgpp*)
 
7934
    lt_prog_compiler_pic=
 
7935
    ;;
 
7936
  *)
 
7937
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
7938
    ;;
 
7939
esac
 
7940
 
 
7941
#
 
7942
# Check to make sure the static flag actually works.
 
7943
#
 
7944
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
7945
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
7946
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
7947
if test "${lt_prog_compiler_static_works+set}" = set; then
 
7948
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7949
else
 
7950
  lt_prog_compiler_static_works=no
 
7951
   save_LDFLAGS="$LDFLAGS"
 
7952
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
7953
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
7954
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
7955
     # The linker can only warn and ignore the option if not recognized
 
7956
     # So say no if there are warnings
 
7957
     if test -s conftest.err; then
 
7958
       # Append any errors to the config.log.
 
7959
       cat conftest.err 1>&5
 
7960
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
7961
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7962
       if diff conftest.exp conftest.er2 >/dev/null; then
 
7963
         lt_prog_compiler_static_works=yes
 
7964
       fi
 
7965
     else
 
7966
       lt_prog_compiler_static_works=yes
 
7967
     fi
 
7968
   fi
 
7969
   $rm conftest*
 
7970
   LDFLAGS="$save_LDFLAGS"
 
7971
 
 
7972
fi
 
7973
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
 
7974
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
 
7975
 
 
7976
if test x"$lt_prog_compiler_static_works" = xyes; then
 
7977
    :
 
7978
else
 
7979
    lt_prog_compiler_static=
 
7980
fi
 
7981
 
 
7982
 
 
7983
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
7984
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
7985
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
7986
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7987
else
 
7988
  lt_cv_prog_compiler_c_o=no
 
7989
   $rm -r conftest 2>/dev/null
 
7990
   mkdir conftest
 
7991
   cd conftest
 
7992
   mkdir out
 
7993
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7994
 
 
7995
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
7996
   # Insert the option either (1) after the last *FLAGS variable, or
 
7997
   # (2) before a word containing "conftest.", or (3) at the end.
 
7998
   # Note that $ac_compile itself does not contain backslashes and begins
 
7999
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8000
   lt_compile=`echo "$ac_compile" | $SED \
 
8001
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
8002
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8003
   -e 's:$: $lt_compiler_flag:'`
 
8004
   (eval echo "\"\$as_me:8004: $lt_compile\"" >&5)
 
8005
   (eval "$lt_compile" 2>out/conftest.err)
 
8006
   ac_status=$?
 
8007
   cat out/conftest.err >&5
 
8008
   echo "$as_me:8008: \$? = $ac_status" >&5
 
8009
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
8010
   then
 
8011
     # The compiler can only warn and ignore the option if not recognized
 
8012
     # So say no if there are warnings
 
8013
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
8014
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
8015
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
8016
       lt_cv_prog_compiler_c_o=yes
 
8017
     fi
 
8018
   fi
 
8019
   chmod u+w . 2>&5
 
8020
   $rm conftest*
 
8021
   # SGI C++ compiler will create directory out/ii_files/ for
 
8022
   # template instantiation
 
8023
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
8024
   $rm out/* && rmdir out
 
8025
   cd ..
 
8026
   rmdir conftest
 
8027
   $rm conftest*
 
8028
 
 
8029
fi
 
8030
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
8031
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
 
8032
 
 
8033
 
 
8034
hard_links="nottested"
 
8035
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
8036
  # do not overwrite the value of need_locks provided by the user
 
8037
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
8038
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
8039
  hard_links=yes
 
8040
  $rm conftest*
 
8041
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
8042
  touch conftest.a
 
8043
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
8044
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
8045
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
8046
echo "${ECHO_T}$hard_links" >&6; }
 
8047
  if test "$hard_links" = no; then
 
8048
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
8049
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
8050
    need_locks=warn
 
8051
  fi
 
8052
else
 
8053
  need_locks=no
 
8054
fi
 
8055
 
 
8056
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
8057
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
8058
 
 
8059
  runpath_var=
 
8060
  allow_undefined_flag=
 
8061
  enable_shared_with_static_runtimes=no
 
8062
  archive_cmds=
 
8063
  archive_expsym_cmds=
 
8064
  old_archive_From_new_cmds=
 
8065
  old_archive_from_expsyms_cmds=
 
8066
  export_dynamic_flag_spec=
 
8067
  whole_archive_flag_spec=
 
8068
  thread_safe_flag_spec=
 
8069
  hardcode_libdir_flag_spec=
 
8070
  hardcode_libdir_flag_spec_ld=
 
8071
  hardcode_libdir_separator=
 
8072
  hardcode_direct=no
 
8073
  hardcode_minus_L=no
 
8074
  hardcode_shlibpath_var=unsupported
 
8075
  link_all_deplibs=unknown
 
8076
  hardcode_automatic=no
 
8077
  module_cmds=
 
8078
  module_expsym_cmds=
 
8079
  always_export_symbols=no
 
8080
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
8081
  # include_expsyms should be a list of space-separated symbols to be *always*
 
8082
  # included in the symbol list
 
8083
  include_expsyms=
 
8084
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
8085
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
8086
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
8087
  # as well as any symbol that contains `d'.
 
8088
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 
8089
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
8090
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
8091
  # the symbol is explicitly referenced.  Since portable code cannot
 
8092
  # rely on this symbol name, it's probably fine to never include it in
 
8093
  # preloaded symbol tables.
 
8094
  extract_expsyms_cmds=
 
8095
  # Just being paranoid about ensuring that cc_basename is set.
 
8096
  for cc_temp in $compiler""; do
 
8097
  case $cc_temp in
 
8098
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
8099
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
8100
    \-*) ;;
 
8101
    *) break;;
 
8102
  esac
 
8103
done
 
8104
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
8105
 
 
8106
  case $host_os in
 
8107
  cygwin* | mingw* | pw32*)
 
8108
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
8109
    # When not using gcc, we currently assume that we are using
 
8110
    # Microsoft Visual C++.
 
8111
    if test "$GCC" != yes; then
 
8112
      with_gnu_ld=no
 
8113
    fi
 
8114
    ;;
 
8115
  interix*)
 
8116
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
8117
    with_gnu_ld=yes
 
8118
    ;;
 
8119
  openbsd*)
 
8120
    with_gnu_ld=no
 
8121
    ;;
 
8122
  esac
 
8123
 
 
8124
  ld_shlibs=yes
 
8125
  if test "$with_gnu_ld" = yes; then
 
8126
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
8127
    wlarc='${wl}'
 
8128
 
 
8129
    # Set some defaults for GNU ld with shared library support. These
 
8130
    # are reset later if shared libraries are not supported. Putting them
 
8131
    # here allows them to be overridden if necessary.
 
8132
    runpath_var=LD_RUN_PATH
 
8133
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
8134
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
8135
    # ancient GNU ld didn't support --whole-archive et. al.
 
8136
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
8137
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
8138
      else
 
8139
        whole_archive_flag_spec=
 
8140
    fi
 
8141
    supports_anon_versioning=no
 
8142
    case `$LD -v 2>/dev/null` in
 
8143
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
8144
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
8145
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
8146
      *\ 2.11.*) ;; # other 2.11 versions
 
8147
      *) supports_anon_versioning=yes ;;
 
8148
    esac
 
8149
 
 
8150
    # See if GNU ld supports shared libraries.
 
8151
    case $host_os in
 
8152
    aix3* | aix4* | aix5*)
 
8153
      # On AIX/PPC, the GNU linker is very broken
 
8154
      if test "$host_cpu" != ia64; then
 
8155
        ld_shlibs=no
 
8156
        cat <<EOF 1>&2
 
8157
 
 
8158
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
8159
*** to be unable to reliably create shared libraries on AIX.
 
8160
*** Therefore, libtool is disabling shared libraries support.  If you
 
8161
*** really care for shared libraries, you may want to modify your PATH
 
8162
*** so that a non-GNU linker is found, and then restart.
 
8163
 
 
8164
EOF
 
8165
      fi
 
8166
      ;;
 
8167
 
 
8168
    amigaos*)
 
8169
      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)'
 
8170
      hardcode_libdir_flag_spec='-L$libdir'
 
8171
      hardcode_minus_L=yes
 
8172
 
 
8173
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
8174
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
8175
      # to version 4, is to share data among multiple programs linked
 
8176
      # with the same dynamic library.  Since this doesn't match the
 
8177
      # behavior of shared libraries on other platforms, we can't use
 
8178
      # them.
 
8179
      ld_shlibs=no
 
8180
      ;;
 
8181
 
 
8182
    beos*)
 
8183
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8184
        allow_undefined_flag=unsupported
 
8185
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
8186
        # support --undefined.  This deserves some investigation.  FIXME
 
8187
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8188
      else
 
8189
        ld_shlibs=no
 
8190
      fi
 
8191
      ;;
 
8192
 
 
8193
    cygwin* | mingw* | pw32*)
 
8194
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
8195
      # as there is no search path for DLLs.
 
8196
      hardcode_libdir_flag_spec='-L$libdir'
 
8197
      allow_undefined_flag=unsupported
 
8198
      always_export_symbols=no
 
8199
      enable_shared_with_static_runtimes=yes
 
8200
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
8201
 
 
8202
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
8203
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
8204
        # If the export-symbols file already is a .def file (1st line
 
8205
        # is EXPORTS), use it as is; otherwise, prepend...
 
8206
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
8207
          cp $export_symbols $output_objdir/$soname.def;
 
8208
        else
 
8209
          echo EXPORTS > $output_objdir/$soname.def;
 
8210
          cat $export_symbols >> $output_objdir/$soname.def;
 
8211
        fi~
 
8212
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
8213
      else
 
8214
        ld_shlibs=no
 
8215
      fi
 
8216
      ;;
 
8217
 
 
8218
    interix3*)
 
8219
      hardcode_direct=no
 
8220
      hardcode_shlibpath_var=no
 
8221
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8222
      export_dynamic_flag_spec='${wl}-E'
 
8223
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
8224
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
8225
      # default) and relocated if they conflict, which is a slow very memory
 
8226
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
8227
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
8228
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
8229
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
8230
      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'
 
8231
      ;;
 
8232
 
 
8233
    linux* | k*bsd*-gnu)
 
8234
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8235
        tmp_addflag=
 
8236
        case $cc_basename,$host_cpu in
 
8237
        pgcc*)                          # Portland Group C compiler
 
8238
          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'
 
8239
          tmp_addflag=' $pic_flag'
 
8240
          ;;
 
8241
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
8242
          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'
 
8243
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
8244
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
8245
          tmp_addflag=' -i_dynamic' ;;
 
8246
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
8247
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
8248
        ifc* | ifort*)                  # Intel Fortran compiler
 
8249
          tmp_addflag=' -nofor_main' ;;
 
8250
        esac
 
8251
        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8252
 
 
8253
        if test $supports_anon_versioning = yes; then
 
8254
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
8255
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
8256
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
8257
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
8258
        fi
 
8259
        link_all_deplibs=no
 
8260
      else
 
8261
        ld_shlibs=no
 
8262
      fi
 
8263
      ;;
 
8264
 
 
8265
    netbsd* | netbsdelf*-gnu)
 
8266
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
8267
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
8268
        wlarc=
 
8269
      else
 
8270
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8271
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8272
      fi
 
8273
      ;;
 
8274
 
 
8275
    solaris*)
 
8276
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
8277
        ld_shlibs=no
 
8278
        cat <<EOF 1>&2
 
8279
 
 
8280
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
8281
*** create shared libraries on Solaris systems.  Therefore, libtool
 
8282
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
8283
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
8284
*** your PATH or compiler configuration so that the native linker is
 
8285
*** used, and then restart.
 
8286
 
 
8287
EOF
 
8288
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8289
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8290
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8291
      else
 
8292
        ld_shlibs=no
 
8293
      fi
 
8294
      ;;
 
8295
 
 
8296
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
8297
      case `$LD -v 2>&1` in
 
8298
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
8299
        ld_shlibs=no
 
8300
        cat <<_LT_EOF 1>&2
 
8301
 
 
8302
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
8303
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
8304
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
8305
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
8306
*** your PATH or compiler configuration so that the native linker is
 
8307
*** used, and then restart.
 
8308
 
 
8309
_LT_EOF
 
8310
        ;;
 
8311
        *)
 
8312
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8313
            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
8314
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
8315
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
8316
          else
 
8317
            ld_shlibs=no
 
8318
          fi
 
8319
        ;;
 
8320
      esac
 
8321
      ;;
 
8322
 
 
8323
    sunos4*)
 
8324
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8325
      wlarc=
 
8326
      hardcode_direct=yes
 
8327
      hardcode_shlibpath_var=no
 
8328
      ;;
 
8329
 
 
8330
    *)
 
8331
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8332
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8333
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8334
      else
 
8335
        ld_shlibs=no
 
8336
      fi
 
8337
      ;;
 
8338
    esac
 
8339
 
 
8340
    if test "$ld_shlibs" = no; then
 
8341
      runpath_var=
 
8342
      hardcode_libdir_flag_spec=
 
8343
      export_dynamic_flag_spec=
 
8344
      whole_archive_flag_spec=
 
8345
    fi
 
8346
  else
 
8347
    # PORTME fill in a description of your system's linker (not GNU ld)
 
8348
    case $host_os in
 
8349
    aix3*)
 
8350
      allow_undefined_flag=unsupported
 
8351
      always_export_symbols=yes
 
8352
      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'
 
8353
      # Note: this linker hardcodes the directories in LIBPATH if there
 
8354
      # are no directories specified by -L.
 
8355
      hardcode_minus_L=yes
 
8356
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
8357
        # Neither direct hardcoding nor static linking is supported with a
 
8358
        # broken collect2.
 
8359
        hardcode_direct=unsupported
 
8360
      fi
 
8361
      ;;
 
8362
 
 
8363
    aix4* | aix5*)
 
8364
      if test "$host_cpu" = ia64; then
 
8365
        # On IA64, the linker does run time linking by default, so we don't
 
8366
        # have to do anything special.
 
8367
        aix_use_runtimelinking=no
 
8368
        exp_sym_flag='-Bexport'
 
8369
        no_entry_flag=""
 
8370
      else
 
8371
        # If we're using GNU nm, then we don't want the "-C" option.
 
8372
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
8373
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
8374
          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'
 
8375
        else
 
8376
          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'
 
8377
        fi
 
8378
        aix_use_runtimelinking=no
 
8379
 
 
8380
        # Test if we are trying to use run time linking or normal
 
8381
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
8382
        # need to do runtime linking.
 
8383
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
8384
          for ld_flag in $LDFLAGS; do
 
8385
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
8386
            aix_use_runtimelinking=yes
 
8387
            break
 
8388
          fi
 
8389
          done
 
8390
          ;;
 
8391
        esac
 
8392
 
 
8393
        exp_sym_flag='-bexport'
 
8394
        no_entry_flag='-bnoentry'
 
8395
      fi
 
8396
 
 
8397
      # When large executables or shared objects are built, AIX ld can
 
8398
      # have problems creating the table of contents.  If linking a library
 
8399
      # or program results in "error TOC overflow" add -mminimal-toc to
 
8400
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
8401
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
8402
 
 
8403
      archive_cmds=''
 
8404
      hardcode_direct=yes
 
8405
      hardcode_libdir_separator=':'
 
8406
      link_all_deplibs=yes
 
8407
 
 
8408
      if test "$GCC" = yes; then
 
8409
        case $host_os in aix4.[012]|aix4.[012].*)
 
8410
        # We only want to do this on AIX 4.2 and lower, the check
 
8411
        # below for broken collect2 doesn't work under 4.3+
 
8412
          collect2name=`${CC} -print-prog-name=collect2`
 
8413
          if test -f "$collect2name" && \
 
8414
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
8415
          then
 
8416
          # We have reworked collect2
 
8417
          hardcode_direct=yes
 
8418
          else
 
8419
          # We have old collect2
 
8420
          hardcode_direct=unsupported
 
8421
          # It fails to find uninstalled libraries when the uninstalled
 
8422
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
8423
          # to unsupported forces relinking
 
8424
          hardcode_minus_L=yes
 
8425
          hardcode_libdir_flag_spec='-L$libdir'
 
8426
          hardcode_libdir_separator=
 
8427
          fi
 
8428
          ;;
 
8429
        esac
 
8430
        shared_flag='-shared'
 
8431
        if test "$aix_use_runtimelinking" = yes; then
 
8432
          shared_flag="$shared_flag "'${wl}-G'
 
8433
        fi
 
8434
      else
 
8435
        # not using gcc
 
8436
        if test "$host_cpu" = ia64; then
 
8437
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
8438
        # chokes on -Wl,-G. The following line is correct:
 
8439
          shared_flag='-G'
 
8440
        else
 
8441
          if test "$aix_use_runtimelinking" = yes; then
 
8442
            shared_flag='${wl}-G'
 
8443
          else
 
8444
            shared_flag='${wl}-bM:SRE'
 
8445
          fi
 
8446
        fi
 
8447
      fi
 
8448
 
 
8449
      # It seems that -bexpall does not export symbols beginning with
 
8450
      # underscore (_), so it is better to generate a list of symbols to export.
 
8451
      always_export_symbols=yes
 
8452
      if test "$aix_use_runtimelinking" = yes; then
 
8453
        # Warning - without using the other runtime loading flags (-brtl),
 
8454
        # -berok will link without error, but may produce a broken library.
 
8455
        allow_undefined_flag='-berok'
 
8456
       # Determine the default libpath from the value encoded in an empty executable.
 
8457
       cat >conftest.$ac_ext <<_ACEOF
 
8458
/* confdefs.h.  */
 
8459
_ACEOF
 
8460
cat confdefs.h >>conftest.$ac_ext
 
8461
cat >>conftest.$ac_ext <<_ACEOF
 
8462
/* end confdefs.h.  */
 
8463
 
 
8464
int
 
8465
main ()
 
8466
{
 
8467
 
 
8468
  ;
 
8469
  return 0;
 
8470
}
 
8471
_ACEOF
 
8472
rm -f conftest.$ac_objext conftest$ac_exeext
 
8473
if { (ac_try="$ac_link"
 
8474
case "(($ac_try" in
 
8475
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8476
  *) ac_try_echo=$ac_try;;
 
8477
esac
 
8478
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8479
  (eval "$ac_link") 2>conftest.er1
 
8480
  ac_status=$?
 
8481
  grep -v '^ *+' conftest.er1 >conftest.err
 
8482
  rm -f conftest.er1
 
8483
  cat conftest.err >&5
 
8484
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8485
  (exit $ac_status); } &&
 
8486
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
8487
  { (case "(($ac_try" in
 
8488
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8489
  *) ac_try_echo=$ac_try;;
 
8490
esac
 
8491
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8492
  (eval "$ac_try") 2>&5
 
8493
  ac_status=$?
 
8494
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8495
  (exit $ac_status); }; } &&
 
8496
         { ac_try='test -s conftest$ac_exeext'
 
8497
  { (case "(($ac_try" in
 
8498
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8499
  *) ac_try_echo=$ac_try;;
 
8500
esac
 
8501
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8502
  (eval "$ac_try") 2>&5
 
8503
  ac_status=$?
 
8504
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8505
  (exit $ac_status); }; }; then
 
8506
 
 
8507
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
8508
}'`
 
8509
# Check for a 64-bit object if we didn't find anything.
 
8510
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
8511
}'`; fi
 
8512
else
 
8513
  echo "$as_me: failed program was:" >&5
 
8514
sed 's/^/| /' conftest.$ac_ext >&5
 
8515
 
 
8516
 
 
8517
fi
 
8518
 
 
8519
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8520
      conftest$ac_exeext conftest.$ac_ext
 
8521
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
8522
 
 
8523
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8524
        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"
 
8525
       else
 
8526
        if test "$host_cpu" = ia64; then
 
8527
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
8528
          allow_undefined_flag="-z nodefs"
 
8529
          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"
 
8530
        else
 
8531
         # Determine the default libpath from the value encoded in an empty executable.
 
8532
         cat >conftest.$ac_ext <<_ACEOF
 
8533
/* confdefs.h.  */
 
8534
_ACEOF
 
8535
cat confdefs.h >>conftest.$ac_ext
 
8536
cat >>conftest.$ac_ext <<_ACEOF
 
8537
/* end confdefs.h.  */
 
8538
 
 
8539
int
 
8540
main ()
 
8541
{
 
8542
 
 
8543
  ;
 
8544
  return 0;
 
8545
}
 
8546
_ACEOF
 
8547
rm -f conftest.$ac_objext conftest$ac_exeext
 
8548
if { (ac_try="$ac_link"
 
8549
case "(($ac_try" in
 
8550
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8551
  *) ac_try_echo=$ac_try;;
 
8552
esac
 
8553
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8554
  (eval "$ac_link") 2>conftest.er1
 
8555
  ac_status=$?
 
8556
  grep -v '^ *+' conftest.er1 >conftest.err
 
8557
  rm -f conftest.er1
 
8558
  cat conftest.err >&5
 
8559
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8560
  (exit $ac_status); } &&
 
8561
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
8562
  { (case "(($ac_try" in
 
8563
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8564
  *) ac_try_echo=$ac_try;;
 
8565
esac
 
8566
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8567
  (eval "$ac_try") 2>&5
 
8568
  ac_status=$?
 
8569
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8570
  (exit $ac_status); }; } &&
 
8571
         { ac_try='test -s conftest$ac_exeext'
 
8572
  { (case "(($ac_try" in
 
8573
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8574
  *) ac_try_echo=$ac_try;;
 
8575
esac
 
8576
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8577
  (eval "$ac_try") 2>&5
 
8578
  ac_status=$?
 
8579
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8580
  (exit $ac_status); }; }; then
 
8581
 
 
8582
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
8583
}'`
 
8584
# Check for a 64-bit object if we didn't find anything.
 
8585
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
8586
}'`; fi
 
8587
else
 
8588
  echo "$as_me: failed program was:" >&5
 
8589
sed 's/^/| /' conftest.$ac_ext >&5
 
8590
 
 
8591
 
 
8592
fi
 
8593
 
 
8594
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8595
      conftest$ac_exeext conftest.$ac_ext
 
8596
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
8597
 
 
8598
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8599
          # Warning - without using the other run time loading flags,
 
8600
          # -berok will link without error, but may produce a broken library.
 
8601
          no_undefined_flag=' ${wl}-bernotok'
 
8602
          allow_undefined_flag=' ${wl}-berok'
 
8603
          # Exported symbols can be pulled into shared objects from archives
 
8604
          whole_archive_flag_spec='$convenience'
 
8605
          archive_cmds_need_lc=yes
 
8606
          # This is similar to how AIX traditionally builds its shared libraries.
 
8607
          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'
 
8608
        fi
 
8609
      fi
 
8610
      ;;
 
8611
 
 
8612
    amigaos*)
 
8613
      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)'
 
8614
      hardcode_libdir_flag_spec='-L$libdir'
 
8615
      hardcode_minus_L=yes
 
8616
      # see comment about different semantics on the GNU ld section
 
8617
      ld_shlibs=no
 
8618
      ;;
 
8619
 
 
8620
    bsdi[45]*)
 
8621
      export_dynamic_flag_spec=-rdynamic
 
8622
      ;;
 
8623
 
 
8624
    cygwin* | mingw* | pw32*)
 
8625
      # When not using gcc, we currently assume that we are using
 
8626
      # Microsoft Visual C++.
 
8627
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
8628
      # no search path for DLLs.
 
8629
      hardcode_libdir_flag_spec=' '
 
8630
      allow_undefined_flag=unsupported
 
8631
      # Tell ltmain to make .lib files, not .a files.
 
8632
      libext=lib
 
8633
      # Tell ltmain to make .dll files, not .so files.
 
8634
      shrext_cmds=".dll"
 
8635
      # FIXME: Setting linknames here is a bad hack.
 
8636
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
8637
      # The linker will automatically build a .lib file if we build a DLL.
 
8638
      old_archive_From_new_cmds='true'
 
8639
      # FIXME: Should let the user specify the lib program.
 
8640
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
8641
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
8642
      enable_shared_with_static_runtimes=yes
 
8643
      ;;
 
8644
 
 
8645
    darwin* | rhapsody*)
 
8646
      case $host_os in
 
8647
        rhapsody* | darwin1.[012])
 
8648
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
 
8649
         ;;
 
8650
       *) # Darwin 1.3 on
 
8651
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
8652
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
8653
         else
 
8654
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
8655
             10.[012])
 
8656
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
8657
               ;;
 
8658
             10.*)
 
8659
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
 
8660
               ;;
 
8661
           esac
 
8662
         fi
 
8663
         ;;
 
8664
      esac
 
8665
      archive_cmds_need_lc=no
 
8666
      hardcode_direct=no
 
8667
      hardcode_automatic=yes
 
8668
      hardcode_shlibpath_var=unsupported
 
8669
      whole_archive_flag_spec=''
 
8670
      link_all_deplibs=yes
 
8671
    if test "$GCC" = yes ; then
 
8672
        output_verbose_link_cmd='echo'
 
8673
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
8674
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
8675
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
8676
      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
8677
      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}'
 
8678
    else
 
8679
      case $cc_basename in
 
8680
        xlc*)
 
8681
         output_verbose_link_cmd='echo'
 
8682
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
8683
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
8684
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
8685
         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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
8686
          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}'
 
8687
          ;;
 
8688
       *)
 
8689
         ld_shlibs=no
 
8690
          ;;
 
8691
      esac
 
8692
    fi
 
8693
      ;;
 
8694
 
 
8695
    dgux*)
 
8696
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8697
      hardcode_libdir_flag_spec='-L$libdir'
 
8698
      hardcode_shlibpath_var=no
 
8699
      ;;
 
8700
 
 
8701
    freebsd1*)
 
8702
      ld_shlibs=no
 
8703
      ;;
 
8704
 
 
8705
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
8706
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
8707
    # does not break anything, and helps significantly (at the cost of a little
 
8708
    # extra space).
 
8709
    freebsd2.2*)
 
8710
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
8711
      hardcode_libdir_flag_spec='-R$libdir'
 
8712
      hardcode_direct=yes
 
8713
      hardcode_shlibpath_var=no
 
8714
      ;;
 
8715
 
 
8716
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
8717
    freebsd2*)
 
8718
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8719
      hardcode_direct=yes
 
8720
      hardcode_minus_L=yes
 
8721
      hardcode_shlibpath_var=no
 
8722
      ;;
 
8723
 
 
8724
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
8725
    freebsd* | dragonfly*)
 
8726
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
8727
      hardcode_libdir_flag_spec='-R$libdir'
 
8728
      hardcode_direct=yes
 
8729
      hardcode_shlibpath_var=no
 
8730
      ;;
 
8731
 
 
8732
    hpux9*)
 
8733
      if test "$GCC" = yes; then
 
8734
        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'
 
8735
      else
 
8736
        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'
 
8737
      fi
 
8738
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8739
      hardcode_libdir_separator=:
 
8740
      hardcode_direct=yes
 
8741
 
 
8742
      # hardcode_minus_L: Not really in the search PATH,
 
8743
      # but as the default location of the library.
 
8744
      hardcode_minus_L=yes
 
8745
      export_dynamic_flag_spec='${wl}-E'
 
8746
      ;;
 
8747
 
 
8748
    hpux10*)
 
8749
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
8750
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8751
      else
 
8752
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
8753
      fi
 
8754
      if test "$with_gnu_ld" = no; then
 
8755
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8756
        hardcode_libdir_separator=:
 
8757
 
 
8758
        hardcode_direct=yes
 
8759
        export_dynamic_flag_spec='${wl}-E'
 
8760
 
 
8761
        # hardcode_minus_L: Not really in the search PATH,
 
8762
        # but as the default location of the library.
 
8763
        hardcode_minus_L=yes
 
8764
      fi
 
8765
      ;;
 
8766
 
 
8767
    hpux11*)
 
8768
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
8769
        case $host_cpu in
 
8770
        hppa*64*)
 
8771
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8772
          ;;
 
8773
        ia64*)
 
8774
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
8775
          ;;
 
8776
        *)
 
8777
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8778
          ;;
 
8779
        esac
 
8780
      else
 
8781
        case $host_cpu in
 
8782
        hppa*64*)
 
8783
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8784
          ;;
 
8785
        ia64*)
 
8786
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
8787
          ;;
 
8788
        *)
 
8789
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8790
          ;;
 
8791
        esac
 
8792
      fi
 
8793
      if test "$with_gnu_ld" = no; then
 
8794
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8795
        hardcode_libdir_separator=:
 
8796
 
 
8797
        case $host_cpu in
 
8798
        hppa*64*|ia64*)
 
8799
          hardcode_libdir_flag_spec_ld='+b $libdir'
 
8800
          hardcode_direct=no
 
8801
          hardcode_shlibpath_var=no
 
8802
          ;;
 
8803
        *)
 
8804
          hardcode_direct=yes
 
8805
          export_dynamic_flag_spec='${wl}-E'
 
8806
 
 
8807
          # hardcode_minus_L: Not really in the search PATH,
 
8808
          # but as the default location of the library.
 
8809
          hardcode_minus_L=yes
 
8810
          ;;
 
8811
        esac
 
8812
      fi
 
8813
      ;;
 
8814
 
 
8815
    irix5* | irix6* | nonstopux*)
 
8816
      if test "$GCC" = yes; then
 
8817
        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'
 
8818
      else
 
8819
        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'
 
8820
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
8821
      fi
 
8822
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8823
      hardcode_libdir_separator=:
 
8824
      link_all_deplibs=yes
 
8825
      ;;
 
8826
 
 
8827
    netbsd* | netbsdelf*-gnu)
 
8828
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
8829
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
8830
      else
 
8831
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
8832
      fi
 
8833
      hardcode_libdir_flag_spec='-R$libdir'
 
8834
      hardcode_direct=yes
 
8835
      hardcode_shlibpath_var=no
 
8836
      ;;
 
8837
 
 
8838
    newsos6)
 
8839
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8840
      hardcode_direct=yes
 
8841
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8842
      hardcode_libdir_separator=:
 
8843
      hardcode_shlibpath_var=no
 
8844
      ;;
 
8845
 
 
8846
    openbsd*)
 
8847
      hardcode_direct=yes
 
8848
      hardcode_shlibpath_var=no
 
8849
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
8850
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
8851
        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
8852
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8853
        export_dynamic_flag_spec='${wl}-E'
 
8854
      else
 
8855
       case $host_os in
 
8856
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
8857
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8858
           hardcode_libdir_flag_spec='-R$libdir'
 
8859
           ;;
 
8860
         *)
 
8861
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
8862
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8863
           ;;
 
8864
       esac
 
8865
      fi
 
8866
      ;;
 
8867
 
 
8868
    os2*)
 
8869
      hardcode_libdir_flag_spec='-L$libdir'
 
8870
      hardcode_minus_L=yes
 
8871
      allow_undefined_flag=unsupported
 
8872
      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'
 
8873
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
8874
      ;;
 
8875
 
 
8876
    osf3*)
 
8877
      if test "$GCC" = yes; then
 
8878
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
8879
        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'
 
8880
      else
 
8881
        allow_undefined_flag=' -expect_unresolved \*'
 
8882
        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'
 
8883
      fi
 
8884
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8885
      hardcode_libdir_separator=:
 
8886
      ;;
 
8887
 
 
8888
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
8889
      if test "$GCC" = yes; then
 
8890
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
8891
        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'
 
8892
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8893
      else
 
8894
        allow_undefined_flag=' -expect_unresolved \*'
 
8895
        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'
 
8896
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
8897
        $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'
 
8898
 
 
8899
        # Both c and cxx compiler support -rpath directly
 
8900
        hardcode_libdir_flag_spec='-rpath $libdir'
 
8901
      fi
 
8902
      hardcode_libdir_separator=:
 
8903
      ;;
 
8904
 
 
8905
    solaris*)
 
8906
      no_undefined_flag=' -z text'
 
8907
      if test "$GCC" = yes; then
 
8908
        wlarc='${wl}'
 
8909
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8910
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
8911
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
8912
      else
 
8913
        wlarc=''
 
8914
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8915
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
8916
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
8917
      fi
 
8918
      hardcode_libdir_flag_spec='-R$libdir'
 
8919
      hardcode_shlibpath_var=no
 
8920
      case $host_os in
 
8921
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
8922
      *)
 
8923
        # The compiler driver will combine linker options so we
 
8924
        # cannot just pass the convience library names through
 
8925
        # without $wl, iff we do not link with $LD.
 
8926
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
8927
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
8928
        case $wlarc in
 
8929
        '')
 
8930
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
8931
        *)
 
8932
          whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
8933
        esac ;;
 
8934
      esac
 
8935
      link_all_deplibs=yes
 
8936
      ;;
 
8937
 
 
8938
    sunos4*)
 
8939
      if test "x$host_vendor" = xsequent; then
 
8940
        # Use $CC to link under sequent, because it throws in some extra .o
 
8941
        # files that make .init and .fini sections work.
 
8942
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
8943
      else
 
8944
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
8945
      fi
 
8946
      hardcode_libdir_flag_spec='-L$libdir'
 
8947
      hardcode_direct=yes
 
8948
      hardcode_minus_L=yes
 
8949
      hardcode_shlibpath_var=no
 
8950
      ;;
 
8951
 
 
8952
    sysv4)
 
8953
      case $host_vendor in
 
8954
        sni)
 
8955
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8956
          hardcode_direct=yes # is this really true???
 
8957
        ;;
 
8958
        siemens)
 
8959
          ## LD is ld it makes a PLAMLIB
 
8960
          ## CC just makes a GrossModule.
 
8961
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
8962
          reload_cmds='$CC -r -o $output$reload_objs'
 
8963
          hardcode_direct=no
 
8964
        ;;
 
8965
        motorola)
 
8966
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8967
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
8968
        ;;
 
8969
      esac
 
8970
      runpath_var='LD_RUN_PATH'
 
8971
      hardcode_shlibpath_var=no
 
8972
      ;;
 
8973
 
 
8974
    sysv4.3*)
 
8975
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8976
      hardcode_shlibpath_var=no
 
8977
      export_dynamic_flag_spec='-Bexport'
 
8978
      ;;
 
8979
 
 
8980
    sysv4*MP*)
 
8981
      if test -d /usr/nec; then
 
8982
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8983
        hardcode_shlibpath_var=no
 
8984
        runpath_var=LD_RUN_PATH
 
8985
        hardcode_runpath_var=yes
 
8986
        ld_shlibs=yes
 
8987
      fi
 
8988
      ;;
 
8989
 
 
8990
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
8991
      no_undefined_flag='${wl}-z,text'
 
8992
      archive_cmds_need_lc=no
 
8993
      hardcode_shlibpath_var=no
 
8994
      runpath_var='LD_RUN_PATH'
 
8995
 
 
8996
      if test "$GCC" = yes; then
 
8997
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8998
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8999
      else
 
9000
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9001
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9002
      fi
 
9003
      ;;
 
9004
 
 
9005
    sysv5* | sco3.2v5* | sco5v6*)
 
9006
      # Note: We can NOT use -z defs as we might desire, because we do not
 
9007
      # link with -lc, and that would cause any symbols used from libc to
 
9008
      # always be unresolved, which means just about no library would
 
9009
      # ever link correctly.  If we're not using GNU ld we use -z text
 
9010
      # though, which does catch some bad symbols but isn't as heavy-handed
 
9011
      # as -z defs.
 
9012
      no_undefined_flag='${wl}-z,text'
 
9013
      allow_undefined_flag='${wl}-z,nodefs'
 
9014
      archive_cmds_need_lc=no
 
9015
      hardcode_shlibpath_var=no
 
9016
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
9017
      hardcode_libdir_separator=':'
 
9018
      link_all_deplibs=yes
 
9019
      export_dynamic_flag_spec='${wl}-Bexport'
 
9020
      runpath_var='LD_RUN_PATH'
 
9021
 
 
9022
      if test "$GCC" = yes; then
 
9023
        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9024
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9025
      else
 
9026
        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9027
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9028
      fi
 
9029
      ;;
 
9030
 
 
9031
    uts4*)
 
9032
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9033
      hardcode_libdir_flag_spec='-L$libdir'
 
9034
      hardcode_shlibpath_var=no
 
9035
      ;;
 
9036
 
 
9037
    *)
 
9038
      ld_shlibs=no
 
9039
      ;;
 
9040
    esac
 
9041
  fi
 
9042
 
 
9043
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
9044
echo "${ECHO_T}$ld_shlibs" >&6; }
 
9045
test "$ld_shlibs" = no && can_build_shared=no
 
9046
 
 
9047
#
 
9048
# Do we need to explicitly link libc?
 
9049
#
 
9050
case "x$archive_cmds_need_lc" in
 
9051
x|xyes)
 
9052
  # Assume -lc should be added
 
9053
  archive_cmds_need_lc=yes
 
9054
 
 
9055
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
9056
    case $archive_cmds in
 
9057
    *'~'*)
 
9058
      # FIXME: we may have to deal with multi-command sequences.
 
9059
      ;;
 
9060
    '$CC '*)
 
9061
      # Test whether the compiler implicitly links with -lc since on some
 
9062
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
9063
      # to ld, don't add -lc before -lgcc.
 
9064
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
9065
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
9066
      $rm conftest*
 
9067
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9068
 
 
9069
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9070
  (eval $ac_compile) 2>&5
 
9071
  ac_status=$?
 
9072
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9073
  (exit $ac_status); } 2>conftest.err; then
 
9074
        soname=conftest
 
9075
        lib=conftest
 
9076
        libobjs=conftest.$ac_objext
 
9077
        deplibs=
 
9078
        wl=$lt_prog_compiler_wl
 
9079
        pic_flag=$lt_prog_compiler_pic
 
9080
        compiler_flags=-v
 
9081
        linker_flags=-v
 
9082
        verstring=
 
9083
        output_objdir=.
 
9084
        libname=conftest
 
9085
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
9086
        allow_undefined_flag=
 
9087
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
9088
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
9089
  ac_status=$?
 
9090
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9091
  (exit $ac_status); }
 
9092
        then
 
9093
          archive_cmds_need_lc=no
 
9094
        else
 
9095
          archive_cmds_need_lc=yes
 
9096
        fi
 
9097
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
9098
      else
 
9099
        cat conftest.err 1>&5
 
9100
      fi
 
9101
      $rm conftest*
 
9102
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
9103
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
 
9104
      ;;
 
9105
    esac
 
9106
  fi
 
9107
  ;;
 
9108
esac
 
9109
 
 
9110
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
9111
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
9112
library_names_spec=
 
9113
libname_spec='lib$name'
 
9114
soname_spec=
 
9115
shrext_cmds=".so"
 
9116
postinstall_cmds=
 
9117
postuninstall_cmds=
 
9118
finish_cmds=
 
9119
finish_eval=
 
9120
shlibpath_var=
 
9121
shlibpath_overrides_runpath=unknown
 
9122
version_type=none
 
9123
dynamic_linker="$host_os ld.so"
 
9124
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
9125
if test "$GCC" = yes; then
 
9126
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
9127
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
9128
    # if the path contains ";" then we assume it to be the separator
 
9129
    # otherwise default to the standard path separator (i.e. ":") - it is
 
9130
    # assumed that no part of a normal pathname contains ";" but that should
 
9131
    # okay in the real world where ";" in dirpaths is itself problematic.
 
9132
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
9133
  else
 
9134
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
9135
  fi
 
9136
else
 
9137
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
9138
fi
 
9139
need_lib_prefix=unknown
 
9140
hardcode_into_libs=no
 
9141
 
 
9142
# when you set need_version to no, make sure it does not cause -set_version
 
9143
# flags to be left without arguments
 
9144
need_version=unknown
 
9145
 
 
9146
case $host_os in
 
9147
aix3*)
 
9148
  version_type=linux
 
9149
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
9150
  shlibpath_var=LIBPATH
 
9151
 
 
9152
  # AIX 3 has no versioning support, so we append a major version to the name.
 
9153
  soname_spec='${libname}${release}${shared_ext}$major'
 
9154
  ;;
 
9155
 
 
9156
aix4* | aix5*)
 
9157
  version_type=linux
 
9158
  need_lib_prefix=no
 
9159
  need_version=no
 
9160
  hardcode_into_libs=yes
 
9161
  if test "$host_cpu" = ia64; then
 
9162
    # AIX 5 supports IA64
 
9163
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
9164
    shlibpath_var=LD_LIBRARY_PATH
 
9165
  else
 
9166
    # With GCC up to 2.95.x, collect2 would create an import file
 
9167
    # for dependence libraries.  The import file would start with
 
9168
    # the line `#! .'.  This would cause the generated library to
 
9169
    # depend on `.', always an invalid library.  This was fixed in
 
9170
    # development snapshots of GCC prior to 3.0.
 
9171
    case $host_os in
 
9172
      aix4 | aix4.[01] | aix4.[01].*)
 
9173
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
9174
           echo ' yes '
 
9175
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
9176
        :
 
9177
      else
 
9178
        can_build_shared=no
 
9179
      fi
 
9180
      ;;
 
9181
    esac
 
9182
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
9183
    # soname into executable. Probably we can add versioning support to
 
9184
    # collect2, so additional links can be useful in future.
 
9185
    if test "$aix_use_runtimelinking" = yes; then
 
9186
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
9187
      # instead of lib<name>.a to let people know that these are not
 
9188
      # typical AIX shared libraries.
 
9189
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9190
    else
 
9191
      # We preserve .a as extension for shared libraries through AIX4.2
 
9192
      # and later when we are not doing run time linking.
 
9193
      library_names_spec='${libname}${release}.a $libname.a'
 
9194
      soname_spec='${libname}${release}${shared_ext}$major'
 
9195
    fi
 
9196
    shlibpath_var=LIBPATH
 
9197
  fi
 
9198
  ;;
 
9199
 
 
9200
amigaos*)
 
9201
  library_names_spec='$libname.ixlibrary $libname.a'
 
9202
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
9203
  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'
 
9204
  ;;
 
9205
 
 
9206
beos*)
 
9207
  library_names_spec='${libname}${shared_ext}'
 
9208
  dynamic_linker="$host_os ld.so"
 
9209
  shlibpath_var=LIBRARY_PATH
 
9210
  ;;
 
9211
 
 
9212
bsdi[45]*)
 
9213
  version_type=linux
 
9214
  need_version=no
 
9215
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9216
  soname_spec='${libname}${release}${shared_ext}$major'
 
9217
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
9218
  shlibpath_var=LD_LIBRARY_PATH
 
9219
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
9220
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
9221
  # the default ld.so.conf also contains /usr/contrib/lib and
 
9222
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
9223
  # libtool to hard-code these into programs
 
9224
  ;;
 
9225
 
 
9226
cygwin* | mingw* | pw32*)
 
9227
  version_type=windows
 
9228
  shrext_cmds=".dll"
 
9229
  need_version=no
 
9230
  need_lib_prefix=no
 
9231
 
 
9232
  case $GCC,$host_os in
 
9233
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
9234
    library_names_spec='$libname.dll.a'
 
9235
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
9236
    postinstall_cmds='base_file=`basename \${file}`~
 
9237
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
9238
      dldir=$destdir/`dirname \$dlpath`~
 
9239
      test -d \$dldir || mkdir -p \$dldir~
 
9240
      $install_prog $dir/$dlname \$dldir/$dlname~
 
9241
      chmod a+x \$dldir/$dlname'
 
9242
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
9243
      dlpath=$dir/\$dldll~
 
9244
       $rm \$dlpath'
 
9245
    shlibpath_overrides_runpath=yes
 
9246
 
 
9247
    case $host_os in
 
9248
    cygwin*)
 
9249
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
9250
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9251
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
9252
      ;;
 
9253
    mingw*)
 
9254
      # MinGW DLLs use traditional 'lib' prefix
 
9255
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9256
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
9257
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
9258
        # It is most probably a Windows format PATH printed by
 
9259
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
9260
        # path with ; separators, and with drive letters. We can handle the
 
9261
        # drive letters (cygwin fileutils understands them), so leave them,
 
9262
        # especially as we might pass files found there to a mingw objdump,
 
9263
        # which wouldn't understand a cygwinified path. Ahh.
 
9264
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
9265
      else
 
9266
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
9267
      fi
 
9268
      ;;
 
9269
    pw32*)
 
9270
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
9271
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9272
      ;;
 
9273
    esac
 
9274
    ;;
 
9275
 
 
9276
  *)
 
9277
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
9278
    ;;
 
9279
  esac
 
9280
  dynamic_linker='Win32 ld.exe'
 
9281
  # FIXME: first we should search . and the directory the executable is in
 
9282
  shlibpath_var=PATH
 
9283
  ;;
 
9284
 
 
9285
darwin* | rhapsody*)
 
9286
  dynamic_linker="$host_os dyld"
 
9287
  version_type=darwin
 
9288
  need_lib_prefix=no
 
9289
  need_version=no
 
9290
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
9291
  soname_spec='${libname}${release}${major}$shared_ext'
 
9292
  shlibpath_overrides_runpath=yes
 
9293
  shlibpath_var=DYLD_LIBRARY_PATH
 
9294
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
9295
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
9296
  if test "$GCC" = yes; then
 
9297
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
9298
  else
 
9299
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
9300
  fi
 
9301
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
9302
  ;;
 
9303
 
 
9304
dgux*)
 
9305
  version_type=linux
 
9306
  need_lib_prefix=no
 
9307
  need_version=no
 
9308
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
9309
  soname_spec='${libname}${release}${shared_ext}$major'
 
9310
  shlibpath_var=LD_LIBRARY_PATH
 
9311
  ;;
 
9312
 
 
9313
freebsd1*)
 
9314
  dynamic_linker=no
 
9315
  ;;
 
9316
 
 
9317
freebsd* | dragonfly*)
 
9318
  # DragonFly does not have aout.  When/if they implement a new
 
9319
  # versioning mechanism, adjust this.
 
9320
  if test -x /usr/bin/objformat; then
 
9321
    objformat=`/usr/bin/objformat`
 
9322
  else
 
9323
    case $host_os in
 
9324
    freebsd[123]*) objformat=aout ;;
 
9325
    *) objformat=elf ;;
 
9326
    esac
 
9327
  fi
 
9328
  version_type=freebsd-$objformat
 
9329
  case $version_type in
 
9330
    freebsd-elf*)
 
9331
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9332
      need_version=no
 
9333
      need_lib_prefix=no
 
9334
      ;;
 
9335
    freebsd-*)
 
9336
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
9337
      need_version=yes
 
9338
      ;;
 
9339
  esac
 
9340
  shlibpath_var=LD_LIBRARY_PATH
 
9341
  case $host_os in
 
9342
  freebsd2*)
 
9343
    shlibpath_overrides_runpath=yes
 
9344
    ;;
 
9345
  freebsd3.[01]* | freebsdelf3.[01]*)
 
9346
    shlibpath_overrides_runpath=yes
 
9347
    hardcode_into_libs=yes
 
9348
    ;;
 
9349
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
9350
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
9351
    shlibpath_overrides_runpath=no
 
9352
    hardcode_into_libs=yes
 
9353
    ;;
 
9354
  freebsd*) # from 4.6 on
 
9355
    shlibpath_overrides_runpath=yes
 
9356
    hardcode_into_libs=yes
 
9357
    ;;
 
9358
  esac
 
9359
  ;;
 
9360
 
 
9361
gnu*)
 
9362
  version_type=linux
 
9363
  need_lib_prefix=no
 
9364
  need_version=no
 
9365
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
9366
  soname_spec='${libname}${release}${shared_ext}$major'
 
9367
  shlibpath_var=LD_LIBRARY_PATH
 
9368
  hardcode_into_libs=yes
 
9369
  ;;
 
9370
 
 
9371
hpux9* | hpux10* | hpux11*)
 
9372
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
9373
  # link against other versions.
 
9374
  version_type=sunos
 
9375
  need_lib_prefix=no
 
9376
  need_version=no
 
9377
  case $host_cpu in
 
9378
  ia64*)
 
9379
    shrext_cmds='.so'
 
9380
    hardcode_into_libs=yes
 
9381
    dynamic_linker="$host_os dld.so"
 
9382
    shlibpath_var=LD_LIBRARY_PATH
 
9383
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
9384
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9385
    soname_spec='${libname}${release}${shared_ext}$major'
 
9386
    if test "X$HPUX_IA64_MODE" = X32; then
 
9387
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
9388
    else
 
9389
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
9390
    fi
 
9391
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
9392
    ;;
 
9393
   hppa*64*)
 
9394
     shrext_cmds='.sl'
 
9395
     hardcode_into_libs=yes
 
9396
     dynamic_linker="$host_os dld.sl"
 
9397
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
9398
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
9399
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9400
     soname_spec='${libname}${release}${shared_ext}$major'
 
9401
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
9402
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
9403
     ;;
 
9404
   *)
 
9405
    shrext_cmds='.sl'
 
9406
    dynamic_linker="$host_os dld.sl"
 
9407
    shlibpath_var=SHLIB_PATH
 
9408
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
9409
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9410
    soname_spec='${libname}${release}${shared_ext}$major'
 
9411
    ;;
 
9412
  esac
 
9413
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
9414
  postinstall_cmds='chmod 555 $lib'
 
9415
  ;;
 
9416
 
 
9417
interix3*)
 
9418
  version_type=linux
 
9419
  need_lib_prefix=no
 
9420
  need_version=no
 
9421
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9422
  soname_spec='${libname}${release}${shared_ext}$major'
 
9423
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
9424
  shlibpath_var=LD_LIBRARY_PATH
 
9425
  shlibpath_overrides_runpath=no
 
9426
  hardcode_into_libs=yes
 
9427
  ;;
 
9428
 
 
9429
irix5* | irix6* | nonstopux*)
 
9430
  case $host_os in
 
9431
    nonstopux*) version_type=nonstopux ;;
 
9432
    *)
 
9433
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
9434
                version_type=linux
 
9435
        else
 
9436
                version_type=irix
 
9437
        fi ;;
 
9438
  esac
 
9439
  need_lib_prefix=no
 
9440
  need_version=no
 
9441
  soname_spec='${libname}${release}${shared_ext}$major'
 
9442
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9443
  case $host_os in
 
9444
  irix5* | nonstopux*)
 
9445
    libsuff= shlibsuff=
 
9446
    ;;
 
9447
  *)
 
9448
    case $LD in # libtool.m4 will add one of these switches to LD
 
9449
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
9450
      libsuff= shlibsuff= libmagic=32-bit;;
 
9451
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
9452
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
9453
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
9454
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
9455
    *) libsuff= shlibsuff= libmagic=never-match;;
 
9456
    esac
 
9457
    ;;
 
9458
  esac
 
9459
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
9460
  shlibpath_overrides_runpath=no
 
9461
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
9462
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
9463
  hardcode_into_libs=yes
 
9464
  ;;
 
9465
 
 
9466
# No shared lib support for Linux oldld, aout, or coff.
 
9467
linux*oldld* | linux*aout* | linux*coff*)
 
9468
  dynamic_linker=no
 
9469
  ;;
 
9470
 
 
9471
# This must be Linux ELF.
 
9472
linux* | k*bsd*-gnu)
 
9473
  version_type=linux
 
9474
  need_lib_prefix=no
 
9475
  need_version=no
 
9476
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9477
  soname_spec='${libname}${release}${shared_ext}$major'
 
9478
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
9479
  shlibpath_var=LD_LIBRARY_PATH
 
9480
  shlibpath_overrides_runpath=no
 
9481
  # This implies no fast_install, which is unacceptable.
 
9482
  # Some rework will be needed to allow for fast_install
 
9483
  # before this can be enabled.
 
9484
  hardcode_into_libs=yes
 
9485
 
 
9486
  # Append ld.so.conf contents to the search path
 
9487
  if test -f /etc/ld.so.conf; then
 
9488
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
9489
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
9490
  fi
 
9491
 
 
9492
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
9493
  # powerpc, because MkLinux only supported shared libraries with the
 
9494
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
9495
  # most powerpc-linux boxes support dynamic linking these days and
 
9496
  # people can always --disable-shared, the test was removed, and we
 
9497
  # assume the GNU/Linux dynamic linker is in use.
 
9498
  dynamic_linker='GNU/Linux ld.so'
 
9499
  ;;
 
9500
 
 
9501
netbsdelf*-gnu)
 
9502
  version_type=linux
 
9503
  need_lib_prefix=no
 
9504
  need_version=no
 
9505
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9506
  soname_spec='${libname}${release}${shared_ext}$major'
 
9507
  shlibpath_var=LD_LIBRARY_PATH
 
9508
  shlibpath_overrides_runpath=no
 
9509
  hardcode_into_libs=yes
 
9510
  dynamic_linker='NetBSD ld.elf_so'
 
9511
  ;;
 
9512
 
 
9513
netbsd*)
 
9514
  version_type=sunos
 
9515
  need_lib_prefix=no
 
9516
  need_version=no
 
9517
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
9518
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9519
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
9520
    dynamic_linker='NetBSD (a.out) ld.so'
 
9521
  else
 
9522
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9523
    soname_spec='${libname}${release}${shared_ext}$major'
 
9524
    dynamic_linker='NetBSD ld.elf_so'
 
9525
  fi
 
9526
  shlibpath_var=LD_LIBRARY_PATH
 
9527
  shlibpath_overrides_runpath=yes
 
9528
  hardcode_into_libs=yes
 
9529
  ;;
 
9530
 
 
9531
newsos6)
 
9532
  version_type=linux
 
9533
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9534
  shlibpath_var=LD_LIBRARY_PATH
 
9535
  shlibpath_overrides_runpath=yes
 
9536
  ;;
 
9537
 
 
9538
nto-qnx*)
 
9539
  version_type=linux
 
9540
  need_lib_prefix=no
 
9541
  need_version=no
 
9542
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9543
  soname_spec='${libname}${release}${shared_ext}$major'
 
9544
  shlibpath_var=LD_LIBRARY_PATH
 
9545
  shlibpath_overrides_runpath=yes
 
9546
  ;;
 
9547
 
 
9548
openbsd*)
 
9549
  version_type=sunos
 
9550
  sys_lib_dlsearch_path_spec="/usr/lib"
 
9551
  need_lib_prefix=no
 
9552
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
9553
  case $host_os in
 
9554
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
9555
    *)                         need_version=no  ;;
 
9556
  esac
 
9557
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9558
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
9559
  shlibpath_var=LD_LIBRARY_PATH
 
9560
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9561
    case $host_os in
 
9562
      openbsd2.[89] | openbsd2.[89].*)
 
9563
        shlibpath_overrides_runpath=no
 
9564
        ;;
 
9565
      *)
 
9566
        shlibpath_overrides_runpath=yes
 
9567
        ;;
 
9568
      esac
 
9569
  else
 
9570
    shlibpath_overrides_runpath=yes
 
9571
  fi
 
9572
  ;;
 
9573
 
 
9574
os2*)
 
9575
  libname_spec='$name'
 
9576
  shrext_cmds=".dll"
 
9577
  need_lib_prefix=no
 
9578
  library_names_spec='$libname${shared_ext} $libname.a'
 
9579
  dynamic_linker='OS/2 ld.exe'
 
9580
  shlibpath_var=LIBPATH
 
9581
  ;;
 
9582
 
 
9583
osf3* | osf4* | osf5*)
 
9584
  version_type=osf
 
9585
  need_lib_prefix=no
 
9586
  need_version=no
 
9587
  soname_spec='${libname}${release}${shared_ext}$major'
 
9588
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9589
  shlibpath_var=LD_LIBRARY_PATH
 
9590
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
9591
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
9592
  ;;
 
9593
 
 
9594
solaris*)
 
9595
  version_type=linux
 
9596
  need_lib_prefix=no
 
9597
  need_version=no
 
9598
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9599
  soname_spec='${libname}${release}${shared_ext}$major'
 
9600
  shlibpath_var=LD_LIBRARY_PATH
 
9601
  shlibpath_overrides_runpath=yes
 
9602
  hardcode_into_libs=yes
 
9603
  # ldd complains unless libraries are executable
 
9604
  postinstall_cmds='chmod +x $lib'
 
9605
  ;;
 
9606
 
 
9607
sunos4*)
 
9608
  version_type=sunos
 
9609
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9610
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
9611
  shlibpath_var=LD_LIBRARY_PATH
 
9612
  shlibpath_overrides_runpath=yes
 
9613
  if test "$with_gnu_ld" = yes; then
 
9614
    need_lib_prefix=no
 
9615
  fi
 
9616
  need_version=yes
 
9617
  ;;
 
9618
 
 
9619
sysv4 | sysv4.3*)
 
9620
  version_type=linux
 
9621
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9622
  soname_spec='${libname}${release}${shared_ext}$major'
 
9623
  shlibpath_var=LD_LIBRARY_PATH
 
9624
  case $host_vendor in
 
9625
    sni)
 
9626
      shlibpath_overrides_runpath=no
 
9627
      need_lib_prefix=no
 
9628
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
9629
      runpath_var=LD_RUN_PATH
 
9630
      ;;
 
9631
    siemens)
 
9632
      need_lib_prefix=no
 
9633
      ;;
 
9634
    motorola)
 
9635
      need_lib_prefix=no
 
9636
      need_version=no
 
9637
      shlibpath_overrides_runpath=no
 
9638
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
9639
      ;;
 
9640
  esac
 
9641
  ;;
 
9642
 
 
9643
sysv4*MP*)
 
9644
  if test -d /usr/nec ;then
 
9645
    version_type=linux
 
9646
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
9647
    soname_spec='$libname${shared_ext}.$major'
 
9648
    shlibpath_var=LD_LIBRARY_PATH
 
9649
  fi
 
9650
  ;;
 
9651
 
 
9652
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
9653
  version_type=freebsd-elf
 
9654
  need_lib_prefix=no
 
9655
  need_version=no
 
9656
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9657
  soname_spec='${libname}${release}${shared_ext}$major'
 
9658
  shlibpath_var=LD_LIBRARY_PATH
 
9659
  hardcode_into_libs=yes
 
9660
  if test "$with_gnu_ld" = yes; then
 
9661
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
9662
    shlibpath_overrides_runpath=no
 
9663
  else
 
9664
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
9665
    shlibpath_overrides_runpath=yes
 
9666
    case $host_os in
 
9667
      sco3.2v5*)
 
9668
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
9669
        ;;
 
9670
    esac
 
9671
  fi
 
9672
  sys_lib_dlsearch_path_spec='/usr/lib'
 
9673
  ;;
 
9674
 
 
9675
uts4*)
 
9676
  version_type=linux
 
9677
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9678
  soname_spec='${libname}${release}${shared_ext}$major'
 
9679
  shlibpath_var=LD_LIBRARY_PATH
 
9680
  ;;
 
9681
 
 
9682
*)
 
9683
  dynamic_linker=no
 
9684
  ;;
 
9685
esac
 
9686
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
9687
echo "${ECHO_T}$dynamic_linker" >&6; }
 
9688
test "$dynamic_linker" = no && can_build_shared=no
 
9689
 
 
9690
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
9691
if test "$GCC" = yes; then
 
9692
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
9693
fi
 
9694
 
 
9695
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
9696
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
9697
hardcode_action=
 
9698
if test -n "$hardcode_libdir_flag_spec" || \
 
9699
   test -n "$runpath_var" || \
 
9700
   test "X$hardcode_automatic" = "Xyes" ; then
 
9701
 
 
9702
  # We can hardcode non-existant directories.
 
9703
  if test "$hardcode_direct" != no &&
 
9704
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
9705
     # have to relink, otherwise we might link with an installed library
 
9706
     # when we should be linking with a yet-to-be-installed one
 
9707
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
9708
     test "$hardcode_minus_L" != no; then
 
9709
    # Linking always hardcodes the temporary library directory.
 
9710
    hardcode_action=relink
 
9711
  else
 
9712
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
9713
    hardcode_action=immediate
 
9714
  fi
 
9715
else
 
9716
  # We cannot hardcode anything, or else we can only hardcode existing
 
9717
  # directories.
 
9718
  hardcode_action=unsupported
 
9719
fi
 
9720
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
9721
echo "${ECHO_T}$hardcode_action" >&6; }
 
9722
 
 
9723
if test "$hardcode_action" = relink; then
 
9724
  # Fast installation is not supported
 
9725
  enable_fast_install=no
 
9726
elif test "$shlibpath_overrides_runpath" = yes ||
 
9727
     test "$enable_shared" = no; then
 
9728
  # Fast installation is not necessary
 
9729
  enable_fast_install=needless
 
9730
fi
 
9731
 
 
9732
striplib=
 
9733
old_striplib=
 
9734
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
9735
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
 
9736
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
9737
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
9738
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
9739
  { echo "$as_me:$LINENO: result: yes" >&5
 
9740
echo "${ECHO_T}yes" >&6; }
 
9741
else
 
9742
# FIXME - insert some real tests, host_os isn't really good enough
 
9743
  case $host_os in
 
9744
   darwin*)
 
9745
       if test -n "$STRIP" ; then
 
9746
         striplib="$STRIP -x"
 
9747
         { echo "$as_me:$LINENO: result: yes" >&5
 
9748
echo "${ECHO_T}yes" >&6; }
 
9749
       else
 
9750
  { echo "$as_me:$LINENO: result: no" >&5
 
9751
echo "${ECHO_T}no" >&6; }
 
9752
fi
 
9753
       ;;
 
9754
   *)
 
9755
  { echo "$as_me:$LINENO: result: no" >&5
 
9756
echo "${ECHO_T}no" >&6; }
 
9757
    ;;
 
9758
  esac
 
9759
fi
 
9760
 
 
9761
if test "x$enable_dlopen" != xyes; then
 
9762
  enable_dlopen=unknown
 
9763
  enable_dlopen_self=unknown
 
9764
  enable_dlopen_self_static=unknown
 
9765
else
 
9766
  lt_cv_dlopen=no
 
9767
  lt_cv_dlopen_libs=
 
9768
 
 
9769
  case $host_os in
 
9770
  beos*)
 
9771
    lt_cv_dlopen="load_add_on"
 
9772
    lt_cv_dlopen_libs=
 
9773
    lt_cv_dlopen_self=yes
 
9774
    ;;
 
9775
 
 
9776
  mingw* | pw32*)
 
9777
    lt_cv_dlopen="LoadLibrary"
 
9778
    lt_cv_dlopen_libs=
 
9779
   ;;
 
9780
 
 
9781
  cygwin*)
 
9782
    lt_cv_dlopen="dlopen"
 
9783
    lt_cv_dlopen_libs=
 
9784
   ;;
 
9785
 
 
9786
  darwin*)
 
9787
  # if libdl is installed we need to link against it
 
9788
    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
9789
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
 
9790
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
9791
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9792
else
 
9793
  ac_check_lib_save_LIBS=$LIBS
 
9794
LIBS="-ldl  $LIBS"
 
9795
cat >conftest.$ac_ext <<_ACEOF
 
9796
/* confdefs.h.  */
 
9797
_ACEOF
 
9798
cat confdefs.h >>conftest.$ac_ext
 
9799
cat >>conftest.$ac_ext <<_ACEOF
 
9800
/* end confdefs.h.  */
 
9801
 
 
9802
/* Override any GCC internal prototype to avoid an error.
 
9803
   Use char because int might match the return type of a GCC
 
9804
   builtin and then its argument prototype would still apply.  */
 
9805
#ifdef __cplusplus
 
9806
extern "C"
 
9807
#endif
 
9808
char dlopen ();
 
9809
int
 
9810
main ()
 
9811
{
 
9812
return dlopen ();
 
9813
  ;
 
9814
  return 0;
 
9815
}
 
9816
_ACEOF
 
9817
rm -f conftest.$ac_objext conftest$ac_exeext
 
9818
if { (ac_try="$ac_link"
 
9819
case "(($ac_try" in
 
9820
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9821
  *) ac_try_echo=$ac_try;;
 
9822
esac
 
9823
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9824
  (eval "$ac_link") 2>conftest.er1
 
9825
  ac_status=$?
 
9826
  grep -v '^ *+' conftest.er1 >conftest.err
 
9827
  rm -f conftest.er1
 
9828
  cat conftest.err >&5
 
9829
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9830
  (exit $ac_status); } &&
 
9831
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
9832
  { (case "(($ac_try" in
 
9833
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9834
  *) ac_try_echo=$ac_try;;
 
9835
esac
 
9836
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9837
  (eval "$ac_try") 2>&5
 
9838
  ac_status=$?
 
9839
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9840
  (exit $ac_status); }; } &&
 
9841
         { ac_try='test -s conftest$ac_exeext'
 
9842
  { (case "(($ac_try" in
 
9843
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9844
  *) ac_try_echo=$ac_try;;
 
9845
esac
 
9846
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9847
  (eval "$ac_try") 2>&5
 
9848
  ac_status=$?
 
9849
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9850
  (exit $ac_status); }; }; then
 
9851
  ac_cv_lib_dl_dlopen=yes
 
9852
else
 
9853
  echo "$as_me: failed program was:" >&5
 
9854
sed 's/^/| /' conftest.$ac_ext >&5
 
9855
 
 
9856
        ac_cv_lib_dl_dlopen=no
 
9857
fi
 
9858
 
 
9859
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9860
      conftest$ac_exeext conftest.$ac_ext
 
9861
LIBS=$ac_check_lib_save_LIBS
 
9862
fi
 
9863
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
9864
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
 
9865
if test $ac_cv_lib_dl_dlopen = yes; then
 
9866
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
9867
else
 
9868
 
 
9869
    lt_cv_dlopen="dyld"
 
9870
    lt_cv_dlopen_libs=
 
9871
    lt_cv_dlopen_self=yes
 
9872
 
 
9873
fi
 
9874
 
 
9875
   ;;
 
9876
 
 
9877
  *)
 
9878
    { echo "$as_me:$LINENO: checking for shl_load" >&5
 
9879
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
 
9880
if test "${ac_cv_func_shl_load+set}" = set; then
 
9881
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9882
else
 
9883
  cat >conftest.$ac_ext <<_ACEOF
 
9884
/* confdefs.h.  */
 
9885
_ACEOF
 
9886
cat confdefs.h >>conftest.$ac_ext
 
9887
cat >>conftest.$ac_ext <<_ACEOF
 
9888
/* end confdefs.h.  */
 
9889
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
9890
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
9891
#define shl_load innocuous_shl_load
 
9892
 
 
9893
/* System header to define __stub macros and hopefully few prototypes,
 
9894
    which can conflict with char shl_load (); below.
 
9895
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
9896
    <limits.h> exists even on freestanding compilers.  */
 
9897
 
 
9898
#ifdef __STDC__
 
9899
# include <limits.h>
 
9900
#else
 
9901
# include <assert.h>
 
9902
#endif
 
9903
 
 
9904
#undef shl_load
 
9905
 
 
9906
/* Override any GCC internal prototype to avoid an error.
 
9907
   Use char because int might match the return type of a GCC
 
9908
   builtin and then its argument prototype would still apply.  */
 
9909
#ifdef __cplusplus
 
9910
extern "C"
 
9911
#endif
 
9912
char shl_load ();
 
9913
/* The GNU C library defines this for functions which it implements
 
9914
    to always fail with ENOSYS.  Some functions are actually named
 
9915
    something starting with __ and the normal name is an alias.  */
 
9916
#if defined __stub_shl_load || defined __stub___shl_load
 
9917
choke me
 
9918
#endif
 
9919
 
 
9920
int
 
9921
main ()
 
9922
{
 
9923
return shl_load ();
 
9924
  ;
 
9925
  return 0;
 
9926
}
 
9927
_ACEOF
 
9928
rm -f conftest.$ac_objext conftest$ac_exeext
 
9929
if { (ac_try="$ac_link"
 
9930
case "(($ac_try" in
 
9931
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9932
  *) ac_try_echo=$ac_try;;
 
9933
esac
 
9934
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9935
  (eval "$ac_link") 2>conftest.er1
 
9936
  ac_status=$?
 
9937
  grep -v '^ *+' conftest.er1 >conftest.err
 
9938
  rm -f conftest.er1
 
9939
  cat conftest.err >&5
 
9940
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9941
  (exit $ac_status); } &&
 
9942
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
9943
  { (case "(($ac_try" in
 
9944
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9945
  *) ac_try_echo=$ac_try;;
 
9946
esac
 
9947
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9948
  (eval "$ac_try") 2>&5
 
9949
  ac_status=$?
 
9950
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9951
  (exit $ac_status); }; } &&
 
9952
         { ac_try='test -s conftest$ac_exeext'
 
9953
  { (case "(($ac_try" in
 
9954
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9955
  *) ac_try_echo=$ac_try;;
 
9956
esac
 
9957
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9958
  (eval "$ac_try") 2>&5
 
9959
  ac_status=$?
 
9960
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9961
  (exit $ac_status); }; }; then
 
9962
  ac_cv_func_shl_load=yes
 
9963
else
 
9964
  echo "$as_me: failed program was:" >&5
 
9965
sed 's/^/| /' conftest.$ac_ext >&5
 
9966
 
 
9967
        ac_cv_func_shl_load=no
 
9968
fi
 
9969
 
 
9970
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9971
      conftest$ac_exeext conftest.$ac_ext
 
9972
fi
 
9973
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
9974
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
 
9975
if test $ac_cv_func_shl_load = yes; then
 
9976
  lt_cv_dlopen="shl_load"
 
9977
else
 
9978
  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
9979
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
 
9980
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
9981
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9982
else
 
9983
  ac_check_lib_save_LIBS=$LIBS
 
9984
LIBS="-ldld  $LIBS"
 
9985
cat >conftest.$ac_ext <<_ACEOF
 
9986
/* confdefs.h.  */
 
9987
_ACEOF
 
9988
cat confdefs.h >>conftest.$ac_ext
 
9989
cat >>conftest.$ac_ext <<_ACEOF
 
9990
/* end confdefs.h.  */
 
9991
 
 
9992
/* Override any GCC internal prototype to avoid an error.
 
9993
   Use char because int might match the return type of a GCC
 
9994
   builtin and then its argument prototype would still apply.  */
 
9995
#ifdef __cplusplus
 
9996
extern "C"
 
9997
#endif
 
9998
char shl_load ();
 
9999
int
 
10000
main ()
 
10001
{
 
10002
return shl_load ();
 
10003
  ;
 
10004
  return 0;
 
10005
}
 
10006
_ACEOF
 
10007
rm -f conftest.$ac_objext conftest$ac_exeext
 
10008
if { (ac_try="$ac_link"
 
10009
case "(($ac_try" in
 
10010
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10011
  *) ac_try_echo=$ac_try;;
 
10012
esac
 
10013
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10014
  (eval "$ac_link") 2>conftest.er1
 
10015
  ac_status=$?
 
10016
  grep -v '^ *+' conftest.er1 >conftest.err
 
10017
  rm -f conftest.er1
 
10018
  cat conftest.err >&5
 
10019
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10020
  (exit $ac_status); } &&
 
10021
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
10022
  { (case "(($ac_try" in
 
10023
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10024
  *) ac_try_echo=$ac_try;;
 
10025
esac
 
10026
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10027
  (eval "$ac_try") 2>&5
 
10028
  ac_status=$?
 
10029
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10030
  (exit $ac_status); }; } &&
 
10031
         { ac_try='test -s conftest$ac_exeext'
 
10032
  { (case "(($ac_try" in
 
10033
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10034
  *) ac_try_echo=$ac_try;;
 
10035
esac
 
10036
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10037
  (eval "$ac_try") 2>&5
 
10038
  ac_status=$?
 
10039
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10040
  (exit $ac_status); }; }; then
 
10041
  ac_cv_lib_dld_shl_load=yes
 
10042
else
 
10043
  echo "$as_me: failed program was:" >&5
 
10044
sed 's/^/| /' conftest.$ac_ext >&5
 
10045
 
 
10046
        ac_cv_lib_dld_shl_load=no
 
10047
fi
 
10048
 
 
10049
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10050
      conftest$ac_exeext conftest.$ac_ext
 
10051
LIBS=$ac_check_lib_save_LIBS
 
10052
fi
 
10053
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
10054
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
 
10055
if test $ac_cv_lib_dld_shl_load = yes; then
 
10056
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
10057
else
 
10058
  { echo "$as_me:$LINENO: checking for dlopen" >&5
 
10059
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
 
10060
if test "${ac_cv_func_dlopen+set}" = set; then
 
10061
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10062
else
 
10063
  cat >conftest.$ac_ext <<_ACEOF
 
10064
/* confdefs.h.  */
 
10065
_ACEOF
 
10066
cat confdefs.h >>conftest.$ac_ext
 
10067
cat >>conftest.$ac_ext <<_ACEOF
 
10068
/* end confdefs.h.  */
 
10069
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
10070
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
10071
#define dlopen innocuous_dlopen
 
10072
 
 
10073
/* System header to define __stub macros and hopefully few prototypes,
 
10074
    which can conflict with char dlopen (); below.
 
10075
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
10076
    <limits.h> exists even on freestanding compilers.  */
 
10077
 
 
10078
#ifdef __STDC__
 
10079
# include <limits.h>
 
10080
#else
 
10081
# include <assert.h>
 
10082
#endif
 
10083
 
 
10084
#undef dlopen
 
10085
 
 
10086
/* Override any GCC internal prototype to avoid an error.
 
10087
   Use char because int might match the return type of a GCC
 
10088
   builtin and then its argument prototype would still apply.  */
 
10089
#ifdef __cplusplus
 
10090
extern "C"
 
10091
#endif
 
10092
char dlopen ();
 
10093
/* The GNU C library defines this for functions which it implements
 
10094
    to always fail with ENOSYS.  Some functions are actually named
 
10095
    something starting with __ and the normal name is an alias.  */
 
10096
#if defined __stub_dlopen || defined __stub___dlopen
 
10097
choke me
 
10098
#endif
 
10099
 
 
10100
int
 
10101
main ()
 
10102
{
 
10103
return dlopen ();
 
10104
  ;
 
10105
  return 0;
 
10106
}
 
10107
_ACEOF
 
10108
rm -f conftest.$ac_objext conftest$ac_exeext
 
10109
if { (ac_try="$ac_link"
 
10110
case "(($ac_try" in
 
10111
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10112
  *) ac_try_echo=$ac_try;;
 
10113
esac
 
10114
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10115
  (eval "$ac_link") 2>conftest.er1
 
10116
  ac_status=$?
 
10117
  grep -v '^ *+' conftest.er1 >conftest.err
 
10118
  rm -f conftest.er1
 
10119
  cat conftest.err >&5
 
10120
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10121
  (exit $ac_status); } &&
 
10122
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
10123
  { (case "(($ac_try" in
 
10124
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10125
  *) ac_try_echo=$ac_try;;
 
10126
esac
 
10127
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10128
  (eval "$ac_try") 2>&5
 
10129
  ac_status=$?
 
10130
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10131
  (exit $ac_status); }; } &&
 
10132
         { ac_try='test -s conftest$ac_exeext'
 
10133
  { (case "(($ac_try" in
 
10134
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10135
  *) ac_try_echo=$ac_try;;
 
10136
esac
 
10137
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10138
  (eval "$ac_try") 2>&5
 
10139
  ac_status=$?
 
10140
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10141
  (exit $ac_status); }; }; then
 
10142
  ac_cv_func_dlopen=yes
 
10143
else
 
10144
  echo "$as_me: failed program was:" >&5
 
10145
sed 's/^/| /' conftest.$ac_ext >&5
 
10146
 
 
10147
        ac_cv_func_dlopen=no
 
10148
fi
 
10149
 
 
10150
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10151
      conftest$ac_exeext conftest.$ac_ext
 
10152
fi
 
10153
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
10154
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
 
10155
if test $ac_cv_func_dlopen = yes; then
 
10156
  lt_cv_dlopen="dlopen"
 
10157
else
 
10158
  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
10159
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
 
10160
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
10161
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10162
else
 
10163
  ac_check_lib_save_LIBS=$LIBS
 
10164
LIBS="-ldl  $LIBS"
 
10165
cat >conftest.$ac_ext <<_ACEOF
 
10166
/* confdefs.h.  */
 
10167
_ACEOF
 
10168
cat confdefs.h >>conftest.$ac_ext
 
10169
cat >>conftest.$ac_ext <<_ACEOF
 
10170
/* end confdefs.h.  */
 
10171
 
 
10172
/* Override any GCC internal prototype to avoid an error.
 
10173
   Use char because int might match the return type of a GCC
 
10174
   builtin and then its argument prototype would still apply.  */
 
10175
#ifdef __cplusplus
 
10176
extern "C"
 
10177
#endif
 
10178
char dlopen ();
 
10179
int
 
10180
main ()
 
10181
{
 
10182
return dlopen ();
 
10183
  ;
 
10184
  return 0;
 
10185
}
 
10186
_ACEOF
 
10187
rm -f conftest.$ac_objext conftest$ac_exeext
 
10188
if { (ac_try="$ac_link"
 
10189
case "(($ac_try" in
 
10190
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10191
  *) ac_try_echo=$ac_try;;
 
10192
esac
 
10193
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10194
  (eval "$ac_link") 2>conftest.er1
 
10195
  ac_status=$?
 
10196
  grep -v '^ *+' conftest.er1 >conftest.err
 
10197
  rm -f conftest.er1
 
10198
  cat conftest.err >&5
 
10199
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10200
  (exit $ac_status); } &&
 
10201
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
10202
  { (case "(($ac_try" in
 
10203
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10204
  *) ac_try_echo=$ac_try;;
 
10205
esac
 
10206
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10207
  (eval "$ac_try") 2>&5
 
10208
  ac_status=$?
 
10209
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10210
  (exit $ac_status); }; } &&
 
10211
         { ac_try='test -s conftest$ac_exeext'
 
10212
  { (case "(($ac_try" in
 
10213
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10214
  *) ac_try_echo=$ac_try;;
 
10215
esac
 
10216
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10217
  (eval "$ac_try") 2>&5
 
10218
  ac_status=$?
 
10219
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10220
  (exit $ac_status); }; }; then
 
10221
  ac_cv_lib_dl_dlopen=yes
 
10222
else
 
10223
  echo "$as_me: failed program was:" >&5
 
10224
sed 's/^/| /' conftest.$ac_ext >&5
 
10225
 
 
10226
        ac_cv_lib_dl_dlopen=no
 
10227
fi
 
10228
 
 
10229
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10230
      conftest$ac_exeext conftest.$ac_ext
 
10231
LIBS=$ac_check_lib_save_LIBS
 
10232
fi
 
10233
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
10234
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
 
10235
if test $ac_cv_lib_dl_dlopen = yes; then
 
10236
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
10237
else
 
10238
  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
10239
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
 
10240
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
10241
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10242
else
 
10243
  ac_check_lib_save_LIBS=$LIBS
 
10244
LIBS="-lsvld  $LIBS"
 
10245
cat >conftest.$ac_ext <<_ACEOF
 
10246
/* confdefs.h.  */
 
10247
_ACEOF
 
10248
cat confdefs.h >>conftest.$ac_ext
 
10249
cat >>conftest.$ac_ext <<_ACEOF
 
10250
/* end confdefs.h.  */
 
10251
 
 
10252
/* Override any GCC internal prototype to avoid an error.
 
10253
   Use char because int might match the return type of a GCC
 
10254
   builtin and then its argument prototype would still apply.  */
 
10255
#ifdef __cplusplus
 
10256
extern "C"
 
10257
#endif
 
10258
char dlopen ();
 
10259
int
 
10260
main ()
 
10261
{
 
10262
return dlopen ();
 
10263
  ;
 
10264
  return 0;
 
10265
}
 
10266
_ACEOF
 
10267
rm -f conftest.$ac_objext conftest$ac_exeext
 
10268
if { (ac_try="$ac_link"
 
10269
case "(($ac_try" in
 
10270
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10271
  *) ac_try_echo=$ac_try;;
 
10272
esac
 
10273
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10274
  (eval "$ac_link") 2>conftest.er1
 
10275
  ac_status=$?
 
10276
  grep -v '^ *+' conftest.er1 >conftest.err
 
10277
  rm -f conftest.er1
 
10278
  cat conftest.err >&5
 
10279
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10280
  (exit $ac_status); } &&
 
10281
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
10282
  { (case "(($ac_try" in
 
10283
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10284
  *) ac_try_echo=$ac_try;;
 
10285
esac
 
10286
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10287
  (eval "$ac_try") 2>&5
 
10288
  ac_status=$?
 
10289
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10290
  (exit $ac_status); }; } &&
 
10291
         { ac_try='test -s conftest$ac_exeext'
 
10292
  { (case "(($ac_try" in
 
10293
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10294
  *) ac_try_echo=$ac_try;;
 
10295
esac
 
10296
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10297
  (eval "$ac_try") 2>&5
 
10298
  ac_status=$?
 
10299
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10300
  (exit $ac_status); }; }; then
 
10301
  ac_cv_lib_svld_dlopen=yes
 
10302
else
 
10303
  echo "$as_me: failed program was:" >&5
 
10304
sed 's/^/| /' conftest.$ac_ext >&5
 
10305
 
 
10306
        ac_cv_lib_svld_dlopen=no
 
10307
fi
 
10308
 
 
10309
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10310
      conftest$ac_exeext conftest.$ac_ext
 
10311
LIBS=$ac_check_lib_save_LIBS
 
10312
fi
 
10313
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
10314
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
 
10315
if test $ac_cv_lib_svld_dlopen = yes; then
 
10316
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
10317
else
 
10318
  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
10319
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
 
10320
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
10321
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10322
else
 
10323
  ac_check_lib_save_LIBS=$LIBS
 
10324
LIBS="-ldld  $LIBS"
 
10325
cat >conftest.$ac_ext <<_ACEOF
 
10326
/* confdefs.h.  */
 
10327
_ACEOF
 
10328
cat confdefs.h >>conftest.$ac_ext
 
10329
cat >>conftest.$ac_ext <<_ACEOF
 
10330
/* end confdefs.h.  */
 
10331
 
 
10332
/* Override any GCC internal prototype to avoid an error.
 
10333
   Use char because int might match the return type of a GCC
 
10334
   builtin and then its argument prototype would still apply.  */
 
10335
#ifdef __cplusplus
 
10336
extern "C"
 
10337
#endif
 
10338
char dld_link ();
 
10339
int
 
10340
main ()
 
10341
{
 
10342
return dld_link ();
 
10343
  ;
 
10344
  return 0;
 
10345
}
 
10346
_ACEOF
 
10347
rm -f conftest.$ac_objext conftest$ac_exeext
 
10348
if { (ac_try="$ac_link"
 
10349
case "(($ac_try" in
 
10350
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10351
  *) ac_try_echo=$ac_try;;
 
10352
esac
 
10353
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10354
  (eval "$ac_link") 2>conftest.er1
 
10355
  ac_status=$?
 
10356
  grep -v '^ *+' conftest.er1 >conftest.err
 
10357
  rm -f conftest.er1
 
10358
  cat conftest.err >&5
 
10359
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10360
  (exit $ac_status); } &&
 
10361
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
10362
  { (case "(($ac_try" in
 
10363
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10364
  *) ac_try_echo=$ac_try;;
 
10365
esac
 
10366
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10367
  (eval "$ac_try") 2>&5
 
10368
  ac_status=$?
 
10369
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10370
  (exit $ac_status); }; } &&
 
10371
         { ac_try='test -s conftest$ac_exeext'
 
10372
  { (case "(($ac_try" in
 
10373
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10374
  *) ac_try_echo=$ac_try;;
 
10375
esac
 
10376
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10377
  (eval "$ac_try") 2>&5
 
10378
  ac_status=$?
 
10379
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10380
  (exit $ac_status); }; }; then
 
10381
  ac_cv_lib_dld_dld_link=yes
 
10382
else
 
10383
  echo "$as_me: failed program was:" >&5
 
10384
sed 's/^/| /' conftest.$ac_ext >&5
 
10385
 
 
10386
        ac_cv_lib_dld_dld_link=no
 
10387
fi
 
10388
 
 
10389
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10390
      conftest$ac_exeext conftest.$ac_ext
 
10391
LIBS=$ac_check_lib_save_LIBS
 
10392
fi
 
10393
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
10394
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
 
10395
if test $ac_cv_lib_dld_dld_link = yes; then
 
10396
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
10397
fi
 
10398
 
 
10399
 
 
10400
fi
 
10401
 
 
10402
 
 
10403
fi
 
10404
 
 
10405
 
 
10406
fi
 
10407
 
 
10408
 
 
10409
fi
 
10410
 
 
10411
 
 
10412
fi
 
10413
 
 
10414
    ;;
 
10415
  esac
 
10416
 
 
10417
  if test "x$lt_cv_dlopen" != xno; then
 
10418
    enable_dlopen=yes
 
10419
  else
 
10420
    enable_dlopen=no
 
10421
  fi
 
10422
 
 
10423
  case $lt_cv_dlopen in
 
10424
  dlopen)
 
10425
    save_CPPFLAGS="$CPPFLAGS"
 
10426
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
10427
 
 
10428
    save_LDFLAGS="$LDFLAGS"
 
10429
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
10430
 
 
10431
    save_LIBS="$LIBS"
 
10432
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
10433
 
 
10434
    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
10435
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
 
10436
if test "${lt_cv_dlopen_self+set}" = set; then
 
10437
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10438
else
 
10439
          if test "$cross_compiling" = yes; then :
 
10440
  lt_cv_dlopen_self=cross
 
10441
else
 
10442
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
10443
  lt_status=$lt_dlunknown
 
10444
  cat > conftest.$ac_ext <<EOF
 
10445
#line 10445 "configure"
 
10446
#include "confdefs.h"
 
10447
 
 
10448
#if HAVE_DLFCN_H
 
10449
#include <dlfcn.h>
 
10450
#endif
 
10451
 
 
10452
#include <stdio.h>
 
10453
 
 
10454
#ifdef RTLD_GLOBAL
 
10455
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
10456
#else
 
10457
#  ifdef DL_GLOBAL
 
10458
#    define LT_DLGLOBAL         DL_GLOBAL
 
10459
#  else
 
10460
#    define LT_DLGLOBAL         0
 
10461
#  endif
 
10462
#endif
 
10463
 
 
10464
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
10465
   find out it does not work in some platform. */
 
10466
#ifndef LT_DLLAZY_OR_NOW
 
10467
#  ifdef RTLD_LAZY
 
10468
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
10469
#  else
 
10470
#    ifdef DL_LAZY
 
10471
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
10472
#    else
 
10473
#      ifdef RTLD_NOW
 
10474
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
10475
#      else
 
10476
#        ifdef DL_NOW
 
10477
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
10478
#        else
 
10479
#          define LT_DLLAZY_OR_NOW      0
 
10480
#        endif
 
10481
#      endif
 
10482
#    endif
 
10483
#  endif
 
10484
#endif
 
10485
 
 
10486
#ifdef __cplusplus
 
10487
extern "C" void exit (int);
 
10488
#endif
 
10489
 
 
10490
void fnord() { int i=42;}
 
10491
int main ()
 
10492
{
 
10493
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
10494
  int status = $lt_dlunknown;
 
10495
 
 
10496
  if (self)
 
10497
    {
 
10498
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
10499
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
10500
      /* dlclose (self); */
 
10501
    }
 
10502
  else
 
10503
    puts (dlerror ());
 
10504
 
 
10505
    exit (status);
 
10506
}
 
10507
EOF
 
10508
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10509
  (eval $ac_link) 2>&5
 
10510
  ac_status=$?
 
10511
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10512
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
10513
    (./conftest; exit; ) >&5 2>/dev/null
 
10514
    lt_status=$?
 
10515
    case x$lt_status in
 
10516
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
10517
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
10518
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
 
10519
    esac
 
10520
  else :
 
10521
    # compilation failed
 
10522
    lt_cv_dlopen_self=no
 
10523
  fi
 
10524
fi
 
10525
rm -fr conftest*
 
10526
 
 
10527
 
 
10528
fi
 
10529
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
10530
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
 
10531
 
 
10532
    if test "x$lt_cv_dlopen_self" = xyes; then
 
10533
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
10534
      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
10535
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
 
10536
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
10537
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10538
else
 
10539
          if test "$cross_compiling" = yes; then :
 
10540
  lt_cv_dlopen_self_static=cross
 
10541
else
 
10542
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
10543
  lt_status=$lt_dlunknown
 
10544
  cat > conftest.$ac_ext <<EOF
 
10545
#line 10545 "configure"
 
10546
#include "confdefs.h"
 
10547
 
 
10548
#if HAVE_DLFCN_H
 
10549
#include <dlfcn.h>
 
10550
#endif
 
10551
 
 
10552
#include <stdio.h>
 
10553
 
 
10554
#ifdef RTLD_GLOBAL
 
10555
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
10556
#else
 
10557
#  ifdef DL_GLOBAL
 
10558
#    define LT_DLGLOBAL         DL_GLOBAL
 
10559
#  else
 
10560
#    define LT_DLGLOBAL         0
 
10561
#  endif
 
10562
#endif
 
10563
 
 
10564
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
10565
   find out it does not work in some platform. */
 
10566
#ifndef LT_DLLAZY_OR_NOW
 
10567
#  ifdef RTLD_LAZY
 
10568
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
10569
#  else
 
10570
#    ifdef DL_LAZY
 
10571
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
10572
#    else
 
10573
#      ifdef RTLD_NOW
 
10574
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
10575
#      else
 
10576
#        ifdef DL_NOW
 
10577
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
10578
#        else
 
10579
#          define LT_DLLAZY_OR_NOW      0
 
10580
#        endif
 
10581
#      endif
 
10582
#    endif
 
10583
#  endif
 
10584
#endif
 
10585
 
 
10586
#ifdef __cplusplus
 
10587
extern "C" void exit (int);
 
10588
#endif
 
10589
 
 
10590
void fnord() { int i=42;}
 
10591
int main ()
 
10592
{
 
10593
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
10594
  int status = $lt_dlunknown;
 
10595
 
 
10596
  if (self)
 
10597
    {
 
10598
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
10599
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
10600
      /* dlclose (self); */
 
10601
    }
 
10602
  else
 
10603
    puts (dlerror ());
 
10604
 
 
10605
    exit (status);
 
10606
}
 
10607
EOF
 
10608
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10609
  (eval $ac_link) 2>&5
 
10610
  ac_status=$?
 
10611
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10612
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
10613
    (./conftest; exit; ) >&5 2>/dev/null
 
10614
    lt_status=$?
 
10615
    case x$lt_status in
 
10616
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
10617
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
10618
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
 
10619
    esac
 
10620
  else :
 
10621
    # compilation failed
 
10622
    lt_cv_dlopen_self_static=no
 
10623
  fi
 
10624
fi
 
10625
rm -fr conftest*
 
10626
 
 
10627
 
 
10628
fi
 
10629
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
10630
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
 
10631
    fi
 
10632
 
 
10633
    CPPFLAGS="$save_CPPFLAGS"
 
10634
    LDFLAGS="$save_LDFLAGS"
 
10635
    LIBS="$save_LIBS"
 
10636
    ;;
 
10637
  esac
 
10638
 
 
10639
  case $lt_cv_dlopen_self in
 
10640
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
10641
  *) enable_dlopen_self=unknown ;;
 
10642
  esac
 
10643
 
 
10644
  case $lt_cv_dlopen_self_static in
 
10645
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
10646
  *) enable_dlopen_self_static=unknown ;;
 
10647
  esac
 
10648
fi
 
10649
 
 
10650
 
 
10651
# Report which library types will actually be built
 
10652
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
10653
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
 
10654
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
10655
echo "${ECHO_T}$can_build_shared" >&6; }
 
10656
 
 
10657
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
10658
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
 
10659
test "$can_build_shared" = "no" && enable_shared=no
 
10660
 
 
10661
# On AIX, shared libraries and static libraries use the same namespace, and
 
10662
# are all built from PIC.
 
10663
case $host_os in
 
10664
aix3*)
 
10665
  test "$enable_shared" = yes && enable_static=no
 
10666
  if test -n "$RANLIB"; then
 
10667
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
10668
    postinstall_cmds='$RANLIB $lib'
 
10669
  fi
 
10670
  ;;
 
10671
 
 
10672
aix4* | aix5*)
 
10673
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
10674
    test "$enable_shared" = yes && enable_static=no
 
10675
  fi
 
10676
    ;;
 
10677
esac
 
10678
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
 
10679
echo "${ECHO_T}$enable_shared" >&6; }
 
10680
 
 
10681
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
10682
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
 
10683
# Make sure either enable_shared or enable_static is yes.
 
10684
test "$enable_shared" = yes || enable_static=yes
 
10685
{ echo "$as_me:$LINENO: result: $enable_static" >&5
 
10686
echo "${ECHO_T}$enable_static" >&6; }
 
10687
 
 
10688
# The else clause should only fire when bootstrapping the
 
10689
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
10690
# with your package, and you will get complaints that there are
 
10691
# no rules to generate ltmain.sh.
 
10692
if test -f "$ltmain"; then
 
10693
  # See if we are running on zsh, and set the options which allow our commands through
 
10694
  # without removal of \ escapes.
 
10695
  if test -n "${ZSH_VERSION+set}" ; then
 
10696
    setopt NO_GLOB_SUBST
 
10697
  fi
 
10698
  # Now quote all the things that may contain metacharacters while being
 
10699
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
10700
  # variables and quote the copies for generation of the libtool script.
 
10701
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
10702
    SED SHELL STRIP \
 
10703
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
10704
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
10705
    deplibs_check_method reload_flag reload_cmds need_locks \
 
10706
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
10707
    lt_cv_sys_global_symbol_to_c_name_address \
 
10708
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
10709
    old_postinstall_cmds old_postuninstall_cmds \
 
10710
    compiler \
 
10711
    CC \
 
10712
    LD \
 
10713
    lt_prog_compiler_wl \
 
10714
    lt_prog_compiler_pic \
 
10715
    lt_prog_compiler_static \
 
10716
    lt_prog_compiler_no_builtin_flag \
 
10717
    export_dynamic_flag_spec \
 
10718
    thread_safe_flag_spec \
 
10719
    whole_archive_flag_spec \
 
10720
    enable_shared_with_static_runtimes \
 
10721
    old_archive_cmds \
 
10722
    old_archive_from_new_cmds \
 
10723
    predep_objects \
 
10724
    postdep_objects \
 
10725
    predeps \
 
10726
    postdeps \
 
10727
    compiler_lib_search_path \
 
10728
    archive_cmds \
 
10729
    archive_expsym_cmds \
 
10730
    postinstall_cmds \
 
10731
    postuninstall_cmds \
 
10732
    old_archive_from_expsyms_cmds \
 
10733
    allow_undefined_flag \
 
10734
    no_undefined_flag \
 
10735
    export_symbols_cmds \
 
10736
    hardcode_libdir_flag_spec \
 
10737
    hardcode_libdir_flag_spec_ld \
 
10738
    hardcode_libdir_separator \
 
10739
    hardcode_automatic \
 
10740
    module_cmds \
 
10741
    module_expsym_cmds \
 
10742
    lt_cv_prog_compiler_c_o \
 
10743
    exclude_expsyms \
 
10744
    include_expsyms; do
 
10745
 
 
10746
    case $var in
 
10747
    old_archive_cmds | \
 
10748
    old_archive_from_new_cmds | \
 
10749
    archive_cmds | \
 
10750
    archive_expsym_cmds | \
 
10751
    module_cmds | \
 
10752
    module_expsym_cmds | \
 
10753
    old_archive_from_expsyms_cmds | \
 
10754
    export_symbols_cmds | \
 
10755
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
10756
    postinstall_cmds | postuninstall_cmds | \
 
10757
    old_postinstall_cmds | old_postuninstall_cmds | \
 
10758
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
10759
      # Double-quote double-evaled strings.
 
10760
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
10761
      ;;
 
10762
    *)
 
10763
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
10764
      ;;
 
10765
    esac
 
10766
  done
 
10767
 
 
10768
  case $lt_echo in
 
10769
  *'\$0 --fallback-echo"')
 
10770
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
10771
    ;;
 
10772
  esac
 
10773
 
 
10774
cfgfile="${ofile}T"
 
10775
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
10776
  $rm -f "$cfgfile"
 
10777
  { echo "$as_me:$LINENO: creating $ofile" >&5
 
10778
echo "$as_me: creating $ofile" >&6;}
 
10779
 
 
10780
  cat <<__EOF__ >> "$cfgfile"
 
10781
#! $SHELL
 
10782
 
 
10783
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
10784
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
10785
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
10786
#
 
10787
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
10788
# Free Software Foundation, Inc.
 
10789
#
 
10790
# This file is part of GNU Libtool:
 
10791
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
10792
#
 
10793
# This program is free software; you can redistribute it and/or modify
 
10794
# it under the terms of the GNU General Public License as published by
 
10795
# the Free Software Foundation; either version 2 of the License, or
 
10796
# (at your option) any later version.
 
10797
#
 
10798
# This program is distributed in the hope that it will be useful, but
 
10799
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
10800
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
10801
# General Public License for more details.
 
10802
#
 
10803
# You should have received a copy of the GNU General Public License
 
10804
# along with this program; if not, write to the Free Software
 
10805
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
10806
#
 
10807
# As a special exception to the GNU General Public License, if you
 
10808
# distribute this file as part of a program that contains a
 
10809
# configuration script generated by Autoconf, you may include it under
 
10810
# the same distribution terms that you use for the rest of that program.
 
10811
 
 
10812
# A sed program that does not truncate output.
 
10813
SED=$lt_SED
 
10814
 
 
10815
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
10816
Xsed="$SED -e 1s/^X//"
 
10817
 
 
10818
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
10819
# if CDPATH is set.
 
10820
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
10821
 
 
10822
# The names of the tagged configurations supported by this script.
 
10823
available_tags=
 
10824
 
 
10825
# ### BEGIN LIBTOOL CONFIG
 
10826
 
 
10827
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
10828
 
 
10829
# Shell to use when invoking shell scripts.
 
10830
SHELL=$lt_SHELL
 
10831
 
 
10832
# Whether or not to build shared libraries.
 
10833
build_libtool_libs=$enable_shared
 
10834
 
 
10835
# Whether or not to build static libraries.
 
10836
build_old_libs=$enable_static
 
10837
 
 
10838
# Whether or not to add -lc for building shared libraries.
 
10839
build_libtool_need_lc=$archive_cmds_need_lc
 
10840
 
 
10841
# Whether or not to disallow shared libs when runtime libs are static
 
10842
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
10843
 
 
10844
# Whether or not to optimize for fast installation.
 
10845
fast_install=$enable_fast_install
 
10846
 
 
10847
# The host system.
 
10848
host_alias=$host_alias
 
10849
host=$host
 
10850
host_os=$host_os
 
10851
 
 
10852
# The build system.
 
10853
build_alias=$build_alias
 
10854
build=$build
 
10855
build_os=$build_os
 
10856
 
 
10857
# An echo program that does not interpret backslashes.
 
10858
echo=$lt_echo
 
10859
 
 
10860
# The archiver.
 
10861
AR=$lt_AR
 
10862
AR_FLAGS=$lt_AR_FLAGS
 
10863
 
 
10864
# A C compiler.
 
10865
LTCC=$lt_LTCC
 
10866
 
 
10867
# LTCC compiler flags.
 
10868
LTCFLAGS=$lt_LTCFLAGS
 
10869
 
 
10870
# A language-specific compiler.
 
10871
CC=$lt_compiler
 
10872
 
 
10873
# Is the compiler the GNU C compiler?
 
10874
with_gcc=$GCC
 
10875
 
 
10876
# An ERE matcher.
 
10877
EGREP=$lt_EGREP
 
10878
 
 
10879
# The linker used to build libraries.
 
10880
LD=$lt_LD
 
10881
 
 
10882
# Whether we need hard or soft links.
 
10883
LN_S=$lt_LN_S
 
10884
 
 
10885
# A BSD-compatible nm program.
 
10886
NM=$lt_NM
 
10887
 
 
10888
# A symbol stripping program
 
10889
STRIP=$lt_STRIP
 
10890
 
 
10891
# Used to examine libraries when file_magic_cmd begins "file"
 
10892
MAGIC_CMD=$MAGIC_CMD
 
10893
 
 
10894
# Used on cygwin: DLL creation program.
 
10895
DLLTOOL="$DLLTOOL"
 
10896
 
 
10897
# Used on cygwin: object dumper.
 
10898
OBJDUMP="$OBJDUMP"
 
10899
 
 
10900
# Used on cygwin: assembler.
 
10901
AS="$AS"
 
10902
 
 
10903
# The name of the directory that contains temporary libtool files.
 
10904
objdir=$objdir
 
10905
 
 
10906
# How to create reloadable object files.
 
10907
reload_flag=$lt_reload_flag
 
10908
reload_cmds=$lt_reload_cmds
 
10909
 
 
10910
# How to pass a linker flag through the compiler.
 
10911
wl=$lt_lt_prog_compiler_wl
 
10912
 
 
10913
# Object file suffix (normally "o").
 
10914
objext="$ac_objext"
 
10915
 
 
10916
# Old archive suffix (normally "a").
 
10917
libext="$libext"
 
10918
 
 
10919
# Shared library suffix (normally ".so").
 
10920
shrext_cmds='$shrext_cmds'
 
10921
 
 
10922
# Executable file suffix (normally "").
 
10923
exeext="$exeext"
 
10924
 
 
10925
# Additional compiler flags for building library objects.
 
10926
pic_flag=$lt_lt_prog_compiler_pic
 
10927
pic_mode=$pic_mode
 
10928
 
 
10929
# What is the maximum length of a command?
 
10930
max_cmd_len=$lt_cv_sys_max_cmd_len
 
10931
 
 
10932
# Does compiler simultaneously support -c and -o options?
 
10933
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
10934
 
 
10935
# Must we lock files when doing compilation?
 
10936
need_locks=$lt_need_locks
 
10937
 
 
10938
# Do we need the lib prefix for modules?
 
10939
need_lib_prefix=$need_lib_prefix
 
10940
 
 
10941
# Do we need a version for libraries?
 
10942
need_version=$need_version
 
10943
 
 
10944
# Whether dlopen is supported.
 
10945
dlopen_support=$enable_dlopen
 
10946
 
 
10947
# Whether dlopen of programs is supported.
 
10948
dlopen_self=$enable_dlopen_self
 
10949
 
 
10950
# Whether dlopen of statically linked programs is supported.
 
10951
dlopen_self_static=$enable_dlopen_self_static
 
10952
 
 
10953
# Compiler flag to prevent dynamic linking.
 
10954
link_static_flag=$lt_lt_prog_compiler_static
 
10955
 
 
10956
# Compiler flag to turn off builtin functions.
 
10957
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
10958
 
 
10959
# Compiler flag to allow reflexive dlopens.
 
10960
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
10961
 
 
10962
# Compiler flag to generate shared objects directly from archives.
 
10963
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
10964
 
 
10965
# Compiler flag to generate thread-safe objects.
 
10966
thread_safe_flag_spec=$lt_thread_safe_flag_spec
 
10967
 
 
10968
# Library versioning type.
 
10969
version_type=$version_type
 
10970
 
 
10971
# Format of library name prefix.
 
10972
libname_spec=$lt_libname_spec
 
10973
 
 
10974
# List of archive names.  First name is the real one, the rest are links.
 
10975
# The last name is the one that the linker finds with -lNAME.
 
10976
library_names_spec=$lt_library_names_spec
 
10977
 
 
10978
# The coded name of the library, if different from the real name.
 
10979
soname_spec=$lt_soname_spec
 
10980
 
 
10981
# Commands used to build and install an old-style archive.
 
10982
RANLIB=$lt_RANLIB
 
10983
old_archive_cmds=$lt_old_archive_cmds
 
10984
old_postinstall_cmds=$lt_old_postinstall_cmds
 
10985
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
10986
 
 
10987
# Create an old-style archive from a shared archive.
 
10988
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
10989
 
 
10990
# Create a temporary old-style archive to link instead of a shared archive.
 
10991
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
10992
 
 
10993
# Commands used to build and install a shared archive.
 
10994
archive_cmds=$lt_archive_cmds
 
10995
archive_expsym_cmds=$lt_archive_expsym_cmds
 
10996
postinstall_cmds=$lt_postinstall_cmds
 
10997
postuninstall_cmds=$lt_postuninstall_cmds
 
10998
 
 
10999
# Commands used to build a loadable module (assumed same as above if empty)
 
11000
module_cmds=$lt_module_cmds
 
11001
module_expsym_cmds=$lt_module_expsym_cmds
 
11002
 
 
11003
# Commands to strip libraries.
 
11004
old_striplib=$lt_old_striplib
 
11005
striplib=$lt_striplib
 
11006
 
 
11007
# Dependencies to place before the objects being linked to create a
 
11008
# shared library.
 
11009
predep_objects=$lt_predep_objects
 
11010
 
 
11011
# Dependencies to place after the objects being linked to create a
 
11012
# shared library.
 
11013
postdep_objects=$lt_postdep_objects
 
11014
 
 
11015
# Dependencies to place before the objects being linked to create a
 
11016
# shared library.
 
11017
predeps=$lt_predeps
 
11018
 
 
11019
# Dependencies to place after the objects being linked to create a
 
11020
# shared library.
 
11021
postdeps=$lt_postdeps
 
11022
 
 
11023
# The library search path used internally by the compiler when linking
 
11024
# a shared library.
 
11025
compiler_lib_search_path=$lt_compiler_lib_search_path
 
11026
 
 
11027
# Method to check whether dependent libraries are shared objects.
 
11028
deplibs_check_method=$lt_deplibs_check_method
 
11029
 
 
11030
# Command to use when deplibs_check_method == file_magic.
 
11031
file_magic_cmd=$lt_file_magic_cmd
 
11032
 
 
11033
# Flag that allows shared libraries with undefined symbols to be built.
 
11034
allow_undefined_flag=$lt_allow_undefined_flag
 
11035
 
 
11036
# Flag that forces no undefined symbols.
 
11037
no_undefined_flag=$lt_no_undefined_flag
 
11038
 
 
11039
# Commands used to finish a libtool library installation in a directory.
 
11040
finish_cmds=$lt_finish_cmds
 
11041
 
 
11042
# Same as above, but a single script fragment to be evaled but not shown.
 
11043
finish_eval=$lt_finish_eval
 
11044
 
 
11045
# Take the output of nm and produce a listing of raw symbols and C names.
 
11046
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
11047
 
 
11048
# Transform the output of nm in a proper C declaration
 
11049
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
11050
 
 
11051
# Transform the output of nm in a C name address pair
 
11052
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
11053
 
 
11054
# This is the shared library runtime path variable.
 
11055
runpath_var=$runpath_var
 
11056
 
 
11057
# This is the shared library path variable.
 
11058
shlibpath_var=$shlibpath_var
 
11059
 
 
11060
# Is shlibpath searched before the hard-coded library search path?
 
11061
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
11062
 
 
11063
# How to hardcode a shared library path into an executable.
 
11064
hardcode_action=$hardcode_action
 
11065
 
 
11066
# Whether we should hardcode library paths into libraries.
 
11067
hardcode_into_libs=$hardcode_into_libs
 
11068
 
 
11069
# Flag to hardcode \$libdir into a binary during linking.
 
11070
# This must work even if \$libdir does not exist.
 
11071
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
11072
 
 
11073
# If ld is used when linking, flag to hardcode \$libdir into
 
11074
# a binary during linking. This must work even if \$libdir does
 
11075
# not exist.
 
11076
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
11077
 
 
11078
# Whether we need a single -rpath flag with a separated argument.
 
11079
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
11080
 
 
11081
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
11082
# resulting binary.
 
11083
hardcode_direct=$hardcode_direct
 
11084
 
 
11085
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
11086
# resulting binary.
 
11087
hardcode_minus_L=$hardcode_minus_L
 
11088
 
 
11089
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
11090
# the resulting binary.
 
11091
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
11092
 
 
11093
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
11094
# and all subsequent libraries and executables linked against it.
 
11095
hardcode_automatic=$hardcode_automatic
 
11096
 
 
11097
# Variables whose values should be saved in libtool wrapper scripts and
 
11098
# restored at relink time.
 
11099
variables_saved_for_relink="$variables_saved_for_relink"
 
11100
 
 
11101
# Whether libtool must link a program against all its dependency libraries.
 
11102
link_all_deplibs=$link_all_deplibs
 
11103
 
 
11104
# Compile-time system search path for libraries
 
11105
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
11106
 
 
11107
# Run-time system search path for libraries
 
11108
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
11109
 
 
11110
# Fix the shell variable \$srcfile for the compiler.
 
11111
fix_srcfile_path="$fix_srcfile_path"
 
11112
 
 
11113
# Set to yes if exported symbols are required.
 
11114
always_export_symbols=$always_export_symbols
 
11115
 
 
11116
# The commands to list exported symbols.
 
11117
export_symbols_cmds=$lt_export_symbols_cmds
 
11118
 
 
11119
# The commands to extract the exported symbol list from a shared archive.
 
11120
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
11121
 
 
11122
# Symbols that should not be listed in the preloaded symbols.
 
11123
exclude_expsyms=$lt_exclude_expsyms
 
11124
 
 
11125
# Symbols that must always be exported.
 
11126
include_expsyms=$lt_include_expsyms
 
11127
 
 
11128
# ### END LIBTOOL CONFIG
 
11129
 
 
11130
__EOF__
 
11131
 
 
11132
 
 
11133
  case $host_os in
 
11134
  aix3*)
 
11135
    cat <<\EOF >> "$cfgfile"
 
11136
 
 
11137
# AIX sometimes has problems with the GCC collect2 program.  For some
 
11138
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
11139
# vanish in a puff of smoke.
 
11140
if test "X${COLLECT_NAMES+set}" != Xset; then
 
11141
  COLLECT_NAMES=
 
11142
  export COLLECT_NAMES
 
11143
fi
 
11144
EOF
 
11145
    ;;
 
11146
  esac
 
11147
 
 
11148
  # We use sed instead of cat because bash on DJGPP gets confused if
 
11149
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
11150
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
11151
  # is reportedly fixed, but why not run on old versions too?
 
11152
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 
11153
 
 
11154
  mv -f "$cfgfile" "$ofile" || \
 
11155
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
11156
  chmod +x "$ofile"
 
11157
 
 
11158
else
 
11159
  # If there is no Makefile yet, we rely on a make rule to execute
 
11160
  # `config.status --recheck' to rerun these tests and create the
 
11161
  # libtool script then.
 
11162
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
11163
  if test -f "$ltmain_in"; then
 
11164
    test -f Makefile && make "$ltmain"
 
11165
  fi
 
11166
fi
 
11167
 
 
11168
 
 
11169
ac_ext=c
 
11170
ac_cpp='$CPP $CPPFLAGS'
 
11171
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11172
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11173
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
11174
 
 
11175
CC="$lt_save_CC"
 
11176
 
 
11177
 
 
11178
# Check whether --with-tags was given.
 
11179
if test "${with_tags+set}" = set; then
 
11180
  withval=$with_tags; tagnames="$withval"
 
11181
fi
 
11182
 
 
11183
 
 
11184
if test -f "$ltmain" && test -n "$tagnames"; then
 
11185
  if test ! -f "${ofile}"; then
 
11186
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
 
11187
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
 
11188
  fi
 
11189
 
 
11190
  if test -z "$LTCC"; then
 
11191
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
11192
    if test -z "$LTCC"; then
 
11193
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
 
11194
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
 
11195
    else
 
11196
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
 
11197
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
 
11198
    fi
 
11199
  fi
 
11200
  if test -z "$LTCFLAGS"; then
 
11201
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
 
11202
  fi
 
11203
 
 
11204
  # Extract list of available tagged configurations in $ofile.
 
11205
  # Note that this assumes the entire list is on one line.
 
11206
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
11207
 
 
11208
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
11209
  for tagname in $tagnames; do
 
11210
    IFS="$lt_save_ifs"
 
11211
    # Check whether tagname contains only valid characters
 
11212
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
 
11213
    "") ;;
 
11214
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
 
11215
echo "$as_me: error: invalid tag name: $tagname" >&2;}
 
11216
   { (exit 1); exit 1; }; }
 
11217
        ;;
 
11218
    esac
 
11219
 
 
11220
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
11221
    then
 
11222
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
 
11223
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
 
11224
   { (exit 1); exit 1; }; }
 
11225
    fi
 
11226
 
 
11227
    # Update the list of available tags.
 
11228
    if test -n "$tagname"; then
 
11229
      echo appending configuration tag \"$tagname\" to $ofile
 
11230
 
 
11231
      case $tagname in
 
11232
      CXX)
 
11233
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
11234
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
11235
            (test "X$CXX" != "Xg++"))) ; then
 
11236
          ac_ext=cpp
 
11237
ac_cpp='$CXXCPP $CPPFLAGS'
 
11238
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11239
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11240
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
11241
 
 
11242
 
 
11243
 
 
11244
 
 
11245
archive_cmds_need_lc_CXX=no
 
11246
allow_undefined_flag_CXX=
 
11247
always_export_symbols_CXX=no
 
11248
archive_expsym_cmds_CXX=
 
11249
export_dynamic_flag_spec_CXX=
 
11250
hardcode_direct_CXX=no
 
11251
hardcode_libdir_flag_spec_CXX=
 
11252
hardcode_libdir_flag_spec_ld_CXX=
 
11253
hardcode_libdir_separator_CXX=
 
11254
hardcode_minus_L_CXX=no
 
11255
hardcode_shlibpath_var_CXX=unsupported
 
11256
hardcode_automatic_CXX=no
 
11257
module_cmds_CXX=
 
11258
module_expsym_cmds_CXX=
 
11259
link_all_deplibs_CXX=unknown
 
11260
old_archive_cmds_CXX=$old_archive_cmds
 
11261
no_undefined_flag_CXX=
 
11262
whole_archive_flag_spec_CXX=
 
11263
enable_shared_with_static_runtimes_CXX=no
 
11264
 
 
11265
# Dependencies to place before and after the object being linked:
 
11266
predep_objects_CXX=
 
11267
postdep_objects_CXX=
 
11268
predeps_CXX=
 
11269
postdeps_CXX=
 
11270
compiler_lib_search_path_CXX=
 
11271
 
 
11272
# Source file extension for C++ test sources.
 
11273
ac_ext=cpp
 
11274
 
 
11275
# Object file extension for compiled C++ test sources.
 
11276
objext=o
 
11277
objext_CXX=$objext
 
11278
 
 
11279
# Code to be used in simple compile tests
 
11280
lt_simple_compile_test_code="int some_variable = 0;\n"
 
11281
 
 
11282
# Code to be used in simple link tests
 
11283
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
 
11284
 
 
11285
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
11286
 
 
11287
# If no C compiler was specified, use CC.
 
11288
LTCC=${LTCC-"$CC"}
 
11289
 
 
11290
# If no C compiler flags were specified, use CFLAGS.
 
11291
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
11292
 
 
11293
# Allow CC to be a program name with arguments.
 
11294
compiler=$CC
 
11295
 
 
11296
 
 
11297
# save warnings/boilerplate of simple test code
 
11298
ac_outfile=conftest.$ac_objext
 
11299
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
11300
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
11301
_lt_compiler_boilerplate=`cat conftest.err`
 
11302
$rm conftest*
 
11303
 
 
11304
ac_outfile=conftest.$ac_objext
 
11305
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
11306
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
11307
_lt_linker_boilerplate=`cat conftest.err`
 
11308
$rm conftest*
 
11309
 
 
11310
 
 
11311
# Allow CC to be a program name with arguments.
 
11312
lt_save_CC=$CC
 
11313
lt_save_LD=$LD
 
11314
lt_save_GCC=$GCC
 
11315
GCC=$GXX
 
11316
lt_save_with_gnu_ld=$with_gnu_ld
 
11317
lt_save_path_LD=$lt_cv_path_LD
 
11318
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
11319
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
11320
else
 
11321
  $as_unset lt_cv_prog_gnu_ld
 
11322
fi
 
11323
if test -n "${lt_cv_path_LDCXX+set}"; then
 
11324
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
11325
else
 
11326
  $as_unset lt_cv_path_LD
 
11327
fi
 
11328
test -z "${LDCXX+set}" || LD=$LDCXX
 
11329
CC=${CXX-"c++"}
 
11330
compiler=$CC
 
11331
compiler_CXX=$CC
 
11332
for cc_temp in $compiler""; do
 
11333
  case $cc_temp in
 
11334
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
11335
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
11336
    \-*) ;;
 
11337
    *) break;;
 
11338
  esac
 
11339
done
 
11340
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
11341
 
 
11342
 
 
11343
# We don't want -fno-exception wen compiling C++ code, so set the
 
11344
# no_builtin_flag separately
 
11345
if test "$GXX" = yes; then
 
11346
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
11347
else
 
11348
  lt_prog_compiler_no_builtin_flag_CXX=
 
11349
fi
 
11350
 
 
11351
if test "$GXX" = yes; then
 
11352
  # Set up default GNU C++ configuration
 
11353
 
 
11354
 
 
11355
# Check whether --with-gnu-ld was given.
 
11356
if test "${with_gnu_ld+set}" = set; then
 
11357
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
11358
else
 
11359
  with_gnu_ld=no
 
11360
fi
 
11361
 
 
11362
ac_prog=ld
 
11363
if test "$GCC" = yes; then
 
11364
  # Check if gcc -print-prog-name=ld gives a path.
 
11365
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
11366
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
 
11367
  case $host in
 
11368
  *-*-mingw*)
 
11369
    # gcc leaves a trailing carriage return which upsets mingw
 
11370
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
11371
  *)
 
11372
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
11373
  esac
 
11374
  case $ac_prog in
 
11375
    # Accept absolute paths.
 
11376
    [\\/]* | ?:[\\/]*)
 
11377
      re_direlt='/[^/][^/]*/\.\./'
 
11378
      # Canonicalize the pathname of ld
 
11379
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
11380
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
11381
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
11382
      done
 
11383
      test -z "$LD" && LD="$ac_prog"
 
11384
      ;;
 
11385
  "")
 
11386
    # If it fails, then pretend we aren't using GCC.
 
11387
    ac_prog=ld
 
11388
    ;;
 
11389
  *)
 
11390
    # If it is relative, then search for the first ld in PATH.
 
11391
    with_gnu_ld=unknown
 
11392
    ;;
 
11393
  esac
 
11394
elif test "$with_gnu_ld" = yes; then
 
11395
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
 
11396
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
 
11397
else
 
11398
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
11399
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
 
11400
fi
 
11401
if test "${lt_cv_path_LD+set}" = set; then
 
11402
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11403
else
 
11404
  if test -z "$LD"; then
 
11405
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
11406
  for ac_dir in $PATH; do
 
11407
    IFS="$lt_save_ifs"
 
11408
    test -z "$ac_dir" && ac_dir=.
 
11409
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
11410
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
11411
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
11412
      # but apparently some variants of GNU ld only accept -v.
 
11413
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
11414
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
11415
      *GNU* | *'with BFD'*)
 
11416
        test "$with_gnu_ld" != no && break
 
11417
        ;;
 
11418
      *)
 
11419
        test "$with_gnu_ld" != yes && break
 
11420
        ;;
 
11421
      esac
 
11422
    fi
 
11423
  done
 
11424
  IFS="$lt_save_ifs"
 
11425
else
 
11426
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
11427
fi
 
11428
fi
 
11429
 
 
11430
LD="$lt_cv_path_LD"
 
11431
if test -n "$LD"; then
 
11432
  { echo "$as_me:$LINENO: result: $LD" >&5
 
11433
echo "${ECHO_T}$LD" >&6; }
 
11434
else
 
11435
  { echo "$as_me:$LINENO: result: no" >&5
 
11436
echo "${ECHO_T}no" >&6; }
 
11437
fi
 
11438
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
11439
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
11440
   { (exit 1); exit 1; }; }
 
11441
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
11442
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
 
11443
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
11444
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11445
else
 
11446
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
11447
case `$LD -v 2>&1 </dev/null` in
 
11448
*GNU* | *'with BFD'*)
 
11449
  lt_cv_prog_gnu_ld=yes
 
11450
  ;;
 
11451
*)
 
11452
  lt_cv_prog_gnu_ld=no
 
11453
  ;;
 
11454
esac
 
11455
fi
 
11456
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
11457
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
 
11458
with_gnu_ld=$lt_cv_prog_gnu_ld
 
11459
 
 
11460
 
 
11461
 
 
11462
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
11463
  # archiving commands below assume that GNU ld is being used.
 
11464
  if test "$with_gnu_ld" = yes; then
 
11465
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11466
    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'
 
11467
 
 
11468
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
11469
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11470
 
 
11471
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
11472
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
11473
    #     investigate it a little bit more. (MM)
 
11474
    wlarc='${wl}'
 
11475
 
 
11476
    # ancient GNU ld didn't support --whole-archive et. al.
 
11477
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
11478
        grep 'no-whole-archive' > /dev/null; then
 
11479
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
11480
    else
 
11481
      whole_archive_flag_spec_CXX=
 
11482
    fi
 
11483
  else
 
11484
    with_gnu_ld=no
 
11485
    wlarc=
 
11486
 
 
11487
    # A generic and very simple default shared library creation
 
11488
    # command for GNU C++ for the case where it uses the native
 
11489
    # linker, instead of GNU ld.  If possible, this setting should
 
11490
    # overridden to take advantage of the native linker features on
 
11491
    # the platform it is being used on.
 
11492
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
11493
  fi
 
11494
 
 
11495
  # Commands to make compiler produce verbose output that lists
 
11496
  # what "hidden" libraries, object files and flags are used when
 
11497
  # linking a shared library.
 
11498
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
11499
 
 
11500
else
 
11501
  GXX=no
 
11502
  with_gnu_ld=no
 
11503
  wlarc=
 
11504
fi
 
11505
 
 
11506
# PORTME: fill in a description of your system's C++ link characteristics
 
11507
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
11508
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
11509
ld_shlibs_CXX=yes
 
11510
case $host_os in
 
11511
  aix3*)
 
11512
    # FIXME: insert proper C++ library support
 
11513
    ld_shlibs_CXX=no
 
11514
    ;;
 
11515
  aix4* | aix5*)
 
11516
    if test "$host_cpu" = ia64; then
 
11517
      # On IA64, the linker does run time linking by default, so we don't
 
11518
      # have to do anything special.
 
11519
      aix_use_runtimelinking=no
 
11520
      exp_sym_flag='-Bexport'
 
11521
      no_entry_flag=""
 
11522
    else
 
11523
      aix_use_runtimelinking=no
 
11524
 
 
11525
      # Test if we are trying to use run time linking or normal
 
11526
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
11527
      # need to do runtime linking.
 
11528
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
11529
        for ld_flag in $LDFLAGS; do
 
11530
          case $ld_flag in
 
11531
          *-brtl*)
 
11532
            aix_use_runtimelinking=yes
 
11533
            break
 
11534
            ;;
 
11535
          esac
 
11536
        done
 
11537
        ;;
 
11538
      esac
 
11539
 
 
11540
      exp_sym_flag='-bexport'
 
11541
      no_entry_flag='-bnoentry'
 
11542
    fi
 
11543
 
 
11544
    # When large executables or shared objects are built, AIX ld can
 
11545
    # have problems creating the table of contents.  If linking a library
 
11546
    # or program results in "error TOC overflow" add -mminimal-toc to
 
11547
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
11548
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
11549
 
 
11550
    archive_cmds_CXX=''
 
11551
    hardcode_direct_CXX=yes
 
11552
    hardcode_libdir_separator_CXX=':'
 
11553
    link_all_deplibs_CXX=yes
 
11554
 
 
11555
    if test "$GXX" = yes; then
 
11556
      case $host_os in aix4.[012]|aix4.[012].*)
 
11557
      # We only want to do this on AIX 4.2 and lower, the check
 
11558
      # below for broken collect2 doesn't work under 4.3+
 
11559
        collect2name=`${CC} -print-prog-name=collect2`
 
11560
        if test -f "$collect2name" && \
 
11561
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
11562
        then
 
11563
          # We have reworked collect2
 
11564
          hardcode_direct_CXX=yes
 
11565
        else
 
11566
          # We have old collect2
 
11567
          hardcode_direct_CXX=unsupported
 
11568
          # It fails to find uninstalled libraries when the uninstalled
 
11569
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
11570
          # to unsupported forces relinking
 
11571
          hardcode_minus_L_CXX=yes
 
11572
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
11573
          hardcode_libdir_separator_CXX=
 
11574
        fi
 
11575
        ;;
 
11576
      esac
 
11577
      shared_flag='-shared'
 
11578
      if test "$aix_use_runtimelinking" = yes; then
 
11579
        shared_flag="$shared_flag "'${wl}-G'
 
11580
      fi
 
11581
    else
 
11582
      # not using gcc
 
11583
      if test "$host_cpu" = ia64; then
 
11584
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
11585
        # chokes on -Wl,-G. The following line is correct:
 
11586
        shared_flag='-G'
 
11587
      else
 
11588
        if test "$aix_use_runtimelinking" = yes; then
 
11589
          shared_flag='${wl}-G'
 
11590
        else
 
11591
          shared_flag='${wl}-bM:SRE'
 
11592
        fi
 
11593
      fi
 
11594
    fi
 
11595
 
 
11596
    # It seems that -bexpall does not export symbols beginning with
 
11597
    # underscore (_), so it is better to generate a list of symbols to export.
 
11598
    always_export_symbols_CXX=yes
 
11599
    if test "$aix_use_runtimelinking" = yes; then
 
11600
      # Warning - without using the other runtime loading flags (-brtl),
 
11601
      # -berok will link without error, but may produce a broken library.
 
11602
      allow_undefined_flag_CXX='-berok'
 
11603
      # Determine the default libpath from the value encoded in an empty executable.
 
11604
      cat >conftest.$ac_ext <<_ACEOF
 
11605
/* confdefs.h.  */
 
11606
_ACEOF
 
11607
cat confdefs.h >>conftest.$ac_ext
 
11608
cat >>conftest.$ac_ext <<_ACEOF
 
11609
/* end confdefs.h.  */
 
11610
 
 
11611
int
 
11612
main ()
 
11613
{
 
11614
 
 
11615
  ;
 
11616
  return 0;
 
11617
}
 
11618
_ACEOF
 
11619
rm -f conftest.$ac_objext conftest$ac_exeext
 
11620
if { (ac_try="$ac_link"
 
11621
case "(($ac_try" in
 
11622
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11623
  *) ac_try_echo=$ac_try;;
 
11624
esac
 
11625
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11626
  (eval "$ac_link") 2>conftest.er1
 
11627
  ac_status=$?
 
11628
  grep -v '^ *+' conftest.er1 >conftest.err
 
11629
  rm -f conftest.er1
 
11630
  cat conftest.err >&5
 
11631
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11632
  (exit $ac_status); } &&
 
11633
         { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
 
11634
  { (case "(($ac_try" in
 
11635
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11636
  *) ac_try_echo=$ac_try;;
 
11637
esac
 
11638
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11639
  (eval "$ac_try") 2>&5
 
11640
  ac_status=$?
 
11641
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11642
  (exit $ac_status); }; } &&
 
11643
         { ac_try='test -s conftest$ac_exeext'
 
11644
  { (case "(($ac_try" in
 
11645
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11646
  *) ac_try_echo=$ac_try;;
 
11647
esac
 
11648
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11649
  (eval "$ac_try") 2>&5
 
11650
  ac_status=$?
 
11651
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11652
  (exit $ac_status); }; }; then
 
11653
 
 
11654
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
11655
}'`
 
11656
# Check for a 64-bit object if we didn't find anything.
 
11657
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
11658
}'`; fi
 
11659
else
 
11660
  echo "$as_me: failed program was:" >&5
 
11661
sed 's/^/| /' conftest.$ac_ext >&5
 
11662
 
 
11663
 
 
11664
fi
 
11665
 
 
11666
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11667
      conftest$ac_exeext conftest.$ac_ext
 
11668
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
11669
 
 
11670
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
11671
 
 
11672
      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"
 
11673
     else
 
11674
      if test "$host_cpu" = ia64; then
 
11675
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
11676
        allow_undefined_flag_CXX="-z nodefs"
 
11677
        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"
 
11678
      else
 
11679
        # Determine the default libpath from the value encoded in an empty executable.
 
11680
        cat >conftest.$ac_ext <<_ACEOF
 
11681
/* confdefs.h.  */
 
11682
_ACEOF
 
11683
cat confdefs.h >>conftest.$ac_ext
 
11684
cat >>conftest.$ac_ext <<_ACEOF
 
11685
/* end confdefs.h.  */
 
11686
 
 
11687
int
 
11688
main ()
 
11689
{
 
11690
 
 
11691
  ;
 
11692
  return 0;
 
11693
}
 
11694
_ACEOF
 
11695
rm -f conftest.$ac_objext conftest$ac_exeext
 
11696
if { (ac_try="$ac_link"
 
11697
case "(($ac_try" in
 
11698
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11699
  *) ac_try_echo=$ac_try;;
 
11700
esac
 
11701
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11702
  (eval "$ac_link") 2>conftest.er1
 
11703
  ac_status=$?
 
11704
  grep -v '^ *+' conftest.er1 >conftest.err
 
11705
  rm -f conftest.er1
 
11706
  cat conftest.err >&5
 
11707
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11708
  (exit $ac_status); } &&
 
11709
         { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
 
11710
  { (case "(($ac_try" in
 
11711
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11712
  *) ac_try_echo=$ac_try;;
 
11713
esac
 
11714
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11715
  (eval "$ac_try") 2>&5
 
11716
  ac_status=$?
 
11717
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11718
  (exit $ac_status); }; } &&
 
11719
         { ac_try='test -s conftest$ac_exeext'
 
11720
  { (case "(($ac_try" in
 
11721
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11722
  *) ac_try_echo=$ac_try;;
 
11723
esac
 
11724
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11725
  (eval "$ac_try") 2>&5
 
11726
  ac_status=$?
 
11727
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11728
  (exit $ac_status); }; }; then
 
11729
 
 
11730
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
11731
}'`
 
11732
# Check for a 64-bit object if we didn't find anything.
 
11733
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
11734
}'`; fi
 
11735
else
 
11736
  echo "$as_me: failed program was:" >&5
 
11737
sed 's/^/| /' conftest.$ac_ext >&5
 
11738
 
 
11739
 
 
11740
fi
 
11741
 
 
11742
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11743
      conftest$ac_exeext conftest.$ac_ext
 
11744
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
11745
 
 
11746
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
11747
        # Warning - without using the other run time loading flags,
 
11748
        # -berok will link without error, but may produce a broken library.
 
11749
        no_undefined_flag_CXX=' ${wl}-bernotok'
 
11750
        allow_undefined_flag_CXX=' ${wl}-berok'
 
11751
        # Exported symbols can be pulled into shared objects from archives
 
11752
        whole_archive_flag_spec_CXX='$convenience'
 
11753
        archive_cmds_need_lc_CXX=yes
 
11754
        # This is similar to how AIX traditionally builds its shared libraries.
 
11755
        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'
 
11756
      fi
 
11757
    fi
 
11758
    ;;
 
11759
 
 
11760
  beos*)
 
11761
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
11762
      allow_undefined_flag_CXX=unsupported
 
11763
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
11764
      # support --undefined.  This deserves some investigation.  FIXME
 
11765
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11766
    else
 
11767
      ld_shlibs_CXX=no
 
11768
    fi
 
11769
    ;;
 
11770
 
 
11771
  chorus*)
 
11772
    case $cc_basename in
 
11773
      *)
 
11774
        # FIXME: insert proper C++ library support
 
11775
        ld_shlibs_CXX=no
 
11776
        ;;
 
11777
    esac
 
11778
    ;;
 
11779
 
 
11780
  cygwin* | mingw* | pw32*)
 
11781
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
11782
    # as there is no search path for DLLs.
 
11783
    hardcode_libdir_flag_spec_CXX='-L$libdir'
 
11784
    allow_undefined_flag_CXX=unsupported
 
11785
    always_export_symbols_CXX=no
 
11786
    enable_shared_with_static_runtimes_CXX=yes
 
11787
 
 
11788
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
11789
      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'
 
11790
      # If the export-symbols file already is a .def file (1st line
 
11791
      # is EXPORTS), use it as is; otherwise, prepend...
 
11792
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
11793
        cp $export_symbols $output_objdir/$soname.def;
 
11794
      else
 
11795
        echo EXPORTS > $output_objdir/$soname.def;
 
11796
        cat $export_symbols >> $output_objdir/$soname.def;
 
11797
      fi~
 
11798
      $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'
 
11799
    else
 
11800
      ld_shlibs_CXX=no
 
11801
    fi
 
11802
  ;;
 
11803
      darwin* | rhapsody*)
 
11804
        case $host_os in
 
11805
        rhapsody* | darwin1.[012])
 
11806
         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
 
11807
         ;;
 
11808
       *) # Darwin 1.3 on
 
11809
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
11810
           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
11811
         else
 
11812
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
11813
             10.[012])
 
11814
               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
11815
               ;;
 
11816
             10.*)
 
11817
               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
 
11818
               ;;
 
11819
           esac
 
11820
         fi
 
11821
         ;;
 
11822
        esac
 
11823
      archive_cmds_need_lc_CXX=no
 
11824
      hardcode_direct_CXX=no
 
11825
      hardcode_automatic_CXX=yes
 
11826
      hardcode_shlibpath_var_CXX=unsupported
 
11827
      whole_archive_flag_spec_CXX=''
 
11828
      link_all_deplibs_CXX=yes
 
11829
 
 
11830
    if test "$GXX" = yes ; then
 
11831
      lt_int_apple_cc_single_mod=no
 
11832
      output_verbose_link_cmd='echo'
 
11833
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
 
11834
       lt_int_apple_cc_single_mod=yes
 
11835
      fi
 
11836
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
11837
       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
11838
      else
 
11839
          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'
 
11840
        fi
 
11841
        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
11842
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
11843
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
11844
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
11845
          else
 
11846
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
11847
          fi
 
11848
            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}'
 
11849
      else
 
11850
      case $cc_basename in
 
11851
        xlc*)
 
11852
         output_verbose_link_cmd='echo'
 
11853
          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
11854
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
11855
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
11856
          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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
11857
          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}'
 
11858
          ;;
 
11859
       *)
 
11860
         ld_shlibs_CXX=no
 
11861
          ;;
 
11862
      esac
 
11863
      fi
 
11864
        ;;
 
11865
 
 
11866
  dgux*)
 
11867
    case $cc_basename in
 
11868
      ec++*)
 
11869
        # FIXME: insert proper C++ library support
 
11870
        ld_shlibs_CXX=no
 
11871
        ;;
 
11872
      ghcx*)
 
11873
        # Green Hills C++ Compiler
 
11874
        # FIXME: insert proper C++ library support
 
11875
        ld_shlibs_CXX=no
 
11876
        ;;
 
11877
      *)
 
11878
        # FIXME: insert proper C++ library support
 
11879
        ld_shlibs_CXX=no
 
11880
        ;;
 
11881
    esac
 
11882
    ;;
 
11883
  freebsd[12]*)
 
11884
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
11885
    ld_shlibs_CXX=no
 
11886
    ;;
 
11887
  freebsd-elf*)
 
11888
    archive_cmds_need_lc_CXX=no
 
11889
    ;;
 
11890
  freebsd* | dragonfly*)
 
11891
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
11892
    # conventions
 
11893
    ld_shlibs_CXX=yes
 
11894
    ;;
 
11895
  gnu*)
 
11896
    ;;
 
11897
  hpux9*)
 
11898
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
11899
    hardcode_libdir_separator_CXX=:
 
11900
    export_dynamic_flag_spec_CXX='${wl}-E'
 
11901
    hardcode_direct_CXX=yes
 
11902
    hardcode_minus_L_CXX=yes # Not in the search PATH,
 
11903
                                # but as the default
 
11904
                                # location of the library.
 
11905
 
 
11906
    case $cc_basename in
 
11907
    CC*)
 
11908
      # FIXME: insert proper C++ library support
 
11909
      ld_shlibs_CXX=no
 
11910
      ;;
 
11911
    aCC*)
 
11912
      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'
 
11913
      # Commands to make compiler produce verbose output that lists
 
11914
      # what "hidden" libraries, object files and flags are used when
 
11915
      # linking a shared library.
 
11916
      #
 
11917
      # There doesn't appear to be a way to prevent this compiler from
 
11918
      # explicitly linking system object files so we need to strip them
 
11919
      # from the output so that they don't get included in the library
 
11920
      # dependencies.
 
11921
      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'
 
11922
      ;;
 
11923
    *)
 
11924
      if test "$GXX" = yes; then
 
11925
        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'
 
11926
      else
 
11927
        # FIXME: insert proper C++ library support
 
11928
        ld_shlibs_CXX=no
 
11929
      fi
 
11930
      ;;
 
11931
    esac
 
11932
    ;;
 
11933
  hpux10*|hpux11*)
 
11934
    if test $with_gnu_ld = no; then
 
11935
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
11936
      hardcode_libdir_separator_CXX=:
 
11937
 
 
11938
      case $host_cpu in
 
11939
      hppa*64*|ia64*)
 
11940
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
 
11941
        ;;
 
11942
      *)
 
11943
        export_dynamic_flag_spec_CXX='${wl}-E'
 
11944
        ;;
 
11945
      esac
 
11946
    fi
 
11947
    case $host_cpu in
 
11948
    hppa*64*|ia64*)
 
11949
      hardcode_direct_CXX=no
 
11950
      hardcode_shlibpath_var_CXX=no
 
11951
      ;;
 
11952
    *)
 
11953
      hardcode_direct_CXX=yes
 
11954
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
11955
                                              # but as the default
 
11956
                                              # location of the library.
 
11957
      ;;
 
11958
    esac
 
11959
 
 
11960
    case $cc_basename in
 
11961
      CC*)
 
11962
        # FIXME: insert proper C++ library support
 
11963
        ld_shlibs_CXX=no
 
11964
        ;;
 
11965
      aCC*)
 
11966
        case $host_cpu in
 
11967
        hppa*64*)
 
11968
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11969
          ;;
 
11970
        ia64*)
 
11971
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11972
          ;;
 
11973
        *)
 
11974
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11975
          ;;
 
11976
        esac
 
11977
        # Commands to make compiler produce verbose output that lists
 
11978
        # what "hidden" libraries, object files and flags are used when
 
11979
        # linking a shared library.
 
11980
        #
 
11981
        # There doesn't appear to be a way to prevent this compiler from
 
11982
        # explicitly linking system object files so we need to strip them
 
11983
        # from the output so that they don't get included in the library
 
11984
        # dependencies.
 
11985
        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'
 
11986
        ;;
 
11987
      *)
 
11988
        if test "$GXX" = yes; then
 
11989
          if test $with_gnu_ld = no; then
 
11990
            case $host_cpu in
 
11991
            hppa*64*)
 
11992
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11993
              ;;
 
11994
            ia64*)
 
11995
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11996
              ;;
 
11997
            *)
 
11998
              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'
 
11999
              ;;
 
12000
            esac
 
12001
          fi
 
12002
        else
 
12003
          # FIXME: insert proper C++ library support
 
12004
          ld_shlibs_CXX=no
 
12005
        fi
 
12006
        ;;
 
12007
    esac
 
12008
    ;;
 
12009
  interix3*)
 
12010
    hardcode_direct_CXX=no
 
12011
    hardcode_shlibpath_var_CXX=no
 
12012
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12013
    export_dynamic_flag_spec_CXX='${wl}-E'
 
12014
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
12015
    # Instead, shared libraries are loaded at an image base (0x10000000 by
 
12016
    # default) and relocated if they conflict, which is a slow very memory
 
12017
    # consuming and fragmenting process.  To avoid this, we pick a random,
 
12018
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
12019
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
12020
    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'
 
12021
    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'
 
12022
    ;;
 
12023
  irix5* | irix6*)
 
12024
    case $cc_basename in
 
12025
      CC*)
 
12026
        # SGI C++
 
12027
        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'
 
12028
 
 
12029
        # Archives containing C++ object files must be created using
 
12030
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
12031
        # necessary to make sure instantiated templates are included
 
12032
        # in the archive.
 
12033
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
12034
        ;;
 
12035
      *)
 
12036
        if test "$GXX" = yes; then
 
12037
          if test "$with_gnu_ld" = no; then
 
12038
            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'
 
12039
          else
 
12040
            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'
 
12041
          fi
 
12042
        fi
 
12043
        link_all_deplibs_CXX=yes
 
12044
        ;;
 
12045
    esac
 
12046
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12047
    hardcode_libdir_separator_CXX=:
 
12048
    ;;
 
12049
  linux* | k*bsd*-gnu)
 
12050
    case $cc_basename in
 
12051
      KCC*)
 
12052
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
12053
 
 
12054
        # KCC will only create a shared library if the output file
 
12055
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
12056
        # to its proper name (with version) after linking.
 
12057
        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'
 
12058
        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'
 
12059
        # Commands to make compiler produce verbose output that lists
 
12060
        # what "hidden" libraries, object files and flags are used when
 
12061
        # linking a shared library.
 
12062
        #
 
12063
        # There doesn't appear to be a way to prevent this compiler from
 
12064
        # explicitly linking system object files so we need to strip them
 
12065
        # from the output so that they don't get included in the library
 
12066
        # dependencies.
 
12067
        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'
 
12068
 
 
12069
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
 
12070
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12071
 
 
12072
        # Archives containing C++ object files must be created using
 
12073
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
12074
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
12075
        ;;
 
12076
      icpc*)
 
12077
        # Intel C++
 
12078
        with_gnu_ld=yes
 
12079
        # version 8.0 and above of icpc choke on multiply defined symbols
 
12080
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
12081
        # earlier do not add the objects themselves.
 
12082
        case `$CC -V 2>&1` in
 
12083
        *"Version 7."*)
 
12084
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12085
          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'
 
12086
          ;;
 
12087
        *)  # Version 8.0 or newer
 
12088
          tmp_idyn=
 
12089
          case $host_cpu in
 
12090
            ia64*) tmp_idyn=' -i_dynamic';;
 
12091
          esac
 
12092
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12093
          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'
 
12094
          ;;
 
12095
        esac
 
12096
        archive_cmds_need_lc_CXX=no
 
12097
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12098
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12099
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
12100
        ;;
 
12101
      pgCC*)
 
12102
        # Portland Group C++ compiler
 
12103
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
12104
        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'
 
12105
 
 
12106
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
12107
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12108
        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'
 
12109
        ;;
 
12110
      cxx*)
 
12111
        # Compaq C++
 
12112
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12113
        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'
 
12114
 
 
12115
        runpath_var=LD_RUN_PATH
 
12116
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
12117
        hardcode_libdir_separator_CXX=:
 
12118
 
 
12119
        # Commands to make compiler produce verbose output that lists
 
12120
        # what "hidden" libraries, object files and flags are used when
 
12121
        # linking a shared library.
 
12122
        #
 
12123
        # There doesn't appear to be a way to prevent this compiler from
 
12124
        # explicitly linking system object files so we need to strip them
 
12125
        # from the output so that they don't get included in the library
 
12126
        # dependencies.
 
12127
        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'
 
12128
        ;;
 
12129
    esac
 
12130
    ;;
 
12131
  lynxos*)
 
12132
    # FIXME: insert proper C++ library support
 
12133
    ld_shlibs_CXX=no
 
12134
    ;;
 
12135
  m88k*)
 
12136
    # FIXME: insert proper C++ library support
 
12137
    ld_shlibs_CXX=no
 
12138
    ;;
 
12139
  mvs*)
 
12140
    case $cc_basename in
 
12141
      cxx*)
 
12142
        # FIXME: insert proper C++ library support
 
12143
        ld_shlibs_CXX=no
 
12144
        ;;
 
12145
      *)
 
12146
        # FIXME: insert proper C++ library support
 
12147
        ld_shlibs_CXX=no
 
12148
        ;;
 
12149
    esac
 
12150
    ;;
 
12151
  netbsd* | netbsdelf*-gnu)
 
12152
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
12153
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
12154
      wlarc=
 
12155
      hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12156
      hardcode_direct_CXX=yes
 
12157
      hardcode_shlibpath_var_CXX=no
 
12158
    fi
 
12159
    # Workaround some broken pre-1.5 toolchains
 
12160
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
12161
    ;;
 
12162
  openbsd2*)
 
12163
    # C++ shared libraries are fairly broken
 
12164
    ld_shlibs_CXX=no
 
12165
    ;;
 
12166
  openbsd*)
 
12167
    hardcode_direct_CXX=yes
 
12168
    hardcode_shlibpath_var_CXX=no
 
12169
    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
12170
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12171
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
12172
      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
12173
      export_dynamic_flag_spec_CXX='${wl}-E'
 
12174
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
12175
    fi
 
12176
    output_verbose_link_cmd='echo'
 
12177
    ;;
 
12178
  osf3*)
 
12179
    case $cc_basename in
 
12180
      KCC*)
 
12181
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
12182
 
 
12183
        # KCC will only create a shared library if the output file
 
12184
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
12185
        # to its proper name (with version) after linking.
 
12186
        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'
 
12187
 
 
12188
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12189
        hardcode_libdir_separator_CXX=:
 
12190
 
 
12191
        # Archives containing C++ object files must be created using
 
12192
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
12193
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
12194
 
 
12195
        ;;
 
12196
      RCC*)
 
12197
        # Rational C++ 2.4.1
 
12198
        # FIXME: insert proper C++ library support
 
12199
        ld_shlibs_CXX=no
 
12200
        ;;
 
12201
      cxx*)
 
12202
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
12203
        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'
 
12204
 
 
12205
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12206
        hardcode_libdir_separator_CXX=:
 
12207
 
 
12208
        # Commands to make compiler produce verbose output that lists
 
12209
        # what "hidden" libraries, object files and flags are used when
 
12210
        # linking a shared library.
 
12211
        #
 
12212
        # There doesn't appear to be a way to prevent this compiler from
 
12213
        # explicitly linking system object files so we need to strip them
 
12214
        # from the output so that they don't get included in the library
 
12215
        # dependencies.
 
12216
        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'
 
12217
        ;;
 
12218
      *)
 
12219
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
12220
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
12221
          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'
 
12222
 
 
12223
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12224
          hardcode_libdir_separator_CXX=:
 
12225
 
 
12226
          # Commands to make compiler produce verbose output that lists
 
12227
          # what "hidden" libraries, object files and flags are used when
 
12228
          # linking a shared library.
 
12229
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
12230
 
 
12231
        else
 
12232
          # FIXME: insert proper C++ library support
 
12233
          ld_shlibs_CXX=no
 
12234
        fi
 
12235
        ;;
 
12236
    esac
 
12237
    ;;
 
12238
  osf4* | osf5*)
 
12239
    case $cc_basename in
 
12240
      KCC*)
 
12241
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
12242
 
 
12243
        # KCC will only create a shared library if the output file
 
12244
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
12245
        # to its proper name (with version) after linking.
 
12246
        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'
 
12247
 
 
12248
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12249
        hardcode_libdir_separator_CXX=:
 
12250
 
 
12251
        # Archives containing C++ object files must be created using
 
12252
        # the KAI C++ compiler.
 
12253
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
 
12254
        ;;
 
12255
      RCC*)
 
12256
        # Rational C++ 2.4.1
 
12257
        # FIXME: insert proper C++ library support
 
12258
        ld_shlibs_CXX=no
 
12259
        ;;
 
12260
      cxx*)
 
12261
        allow_undefined_flag_CXX=' -expect_unresolved \*'
 
12262
        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'
 
12263
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
12264
          echo "-hidden">> $lib.exp~
 
12265
          $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~
 
12266
          $rm $lib.exp'
 
12267
 
 
12268
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
12269
        hardcode_libdir_separator_CXX=:
 
12270
 
 
12271
        # Commands to make compiler produce verbose output that lists
 
12272
        # what "hidden" libraries, object files and flags are used when
 
12273
        # linking a shared library.
 
12274
        #
 
12275
        # There doesn't appear to be a way to prevent this compiler from
 
12276
        # explicitly linking system object files so we need to strip them
 
12277
        # from the output so that they don't get included in the library
 
12278
        # dependencies.
 
12279
        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'
 
12280
        ;;
 
12281
      *)
 
12282
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
12283
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
12284
         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'
 
12285
 
 
12286
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12287
          hardcode_libdir_separator_CXX=:
 
12288
 
 
12289
          # Commands to make compiler produce verbose output that lists
 
12290
          # what "hidden" libraries, object files and flags are used when
 
12291
          # linking a shared library.
 
12292
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
12293
 
 
12294
        else
 
12295
          # FIXME: insert proper C++ library support
 
12296
          ld_shlibs_CXX=no
 
12297
        fi
 
12298
        ;;
 
12299
    esac
 
12300
    ;;
 
12301
  psos*)
 
12302
    # FIXME: insert proper C++ library support
 
12303
    ld_shlibs_CXX=no
 
12304
    ;;
 
12305
  sunos4*)
 
12306
    case $cc_basename in
 
12307
      CC*)
 
12308
        # Sun C++ 4.x
 
12309
        # FIXME: insert proper C++ library support
 
12310
        ld_shlibs_CXX=no
 
12311
        ;;
 
12312
      lcc*)
 
12313
        # Lucid
 
12314
        # FIXME: insert proper C++ library support
 
12315
        ld_shlibs_CXX=no
 
12316
        ;;
 
12317
      *)
 
12318
        # FIXME: insert proper C++ library support
 
12319
        ld_shlibs_CXX=no
 
12320
        ;;
 
12321
    esac
 
12322
    ;;
 
12323
  solaris*)
 
12324
    case $cc_basename in
 
12325
      CC*)
 
12326
        # Sun C++ 4.2, 5.x and Centerline C++
 
12327
        archive_cmds_need_lc_CXX=yes
 
12328
        no_undefined_flag_CXX=' -zdefs'
 
12329
        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12330
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
12331
        $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'
 
12332
 
 
12333
        hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12334
        hardcode_shlibpath_var_CXX=no
 
12335
        case $host_os in
 
12336
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
12337
          *)
 
12338
            # The C++ compiler is used as linker so we must use $wl
 
12339
            # flag to pass the commands to the underlying system
 
12340
            # linker. We must also pass each convience library through
 
12341
            # to the system linker between allextract/defaultextract.
 
12342
            # The C++ compiler will combine linker options so we
 
12343
            # cannot just pass the convience library names through
 
12344
            # without $wl.
 
12345
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
12346
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
 
12347
            ;;
 
12348
        esac
 
12349
        link_all_deplibs_CXX=yes
 
12350
 
 
12351
        output_verbose_link_cmd='echo'
 
12352
 
 
12353
        # Archives containing C++ object files must be created using
 
12354
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
12355
        # necessary to make sure instantiated templates are included
 
12356
        # in the archive.
 
12357
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
12358
        ;;
 
12359
      gcx*)
 
12360
        # Green Hills C++ Compiler
 
12361
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12362
 
 
12363
        # The C++ compiler must be used to create the archive.
 
12364
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
12365
        ;;
 
12366
      *)
 
12367
        # GNU C++ compiler with Solaris linker
 
12368
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
12369
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
12370
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
12371
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12372
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
12373
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
12374
 
 
12375
            # Commands to make compiler produce verbose output that lists
 
12376
            # what "hidden" libraries, object files and flags are used when
 
12377
            # linking a shared library.
 
12378
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
12379
          else
 
12380
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
12381
            # platform.
 
12382
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12383
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
12384
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
12385
 
 
12386
            # Commands to make compiler produce verbose output that lists
 
12387
            # what "hidden" libraries, object files and flags are used when
 
12388
            # linking a shared library.
 
12389
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
12390
          fi
 
12391
 
 
12392
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
12393
        fi
 
12394
        ;;
 
12395
    esac
 
12396
    ;;
 
12397
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
12398
    no_undefined_flag_CXX='${wl}-z,text'
 
12399
    archive_cmds_need_lc_CXX=no
 
12400
    hardcode_shlibpath_var_CXX=no
 
12401
    runpath_var='LD_RUN_PATH'
 
12402
 
 
12403
    case $cc_basename in
 
12404
      CC*)
 
12405
        archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12406
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12407
        ;;
 
12408
      *)
 
12409
        archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12410
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12411
        ;;
 
12412
    esac
 
12413
    ;;
 
12414
  sysv5* | sco3.2v5* | sco5v6*)
 
12415
    # Note: We can NOT use -z defs as we might desire, because we do not
 
12416
    # link with -lc, and that would cause any symbols used from libc to
 
12417
    # always be unresolved, which means just about no library would
 
12418
    # ever link correctly.  If we're not using GNU ld we use -z text
 
12419
    # though, which does catch some bad symbols but isn't as heavy-handed
 
12420
    # as -z defs.
 
12421
    # For security reasons, it is highly recommended that you always
 
12422
    # use absolute paths for naming shared libraries, and exclude the
 
12423
    # DT_RUNPATH tag from executables and libraries.  But doing so
 
12424
    # requires that you compile everything twice, which is a pain.
 
12425
    # So that behaviour is only enabled if SCOABSPATH is set to a
 
12426
    # non-empty value in the environment.  Most likely only useful for
 
12427
    # creating official distributions of packages.
 
12428
    # This is a hack until libtool officially supports absolute path
 
12429
    # names for shared libraries.
 
12430
    no_undefined_flag_CXX='${wl}-z,text'
 
12431
    allow_undefined_flag_CXX='${wl}-z,nodefs'
 
12432
    archive_cmds_need_lc_CXX=no
 
12433
    hardcode_shlibpath_var_CXX=no
 
12434
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
12435
    hardcode_libdir_separator_CXX=':'
 
12436
    link_all_deplibs_CXX=yes
 
12437
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
 
12438
    runpath_var='LD_RUN_PATH'
 
12439
 
 
12440
    case $cc_basename in
 
12441
      CC*)
 
12442
        archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12443
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12444
        ;;
 
12445
      *)
 
12446
        archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12447
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12448
        ;;
 
12449
    esac
 
12450
    ;;
 
12451
  tandem*)
 
12452
    case $cc_basename in
 
12453
      NCC*)
 
12454
        # NonStop-UX NCC 3.20
 
12455
        # FIXME: insert proper C++ library support
 
12456
        ld_shlibs_CXX=no
 
12457
        ;;
 
12458
      *)
 
12459
        # FIXME: insert proper C++ library support
 
12460
        ld_shlibs_CXX=no
 
12461
        ;;
 
12462
    esac
 
12463
    ;;
 
12464
  vxworks*)
 
12465
    # FIXME: insert proper C++ library support
 
12466
    ld_shlibs_CXX=no
 
12467
    ;;
 
12468
  *)
 
12469
    # FIXME: insert proper C++ library support
 
12470
    ld_shlibs_CXX=no
 
12471
    ;;
 
12472
esac
 
12473
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
12474
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
 
12475
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
12476
 
 
12477
GCC_CXX="$GXX"
 
12478
LD_CXX="$LD"
 
12479
 
 
12480
 
 
12481
cat > conftest.$ac_ext <<EOF
 
12482
class Foo
 
12483
{
 
12484
public:
 
12485
  Foo (void) { a = 0; }
 
12486
private:
 
12487
  int a;
 
12488
};
 
12489
EOF
 
12490
 
 
12491
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12492
  (eval $ac_compile) 2>&5
 
12493
  ac_status=$?
 
12494
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12495
  (exit $ac_status); }; then
 
12496
  # Parse the compiler output and extract the necessary
 
12497
  # objects, libraries and library flags.
 
12498
 
 
12499
  # Sentinel used to keep track of whether or not we are before
 
12500
  # the conftest object file.
 
12501
  pre_test_object_deps_done=no
 
12502
 
 
12503
  # The `*' in the case matches for architectures that use `case' in
 
12504
  # $output_verbose_cmd can trigger glob expansion during the loop
 
12505
  # eval without this substitution.
 
12506
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
 
12507
 
 
12508
  for p in `eval $output_verbose_link_cmd`; do
 
12509
    case $p in
 
12510
 
 
12511
    -L* | -R* | -l*)
 
12512
       # Some compilers place space between "-{L,R}" and the path.
 
12513
       # Remove the space.
 
12514
       if test $p = "-L" \
 
12515
          || test $p = "-R"; then
 
12516
         prev=$p
 
12517
         continue
 
12518
       else
 
12519
         prev=
 
12520
       fi
 
12521
 
 
12522
       if test "$pre_test_object_deps_done" = no; then
 
12523
         case $p in
 
12524
         -L* | -R*)
 
12525
           # Internal compiler library paths should come after those
 
12526
           # provided the user.  The postdeps already come after the
 
12527
           # user supplied libs so there is no need to process them.
 
12528
           if test -z "$compiler_lib_search_path_CXX"; then
 
12529
             compiler_lib_search_path_CXX="${prev}${p}"
 
12530
           else
 
12531
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
12532
           fi
 
12533
           ;;
 
12534
         # The "-l" case would never come before the object being
 
12535
         # linked, so don't bother handling this case.
 
12536
         esac
 
12537
       else
 
12538
         if test -z "$postdeps_CXX"; then
 
12539
           postdeps_CXX="${prev}${p}"
 
12540
         else
 
12541
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
12542
         fi
 
12543
       fi
 
12544
       ;;
 
12545
 
 
12546
    *.$objext)
 
12547
       # This assumes that the test object file only shows up
 
12548
       # once in the compiler output.
 
12549
       if test "$p" = "conftest.$objext"; then
 
12550
         pre_test_object_deps_done=yes
 
12551
         continue
 
12552
       fi
 
12553
 
 
12554
       if test "$pre_test_object_deps_done" = no; then
 
12555
         if test -z "$predep_objects_CXX"; then
 
12556
           predep_objects_CXX="$p"
 
12557
         else
 
12558
           predep_objects_CXX="$predep_objects_CXX $p"
 
12559
         fi
 
12560
       else
 
12561
         if test -z "$postdep_objects_CXX"; then
 
12562
           postdep_objects_CXX="$p"
 
12563
         else
 
12564
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
12565
         fi
 
12566
       fi
 
12567
       ;;
 
12568
 
 
12569
    *) ;; # Ignore the rest.
 
12570
 
 
12571
    esac
 
12572
  done
 
12573
 
 
12574
  # Clean up.
 
12575
  rm -f a.out a.exe
 
12576
else
 
12577
  echo "libtool.m4: error: problem compiling CXX test program"
 
12578
fi
 
12579
 
 
12580
$rm -f confest.$objext
 
12581
 
 
12582
# PORTME: override above test on systems where it is broken
 
12583
case $host_os in
 
12584
interix3*)
 
12585
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
12586
  # hack all around it, let's just trust "g++" to DTRT.
 
12587
  predep_objects_CXX=
 
12588
  postdep_objects_CXX=
 
12589
  postdeps_CXX=
 
12590
  ;;
 
12591
 
 
12592
solaris*)
 
12593
  case $cc_basename in
 
12594
  CC*)
 
12595
    # Adding this requires a known-good setup of shared libraries for
 
12596
    # Sun compiler versions before 5.6, else PIC objects from an old
 
12597
    # archive will be linked into the output, leading to subtle bugs.
 
12598
    postdeps_CXX='-lCstd -lCrun'
 
12599
    ;;
 
12600
  esac
 
12601
  ;;
 
12602
esac
 
12603
 
 
12604
 
 
12605
case " $postdeps_CXX " in
 
12606
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
12607
esac
 
12608
 
 
12609
lt_prog_compiler_wl_CXX=
 
12610
lt_prog_compiler_pic_CXX=
 
12611
lt_prog_compiler_static_CXX=
 
12612
 
 
12613
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
12614
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
12615
 
 
12616
  # C++ specific cases for pic, static, wl, etc.
 
12617
  if test "$GXX" = yes; then
 
12618
    lt_prog_compiler_wl_CXX='-Wl,'
 
12619
    lt_prog_compiler_static_CXX='-static'
 
12620
 
 
12621
    case $host_os in
 
12622
    aix*)
 
12623
      # All AIX code is PIC.
 
12624
      if test "$host_cpu" = ia64; then
 
12625
        # AIX 5 now supports IA64 processor
 
12626
        lt_prog_compiler_static_CXX='-Bstatic'
 
12627
      fi
 
12628
      ;;
 
12629
    amigaos*)
 
12630
      # FIXME: we need at least 68020 code to build shared libraries, but
 
12631
      # adding the `-m68020' flag to GCC prevents building anything better,
 
12632
      # like `-m68040'.
 
12633
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
12634
      ;;
 
12635
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
12636
      # PIC is the default for these OSes.
 
12637
      ;;
 
12638
    mingw* | os2* | pw32*)
 
12639
      # This hack is so that the source file can tell whether it is being
 
12640
      # built for inclusion in a dll (and should export symbols for example).
 
12641
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
12642
      ;;
 
12643
    darwin* | rhapsody*)
 
12644
      # PIC is the default on this platform
 
12645
      # Common symbols not allowed in MH_DYLIB files
 
12646
      lt_prog_compiler_pic_CXX='-fno-common'
 
12647
      ;;
 
12648
    *djgpp*)
 
12649
      # DJGPP does not support shared libraries at all
 
12650
      lt_prog_compiler_pic_CXX=
 
12651
      ;;
 
12652
    interix3*)
 
12653
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
12654
      # Instead, we relocate shared libraries at runtime.
 
12655
      ;;
 
12656
    sysv4*MP*)
 
12657
      if test -d /usr/nec; then
 
12658
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
12659
      fi
 
12660
      ;;
 
12661
    hpux*)
 
12662
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
12663
      # not for PA HP-UX.
 
12664
      case $host_cpu in
 
12665
      hppa*64*|ia64*)
 
12666
        ;;
 
12667
      *)
 
12668
        lt_prog_compiler_pic_CXX='-fPIC'
 
12669
        ;;
 
12670
      esac
 
12671
      ;;
 
12672
    *)
 
12673
      lt_prog_compiler_pic_CXX='-fPIC'
 
12674
      ;;
 
12675
    esac
 
12676
  else
 
12677
    case $host_os in
 
12678
      aix4* | aix5*)
 
12679
        # All AIX code is PIC.
 
12680
        if test "$host_cpu" = ia64; then
 
12681
          # AIX 5 now supports IA64 processor
 
12682
          lt_prog_compiler_static_CXX='-Bstatic'
 
12683
        else
 
12684
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
12685
        fi
 
12686
        ;;
 
12687
      chorus*)
 
12688
        case $cc_basename in
 
12689
        cxch68*)
 
12690
          # Green Hills C++ Compiler
 
12691
          # _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"
 
12692
          ;;
 
12693
        esac
 
12694
        ;;
 
12695
       darwin*)
 
12696
         # PIC is the default on this platform
 
12697
         # Common symbols not allowed in MH_DYLIB files
 
12698
         case $cc_basename in
 
12699
           xlc*)
 
12700
           lt_prog_compiler_pic_CXX='-qnocommon'
 
12701
           lt_prog_compiler_wl_CXX='-Wl,'
 
12702
           ;;
 
12703
         esac
 
12704
       ;;
 
12705
      dgux*)
 
12706
        case $cc_basename in
 
12707
          ec++*)
 
12708
            lt_prog_compiler_pic_CXX='-KPIC'
 
12709
            ;;
 
12710
          ghcx*)
 
12711
            # Green Hills C++ Compiler
 
12712
            lt_prog_compiler_pic_CXX='-pic'
 
12713
            ;;
 
12714
          *)
 
12715
            ;;
 
12716
        esac
 
12717
        ;;
 
12718
      freebsd* | dragonfly*)
 
12719
        # FreeBSD uses GNU C++
 
12720
        ;;
 
12721
      hpux9* | hpux10* | hpux11*)
 
12722
        case $cc_basename in
 
12723
          CC*)
 
12724
            lt_prog_compiler_wl_CXX='-Wl,'
 
12725
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
12726
            if test "$host_cpu" != ia64; then
 
12727
              lt_prog_compiler_pic_CXX='+Z'
 
12728
            fi
 
12729
            ;;
 
12730
          aCC*)
 
12731
            lt_prog_compiler_wl_CXX='-Wl,'
 
12732
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
12733
            case $host_cpu in
 
12734
            hppa*64*|ia64*)
 
12735
              # +Z the default
 
12736
              ;;
 
12737
            *)
 
12738
              lt_prog_compiler_pic_CXX='+Z'
 
12739
              ;;
 
12740
            esac
 
12741
            ;;
 
12742
          *)
 
12743
            ;;
 
12744
        esac
 
12745
        ;;
 
12746
      interix*)
 
12747
        # This is c89, which is MS Visual C++ (no shared libs)
 
12748
        # Anyone wants to do a port?
 
12749
        ;;
 
12750
      irix5* | irix6* | nonstopux*)
 
12751
        case $cc_basename in
 
12752
          CC*)
 
12753
            lt_prog_compiler_wl_CXX='-Wl,'
 
12754
            lt_prog_compiler_static_CXX='-non_shared'
 
12755
            # CC pic flag -KPIC is the default.
 
12756
            ;;
 
12757
          *)
 
12758
            ;;
 
12759
        esac
 
12760
        ;;
 
12761
      linux* | k*bsd*-gnu)
 
12762
        case $cc_basename in
 
12763
          KCC*)
 
12764
            # KAI C++ Compiler
 
12765
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
12766
            lt_prog_compiler_pic_CXX='-fPIC'
 
12767
            ;;
 
12768
          icpc* | ecpc*)
 
12769
            # Intel C++
 
12770
            lt_prog_compiler_wl_CXX='-Wl,'
 
12771
            lt_prog_compiler_pic_CXX='-KPIC'
 
12772
            lt_prog_compiler_static_CXX='-static'
 
12773
            ;;
 
12774
          pgCC*)
 
12775
            # Portland Group C++ compiler.
 
12776
            lt_prog_compiler_wl_CXX='-Wl,'
 
12777
            lt_prog_compiler_pic_CXX='-fpic'
 
12778
            lt_prog_compiler_static_CXX='-Bstatic'
 
12779
            ;;
 
12780
          cxx*)
 
12781
            # Compaq C++
 
12782
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
12783
            # Linux and Compaq Tru64 Unix objects are PIC.
 
12784
            lt_prog_compiler_pic_CXX=
 
12785
            lt_prog_compiler_static_CXX='-non_shared'
 
12786
            ;;
 
12787
          *)
 
12788
            ;;
 
12789
        esac
 
12790
        ;;
 
12791
      lynxos*)
 
12792
        ;;
 
12793
      m88k*)
 
12794
        ;;
 
12795
      mvs*)
 
12796
        case $cc_basename in
 
12797
          cxx*)
 
12798
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
12799
            ;;
 
12800
          *)
 
12801
            ;;
 
12802
        esac
 
12803
        ;;
 
12804
      netbsd* | netbsdelf*-gnu)
 
12805
        ;;
 
12806
      osf3* | osf4* | osf5*)
 
12807
        case $cc_basename in
 
12808
          KCC*)
 
12809
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
12810
            ;;
 
12811
          RCC*)
 
12812
            # Rational C++ 2.4.1
 
12813
            lt_prog_compiler_pic_CXX='-pic'
 
12814
            ;;
 
12815
          cxx*)
 
12816
            # Digital/Compaq C++
 
12817
            lt_prog_compiler_wl_CXX='-Wl,'
 
12818
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
12819
            # Linux and Compaq Tru64 Unix objects are PIC.
 
12820
            lt_prog_compiler_pic_CXX=
 
12821
            lt_prog_compiler_static_CXX='-non_shared'
 
12822
            ;;
 
12823
          *)
 
12824
            ;;
 
12825
        esac
 
12826
        ;;
 
12827
      psos*)
 
12828
        ;;
 
12829
      solaris*)
 
12830
        case $cc_basename in
 
12831
          CC*)
 
12832
            # Sun C++ 4.2, 5.x and Centerline C++
 
12833
            lt_prog_compiler_pic_CXX='-KPIC'
 
12834
            lt_prog_compiler_static_CXX='-Bstatic'
 
12835
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
12836
            ;;
 
12837
          gcx*)
 
12838
            # Green Hills C++ Compiler
 
12839
            lt_prog_compiler_pic_CXX='-PIC'
 
12840
            ;;
 
12841
          *)
 
12842
            ;;
 
12843
        esac
 
12844
        ;;
 
12845
      sunos4*)
 
12846
        case $cc_basename in
 
12847
          CC*)
 
12848
            # Sun C++ 4.x
 
12849
            lt_prog_compiler_pic_CXX='-pic'
 
12850
            lt_prog_compiler_static_CXX='-Bstatic'
 
12851
            ;;
 
12852
          lcc*)
 
12853
            # Lucid
 
12854
            lt_prog_compiler_pic_CXX='-pic'
 
12855
            ;;
 
12856
          *)
 
12857
            ;;
 
12858
        esac
 
12859
        ;;
 
12860
      tandem*)
 
12861
        case $cc_basename in
 
12862
          NCC*)
 
12863
            # NonStop-UX NCC 3.20
 
12864
            lt_prog_compiler_pic_CXX='-KPIC'
 
12865
            ;;
 
12866
          *)
 
12867
            ;;
 
12868
        esac
 
12869
        ;;
 
12870
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
12871
        case $cc_basename in
 
12872
          CC*)
 
12873
            lt_prog_compiler_wl_CXX='-Wl,'
 
12874
            lt_prog_compiler_pic_CXX='-KPIC'
 
12875
            lt_prog_compiler_static_CXX='-Bstatic'
 
12876
            ;;
 
12877
        esac
 
12878
        ;;
 
12879
      vxworks*)
 
12880
        ;;
 
12881
      *)
 
12882
        lt_prog_compiler_can_build_shared_CXX=no
 
12883
        ;;
 
12884
    esac
 
12885
  fi
 
12886
 
 
12887
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
12888
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
 
12889
 
 
12890
#
 
12891
# Check to make sure the PIC flag actually works.
 
12892
#
 
12893
if test -n "$lt_prog_compiler_pic_CXX"; then
 
12894
 
 
12895
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
12896
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
 
12897
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
 
12898
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12899
else
 
12900
  lt_prog_compiler_pic_works_CXX=no
 
12901
  ac_outfile=conftest.$ac_objext
 
12902
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12903
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
12904
   # Insert the option either (1) after the last *FLAGS variable, or
 
12905
   # (2) before a word containing "conftest.", or (3) at the end.
 
12906
   # Note that $ac_compile itself does not contain backslashes and begins
 
12907
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
12908
   # The option is referenced via a variable to avoid confusing sed.
 
12909
   lt_compile=`echo "$ac_compile" | $SED \
 
12910
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
12911
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
12912
   -e 's:$: $lt_compiler_flag:'`
 
12913
   (eval echo "\"\$as_me:12913: $lt_compile\"" >&5)
 
12914
   (eval "$lt_compile" 2>conftest.err)
 
12915
   ac_status=$?
 
12916
   cat conftest.err >&5
 
12917
   echo "$as_me:12917: \$? = $ac_status" >&5
 
12918
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
12919
     # The compiler can only warn and ignore the option if not recognized
 
12920
     # So say no if there are warnings other than the usual output.
 
12921
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
12922
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
12923
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
12924
       lt_prog_compiler_pic_works_CXX=yes
 
12925
     fi
 
12926
   fi
 
12927
   $rm conftest*
 
12928
 
 
12929
fi
 
12930
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
 
12931
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
 
12932
 
 
12933
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
 
12934
    case $lt_prog_compiler_pic_CXX in
 
12935
     "" | " "*) ;;
 
12936
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
12937
     esac
 
12938
else
 
12939
    lt_prog_compiler_pic_CXX=
 
12940
     lt_prog_compiler_can_build_shared_CXX=no
 
12941
fi
 
12942
 
 
12943
fi
 
12944
case $host_os in
 
12945
  # For platforms which do not support PIC, -DPIC is meaningless:
 
12946
  *djgpp*)
 
12947
    lt_prog_compiler_pic_CXX=
 
12948
    ;;
 
12949
  *)
 
12950
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
12951
    ;;
 
12952
esac
 
12953
 
 
12954
#
 
12955
# Check to make sure the static flag actually works.
 
12956
#
 
12957
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
 
12958
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
12959
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
12960
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
 
12961
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12962
else
 
12963
  lt_prog_compiler_static_works_CXX=no
 
12964
   save_LDFLAGS="$LDFLAGS"
 
12965
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
12966
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
12967
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
12968
     # The linker can only warn and ignore the option if not recognized
 
12969
     # So say no if there are warnings
 
12970
     if test -s conftest.err; then
 
12971
       # Append any errors to the config.log.
 
12972
       cat conftest.err 1>&5
 
12973
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
12974
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
12975
       if diff conftest.exp conftest.er2 >/dev/null; then
 
12976
         lt_prog_compiler_static_works_CXX=yes
 
12977
       fi
 
12978
     else
 
12979
       lt_prog_compiler_static_works_CXX=yes
 
12980
     fi
 
12981
   fi
 
12982
   $rm conftest*
 
12983
   LDFLAGS="$save_LDFLAGS"
 
12984
 
 
12985
fi
 
12986
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
 
12987
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
 
12988
 
 
12989
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
 
12990
    :
 
12991
else
 
12992
    lt_prog_compiler_static_CXX=
 
12993
fi
 
12994
 
 
12995
 
 
12996
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
12997
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
12998
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
12999
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13000
else
 
13001
  lt_cv_prog_compiler_c_o_CXX=no
 
13002
   $rm -r conftest 2>/dev/null
 
13003
   mkdir conftest
 
13004
   cd conftest
 
13005
   mkdir out
 
13006
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13007
 
 
13008
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
13009
   # Insert the option either (1) after the last *FLAGS variable, or
 
13010
   # (2) before a word containing "conftest.", or (3) at the end.
 
13011
   # Note that $ac_compile itself does not contain backslashes and begins
 
13012
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13013
   lt_compile=`echo "$ac_compile" | $SED \
 
13014
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
13015
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13016
   -e 's:$: $lt_compiler_flag:'`
 
13017
   (eval echo "\"\$as_me:13017: $lt_compile\"" >&5)
 
13018
   (eval "$lt_compile" 2>out/conftest.err)
 
13019
   ac_status=$?
 
13020
   cat out/conftest.err >&5
 
13021
   echo "$as_me:13021: \$? = $ac_status" >&5
 
13022
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
13023
   then
 
13024
     # The compiler can only warn and ignore the option if not recognized
 
13025
     # So say no if there are warnings
 
13026
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
13027
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
13028
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
13029
       lt_cv_prog_compiler_c_o_CXX=yes
 
13030
     fi
 
13031
   fi
 
13032
   chmod u+w . 2>&5
 
13033
   $rm conftest*
 
13034
   # SGI C++ compiler will create directory out/ii_files/ for
 
13035
   # template instantiation
 
13036
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
13037
   $rm out/* && rmdir out
 
13038
   cd ..
 
13039
   rmdir conftest
 
13040
   $rm conftest*
 
13041
 
 
13042
fi
 
13043
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
13044
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
 
13045
 
 
13046
 
 
13047
hard_links="nottested"
 
13048
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
13049
  # do not overwrite the value of need_locks provided by the user
 
13050
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
13051
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
13052
  hard_links=yes
 
13053
  $rm conftest*
 
13054
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13055
  touch conftest.a
 
13056
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
13057
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13058
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
13059
echo "${ECHO_T}$hard_links" >&6; }
 
13060
  if test "$hard_links" = no; then
 
13061
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
13062
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
13063
    need_locks=warn
 
13064
  fi
 
13065
else
 
13066
  need_locks=no
 
13067
fi
 
13068
 
 
13069
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
13070
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
13071
 
 
13072
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
13073
  case $host_os in
 
13074
  aix4* | aix5*)
 
13075
    # If we're using GNU nm, then we don't want the "-C" option.
 
13076
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
13077
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
13078
      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'
 
13079
    else
 
13080
      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'
 
13081
    fi
 
13082
    ;;
 
13083
  pw32*)
 
13084
    export_symbols_cmds_CXX="$ltdll_cmds"
 
13085
  ;;
 
13086
  cygwin* | mingw*)
 
13087
    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'
 
13088
  ;;
 
13089
  linux* | k*bsd*-gnu)
 
13090
    link_all_deplibs_CXX=no
 
13091
  ;;
 
13092
  *)
 
13093
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
13094
  ;;
 
13095
  esac
 
13096
 
 
13097
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
13098
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
 
13099
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
13100
 
 
13101
#
 
13102
# Do we need to explicitly link libc?
 
13103
#
 
13104
case "x$archive_cmds_need_lc_CXX" in
 
13105
x|xyes)
 
13106
  # Assume -lc should be added
 
13107
  archive_cmds_need_lc_CXX=yes
 
13108
 
 
13109
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
13110
    case $archive_cmds_CXX in
 
13111
    *'~'*)
 
13112
      # FIXME: we may have to deal with multi-command sequences.
 
13113
      ;;
 
13114
    '$CC '*)
 
13115
      # Test whether the compiler implicitly links with -lc since on some
 
13116
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
13117
      # to ld, don't add -lc before -lgcc.
 
13118
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
13119
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
13120
      $rm conftest*
 
13121
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13122
 
 
13123
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
13124
  (eval $ac_compile) 2>&5
 
13125
  ac_status=$?
 
13126
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13127
  (exit $ac_status); } 2>conftest.err; then
 
13128
        soname=conftest
 
13129
        lib=conftest
 
13130
        libobjs=conftest.$ac_objext
 
13131
        deplibs=
 
13132
        wl=$lt_prog_compiler_wl_CXX
 
13133
        pic_flag=$lt_prog_compiler_pic_CXX
 
13134
        compiler_flags=-v
 
13135
        linker_flags=-v
 
13136
        verstring=
 
13137
        output_objdir=.
 
13138
        libname=conftest
 
13139
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
13140
        allow_undefined_flag_CXX=
 
13141
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
13142
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
13143
  ac_status=$?
 
13144
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13145
  (exit $ac_status); }
 
13146
        then
 
13147
          archive_cmds_need_lc_CXX=no
 
13148
        else
 
13149
          archive_cmds_need_lc_CXX=yes
 
13150
        fi
 
13151
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
13152
      else
 
13153
        cat conftest.err 1>&5
 
13154
      fi
 
13155
      $rm conftest*
 
13156
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
13157
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
 
13158
      ;;
 
13159
    esac
 
13160
  fi
 
13161
  ;;
 
13162
esac
 
13163
 
 
13164
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
13165
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
13166
library_names_spec=
 
13167
libname_spec='lib$name'
 
13168
soname_spec=
 
13169
shrext_cmds=".so"
 
13170
postinstall_cmds=
 
13171
postuninstall_cmds=
 
13172
finish_cmds=
 
13173
finish_eval=
 
13174
shlibpath_var=
 
13175
shlibpath_overrides_runpath=unknown
 
13176
version_type=none
 
13177
dynamic_linker="$host_os ld.so"
 
13178
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
13179
if test "$GCC" = yes; then
 
13180
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
13181
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
13182
    # if the path contains ";" then we assume it to be the separator
 
13183
    # otherwise default to the standard path separator (i.e. ":") - it is
 
13184
    # assumed that no part of a normal pathname contains ";" but that should
 
13185
    # okay in the real world where ";" in dirpaths is itself problematic.
 
13186
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
13187
  else
 
13188
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
13189
  fi
 
13190
else
 
13191
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
13192
fi
 
13193
need_lib_prefix=unknown
 
13194
hardcode_into_libs=no
 
13195
 
 
13196
# when you set need_version to no, make sure it does not cause -set_version
 
13197
# flags to be left without arguments
 
13198
need_version=unknown
 
13199
 
 
13200
case $host_os in
 
13201
aix3*)
 
13202
  version_type=linux
 
13203
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
13204
  shlibpath_var=LIBPATH
 
13205
 
 
13206
  # AIX 3 has no versioning support, so we append a major version to the name.
 
13207
  soname_spec='${libname}${release}${shared_ext}$major'
 
13208
  ;;
 
13209
 
 
13210
aix4* | aix5*)
 
13211
  version_type=linux
 
13212
  need_lib_prefix=no
 
13213
  need_version=no
 
13214
  hardcode_into_libs=yes
 
13215
  if test "$host_cpu" = ia64; then
 
13216
    # AIX 5 supports IA64
 
13217
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
13218
    shlibpath_var=LD_LIBRARY_PATH
 
13219
  else
 
13220
    # With GCC up to 2.95.x, collect2 would create an import file
 
13221
    # for dependence libraries.  The import file would start with
 
13222
    # the line `#! .'.  This would cause the generated library to
 
13223
    # depend on `.', always an invalid library.  This was fixed in
 
13224
    # development snapshots of GCC prior to 3.0.
 
13225
    case $host_os in
 
13226
      aix4 | aix4.[01] | aix4.[01].*)
 
13227
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
13228
           echo ' yes '
 
13229
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
13230
        :
 
13231
      else
 
13232
        can_build_shared=no
 
13233
      fi
 
13234
      ;;
 
13235
    esac
 
13236
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
13237
    # soname into executable. Probably we can add versioning support to
 
13238
    # collect2, so additional links can be useful in future.
 
13239
    if test "$aix_use_runtimelinking" = yes; then
 
13240
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
13241
      # instead of lib<name>.a to let people know that these are not
 
13242
      # typical AIX shared libraries.
 
13243
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13244
    else
 
13245
      # We preserve .a as extension for shared libraries through AIX4.2
 
13246
      # and later when we are not doing run time linking.
 
13247
      library_names_spec='${libname}${release}.a $libname.a'
 
13248
      soname_spec='${libname}${release}${shared_ext}$major'
 
13249
    fi
 
13250
    shlibpath_var=LIBPATH
 
13251
  fi
 
13252
  ;;
 
13253
 
 
13254
amigaos*)
 
13255
  library_names_spec='$libname.ixlibrary $libname.a'
 
13256
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
13257
  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'
 
13258
  ;;
 
13259
 
 
13260
beos*)
 
13261
  library_names_spec='${libname}${shared_ext}'
 
13262
  dynamic_linker="$host_os ld.so"
 
13263
  shlibpath_var=LIBRARY_PATH
 
13264
  ;;
 
13265
 
 
13266
bsdi[45]*)
 
13267
  version_type=linux
 
13268
  need_version=no
 
13269
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13270
  soname_spec='${libname}${release}${shared_ext}$major'
 
13271
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
13272
  shlibpath_var=LD_LIBRARY_PATH
 
13273
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
13274
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
13275
  # the default ld.so.conf also contains /usr/contrib/lib and
 
13276
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
13277
  # libtool to hard-code these into programs
 
13278
  ;;
 
13279
 
 
13280
cygwin* | mingw* | pw32*)
 
13281
  version_type=windows
 
13282
  shrext_cmds=".dll"
 
13283
  need_version=no
 
13284
  need_lib_prefix=no
 
13285
 
 
13286
  case $GCC,$host_os in
 
13287
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
13288
    library_names_spec='$libname.dll.a'
 
13289
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
13290
    postinstall_cmds='base_file=`basename \${file}`~
 
13291
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
13292
      dldir=$destdir/`dirname \$dlpath`~
 
13293
      test -d \$dldir || mkdir -p \$dldir~
 
13294
      $install_prog $dir/$dlname \$dldir/$dlname~
 
13295
      chmod a+x \$dldir/$dlname'
 
13296
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
13297
      dlpath=$dir/\$dldll~
 
13298
       $rm \$dlpath'
 
13299
    shlibpath_overrides_runpath=yes
 
13300
 
 
13301
    case $host_os in
 
13302
    cygwin*)
 
13303
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
13304
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13305
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
13306
      ;;
 
13307
    mingw*)
 
13308
      # MinGW DLLs use traditional 'lib' prefix
 
13309
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13310
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
13311
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
13312
        # It is most probably a Windows format PATH printed by
 
13313
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
13314
        # path with ; separators, and with drive letters. We can handle the
 
13315
        # drive letters (cygwin fileutils understands them), so leave them,
 
13316
        # especially as we might pass files found there to a mingw objdump,
 
13317
        # which wouldn't understand a cygwinified path. Ahh.
 
13318
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
13319
      else
 
13320
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
13321
      fi
 
13322
      ;;
 
13323
    pw32*)
 
13324
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
13325
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13326
      ;;
 
13327
    esac
 
13328
    ;;
 
13329
 
 
13330
  *)
 
13331
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
13332
    ;;
 
13333
  esac
 
13334
  dynamic_linker='Win32 ld.exe'
 
13335
  # FIXME: first we should search . and the directory the executable is in
 
13336
  shlibpath_var=PATH
 
13337
  ;;
 
13338
 
 
13339
darwin* | rhapsody*)
 
13340
  dynamic_linker="$host_os dyld"
 
13341
  version_type=darwin
 
13342
  need_lib_prefix=no
 
13343
  need_version=no
 
13344
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
13345
  soname_spec='${libname}${release}${major}$shared_ext'
 
13346
  shlibpath_overrides_runpath=yes
 
13347
  shlibpath_var=DYLD_LIBRARY_PATH
 
13348
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
13349
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
13350
  if test "$GCC" = yes; then
 
13351
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
13352
  else
 
13353
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
13354
  fi
 
13355
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
13356
  ;;
 
13357
 
 
13358
dgux*)
 
13359
  version_type=linux
 
13360
  need_lib_prefix=no
 
13361
  need_version=no
 
13362
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
13363
  soname_spec='${libname}${release}${shared_ext}$major'
 
13364
  shlibpath_var=LD_LIBRARY_PATH
 
13365
  ;;
 
13366
 
 
13367
freebsd1*)
 
13368
  dynamic_linker=no
 
13369
  ;;
 
13370
 
 
13371
freebsd* | dragonfly*)
 
13372
  # DragonFly does not have aout.  When/if they implement a new
 
13373
  # versioning mechanism, adjust this.
 
13374
  if test -x /usr/bin/objformat; then
 
13375
    objformat=`/usr/bin/objformat`
 
13376
  else
 
13377
    case $host_os in
 
13378
    freebsd[123]*) objformat=aout ;;
 
13379
    *) objformat=elf ;;
 
13380
    esac
 
13381
  fi
 
13382
  version_type=freebsd-$objformat
 
13383
  case $version_type in
 
13384
    freebsd-elf*)
 
13385
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13386
      need_version=no
 
13387
      need_lib_prefix=no
 
13388
      ;;
 
13389
    freebsd-*)
 
13390
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
13391
      need_version=yes
 
13392
      ;;
 
13393
  esac
 
13394
  shlibpath_var=LD_LIBRARY_PATH
 
13395
  case $host_os in
 
13396
  freebsd2*)
 
13397
    shlibpath_overrides_runpath=yes
 
13398
    ;;
 
13399
  freebsd3.[01]* | freebsdelf3.[01]*)
 
13400
    shlibpath_overrides_runpath=yes
 
13401
    hardcode_into_libs=yes
 
13402
    ;;
 
13403
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
13404
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
13405
    shlibpath_overrides_runpath=no
 
13406
    hardcode_into_libs=yes
 
13407
    ;;
 
13408
  freebsd*) # from 4.6 on
 
13409
    shlibpath_overrides_runpath=yes
 
13410
    hardcode_into_libs=yes
 
13411
    ;;
 
13412
  esac
 
13413
  ;;
 
13414
 
 
13415
gnu*)
 
13416
  version_type=linux
 
13417
  need_lib_prefix=no
 
13418
  need_version=no
 
13419
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
13420
  soname_spec='${libname}${release}${shared_ext}$major'
 
13421
  shlibpath_var=LD_LIBRARY_PATH
 
13422
  hardcode_into_libs=yes
 
13423
  ;;
 
13424
 
 
13425
hpux9* | hpux10* | hpux11*)
 
13426
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
13427
  # link against other versions.
 
13428
  version_type=sunos
 
13429
  need_lib_prefix=no
 
13430
  need_version=no
 
13431
  case $host_cpu in
 
13432
  ia64*)
 
13433
    shrext_cmds='.so'
 
13434
    hardcode_into_libs=yes
 
13435
    dynamic_linker="$host_os dld.so"
 
13436
    shlibpath_var=LD_LIBRARY_PATH
 
13437
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
13438
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13439
    soname_spec='${libname}${release}${shared_ext}$major'
 
13440
    if test "X$HPUX_IA64_MODE" = X32; then
 
13441
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
13442
    else
 
13443
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
13444
    fi
 
13445
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
13446
    ;;
 
13447
   hppa*64*)
 
13448
     shrext_cmds='.sl'
 
13449
     hardcode_into_libs=yes
 
13450
     dynamic_linker="$host_os dld.sl"
 
13451
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
13452
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
13453
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13454
     soname_spec='${libname}${release}${shared_ext}$major'
 
13455
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
13456
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
13457
     ;;
 
13458
   *)
 
13459
    shrext_cmds='.sl'
 
13460
    dynamic_linker="$host_os dld.sl"
 
13461
    shlibpath_var=SHLIB_PATH
 
13462
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
13463
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13464
    soname_spec='${libname}${release}${shared_ext}$major'
 
13465
    ;;
 
13466
  esac
 
13467
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
13468
  postinstall_cmds='chmod 555 $lib'
 
13469
  ;;
 
13470
 
 
13471
interix3*)
 
13472
  version_type=linux
 
13473
  need_lib_prefix=no
 
13474
  need_version=no
 
13475
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13476
  soname_spec='${libname}${release}${shared_ext}$major'
 
13477
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
13478
  shlibpath_var=LD_LIBRARY_PATH
 
13479
  shlibpath_overrides_runpath=no
 
13480
  hardcode_into_libs=yes
 
13481
  ;;
 
13482
 
 
13483
irix5* | irix6* | nonstopux*)
 
13484
  case $host_os in
 
13485
    nonstopux*) version_type=nonstopux ;;
 
13486
    *)
 
13487
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
13488
                version_type=linux
 
13489
        else
 
13490
                version_type=irix
 
13491
        fi ;;
 
13492
  esac
 
13493
  need_lib_prefix=no
 
13494
  need_version=no
 
13495
  soname_spec='${libname}${release}${shared_ext}$major'
 
13496
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13497
  case $host_os in
 
13498
  irix5* | nonstopux*)
 
13499
    libsuff= shlibsuff=
 
13500
    ;;
 
13501
  *)
 
13502
    case $LD in # libtool.m4 will add one of these switches to LD
 
13503
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
13504
      libsuff= shlibsuff= libmagic=32-bit;;
 
13505
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
13506
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
13507
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
13508
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
13509
    *) libsuff= shlibsuff= libmagic=never-match;;
 
13510
    esac
 
13511
    ;;
 
13512
  esac
 
13513
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
13514
  shlibpath_overrides_runpath=no
 
13515
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
13516
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
13517
  hardcode_into_libs=yes
 
13518
  ;;
 
13519
 
 
13520
# No shared lib support for Linux oldld, aout, or coff.
 
13521
linux*oldld* | linux*aout* | linux*coff*)
 
13522
  dynamic_linker=no
 
13523
  ;;
 
13524
 
 
13525
# This must be Linux ELF.
 
13526
linux* | k*bsd*-gnu)
 
13527
  version_type=linux
 
13528
  need_lib_prefix=no
 
13529
  need_version=no
 
13530
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13531
  soname_spec='${libname}${release}${shared_ext}$major'
 
13532
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
13533
  shlibpath_var=LD_LIBRARY_PATH
 
13534
  shlibpath_overrides_runpath=no
 
13535
  # This implies no fast_install, which is unacceptable.
 
13536
  # Some rework will be needed to allow for fast_install
 
13537
  # before this can be enabled.
 
13538
  hardcode_into_libs=yes
 
13539
 
 
13540
  # Append ld.so.conf contents to the search path
 
13541
  if test -f /etc/ld.so.conf; then
 
13542
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
13543
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
13544
  fi
 
13545
 
 
13546
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
13547
  # powerpc, because MkLinux only supported shared libraries with the
 
13548
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
13549
  # most powerpc-linux boxes support dynamic linking these days and
 
13550
  # people can always --disable-shared, the test was removed, and we
 
13551
  # assume the GNU/Linux dynamic linker is in use.
 
13552
  dynamic_linker='GNU/Linux ld.so'
 
13553
  ;;
 
13554
 
 
13555
netbsdelf*-gnu)
 
13556
  version_type=linux
 
13557
  need_lib_prefix=no
 
13558
  need_version=no
 
13559
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13560
  soname_spec='${libname}${release}${shared_ext}$major'
 
13561
  shlibpath_var=LD_LIBRARY_PATH
 
13562
  shlibpath_overrides_runpath=no
 
13563
  hardcode_into_libs=yes
 
13564
  dynamic_linker='NetBSD ld.elf_so'
 
13565
  ;;
 
13566
 
 
13567
netbsd*)
 
13568
  version_type=sunos
 
13569
  need_lib_prefix=no
 
13570
  need_version=no
 
13571
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
13572
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13573
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
13574
    dynamic_linker='NetBSD (a.out) ld.so'
 
13575
  else
 
13576
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13577
    soname_spec='${libname}${release}${shared_ext}$major'
 
13578
    dynamic_linker='NetBSD ld.elf_so'
 
13579
  fi
 
13580
  shlibpath_var=LD_LIBRARY_PATH
 
13581
  shlibpath_overrides_runpath=yes
 
13582
  hardcode_into_libs=yes
 
13583
  ;;
 
13584
 
 
13585
newsos6)
 
13586
  version_type=linux
 
13587
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13588
  shlibpath_var=LD_LIBRARY_PATH
 
13589
  shlibpath_overrides_runpath=yes
 
13590
  ;;
 
13591
 
 
13592
nto-qnx*)
 
13593
  version_type=linux
 
13594
  need_lib_prefix=no
 
13595
  need_version=no
 
13596
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13597
  soname_spec='${libname}${release}${shared_ext}$major'
 
13598
  shlibpath_var=LD_LIBRARY_PATH
 
13599
  shlibpath_overrides_runpath=yes
 
13600
  ;;
 
13601
 
 
13602
openbsd*)
 
13603
  version_type=sunos
 
13604
  sys_lib_dlsearch_path_spec="/usr/lib"
 
13605
  need_lib_prefix=no
 
13606
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
13607
  case $host_os in
 
13608
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
13609
    *)                         need_version=no  ;;
 
13610
  esac
 
13611
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13612
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
13613
  shlibpath_var=LD_LIBRARY_PATH
 
13614
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
13615
    case $host_os in
 
13616
      openbsd2.[89] | openbsd2.[89].*)
 
13617
        shlibpath_overrides_runpath=no
 
13618
        ;;
 
13619
      *)
 
13620
        shlibpath_overrides_runpath=yes
 
13621
        ;;
 
13622
      esac
 
13623
  else
 
13624
    shlibpath_overrides_runpath=yes
 
13625
  fi
 
13626
  ;;
 
13627
 
 
13628
os2*)
 
13629
  libname_spec='$name'
 
13630
  shrext_cmds=".dll"
 
13631
  need_lib_prefix=no
 
13632
  library_names_spec='$libname${shared_ext} $libname.a'
 
13633
  dynamic_linker='OS/2 ld.exe'
 
13634
  shlibpath_var=LIBPATH
 
13635
  ;;
 
13636
 
 
13637
osf3* | osf4* | osf5*)
 
13638
  version_type=osf
 
13639
  need_lib_prefix=no
 
13640
  need_version=no
 
13641
  soname_spec='${libname}${release}${shared_ext}$major'
 
13642
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13643
  shlibpath_var=LD_LIBRARY_PATH
 
13644
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
13645
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
13646
  ;;
 
13647
 
 
13648
solaris*)
 
13649
  version_type=linux
 
13650
  need_lib_prefix=no
 
13651
  need_version=no
 
13652
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13653
  soname_spec='${libname}${release}${shared_ext}$major'
 
13654
  shlibpath_var=LD_LIBRARY_PATH
 
13655
  shlibpath_overrides_runpath=yes
 
13656
  hardcode_into_libs=yes
 
13657
  # ldd complains unless libraries are executable
 
13658
  postinstall_cmds='chmod +x $lib'
 
13659
  ;;
 
13660
 
 
13661
sunos4*)
 
13662
  version_type=sunos
 
13663
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13664
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
13665
  shlibpath_var=LD_LIBRARY_PATH
 
13666
  shlibpath_overrides_runpath=yes
 
13667
  if test "$with_gnu_ld" = yes; then
 
13668
    need_lib_prefix=no
 
13669
  fi
 
13670
  need_version=yes
 
13671
  ;;
 
13672
 
 
13673
sysv4 | sysv4.3*)
 
13674
  version_type=linux
 
13675
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13676
  soname_spec='${libname}${release}${shared_ext}$major'
 
13677
  shlibpath_var=LD_LIBRARY_PATH
 
13678
  case $host_vendor in
 
13679
    sni)
 
13680
      shlibpath_overrides_runpath=no
 
13681
      need_lib_prefix=no
 
13682
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
13683
      runpath_var=LD_RUN_PATH
 
13684
      ;;
 
13685
    siemens)
 
13686
      need_lib_prefix=no
 
13687
      ;;
 
13688
    motorola)
 
13689
      need_lib_prefix=no
 
13690
      need_version=no
 
13691
      shlibpath_overrides_runpath=no
 
13692
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
13693
      ;;
 
13694
  esac
 
13695
  ;;
 
13696
 
 
13697
sysv4*MP*)
 
13698
  if test -d /usr/nec ;then
 
13699
    version_type=linux
 
13700
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
13701
    soname_spec='$libname${shared_ext}.$major'
 
13702
    shlibpath_var=LD_LIBRARY_PATH
 
13703
  fi
 
13704
  ;;
 
13705
 
 
13706
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
13707
  version_type=freebsd-elf
 
13708
  need_lib_prefix=no
 
13709
  need_version=no
 
13710
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13711
  soname_spec='${libname}${release}${shared_ext}$major'
 
13712
  shlibpath_var=LD_LIBRARY_PATH
 
13713
  hardcode_into_libs=yes
 
13714
  if test "$with_gnu_ld" = yes; then
 
13715
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
13716
    shlibpath_overrides_runpath=no
 
13717
  else
 
13718
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
13719
    shlibpath_overrides_runpath=yes
 
13720
    case $host_os in
 
13721
      sco3.2v5*)
 
13722
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
13723
        ;;
 
13724
    esac
 
13725
  fi
 
13726
  sys_lib_dlsearch_path_spec='/usr/lib'
 
13727
  ;;
 
13728
 
 
13729
uts4*)
 
13730
  version_type=linux
 
13731
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13732
  soname_spec='${libname}${release}${shared_ext}$major'
 
13733
  shlibpath_var=LD_LIBRARY_PATH
 
13734
  ;;
 
13735
 
 
13736
*)
 
13737
  dynamic_linker=no
 
13738
  ;;
 
13739
esac
 
13740
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
13741
echo "${ECHO_T}$dynamic_linker" >&6; }
 
13742
test "$dynamic_linker" = no && can_build_shared=no
 
13743
 
 
13744
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
13745
if test "$GCC" = yes; then
 
13746
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
13747
fi
 
13748
 
 
13749
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
13750
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
13751
hardcode_action_CXX=
 
13752
if test -n "$hardcode_libdir_flag_spec_CXX" || \
 
13753
   test -n "$runpath_var_CXX" || \
 
13754
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
 
13755
 
 
13756
  # We can hardcode non-existant directories.
 
13757
  if test "$hardcode_direct_CXX" != no &&
 
13758
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
13759
     # have to relink, otherwise we might link with an installed library
 
13760
     # when we should be linking with a yet-to-be-installed one
 
13761
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
13762
     test "$hardcode_minus_L_CXX" != no; then
 
13763
    # Linking always hardcodes the temporary library directory.
 
13764
    hardcode_action_CXX=relink
 
13765
  else
 
13766
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
13767
    hardcode_action_CXX=immediate
 
13768
  fi
 
13769
else
 
13770
  # We cannot hardcode anything, or else we can only hardcode existing
 
13771
  # directories.
 
13772
  hardcode_action_CXX=unsupported
 
13773
fi
 
13774
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
13775
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
 
13776
 
 
13777
if test "$hardcode_action_CXX" = relink; then
 
13778
  # Fast installation is not supported
 
13779
  enable_fast_install=no
 
13780
elif test "$shlibpath_overrides_runpath" = yes ||
 
13781
     test "$enable_shared" = no; then
 
13782
  # Fast installation is not necessary
 
13783
  enable_fast_install=needless
 
13784
fi
 
13785
 
 
13786
 
 
13787
# The else clause should only fire when bootstrapping the
 
13788
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
13789
# with your package, and you will get complaints that there are
 
13790
# no rules to generate ltmain.sh.
 
13791
if test -f "$ltmain"; then
 
13792
  # See if we are running on zsh, and set the options which allow our commands through
 
13793
  # without removal of \ escapes.
 
13794
  if test -n "${ZSH_VERSION+set}" ; then
 
13795
    setopt NO_GLOB_SUBST
 
13796
  fi
 
13797
  # Now quote all the things that may contain metacharacters while being
 
13798
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
13799
  # variables and quote the copies for generation of the libtool script.
 
13800
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
13801
    SED SHELL STRIP \
 
13802
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
13803
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
13804
    deplibs_check_method reload_flag reload_cmds need_locks \
 
13805
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
13806
    lt_cv_sys_global_symbol_to_c_name_address \
 
13807
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
13808
    old_postinstall_cmds old_postuninstall_cmds \
 
13809
    compiler_CXX \
 
13810
    CC_CXX \
 
13811
    LD_CXX \
 
13812
    lt_prog_compiler_wl_CXX \
 
13813
    lt_prog_compiler_pic_CXX \
 
13814
    lt_prog_compiler_static_CXX \
 
13815
    lt_prog_compiler_no_builtin_flag_CXX \
 
13816
    export_dynamic_flag_spec_CXX \
 
13817
    thread_safe_flag_spec_CXX \
 
13818
    whole_archive_flag_spec_CXX \
 
13819
    enable_shared_with_static_runtimes_CXX \
 
13820
    old_archive_cmds_CXX \
 
13821
    old_archive_from_new_cmds_CXX \
 
13822
    predep_objects_CXX \
 
13823
    postdep_objects_CXX \
 
13824
    predeps_CXX \
 
13825
    postdeps_CXX \
 
13826
    compiler_lib_search_path_CXX \
 
13827
    archive_cmds_CXX \
 
13828
    archive_expsym_cmds_CXX \
 
13829
    postinstall_cmds_CXX \
 
13830
    postuninstall_cmds_CXX \
 
13831
    old_archive_from_expsyms_cmds_CXX \
 
13832
    allow_undefined_flag_CXX \
 
13833
    no_undefined_flag_CXX \
 
13834
    export_symbols_cmds_CXX \
 
13835
    hardcode_libdir_flag_spec_CXX \
 
13836
    hardcode_libdir_flag_spec_ld_CXX \
 
13837
    hardcode_libdir_separator_CXX \
 
13838
    hardcode_automatic_CXX \
 
13839
    module_cmds_CXX \
 
13840
    module_expsym_cmds_CXX \
 
13841
    lt_cv_prog_compiler_c_o_CXX \
 
13842
    exclude_expsyms_CXX \
 
13843
    include_expsyms_CXX; do
 
13844
 
 
13845
    case $var in
 
13846
    old_archive_cmds_CXX | \
 
13847
    old_archive_from_new_cmds_CXX | \
 
13848
    archive_cmds_CXX | \
 
13849
    archive_expsym_cmds_CXX | \
 
13850
    module_cmds_CXX | \
 
13851
    module_expsym_cmds_CXX | \
 
13852
    old_archive_from_expsyms_cmds_CXX | \
 
13853
    export_symbols_cmds_CXX | \
 
13854
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
13855
    postinstall_cmds | postuninstall_cmds | \
 
13856
    old_postinstall_cmds | old_postuninstall_cmds | \
 
13857
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
13858
      # Double-quote double-evaled strings.
 
13859
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
13860
      ;;
 
13861
    *)
 
13862
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
13863
      ;;
 
13864
    esac
 
13865
  done
 
13866
 
 
13867
  case $lt_echo in
 
13868
  *'\$0 --fallback-echo"')
 
13869
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
13870
    ;;
 
13871
  esac
 
13872
 
 
13873
cfgfile="$ofile"
 
13874
 
 
13875
  cat <<__EOF__ >> "$cfgfile"
 
13876
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
13877
 
 
13878
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
13879
 
 
13880
# Shell to use when invoking shell scripts.
 
13881
SHELL=$lt_SHELL
 
13882
 
 
13883
# Whether or not to build shared libraries.
 
13884
build_libtool_libs=$enable_shared
 
13885
 
 
13886
# Whether or not to build static libraries.
 
13887
build_old_libs=$enable_static
 
13888
 
 
13889
# Whether or not to add -lc for building shared libraries.
 
13890
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
13891
 
 
13892
# Whether or not to disallow shared libs when runtime libs are static
 
13893
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
13894
 
 
13895
# Whether or not to optimize for fast installation.
 
13896
fast_install=$enable_fast_install
 
13897
 
 
13898
# The host system.
 
13899
host_alias=$host_alias
 
13900
host=$host
 
13901
host_os=$host_os
 
13902
 
 
13903
# The build system.
 
13904
build_alias=$build_alias
 
13905
build=$build
 
13906
build_os=$build_os
 
13907
 
 
13908
# An echo program that does not interpret backslashes.
 
13909
echo=$lt_echo
 
13910
 
 
13911
# The archiver.
 
13912
AR=$lt_AR
 
13913
AR_FLAGS=$lt_AR_FLAGS
 
13914
 
 
13915
# A C compiler.
 
13916
LTCC=$lt_LTCC
 
13917
 
 
13918
# LTCC compiler flags.
 
13919
LTCFLAGS=$lt_LTCFLAGS
 
13920
 
 
13921
# A language-specific compiler.
 
13922
CC=$lt_compiler_CXX
 
13923
 
 
13924
# Is the compiler the GNU C compiler?
 
13925
with_gcc=$GCC_CXX
 
13926
 
 
13927
# An ERE matcher.
 
13928
EGREP=$lt_EGREP
 
13929
 
 
13930
# The linker used to build libraries.
 
13931
LD=$lt_LD_CXX
 
13932
 
 
13933
# Whether we need hard or soft links.
 
13934
LN_S=$lt_LN_S
 
13935
 
 
13936
# A BSD-compatible nm program.
 
13937
NM=$lt_NM
 
13938
 
 
13939
# A symbol stripping program
 
13940
STRIP=$lt_STRIP
 
13941
 
 
13942
# Used to examine libraries when file_magic_cmd begins "file"
 
13943
MAGIC_CMD=$MAGIC_CMD
 
13944
 
 
13945
# Used on cygwin: DLL creation program.
 
13946
DLLTOOL="$DLLTOOL"
 
13947
 
 
13948
# Used on cygwin: object dumper.
 
13949
OBJDUMP="$OBJDUMP"
 
13950
 
 
13951
# Used on cygwin: assembler.
 
13952
AS="$AS"
 
13953
 
 
13954
# The name of the directory that contains temporary libtool files.
 
13955
objdir=$objdir
 
13956
 
 
13957
# How to create reloadable object files.
 
13958
reload_flag=$lt_reload_flag
 
13959
reload_cmds=$lt_reload_cmds
 
13960
 
 
13961
# How to pass a linker flag through the compiler.
 
13962
wl=$lt_lt_prog_compiler_wl_CXX
 
13963
 
 
13964
# Object file suffix (normally "o").
 
13965
objext="$ac_objext"
 
13966
 
 
13967
# Old archive suffix (normally "a").
 
13968
libext="$libext"
 
13969
 
 
13970
# Shared library suffix (normally ".so").
 
13971
shrext_cmds='$shrext_cmds'
 
13972
 
 
13973
# Executable file suffix (normally "").
 
13974
exeext="$exeext"
 
13975
 
 
13976
# Additional compiler flags for building library objects.
 
13977
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
13978
pic_mode=$pic_mode
 
13979
 
 
13980
# What is the maximum length of a command?
 
13981
max_cmd_len=$lt_cv_sys_max_cmd_len
 
13982
 
 
13983
# Does compiler simultaneously support -c and -o options?
 
13984
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
13985
 
 
13986
# Must we lock files when doing compilation?
 
13987
need_locks=$lt_need_locks
 
13988
 
 
13989
# Do we need the lib prefix for modules?
 
13990
need_lib_prefix=$need_lib_prefix
 
13991
 
 
13992
# Do we need a version for libraries?
 
13993
need_version=$need_version
 
13994
 
 
13995
# Whether dlopen is supported.
 
13996
dlopen_support=$enable_dlopen
 
13997
 
 
13998
# Whether dlopen of programs is supported.
 
13999
dlopen_self=$enable_dlopen_self
 
14000
 
 
14001
# Whether dlopen of statically linked programs is supported.
 
14002
dlopen_self_static=$enable_dlopen_self_static
 
14003
 
 
14004
# Compiler flag to prevent dynamic linking.
 
14005
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
14006
 
 
14007
# Compiler flag to turn off builtin functions.
 
14008
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
14009
 
 
14010
# Compiler flag to allow reflexive dlopens.
 
14011
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
14012
 
 
14013
# Compiler flag to generate shared objects directly from archives.
 
14014
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
14015
 
 
14016
# Compiler flag to generate thread-safe objects.
 
14017
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
 
14018
 
 
14019
# Library versioning type.
 
14020
version_type=$version_type
 
14021
 
 
14022
# Format of library name prefix.
 
14023
libname_spec=$lt_libname_spec
 
14024
 
 
14025
# List of archive names.  First name is the real one, the rest are links.
 
14026
# The last name is the one that the linker finds with -lNAME.
 
14027
library_names_spec=$lt_library_names_spec
 
14028
 
 
14029
# The coded name of the library, if different from the real name.
 
14030
soname_spec=$lt_soname_spec
 
14031
 
 
14032
# Commands used to build and install an old-style archive.
 
14033
RANLIB=$lt_RANLIB
 
14034
old_archive_cmds=$lt_old_archive_cmds_CXX
 
14035
old_postinstall_cmds=$lt_old_postinstall_cmds
 
14036
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
14037
 
 
14038
# Create an old-style archive from a shared archive.
 
14039
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
14040
 
 
14041
# Create a temporary old-style archive to link instead of a shared archive.
 
14042
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
14043
 
 
14044
# Commands used to build and install a shared archive.
 
14045
archive_cmds=$lt_archive_cmds_CXX
 
14046
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
14047
postinstall_cmds=$lt_postinstall_cmds
 
14048
postuninstall_cmds=$lt_postuninstall_cmds
 
14049
 
 
14050
# Commands used to build a loadable module (assumed same as above if empty)
 
14051
module_cmds=$lt_module_cmds_CXX
 
14052
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
14053
 
 
14054
# Commands to strip libraries.
 
14055
old_striplib=$lt_old_striplib
 
14056
striplib=$lt_striplib
 
14057
 
 
14058
# Dependencies to place before the objects being linked to create a
 
14059
# shared library.
 
14060
predep_objects=$lt_predep_objects_CXX
 
14061
 
 
14062
# Dependencies to place after the objects being linked to create a
 
14063
# shared library.
 
14064
postdep_objects=$lt_postdep_objects_CXX
 
14065
 
 
14066
# Dependencies to place before the objects being linked to create a
 
14067
# shared library.
 
14068
predeps=$lt_predeps_CXX
 
14069
 
 
14070
# Dependencies to place after the objects being linked to create a
 
14071
# shared library.
 
14072
postdeps=$lt_postdeps_CXX
 
14073
 
 
14074
# The library search path used internally by the compiler when linking
 
14075
# a shared library.
 
14076
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
14077
 
 
14078
# Method to check whether dependent libraries are shared objects.
 
14079
deplibs_check_method=$lt_deplibs_check_method
 
14080
 
 
14081
# Command to use when deplibs_check_method == file_magic.
 
14082
file_magic_cmd=$lt_file_magic_cmd
 
14083
 
 
14084
# Flag that allows shared libraries with undefined symbols to be built.
 
14085
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
14086
 
 
14087
# Flag that forces no undefined symbols.
 
14088
no_undefined_flag=$lt_no_undefined_flag_CXX
 
14089
 
 
14090
# Commands used to finish a libtool library installation in a directory.
 
14091
finish_cmds=$lt_finish_cmds
 
14092
 
 
14093
# Same as above, but a single script fragment to be evaled but not shown.
 
14094
finish_eval=$lt_finish_eval
 
14095
 
 
14096
# Take the output of nm and produce a listing of raw symbols and C names.
 
14097
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
14098
 
 
14099
# Transform the output of nm in a proper C declaration
 
14100
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
14101
 
 
14102
# Transform the output of nm in a C name address pair
 
14103
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
14104
 
 
14105
# This is the shared library runtime path variable.
 
14106
runpath_var=$runpath_var
 
14107
 
 
14108
# This is the shared library path variable.
 
14109
shlibpath_var=$shlibpath_var
 
14110
 
 
14111
# Is shlibpath searched before the hard-coded library search path?
 
14112
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
14113
 
 
14114
# How to hardcode a shared library path into an executable.
 
14115
hardcode_action=$hardcode_action_CXX
 
14116
 
 
14117
# Whether we should hardcode library paths into libraries.
 
14118
hardcode_into_libs=$hardcode_into_libs
 
14119
 
 
14120
# Flag to hardcode \$libdir into a binary during linking.
 
14121
# This must work even if \$libdir does not exist.
 
14122
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
14123
 
 
14124
# If ld is used when linking, flag to hardcode \$libdir into
 
14125
# a binary during linking. This must work even if \$libdir does
 
14126
# not exist.
 
14127
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
14128
 
 
14129
# Whether we need a single -rpath flag with a separated argument.
 
14130
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
14131
 
 
14132
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
14133
# resulting binary.
 
14134
hardcode_direct=$hardcode_direct_CXX
 
14135
 
 
14136
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
14137
# resulting binary.
 
14138
hardcode_minus_L=$hardcode_minus_L_CXX
 
14139
 
 
14140
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
14141
# the resulting binary.
 
14142
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
14143
 
 
14144
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
14145
# and all subsequent libraries and executables linked against it.
 
14146
hardcode_automatic=$hardcode_automatic_CXX
 
14147
 
 
14148
# Variables whose values should be saved in libtool wrapper scripts and
 
14149
# restored at relink time.
 
14150
variables_saved_for_relink="$variables_saved_for_relink"
 
14151
 
 
14152
# Whether libtool must link a program against all its dependency libraries.
 
14153
link_all_deplibs=$link_all_deplibs_CXX
 
14154
 
 
14155
# Compile-time system search path for libraries
 
14156
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
14157
 
 
14158
# Run-time system search path for libraries
 
14159
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
14160
 
 
14161
# Fix the shell variable \$srcfile for the compiler.
 
14162
fix_srcfile_path="$fix_srcfile_path_CXX"
 
14163
 
 
14164
# Set to yes if exported symbols are required.
 
14165
always_export_symbols=$always_export_symbols_CXX
 
14166
 
 
14167
# The commands to list exported symbols.
 
14168
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
14169
 
 
14170
# The commands to extract the exported symbol list from a shared archive.
 
14171
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
14172
 
 
14173
# Symbols that should not be listed in the preloaded symbols.
 
14174
exclude_expsyms=$lt_exclude_expsyms_CXX
 
14175
 
 
14176
# Symbols that must always be exported.
 
14177
include_expsyms=$lt_include_expsyms_CXX
 
14178
 
 
14179
# ### END LIBTOOL TAG CONFIG: $tagname
 
14180
 
 
14181
__EOF__
 
14182
 
 
14183
 
 
14184
else
 
14185
  # If there is no Makefile yet, we rely on a make rule to execute
 
14186
  # `config.status --recheck' to rerun these tests and create the
 
14187
  # libtool script then.
 
14188
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
14189
  if test -f "$ltmain_in"; then
 
14190
    test -f Makefile && make "$ltmain"
 
14191
  fi
 
14192
fi
 
14193
 
 
14194
 
 
14195
ac_ext=c
 
14196
ac_cpp='$CPP $CPPFLAGS'
 
14197
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
14198
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14199
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
14200
 
 
14201
CC=$lt_save_CC
 
14202
LDCXX=$LD
 
14203
LD=$lt_save_LD
 
14204
GCC=$lt_save_GCC
 
14205
with_gnu_ldcxx=$with_gnu_ld
 
14206
with_gnu_ld=$lt_save_with_gnu_ld
 
14207
lt_cv_path_LDCXX=$lt_cv_path_LD
 
14208
lt_cv_path_LD=$lt_save_path_LD
 
14209
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
14210
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
14211
 
 
14212
        else
 
14213
          tagname=""
 
14214
        fi
 
14215
        ;;
 
14216
 
 
14217
      F77)
 
14218
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
14219
 
 
14220
ac_ext=f
 
14221
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
14222
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14223
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
14224
 
 
14225
 
 
14226
archive_cmds_need_lc_F77=no
 
14227
allow_undefined_flag_F77=
 
14228
always_export_symbols_F77=no
 
14229
archive_expsym_cmds_F77=
 
14230
export_dynamic_flag_spec_F77=
 
14231
hardcode_direct_F77=no
 
14232
hardcode_libdir_flag_spec_F77=
 
14233
hardcode_libdir_flag_spec_ld_F77=
 
14234
hardcode_libdir_separator_F77=
 
14235
hardcode_minus_L_F77=no
 
14236
hardcode_automatic_F77=no
 
14237
module_cmds_F77=
 
14238
module_expsym_cmds_F77=
 
14239
link_all_deplibs_F77=unknown
 
14240
old_archive_cmds_F77=$old_archive_cmds
 
14241
no_undefined_flag_F77=
 
14242
whole_archive_flag_spec_F77=
 
14243
enable_shared_with_static_runtimes_F77=no
 
14244
 
 
14245
# Source file extension for f77 test sources.
 
14246
ac_ext=f
 
14247
 
 
14248
# Object file extension for compiled f77 test sources.
 
14249
objext=o
 
14250
objext_F77=$objext
 
14251
 
 
14252
# Code to be used in simple compile tests
 
14253
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
14254
 
 
14255
# Code to be used in simple link tests
 
14256
lt_simple_link_test_code="      program t\n      end\n"
 
14257
 
 
14258
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
14259
 
 
14260
# If no C compiler was specified, use CC.
 
14261
LTCC=${LTCC-"$CC"}
 
14262
 
 
14263
# If no C compiler flags were specified, use CFLAGS.
 
14264
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
14265
 
 
14266
# Allow CC to be a program name with arguments.
 
14267
compiler=$CC
 
14268
 
 
14269
 
 
14270
# save warnings/boilerplate of simple test code
 
14271
ac_outfile=conftest.$ac_objext
 
14272
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
14273
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
14274
_lt_compiler_boilerplate=`cat conftest.err`
 
14275
$rm conftest*
 
14276
 
 
14277
ac_outfile=conftest.$ac_objext
 
14278
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
14279
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
14280
_lt_linker_boilerplate=`cat conftest.err`
 
14281
$rm conftest*
 
14282
 
 
14283
 
 
14284
# Allow CC to be a program name with arguments.
 
14285
lt_save_CC="$CC"
 
14286
CC=${F77-"f77"}
 
14287
compiler=$CC
 
14288
compiler_F77=$CC
 
14289
for cc_temp in $compiler""; do
 
14290
  case $cc_temp in
 
14291
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
14292
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
14293
    \-*) ;;
 
14294
    *) break;;
 
14295
  esac
 
14296
done
 
14297
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
14298
 
 
14299
 
 
14300
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
14301
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
 
14302
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
14303
echo "${ECHO_T}$can_build_shared" >&6; }
 
14304
 
 
14305
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
14306
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
 
14307
test "$can_build_shared" = "no" && enable_shared=no
 
14308
 
 
14309
# On AIX, shared libraries and static libraries use the same namespace, and
 
14310
# are all built from PIC.
 
14311
case $host_os in
 
14312
aix3*)
 
14313
  test "$enable_shared" = yes && enable_static=no
 
14314
  if test -n "$RANLIB"; then
 
14315
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
14316
    postinstall_cmds='$RANLIB $lib'
 
14317
  fi
 
14318
  ;;
 
14319
aix4* | aix5*)
 
14320
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
14321
    test "$enable_shared" = yes && enable_static=no
 
14322
  fi
 
14323
  ;;
 
14324
esac
 
14325
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
 
14326
echo "${ECHO_T}$enable_shared" >&6; }
 
14327
 
 
14328
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
14329
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
 
14330
# Make sure either enable_shared or enable_static is yes.
 
14331
test "$enable_shared" = yes || enable_static=yes
 
14332
{ echo "$as_me:$LINENO: result: $enable_static" >&5
 
14333
echo "${ECHO_T}$enable_static" >&6; }
 
14334
 
 
14335
GCC_F77="$G77"
 
14336
LD_F77="$LD"
 
14337
 
 
14338
lt_prog_compiler_wl_F77=
 
14339
lt_prog_compiler_pic_F77=
 
14340
lt_prog_compiler_static_F77=
 
14341
 
 
14342
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
14343
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
14344
 
 
14345
  if test "$GCC" = yes; then
 
14346
    lt_prog_compiler_wl_F77='-Wl,'
 
14347
    lt_prog_compiler_static_F77='-static'
 
14348
 
 
14349
    case $host_os in
 
14350
      aix*)
 
14351
      # All AIX code is PIC.
 
14352
      if test "$host_cpu" = ia64; then
 
14353
        # AIX 5 now supports IA64 processor
 
14354
        lt_prog_compiler_static_F77='-Bstatic'
 
14355
      fi
 
14356
      ;;
 
14357
 
 
14358
    amigaos*)
 
14359
      # FIXME: we need at least 68020 code to build shared libraries, but
 
14360
      # adding the `-m68020' flag to GCC prevents building anything better,
 
14361
      # like `-m68040'.
 
14362
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
 
14363
      ;;
 
14364
 
 
14365
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
14366
      # PIC is the default for these OSes.
 
14367
      ;;
 
14368
 
 
14369
    mingw* | pw32* | os2*)
 
14370
      # This hack is so that the source file can tell whether it is being
 
14371
      # built for inclusion in a dll (and should export symbols for example).
 
14372
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
14373
      ;;
 
14374
 
 
14375
    darwin* | rhapsody*)
 
14376
      # PIC is the default on this platform
 
14377
      # Common symbols not allowed in MH_DYLIB files
 
14378
      lt_prog_compiler_pic_F77='-fno-common'
 
14379
      ;;
 
14380
 
 
14381
    interix3*)
 
14382
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
14383
      # Instead, we relocate shared libraries at runtime.
 
14384
      ;;
 
14385
 
 
14386
    msdosdjgpp*)
 
14387
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
14388
      # on systems that don't support them.
 
14389
      lt_prog_compiler_can_build_shared_F77=no
 
14390
      enable_shared=no
 
14391
      ;;
 
14392
 
 
14393
    sysv4*MP*)
 
14394
      if test -d /usr/nec; then
 
14395
        lt_prog_compiler_pic_F77=-Kconform_pic
 
14396
      fi
 
14397
      ;;
 
14398
 
 
14399
    hpux*)
 
14400
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
14401
      # not for PA HP-UX.
 
14402
      case $host_cpu in
 
14403
      hppa*64*|ia64*)
 
14404
        # +Z the default
 
14405
        ;;
 
14406
      *)
 
14407
        lt_prog_compiler_pic_F77='-fPIC'
 
14408
        ;;
 
14409
      esac
 
14410
      ;;
 
14411
 
 
14412
    *)
 
14413
      lt_prog_compiler_pic_F77='-fPIC'
 
14414
      ;;
 
14415
    esac
 
14416
  else
 
14417
    # PORTME Check for flag to pass linker flags through the system compiler.
 
14418
    case $host_os in
 
14419
    aix*)
 
14420
      lt_prog_compiler_wl_F77='-Wl,'
 
14421
      if test "$host_cpu" = ia64; then
 
14422
        # AIX 5 now supports IA64 processor
 
14423
        lt_prog_compiler_static_F77='-Bstatic'
 
14424
      else
 
14425
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
 
14426
      fi
 
14427
      ;;
 
14428
      darwin*)
 
14429
        # PIC is the default on this platform
 
14430
        # Common symbols not allowed in MH_DYLIB files
 
14431
       case $cc_basename in
 
14432
         xlc*)
 
14433
         lt_prog_compiler_pic_F77='-qnocommon'
 
14434
         lt_prog_compiler_wl_F77='-Wl,'
 
14435
         ;;
 
14436
       esac
 
14437
       ;;
 
14438
 
 
14439
    mingw* | pw32* | os2*)
 
14440
      # This hack is so that the source file can tell whether it is being
 
14441
      # built for inclusion in a dll (and should export symbols for example).
 
14442
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
14443
      ;;
 
14444
 
 
14445
    hpux9* | hpux10* | hpux11*)
 
14446
      lt_prog_compiler_wl_F77='-Wl,'
 
14447
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
14448
      # not for PA HP-UX.
 
14449
      case $host_cpu in
 
14450
      hppa*64*|ia64*)
 
14451
        # +Z the default
 
14452
        ;;
 
14453
      *)
 
14454
        lt_prog_compiler_pic_F77='+Z'
 
14455
        ;;
 
14456
      esac
 
14457
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
14458
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
 
14459
      ;;
 
14460
 
 
14461
    irix5* | irix6* | nonstopux*)
 
14462
      lt_prog_compiler_wl_F77='-Wl,'
 
14463
      # PIC (with -KPIC) is the default.
 
14464
      lt_prog_compiler_static_F77='-non_shared'
 
14465
      ;;
 
14466
 
 
14467
    newsos6)
 
14468
      lt_prog_compiler_pic_F77='-KPIC'
 
14469
      lt_prog_compiler_static_F77='-Bstatic'
 
14470
      ;;
 
14471
 
 
14472
    linux* | k*bsd*-gnu)
 
14473
      case $cc_basename in
 
14474
      icc* | ecc*)
 
14475
        lt_prog_compiler_wl_F77='-Wl,'
 
14476
        lt_prog_compiler_pic_F77='-KPIC'
 
14477
        lt_prog_compiler_static_F77='-static'
 
14478
        ;;
 
14479
      pgcc* | pgf77* | pgf90* | pgf95*)
 
14480
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
14481
        # which looks to be a dead project)
 
14482
        lt_prog_compiler_wl_F77='-Wl,'
 
14483
        lt_prog_compiler_pic_F77='-fpic'
 
14484
        lt_prog_compiler_static_F77='-Bstatic'
 
14485
        ;;
 
14486
      ccc*)
 
14487
        lt_prog_compiler_wl_F77='-Wl,'
 
14488
        # All Alpha code is PIC.
 
14489
        lt_prog_compiler_static_F77='-non_shared'
 
14490
        ;;
 
14491
      esac
 
14492
      ;;
 
14493
 
 
14494
    osf3* | osf4* | osf5*)
 
14495
      lt_prog_compiler_wl_F77='-Wl,'
 
14496
      # All OSF/1 code is PIC.
 
14497
      lt_prog_compiler_static_F77='-non_shared'
 
14498
      ;;
 
14499
 
 
14500
    solaris*)
 
14501
      lt_prog_compiler_pic_F77='-KPIC'
 
14502
      lt_prog_compiler_static_F77='-Bstatic'
 
14503
      case $cc_basename in
 
14504
      f77* | f90* | f95*)
 
14505
        lt_prog_compiler_wl_F77='-Qoption ld ';;
 
14506
      *)
 
14507
        lt_prog_compiler_wl_F77='-Wl,';;
 
14508
      esac
 
14509
      ;;
 
14510
 
 
14511
    sunos4*)
 
14512
      lt_prog_compiler_wl_F77='-Qoption ld '
 
14513
      lt_prog_compiler_pic_F77='-PIC'
 
14514
      lt_prog_compiler_static_F77='-Bstatic'
 
14515
      ;;
 
14516
 
 
14517
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
14518
      lt_prog_compiler_wl_F77='-Wl,'
 
14519
      lt_prog_compiler_pic_F77='-KPIC'
 
14520
      lt_prog_compiler_static_F77='-Bstatic'
 
14521
      ;;
 
14522
 
 
14523
    sysv4*MP*)
 
14524
      if test -d /usr/nec ;then
 
14525
        lt_prog_compiler_pic_F77='-Kconform_pic'
 
14526
        lt_prog_compiler_static_F77='-Bstatic'
 
14527
      fi
 
14528
      ;;
 
14529
 
 
14530
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
14531
      lt_prog_compiler_wl_F77='-Wl,'
 
14532
      lt_prog_compiler_pic_F77='-KPIC'
 
14533
      lt_prog_compiler_static_F77='-Bstatic'
 
14534
      ;;
 
14535
 
 
14536
    unicos*)
 
14537
      lt_prog_compiler_wl_F77='-Wl,'
 
14538
      lt_prog_compiler_can_build_shared_F77=no
 
14539
      ;;
 
14540
 
 
14541
    uts4*)
 
14542
      lt_prog_compiler_pic_F77='-pic'
 
14543
      lt_prog_compiler_static_F77='-Bstatic'
 
14544
      ;;
 
14545
 
 
14546
    *)
 
14547
      lt_prog_compiler_can_build_shared_F77=no
 
14548
      ;;
 
14549
    esac
 
14550
  fi
 
14551
 
 
14552
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
14553
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
 
14554
 
 
14555
#
 
14556
# Check to make sure the PIC flag actually works.
 
14557
#
 
14558
if test -n "$lt_prog_compiler_pic_F77"; then
 
14559
 
 
14560
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
14561
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
 
14562
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
 
14563
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14564
else
 
14565
  lt_prog_compiler_pic_works_F77=no
 
14566
  ac_outfile=conftest.$ac_objext
 
14567
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14568
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
 
14569
   # Insert the option either (1) after the last *FLAGS variable, or
 
14570
   # (2) before a word containing "conftest.", or (3) at the end.
 
14571
   # Note that $ac_compile itself does not contain backslashes and begins
 
14572
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14573
   # The option is referenced via a variable to avoid confusing sed.
 
14574
   lt_compile=`echo "$ac_compile" | $SED \
 
14575
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14576
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14577
   -e 's:$: $lt_compiler_flag:'`
 
14578
   (eval echo "\"\$as_me:14578: $lt_compile\"" >&5)
 
14579
   (eval "$lt_compile" 2>conftest.err)
 
14580
   ac_status=$?
 
14581
   cat conftest.err >&5
 
14582
   echo "$as_me:14582: \$? = $ac_status" >&5
 
14583
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
14584
     # The compiler can only warn and ignore the option if not recognized
 
14585
     # So say no if there are warnings other than the usual output.
 
14586
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
14587
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14588
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
14589
       lt_prog_compiler_pic_works_F77=yes
 
14590
     fi
 
14591
   fi
 
14592
   $rm conftest*
 
14593
 
 
14594
fi
 
14595
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
 
14596
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
 
14597
 
 
14598
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
 
14599
    case $lt_prog_compiler_pic_F77 in
 
14600
     "" | " "*) ;;
 
14601
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
 
14602
     esac
 
14603
else
 
14604
    lt_prog_compiler_pic_F77=
 
14605
     lt_prog_compiler_can_build_shared_F77=no
 
14606
fi
 
14607
 
 
14608
fi
 
14609
case $host_os in
 
14610
  # For platforms which do not support PIC, -DPIC is meaningless:
 
14611
  *djgpp*)
 
14612
    lt_prog_compiler_pic_F77=
 
14613
    ;;
 
14614
  *)
 
14615
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
 
14616
    ;;
 
14617
esac
 
14618
 
 
14619
#
 
14620
# Check to make sure the static flag actually works.
 
14621
#
 
14622
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
 
14623
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
14624
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
14625
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
 
14626
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14627
else
 
14628
  lt_prog_compiler_static_works_F77=no
 
14629
   save_LDFLAGS="$LDFLAGS"
 
14630
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
14631
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
14632
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
14633
     # The linker can only warn and ignore the option if not recognized
 
14634
     # So say no if there are warnings
 
14635
     if test -s conftest.err; then
 
14636
       # Append any errors to the config.log.
 
14637
       cat conftest.err 1>&5
 
14638
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
14639
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14640
       if diff conftest.exp conftest.er2 >/dev/null; then
 
14641
         lt_prog_compiler_static_works_F77=yes
 
14642
       fi
 
14643
     else
 
14644
       lt_prog_compiler_static_works_F77=yes
 
14645
     fi
 
14646
   fi
 
14647
   $rm conftest*
 
14648
   LDFLAGS="$save_LDFLAGS"
 
14649
 
 
14650
fi
 
14651
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
 
14652
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
 
14653
 
 
14654
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
 
14655
    :
 
14656
else
 
14657
    lt_prog_compiler_static_F77=
 
14658
fi
 
14659
 
 
14660
 
 
14661
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
14662
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
14663
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
 
14664
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14665
else
 
14666
  lt_cv_prog_compiler_c_o_F77=no
 
14667
   $rm -r conftest 2>/dev/null
 
14668
   mkdir conftest
 
14669
   cd conftest
 
14670
   mkdir out
 
14671
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14672
 
 
14673
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
14674
   # Insert the option either (1) after the last *FLAGS variable, or
 
14675
   # (2) before a word containing "conftest.", or (3) at the end.
 
14676
   # Note that $ac_compile itself does not contain backslashes and begins
 
14677
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14678
   lt_compile=`echo "$ac_compile" | $SED \
 
14679
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14680
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14681
   -e 's:$: $lt_compiler_flag:'`
 
14682
   (eval echo "\"\$as_me:14682: $lt_compile\"" >&5)
 
14683
   (eval "$lt_compile" 2>out/conftest.err)
 
14684
   ac_status=$?
 
14685
   cat out/conftest.err >&5
 
14686
   echo "$as_me:14686: \$? = $ac_status" >&5
 
14687
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
14688
   then
 
14689
     # The compiler can only warn and ignore the option if not recognized
 
14690
     # So say no if there are warnings
 
14691
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
14692
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
14693
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
14694
       lt_cv_prog_compiler_c_o_F77=yes
 
14695
     fi
 
14696
   fi
 
14697
   chmod u+w . 2>&5
 
14698
   $rm conftest*
 
14699
   # SGI C++ compiler will create directory out/ii_files/ for
 
14700
   # template instantiation
 
14701
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
14702
   $rm out/* && rmdir out
 
14703
   cd ..
 
14704
   rmdir conftest
 
14705
   $rm conftest*
 
14706
 
 
14707
fi
 
14708
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
14709
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
 
14710
 
 
14711
 
 
14712
hard_links="nottested"
 
14713
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
 
14714
  # do not overwrite the value of need_locks provided by the user
 
14715
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
14716
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
14717
  hard_links=yes
 
14718
  $rm conftest*
 
14719
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14720
  touch conftest.a
 
14721
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
14722
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14723
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
14724
echo "${ECHO_T}$hard_links" >&6; }
 
14725
  if test "$hard_links" = no; then
 
14726
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
14727
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
14728
    need_locks=warn
 
14729
  fi
 
14730
else
 
14731
  need_locks=no
 
14732
fi
 
14733
 
 
14734
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
14735
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
14736
 
 
14737
  runpath_var=
 
14738
  allow_undefined_flag_F77=
 
14739
  enable_shared_with_static_runtimes_F77=no
 
14740
  archive_cmds_F77=
 
14741
  archive_expsym_cmds_F77=
 
14742
  old_archive_From_new_cmds_F77=
 
14743
  old_archive_from_expsyms_cmds_F77=
 
14744
  export_dynamic_flag_spec_F77=
 
14745
  whole_archive_flag_spec_F77=
 
14746
  thread_safe_flag_spec_F77=
 
14747
  hardcode_libdir_flag_spec_F77=
 
14748
  hardcode_libdir_flag_spec_ld_F77=
 
14749
  hardcode_libdir_separator_F77=
 
14750
  hardcode_direct_F77=no
 
14751
  hardcode_minus_L_F77=no
 
14752
  hardcode_shlibpath_var_F77=unsupported
 
14753
  link_all_deplibs_F77=unknown
 
14754
  hardcode_automatic_F77=no
 
14755
  module_cmds_F77=
 
14756
  module_expsym_cmds_F77=
 
14757
  always_export_symbols_F77=no
 
14758
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
14759
  # include_expsyms should be a list of space-separated symbols to be *always*
 
14760
  # included in the symbol list
 
14761
  include_expsyms_F77=
 
14762
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
14763
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
14764
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
14765
  # as well as any symbol that contains `d'.
 
14766
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
 
14767
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
14768
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
14769
  # the symbol is explicitly referenced.  Since portable code cannot
 
14770
  # rely on this symbol name, it's probably fine to never include it in
 
14771
  # preloaded symbol tables.
 
14772
  extract_expsyms_cmds=
 
14773
  # Just being paranoid about ensuring that cc_basename is set.
 
14774
  for cc_temp in $compiler""; do
 
14775
  case $cc_temp in
 
14776
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
14777
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
14778
    \-*) ;;
 
14779
    *) break;;
 
14780
  esac
 
14781
done
 
14782
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
14783
 
 
14784
  case $host_os in
 
14785
  cygwin* | mingw* | pw32*)
 
14786
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
14787
    # When not using gcc, we currently assume that we are using
 
14788
    # Microsoft Visual C++.
 
14789
    if test "$GCC" != yes; then
 
14790
      with_gnu_ld=no
 
14791
    fi
 
14792
    ;;
 
14793
  interix*)
 
14794
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
14795
    with_gnu_ld=yes
 
14796
    ;;
 
14797
  openbsd*)
 
14798
    with_gnu_ld=no
 
14799
    ;;
 
14800
  esac
 
14801
 
 
14802
  ld_shlibs_F77=yes
 
14803
  if test "$with_gnu_ld" = yes; then
 
14804
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
14805
    wlarc='${wl}'
 
14806
 
 
14807
    # Set some defaults for GNU ld with shared library support. These
 
14808
    # are reset later if shared libraries are not supported. Putting them
 
14809
    # here allows them to be overridden if necessary.
 
14810
    runpath_var=LD_RUN_PATH
 
14811
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
14812
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
14813
    # ancient GNU ld didn't support --whole-archive et. al.
 
14814
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
14815
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
14816
      else
 
14817
        whole_archive_flag_spec_F77=
 
14818
    fi
 
14819
    supports_anon_versioning=no
 
14820
    case `$LD -v 2>/dev/null` in
 
14821
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
14822
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
14823
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
14824
      *\ 2.11.*) ;; # other 2.11 versions
 
14825
      *) supports_anon_versioning=yes ;;
 
14826
    esac
 
14827
 
 
14828
    # See if GNU ld supports shared libraries.
 
14829
    case $host_os in
 
14830
    aix3* | aix4* | aix5*)
 
14831
      # On AIX/PPC, the GNU linker is very broken
 
14832
      if test "$host_cpu" != ia64; then
 
14833
        ld_shlibs_F77=no
 
14834
        cat <<EOF 1>&2
 
14835
 
 
14836
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
14837
*** to be unable to reliably create shared libraries on AIX.
 
14838
*** Therefore, libtool is disabling shared libraries support.  If you
 
14839
*** really care for shared libraries, you may want to modify your PATH
 
14840
*** so that a non-GNU linker is found, and then restart.
 
14841
 
 
14842
EOF
 
14843
      fi
 
14844
      ;;
 
14845
 
 
14846
    amigaos*)
 
14847
      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)'
 
14848
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14849
      hardcode_minus_L_F77=yes
 
14850
 
 
14851
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
14852
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
14853
      # to version 4, is to share data among multiple programs linked
 
14854
      # with the same dynamic library.  Since this doesn't match the
 
14855
      # behavior of shared libraries on other platforms, we can't use
 
14856
      # them.
 
14857
      ld_shlibs_F77=no
 
14858
      ;;
 
14859
 
 
14860
    beos*)
 
14861
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14862
        allow_undefined_flag_F77=unsupported
 
14863
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
14864
        # support --undefined.  This deserves some investigation.  FIXME
 
14865
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14866
      else
 
14867
        ld_shlibs_F77=no
 
14868
      fi
 
14869
      ;;
 
14870
 
 
14871
    cygwin* | mingw* | pw32*)
 
14872
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
 
14873
      # as there is no search path for DLLs.
 
14874
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14875
      allow_undefined_flag_F77=unsupported
 
14876
      always_export_symbols_F77=no
 
14877
      enable_shared_with_static_runtimes_F77=yes
 
14878
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
14879
 
 
14880
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
14881
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
14882
        # If the export-symbols file already is a .def file (1st line
 
14883
        # is EXPORTS), use it as is; otherwise, prepend...
 
14884
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
14885
          cp $export_symbols $output_objdir/$soname.def;
 
14886
        else
 
14887
          echo EXPORTS > $output_objdir/$soname.def;
 
14888
          cat $export_symbols >> $output_objdir/$soname.def;
 
14889
        fi~
 
14890
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
14891
      else
 
14892
        ld_shlibs_F77=no
 
14893
      fi
 
14894
      ;;
 
14895
 
 
14896
    interix3*)
 
14897
      hardcode_direct_F77=no
 
14898
      hardcode_shlibpath_var_F77=no
 
14899
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
14900
      export_dynamic_flag_spec_F77='${wl}-E'
 
14901
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
14902
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
14903
      # default) and relocated if they conflict, which is a slow very memory
 
14904
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
14905
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
14906
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
14907
      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'
 
14908
      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'
 
14909
      ;;
 
14910
 
 
14911
    linux* | k*bsd*-gnu)
 
14912
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14913
        tmp_addflag=
 
14914
        case $cc_basename,$host_cpu in
 
14915
        pgcc*)                          # Portland Group C compiler
 
14916
          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'
 
14917
          tmp_addflag=' $pic_flag'
 
14918
          ;;
 
14919
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
14920
          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'
 
14921
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
14922
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
14923
          tmp_addflag=' -i_dynamic' ;;
 
14924
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
14925
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
14926
        ifc* | ifort*)                  # Intel Fortran compiler
 
14927
          tmp_addflag=' -nofor_main' ;;
 
14928
        esac
 
14929
        archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14930
 
 
14931
        if test $supports_anon_versioning = yes; then
 
14932
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
14933
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
14934
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
14935
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
14936
        fi
 
14937
        link_all_deplibs_F77=no
 
14938
      else
 
14939
        ld_shlibs_F77=no
 
14940
      fi
 
14941
      ;;
 
14942
 
 
14943
    netbsd* | netbsdelf*-gnu)
 
14944
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14945
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
14946
        wlarc=
 
14947
      else
 
14948
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14949
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14950
      fi
 
14951
      ;;
 
14952
 
 
14953
    solaris*)
 
14954
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
14955
        ld_shlibs_F77=no
 
14956
        cat <<EOF 1>&2
 
14957
 
 
14958
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
14959
*** create shared libraries on Solaris systems.  Therefore, libtool
 
14960
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
14961
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
14962
*** your PATH or compiler configuration so that the native linker is
 
14963
*** used, and then restart.
 
14964
 
 
14965
EOF
 
14966
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14967
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14968
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14969
      else
 
14970
        ld_shlibs_F77=no
 
14971
      fi
 
14972
      ;;
 
14973
 
 
14974
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
14975
      case `$LD -v 2>&1` in
 
14976
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
14977
        ld_shlibs_F77=no
 
14978
        cat <<_LT_EOF 1>&2
 
14979
 
 
14980
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
14981
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
14982
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
14983
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
14984
*** your PATH or compiler configuration so that the native linker is
 
14985
*** used, and then restart.
 
14986
 
 
14987
_LT_EOF
 
14988
        ;;
 
14989
        *)
 
14990
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14991
            hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
14992
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
14993
            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
14994
          else
 
14995
            ld_shlibs_F77=no
 
14996
          fi
 
14997
        ;;
 
14998
      esac
 
14999
      ;;
 
15000
 
 
15001
    sunos4*)
 
15002
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15003
      wlarc=
 
15004
      hardcode_direct_F77=yes
 
15005
      hardcode_shlibpath_var_F77=no
 
15006
      ;;
 
15007
 
 
15008
    *)
 
15009
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15010
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15011
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15012
      else
 
15013
        ld_shlibs_F77=no
 
15014
      fi
 
15015
      ;;
 
15016
    esac
 
15017
 
 
15018
    if test "$ld_shlibs_F77" = no; then
 
15019
      runpath_var=
 
15020
      hardcode_libdir_flag_spec_F77=
 
15021
      export_dynamic_flag_spec_F77=
 
15022
      whole_archive_flag_spec_F77=
 
15023
    fi
 
15024
  else
 
15025
    # PORTME fill in a description of your system's linker (not GNU ld)
 
15026
    case $host_os in
 
15027
    aix3*)
 
15028
      allow_undefined_flag_F77=unsupported
 
15029
      always_export_symbols_F77=yes
 
15030
      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'
 
15031
      # Note: this linker hardcodes the directories in LIBPATH if there
 
15032
      # are no directories specified by -L.
 
15033
      hardcode_minus_L_F77=yes
 
15034
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
15035
        # Neither direct hardcoding nor static linking is supported with a
 
15036
        # broken collect2.
 
15037
        hardcode_direct_F77=unsupported
 
15038
      fi
 
15039
      ;;
 
15040
 
 
15041
    aix4* | aix5*)
 
15042
      if test "$host_cpu" = ia64; then
 
15043
        # On IA64, the linker does run time linking by default, so we don't
 
15044
        # have to do anything special.
 
15045
        aix_use_runtimelinking=no
 
15046
        exp_sym_flag='-Bexport'
 
15047
        no_entry_flag=""
 
15048
      else
 
15049
        # If we're using GNU nm, then we don't want the "-C" option.
 
15050
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
15051
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
15052
          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'
 
15053
        else
 
15054
          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'
 
15055
        fi
 
15056
        aix_use_runtimelinking=no
 
15057
 
 
15058
        # Test if we are trying to use run time linking or normal
 
15059
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
15060
        # need to do runtime linking.
 
15061
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
15062
          for ld_flag in $LDFLAGS; do
 
15063
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
15064
            aix_use_runtimelinking=yes
 
15065
            break
 
15066
          fi
 
15067
          done
 
15068
          ;;
 
15069
        esac
 
15070
 
 
15071
        exp_sym_flag='-bexport'
 
15072
        no_entry_flag='-bnoentry'
 
15073
      fi
 
15074
 
 
15075
      # When large executables or shared objects are built, AIX ld can
 
15076
      # have problems creating the table of contents.  If linking a library
 
15077
      # or program results in "error TOC overflow" add -mminimal-toc to
 
15078
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
15079
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
15080
 
 
15081
      archive_cmds_F77=''
 
15082
      hardcode_direct_F77=yes
 
15083
      hardcode_libdir_separator_F77=':'
 
15084
      link_all_deplibs_F77=yes
 
15085
 
 
15086
      if test "$GCC" = yes; then
 
15087
        case $host_os in aix4.[012]|aix4.[012].*)
 
15088
        # We only want to do this on AIX 4.2 and lower, the check
 
15089
        # below for broken collect2 doesn't work under 4.3+
 
15090
          collect2name=`${CC} -print-prog-name=collect2`
 
15091
          if test -f "$collect2name" && \
 
15092
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
15093
          then
 
15094
          # We have reworked collect2
 
15095
          hardcode_direct_F77=yes
 
15096
          else
 
15097
          # We have old collect2
 
15098
          hardcode_direct_F77=unsupported
 
15099
          # It fails to find uninstalled libraries when the uninstalled
 
15100
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
15101
          # to unsupported forces relinking
 
15102
          hardcode_minus_L_F77=yes
 
15103
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
15104
          hardcode_libdir_separator_F77=
 
15105
          fi
 
15106
          ;;
 
15107
        esac
 
15108
        shared_flag='-shared'
 
15109
        if test "$aix_use_runtimelinking" = yes; then
 
15110
          shared_flag="$shared_flag "'${wl}-G'
 
15111
        fi
 
15112
      else
 
15113
        # not using gcc
 
15114
        if test "$host_cpu" = ia64; then
 
15115
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
15116
        # chokes on -Wl,-G. The following line is correct:
 
15117
          shared_flag='-G'
 
15118
        else
 
15119
          if test "$aix_use_runtimelinking" = yes; then
 
15120
            shared_flag='${wl}-G'
 
15121
          else
 
15122
            shared_flag='${wl}-bM:SRE'
 
15123
          fi
 
15124
        fi
 
15125
      fi
 
15126
 
 
15127
      # It seems that -bexpall does not export symbols beginning with
 
15128
      # underscore (_), so it is better to generate a list of symbols to export.
 
15129
      always_export_symbols_F77=yes
 
15130
      if test "$aix_use_runtimelinking" = yes; then
 
15131
        # Warning - without using the other runtime loading flags (-brtl),
 
15132
        # -berok will link without error, but may produce a broken library.
 
15133
        allow_undefined_flag_F77='-berok'
 
15134
       # Determine the default libpath from the value encoded in an empty executable.
 
15135
       cat >conftest.$ac_ext <<_ACEOF
 
15136
      program main
 
15137
 
 
15138
      end
 
15139
_ACEOF
 
15140
rm -f conftest.$ac_objext conftest$ac_exeext
 
15141
if { (ac_try="$ac_link"
 
15142
case "(($ac_try" in
 
15143
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15144
  *) ac_try_echo=$ac_try;;
 
15145
esac
 
15146
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15147
  (eval "$ac_link") 2>conftest.er1
 
15148
  ac_status=$?
 
15149
  grep -v '^ *+' conftest.er1 >conftest.err
 
15150
  rm -f conftest.er1
 
15151
  cat conftest.err >&5
 
15152
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15153
  (exit $ac_status); } &&
 
15154
         { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
 
15155
  { (case "(($ac_try" in
 
15156
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15157
  *) ac_try_echo=$ac_try;;
 
15158
esac
 
15159
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15160
  (eval "$ac_try") 2>&5
 
15161
  ac_status=$?
 
15162
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15163
  (exit $ac_status); }; } &&
 
15164
         { ac_try='test -s conftest$ac_exeext'
 
15165
  { (case "(($ac_try" in
 
15166
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15167
  *) ac_try_echo=$ac_try;;
 
15168
esac
 
15169
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15170
  (eval "$ac_try") 2>&5
 
15171
  ac_status=$?
 
15172
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15173
  (exit $ac_status); }; }; then
 
15174
 
 
15175
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
15176
}'`
 
15177
# Check for a 64-bit object if we didn't find anything.
 
15178
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
15179
}'`; fi
 
15180
else
 
15181
  echo "$as_me: failed program was:" >&5
 
15182
sed 's/^/| /' conftest.$ac_ext >&5
 
15183
 
 
15184
 
 
15185
fi
 
15186
 
 
15187
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
15188
      conftest$ac_exeext conftest.$ac_ext
 
15189
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
15190
 
 
15191
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
15192
        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"
 
15193
       else
 
15194
        if test "$host_cpu" = ia64; then
 
15195
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
 
15196
          allow_undefined_flag_F77="-z nodefs"
 
15197
          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"
 
15198
        else
 
15199
         # Determine the default libpath from the value encoded in an empty executable.
 
15200
         cat >conftest.$ac_ext <<_ACEOF
 
15201
      program main
 
15202
 
 
15203
      end
 
15204
_ACEOF
 
15205
rm -f conftest.$ac_objext conftest$ac_exeext
 
15206
if { (ac_try="$ac_link"
 
15207
case "(($ac_try" in
 
15208
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15209
  *) ac_try_echo=$ac_try;;
 
15210
esac
 
15211
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15212
  (eval "$ac_link") 2>conftest.er1
 
15213
  ac_status=$?
 
15214
  grep -v '^ *+' conftest.er1 >conftest.err
 
15215
  rm -f conftest.er1
 
15216
  cat conftest.err >&5
 
15217
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15218
  (exit $ac_status); } &&
 
15219
         { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
 
15220
  { (case "(($ac_try" in
 
15221
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15222
  *) ac_try_echo=$ac_try;;
 
15223
esac
 
15224
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15225
  (eval "$ac_try") 2>&5
 
15226
  ac_status=$?
 
15227
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15228
  (exit $ac_status); }; } &&
 
15229
         { ac_try='test -s conftest$ac_exeext'
 
15230
  { (case "(($ac_try" in
 
15231
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15232
  *) ac_try_echo=$ac_try;;
 
15233
esac
 
15234
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15235
  (eval "$ac_try") 2>&5
 
15236
  ac_status=$?
 
15237
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15238
  (exit $ac_status); }; }; then
 
15239
 
 
15240
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
15241
}'`
 
15242
# Check for a 64-bit object if we didn't find anything.
 
15243
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
15244
}'`; fi
 
15245
else
 
15246
  echo "$as_me: failed program was:" >&5
 
15247
sed 's/^/| /' conftest.$ac_ext >&5
 
15248
 
 
15249
 
 
15250
fi
 
15251
 
 
15252
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
15253
      conftest$ac_exeext conftest.$ac_ext
 
15254
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
15255
 
 
15256
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
15257
          # Warning - without using the other run time loading flags,
 
15258
          # -berok will link without error, but may produce a broken library.
 
15259
          no_undefined_flag_F77=' ${wl}-bernotok'
 
15260
          allow_undefined_flag_F77=' ${wl}-berok'
 
15261
          # Exported symbols can be pulled into shared objects from archives
 
15262
          whole_archive_flag_spec_F77='$convenience'
 
15263
          archive_cmds_need_lc_F77=yes
 
15264
          # This is similar to how AIX traditionally builds its shared libraries.
 
15265
          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'
 
15266
        fi
 
15267
      fi
 
15268
      ;;
 
15269
 
 
15270
    amigaos*)
 
15271
      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)'
 
15272
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15273
      hardcode_minus_L_F77=yes
 
15274
      # see comment about different semantics on the GNU ld section
 
15275
      ld_shlibs_F77=no
 
15276
      ;;
 
15277
 
 
15278
    bsdi[45]*)
 
15279
      export_dynamic_flag_spec_F77=-rdynamic
 
15280
      ;;
 
15281
 
 
15282
    cygwin* | mingw* | pw32*)
 
15283
      # When not using gcc, we currently assume that we are using
 
15284
      # Microsoft Visual C++.
 
15285
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
15286
      # no search path for DLLs.
 
15287
      hardcode_libdir_flag_spec_F77=' '
 
15288
      allow_undefined_flag_F77=unsupported
 
15289
      # Tell ltmain to make .lib files, not .a files.
 
15290
      libext=lib
 
15291
      # Tell ltmain to make .dll files, not .so files.
 
15292
      shrext_cmds=".dll"
 
15293
      # FIXME: Setting linknames here is a bad hack.
 
15294
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
15295
      # The linker will automatically build a .lib file if we build a DLL.
 
15296
      old_archive_From_new_cmds_F77='true'
 
15297
      # FIXME: Should let the user specify the lib program.
 
15298
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
15299
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
 
15300
      enable_shared_with_static_runtimes_F77=yes
 
15301
      ;;
 
15302
 
 
15303
    darwin* | rhapsody*)
 
15304
      case $host_os in
 
15305
        rhapsody* | darwin1.[012])
 
15306
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
 
15307
         ;;
 
15308
       *) # Darwin 1.3 on
 
15309
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
15310
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
15311
         else
 
15312
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
15313
             10.[012])
 
15314
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
15315
               ;;
 
15316
             10.*)
 
15317
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
 
15318
               ;;
 
15319
           esac
 
15320
         fi
 
15321
         ;;
 
15322
      esac
 
15323
      archive_cmds_need_lc_F77=no
 
15324
      hardcode_direct_F77=no
 
15325
      hardcode_automatic_F77=yes
 
15326
      hardcode_shlibpath_var_F77=unsupported
 
15327
      whole_archive_flag_spec_F77=''
 
15328
      link_all_deplibs_F77=yes
 
15329
    if test "$GCC" = yes ; then
 
15330
        output_verbose_link_cmd='echo'
 
15331
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
15332
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
15333
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
15334
      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
15335
      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}'
 
15336
    else
 
15337
      case $cc_basename in
 
15338
        xlc*)
 
15339
         output_verbose_link_cmd='echo'
 
15340
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
15341
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
15342
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
15343
         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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
15344
          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}'
 
15345
          ;;
 
15346
       *)
 
15347
         ld_shlibs_F77=no
 
15348
          ;;
 
15349
      esac
 
15350
    fi
 
15351
      ;;
 
15352
 
 
15353
    dgux*)
 
15354
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15355
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15356
      hardcode_shlibpath_var_F77=no
 
15357
      ;;
 
15358
 
 
15359
    freebsd1*)
 
15360
      ld_shlibs_F77=no
 
15361
      ;;
 
15362
 
 
15363
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
15364
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
15365
    # does not break anything, and helps significantly (at the cost of a little
 
15366
    # extra space).
 
15367
    freebsd2.2*)
 
15368
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
15369
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15370
      hardcode_direct_F77=yes
 
15371
      hardcode_shlibpath_var_F77=no
 
15372
      ;;
 
15373
 
 
15374
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
15375
    freebsd2*)
 
15376
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15377
      hardcode_direct_F77=yes
 
15378
      hardcode_minus_L_F77=yes
 
15379
      hardcode_shlibpath_var_F77=no
 
15380
      ;;
 
15381
 
 
15382
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
15383
    freebsd* | dragonfly*)
 
15384
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
15385
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15386
      hardcode_direct_F77=yes
 
15387
      hardcode_shlibpath_var_F77=no
 
15388
      ;;
 
15389
 
 
15390
    hpux9*)
 
15391
      if test "$GCC" = yes; then
 
15392
        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'
 
15393
      else
 
15394
        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'
 
15395
      fi
 
15396
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15397
      hardcode_libdir_separator_F77=:
 
15398
      hardcode_direct_F77=yes
 
15399
 
 
15400
      # hardcode_minus_L: Not really in the search PATH,
 
15401
      # but as the default location of the library.
 
15402
      hardcode_minus_L_F77=yes
 
15403
      export_dynamic_flag_spec_F77='${wl}-E'
 
15404
      ;;
 
15405
 
 
15406
    hpux10*)
 
15407
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
15408
        archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15409
      else
 
15410
        archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
15411
      fi
 
15412
      if test "$with_gnu_ld" = no; then
 
15413
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15414
        hardcode_libdir_separator_F77=:
 
15415
 
 
15416
        hardcode_direct_F77=yes
 
15417
        export_dynamic_flag_spec_F77='${wl}-E'
 
15418
 
 
15419
        # hardcode_minus_L: Not really in the search PATH,
 
15420
        # but as the default location of the library.
 
15421
        hardcode_minus_L_F77=yes
 
15422
      fi
 
15423
      ;;
 
15424
 
 
15425
    hpux11*)
 
15426
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
15427
        case $host_cpu in
 
15428
        hppa*64*)
 
15429
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15430
          ;;
 
15431
        ia64*)
 
15432
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
15433
          ;;
 
15434
        *)
 
15435
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15436
          ;;
 
15437
        esac
 
15438
      else
 
15439
        case $host_cpu in
 
15440
        hppa*64*)
 
15441
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15442
          ;;
 
15443
        ia64*)
 
15444
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
15445
          ;;
 
15446
        *)
 
15447
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15448
          ;;
 
15449
        esac
 
15450
      fi
 
15451
      if test "$with_gnu_ld" = no; then
 
15452
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15453
        hardcode_libdir_separator_F77=:
 
15454
 
 
15455
        case $host_cpu in
 
15456
        hppa*64*|ia64*)
 
15457
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
 
15458
          hardcode_direct_F77=no
 
15459
          hardcode_shlibpath_var_F77=no
 
15460
          ;;
 
15461
        *)
 
15462
          hardcode_direct_F77=yes
 
15463
          export_dynamic_flag_spec_F77='${wl}-E'
 
15464
 
 
15465
          # hardcode_minus_L: Not really in the search PATH,
 
15466
          # but as the default location of the library.
 
15467
          hardcode_minus_L_F77=yes
 
15468
          ;;
 
15469
        esac
 
15470
      fi
 
15471
      ;;
 
15472
 
 
15473
    irix5* | irix6* | nonstopux*)
 
15474
      if test "$GCC" = yes; then
 
15475
        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'
 
15476
      else
 
15477
        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'
 
15478
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
 
15479
      fi
 
15480
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15481
      hardcode_libdir_separator_F77=:
 
15482
      link_all_deplibs_F77=yes
 
15483
      ;;
 
15484
 
 
15485
    netbsd* | netbsdelf*-gnu)
 
15486
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15487
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
15488
      else
 
15489
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
15490
      fi
 
15491
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15492
      hardcode_direct_F77=yes
 
15493
      hardcode_shlibpath_var_F77=no
 
15494
      ;;
 
15495
 
 
15496
    newsos6)
 
15497
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15498
      hardcode_direct_F77=yes
 
15499
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15500
      hardcode_libdir_separator_F77=:
 
15501
      hardcode_shlibpath_var_F77=no
 
15502
      ;;
 
15503
 
 
15504
    openbsd*)
 
15505
      hardcode_direct_F77=yes
 
15506
      hardcode_shlibpath_var_F77=no
 
15507
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
15508
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15509
        archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
15510
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15511
        export_dynamic_flag_spec_F77='${wl}-E'
 
15512
      else
 
15513
       case $host_os in
 
15514
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
15515
           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15516
           hardcode_libdir_flag_spec_F77='-R$libdir'
 
15517
           ;;
 
15518
         *)
 
15519
           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15520
           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15521
           ;;
 
15522
       esac
 
15523
      fi
 
15524
      ;;
 
15525
 
 
15526
    os2*)
 
15527
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15528
      hardcode_minus_L_F77=yes
 
15529
      allow_undefined_flag_F77=unsupported
 
15530
      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'
 
15531
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
15532
      ;;
 
15533
 
 
15534
    osf3*)
 
15535
      if test "$GCC" = yes; then
 
15536
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
15537
        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'
 
15538
      else
 
15539
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
15540
        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'
 
15541
      fi
 
15542
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15543
      hardcode_libdir_separator_F77=:
 
15544
      ;;
 
15545
 
 
15546
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
15547
      if test "$GCC" = yes; then
 
15548
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
15549
        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'
 
15550
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15551
      else
 
15552
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
15553
        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'
 
15554
        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~
 
15555
        $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'
 
15556
 
 
15557
        # Both c and cxx compiler support -rpath directly
 
15558
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
 
15559
      fi
 
15560
      hardcode_libdir_separator_F77=:
 
15561
      ;;
 
15562
 
 
15563
    solaris*)
 
15564
      no_undefined_flag_F77=' -z text'
 
15565
      if test "$GCC" = yes; then
 
15566
        wlarc='${wl}'
 
15567
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15568
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15569
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
15570
      else
 
15571
        wlarc=''
 
15572
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15573
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15574
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
15575
      fi
 
15576
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15577
      hardcode_shlibpath_var_F77=no
 
15578
      case $host_os in
 
15579
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
15580
      *)
 
15581
        # The compiler driver will combine linker options so we
 
15582
        # cannot just pass the convience library names through
 
15583
        # without $wl, iff we do not link with $LD.
 
15584
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
15585
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
15586
        case $wlarc in
 
15587
        '')
 
15588
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
15589
        *)
 
15590
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
15591
        esac ;;
 
15592
      esac
 
15593
      link_all_deplibs_F77=yes
 
15594
      ;;
 
15595
 
 
15596
    sunos4*)
 
15597
      if test "x$host_vendor" = xsequent; then
 
15598
        # Use $CC to link under sequent, because it throws in some extra .o
 
15599
        # files that make .init and .fini sections work.
 
15600
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
15601
      else
 
15602
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
15603
      fi
 
15604
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15605
      hardcode_direct_F77=yes
 
15606
      hardcode_minus_L_F77=yes
 
15607
      hardcode_shlibpath_var_F77=no
 
15608
      ;;
 
15609
 
 
15610
    sysv4)
 
15611
      case $host_vendor in
 
15612
        sni)
 
15613
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15614
          hardcode_direct_F77=yes # is this really true???
 
15615
        ;;
 
15616
        siemens)
 
15617
          ## LD is ld it makes a PLAMLIB
 
15618
          ## CC just makes a GrossModule.
 
15619
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
15620
          reload_cmds_F77='$CC -r -o $output$reload_objs'
 
15621
          hardcode_direct_F77=no
 
15622
        ;;
 
15623
        motorola)
 
15624
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15625
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
 
15626
        ;;
 
15627
      esac
 
15628
      runpath_var='LD_RUN_PATH'
 
15629
      hardcode_shlibpath_var_F77=no
 
15630
      ;;
 
15631
 
 
15632
    sysv4.3*)
 
15633
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15634
      hardcode_shlibpath_var_F77=no
 
15635
      export_dynamic_flag_spec_F77='-Bexport'
 
15636
      ;;
 
15637
 
 
15638
    sysv4*MP*)
 
15639
      if test -d /usr/nec; then
 
15640
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15641
        hardcode_shlibpath_var_F77=no
 
15642
        runpath_var=LD_RUN_PATH
 
15643
        hardcode_runpath_var=yes
 
15644
        ld_shlibs_F77=yes
 
15645
      fi
 
15646
      ;;
 
15647
 
 
15648
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
15649
      no_undefined_flag_F77='${wl}-z,text'
 
15650
      archive_cmds_need_lc_F77=no
 
15651
      hardcode_shlibpath_var_F77=no
 
15652
      runpath_var='LD_RUN_PATH'
 
15653
 
 
15654
      if test "$GCC" = yes; then
 
15655
        archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15656
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15657
      else
 
15658
        archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15659
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15660
      fi
 
15661
      ;;
 
15662
 
 
15663
    sysv5* | sco3.2v5* | sco5v6*)
 
15664
      # Note: We can NOT use -z defs as we might desire, because we do not
 
15665
      # link with -lc, and that would cause any symbols used from libc to
 
15666
      # always be unresolved, which means just about no library would
 
15667
      # ever link correctly.  If we're not using GNU ld we use -z text
 
15668
      # though, which does catch some bad symbols but isn't as heavy-handed
 
15669
      # as -z defs.
 
15670
      no_undefined_flag_F77='${wl}-z,text'
 
15671
      allow_undefined_flag_F77='${wl}-z,nodefs'
 
15672
      archive_cmds_need_lc_F77=no
 
15673
      hardcode_shlibpath_var_F77=no
 
15674
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
15675
      hardcode_libdir_separator_F77=':'
 
15676
      link_all_deplibs_F77=yes
 
15677
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
15678
      runpath_var='LD_RUN_PATH'
 
15679
 
 
15680
      if test "$GCC" = yes; then
 
15681
        archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15682
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15683
      else
 
15684
        archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15685
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15686
      fi
 
15687
      ;;
 
15688
 
 
15689
    uts4*)
 
15690
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15691
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15692
      hardcode_shlibpath_var_F77=no
 
15693
      ;;
 
15694
 
 
15695
    *)
 
15696
      ld_shlibs_F77=no
 
15697
      ;;
 
15698
    esac
 
15699
  fi
 
15700
 
 
15701
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
15702
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
 
15703
test "$ld_shlibs_F77" = no && can_build_shared=no
 
15704
 
 
15705
#
 
15706
# Do we need to explicitly link libc?
 
15707
#
 
15708
case "x$archive_cmds_need_lc_F77" in
 
15709
x|xyes)
 
15710
  # Assume -lc should be added
 
15711
  archive_cmds_need_lc_F77=yes
 
15712
 
 
15713
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
15714
    case $archive_cmds_F77 in
 
15715
    *'~'*)
 
15716
      # FIXME: we may have to deal with multi-command sequences.
 
15717
      ;;
 
15718
    '$CC '*)
 
15719
      # Test whether the compiler implicitly links with -lc since on some
 
15720
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
15721
      # to ld, don't add -lc before -lgcc.
 
15722
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
15723
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
15724
      $rm conftest*
 
15725
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15726
 
 
15727
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15728
  (eval $ac_compile) 2>&5
 
15729
  ac_status=$?
 
15730
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15731
  (exit $ac_status); } 2>conftest.err; then
 
15732
        soname=conftest
 
15733
        lib=conftest
 
15734
        libobjs=conftest.$ac_objext
 
15735
        deplibs=
 
15736
        wl=$lt_prog_compiler_wl_F77
 
15737
        pic_flag=$lt_prog_compiler_pic_F77
 
15738
        compiler_flags=-v
 
15739
        linker_flags=-v
 
15740
        verstring=
 
15741
        output_objdir=.
 
15742
        libname=conftest
 
15743
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
 
15744
        allow_undefined_flag_F77=
 
15745
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
15746
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
15747
  ac_status=$?
 
15748
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15749
  (exit $ac_status); }
 
15750
        then
 
15751
          archive_cmds_need_lc_F77=no
 
15752
        else
 
15753
          archive_cmds_need_lc_F77=yes
 
15754
        fi
 
15755
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
 
15756
      else
 
15757
        cat conftest.err 1>&5
 
15758
      fi
 
15759
      $rm conftest*
 
15760
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
15761
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
 
15762
      ;;
 
15763
    esac
 
15764
  fi
 
15765
  ;;
 
15766
esac
 
15767
 
 
15768
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
15769
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
15770
library_names_spec=
 
15771
libname_spec='lib$name'
 
15772
soname_spec=
 
15773
shrext_cmds=".so"
 
15774
postinstall_cmds=
 
15775
postuninstall_cmds=
 
15776
finish_cmds=
 
15777
finish_eval=
 
15778
shlibpath_var=
 
15779
shlibpath_overrides_runpath=unknown
 
15780
version_type=none
 
15781
dynamic_linker="$host_os ld.so"
 
15782
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
15783
if test "$GCC" = yes; then
 
15784
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
15785
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
15786
    # if the path contains ";" then we assume it to be the separator
 
15787
    # otherwise default to the standard path separator (i.e. ":") - it is
 
15788
    # assumed that no part of a normal pathname contains ";" but that should
 
15789
    # okay in the real world where ";" in dirpaths is itself problematic.
 
15790
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
15791
  else
 
15792
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
15793
  fi
 
15794
else
 
15795
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
15796
fi
 
15797
need_lib_prefix=unknown
 
15798
hardcode_into_libs=no
 
15799
 
 
15800
# when you set need_version to no, make sure it does not cause -set_version
 
15801
# flags to be left without arguments
 
15802
need_version=unknown
 
15803
 
 
15804
case $host_os in
 
15805
aix3*)
 
15806
  version_type=linux
 
15807
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
15808
  shlibpath_var=LIBPATH
 
15809
 
 
15810
  # AIX 3 has no versioning support, so we append a major version to the name.
 
15811
  soname_spec='${libname}${release}${shared_ext}$major'
 
15812
  ;;
 
15813
 
 
15814
aix4* | aix5*)
 
15815
  version_type=linux
 
15816
  need_lib_prefix=no
 
15817
  need_version=no
 
15818
  hardcode_into_libs=yes
 
15819
  if test "$host_cpu" = ia64; then
 
15820
    # AIX 5 supports IA64
 
15821
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
15822
    shlibpath_var=LD_LIBRARY_PATH
 
15823
  else
 
15824
    # With GCC up to 2.95.x, collect2 would create an import file
 
15825
    # for dependence libraries.  The import file would start with
 
15826
    # the line `#! .'.  This would cause the generated library to
 
15827
    # depend on `.', always an invalid library.  This was fixed in
 
15828
    # development snapshots of GCC prior to 3.0.
 
15829
    case $host_os in
 
15830
      aix4 | aix4.[01] | aix4.[01].*)
 
15831
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
15832
           echo ' yes '
 
15833
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
15834
        :
 
15835
      else
 
15836
        can_build_shared=no
 
15837
      fi
 
15838
      ;;
 
15839
    esac
 
15840
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
15841
    # soname into executable. Probably we can add versioning support to
 
15842
    # collect2, so additional links can be useful in future.
 
15843
    if test "$aix_use_runtimelinking" = yes; then
 
15844
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
15845
      # instead of lib<name>.a to let people know that these are not
 
15846
      # typical AIX shared libraries.
 
15847
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15848
    else
 
15849
      # We preserve .a as extension for shared libraries through AIX4.2
 
15850
      # and later when we are not doing run time linking.
 
15851
      library_names_spec='${libname}${release}.a $libname.a'
 
15852
      soname_spec='${libname}${release}${shared_ext}$major'
 
15853
    fi
 
15854
    shlibpath_var=LIBPATH
 
15855
  fi
 
15856
  ;;
 
15857
 
 
15858
amigaos*)
 
15859
  library_names_spec='$libname.ixlibrary $libname.a'
 
15860
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
15861
  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'
 
15862
  ;;
 
15863
 
 
15864
beos*)
 
15865
  library_names_spec='${libname}${shared_ext}'
 
15866
  dynamic_linker="$host_os ld.so"
 
15867
  shlibpath_var=LIBRARY_PATH
 
15868
  ;;
 
15869
 
 
15870
bsdi[45]*)
 
15871
  version_type=linux
 
15872
  need_version=no
 
15873
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15874
  soname_spec='${libname}${release}${shared_ext}$major'
 
15875
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
15876
  shlibpath_var=LD_LIBRARY_PATH
 
15877
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
15878
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
15879
  # the default ld.so.conf also contains /usr/contrib/lib and
 
15880
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
15881
  # libtool to hard-code these into programs
 
15882
  ;;
 
15883
 
 
15884
cygwin* | mingw* | pw32*)
 
15885
  version_type=windows
 
15886
  shrext_cmds=".dll"
 
15887
  need_version=no
 
15888
  need_lib_prefix=no
 
15889
 
 
15890
  case $GCC,$host_os in
 
15891
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
15892
    library_names_spec='$libname.dll.a'
 
15893
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
15894
    postinstall_cmds='base_file=`basename \${file}`~
 
15895
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
15896
      dldir=$destdir/`dirname \$dlpath`~
 
15897
      test -d \$dldir || mkdir -p \$dldir~
 
15898
      $install_prog $dir/$dlname \$dldir/$dlname~
 
15899
      chmod a+x \$dldir/$dlname'
 
15900
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
15901
      dlpath=$dir/\$dldll~
 
15902
       $rm \$dlpath'
 
15903
    shlibpath_overrides_runpath=yes
 
15904
 
 
15905
    case $host_os in
 
15906
    cygwin*)
 
15907
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
15908
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15909
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
15910
      ;;
 
15911
    mingw*)
 
15912
      # MinGW DLLs use traditional 'lib' prefix
 
15913
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15914
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
15915
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
15916
        # It is most probably a Windows format PATH printed by
 
15917
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
15918
        # path with ; separators, and with drive letters. We can handle the
 
15919
        # drive letters (cygwin fileutils understands them), so leave them,
 
15920
        # especially as we might pass files found there to a mingw objdump,
 
15921
        # which wouldn't understand a cygwinified path. Ahh.
 
15922
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
15923
      else
 
15924
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
15925
      fi
 
15926
      ;;
 
15927
    pw32*)
 
15928
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
15929
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15930
      ;;
 
15931
    esac
 
15932
    ;;
 
15933
 
 
15934
  *)
 
15935
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
15936
    ;;
 
15937
  esac
 
15938
  dynamic_linker='Win32 ld.exe'
 
15939
  # FIXME: first we should search . and the directory the executable is in
 
15940
  shlibpath_var=PATH
 
15941
  ;;
 
15942
 
 
15943
darwin* | rhapsody*)
 
15944
  dynamic_linker="$host_os dyld"
 
15945
  version_type=darwin
 
15946
  need_lib_prefix=no
 
15947
  need_version=no
 
15948
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
15949
  soname_spec='${libname}${release}${major}$shared_ext'
 
15950
  shlibpath_overrides_runpath=yes
 
15951
  shlibpath_var=DYLD_LIBRARY_PATH
 
15952
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
15953
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
15954
  if test "$GCC" = yes; then
 
15955
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
15956
  else
 
15957
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
15958
  fi
 
15959
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
15960
  ;;
 
15961
 
 
15962
dgux*)
 
15963
  version_type=linux
 
15964
  need_lib_prefix=no
 
15965
  need_version=no
 
15966
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
15967
  soname_spec='${libname}${release}${shared_ext}$major'
 
15968
  shlibpath_var=LD_LIBRARY_PATH
 
15969
  ;;
 
15970
 
 
15971
freebsd1*)
 
15972
  dynamic_linker=no
 
15973
  ;;
 
15974
 
 
15975
freebsd* | dragonfly*)
 
15976
  # DragonFly does not have aout.  When/if they implement a new
 
15977
  # versioning mechanism, adjust this.
 
15978
  if test -x /usr/bin/objformat; then
 
15979
    objformat=`/usr/bin/objformat`
 
15980
  else
 
15981
    case $host_os in
 
15982
    freebsd[123]*) objformat=aout ;;
 
15983
    *) objformat=elf ;;
 
15984
    esac
 
15985
  fi
 
15986
  version_type=freebsd-$objformat
 
15987
  case $version_type in
 
15988
    freebsd-elf*)
 
15989
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15990
      need_version=no
 
15991
      need_lib_prefix=no
 
15992
      ;;
 
15993
    freebsd-*)
 
15994
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
15995
      need_version=yes
 
15996
      ;;
 
15997
  esac
 
15998
  shlibpath_var=LD_LIBRARY_PATH
 
15999
  case $host_os in
 
16000
  freebsd2*)
 
16001
    shlibpath_overrides_runpath=yes
 
16002
    ;;
 
16003
  freebsd3.[01]* | freebsdelf3.[01]*)
 
16004
    shlibpath_overrides_runpath=yes
 
16005
    hardcode_into_libs=yes
 
16006
    ;;
 
16007
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
16008
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
16009
    shlibpath_overrides_runpath=no
 
16010
    hardcode_into_libs=yes
 
16011
    ;;
 
16012
  freebsd*) # from 4.6 on
 
16013
    shlibpath_overrides_runpath=yes
 
16014
    hardcode_into_libs=yes
 
16015
    ;;
 
16016
  esac
 
16017
  ;;
 
16018
 
 
16019
gnu*)
 
16020
  version_type=linux
 
16021
  need_lib_prefix=no
 
16022
  need_version=no
 
16023
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
16024
  soname_spec='${libname}${release}${shared_ext}$major'
 
16025
  shlibpath_var=LD_LIBRARY_PATH
 
16026
  hardcode_into_libs=yes
 
16027
  ;;
 
16028
 
 
16029
hpux9* | hpux10* | hpux11*)
 
16030
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
16031
  # link against other versions.
 
16032
  version_type=sunos
 
16033
  need_lib_prefix=no
 
16034
  need_version=no
 
16035
  case $host_cpu in
 
16036
  ia64*)
 
16037
    shrext_cmds='.so'
 
16038
    hardcode_into_libs=yes
 
16039
    dynamic_linker="$host_os dld.so"
 
16040
    shlibpath_var=LD_LIBRARY_PATH
 
16041
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
16042
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16043
    soname_spec='${libname}${release}${shared_ext}$major'
 
16044
    if test "X$HPUX_IA64_MODE" = X32; then
 
16045
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
16046
    else
 
16047
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
16048
    fi
 
16049
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
16050
    ;;
 
16051
   hppa*64*)
 
16052
     shrext_cmds='.sl'
 
16053
     hardcode_into_libs=yes
 
16054
     dynamic_linker="$host_os dld.sl"
 
16055
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
16056
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
16057
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16058
     soname_spec='${libname}${release}${shared_ext}$major'
 
16059
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
16060
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
16061
     ;;
 
16062
   *)
 
16063
    shrext_cmds='.sl'
 
16064
    dynamic_linker="$host_os dld.sl"
 
16065
    shlibpath_var=SHLIB_PATH
 
16066
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
16067
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16068
    soname_spec='${libname}${release}${shared_ext}$major'
 
16069
    ;;
 
16070
  esac
 
16071
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
16072
  postinstall_cmds='chmod 555 $lib'
 
16073
  ;;
 
16074
 
 
16075
interix3*)
 
16076
  version_type=linux
 
16077
  need_lib_prefix=no
 
16078
  need_version=no
 
16079
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16080
  soname_spec='${libname}${release}${shared_ext}$major'
 
16081
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
16082
  shlibpath_var=LD_LIBRARY_PATH
 
16083
  shlibpath_overrides_runpath=no
 
16084
  hardcode_into_libs=yes
 
16085
  ;;
 
16086
 
 
16087
irix5* | irix6* | nonstopux*)
 
16088
  case $host_os in
 
16089
    nonstopux*) version_type=nonstopux ;;
 
16090
    *)
 
16091
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
16092
                version_type=linux
 
16093
        else
 
16094
                version_type=irix
 
16095
        fi ;;
 
16096
  esac
 
16097
  need_lib_prefix=no
 
16098
  need_version=no
 
16099
  soname_spec='${libname}${release}${shared_ext}$major'
 
16100
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16101
  case $host_os in
 
16102
  irix5* | nonstopux*)
 
16103
    libsuff= shlibsuff=
 
16104
    ;;
 
16105
  *)
 
16106
    case $LD in # libtool.m4 will add one of these switches to LD
 
16107
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
16108
      libsuff= shlibsuff= libmagic=32-bit;;
 
16109
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
16110
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
16111
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
16112
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
16113
    *) libsuff= shlibsuff= libmagic=never-match;;
 
16114
    esac
 
16115
    ;;
 
16116
  esac
 
16117
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
16118
  shlibpath_overrides_runpath=no
 
16119
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
16120
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
16121
  hardcode_into_libs=yes
 
16122
  ;;
 
16123
 
 
16124
# No shared lib support for Linux oldld, aout, or coff.
 
16125
linux*oldld* | linux*aout* | linux*coff*)
 
16126
  dynamic_linker=no
 
16127
  ;;
 
16128
 
 
16129
# This must be Linux ELF.
 
16130
linux* | k*bsd*-gnu)
 
16131
  version_type=linux
 
16132
  need_lib_prefix=no
 
16133
  need_version=no
 
16134
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16135
  soname_spec='${libname}${release}${shared_ext}$major'
 
16136
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
16137
  shlibpath_var=LD_LIBRARY_PATH
 
16138
  shlibpath_overrides_runpath=no
 
16139
  # This implies no fast_install, which is unacceptable.
 
16140
  # Some rework will be needed to allow for fast_install
 
16141
  # before this can be enabled.
 
16142
  hardcode_into_libs=yes
 
16143
 
 
16144
  # Append ld.so.conf contents to the search path
 
16145
  if test -f /etc/ld.so.conf; then
 
16146
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
16147
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
16148
  fi
 
16149
 
 
16150
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
16151
  # powerpc, because MkLinux only supported shared libraries with the
 
16152
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
16153
  # most powerpc-linux boxes support dynamic linking these days and
 
16154
  # people can always --disable-shared, the test was removed, and we
 
16155
  # assume the GNU/Linux dynamic linker is in use.
 
16156
  dynamic_linker='GNU/Linux ld.so'
 
16157
  ;;
 
16158
 
 
16159
netbsdelf*-gnu)
 
16160
  version_type=linux
 
16161
  need_lib_prefix=no
 
16162
  need_version=no
 
16163
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16164
  soname_spec='${libname}${release}${shared_ext}$major'
 
16165
  shlibpath_var=LD_LIBRARY_PATH
 
16166
  shlibpath_overrides_runpath=no
 
16167
  hardcode_into_libs=yes
 
16168
  dynamic_linker='NetBSD ld.elf_so'
 
16169
  ;;
 
16170
 
 
16171
netbsd*)
 
16172
  version_type=sunos
 
16173
  need_lib_prefix=no
 
16174
  need_version=no
 
16175
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16176
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16177
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
16178
    dynamic_linker='NetBSD (a.out) ld.so'
 
16179
  else
 
16180
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16181
    soname_spec='${libname}${release}${shared_ext}$major'
 
16182
    dynamic_linker='NetBSD ld.elf_so'
 
16183
  fi
 
16184
  shlibpath_var=LD_LIBRARY_PATH
 
16185
  shlibpath_overrides_runpath=yes
 
16186
  hardcode_into_libs=yes
 
16187
  ;;
 
16188
 
 
16189
newsos6)
 
16190
  version_type=linux
 
16191
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16192
  shlibpath_var=LD_LIBRARY_PATH
 
16193
  shlibpath_overrides_runpath=yes
 
16194
  ;;
 
16195
 
 
16196
nto-qnx*)
 
16197
  version_type=linux
 
16198
  need_lib_prefix=no
 
16199
  need_version=no
 
16200
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16201
  soname_spec='${libname}${release}${shared_ext}$major'
 
16202
  shlibpath_var=LD_LIBRARY_PATH
 
16203
  shlibpath_overrides_runpath=yes
 
16204
  ;;
 
16205
 
 
16206
openbsd*)
 
16207
  version_type=sunos
 
16208
  sys_lib_dlsearch_path_spec="/usr/lib"
 
16209
  need_lib_prefix=no
 
16210
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
16211
  case $host_os in
 
16212
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
16213
    *)                         need_version=no  ;;
 
16214
  esac
 
16215
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16216
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
16217
  shlibpath_var=LD_LIBRARY_PATH
 
16218
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
16219
    case $host_os in
 
16220
      openbsd2.[89] | openbsd2.[89].*)
 
16221
        shlibpath_overrides_runpath=no
 
16222
        ;;
 
16223
      *)
 
16224
        shlibpath_overrides_runpath=yes
 
16225
        ;;
 
16226
      esac
 
16227
  else
 
16228
    shlibpath_overrides_runpath=yes
 
16229
  fi
 
16230
  ;;
 
16231
 
 
16232
os2*)
 
16233
  libname_spec='$name'
 
16234
  shrext_cmds=".dll"
 
16235
  need_lib_prefix=no
 
16236
  library_names_spec='$libname${shared_ext} $libname.a'
 
16237
  dynamic_linker='OS/2 ld.exe'
 
16238
  shlibpath_var=LIBPATH
 
16239
  ;;
 
16240
 
 
16241
osf3* | osf4* | osf5*)
 
16242
  version_type=osf
 
16243
  need_lib_prefix=no
 
16244
  need_version=no
 
16245
  soname_spec='${libname}${release}${shared_ext}$major'
 
16246
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16247
  shlibpath_var=LD_LIBRARY_PATH
 
16248
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
16249
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
16250
  ;;
 
16251
 
 
16252
solaris*)
 
16253
  version_type=linux
 
16254
  need_lib_prefix=no
 
16255
  need_version=no
 
16256
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16257
  soname_spec='${libname}${release}${shared_ext}$major'
 
16258
  shlibpath_var=LD_LIBRARY_PATH
 
16259
  shlibpath_overrides_runpath=yes
 
16260
  hardcode_into_libs=yes
 
16261
  # ldd complains unless libraries are executable
 
16262
  postinstall_cmds='chmod +x $lib'
 
16263
  ;;
 
16264
 
 
16265
sunos4*)
 
16266
  version_type=sunos
 
16267
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16268
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
16269
  shlibpath_var=LD_LIBRARY_PATH
 
16270
  shlibpath_overrides_runpath=yes
 
16271
  if test "$with_gnu_ld" = yes; then
 
16272
    need_lib_prefix=no
 
16273
  fi
 
16274
  need_version=yes
 
16275
  ;;
 
16276
 
 
16277
sysv4 | sysv4.3*)
 
16278
  version_type=linux
 
16279
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16280
  soname_spec='${libname}${release}${shared_ext}$major'
 
16281
  shlibpath_var=LD_LIBRARY_PATH
 
16282
  case $host_vendor in
 
16283
    sni)
 
16284
      shlibpath_overrides_runpath=no
 
16285
      need_lib_prefix=no
 
16286
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
16287
      runpath_var=LD_RUN_PATH
 
16288
      ;;
 
16289
    siemens)
 
16290
      need_lib_prefix=no
 
16291
      ;;
 
16292
    motorola)
 
16293
      need_lib_prefix=no
 
16294
      need_version=no
 
16295
      shlibpath_overrides_runpath=no
 
16296
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
16297
      ;;
 
16298
  esac
 
16299
  ;;
 
16300
 
 
16301
sysv4*MP*)
 
16302
  if test -d /usr/nec ;then
 
16303
    version_type=linux
 
16304
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
16305
    soname_spec='$libname${shared_ext}.$major'
 
16306
    shlibpath_var=LD_LIBRARY_PATH
 
16307
  fi
 
16308
  ;;
 
16309
 
 
16310
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
16311
  version_type=freebsd-elf
 
16312
  need_lib_prefix=no
 
16313
  need_version=no
 
16314
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16315
  soname_spec='${libname}${release}${shared_ext}$major'
 
16316
  shlibpath_var=LD_LIBRARY_PATH
 
16317
  hardcode_into_libs=yes
 
16318
  if test "$with_gnu_ld" = yes; then
 
16319
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
16320
    shlibpath_overrides_runpath=no
 
16321
  else
 
16322
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
16323
    shlibpath_overrides_runpath=yes
 
16324
    case $host_os in
 
16325
      sco3.2v5*)
 
16326
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
16327
        ;;
 
16328
    esac
 
16329
  fi
 
16330
  sys_lib_dlsearch_path_spec='/usr/lib'
 
16331
  ;;
 
16332
 
 
16333
uts4*)
 
16334
  version_type=linux
 
16335
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16336
  soname_spec='${libname}${release}${shared_ext}$major'
 
16337
  shlibpath_var=LD_LIBRARY_PATH
 
16338
  ;;
 
16339
 
 
16340
*)
 
16341
  dynamic_linker=no
 
16342
  ;;
 
16343
esac
 
16344
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
16345
echo "${ECHO_T}$dynamic_linker" >&6; }
 
16346
test "$dynamic_linker" = no && can_build_shared=no
 
16347
 
 
16348
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
16349
if test "$GCC" = yes; then
 
16350
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
16351
fi
 
16352
 
 
16353
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
16354
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
16355
hardcode_action_F77=
 
16356
if test -n "$hardcode_libdir_flag_spec_F77" || \
 
16357
   test -n "$runpath_var_F77" || \
 
16358
   test "X$hardcode_automatic_F77" = "Xyes" ; then
 
16359
 
 
16360
  # We can hardcode non-existant directories.
 
16361
  if test "$hardcode_direct_F77" != no &&
 
16362
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
16363
     # have to relink, otherwise we might link with an installed library
 
16364
     # when we should be linking with a yet-to-be-installed one
 
16365
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
 
16366
     test "$hardcode_minus_L_F77" != no; then
 
16367
    # Linking always hardcodes the temporary library directory.
 
16368
    hardcode_action_F77=relink
 
16369
  else
 
16370
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
16371
    hardcode_action_F77=immediate
 
16372
  fi
 
16373
else
 
16374
  # We cannot hardcode anything, or else we can only hardcode existing
 
16375
  # directories.
 
16376
  hardcode_action_F77=unsupported
 
16377
fi
 
16378
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
16379
echo "${ECHO_T}$hardcode_action_F77" >&6; }
 
16380
 
 
16381
if test "$hardcode_action_F77" = relink; then
 
16382
  # Fast installation is not supported
 
16383
  enable_fast_install=no
 
16384
elif test "$shlibpath_overrides_runpath" = yes ||
 
16385
     test "$enable_shared" = no; then
 
16386
  # Fast installation is not necessary
 
16387
  enable_fast_install=needless
 
16388
fi
 
16389
 
 
16390
 
 
16391
# The else clause should only fire when bootstrapping the
 
16392
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
16393
# with your package, and you will get complaints that there are
 
16394
# no rules to generate ltmain.sh.
 
16395
if test -f "$ltmain"; then
 
16396
  # See if we are running on zsh, and set the options which allow our commands through
 
16397
  # without removal of \ escapes.
 
16398
  if test -n "${ZSH_VERSION+set}" ; then
 
16399
    setopt NO_GLOB_SUBST
 
16400
  fi
 
16401
  # Now quote all the things that may contain metacharacters while being
 
16402
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
16403
  # variables and quote the copies for generation of the libtool script.
 
16404
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
16405
    SED SHELL STRIP \
 
16406
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
16407
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
16408
    deplibs_check_method reload_flag reload_cmds need_locks \
 
16409
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
16410
    lt_cv_sys_global_symbol_to_c_name_address \
 
16411
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
16412
    old_postinstall_cmds old_postuninstall_cmds \
 
16413
    compiler_F77 \
 
16414
    CC_F77 \
 
16415
    LD_F77 \
 
16416
    lt_prog_compiler_wl_F77 \
 
16417
    lt_prog_compiler_pic_F77 \
 
16418
    lt_prog_compiler_static_F77 \
 
16419
    lt_prog_compiler_no_builtin_flag_F77 \
 
16420
    export_dynamic_flag_spec_F77 \
 
16421
    thread_safe_flag_spec_F77 \
 
16422
    whole_archive_flag_spec_F77 \
 
16423
    enable_shared_with_static_runtimes_F77 \
 
16424
    old_archive_cmds_F77 \
 
16425
    old_archive_from_new_cmds_F77 \
 
16426
    predep_objects_F77 \
 
16427
    postdep_objects_F77 \
 
16428
    predeps_F77 \
 
16429
    postdeps_F77 \
 
16430
    compiler_lib_search_path_F77 \
 
16431
    archive_cmds_F77 \
 
16432
    archive_expsym_cmds_F77 \
 
16433
    postinstall_cmds_F77 \
 
16434
    postuninstall_cmds_F77 \
 
16435
    old_archive_from_expsyms_cmds_F77 \
 
16436
    allow_undefined_flag_F77 \
 
16437
    no_undefined_flag_F77 \
 
16438
    export_symbols_cmds_F77 \
 
16439
    hardcode_libdir_flag_spec_F77 \
 
16440
    hardcode_libdir_flag_spec_ld_F77 \
 
16441
    hardcode_libdir_separator_F77 \
 
16442
    hardcode_automatic_F77 \
 
16443
    module_cmds_F77 \
 
16444
    module_expsym_cmds_F77 \
 
16445
    lt_cv_prog_compiler_c_o_F77 \
 
16446
    exclude_expsyms_F77 \
 
16447
    include_expsyms_F77; do
 
16448
 
 
16449
    case $var in
 
16450
    old_archive_cmds_F77 | \
 
16451
    old_archive_from_new_cmds_F77 | \
 
16452
    archive_cmds_F77 | \
 
16453
    archive_expsym_cmds_F77 | \
 
16454
    module_cmds_F77 | \
 
16455
    module_expsym_cmds_F77 | \
 
16456
    old_archive_from_expsyms_cmds_F77 | \
 
16457
    export_symbols_cmds_F77 | \
 
16458
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
16459
    postinstall_cmds | postuninstall_cmds | \
 
16460
    old_postinstall_cmds | old_postuninstall_cmds | \
 
16461
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
16462
      # Double-quote double-evaled strings.
 
16463
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
16464
      ;;
 
16465
    *)
 
16466
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
16467
      ;;
 
16468
    esac
 
16469
  done
 
16470
 
 
16471
  case $lt_echo in
 
16472
  *'\$0 --fallback-echo"')
 
16473
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
16474
    ;;
 
16475
  esac
 
16476
 
 
16477
cfgfile="$ofile"
 
16478
 
 
16479
  cat <<__EOF__ >> "$cfgfile"
 
16480
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
16481
 
 
16482
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
16483
 
 
16484
# Shell to use when invoking shell scripts.
 
16485
SHELL=$lt_SHELL
 
16486
 
 
16487
# Whether or not to build shared libraries.
 
16488
build_libtool_libs=$enable_shared
 
16489
 
 
16490
# Whether or not to build static libraries.
 
16491
build_old_libs=$enable_static
 
16492
 
 
16493
# Whether or not to add -lc for building shared libraries.
 
16494
build_libtool_need_lc=$archive_cmds_need_lc_F77
 
16495
 
 
16496
# Whether or not to disallow shared libs when runtime libs are static
 
16497
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
 
16498
 
 
16499
# Whether or not to optimize for fast installation.
 
16500
fast_install=$enable_fast_install
 
16501
 
 
16502
# The host system.
 
16503
host_alias=$host_alias
 
16504
host=$host
 
16505
host_os=$host_os
 
16506
 
 
16507
# The build system.
 
16508
build_alias=$build_alias
 
16509
build=$build
 
16510
build_os=$build_os
 
16511
 
 
16512
# An echo program that does not interpret backslashes.
 
16513
echo=$lt_echo
 
16514
 
 
16515
# The archiver.
 
16516
AR=$lt_AR
 
16517
AR_FLAGS=$lt_AR_FLAGS
 
16518
 
 
16519
# A C compiler.
 
16520
LTCC=$lt_LTCC
 
16521
 
 
16522
# LTCC compiler flags.
 
16523
LTCFLAGS=$lt_LTCFLAGS
 
16524
 
 
16525
# A language-specific compiler.
 
16526
CC=$lt_compiler_F77
 
16527
 
 
16528
# Is the compiler the GNU C compiler?
 
16529
with_gcc=$GCC_F77
 
16530
 
 
16531
# An ERE matcher.
 
16532
EGREP=$lt_EGREP
 
16533
 
 
16534
# The linker used to build libraries.
 
16535
LD=$lt_LD_F77
 
16536
 
 
16537
# Whether we need hard or soft links.
 
16538
LN_S=$lt_LN_S
 
16539
 
 
16540
# A BSD-compatible nm program.
 
16541
NM=$lt_NM
 
16542
 
 
16543
# A symbol stripping program
 
16544
STRIP=$lt_STRIP
 
16545
 
 
16546
# Used to examine libraries when file_magic_cmd begins "file"
 
16547
MAGIC_CMD=$MAGIC_CMD
 
16548
 
 
16549
# Used on cygwin: DLL creation program.
 
16550
DLLTOOL="$DLLTOOL"
 
16551
 
 
16552
# Used on cygwin: object dumper.
 
16553
OBJDUMP="$OBJDUMP"
 
16554
 
 
16555
# Used on cygwin: assembler.
 
16556
AS="$AS"
 
16557
 
 
16558
# The name of the directory that contains temporary libtool files.
 
16559
objdir=$objdir
 
16560
 
 
16561
# How to create reloadable object files.
 
16562
reload_flag=$lt_reload_flag
 
16563
reload_cmds=$lt_reload_cmds
 
16564
 
 
16565
# How to pass a linker flag through the compiler.
 
16566
wl=$lt_lt_prog_compiler_wl_F77
 
16567
 
 
16568
# Object file suffix (normally "o").
 
16569
objext="$ac_objext"
 
16570
 
 
16571
# Old archive suffix (normally "a").
 
16572
libext="$libext"
 
16573
 
 
16574
# Shared library suffix (normally ".so").
 
16575
shrext_cmds='$shrext_cmds'
 
16576
 
 
16577
# Executable file suffix (normally "").
 
16578
exeext="$exeext"
 
16579
 
 
16580
# Additional compiler flags for building library objects.
 
16581
pic_flag=$lt_lt_prog_compiler_pic_F77
 
16582
pic_mode=$pic_mode
 
16583
 
 
16584
# What is the maximum length of a command?
 
16585
max_cmd_len=$lt_cv_sys_max_cmd_len
 
16586
 
 
16587
# Does compiler simultaneously support -c and -o options?
 
16588
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
 
16589
 
 
16590
# Must we lock files when doing compilation?
 
16591
need_locks=$lt_need_locks
 
16592
 
 
16593
# Do we need the lib prefix for modules?
 
16594
need_lib_prefix=$need_lib_prefix
 
16595
 
 
16596
# Do we need a version for libraries?
 
16597
need_version=$need_version
 
16598
 
 
16599
# Whether dlopen is supported.
 
16600
dlopen_support=$enable_dlopen
 
16601
 
 
16602
# Whether dlopen of programs is supported.
 
16603
dlopen_self=$enable_dlopen_self
 
16604
 
 
16605
# Whether dlopen of statically linked programs is supported.
 
16606
dlopen_self_static=$enable_dlopen_self_static
 
16607
 
 
16608
# Compiler flag to prevent dynamic linking.
 
16609
link_static_flag=$lt_lt_prog_compiler_static_F77
 
16610
 
 
16611
# Compiler flag to turn off builtin functions.
 
16612
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
 
16613
 
 
16614
# Compiler flag to allow reflexive dlopens.
 
16615
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
 
16616
 
 
16617
# Compiler flag to generate shared objects directly from archives.
 
16618
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
 
16619
 
 
16620
# Compiler flag to generate thread-safe objects.
 
16621
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
 
16622
 
 
16623
# Library versioning type.
 
16624
version_type=$version_type
 
16625
 
 
16626
# Format of library name prefix.
 
16627
libname_spec=$lt_libname_spec
 
16628
 
 
16629
# List of archive names.  First name is the real one, the rest are links.
 
16630
# The last name is the one that the linker finds with -lNAME.
 
16631
library_names_spec=$lt_library_names_spec
 
16632
 
 
16633
# The coded name of the library, if different from the real name.
 
16634
soname_spec=$lt_soname_spec
 
16635
 
 
16636
# Commands used to build and install an old-style archive.
 
16637
RANLIB=$lt_RANLIB
 
16638
old_archive_cmds=$lt_old_archive_cmds_F77
 
16639
old_postinstall_cmds=$lt_old_postinstall_cmds
 
16640
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
16641
 
 
16642
# Create an old-style archive from a shared archive.
 
16643
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
 
16644
 
 
16645
# Create a temporary old-style archive to link instead of a shared archive.
 
16646
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
 
16647
 
 
16648
# Commands used to build and install a shared archive.
 
16649
archive_cmds=$lt_archive_cmds_F77
 
16650
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
 
16651
postinstall_cmds=$lt_postinstall_cmds
 
16652
postuninstall_cmds=$lt_postuninstall_cmds
 
16653
 
 
16654
# Commands used to build a loadable module (assumed same as above if empty)
 
16655
module_cmds=$lt_module_cmds_F77
 
16656
module_expsym_cmds=$lt_module_expsym_cmds_F77
 
16657
 
 
16658
# Commands to strip libraries.
 
16659
old_striplib=$lt_old_striplib
 
16660
striplib=$lt_striplib
 
16661
 
 
16662
# Dependencies to place before the objects being linked to create a
 
16663
# shared library.
 
16664
predep_objects=$lt_predep_objects_F77
 
16665
 
 
16666
# Dependencies to place after the objects being linked to create a
 
16667
# shared library.
 
16668
postdep_objects=$lt_postdep_objects_F77
 
16669
 
 
16670
# Dependencies to place before the objects being linked to create a
 
16671
# shared library.
 
16672
predeps=$lt_predeps_F77
 
16673
 
 
16674
# Dependencies to place after the objects being linked to create a
 
16675
# shared library.
 
16676
postdeps=$lt_postdeps_F77
 
16677
 
 
16678
# The library search path used internally by the compiler when linking
 
16679
# a shared library.
 
16680
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
 
16681
 
 
16682
# Method to check whether dependent libraries are shared objects.
 
16683
deplibs_check_method=$lt_deplibs_check_method
 
16684
 
 
16685
# Command to use when deplibs_check_method == file_magic.
 
16686
file_magic_cmd=$lt_file_magic_cmd
 
16687
 
 
16688
# Flag that allows shared libraries with undefined symbols to be built.
 
16689
allow_undefined_flag=$lt_allow_undefined_flag_F77
 
16690
 
 
16691
# Flag that forces no undefined symbols.
 
16692
no_undefined_flag=$lt_no_undefined_flag_F77
 
16693
 
 
16694
# Commands used to finish a libtool library installation in a directory.
 
16695
finish_cmds=$lt_finish_cmds
 
16696
 
 
16697
# Same as above, but a single script fragment to be evaled but not shown.
 
16698
finish_eval=$lt_finish_eval
 
16699
 
 
16700
# Take the output of nm and produce a listing of raw symbols and C names.
 
16701
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
16702
 
 
16703
# Transform the output of nm in a proper C declaration
 
16704
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
16705
 
 
16706
# Transform the output of nm in a C name address pair
 
16707
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
16708
 
 
16709
# This is the shared library runtime path variable.
 
16710
runpath_var=$runpath_var
 
16711
 
 
16712
# This is the shared library path variable.
 
16713
shlibpath_var=$shlibpath_var
 
16714
 
 
16715
# Is shlibpath searched before the hard-coded library search path?
 
16716
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
16717
 
 
16718
# How to hardcode a shared library path into an executable.
 
16719
hardcode_action=$hardcode_action_F77
 
16720
 
 
16721
# Whether we should hardcode library paths into libraries.
 
16722
hardcode_into_libs=$hardcode_into_libs
 
16723
 
 
16724
# Flag to hardcode \$libdir into a binary during linking.
 
16725
# This must work even if \$libdir does not exist.
 
16726
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
 
16727
 
 
16728
# If ld is used when linking, flag to hardcode \$libdir into
 
16729
# a binary during linking. This must work even if \$libdir does
 
16730
# not exist.
 
16731
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
 
16732
 
 
16733
# Whether we need a single -rpath flag with a separated argument.
 
16734
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
 
16735
 
 
16736
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
16737
# resulting binary.
 
16738
hardcode_direct=$hardcode_direct_F77
 
16739
 
 
16740
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
16741
# resulting binary.
 
16742
hardcode_minus_L=$hardcode_minus_L_F77
 
16743
 
 
16744
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
16745
# the resulting binary.
 
16746
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
 
16747
 
 
16748
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
16749
# and all subsequent libraries and executables linked against it.
 
16750
hardcode_automatic=$hardcode_automatic_F77
 
16751
 
 
16752
# Variables whose values should be saved in libtool wrapper scripts and
 
16753
# restored at relink time.
 
16754
variables_saved_for_relink="$variables_saved_for_relink"
 
16755
 
 
16756
# Whether libtool must link a program against all its dependency libraries.
 
16757
link_all_deplibs=$link_all_deplibs_F77
 
16758
 
 
16759
# Compile-time system search path for libraries
 
16760
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
16761
 
 
16762
# Run-time system search path for libraries
 
16763
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
16764
 
 
16765
# Fix the shell variable \$srcfile for the compiler.
 
16766
fix_srcfile_path="$fix_srcfile_path_F77"
 
16767
 
 
16768
# Set to yes if exported symbols are required.
 
16769
always_export_symbols=$always_export_symbols_F77
 
16770
 
 
16771
# The commands to list exported symbols.
 
16772
export_symbols_cmds=$lt_export_symbols_cmds_F77
 
16773
 
 
16774
# The commands to extract the exported symbol list from a shared archive.
 
16775
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
16776
 
 
16777
# Symbols that should not be listed in the preloaded symbols.
 
16778
exclude_expsyms=$lt_exclude_expsyms_F77
 
16779
 
 
16780
# Symbols that must always be exported.
 
16781
include_expsyms=$lt_include_expsyms_F77
 
16782
 
 
16783
# ### END LIBTOOL TAG CONFIG: $tagname
 
16784
 
 
16785
__EOF__
 
16786
 
 
16787
 
 
16788
else
 
16789
  # If there is no Makefile yet, we rely on a make rule to execute
 
16790
  # `config.status --recheck' to rerun these tests and create the
 
16791
  # libtool script then.
 
16792
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
16793
  if test -f "$ltmain_in"; then
 
16794
    test -f Makefile && make "$ltmain"
 
16795
  fi
 
16796
fi
 
16797
 
 
16798
 
 
16799
ac_ext=c
 
16800
ac_cpp='$CPP $CPPFLAGS'
 
16801
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
16802
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
16803
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
16804
 
 
16805
CC="$lt_save_CC"
 
16806
 
 
16807
        else
 
16808
          tagname=""
 
16809
        fi
 
16810
        ;;
 
16811
 
 
16812
      GCJ)
 
16813
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
16814
 
 
16815
 
 
16816
# Source file extension for Java test sources.
 
16817
ac_ext=java
 
16818
 
 
16819
# Object file extension for compiled Java test sources.
 
16820
objext=o
 
16821
objext_GCJ=$objext
 
16822
 
 
16823
# Code to be used in simple compile tests
 
16824
lt_simple_compile_test_code="class foo {}\n"
 
16825
 
 
16826
# Code to be used in simple link tests
 
16827
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
 
16828
 
 
16829
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
16830
 
 
16831
# If no C compiler was specified, use CC.
 
16832
LTCC=${LTCC-"$CC"}
 
16833
 
 
16834
# If no C compiler flags were specified, use CFLAGS.
 
16835
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
16836
 
 
16837
# Allow CC to be a program name with arguments.
 
16838
compiler=$CC
 
16839
 
 
16840
 
 
16841
# save warnings/boilerplate of simple test code
 
16842
ac_outfile=conftest.$ac_objext
 
16843
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
16844
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
16845
_lt_compiler_boilerplate=`cat conftest.err`
 
16846
$rm conftest*
 
16847
 
 
16848
ac_outfile=conftest.$ac_objext
 
16849
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
16850
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
16851
_lt_linker_boilerplate=`cat conftest.err`
 
16852
$rm conftest*
 
16853
 
 
16854
 
 
16855
# Allow CC to be a program name with arguments.
 
16856
lt_save_CC="$CC"
 
16857
CC=${GCJ-"gcj"}
 
16858
compiler=$CC
 
16859
compiler_GCJ=$CC
 
16860
for cc_temp in $compiler""; do
 
16861
  case $cc_temp in
 
16862
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
16863
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
16864
    \-*) ;;
 
16865
    *) break;;
 
16866
  esac
 
16867
done
 
16868
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
16869
 
 
16870
 
 
16871
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
16872
archive_cmds_need_lc_GCJ=no
 
16873
 
 
16874
old_archive_cmds_GCJ=$old_archive_cmds
 
16875
 
 
16876
 
 
16877
lt_prog_compiler_no_builtin_flag_GCJ=
 
16878
 
 
16879
if test "$GCC" = yes; then
 
16880
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
 
16881
 
 
16882
 
 
16883
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
16884
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
 
16885
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
16886
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16887
else
 
16888
  lt_cv_prog_compiler_rtti_exceptions=no
 
16889
  ac_outfile=conftest.$ac_objext
 
16890
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16891
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
16892
   # Insert the option either (1) after the last *FLAGS variable, or
 
16893
   # (2) before a word containing "conftest.", or (3) at the end.
 
16894
   # Note that $ac_compile itself does not contain backslashes and begins
 
16895
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16896
   # The option is referenced via a variable to avoid confusing sed.
 
16897
   lt_compile=`echo "$ac_compile" | $SED \
 
16898
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
16899
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16900
   -e 's:$: $lt_compiler_flag:'`
 
16901
   (eval echo "\"\$as_me:16901: $lt_compile\"" >&5)
 
16902
   (eval "$lt_compile" 2>conftest.err)
 
16903
   ac_status=$?
 
16904
   cat conftest.err >&5
 
16905
   echo "$as_me:16905: \$? = $ac_status" >&5
 
16906
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
16907
     # The compiler can only warn and ignore the option if not recognized
 
16908
     # So say no if there are warnings other than the usual output.
 
16909
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
16910
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
16911
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
16912
       lt_cv_prog_compiler_rtti_exceptions=yes
 
16913
     fi
 
16914
   fi
 
16915
   $rm conftest*
 
16916
 
 
16917
fi
 
16918
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
16919
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
16920
 
 
16921
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
16922
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
 
16923
else
 
16924
    :
 
16925
fi
 
16926
 
 
16927
fi
 
16928
 
 
16929
lt_prog_compiler_wl_GCJ=
 
16930
lt_prog_compiler_pic_GCJ=
 
16931
lt_prog_compiler_static_GCJ=
 
16932
 
 
16933
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
16934
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
16935
 
 
16936
  if test "$GCC" = yes; then
 
16937
    lt_prog_compiler_wl_GCJ='-Wl,'
 
16938
    lt_prog_compiler_static_GCJ='-static'
 
16939
 
 
16940
    case $host_os in
 
16941
      aix*)
 
16942
      # All AIX code is PIC.
 
16943
      if test "$host_cpu" = ia64; then
 
16944
        # AIX 5 now supports IA64 processor
 
16945
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16946
      fi
 
16947
      ;;
 
16948
 
 
16949
    amigaos*)
 
16950
      # FIXME: we need at least 68020 code to build shared libraries, but
 
16951
      # adding the `-m68020' flag to GCC prevents building anything better,
 
16952
      # like `-m68040'.
 
16953
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
 
16954
      ;;
 
16955
 
 
16956
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
16957
      # PIC is the default for these OSes.
 
16958
      ;;
 
16959
 
 
16960
    mingw* | pw32* | os2*)
 
16961
      # This hack is so that the source file can tell whether it is being
 
16962
      # built for inclusion in a dll (and should export symbols for example).
 
16963
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
16964
      ;;
 
16965
 
 
16966
    darwin* | rhapsody*)
 
16967
      # PIC is the default on this platform
 
16968
      # Common symbols not allowed in MH_DYLIB files
 
16969
      lt_prog_compiler_pic_GCJ='-fno-common'
 
16970
      ;;
 
16971
 
 
16972
    interix3*)
 
16973
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
16974
      # Instead, we relocate shared libraries at runtime.
 
16975
      ;;
 
16976
 
 
16977
    msdosdjgpp*)
 
16978
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
16979
      # on systems that don't support them.
 
16980
      lt_prog_compiler_can_build_shared_GCJ=no
 
16981
      enable_shared=no
 
16982
      ;;
 
16983
 
 
16984
    sysv4*MP*)
 
16985
      if test -d /usr/nec; then
 
16986
        lt_prog_compiler_pic_GCJ=-Kconform_pic
 
16987
      fi
 
16988
      ;;
 
16989
 
 
16990
    hpux*)
 
16991
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
16992
      # not for PA HP-UX.
 
16993
      case $host_cpu in
 
16994
      hppa*64*|ia64*)
 
16995
        # +Z the default
 
16996
        ;;
 
16997
      *)
 
16998
        lt_prog_compiler_pic_GCJ='-fPIC'
 
16999
        ;;
 
17000
      esac
 
17001
      ;;
 
17002
 
 
17003
    *)
 
17004
      lt_prog_compiler_pic_GCJ='-fPIC'
 
17005
      ;;
 
17006
    esac
 
17007
  else
 
17008
    # PORTME Check for flag to pass linker flags through the system compiler.
 
17009
    case $host_os in
 
17010
    aix*)
 
17011
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17012
      if test "$host_cpu" = ia64; then
 
17013
        # AIX 5 now supports IA64 processor
 
17014
        lt_prog_compiler_static_GCJ='-Bstatic'
 
17015
      else
 
17016
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
 
17017
      fi
 
17018
      ;;
 
17019
      darwin*)
 
17020
        # PIC is the default on this platform
 
17021
        # Common symbols not allowed in MH_DYLIB files
 
17022
       case $cc_basename in
 
17023
         xlc*)
 
17024
         lt_prog_compiler_pic_GCJ='-qnocommon'
 
17025
         lt_prog_compiler_wl_GCJ='-Wl,'
 
17026
         ;;
 
17027
       esac
 
17028
       ;;
 
17029
 
 
17030
    mingw* | pw32* | os2*)
 
17031
      # This hack is so that the source file can tell whether it is being
 
17032
      # built for inclusion in a dll (and should export symbols for example).
 
17033
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
17034
      ;;
 
17035
 
 
17036
    hpux9* | hpux10* | hpux11*)
 
17037
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17038
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
17039
      # not for PA HP-UX.
 
17040
      case $host_cpu in
 
17041
      hppa*64*|ia64*)
 
17042
        # +Z the default
 
17043
        ;;
 
17044
      *)
 
17045
        lt_prog_compiler_pic_GCJ='+Z'
 
17046
        ;;
 
17047
      esac
 
17048
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
17049
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
 
17050
      ;;
 
17051
 
 
17052
    irix5* | irix6* | nonstopux*)
 
17053
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17054
      # PIC (with -KPIC) is the default.
 
17055
      lt_prog_compiler_static_GCJ='-non_shared'
 
17056
      ;;
 
17057
 
 
17058
    newsos6)
 
17059
      lt_prog_compiler_pic_GCJ='-KPIC'
 
17060
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17061
      ;;
 
17062
 
 
17063
    linux* | k*bsd*-gnu)
 
17064
      case $cc_basename in
 
17065
      icc* | ecc*)
 
17066
        lt_prog_compiler_wl_GCJ='-Wl,'
 
17067
        lt_prog_compiler_pic_GCJ='-KPIC'
 
17068
        lt_prog_compiler_static_GCJ='-static'
 
17069
        ;;
 
17070
      pgcc* | pgf77* | pgf90* | pgf95*)
 
17071
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
17072
        # which looks to be a dead project)
 
17073
        lt_prog_compiler_wl_GCJ='-Wl,'
 
17074
        lt_prog_compiler_pic_GCJ='-fpic'
 
17075
        lt_prog_compiler_static_GCJ='-Bstatic'
 
17076
        ;;
 
17077
      ccc*)
 
17078
        lt_prog_compiler_wl_GCJ='-Wl,'
 
17079
        # All Alpha code is PIC.
 
17080
        lt_prog_compiler_static_GCJ='-non_shared'
 
17081
        ;;
 
17082
      esac
 
17083
      ;;
 
17084
 
 
17085
    osf3* | osf4* | osf5*)
 
17086
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17087
      # All OSF/1 code is PIC.
 
17088
      lt_prog_compiler_static_GCJ='-non_shared'
 
17089
      ;;
 
17090
 
 
17091
    solaris*)
 
17092
      lt_prog_compiler_pic_GCJ='-KPIC'
 
17093
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17094
      case $cc_basename in
 
17095
      f77* | f90* | f95*)
 
17096
        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
 
17097
      *)
 
17098
        lt_prog_compiler_wl_GCJ='-Wl,';;
 
17099
      esac
 
17100
      ;;
 
17101
 
 
17102
    sunos4*)
 
17103
      lt_prog_compiler_wl_GCJ='-Qoption ld '
 
17104
      lt_prog_compiler_pic_GCJ='-PIC'
 
17105
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17106
      ;;
 
17107
 
 
17108
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
17109
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17110
      lt_prog_compiler_pic_GCJ='-KPIC'
 
17111
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17112
      ;;
 
17113
 
 
17114
    sysv4*MP*)
 
17115
      if test -d /usr/nec ;then
 
17116
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
 
17117
        lt_prog_compiler_static_GCJ='-Bstatic'
 
17118
      fi
 
17119
      ;;
 
17120
 
 
17121
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
17122
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17123
      lt_prog_compiler_pic_GCJ='-KPIC'
 
17124
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17125
      ;;
 
17126
 
 
17127
    unicos*)
 
17128
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17129
      lt_prog_compiler_can_build_shared_GCJ=no
 
17130
      ;;
 
17131
 
 
17132
    uts4*)
 
17133
      lt_prog_compiler_pic_GCJ='-pic'
 
17134
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17135
      ;;
 
17136
 
 
17137
    *)
 
17138
      lt_prog_compiler_can_build_shared_GCJ=no
 
17139
      ;;
 
17140
    esac
 
17141
  fi
 
17142
 
 
17143
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
17144
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
 
17145
 
 
17146
#
 
17147
# Check to make sure the PIC flag actually works.
 
17148
#
 
17149
if test -n "$lt_prog_compiler_pic_GCJ"; then
 
17150
 
 
17151
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
17152
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
 
17153
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
 
17154
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17155
else
 
17156
  lt_prog_compiler_pic_works_GCJ=no
 
17157
  ac_outfile=conftest.$ac_objext
 
17158
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17159
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
 
17160
   # Insert the option either (1) after the last *FLAGS variable, or
 
17161
   # (2) before a word containing "conftest.", or (3) at the end.
 
17162
   # Note that $ac_compile itself does not contain backslashes and begins
 
17163
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
17164
   # The option is referenced via a variable to avoid confusing sed.
 
17165
   lt_compile=`echo "$ac_compile" | $SED \
 
17166
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
17167
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
17168
   -e 's:$: $lt_compiler_flag:'`
 
17169
   (eval echo "\"\$as_me:17169: $lt_compile\"" >&5)
 
17170
   (eval "$lt_compile" 2>conftest.err)
 
17171
   ac_status=$?
 
17172
   cat conftest.err >&5
 
17173
   echo "$as_me:17173: \$? = $ac_status" >&5
 
17174
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
17175
     # The compiler can only warn and ignore the option if not recognized
 
17176
     # So say no if there are warnings other than the usual output.
 
17177
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
17178
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
17179
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
17180
       lt_prog_compiler_pic_works_GCJ=yes
 
17181
     fi
 
17182
   fi
 
17183
   $rm conftest*
 
17184
 
 
17185
fi
 
17186
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
 
17187
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
 
17188
 
 
17189
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
 
17190
    case $lt_prog_compiler_pic_GCJ in
 
17191
     "" | " "*) ;;
 
17192
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
 
17193
     esac
 
17194
else
 
17195
    lt_prog_compiler_pic_GCJ=
 
17196
     lt_prog_compiler_can_build_shared_GCJ=no
 
17197
fi
 
17198
 
 
17199
fi
 
17200
case $host_os in
 
17201
  # For platforms which do not support PIC, -DPIC is meaningless:
 
17202
  *djgpp*)
 
17203
    lt_prog_compiler_pic_GCJ=
 
17204
    ;;
 
17205
  *)
 
17206
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
 
17207
    ;;
 
17208
esac
 
17209
 
 
17210
#
 
17211
# Check to make sure the static flag actually works.
 
17212
#
 
17213
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
 
17214
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
17215
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
17216
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
 
17217
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17218
else
 
17219
  lt_prog_compiler_static_works_GCJ=no
 
17220
   save_LDFLAGS="$LDFLAGS"
 
17221
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
17222
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
17223
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
17224
     # The linker can only warn and ignore the option if not recognized
 
17225
     # So say no if there are warnings
 
17226
     if test -s conftest.err; then
 
17227
       # Append any errors to the config.log.
 
17228
       cat conftest.err 1>&5
 
17229
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
17230
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
17231
       if diff conftest.exp conftest.er2 >/dev/null; then
 
17232
         lt_prog_compiler_static_works_GCJ=yes
 
17233
       fi
 
17234
     else
 
17235
       lt_prog_compiler_static_works_GCJ=yes
 
17236
     fi
 
17237
   fi
 
17238
   $rm conftest*
 
17239
   LDFLAGS="$save_LDFLAGS"
 
17240
 
 
17241
fi
 
17242
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
 
17243
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
 
17244
 
 
17245
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
 
17246
    :
 
17247
else
 
17248
    lt_prog_compiler_static_GCJ=
 
17249
fi
 
17250
 
 
17251
 
 
17252
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
17253
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
17254
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
 
17255
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17256
else
 
17257
  lt_cv_prog_compiler_c_o_GCJ=no
 
17258
   $rm -r conftest 2>/dev/null
 
17259
   mkdir conftest
 
17260
   cd conftest
 
17261
   mkdir out
 
17262
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17263
 
 
17264
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
17265
   # Insert the option either (1) after the last *FLAGS variable, or
 
17266
   # (2) before a word containing "conftest.", or (3) at the end.
 
17267
   # Note that $ac_compile itself does not contain backslashes and begins
 
17268
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
17269
   lt_compile=`echo "$ac_compile" | $SED \
 
17270
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
17271
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
17272
   -e 's:$: $lt_compiler_flag:'`
 
17273
   (eval echo "\"\$as_me:17273: $lt_compile\"" >&5)
 
17274
   (eval "$lt_compile" 2>out/conftest.err)
 
17275
   ac_status=$?
 
17276
   cat out/conftest.err >&5
 
17277
   echo "$as_me:17277: \$? = $ac_status" >&5
 
17278
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
17279
   then
 
17280
     # The compiler can only warn and ignore the option if not recognized
 
17281
     # So say no if there are warnings
 
17282
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
17283
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
17284
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
17285
       lt_cv_prog_compiler_c_o_GCJ=yes
 
17286
     fi
 
17287
   fi
 
17288
   chmod u+w . 2>&5
 
17289
   $rm conftest*
 
17290
   # SGI C++ compiler will create directory out/ii_files/ for
 
17291
   # template instantiation
 
17292
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
17293
   $rm out/* && rmdir out
 
17294
   cd ..
 
17295
   rmdir conftest
 
17296
   $rm conftest*
 
17297
 
 
17298
fi
 
17299
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
17300
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
 
17301
 
 
17302
 
 
17303
hard_links="nottested"
 
17304
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
 
17305
  # do not overwrite the value of need_locks provided by the user
 
17306
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
17307
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
17308
  hard_links=yes
 
17309
  $rm conftest*
 
17310
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
17311
  touch conftest.a
 
17312
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
17313
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
17314
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
17315
echo "${ECHO_T}$hard_links" >&6; }
 
17316
  if test "$hard_links" = no; then
 
17317
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
17318
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
17319
    need_locks=warn
 
17320
  fi
 
17321
else
 
17322
  need_locks=no
 
17323
fi
 
17324
 
 
17325
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
17326
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
17327
 
 
17328
  runpath_var=
 
17329
  allow_undefined_flag_GCJ=
 
17330
  enable_shared_with_static_runtimes_GCJ=no
 
17331
  archive_cmds_GCJ=
 
17332
  archive_expsym_cmds_GCJ=
 
17333
  old_archive_From_new_cmds_GCJ=
 
17334
  old_archive_from_expsyms_cmds_GCJ=
 
17335
  export_dynamic_flag_spec_GCJ=
 
17336
  whole_archive_flag_spec_GCJ=
 
17337
  thread_safe_flag_spec_GCJ=
 
17338
  hardcode_libdir_flag_spec_GCJ=
 
17339
  hardcode_libdir_flag_spec_ld_GCJ=
 
17340
  hardcode_libdir_separator_GCJ=
 
17341
  hardcode_direct_GCJ=no
 
17342
  hardcode_minus_L_GCJ=no
 
17343
  hardcode_shlibpath_var_GCJ=unsupported
 
17344
  link_all_deplibs_GCJ=unknown
 
17345
  hardcode_automatic_GCJ=no
 
17346
  module_cmds_GCJ=
 
17347
  module_expsym_cmds_GCJ=
 
17348
  always_export_symbols_GCJ=no
 
17349
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
17350
  # include_expsyms should be a list of space-separated symbols to be *always*
 
17351
  # included in the symbol list
 
17352
  include_expsyms_GCJ=
 
17353
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
17354
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
17355
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
17356
  # as well as any symbol that contains `d'.
 
17357
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
 
17358
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
17359
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
17360
  # the symbol is explicitly referenced.  Since portable code cannot
 
17361
  # rely on this symbol name, it's probably fine to never include it in
 
17362
  # preloaded symbol tables.
 
17363
  extract_expsyms_cmds=
 
17364
  # Just being paranoid about ensuring that cc_basename is set.
 
17365
  for cc_temp in $compiler""; do
 
17366
  case $cc_temp in
 
17367
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
17368
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
17369
    \-*) ;;
 
17370
    *) break;;
 
17371
  esac
 
17372
done
 
17373
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
17374
 
 
17375
  case $host_os in
 
17376
  cygwin* | mingw* | pw32*)
 
17377
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
17378
    # When not using gcc, we currently assume that we are using
 
17379
    # Microsoft Visual C++.
 
17380
    if test "$GCC" != yes; then
 
17381
      with_gnu_ld=no
 
17382
    fi
 
17383
    ;;
 
17384
  interix*)
 
17385
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
17386
    with_gnu_ld=yes
 
17387
    ;;
 
17388
  openbsd*)
 
17389
    with_gnu_ld=no
 
17390
    ;;
 
17391
  esac
 
17392
 
 
17393
  ld_shlibs_GCJ=yes
 
17394
  if test "$with_gnu_ld" = yes; then
 
17395
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
17396
    wlarc='${wl}'
 
17397
 
 
17398
    # Set some defaults for GNU ld with shared library support. These
 
17399
    # are reset later if shared libraries are not supported. Putting them
 
17400
    # here allows them to be overridden if necessary.
 
17401
    runpath_var=LD_RUN_PATH
 
17402
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
17403
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
17404
    # ancient GNU ld didn't support --whole-archive et. al.
 
17405
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
17406
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
17407
      else
 
17408
        whole_archive_flag_spec_GCJ=
 
17409
    fi
 
17410
    supports_anon_versioning=no
 
17411
    case `$LD -v 2>/dev/null` in
 
17412
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
17413
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
17414
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
17415
      *\ 2.11.*) ;; # other 2.11 versions
 
17416
      *) supports_anon_versioning=yes ;;
 
17417
    esac
 
17418
 
 
17419
    # See if GNU ld supports shared libraries.
 
17420
    case $host_os in
 
17421
    aix3* | aix4* | aix5*)
 
17422
      # On AIX/PPC, the GNU linker is very broken
 
17423
      if test "$host_cpu" != ia64; then
 
17424
        ld_shlibs_GCJ=no
 
17425
        cat <<EOF 1>&2
 
17426
 
 
17427
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
17428
*** to be unable to reliably create shared libraries on AIX.
 
17429
*** Therefore, libtool is disabling shared libraries support.  If you
 
17430
*** really care for shared libraries, you may want to modify your PATH
 
17431
*** so that a non-GNU linker is found, and then restart.
 
17432
 
 
17433
EOF
 
17434
      fi
 
17435
      ;;
 
17436
 
 
17437
    amigaos*)
 
17438
      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)'
 
17439
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17440
      hardcode_minus_L_GCJ=yes
 
17441
 
 
17442
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
17443
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
17444
      # to version 4, is to share data among multiple programs linked
 
17445
      # with the same dynamic library.  Since this doesn't match the
 
17446
      # behavior of shared libraries on other platforms, we can't use
 
17447
      # them.
 
17448
      ld_shlibs_GCJ=no
 
17449
      ;;
 
17450
 
 
17451
    beos*)
 
17452
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17453
        allow_undefined_flag_GCJ=unsupported
 
17454
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
17455
        # support --undefined.  This deserves some investigation.  FIXME
 
17456
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17457
      else
 
17458
        ld_shlibs_GCJ=no
 
17459
      fi
 
17460
      ;;
 
17461
 
 
17462
    cygwin* | mingw* | pw32*)
 
17463
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
 
17464
      # as there is no search path for DLLs.
 
17465
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17466
      allow_undefined_flag_GCJ=unsupported
 
17467
      always_export_symbols_GCJ=no
 
17468
      enable_shared_with_static_runtimes_GCJ=yes
 
17469
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
17470
 
 
17471
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
17472
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
17473
        # If the export-symbols file already is a .def file (1st line
 
17474
        # is EXPORTS), use it as is; otherwise, prepend...
 
17475
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
17476
          cp $export_symbols $output_objdir/$soname.def;
 
17477
        else
 
17478
          echo EXPORTS > $output_objdir/$soname.def;
 
17479
          cat $export_symbols >> $output_objdir/$soname.def;
 
17480
        fi~
 
17481
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
17482
      else
 
17483
        ld_shlibs_GCJ=no
 
17484
      fi
 
17485
      ;;
 
17486
 
 
17487
    interix3*)
 
17488
      hardcode_direct_GCJ=no
 
17489
      hardcode_shlibpath_var_GCJ=no
 
17490
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17491
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
17492
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
17493
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
17494
      # default) and relocated if they conflict, which is a slow very memory
 
17495
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
17496
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
17497
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
17498
      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'
 
17499
      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'
 
17500
      ;;
 
17501
 
 
17502
    linux* | k*bsd*-gnu)
 
17503
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17504
        tmp_addflag=
 
17505
        case $cc_basename,$host_cpu in
 
17506
        pgcc*)                          # Portland Group C compiler
 
17507
          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'
 
17508
          tmp_addflag=' $pic_flag'
 
17509
          ;;
 
17510
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
17511
          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'
 
17512
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
17513
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
17514
          tmp_addflag=' -i_dynamic' ;;
 
17515
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
17516
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
17517
        ifc* | ifort*)                  # Intel Fortran compiler
 
17518
          tmp_addflag=' -nofor_main' ;;
 
17519
        esac
 
17520
        archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17521
 
 
17522
        if test $supports_anon_versioning = yes; then
 
17523
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
17524
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
17525
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
17526
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
17527
        fi
 
17528
        link_all_deplibs_GCJ=no
 
17529
      else
 
17530
        ld_shlibs_GCJ=no
 
17531
      fi
 
17532
      ;;
 
17533
 
 
17534
    netbsd* | netbsdelf*-gnu)
 
17535
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17536
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
17537
        wlarc=
 
17538
      else
 
17539
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17540
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17541
      fi
 
17542
      ;;
 
17543
 
 
17544
    solaris*)
 
17545
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
17546
        ld_shlibs_GCJ=no
 
17547
        cat <<EOF 1>&2
 
17548
 
 
17549
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
17550
*** create shared libraries on Solaris systems.  Therefore, libtool
 
17551
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
17552
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
17553
*** your PATH or compiler configuration so that the native linker is
 
17554
*** used, and then restart.
 
17555
 
 
17556
EOF
 
17557
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17558
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17559
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17560
      else
 
17561
        ld_shlibs_GCJ=no
 
17562
      fi
 
17563
      ;;
 
17564
 
 
17565
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
17566
      case `$LD -v 2>&1` in
 
17567
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
17568
        ld_shlibs_GCJ=no
 
17569
        cat <<_LT_EOF 1>&2
 
17570
 
 
17571
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
17572
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
17573
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
17574
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
17575
*** your PATH or compiler configuration so that the native linker is
 
17576
*** used, and then restart.
 
17577
 
 
17578
_LT_EOF
 
17579
        ;;
 
17580
        *)
 
17581
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17582
            hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
17583
            archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
17584
            archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
17585
          else
 
17586
            ld_shlibs_GCJ=no
 
17587
          fi
 
17588
        ;;
 
17589
      esac
 
17590
      ;;
 
17591
 
 
17592
    sunos4*)
 
17593
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17594
      wlarc=
 
17595
      hardcode_direct_GCJ=yes
 
17596
      hardcode_shlibpath_var_GCJ=no
 
17597
      ;;
 
17598
 
 
17599
    *)
 
17600
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17601
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17602
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17603
      else
 
17604
        ld_shlibs_GCJ=no
 
17605
      fi
 
17606
      ;;
 
17607
    esac
 
17608
 
 
17609
    if test "$ld_shlibs_GCJ" = no; then
 
17610
      runpath_var=
 
17611
      hardcode_libdir_flag_spec_GCJ=
 
17612
      export_dynamic_flag_spec_GCJ=
 
17613
      whole_archive_flag_spec_GCJ=
 
17614
    fi
 
17615
  else
 
17616
    # PORTME fill in a description of your system's linker (not GNU ld)
 
17617
    case $host_os in
 
17618
    aix3*)
 
17619
      allow_undefined_flag_GCJ=unsupported
 
17620
      always_export_symbols_GCJ=yes
 
17621
      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'
 
17622
      # Note: this linker hardcodes the directories in LIBPATH if there
 
17623
      # are no directories specified by -L.
 
17624
      hardcode_minus_L_GCJ=yes
 
17625
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
17626
        # Neither direct hardcoding nor static linking is supported with a
 
17627
        # broken collect2.
 
17628
        hardcode_direct_GCJ=unsupported
 
17629
      fi
 
17630
      ;;
 
17631
 
 
17632
    aix4* | aix5*)
 
17633
      if test "$host_cpu" = ia64; then
 
17634
        # On IA64, the linker does run time linking by default, so we don't
 
17635
        # have to do anything special.
 
17636
        aix_use_runtimelinking=no
 
17637
        exp_sym_flag='-Bexport'
 
17638
        no_entry_flag=""
 
17639
      else
 
17640
        # If we're using GNU nm, then we don't want the "-C" option.
 
17641
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
17642
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
17643
          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'
 
17644
        else
 
17645
          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'
 
17646
        fi
 
17647
        aix_use_runtimelinking=no
 
17648
 
 
17649
        # Test if we are trying to use run time linking or normal
 
17650
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
17651
        # need to do runtime linking.
 
17652
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
17653
          for ld_flag in $LDFLAGS; do
 
17654
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
17655
            aix_use_runtimelinking=yes
 
17656
            break
 
17657
          fi
 
17658
          done
 
17659
          ;;
 
17660
        esac
 
17661
 
 
17662
        exp_sym_flag='-bexport'
 
17663
        no_entry_flag='-bnoentry'
 
17664
      fi
 
17665
 
 
17666
      # When large executables or shared objects are built, AIX ld can
 
17667
      # have problems creating the table of contents.  If linking a library
 
17668
      # or program results in "error TOC overflow" add -mminimal-toc to
 
17669
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
17670
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
17671
 
 
17672
      archive_cmds_GCJ=''
 
17673
      hardcode_direct_GCJ=yes
 
17674
      hardcode_libdir_separator_GCJ=':'
 
17675
      link_all_deplibs_GCJ=yes
 
17676
 
 
17677
      if test "$GCC" = yes; then
 
17678
        case $host_os in aix4.[012]|aix4.[012].*)
 
17679
        # We only want to do this on AIX 4.2 and lower, the check
 
17680
        # below for broken collect2 doesn't work under 4.3+
 
17681
          collect2name=`${CC} -print-prog-name=collect2`
 
17682
          if test -f "$collect2name" && \
 
17683
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
17684
          then
 
17685
          # We have reworked collect2
 
17686
          hardcode_direct_GCJ=yes
 
17687
          else
 
17688
          # We have old collect2
 
17689
          hardcode_direct_GCJ=unsupported
 
17690
          # It fails to find uninstalled libraries when the uninstalled
 
17691
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
17692
          # to unsupported forces relinking
 
17693
          hardcode_minus_L_GCJ=yes
 
17694
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17695
          hardcode_libdir_separator_GCJ=
 
17696
          fi
 
17697
          ;;
 
17698
        esac
 
17699
        shared_flag='-shared'
 
17700
        if test "$aix_use_runtimelinking" = yes; then
 
17701
          shared_flag="$shared_flag "'${wl}-G'
 
17702
        fi
 
17703
      else
 
17704
        # not using gcc
 
17705
        if test "$host_cpu" = ia64; then
 
17706
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
17707
        # chokes on -Wl,-G. The following line is correct:
 
17708
          shared_flag='-G'
 
17709
        else
 
17710
          if test "$aix_use_runtimelinking" = yes; then
 
17711
            shared_flag='${wl}-G'
 
17712
          else
 
17713
            shared_flag='${wl}-bM:SRE'
 
17714
          fi
 
17715
        fi
 
17716
      fi
 
17717
 
 
17718
      # It seems that -bexpall does not export symbols beginning with
 
17719
      # underscore (_), so it is better to generate a list of symbols to export.
 
17720
      always_export_symbols_GCJ=yes
 
17721
      if test "$aix_use_runtimelinking" = yes; then
 
17722
        # Warning - without using the other runtime loading flags (-brtl),
 
17723
        # -berok will link without error, but may produce a broken library.
 
17724
        allow_undefined_flag_GCJ='-berok'
 
17725
       # Determine the default libpath from the value encoded in an empty executable.
 
17726
       cat >conftest.$ac_ext <<_ACEOF
 
17727
/* confdefs.h.  */
 
17728
_ACEOF
 
17729
cat confdefs.h >>conftest.$ac_ext
 
17730
cat >>conftest.$ac_ext <<_ACEOF
 
17731
/* end confdefs.h.  */
 
17732
 
 
17733
int
 
17734
main ()
 
17735
{
 
17736
 
 
17737
  ;
 
17738
  return 0;
 
17739
}
 
17740
_ACEOF
 
17741
rm -f conftest.$ac_objext conftest$ac_exeext
 
17742
if { (ac_try="$ac_link"
 
17743
case "(($ac_try" in
 
17744
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17745
  *) ac_try_echo=$ac_try;;
 
17746
esac
 
17747
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17748
  (eval "$ac_link") 2>conftest.er1
 
17749
  ac_status=$?
 
17750
  grep -v '^ *+' conftest.er1 >conftest.err
 
17751
  rm -f conftest.er1
 
17752
  cat conftest.err >&5
 
17753
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17754
  (exit $ac_status); } &&
 
17755
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
17756
  { (case "(($ac_try" in
 
17757
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17758
  *) ac_try_echo=$ac_try;;
 
17759
esac
 
17760
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17761
  (eval "$ac_try") 2>&5
 
17762
  ac_status=$?
 
17763
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17764
  (exit $ac_status); }; } &&
 
17765
         { ac_try='test -s conftest$ac_exeext'
 
17766
  { (case "(($ac_try" in
 
17767
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17768
  *) ac_try_echo=$ac_try;;
 
17769
esac
 
17770
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17771
  (eval "$ac_try") 2>&5
 
17772
  ac_status=$?
 
17773
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17774
  (exit $ac_status); }; }; then
 
17775
 
 
17776
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
17777
}'`
 
17778
# Check for a 64-bit object if we didn't find anything.
 
17779
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
17780
}'`; fi
 
17781
else
 
17782
  echo "$as_me: failed program was:" >&5
 
17783
sed 's/^/| /' conftest.$ac_ext >&5
 
17784
 
 
17785
 
 
17786
fi
 
17787
 
 
17788
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17789
      conftest$ac_exeext conftest.$ac_ext
 
17790
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
17791
 
 
17792
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
17793
        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"
 
17794
       else
 
17795
        if test "$host_cpu" = ia64; then
 
17796
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
 
17797
          allow_undefined_flag_GCJ="-z nodefs"
 
17798
          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"
 
17799
        else
 
17800
         # Determine the default libpath from the value encoded in an empty executable.
 
17801
         cat >conftest.$ac_ext <<_ACEOF
 
17802
/* confdefs.h.  */
 
17803
_ACEOF
 
17804
cat confdefs.h >>conftest.$ac_ext
 
17805
cat >>conftest.$ac_ext <<_ACEOF
 
17806
/* end confdefs.h.  */
 
17807
 
 
17808
int
 
17809
main ()
 
17810
{
 
17811
 
 
17812
  ;
 
17813
  return 0;
 
17814
}
 
17815
_ACEOF
 
17816
rm -f conftest.$ac_objext conftest$ac_exeext
 
17817
if { (ac_try="$ac_link"
 
17818
case "(($ac_try" in
 
17819
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17820
  *) ac_try_echo=$ac_try;;
 
17821
esac
 
17822
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17823
  (eval "$ac_link") 2>conftest.er1
 
17824
  ac_status=$?
 
17825
  grep -v '^ *+' conftest.er1 >conftest.err
 
17826
  rm -f conftest.er1
 
17827
  cat conftest.err >&5
 
17828
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17829
  (exit $ac_status); } &&
 
17830
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
17831
  { (case "(($ac_try" in
 
17832
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17833
  *) ac_try_echo=$ac_try;;
 
17834
esac
 
17835
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17836
  (eval "$ac_try") 2>&5
 
17837
  ac_status=$?
 
17838
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17839
  (exit $ac_status); }; } &&
 
17840
         { ac_try='test -s conftest$ac_exeext'
 
17841
  { (case "(($ac_try" in
 
17842
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17843
  *) ac_try_echo=$ac_try;;
 
17844
esac
 
17845
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17846
  (eval "$ac_try") 2>&5
 
17847
  ac_status=$?
 
17848
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17849
  (exit $ac_status); }; }; then
 
17850
 
 
17851
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
17852
}'`
 
17853
# Check for a 64-bit object if we didn't find anything.
 
17854
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
17855
}'`; fi
 
17856
else
 
17857
  echo "$as_me: failed program was:" >&5
 
17858
sed 's/^/| /' conftest.$ac_ext >&5
 
17859
 
 
17860
 
 
17861
fi
 
17862
 
 
17863
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17864
      conftest$ac_exeext conftest.$ac_ext
 
17865
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
17866
 
 
17867
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
17868
          # Warning - without using the other run time loading flags,
 
17869
          # -berok will link without error, but may produce a broken library.
 
17870
          no_undefined_flag_GCJ=' ${wl}-bernotok'
 
17871
          allow_undefined_flag_GCJ=' ${wl}-berok'
 
17872
          # Exported symbols can be pulled into shared objects from archives
 
17873
          whole_archive_flag_spec_GCJ='$convenience'
 
17874
          archive_cmds_need_lc_GCJ=yes
 
17875
          # This is similar to how AIX traditionally builds its shared libraries.
 
17876
          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'
 
17877
        fi
 
17878
      fi
 
17879
      ;;
 
17880
 
 
17881
    amigaos*)
 
17882
      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)'
 
17883
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17884
      hardcode_minus_L_GCJ=yes
 
17885
      # see comment about different semantics on the GNU ld section
 
17886
      ld_shlibs_GCJ=no
 
17887
      ;;
 
17888
 
 
17889
    bsdi[45]*)
 
17890
      export_dynamic_flag_spec_GCJ=-rdynamic
 
17891
      ;;
 
17892
 
 
17893
    cygwin* | mingw* | pw32*)
 
17894
      # When not using gcc, we currently assume that we are using
 
17895
      # Microsoft Visual C++.
 
17896
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
17897
      # no search path for DLLs.
 
17898
      hardcode_libdir_flag_spec_GCJ=' '
 
17899
      allow_undefined_flag_GCJ=unsupported
 
17900
      # Tell ltmain to make .lib files, not .a files.
 
17901
      libext=lib
 
17902
      # Tell ltmain to make .dll files, not .so files.
 
17903
      shrext_cmds=".dll"
 
17904
      # FIXME: Setting linknames here is a bad hack.
 
17905
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
17906
      # The linker will automatically build a .lib file if we build a DLL.
 
17907
      old_archive_From_new_cmds_GCJ='true'
 
17908
      # FIXME: Should let the user specify the lib program.
 
17909
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
17910
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
 
17911
      enable_shared_with_static_runtimes_GCJ=yes
 
17912
      ;;
 
17913
 
 
17914
    darwin* | rhapsody*)
 
17915
      case $host_os in
 
17916
        rhapsody* | darwin1.[012])
 
17917
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
 
17918
         ;;
 
17919
       *) # Darwin 1.3 on
 
17920
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
17921
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
17922
         else
 
17923
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
17924
             10.[012])
 
17925
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
17926
               ;;
 
17927
             10.*)
 
17928
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
 
17929
               ;;
 
17930
           esac
 
17931
         fi
 
17932
         ;;
 
17933
      esac
 
17934
      archive_cmds_need_lc_GCJ=no
 
17935
      hardcode_direct_GCJ=no
 
17936
      hardcode_automatic_GCJ=yes
 
17937
      hardcode_shlibpath_var_GCJ=unsupported
 
17938
      whole_archive_flag_spec_GCJ=''
 
17939
      link_all_deplibs_GCJ=yes
 
17940
    if test "$GCC" = yes ; then
 
17941
        output_verbose_link_cmd='echo'
 
17942
        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
17943
      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
17944
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
17945
      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
17946
      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}'
 
17947
    else
 
17948
      case $cc_basename in
 
17949
        xlc*)
 
17950
         output_verbose_link_cmd='echo'
 
17951
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
17952
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
17953
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
17954
         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 $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
17955
          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}'
 
17956
          ;;
 
17957
       *)
 
17958
         ld_shlibs_GCJ=no
 
17959
          ;;
 
17960
      esac
 
17961
    fi
 
17962
      ;;
 
17963
 
 
17964
    dgux*)
 
17965
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17966
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17967
      hardcode_shlibpath_var_GCJ=no
 
17968
      ;;
 
17969
 
 
17970
    freebsd1*)
 
17971
      ld_shlibs_GCJ=no
 
17972
      ;;
 
17973
 
 
17974
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
17975
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
17976
    # does not break anything, and helps significantly (at the cost of a little
 
17977
    # extra space).
 
17978
    freebsd2.2*)
 
17979
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
17980
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17981
      hardcode_direct_GCJ=yes
 
17982
      hardcode_shlibpath_var_GCJ=no
 
17983
      ;;
 
17984
 
 
17985
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
17986
    freebsd2*)
 
17987
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17988
      hardcode_direct_GCJ=yes
 
17989
      hardcode_minus_L_GCJ=yes
 
17990
      hardcode_shlibpath_var_GCJ=no
 
17991
      ;;
 
17992
 
 
17993
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
17994
    freebsd* | dragonfly*)
 
17995
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
17996
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17997
      hardcode_direct_GCJ=yes
 
17998
      hardcode_shlibpath_var_GCJ=no
 
17999
      ;;
 
18000
 
 
18001
    hpux9*)
 
18002
      if test "$GCC" = yes; then
 
18003
        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'
 
18004
      else
 
18005
        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'
 
18006
      fi
 
18007
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
18008
      hardcode_libdir_separator_GCJ=:
 
18009
      hardcode_direct_GCJ=yes
 
18010
 
 
18011
      # hardcode_minus_L: Not really in the search PATH,
 
18012
      # but as the default location of the library.
 
18013
      hardcode_minus_L_GCJ=yes
 
18014
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
18015
      ;;
 
18016
 
 
18017
    hpux10*)
 
18018
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
18019
        archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
18020
      else
 
18021
        archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
18022
      fi
 
18023
      if test "$with_gnu_ld" = no; then
 
18024
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
18025
        hardcode_libdir_separator_GCJ=:
 
18026
 
 
18027
        hardcode_direct_GCJ=yes
 
18028
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
18029
 
 
18030
        # hardcode_minus_L: Not really in the search PATH,
 
18031
        # but as the default location of the library.
 
18032
        hardcode_minus_L_GCJ=yes
 
18033
      fi
 
18034
      ;;
 
18035
 
 
18036
    hpux11*)
 
18037
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
18038
        case $host_cpu in
 
18039
        hppa*64*)
 
18040
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18041
          ;;
 
18042
        ia64*)
 
18043
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
18044
          ;;
 
18045
        *)
 
18046
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
18047
          ;;
 
18048
        esac
 
18049
      else
 
18050
        case $host_cpu in
 
18051
        hppa*64*)
 
18052
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18053
          ;;
 
18054
        ia64*)
 
18055
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
18056
          ;;
 
18057
        *)
 
18058
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
18059
          ;;
 
18060
        esac
 
18061
      fi
 
18062
      if test "$with_gnu_ld" = no; then
 
18063
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
18064
        hardcode_libdir_separator_GCJ=:
 
18065
 
 
18066
        case $host_cpu in
 
18067
        hppa*64*|ia64*)
 
18068
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
 
18069
          hardcode_direct_GCJ=no
 
18070
          hardcode_shlibpath_var_GCJ=no
 
18071
          ;;
 
18072
        *)
 
18073
          hardcode_direct_GCJ=yes
 
18074
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
18075
 
 
18076
          # hardcode_minus_L: Not really in the search PATH,
 
18077
          # but as the default location of the library.
 
18078
          hardcode_minus_L_GCJ=yes
 
18079
          ;;
 
18080
        esac
 
18081
      fi
 
18082
      ;;
 
18083
 
 
18084
    irix5* | irix6* | nonstopux*)
 
18085
      if test "$GCC" = yes; then
 
18086
        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'
 
18087
      else
 
18088
        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'
 
18089
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
 
18090
      fi
 
18091
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18092
      hardcode_libdir_separator_GCJ=:
 
18093
      link_all_deplibs_GCJ=yes
 
18094
      ;;
 
18095
 
 
18096
    netbsd* | netbsdelf*-gnu)
 
18097
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
18098
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
18099
      else
 
18100
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
18101
      fi
 
18102
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18103
      hardcode_direct_GCJ=yes
 
18104
      hardcode_shlibpath_var_GCJ=no
 
18105
      ;;
 
18106
 
 
18107
    newsos6)
 
18108
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18109
      hardcode_direct_GCJ=yes
 
18110
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18111
      hardcode_libdir_separator_GCJ=:
 
18112
      hardcode_shlibpath_var_GCJ=no
 
18113
      ;;
 
18114
 
 
18115
    openbsd*)
 
18116
      hardcode_direct_GCJ=yes
 
18117
      hardcode_shlibpath_var_GCJ=no
 
18118
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
18119
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
18120
        archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
18121
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
18122
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
18123
      else
 
18124
       case $host_os in
 
18125
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
18126
           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
18127
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18128
           ;;
 
18129
         *)
 
18130
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
18131
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
18132
           ;;
 
18133
       esac
 
18134
      fi
 
18135
      ;;
 
18136
 
 
18137
    os2*)
 
18138
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18139
      hardcode_minus_L_GCJ=yes
 
18140
      allow_undefined_flag_GCJ=unsupported
 
18141
      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'
 
18142
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
18143
      ;;
 
18144
 
 
18145
    osf3*)
 
18146
      if test "$GCC" = yes; then
 
18147
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
18148
        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'
 
18149
      else
 
18150
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
18151
        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'
 
18152
      fi
 
18153
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18154
      hardcode_libdir_separator_GCJ=:
 
18155
      ;;
 
18156
 
 
18157
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
18158
      if test "$GCC" = yes; then
 
18159
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
18160
        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'
 
18161
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18162
      else
 
18163
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
18164
        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'
 
18165
        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~
 
18166
        $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'
 
18167
 
 
18168
        # Both c and cxx compiler support -rpath directly
 
18169
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
 
18170
      fi
 
18171
      hardcode_libdir_separator_GCJ=:
 
18172
      ;;
 
18173
 
 
18174
    solaris*)
 
18175
      no_undefined_flag_GCJ=' -z text'
 
18176
      if test "$GCC" = yes; then
 
18177
        wlarc='${wl}'
 
18178
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18179
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
18180
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
18181
      else
 
18182
        wlarc=''
 
18183
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18184
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
18185
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
18186
      fi
 
18187
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18188
      hardcode_shlibpath_var_GCJ=no
 
18189
      case $host_os in
 
18190
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
18191
      *)
 
18192
        # The compiler driver will combine linker options so we
 
18193
        # cannot just pass the convience library names through
 
18194
        # without $wl, iff we do not link with $LD.
 
18195
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
18196
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
18197
        case $wlarc in
 
18198
        '')
 
18199
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
18200
        *)
 
18201
          whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
18202
        esac ;;
 
18203
      esac
 
18204
      link_all_deplibs_GCJ=yes
 
18205
      ;;
 
18206
 
 
18207
    sunos4*)
 
18208
      if test "x$host_vendor" = xsequent; then
 
18209
        # Use $CC to link under sequent, because it throws in some extra .o
 
18210
        # files that make .init and .fini sections work.
 
18211
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
18212
      else
 
18213
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
18214
      fi
 
18215
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18216
      hardcode_direct_GCJ=yes
 
18217
      hardcode_minus_L_GCJ=yes
 
18218
      hardcode_shlibpath_var_GCJ=no
 
18219
      ;;
 
18220
 
 
18221
    sysv4)
 
18222
      case $host_vendor in
 
18223
        sni)
 
18224
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18225
          hardcode_direct_GCJ=yes # is this really true???
 
18226
        ;;
 
18227
        siemens)
 
18228
          ## LD is ld it makes a PLAMLIB
 
18229
          ## CC just makes a GrossModule.
 
18230
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
18231
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
 
18232
          hardcode_direct_GCJ=no
 
18233
        ;;
 
18234
        motorola)
 
18235
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18236
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
 
18237
        ;;
 
18238
      esac
 
18239
      runpath_var='LD_RUN_PATH'
 
18240
      hardcode_shlibpath_var_GCJ=no
 
18241
      ;;
 
18242
 
 
18243
    sysv4.3*)
 
18244
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18245
      hardcode_shlibpath_var_GCJ=no
 
18246
      export_dynamic_flag_spec_GCJ='-Bexport'
 
18247
      ;;
 
18248
 
 
18249
    sysv4*MP*)
 
18250
      if test -d /usr/nec; then
 
18251
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18252
        hardcode_shlibpath_var_GCJ=no
 
18253
        runpath_var=LD_RUN_PATH
 
18254
        hardcode_runpath_var=yes
 
18255
        ld_shlibs_GCJ=yes
 
18256
      fi
 
18257
      ;;
 
18258
 
 
18259
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
18260
      no_undefined_flag_GCJ='${wl}-z,text'
 
18261
      archive_cmds_need_lc_GCJ=no
 
18262
      hardcode_shlibpath_var_GCJ=no
 
18263
      runpath_var='LD_RUN_PATH'
 
18264
 
 
18265
      if test "$GCC" = yes; then
 
18266
        archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18267
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18268
      else
 
18269
        archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18270
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18271
      fi
 
18272
      ;;
 
18273
 
 
18274
    sysv5* | sco3.2v5* | sco5v6*)
 
18275
      # Note: We can NOT use -z defs as we might desire, because we do not
 
18276
      # link with -lc, and that would cause any symbols used from libc to
 
18277
      # always be unresolved, which means just about no library would
 
18278
      # ever link correctly.  If we're not using GNU ld we use -z text
 
18279
      # though, which does catch some bad symbols but isn't as heavy-handed
 
18280
      # as -z defs.
 
18281
      no_undefined_flag_GCJ='${wl}-z,text'
 
18282
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
 
18283
      archive_cmds_need_lc_GCJ=no
 
18284
      hardcode_shlibpath_var_GCJ=no
 
18285
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
18286
      hardcode_libdir_separator_GCJ=':'
 
18287
      link_all_deplibs_GCJ=yes
 
18288
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
18289
      runpath_var='LD_RUN_PATH'
 
18290
 
 
18291
      if test "$GCC" = yes; then
 
18292
        archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18293
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18294
      else
 
18295
        archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18296
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18297
      fi
 
18298
      ;;
 
18299
 
 
18300
    uts4*)
 
18301
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18302
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18303
      hardcode_shlibpath_var_GCJ=no
 
18304
      ;;
 
18305
 
 
18306
    *)
 
18307
      ld_shlibs_GCJ=no
 
18308
      ;;
 
18309
    esac
 
18310
  fi
 
18311
 
 
18312
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
18313
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
 
18314
test "$ld_shlibs_GCJ" = no && can_build_shared=no
 
18315
 
 
18316
#
 
18317
# Do we need to explicitly link libc?
 
18318
#
 
18319
case "x$archive_cmds_need_lc_GCJ" in
 
18320
x|xyes)
 
18321
  # Assume -lc should be added
 
18322
  archive_cmds_need_lc_GCJ=yes
 
18323
 
 
18324
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
18325
    case $archive_cmds_GCJ in
 
18326
    *'~'*)
 
18327
      # FIXME: we may have to deal with multi-command sequences.
 
18328
      ;;
 
18329
    '$CC '*)
 
18330
      # Test whether the compiler implicitly links with -lc since on some
 
18331
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
18332
      # to ld, don't add -lc before -lgcc.
 
18333
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
18334
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
18335
      $rm conftest*
 
18336
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
18337
 
 
18338
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
18339
  (eval $ac_compile) 2>&5
 
18340
  ac_status=$?
 
18341
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18342
  (exit $ac_status); } 2>conftest.err; then
 
18343
        soname=conftest
 
18344
        lib=conftest
 
18345
        libobjs=conftest.$ac_objext
 
18346
        deplibs=
 
18347
        wl=$lt_prog_compiler_wl_GCJ
 
18348
        pic_flag=$lt_prog_compiler_pic_GCJ
 
18349
        compiler_flags=-v
 
18350
        linker_flags=-v
 
18351
        verstring=
 
18352
        output_objdir=.
 
18353
        libname=conftest
 
18354
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
 
18355
        allow_undefined_flag_GCJ=
 
18356
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
18357
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
18358
  ac_status=$?
 
18359
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18360
  (exit $ac_status); }
 
18361
        then
 
18362
          archive_cmds_need_lc_GCJ=no
 
18363
        else
 
18364
          archive_cmds_need_lc_GCJ=yes
 
18365
        fi
 
18366
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
 
18367
      else
 
18368
        cat conftest.err 1>&5
 
18369
      fi
 
18370
      $rm conftest*
 
18371
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
18372
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
 
18373
      ;;
 
18374
    esac
 
18375
  fi
 
18376
  ;;
 
18377
esac
 
18378
 
 
18379
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
18380
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
18381
library_names_spec=
 
18382
libname_spec='lib$name'
 
18383
soname_spec=
 
18384
shrext_cmds=".so"
 
18385
postinstall_cmds=
 
18386
postuninstall_cmds=
 
18387
finish_cmds=
 
18388
finish_eval=
 
18389
shlibpath_var=
 
18390
shlibpath_overrides_runpath=unknown
 
18391
version_type=none
 
18392
dynamic_linker="$host_os ld.so"
 
18393
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
18394
if test "$GCC" = yes; then
 
18395
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
18396
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
18397
    # if the path contains ";" then we assume it to be the separator
 
18398
    # otherwise default to the standard path separator (i.e. ":") - it is
 
18399
    # assumed that no part of a normal pathname contains ";" but that should
 
18400
    # okay in the real world where ";" in dirpaths is itself problematic.
 
18401
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
18402
  else
 
18403
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
18404
  fi
 
18405
else
 
18406
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
18407
fi
 
18408
need_lib_prefix=unknown
 
18409
hardcode_into_libs=no
 
18410
 
 
18411
# when you set need_version to no, make sure it does not cause -set_version
 
18412
# flags to be left without arguments
 
18413
need_version=unknown
 
18414
 
 
18415
case $host_os in
 
18416
aix3*)
 
18417
  version_type=linux
 
18418
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
18419
  shlibpath_var=LIBPATH
 
18420
 
 
18421
  # AIX 3 has no versioning support, so we append a major version to the name.
 
18422
  soname_spec='${libname}${release}${shared_ext}$major'
 
18423
  ;;
 
18424
 
 
18425
aix4* | aix5*)
 
18426
  version_type=linux
 
18427
  need_lib_prefix=no
 
18428
  need_version=no
 
18429
  hardcode_into_libs=yes
 
18430
  if test "$host_cpu" = ia64; then
 
18431
    # AIX 5 supports IA64
 
18432
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
18433
    shlibpath_var=LD_LIBRARY_PATH
 
18434
  else
 
18435
    # With GCC up to 2.95.x, collect2 would create an import file
 
18436
    # for dependence libraries.  The import file would start with
 
18437
    # the line `#! .'.  This would cause the generated library to
 
18438
    # depend on `.', always an invalid library.  This was fixed in
 
18439
    # development snapshots of GCC prior to 3.0.
 
18440
    case $host_os in
 
18441
      aix4 | aix4.[01] | aix4.[01].*)
 
18442
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
18443
           echo ' yes '
 
18444
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
18445
        :
 
18446
      else
 
18447
        can_build_shared=no
 
18448
      fi
 
18449
      ;;
 
18450
    esac
 
18451
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
18452
    # soname into executable. Probably we can add versioning support to
 
18453
    # collect2, so additional links can be useful in future.
 
18454
    if test "$aix_use_runtimelinking" = yes; then
 
18455
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
18456
      # instead of lib<name>.a to let people know that these are not
 
18457
      # typical AIX shared libraries.
 
18458
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18459
    else
 
18460
      # We preserve .a as extension for shared libraries through AIX4.2
 
18461
      # and later when we are not doing run time linking.
 
18462
      library_names_spec='${libname}${release}.a $libname.a'
 
18463
      soname_spec='${libname}${release}${shared_ext}$major'
 
18464
    fi
 
18465
    shlibpath_var=LIBPATH
 
18466
  fi
 
18467
  ;;
 
18468
 
 
18469
amigaos*)
 
18470
  library_names_spec='$libname.ixlibrary $libname.a'
 
18471
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
18472
  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'
 
18473
  ;;
 
18474
 
 
18475
beos*)
 
18476
  library_names_spec='${libname}${shared_ext}'
 
18477
  dynamic_linker="$host_os ld.so"
 
18478
  shlibpath_var=LIBRARY_PATH
 
18479
  ;;
 
18480
 
 
18481
bsdi[45]*)
 
18482
  version_type=linux
 
18483
  need_version=no
 
18484
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18485
  soname_spec='${libname}${release}${shared_ext}$major'
 
18486
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
18487
  shlibpath_var=LD_LIBRARY_PATH
 
18488
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
18489
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
18490
  # the default ld.so.conf also contains /usr/contrib/lib and
 
18491
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
18492
  # libtool to hard-code these into programs
 
18493
  ;;
 
18494
 
 
18495
cygwin* | mingw* | pw32*)
 
18496
  version_type=windows
 
18497
  shrext_cmds=".dll"
 
18498
  need_version=no
 
18499
  need_lib_prefix=no
 
18500
 
 
18501
  case $GCC,$host_os in
 
18502
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
18503
    library_names_spec='$libname.dll.a'
 
18504
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
18505
    postinstall_cmds='base_file=`basename \${file}`~
 
18506
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
18507
      dldir=$destdir/`dirname \$dlpath`~
 
18508
      test -d \$dldir || mkdir -p \$dldir~
 
18509
      $install_prog $dir/$dlname \$dldir/$dlname~
 
18510
      chmod a+x \$dldir/$dlname'
 
18511
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
18512
      dlpath=$dir/\$dldll~
 
18513
       $rm \$dlpath'
 
18514
    shlibpath_overrides_runpath=yes
 
18515
 
 
18516
    case $host_os in
 
18517
    cygwin*)
 
18518
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
18519
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18520
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
18521
      ;;
 
18522
    mingw*)
 
18523
      # MinGW DLLs use traditional 'lib' prefix
 
18524
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18525
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
18526
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
18527
        # It is most probably a Windows format PATH printed by
 
18528
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
18529
        # path with ; separators, and with drive letters. We can handle the
 
18530
        # drive letters (cygwin fileutils understands them), so leave them,
 
18531
        # especially as we might pass files found there to a mingw objdump,
 
18532
        # which wouldn't understand a cygwinified path. Ahh.
 
18533
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
18534
      else
 
18535
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
18536
      fi
 
18537
      ;;
 
18538
    pw32*)
 
18539
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
18540
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18541
      ;;
 
18542
    esac
 
18543
    ;;
 
18544
 
 
18545
  *)
 
18546
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
18547
    ;;
 
18548
  esac
 
18549
  dynamic_linker='Win32 ld.exe'
 
18550
  # FIXME: first we should search . and the directory the executable is in
 
18551
  shlibpath_var=PATH
 
18552
  ;;
 
18553
 
 
18554
darwin* | rhapsody*)
 
18555
  dynamic_linker="$host_os dyld"
 
18556
  version_type=darwin
 
18557
  need_lib_prefix=no
 
18558
  need_version=no
 
18559
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
18560
  soname_spec='${libname}${release}${major}$shared_ext'
 
18561
  shlibpath_overrides_runpath=yes
 
18562
  shlibpath_var=DYLD_LIBRARY_PATH
 
18563
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
18564
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
18565
  if test "$GCC" = yes; then
 
18566
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
18567
  else
 
18568
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
18569
  fi
 
18570
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
18571
  ;;
 
18572
 
 
18573
dgux*)
 
18574
  version_type=linux
 
18575
  need_lib_prefix=no
 
18576
  need_version=no
 
18577
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
18578
  soname_spec='${libname}${release}${shared_ext}$major'
 
18579
  shlibpath_var=LD_LIBRARY_PATH
 
18580
  ;;
 
18581
 
 
18582
freebsd1*)
 
18583
  dynamic_linker=no
 
18584
  ;;
 
18585
 
 
18586
freebsd* | dragonfly*)
 
18587
  # DragonFly does not have aout.  When/if they implement a new
 
18588
  # versioning mechanism, adjust this.
 
18589
  if test -x /usr/bin/objformat; then
 
18590
    objformat=`/usr/bin/objformat`
 
18591
  else
 
18592
    case $host_os in
 
18593
    freebsd[123]*) objformat=aout ;;
 
18594
    *) objformat=elf ;;
 
18595
    esac
 
18596
  fi
 
18597
  version_type=freebsd-$objformat
 
18598
  case $version_type in
 
18599
    freebsd-elf*)
 
18600
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18601
      need_version=no
 
18602
      need_lib_prefix=no
 
18603
      ;;
 
18604
    freebsd-*)
 
18605
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
18606
      need_version=yes
 
18607
      ;;
 
18608
  esac
 
18609
  shlibpath_var=LD_LIBRARY_PATH
 
18610
  case $host_os in
 
18611
  freebsd2*)
 
18612
    shlibpath_overrides_runpath=yes
 
18613
    ;;
 
18614
  freebsd3.[01]* | freebsdelf3.[01]*)
 
18615
    shlibpath_overrides_runpath=yes
 
18616
    hardcode_into_libs=yes
 
18617
    ;;
 
18618
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
18619
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
18620
    shlibpath_overrides_runpath=no
 
18621
    hardcode_into_libs=yes
 
18622
    ;;
 
18623
  freebsd*) # from 4.6 on
 
18624
    shlibpath_overrides_runpath=yes
 
18625
    hardcode_into_libs=yes
 
18626
    ;;
 
18627
  esac
 
18628
  ;;
 
18629
 
 
18630
gnu*)
 
18631
  version_type=linux
 
18632
  need_lib_prefix=no
 
18633
  need_version=no
 
18634
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
18635
  soname_spec='${libname}${release}${shared_ext}$major'
 
18636
  shlibpath_var=LD_LIBRARY_PATH
 
18637
  hardcode_into_libs=yes
 
18638
  ;;
 
18639
 
 
18640
hpux9* | hpux10* | hpux11*)
 
18641
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
18642
  # link against other versions.
 
18643
  version_type=sunos
 
18644
  need_lib_prefix=no
 
18645
  need_version=no
 
18646
  case $host_cpu in
 
18647
  ia64*)
 
18648
    shrext_cmds='.so'
 
18649
    hardcode_into_libs=yes
 
18650
    dynamic_linker="$host_os dld.so"
 
18651
    shlibpath_var=LD_LIBRARY_PATH
 
18652
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
18653
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18654
    soname_spec='${libname}${release}${shared_ext}$major'
 
18655
    if test "X$HPUX_IA64_MODE" = X32; then
 
18656
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
18657
    else
 
18658
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
18659
    fi
 
18660
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
18661
    ;;
 
18662
   hppa*64*)
 
18663
     shrext_cmds='.sl'
 
18664
     hardcode_into_libs=yes
 
18665
     dynamic_linker="$host_os dld.sl"
 
18666
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
18667
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
18668
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18669
     soname_spec='${libname}${release}${shared_ext}$major'
 
18670
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
18671
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
18672
     ;;
 
18673
   *)
 
18674
    shrext_cmds='.sl'
 
18675
    dynamic_linker="$host_os dld.sl"
 
18676
    shlibpath_var=SHLIB_PATH
 
18677
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
18678
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18679
    soname_spec='${libname}${release}${shared_ext}$major'
 
18680
    ;;
 
18681
  esac
 
18682
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
18683
  postinstall_cmds='chmod 555 $lib'
 
18684
  ;;
 
18685
 
 
18686
interix3*)
 
18687
  version_type=linux
 
18688
  need_lib_prefix=no
 
18689
  need_version=no
 
18690
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18691
  soname_spec='${libname}${release}${shared_ext}$major'
 
18692
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
18693
  shlibpath_var=LD_LIBRARY_PATH
 
18694
  shlibpath_overrides_runpath=no
 
18695
  hardcode_into_libs=yes
 
18696
  ;;
 
18697
 
 
18698
irix5* | irix6* | nonstopux*)
 
18699
  case $host_os in
 
18700
    nonstopux*) version_type=nonstopux ;;
 
18701
    *)
 
18702
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
18703
                version_type=linux
 
18704
        else
 
18705
                version_type=irix
 
18706
        fi ;;
 
18707
  esac
 
18708
  need_lib_prefix=no
 
18709
  need_version=no
 
18710
  soname_spec='${libname}${release}${shared_ext}$major'
 
18711
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18712
  case $host_os in
 
18713
  irix5* | nonstopux*)
 
18714
    libsuff= shlibsuff=
 
18715
    ;;
 
18716
  *)
 
18717
    case $LD in # libtool.m4 will add one of these switches to LD
 
18718
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
18719
      libsuff= shlibsuff= libmagic=32-bit;;
 
18720
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
18721
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
18722
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
18723
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
18724
    *) libsuff= shlibsuff= libmagic=never-match;;
 
18725
    esac
 
18726
    ;;
 
18727
  esac
 
18728
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
18729
  shlibpath_overrides_runpath=no
 
18730
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
18731
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
18732
  hardcode_into_libs=yes
 
18733
  ;;
 
18734
 
 
18735
# No shared lib support for Linux oldld, aout, or coff.
 
18736
linux*oldld* | linux*aout* | linux*coff*)
 
18737
  dynamic_linker=no
 
18738
  ;;
 
18739
 
 
18740
# This must be Linux ELF.
 
18741
linux* | k*bsd*-gnu)
 
18742
  version_type=linux
 
18743
  need_lib_prefix=no
 
18744
  need_version=no
 
18745
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18746
  soname_spec='${libname}${release}${shared_ext}$major'
 
18747
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
18748
  shlibpath_var=LD_LIBRARY_PATH
 
18749
  shlibpath_overrides_runpath=no
 
18750
  # This implies no fast_install, which is unacceptable.
 
18751
  # Some rework will be needed to allow for fast_install
 
18752
  # before this can be enabled.
 
18753
  hardcode_into_libs=yes
 
18754
 
 
18755
  # Append ld.so.conf contents to the search path
 
18756
  if test -f /etc/ld.so.conf; then
 
18757
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
18758
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
18759
  fi
 
18760
 
 
18761
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
18762
  # powerpc, because MkLinux only supported shared libraries with the
 
18763
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
18764
  # most powerpc-linux boxes support dynamic linking these days and
 
18765
  # people can always --disable-shared, the test was removed, and we
 
18766
  # assume the GNU/Linux dynamic linker is in use.
 
18767
  dynamic_linker='GNU/Linux ld.so'
 
18768
  ;;
 
18769
 
 
18770
netbsdelf*-gnu)
 
18771
  version_type=linux
 
18772
  need_lib_prefix=no
 
18773
  need_version=no
 
18774
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18775
  soname_spec='${libname}${release}${shared_ext}$major'
 
18776
  shlibpath_var=LD_LIBRARY_PATH
 
18777
  shlibpath_overrides_runpath=no
 
18778
  hardcode_into_libs=yes
 
18779
  dynamic_linker='NetBSD ld.elf_so'
 
18780
  ;;
 
18781
 
 
18782
netbsd*)
 
18783
  version_type=sunos
 
18784
  need_lib_prefix=no
 
18785
  need_version=no
 
18786
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
18787
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18788
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
18789
    dynamic_linker='NetBSD (a.out) ld.so'
 
18790
  else
 
18791
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18792
    soname_spec='${libname}${release}${shared_ext}$major'
 
18793
    dynamic_linker='NetBSD ld.elf_so'
 
18794
  fi
 
18795
  shlibpath_var=LD_LIBRARY_PATH
 
18796
  shlibpath_overrides_runpath=yes
 
18797
  hardcode_into_libs=yes
 
18798
  ;;
 
18799
 
 
18800
newsos6)
 
18801
  version_type=linux
 
18802
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18803
  shlibpath_var=LD_LIBRARY_PATH
 
18804
  shlibpath_overrides_runpath=yes
 
18805
  ;;
 
18806
 
 
18807
nto-qnx*)
 
18808
  version_type=linux
 
18809
  need_lib_prefix=no
 
18810
  need_version=no
 
18811
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18812
  soname_spec='${libname}${release}${shared_ext}$major'
 
18813
  shlibpath_var=LD_LIBRARY_PATH
 
18814
  shlibpath_overrides_runpath=yes
 
18815
  ;;
 
18816
 
 
18817
openbsd*)
 
18818
  version_type=sunos
 
18819
  sys_lib_dlsearch_path_spec="/usr/lib"
 
18820
  need_lib_prefix=no
 
18821
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
18822
  case $host_os in
 
18823
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
18824
    *)                         need_version=no  ;;
 
18825
  esac
 
18826
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18827
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
18828
  shlibpath_var=LD_LIBRARY_PATH
 
18829
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
18830
    case $host_os in
 
18831
      openbsd2.[89] | openbsd2.[89].*)
 
18832
        shlibpath_overrides_runpath=no
 
18833
        ;;
 
18834
      *)
 
18835
        shlibpath_overrides_runpath=yes
 
18836
        ;;
 
18837
      esac
 
18838
  else
 
18839
    shlibpath_overrides_runpath=yes
 
18840
  fi
 
18841
  ;;
 
18842
 
 
18843
os2*)
 
18844
  libname_spec='$name'
 
18845
  shrext_cmds=".dll"
 
18846
  need_lib_prefix=no
 
18847
  library_names_spec='$libname${shared_ext} $libname.a'
 
18848
  dynamic_linker='OS/2 ld.exe'
 
18849
  shlibpath_var=LIBPATH
 
18850
  ;;
 
18851
 
 
18852
osf3* | osf4* | osf5*)
 
18853
  version_type=osf
 
18854
  need_lib_prefix=no
 
18855
  need_version=no
 
18856
  soname_spec='${libname}${release}${shared_ext}$major'
 
18857
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18858
  shlibpath_var=LD_LIBRARY_PATH
 
18859
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
18860
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
18861
  ;;
 
18862
 
 
18863
solaris*)
 
18864
  version_type=linux
 
18865
  need_lib_prefix=no
 
18866
  need_version=no
 
18867
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18868
  soname_spec='${libname}${release}${shared_ext}$major'
 
18869
  shlibpath_var=LD_LIBRARY_PATH
 
18870
  shlibpath_overrides_runpath=yes
 
18871
  hardcode_into_libs=yes
 
18872
  # ldd complains unless libraries are executable
 
18873
  postinstall_cmds='chmod +x $lib'
 
18874
  ;;
 
18875
 
 
18876
sunos4*)
 
18877
  version_type=sunos
 
18878
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18879
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
18880
  shlibpath_var=LD_LIBRARY_PATH
 
18881
  shlibpath_overrides_runpath=yes
 
18882
  if test "$with_gnu_ld" = yes; then
 
18883
    need_lib_prefix=no
 
18884
  fi
 
18885
  need_version=yes
 
18886
  ;;
 
18887
 
 
18888
sysv4 | sysv4.3*)
 
18889
  version_type=linux
 
18890
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18891
  soname_spec='${libname}${release}${shared_ext}$major'
 
18892
  shlibpath_var=LD_LIBRARY_PATH
 
18893
  case $host_vendor in
 
18894
    sni)
 
18895
      shlibpath_overrides_runpath=no
 
18896
      need_lib_prefix=no
 
18897
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
18898
      runpath_var=LD_RUN_PATH
 
18899
      ;;
 
18900
    siemens)
 
18901
      need_lib_prefix=no
 
18902
      ;;
 
18903
    motorola)
 
18904
      need_lib_prefix=no
 
18905
      need_version=no
 
18906
      shlibpath_overrides_runpath=no
 
18907
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
18908
      ;;
 
18909
  esac
 
18910
  ;;
 
18911
 
 
18912
sysv4*MP*)
 
18913
  if test -d /usr/nec ;then
 
18914
    version_type=linux
 
18915
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
18916
    soname_spec='$libname${shared_ext}.$major'
 
18917
    shlibpath_var=LD_LIBRARY_PATH
 
18918
  fi
 
18919
  ;;
 
18920
 
 
18921
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
18922
  version_type=freebsd-elf
 
18923
  need_lib_prefix=no
 
18924
  need_version=no
 
18925
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18926
  soname_spec='${libname}${release}${shared_ext}$major'
 
18927
  shlibpath_var=LD_LIBRARY_PATH
 
18928
  hardcode_into_libs=yes
 
18929
  if test "$with_gnu_ld" = yes; then
 
18930
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
18931
    shlibpath_overrides_runpath=no
 
18932
  else
 
18933
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
18934
    shlibpath_overrides_runpath=yes
 
18935
    case $host_os in
 
18936
      sco3.2v5*)
 
18937
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
18938
        ;;
 
18939
    esac
 
18940
  fi
 
18941
  sys_lib_dlsearch_path_spec='/usr/lib'
 
18942
  ;;
 
18943
 
 
18944
uts4*)
 
18945
  version_type=linux
 
18946
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18947
  soname_spec='${libname}${release}${shared_ext}$major'
 
18948
  shlibpath_var=LD_LIBRARY_PATH
 
18949
  ;;
 
18950
 
 
18951
*)
 
18952
  dynamic_linker=no
 
18953
  ;;
 
18954
esac
 
18955
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
18956
echo "${ECHO_T}$dynamic_linker" >&6; }
 
18957
test "$dynamic_linker" = no && can_build_shared=no
 
18958
 
 
18959
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
18960
if test "$GCC" = yes; then
 
18961
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
18962
fi
 
18963
 
 
18964
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
18965
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
18966
hardcode_action_GCJ=
 
18967
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
 
18968
   test -n "$runpath_var_GCJ" || \
 
18969
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
 
18970
 
 
18971
  # We can hardcode non-existant directories.
 
18972
  if test "$hardcode_direct_GCJ" != no &&
 
18973
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
18974
     # have to relink, otherwise we might link with an installed library
 
18975
     # when we should be linking with a yet-to-be-installed one
 
18976
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
 
18977
     test "$hardcode_minus_L_GCJ" != no; then
 
18978
    # Linking always hardcodes the temporary library directory.
 
18979
    hardcode_action_GCJ=relink
 
18980
  else
 
18981
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
18982
    hardcode_action_GCJ=immediate
 
18983
  fi
 
18984
else
 
18985
  # We cannot hardcode anything, or else we can only hardcode existing
 
18986
  # directories.
 
18987
  hardcode_action_GCJ=unsupported
 
18988
fi
 
18989
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
18990
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
 
18991
 
 
18992
if test "$hardcode_action_GCJ" = relink; then
 
18993
  # Fast installation is not supported
 
18994
  enable_fast_install=no
 
18995
elif test "$shlibpath_overrides_runpath" = yes ||
 
18996
     test "$enable_shared" = no; then
 
18997
  # Fast installation is not necessary
 
18998
  enable_fast_install=needless
 
18999
fi
 
19000
 
 
19001
 
 
19002
# The else clause should only fire when bootstrapping the
 
19003
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
19004
# with your package, and you will get complaints that there are
 
19005
# no rules to generate ltmain.sh.
 
19006
if test -f "$ltmain"; then
 
19007
  # See if we are running on zsh, and set the options which allow our commands through
 
19008
  # without removal of \ escapes.
 
19009
  if test -n "${ZSH_VERSION+set}" ; then
 
19010
    setopt NO_GLOB_SUBST
 
19011
  fi
 
19012
  # Now quote all the things that may contain metacharacters while being
 
19013
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
19014
  # variables and quote the copies for generation of the libtool script.
 
19015
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
19016
    SED SHELL STRIP \
 
19017
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
19018
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
19019
    deplibs_check_method reload_flag reload_cmds need_locks \
 
19020
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
19021
    lt_cv_sys_global_symbol_to_c_name_address \
 
19022
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
19023
    old_postinstall_cmds old_postuninstall_cmds \
 
19024
    compiler_GCJ \
 
19025
    CC_GCJ \
 
19026
    LD_GCJ \
 
19027
    lt_prog_compiler_wl_GCJ \
 
19028
    lt_prog_compiler_pic_GCJ \
 
19029
    lt_prog_compiler_static_GCJ \
 
19030
    lt_prog_compiler_no_builtin_flag_GCJ \
 
19031
    export_dynamic_flag_spec_GCJ \
 
19032
    thread_safe_flag_spec_GCJ \
 
19033
    whole_archive_flag_spec_GCJ \
 
19034
    enable_shared_with_static_runtimes_GCJ \
 
19035
    old_archive_cmds_GCJ \
 
19036
    old_archive_from_new_cmds_GCJ \
 
19037
    predep_objects_GCJ \
 
19038
    postdep_objects_GCJ \
 
19039
    predeps_GCJ \
 
19040
    postdeps_GCJ \
 
19041
    compiler_lib_search_path_GCJ \
 
19042
    archive_cmds_GCJ \
 
19043
    archive_expsym_cmds_GCJ \
 
19044
    postinstall_cmds_GCJ \
 
19045
    postuninstall_cmds_GCJ \
 
19046
    old_archive_from_expsyms_cmds_GCJ \
 
19047
    allow_undefined_flag_GCJ \
 
19048
    no_undefined_flag_GCJ \
 
19049
    export_symbols_cmds_GCJ \
 
19050
    hardcode_libdir_flag_spec_GCJ \
 
19051
    hardcode_libdir_flag_spec_ld_GCJ \
 
19052
    hardcode_libdir_separator_GCJ \
 
19053
    hardcode_automatic_GCJ \
 
19054
    module_cmds_GCJ \
 
19055
    module_expsym_cmds_GCJ \
 
19056
    lt_cv_prog_compiler_c_o_GCJ \
 
19057
    exclude_expsyms_GCJ \
 
19058
    include_expsyms_GCJ; do
 
19059
 
 
19060
    case $var in
 
19061
    old_archive_cmds_GCJ | \
 
19062
    old_archive_from_new_cmds_GCJ | \
 
19063
    archive_cmds_GCJ | \
 
19064
    archive_expsym_cmds_GCJ | \
 
19065
    module_cmds_GCJ | \
 
19066
    module_expsym_cmds_GCJ | \
 
19067
    old_archive_from_expsyms_cmds_GCJ | \
 
19068
    export_symbols_cmds_GCJ | \
 
19069
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
19070
    postinstall_cmds | postuninstall_cmds | \
 
19071
    old_postinstall_cmds | old_postuninstall_cmds | \
 
19072
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
19073
      # Double-quote double-evaled strings.
 
19074
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
19075
      ;;
 
19076
    *)
 
19077
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
19078
      ;;
 
19079
    esac
 
19080
  done
 
19081
 
 
19082
  case $lt_echo in
 
19083
  *'\$0 --fallback-echo"')
 
19084
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
19085
    ;;
 
19086
  esac
 
19087
 
 
19088
cfgfile="$ofile"
 
19089
 
 
19090
  cat <<__EOF__ >> "$cfgfile"
 
19091
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
19092
 
 
19093
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
19094
 
 
19095
# Shell to use when invoking shell scripts.
 
19096
SHELL=$lt_SHELL
 
19097
 
 
19098
# Whether or not to build shared libraries.
 
19099
build_libtool_libs=$enable_shared
 
19100
 
 
19101
# Whether or not to build static libraries.
 
19102
build_old_libs=$enable_static
 
19103
 
 
19104
# Whether or not to add -lc for building shared libraries.
 
19105
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
 
19106
 
 
19107
# Whether or not to disallow shared libs when runtime libs are static
 
19108
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
 
19109
 
 
19110
# Whether or not to optimize for fast installation.
 
19111
fast_install=$enable_fast_install
 
19112
 
 
19113
# The host system.
 
19114
host_alias=$host_alias
 
19115
host=$host
 
19116
host_os=$host_os
 
19117
 
 
19118
# The build system.
 
19119
build_alias=$build_alias
 
19120
build=$build
 
19121
build_os=$build_os
 
19122
 
 
19123
# An echo program that does not interpret backslashes.
 
19124
echo=$lt_echo
 
19125
 
 
19126
# The archiver.
 
19127
AR=$lt_AR
 
19128
AR_FLAGS=$lt_AR_FLAGS
 
19129
 
 
19130
# A C compiler.
 
19131
LTCC=$lt_LTCC
 
19132
 
 
19133
# LTCC compiler flags.
 
19134
LTCFLAGS=$lt_LTCFLAGS
 
19135
 
 
19136
# A language-specific compiler.
 
19137
CC=$lt_compiler_GCJ
 
19138
 
 
19139
# Is the compiler the GNU C compiler?
 
19140
with_gcc=$GCC_GCJ
 
19141
 
 
19142
# An ERE matcher.
 
19143
EGREP=$lt_EGREP
 
19144
 
 
19145
# The linker used to build libraries.
 
19146
LD=$lt_LD_GCJ
 
19147
 
 
19148
# Whether we need hard or soft links.
 
19149
LN_S=$lt_LN_S
 
19150
 
 
19151
# A BSD-compatible nm program.
 
19152
NM=$lt_NM
 
19153
 
 
19154
# A symbol stripping program
 
19155
STRIP=$lt_STRIP
 
19156
 
 
19157
# Used to examine libraries when file_magic_cmd begins "file"
 
19158
MAGIC_CMD=$MAGIC_CMD
 
19159
 
 
19160
# Used on cygwin: DLL creation program.
 
19161
DLLTOOL="$DLLTOOL"
 
19162
 
 
19163
# Used on cygwin: object dumper.
 
19164
OBJDUMP="$OBJDUMP"
 
19165
 
 
19166
# Used on cygwin: assembler.
 
19167
AS="$AS"
 
19168
 
 
19169
# The name of the directory that contains temporary libtool files.
 
19170
objdir=$objdir
 
19171
 
 
19172
# How to create reloadable object files.
 
19173
reload_flag=$lt_reload_flag
 
19174
reload_cmds=$lt_reload_cmds
 
19175
 
 
19176
# How to pass a linker flag through the compiler.
 
19177
wl=$lt_lt_prog_compiler_wl_GCJ
 
19178
 
 
19179
# Object file suffix (normally "o").
 
19180
objext="$ac_objext"
 
19181
 
 
19182
# Old archive suffix (normally "a").
 
19183
libext="$libext"
 
19184
 
 
19185
# Shared library suffix (normally ".so").
 
19186
shrext_cmds='$shrext_cmds'
 
19187
 
 
19188
# Executable file suffix (normally "").
 
19189
exeext="$exeext"
 
19190
 
 
19191
# Additional compiler flags for building library objects.
 
19192
pic_flag=$lt_lt_prog_compiler_pic_GCJ
 
19193
pic_mode=$pic_mode
 
19194
 
 
19195
# What is the maximum length of a command?
 
19196
max_cmd_len=$lt_cv_sys_max_cmd_len
 
19197
 
 
19198
# Does compiler simultaneously support -c and -o options?
 
19199
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
 
19200
 
 
19201
# Must we lock files when doing compilation?
 
19202
need_locks=$lt_need_locks
 
19203
 
 
19204
# Do we need the lib prefix for modules?
 
19205
need_lib_prefix=$need_lib_prefix
 
19206
 
 
19207
# Do we need a version for libraries?
 
19208
need_version=$need_version
 
19209
 
 
19210
# Whether dlopen is supported.
 
19211
dlopen_support=$enable_dlopen
 
19212
 
 
19213
# Whether dlopen of programs is supported.
 
19214
dlopen_self=$enable_dlopen_self
 
19215
 
 
19216
# Whether dlopen of statically linked programs is supported.
 
19217
dlopen_self_static=$enable_dlopen_self_static
 
19218
 
 
19219
# Compiler flag to prevent dynamic linking.
 
19220
link_static_flag=$lt_lt_prog_compiler_static_GCJ
 
19221
 
 
19222
# Compiler flag to turn off builtin functions.
 
19223
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
 
19224
 
 
19225
# Compiler flag to allow reflexive dlopens.
 
19226
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
 
19227
 
 
19228
# Compiler flag to generate shared objects directly from archives.
 
19229
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
 
19230
 
 
19231
# Compiler flag to generate thread-safe objects.
 
19232
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
 
19233
 
 
19234
# Library versioning type.
 
19235
version_type=$version_type
 
19236
 
 
19237
# Format of library name prefix.
 
19238
libname_spec=$lt_libname_spec
 
19239
 
 
19240
# List of archive names.  First name is the real one, the rest are links.
 
19241
# The last name is the one that the linker finds with -lNAME.
 
19242
library_names_spec=$lt_library_names_spec
 
19243
 
 
19244
# The coded name of the library, if different from the real name.
 
19245
soname_spec=$lt_soname_spec
 
19246
 
 
19247
# Commands used to build and install an old-style archive.
 
19248
RANLIB=$lt_RANLIB
 
19249
old_archive_cmds=$lt_old_archive_cmds_GCJ
 
19250
old_postinstall_cmds=$lt_old_postinstall_cmds
 
19251
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
19252
 
 
19253
# Create an old-style archive from a shared archive.
 
19254
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
 
19255
 
 
19256
# Create a temporary old-style archive to link instead of a shared archive.
 
19257
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
 
19258
 
 
19259
# Commands used to build and install a shared archive.
 
19260
archive_cmds=$lt_archive_cmds_GCJ
 
19261
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
 
19262
postinstall_cmds=$lt_postinstall_cmds
 
19263
postuninstall_cmds=$lt_postuninstall_cmds
 
19264
 
 
19265
# Commands used to build a loadable module (assumed same as above if empty)
 
19266
module_cmds=$lt_module_cmds_GCJ
 
19267
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
 
19268
 
 
19269
# Commands to strip libraries.
 
19270
old_striplib=$lt_old_striplib
 
19271
striplib=$lt_striplib
 
19272
 
 
19273
# Dependencies to place before the objects being linked to create a
 
19274
# shared library.
 
19275
predep_objects=$lt_predep_objects_GCJ
 
19276
 
 
19277
# Dependencies to place after the objects being linked to create a
 
19278
# shared library.
 
19279
postdep_objects=$lt_postdep_objects_GCJ
 
19280
 
 
19281
# Dependencies to place before the objects being linked to create a
 
19282
# shared library.
 
19283
predeps=$lt_predeps_GCJ
 
19284
 
 
19285
# Dependencies to place after the objects being linked to create a
 
19286
# shared library.
 
19287
postdeps=$lt_postdeps_GCJ
 
19288
 
 
19289
# The library search path used internally by the compiler when linking
 
19290
# a shared library.
 
19291
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
 
19292
 
 
19293
# Method to check whether dependent libraries are shared objects.
 
19294
deplibs_check_method=$lt_deplibs_check_method
 
19295
 
 
19296
# Command to use when deplibs_check_method == file_magic.
 
19297
file_magic_cmd=$lt_file_magic_cmd
 
19298
 
 
19299
# Flag that allows shared libraries with undefined symbols to be built.
 
19300
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
 
19301
 
 
19302
# Flag that forces no undefined symbols.
 
19303
no_undefined_flag=$lt_no_undefined_flag_GCJ
 
19304
 
 
19305
# Commands used to finish a libtool library installation in a directory.
 
19306
finish_cmds=$lt_finish_cmds
 
19307
 
 
19308
# Same as above, but a single script fragment to be evaled but not shown.
 
19309
finish_eval=$lt_finish_eval
 
19310
 
 
19311
# Take the output of nm and produce a listing of raw symbols and C names.
 
19312
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
19313
 
 
19314
# Transform the output of nm in a proper C declaration
 
19315
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
19316
 
 
19317
# Transform the output of nm in a C name address pair
 
19318
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
19319
 
 
19320
# This is the shared library runtime path variable.
 
19321
runpath_var=$runpath_var
 
19322
 
 
19323
# This is the shared library path variable.
 
19324
shlibpath_var=$shlibpath_var
 
19325
 
 
19326
# Is shlibpath searched before the hard-coded library search path?
 
19327
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
19328
 
 
19329
# How to hardcode a shared library path into an executable.
 
19330
hardcode_action=$hardcode_action_GCJ
 
19331
 
 
19332
# Whether we should hardcode library paths into libraries.
 
19333
hardcode_into_libs=$hardcode_into_libs
 
19334
 
 
19335
# Flag to hardcode \$libdir into a binary during linking.
 
19336
# This must work even if \$libdir does not exist.
 
19337
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
 
19338
 
 
19339
# If ld is used when linking, flag to hardcode \$libdir into
 
19340
# a binary during linking. This must work even if \$libdir does
 
19341
# not exist.
 
19342
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
 
19343
 
 
19344
# Whether we need a single -rpath flag with a separated argument.
 
19345
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
 
19346
 
 
19347
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
19348
# resulting binary.
 
19349
hardcode_direct=$hardcode_direct_GCJ
 
19350
 
 
19351
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
19352
# resulting binary.
 
19353
hardcode_minus_L=$hardcode_minus_L_GCJ
 
19354
 
 
19355
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
19356
# the resulting binary.
 
19357
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
 
19358
 
 
19359
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
19360
# and all subsequent libraries and executables linked against it.
 
19361
hardcode_automatic=$hardcode_automatic_GCJ
 
19362
 
 
19363
# Variables whose values should be saved in libtool wrapper scripts and
 
19364
# restored at relink time.
 
19365
variables_saved_for_relink="$variables_saved_for_relink"
 
19366
 
 
19367
# Whether libtool must link a program against all its dependency libraries.
 
19368
link_all_deplibs=$link_all_deplibs_GCJ
 
19369
 
 
19370
# Compile-time system search path for libraries
 
19371
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
19372
 
 
19373
# Run-time system search path for libraries
 
19374
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
19375
 
 
19376
# Fix the shell variable \$srcfile for the compiler.
 
19377
fix_srcfile_path="$fix_srcfile_path_GCJ"
 
19378
 
 
19379
# Set to yes if exported symbols are required.
 
19380
always_export_symbols=$always_export_symbols_GCJ
 
19381
 
 
19382
# The commands to list exported symbols.
 
19383
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
 
19384
 
 
19385
# The commands to extract the exported symbol list from a shared archive.
 
19386
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
19387
 
 
19388
# Symbols that should not be listed in the preloaded symbols.
 
19389
exclude_expsyms=$lt_exclude_expsyms_GCJ
 
19390
 
 
19391
# Symbols that must always be exported.
 
19392
include_expsyms=$lt_include_expsyms_GCJ
 
19393
 
 
19394
# ### END LIBTOOL TAG CONFIG: $tagname
 
19395
 
 
19396
__EOF__
 
19397
 
 
19398
 
 
19399
else
 
19400
  # If there is no Makefile yet, we rely on a make rule to execute
 
19401
  # `config.status --recheck' to rerun these tests and create the
 
19402
  # libtool script then.
 
19403
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
19404
  if test -f "$ltmain_in"; then
 
19405
    test -f Makefile && make "$ltmain"
 
19406
  fi
 
19407
fi
 
19408
 
 
19409
 
 
19410
ac_ext=c
 
19411
ac_cpp='$CPP $CPPFLAGS'
 
19412
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19413
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19414
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19415
 
 
19416
CC="$lt_save_CC"
 
19417
 
 
19418
        else
 
19419
          tagname=""
 
19420
        fi
 
19421
        ;;
 
19422
 
 
19423
      RC)
 
19424
 
 
19425
 
 
19426
# Source file extension for RC test sources.
 
19427
ac_ext=rc
 
19428
 
 
19429
# Object file extension for compiled RC test sources.
 
19430
objext=o
 
19431
objext_RC=$objext
 
19432
 
 
19433
# Code to be used in simple compile tests
 
19434
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
19435
 
 
19436
# Code to be used in simple link tests
 
19437
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
19438
 
 
19439
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
19440
 
 
19441
# If no C compiler was specified, use CC.
 
19442
LTCC=${LTCC-"$CC"}
 
19443
 
 
19444
# If no C compiler flags were specified, use CFLAGS.
 
19445
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
19446
 
 
19447
# Allow CC to be a program name with arguments.
 
19448
compiler=$CC
 
19449
 
 
19450
 
 
19451
# save warnings/boilerplate of simple test code
 
19452
ac_outfile=conftest.$ac_objext
 
19453
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
19454
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
19455
_lt_compiler_boilerplate=`cat conftest.err`
 
19456
$rm conftest*
 
19457
 
 
19458
ac_outfile=conftest.$ac_objext
 
19459
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
19460
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
19461
_lt_linker_boilerplate=`cat conftest.err`
 
19462
$rm conftest*
 
19463
 
 
19464
 
 
19465
# Allow CC to be a program name with arguments.
 
19466
lt_save_CC="$CC"
 
19467
CC=${RC-"windres"}
 
19468
compiler=$CC
 
19469
compiler_RC=$CC
 
19470
for cc_temp in $compiler""; do
 
19471
  case $cc_temp in
 
19472
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
19473
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
19474
    \-*) ;;
 
19475
    *) break;;
 
19476
  esac
 
19477
done
 
19478
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
19479
 
 
19480
lt_cv_prog_compiler_c_o_RC=yes
 
19481
 
 
19482
# The else clause should only fire when bootstrapping the
 
19483
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
19484
# with your package, and you will get complaints that there are
 
19485
# no rules to generate ltmain.sh.
 
19486
if test -f "$ltmain"; then
 
19487
  # See if we are running on zsh, and set the options which allow our commands through
 
19488
  # without removal of \ escapes.
 
19489
  if test -n "${ZSH_VERSION+set}" ; then
 
19490
    setopt NO_GLOB_SUBST
 
19491
  fi
 
19492
  # Now quote all the things that may contain metacharacters while being
 
19493
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
19494
  # variables and quote the copies for generation of the libtool script.
 
19495
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
19496
    SED SHELL STRIP \
 
19497
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
19498
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
19499
    deplibs_check_method reload_flag reload_cmds need_locks \
 
19500
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
19501
    lt_cv_sys_global_symbol_to_c_name_address \
 
19502
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
19503
    old_postinstall_cmds old_postuninstall_cmds \
 
19504
    compiler_RC \
 
19505
    CC_RC \
 
19506
    LD_RC \
 
19507
    lt_prog_compiler_wl_RC \
 
19508
    lt_prog_compiler_pic_RC \
 
19509
    lt_prog_compiler_static_RC \
 
19510
    lt_prog_compiler_no_builtin_flag_RC \
 
19511
    export_dynamic_flag_spec_RC \
 
19512
    thread_safe_flag_spec_RC \
 
19513
    whole_archive_flag_spec_RC \
 
19514
    enable_shared_with_static_runtimes_RC \
 
19515
    old_archive_cmds_RC \
 
19516
    old_archive_from_new_cmds_RC \
 
19517
    predep_objects_RC \
 
19518
    postdep_objects_RC \
 
19519
    predeps_RC \
 
19520
    postdeps_RC \
 
19521
    compiler_lib_search_path_RC \
 
19522
    archive_cmds_RC \
 
19523
    archive_expsym_cmds_RC \
 
19524
    postinstall_cmds_RC \
 
19525
    postuninstall_cmds_RC \
 
19526
    old_archive_from_expsyms_cmds_RC \
 
19527
    allow_undefined_flag_RC \
 
19528
    no_undefined_flag_RC \
 
19529
    export_symbols_cmds_RC \
 
19530
    hardcode_libdir_flag_spec_RC \
 
19531
    hardcode_libdir_flag_spec_ld_RC \
 
19532
    hardcode_libdir_separator_RC \
 
19533
    hardcode_automatic_RC \
 
19534
    module_cmds_RC \
 
19535
    module_expsym_cmds_RC \
 
19536
    lt_cv_prog_compiler_c_o_RC \
 
19537
    exclude_expsyms_RC \
 
19538
    include_expsyms_RC; do
 
19539
 
 
19540
    case $var in
 
19541
    old_archive_cmds_RC | \
 
19542
    old_archive_from_new_cmds_RC | \
 
19543
    archive_cmds_RC | \
 
19544
    archive_expsym_cmds_RC | \
 
19545
    module_cmds_RC | \
 
19546
    module_expsym_cmds_RC | \
 
19547
    old_archive_from_expsyms_cmds_RC | \
 
19548
    export_symbols_cmds_RC | \
 
19549
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
19550
    postinstall_cmds | postuninstall_cmds | \
 
19551
    old_postinstall_cmds | old_postuninstall_cmds | \
 
19552
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
19553
      # Double-quote double-evaled strings.
 
19554
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
19555
      ;;
 
19556
    *)
 
19557
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
19558
      ;;
 
19559
    esac
 
19560
  done
 
19561
 
 
19562
  case $lt_echo in
 
19563
  *'\$0 --fallback-echo"')
 
19564
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
19565
    ;;
 
19566
  esac
 
19567
 
 
19568
cfgfile="$ofile"
 
19569
 
 
19570
  cat <<__EOF__ >> "$cfgfile"
 
19571
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
19572
 
 
19573
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
19574
 
 
19575
# Shell to use when invoking shell scripts.
 
19576
SHELL=$lt_SHELL
 
19577
 
 
19578
# Whether or not to build shared libraries.
 
19579
build_libtool_libs=$enable_shared
 
19580
 
 
19581
# Whether or not to build static libraries.
 
19582
build_old_libs=$enable_static
 
19583
 
 
19584
# Whether or not to add -lc for building shared libraries.
 
19585
build_libtool_need_lc=$archive_cmds_need_lc_RC
 
19586
 
 
19587
# Whether or not to disallow shared libs when runtime libs are static
 
19588
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
 
19589
 
 
19590
# Whether or not to optimize for fast installation.
 
19591
fast_install=$enable_fast_install
 
19592
 
 
19593
# The host system.
 
19594
host_alias=$host_alias
 
19595
host=$host
 
19596
host_os=$host_os
 
19597
 
 
19598
# The build system.
 
19599
build_alias=$build_alias
 
19600
build=$build
 
19601
build_os=$build_os
 
19602
 
 
19603
# An echo program that does not interpret backslashes.
 
19604
echo=$lt_echo
 
19605
 
 
19606
# The archiver.
 
19607
AR=$lt_AR
 
19608
AR_FLAGS=$lt_AR_FLAGS
 
19609
 
 
19610
# A C compiler.
 
19611
LTCC=$lt_LTCC
 
19612
 
 
19613
# LTCC compiler flags.
 
19614
LTCFLAGS=$lt_LTCFLAGS
 
19615
 
 
19616
# A language-specific compiler.
 
19617
CC=$lt_compiler_RC
 
19618
 
 
19619
# Is the compiler the GNU C compiler?
 
19620
with_gcc=$GCC_RC
 
19621
 
 
19622
# An ERE matcher.
 
19623
EGREP=$lt_EGREP
 
19624
 
 
19625
# The linker used to build libraries.
 
19626
LD=$lt_LD_RC
 
19627
 
 
19628
# Whether we need hard or soft links.
 
19629
LN_S=$lt_LN_S
 
19630
 
 
19631
# A BSD-compatible nm program.
 
19632
NM=$lt_NM
 
19633
 
 
19634
# A symbol stripping program
 
19635
STRIP=$lt_STRIP
 
19636
 
 
19637
# Used to examine libraries when file_magic_cmd begins "file"
 
19638
MAGIC_CMD=$MAGIC_CMD
 
19639
 
 
19640
# Used on cygwin: DLL creation program.
 
19641
DLLTOOL="$DLLTOOL"
 
19642
 
 
19643
# Used on cygwin: object dumper.
 
19644
OBJDUMP="$OBJDUMP"
 
19645
 
 
19646
# Used on cygwin: assembler.
 
19647
AS="$AS"
 
19648
 
 
19649
# The name of the directory that contains temporary libtool files.
 
19650
objdir=$objdir
 
19651
 
 
19652
# How to create reloadable object files.
 
19653
reload_flag=$lt_reload_flag
 
19654
reload_cmds=$lt_reload_cmds
 
19655
 
 
19656
# How to pass a linker flag through the compiler.
 
19657
wl=$lt_lt_prog_compiler_wl_RC
 
19658
 
 
19659
# Object file suffix (normally "o").
 
19660
objext="$ac_objext"
 
19661
 
 
19662
# Old archive suffix (normally "a").
 
19663
libext="$libext"
 
19664
 
 
19665
# Shared library suffix (normally ".so").
 
19666
shrext_cmds='$shrext_cmds'
 
19667
 
 
19668
# Executable file suffix (normally "").
 
19669
exeext="$exeext"
 
19670
 
 
19671
# Additional compiler flags for building library objects.
 
19672
pic_flag=$lt_lt_prog_compiler_pic_RC
 
19673
pic_mode=$pic_mode
 
19674
 
 
19675
# What is the maximum length of a command?
 
19676
max_cmd_len=$lt_cv_sys_max_cmd_len
 
19677
 
 
19678
# Does compiler simultaneously support -c and -o options?
 
19679
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
 
19680
 
 
19681
# Must we lock files when doing compilation?
 
19682
need_locks=$lt_need_locks
 
19683
 
 
19684
# Do we need the lib prefix for modules?
 
19685
need_lib_prefix=$need_lib_prefix
 
19686
 
 
19687
# Do we need a version for libraries?
 
19688
need_version=$need_version
 
19689
 
 
19690
# Whether dlopen is supported.
 
19691
dlopen_support=$enable_dlopen
 
19692
 
 
19693
# Whether dlopen of programs is supported.
 
19694
dlopen_self=$enable_dlopen_self
 
19695
 
 
19696
# Whether dlopen of statically linked programs is supported.
 
19697
dlopen_self_static=$enable_dlopen_self_static
 
19698
 
 
19699
# Compiler flag to prevent dynamic linking.
 
19700
link_static_flag=$lt_lt_prog_compiler_static_RC
 
19701
 
 
19702
# Compiler flag to turn off builtin functions.
 
19703
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
 
19704
 
 
19705
# Compiler flag to allow reflexive dlopens.
 
19706
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
 
19707
 
 
19708
# Compiler flag to generate shared objects directly from archives.
 
19709
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
 
19710
 
 
19711
# Compiler flag to generate thread-safe objects.
 
19712
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
 
19713
 
 
19714
# Library versioning type.
 
19715
version_type=$version_type
 
19716
 
 
19717
# Format of library name prefix.
 
19718
libname_spec=$lt_libname_spec
 
19719
 
 
19720
# List of archive names.  First name is the real one, the rest are links.
 
19721
# The last name is the one that the linker finds with -lNAME.
 
19722
library_names_spec=$lt_library_names_spec
 
19723
 
 
19724
# The coded name of the library, if different from the real name.
 
19725
soname_spec=$lt_soname_spec
 
19726
 
 
19727
# Commands used to build and install an old-style archive.
 
19728
RANLIB=$lt_RANLIB
 
19729
old_archive_cmds=$lt_old_archive_cmds_RC
 
19730
old_postinstall_cmds=$lt_old_postinstall_cmds
 
19731
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
19732
 
 
19733
# Create an old-style archive from a shared archive.
 
19734
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
 
19735
 
 
19736
# Create a temporary old-style archive to link instead of a shared archive.
 
19737
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
 
19738
 
 
19739
# Commands used to build and install a shared archive.
 
19740
archive_cmds=$lt_archive_cmds_RC
 
19741
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
 
19742
postinstall_cmds=$lt_postinstall_cmds
 
19743
postuninstall_cmds=$lt_postuninstall_cmds
 
19744
 
 
19745
# Commands used to build a loadable module (assumed same as above if empty)
 
19746
module_cmds=$lt_module_cmds_RC
 
19747
module_expsym_cmds=$lt_module_expsym_cmds_RC
 
19748
 
 
19749
# Commands to strip libraries.
 
19750
old_striplib=$lt_old_striplib
 
19751
striplib=$lt_striplib
 
19752
 
 
19753
# Dependencies to place before the objects being linked to create a
 
19754
# shared library.
 
19755
predep_objects=$lt_predep_objects_RC
 
19756
 
 
19757
# Dependencies to place after the objects being linked to create a
 
19758
# shared library.
 
19759
postdep_objects=$lt_postdep_objects_RC
 
19760
 
 
19761
# Dependencies to place before the objects being linked to create a
 
19762
# shared library.
 
19763
predeps=$lt_predeps_RC
 
19764
 
 
19765
# Dependencies to place after the objects being linked to create a
 
19766
# shared library.
 
19767
postdeps=$lt_postdeps_RC
 
19768
 
 
19769
# The library search path used internally by the compiler when linking
 
19770
# a shared library.
 
19771
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
 
19772
 
 
19773
# Method to check whether dependent libraries are shared objects.
 
19774
deplibs_check_method=$lt_deplibs_check_method
 
19775
 
 
19776
# Command to use when deplibs_check_method == file_magic.
 
19777
file_magic_cmd=$lt_file_magic_cmd
 
19778
 
 
19779
# Flag that allows shared libraries with undefined symbols to be built.
 
19780
allow_undefined_flag=$lt_allow_undefined_flag_RC
 
19781
 
 
19782
# Flag that forces no undefined symbols.
 
19783
no_undefined_flag=$lt_no_undefined_flag_RC
 
19784
 
 
19785
# Commands used to finish a libtool library installation in a directory.
 
19786
finish_cmds=$lt_finish_cmds
 
19787
 
 
19788
# Same as above, but a single script fragment to be evaled but not shown.
 
19789
finish_eval=$lt_finish_eval
 
19790
 
 
19791
# Take the output of nm and produce a listing of raw symbols and C names.
 
19792
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
19793
 
 
19794
# Transform the output of nm in a proper C declaration
 
19795
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
19796
 
 
19797
# Transform the output of nm in a C name address pair
 
19798
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
19799
 
 
19800
# This is the shared library runtime path variable.
 
19801
runpath_var=$runpath_var
 
19802
 
 
19803
# This is the shared library path variable.
 
19804
shlibpath_var=$shlibpath_var
 
19805
 
 
19806
# Is shlibpath searched before the hard-coded library search path?
 
19807
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
19808
 
 
19809
# How to hardcode a shared library path into an executable.
 
19810
hardcode_action=$hardcode_action_RC
 
19811
 
 
19812
# Whether we should hardcode library paths into libraries.
 
19813
hardcode_into_libs=$hardcode_into_libs
 
19814
 
 
19815
# Flag to hardcode \$libdir into a binary during linking.
 
19816
# This must work even if \$libdir does not exist.
 
19817
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
 
19818
 
 
19819
# If ld is used when linking, flag to hardcode \$libdir into
 
19820
# a binary during linking. This must work even if \$libdir does
 
19821
# not exist.
 
19822
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
 
19823
 
 
19824
# Whether we need a single -rpath flag with a separated argument.
 
19825
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
 
19826
 
 
19827
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
19828
# resulting binary.
 
19829
hardcode_direct=$hardcode_direct_RC
 
19830
 
 
19831
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
19832
# resulting binary.
 
19833
hardcode_minus_L=$hardcode_minus_L_RC
 
19834
 
 
19835
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
19836
# the resulting binary.
 
19837
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
 
19838
 
 
19839
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
19840
# and all subsequent libraries and executables linked against it.
 
19841
hardcode_automatic=$hardcode_automatic_RC
 
19842
 
 
19843
# Variables whose values should be saved in libtool wrapper scripts and
 
19844
# restored at relink time.
 
19845
variables_saved_for_relink="$variables_saved_for_relink"
 
19846
 
 
19847
# Whether libtool must link a program against all its dependency libraries.
 
19848
link_all_deplibs=$link_all_deplibs_RC
 
19849
 
 
19850
# Compile-time system search path for libraries
 
19851
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
19852
 
 
19853
# Run-time system search path for libraries
 
19854
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
19855
 
 
19856
# Fix the shell variable \$srcfile for the compiler.
 
19857
fix_srcfile_path="$fix_srcfile_path_RC"
 
19858
 
 
19859
# Set to yes if exported symbols are required.
 
19860
always_export_symbols=$always_export_symbols_RC
 
19861
 
 
19862
# The commands to list exported symbols.
 
19863
export_symbols_cmds=$lt_export_symbols_cmds_RC
 
19864
 
 
19865
# The commands to extract the exported symbol list from a shared archive.
 
19866
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
19867
 
 
19868
# Symbols that should not be listed in the preloaded symbols.
 
19869
exclude_expsyms=$lt_exclude_expsyms_RC
 
19870
 
 
19871
# Symbols that must always be exported.
 
19872
include_expsyms=$lt_include_expsyms_RC
 
19873
 
 
19874
# ### END LIBTOOL TAG CONFIG: $tagname
 
19875
 
 
19876
__EOF__
 
19877
 
 
19878
 
 
19879
else
 
19880
  # If there is no Makefile yet, we rely on a make rule to execute
 
19881
  # `config.status --recheck' to rerun these tests and create the
 
19882
  # libtool script then.
 
19883
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
19884
  if test -f "$ltmain_in"; then
 
19885
    test -f Makefile && make "$ltmain"
 
19886
  fi
 
19887
fi
 
19888
 
 
19889
 
 
19890
ac_ext=c
 
19891
ac_cpp='$CPP $CPPFLAGS'
 
19892
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19893
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19894
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19895
 
 
19896
CC="$lt_save_CC"
 
19897
 
 
19898
        ;;
 
19899
 
 
19900
      *)
 
19901
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
 
19902
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
 
19903
   { (exit 1); exit 1; }; }
 
19904
        ;;
 
19905
      esac
 
19906
 
 
19907
      # Append the new tag name to the list of available tags.
 
19908
      if test -n "$tagname" ; then
 
19909
      available_tags="$available_tags $tagname"
 
19910
    fi
 
19911
    fi
 
19912
  done
 
19913
  IFS="$lt_save_ifs"
 
19914
 
 
19915
  # Now substitute the updated list of available tags.
 
19916
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
19917
    mv "${ofile}T" "$ofile"
 
19918
    chmod +x "$ofile"
 
19919
  else
 
19920
    rm -f "${ofile}T"
 
19921
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
 
19922
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
 
19923
   { (exit 1); exit 1; }; }
 
19924
  fi
 
19925
fi
 
19926
 
 
19927
 
 
19928
 
 
19929
# This can be used to rebuild libtool when needed
 
19930
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
19931
 
 
19932
# Always use our own libtool.
 
19933
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
19934
 
 
19935
# Prevent multiple expansion
 
19936
 
 
19937
 
 
19938
 
 
19939
 
 
19940
 
 
19941
 
 
19942
 
 
19943
 
 
19944
 
 
19945
 
 
19946
 
 
19947
 
 
19948
 
 
19949
 
 
19950
 
 
19951
 
 
19952
 
 
19953
 
 
19954
 
 
19955
 
 
19956
# Check whether --enable-shared was given.
 
19957
if test "${enable_shared+set}" = set; then
 
19958
  enableval=$enable_shared; p=${PACKAGE-default}
 
19959
    case $enableval in
 
19960
    yes) enable_shared=yes ;;
 
19961
    no) enable_shared=no ;;
 
19962
    *)
 
19963
      enable_shared=no
 
19964
      # Look at the argument we got.  We use all the common list separators.
 
19965
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
19966
      for pkg in $enableval; do
 
19967
        IFS="$lt_save_ifs"
 
19968
        if test "X$pkg" = "X$p"; then
 
19969
          enable_shared=yes
 
19970
        fi
 
19971
      done
 
19972
      IFS="$lt_save_ifs"
 
19973
      ;;
 
19974
    esac
 
19975
else
 
19976
  enable_shared=yes
 
19977
fi
 
19978
 
 
19979
 
 
19980
# Check whether --enable-static was given.
 
19981
if test "${enable_static+set}" = set; then
 
19982
  enableval=$enable_static; p=${PACKAGE-default}
 
19983
    case $enableval in
 
19984
    yes) enable_static=yes ;;
 
19985
    no) enable_static=no ;;
 
19986
    *)
 
19987
     enable_static=no
 
19988
      # Look at the argument we got.  We use all the common list separators.
 
19989
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
19990
      for pkg in $enableval; do
 
19991
        IFS="$lt_save_ifs"
 
19992
        if test "X$pkg" = "X$p"; then
 
19993
          enable_static=yes
 
19994
        fi
 
19995
      done
 
19996
      IFS="$lt_save_ifs"
 
19997
      ;;
 
19998
    esac
 
19999
else
 
20000
  enable_static=no
 
20001
fi
 
20002
 
 
20003
 
 
20004
 
 
20005
if test "$GCC" != "yes" ; then
 
20006
        case $host_os in
 
20007
                *hpux*)
 
20008
                                                CFLAGS="$CFLAGS +O2 -g "
 
20009
                        ;;
 
20010
        esac
 
20011
else
 
20012
        CFLAGS="$CFLAGS -Wall"
 
20013
fi
 
20014
 
 
20015
 
 
20016
 
 
20017
if test $debug_enabled = "yes"; then
 
20018
        CFLAGS="$CFLAGS -g -DDEBUG"
 
20019
else
 
20020
        CFLAGS="$CFLAGS -O2 -g "
 
20021
fi
 
20022
 
 
20023
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
20024
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
 
20025
if test "${ac_cv_header_stdc+set}" = set; then
 
20026
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20027
else
 
20028
  cat >conftest.$ac_ext <<_ACEOF
 
20029
/* confdefs.h.  */
 
20030
_ACEOF
 
20031
cat confdefs.h >>conftest.$ac_ext
 
20032
cat >>conftest.$ac_ext <<_ACEOF
 
20033
/* end confdefs.h.  */
 
20034
#include <stdlib.h>
 
20035
#include <stdarg.h>
 
20036
#include <string.h>
 
20037
#include <float.h>
 
20038
 
 
20039
int
 
20040
main ()
 
20041
{
 
20042
 
 
20043
  ;
 
20044
  return 0;
 
20045
}
 
20046
_ACEOF
 
20047
rm -f conftest.$ac_objext
 
20048
if { (ac_try="$ac_compile"
 
20049
case "(($ac_try" in
 
20050
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20051
  *) ac_try_echo=$ac_try;;
 
20052
esac
 
20053
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20054
  (eval "$ac_compile") 2>conftest.er1
 
20055
  ac_status=$?
 
20056
  grep -v '^ *+' conftest.er1 >conftest.err
 
20057
  rm -f conftest.er1
 
20058
  cat conftest.err >&5
 
20059
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20060
  (exit $ac_status); } &&
 
20061
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
20062
  { (case "(($ac_try" in
 
20063
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20064
  *) ac_try_echo=$ac_try;;
 
20065
esac
 
20066
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20067
  (eval "$ac_try") 2>&5
 
20068
  ac_status=$?
 
20069
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20070
  (exit $ac_status); }; } &&
 
20071
         { ac_try='test -s conftest.$ac_objext'
 
20072
  { (case "(($ac_try" in
 
20073
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20074
  *) ac_try_echo=$ac_try;;
 
20075
esac
 
20076
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20077
  (eval "$ac_try") 2>&5
 
20078
  ac_status=$?
 
20079
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20080
  (exit $ac_status); }; }; then
 
20081
  ac_cv_header_stdc=yes
 
20082
else
 
20083
  echo "$as_me: failed program was:" >&5
 
20084
sed 's/^/| /' conftest.$ac_ext >&5
 
20085
 
 
20086
        ac_cv_header_stdc=no
 
20087
fi
 
20088
 
 
20089
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20090
 
 
20091
if test $ac_cv_header_stdc = yes; then
 
20092
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
20093
  cat >conftest.$ac_ext <<_ACEOF
 
20094
/* confdefs.h.  */
 
20095
_ACEOF
 
20096
cat confdefs.h >>conftest.$ac_ext
 
20097
cat >>conftest.$ac_ext <<_ACEOF
 
20098
/* end confdefs.h.  */
 
20099
#include <string.h>
 
20100
 
 
20101
_ACEOF
 
20102
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
20103
  $EGREP "memchr" >/dev/null 2>&1; then
 
20104
  :
 
20105
else
 
20106
  ac_cv_header_stdc=no
 
20107
fi
 
20108
rm -f conftest*
 
20109
 
 
20110
fi
 
20111
 
 
20112
if test $ac_cv_header_stdc = yes; then
 
20113
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
20114
  cat >conftest.$ac_ext <<_ACEOF
 
20115
/* confdefs.h.  */
 
20116
_ACEOF
 
20117
cat confdefs.h >>conftest.$ac_ext
 
20118
cat >>conftest.$ac_ext <<_ACEOF
 
20119
/* end confdefs.h.  */
 
20120
#include <stdlib.h>
 
20121
 
 
20122
_ACEOF
 
20123
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
20124
  $EGREP "free" >/dev/null 2>&1; then
 
20125
  :
 
20126
else
 
20127
  ac_cv_header_stdc=no
 
20128
fi
 
20129
rm -f conftest*
 
20130
 
 
20131
fi
 
20132
 
 
20133
if test $ac_cv_header_stdc = yes; then
 
20134
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
20135
  if test "$cross_compiling" = yes; then
 
20136
  :
 
20137
else
 
20138
  cat >conftest.$ac_ext <<_ACEOF
 
20139
/* confdefs.h.  */
 
20140
_ACEOF
 
20141
cat confdefs.h >>conftest.$ac_ext
 
20142
cat >>conftest.$ac_ext <<_ACEOF
 
20143
/* end confdefs.h.  */
 
20144
#include <ctype.h>
 
20145
#include <stdlib.h>
 
20146
#if ((' ' & 0x0FF) == 0x020)
 
20147
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
20148
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
20149
#else
 
20150
# define ISLOWER(c) \
 
20151
                   (('a' <= (c) && (c) <= 'i') \
 
20152
                     || ('j' <= (c) && (c) <= 'r') \
 
20153
                     || ('s' <= (c) && (c) <= 'z'))
 
20154
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
20155
#endif
 
20156
 
 
20157
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
20158
int
 
20159
main ()
 
20160
{
 
20161
  int i;
 
20162
  for (i = 0; i < 256; i++)
 
20163
    if (XOR (islower (i), ISLOWER (i))
 
20164
        || toupper (i) != TOUPPER (i))
 
20165
      return 2;
 
20166
  return 0;
 
20167
}
 
20168
_ACEOF
 
20169
rm -f conftest$ac_exeext
 
20170
if { (ac_try="$ac_link"
 
20171
case "(($ac_try" in
 
20172
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20173
  *) ac_try_echo=$ac_try;;
 
20174
esac
 
20175
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20176
  (eval "$ac_link") 2>&5
 
20177
  ac_status=$?
 
20178
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20179
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
20180
  { (case "(($ac_try" in
 
20181
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20182
  *) ac_try_echo=$ac_try;;
 
20183
esac
 
20184
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20185
  (eval "$ac_try") 2>&5
 
20186
  ac_status=$?
 
20187
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20188
  (exit $ac_status); }; }; then
 
20189
  :
 
20190
else
 
20191
  echo "$as_me: program exited with status $ac_status" >&5
 
20192
echo "$as_me: failed program was:" >&5
 
20193
sed 's/^/| /' conftest.$ac_ext >&5
 
20194
 
 
20195
( exit $ac_status )
 
20196
ac_cv_header_stdc=no
 
20197
fi
 
20198
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
20199
fi
 
20200
 
 
20201
 
 
20202
fi
 
20203
fi
 
20204
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
20205
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
 
20206
if test $ac_cv_header_stdc = yes; then
 
20207
 
 
20208
cat >>confdefs.h <<\_ACEOF
 
20209
#define STDC_HEADERS 1
 
20210
_ACEOF
 
20211
 
 
20212
fi
 
20213
 
 
20214
 
 
20215
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
 
20216
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
 
20217
if test "${ac_cv_c_const+set}" = set; then
 
20218
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20219
else
 
20220
  cat >conftest.$ac_ext <<_ACEOF
 
20221
/* confdefs.h.  */
 
20222
_ACEOF
 
20223
cat confdefs.h >>conftest.$ac_ext
 
20224
cat >>conftest.$ac_ext <<_ACEOF
 
20225
/* end confdefs.h.  */
 
20226
 
 
20227
int
 
20228
main ()
 
20229
{
 
20230
/* FIXME: Include the comments suggested by Paul. */
 
20231
#ifndef __cplusplus
 
20232
  /* Ultrix mips cc rejects this.  */
 
20233
  typedef int charset[2];
 
20234
  const charset cs;
 
20235
  /* SunOS 4.1.1 cc rejects this.  */
 
20236
  char const *const *pcpcc;
 
20237
  char **ppc;
 
20238
  /* NEC SVR4.0.2 mips cc rejects this.  */
 
20239
  struct point {int x, y;};
 
20240
  static struct point const zero = {0,0};
 
20241
  /* AIX XL C 1.02.0.0 rejects this.
 
20242
     It does not let you subtract one const X* pointer from another in
 
20243
     an arm of an if-expression whose if-part is not a constant
 
20244
     expression */
 
20245
  const char *g = "string";
 
20246
  pcpcc = &g + (g ? g-g : 0);
 
20247
  /* HPUX 7.0 cc rejects these. */
 
20248
  ++pcpcc;
 
20249
  ppc = (char**) pcpcc;
 
20250
  pcpcc = (char const *const *) ppc;
 
20251
  { /* SCO 3.2v4 cc rejects this.  */
 
20252
    char *t;
 
20253
    char const *s = 0 ? (char *) 0 : (char const *) 0;
 
20254
 
 
20255
    *t++ = 0;
 
20256
    if (s) return 0;
 
20257
  }
 
20258
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
20259
    int x[] = {25, 17};
 
20260
    const int *foo = &x[0];
 
20261
    ++foo;
 
20262
  }
 
20263
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
20264
    typedef const int *iptr;
 
20265
    iptr p = 0;
 
20266
    ++p;
 
20267
  }
 
20268
  { /* AIX XL C 1.02.0.0 rejects this saying
 
20269
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 
20270
    struct s { int j; const int *ap[3]; };
 
20271
    struct s *b; b->j = 5;
 
20272
  }
 
20273
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
20274
    const int foo = 10;
 
20275
    if (!foo) return 0;
 
20276
  }
 
20277
  return !cs[0] && !zero.x;
 
20278
#endif
 
20279
 
 
20280
  ;
 
20281
  return 0;
 
20282
}
 
20283
_ACEOF
 
20284
rm -f conftest.$ac_objext
 
20285
if { (ac_try="$ac_compile"
 
20286
case "(($ac_try" in
 
20287
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20288
  *) ac_try_echo=$ac_try;;
 
20289
esac
 
20290
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20291
  (eval "$ac_compile") 2>conftest.er1
 
20292
  ac_status=$?
 
20293
  grep -v '^ *+' conftest.er1 >conftest.err
 
20294
  rm -f conftest.er1
 
20295
  cat conftest.err >&5
 
20296
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20297
  (exit $ac_status); } &&
 
20298
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
20299
  { (case "(($ac_try" in
 
20300
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20301
  *) ac_try_echo=$ac_try;;
 
20302
esac
 
20303
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20304
  (eval "$ac_try") 2>&5
 
20305
  ac_status=$?
 
20306
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20307
  (exit $ac_status); }; } &&
 
20308
         { ac_try='test -s conftest.$ac_objext'
 
20309
  { (case "(($ac_try" in
 
20310
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20311
  *) ac_try_echo=$ac_try;;
 
20312
esac
 
20313
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20314
  (eval "$ac_try") 2>&5
 
20315
  ac_status=$?
 
20316
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20317
  (exit $ac_status); }; }; then
 
20318
  ac_cv_c_const=yes
 
20319
else
 
20320
  echo "$as_me: failed program was:" >&5
 
20321
sed 's/^/| /' conftest.$ac_ext >&5
 
20322
 
 
20323
        ac_cv_c_const=no
 
20324
fi
 
20325
 
 
20326
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20327
fi
 
20328
{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
 
20329
echo "${ECHO_T}$ac_cv_c_const" >&6; }
 
20330
if test $ac_cv_c_const = no; then
 
20331
 
 
20332
cat >>confdefs.h <<\_ACEOF
 
20333
#define const
 
20334
_ACEOF
 
20335
 
 
20336
fi
 
20337
 
 
20338
{ echo "$as_me:$LINENO: checking for inline" >&5
 
20339
echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
 
20340
if test "${ac_cv_c_inline+set}" = set; then
 
20341
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20342
else
 
20343
  ac_cv_c_inline=no
 
20344
for ac_kw in inline __inline__ __inline; do
 
20345
  cat >conftest.$ac_ext <<_ACEOF
 
20346
/* confdefs.h.  */
 
20347
_ACEOF
 
20348
cat confdefs.h >>conftest.$ac_ext
 
20349
cat >>conftest.$ac_ext <<_ACEOF
 
20350
/* end confdefs.h.  */
 
20351
#ifndef __cplusplus
 
20352
typedef int foo_t;
 
20353
static $ac_kw foo_t static_foo () {return 0; }
 
20354
$ac_kw foo_t foo () {return 0; }
 
20355
#endif
 
20356
 
 
20357
_ACEOF
 
20358
rm -f conftest.$ac_objext
 
20359
if { (ac_try="$ac_compile"
 
20360
case "(($ac_try" in
 
20361
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20362
  *) ac_try_echo=$ac_try;;
 
20363
esac
 
20364
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20365
  (eval "$ac_compile") 2>conftest.er1
 
20366
  ac_status=$?
 
20367
  grep -v '^ *+' conftest.er1 >conftest.err
 
20368
  rm -f conftest.er1
 
20369
  cat conftest.err >&5
 
20370
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20371
  (exit $ac_status); } &&
 
20372
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
20373
  { (case "(($ac_try" in
 
20374
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20375
  *) ac_try_echo=$ac_try;;
 
20376
esac
 
20377
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20378
  (eval "$ac_try") 2>&5
 
20379
  ac_status=$?
 
20380
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20381
  (exit $ac_status); }; } &&
 
20382
         { ac_try='test -s conftest.$ac_objext'
 
20383
  { (case "(($ac_try" in
 
20384
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20385
  *) ac_try_echo=$ac_try;;
 
20386
esac
 
20387
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20388
  (eval "$ac_try") 2>&5
 
20389
  ac_status=$?
 
20390
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20391
  (exit $ac_status); }; }; then
 
20392
  ac_cv_c_inline=$ac_kw
 
20393
else
 
20394
  echo "$as_me: failed program was:" >&5
 
20395
sed 's/^/| /' conftest.$ac_ext >&5
 
20396
 
 
20397
 
 
20398
fi
 
20399
 
 
20400
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20401
  test "$ac_cv_c_inline" != no && break
 
20402
done
 
20403
 
 
20404
fi
 
20405
{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
 
20406
echo "${ECHO_T}$ac_cv_c_inline" >&6; }
 
20407
 
 
20408
 
 
20409
case $ac_cv_c_inline in
 
20410
  inline | yes) ;;
 
20411
  *)
 
20412
    case $ac_cv_c_inline in
 
20413
      no) ac_val=;;
 
20414
      *) ac_val=$ac_cv_c_inline;;
 
20415
    esac
 
20416
    cat >>confdefs.h <<_ACEOF
 
20417
#ifndef __cplusplus
 
20418
#define inline $ac_val
 
20419
#endif
 
20420
_ACEOF
 
20421
    ;;
 
20422
esac
 
20423
 
 
20424
{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
 
20425
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
 
20426
if test "${ac_cv_header_time+set}" = set; then
 
20427
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20428
else
 
20429
  cat >conftest.$ac_ext <<_ACEOF
 
20430
/* confdefs.h.  */
 
20431
_ACEOF
 
20432
cat confdefs.h >>conftest.$ac_ext
 
20433
cat >>conftest.$ac_ext <<_ACEOF
 
20434
/* end confdefs.h.  */
 
20435
#include <sys/types.h>
 
20436
#include <sys/time.h>
 
20437
#include <time.h>
 
20438
 
 
20439
int
 
20440
main ()
 
20441
{
 
20442
if ((struct tm *) 0)
 
20443
return 0;
 
20444
  ;
 
20445
  return 0;
 
20446
}
 
20447
_ACEOF
 
20448
rm -f conftest.$ac_objext
 
20449
if { (ac_try="$ac_compile"
 
20450
case "(($ac_try" in
 
20451
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20452
  *) ac_try_echo=$ac_try;;
 
20453
esac
 
20454
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20455
  (eval "$ac_compile") 2>conftest.er1
 
20456
  ac_status=$?
 
20457
  grep -v '^ *+' conftest.er1 >conftest.err
 
20458
  rm -f conftest.er1
 
20459
  cat conftest.err >&5
 
20460
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20461
  (exit $ac_status); } &&
 
20462
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
20463
  { (case "(($ac_try" in
 
20464
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20465
  *) ac_try_echo=$ac_try;;
 
20466
esac
 
20467
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20468
  (eval "$ac_try") 2>&5
 
20469
  ac_status=$?
 
20470
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20471
  (exit $ac_status); }; } &&
 
20472
         { ac_try='test -s conftest.$ac_objext'
 
20473
  { (case "(($ac_try" in
 
20474
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20475
  *) ac_try_echo=$ac_try;;
 
20476
esac
 
20477
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20478
  (eval "$ac_try") 2>&5
 
20479
  ac_status=$?
 
20480
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20481
  (exit $ac_status); }; }; then
 
20482
  ac_cv_header_time=yes
 
20483
else
 
20484
  echo "$as_me: failed program was:" >&5
 
20485
sed 's/^/| /' conftest.$ac_ext >&5
 
20486
 
 
20487
        ac_cv_header_time=no
 
20488
fi
 
20489
 
 
20490
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20491
fi
 
20492
{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
 
20493
echo "${ECHO_T}$ac_cv_header_time" >&6; }
 
20494
if test $ac_cv_header_time = yes; then
 
20495
 
 
20496
cat >>confdefs.h <<\_ACEOF
 
20497
#define TIME_WITH_SYS_TIME 1
 
20498
_ACEOF
 
20499
 
 
20500
fi
 
20501
 
 
20502
{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
 
20503
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
 
20504
if test "${ac_cv_c_bigendian+set}" = set; then
 
20505
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20506
else
 
20507
  # See if sys/param.h defines the BYTE_ORDER macro.
 
20508
cat >conftest.$ac_ext <<_ACEOF
 
20509
/* confdefs.h.  */
 
20510
_ACEOF
 
20511
cat confdefs.h >>conftest.$ac_ext
 
20512
cat >>conftest.$ac_ext <<_ACEOF
 
20513
/* end confdefs.h.  */
 
20514
#include <sys/types.h>
 
20515
#include <sys/param.h>
 
20516
 
 
20517
int
 
20518
main ()
 
20519
{
 
20520
#if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
 
20521
        && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
 
20522
 bogus endian macros
 
20523
#endif
 
20524
 
 
20525
  ;
 
20526
  return 0;
 
20527
}
 
20528
_ACEOF
 
20529
rm -f conftest.$ac_objext
 
20530
if { (ac_try="$ac_compile"
 
20531
case "(($ac_try" in
 
20532
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20533
  *) ac_try_echo=$ac_try;;
 
20534
esac
 
20535
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20536
  (eval "$ac_compile") 2>conftest.er1
 
20537
  ac_status=$?
 
20538
  grep -v '^ *+' conftest.er1 >conftest.err
 
20539
  rm -f conftest.er1
 
20540
  cat conftest.err >&5
 
20541
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20542
  (exit $ac_status); } &&
 
20543
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
20544
  { (case "(($ac_try" in
 
20545
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20546
  *) ac_try_echo=$ac_try;;
 
20547
esac
 
20548
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20549
  (eval "$ac_try") 2>&5
 
20550
  ac_status=$?
 
20551
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20552
  (exit $ac_status); }; } &&
 
20553
         { ac_try='test -s conftest.$ac_objext'
 
20554
  { (case "(($ac_try" in
 
20555
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20556
  *) ac_try_echo=$ac_try;;
 
20557
esac
 
20558
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20559
  (eval "$ac_try") 2>&5
 
20560
  ac_status=$?
 
20561
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20562
  (exit $ac_status); }; }; then
 
20563
  # It does; now see whether it defined to BIG_ENDIAN or not.
 
20564
cat >conftest.$ac_ext <<_ACEOF
 
20565
/* confdefs.h.  */
 
20566
_ACEOF
 
20567
cat confdefs.h >>conftest.$ac_ext
 
20568
cat >>conftest.$ac_ext <<_ACEOF
 
20569
/* end confdefs.h.  */
 
20570
#include <sys/types.h>
 
20571
#include <sys/param.h>
 
20572
 
 
20573
int
 
20574
main ()
 
20575
{
 
20576
#if BYTE_ORDER != BIG_ENDIAN
 
20577
 not big endian
 
20578
#endif
 
20579
 
 
20580
  ;
 
20581
  return 0;
 
20582
}
 
20583
_ACEOF
 
20584
rm -f conftest.$ac_objext
 
20585
if { (ac_try="$ac_compile"
 
20586
case "(($ac_try" in
 
20587
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20588
  *) ac_try_echo=$ac_try;;
 
20589
esac
 
20590
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20591
  (eval "$ac_compile") 2>conftest.er1
 
20592
  ac_status=$?
 
20593
  grep -v '^ *+' conftest.er1 >conftest.err
 
20594
  rm -f conftest.er1
 
20595
  cat conftest.err >&5
 
20596
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20597
  (exit $ac_status); } &&
 
20598
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
20599
  { (case "(($ac_try" in
 
20600
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20601
  *) ac_try_echo=$ac_try;;
 
20602
esac
 
20603
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20604
  (eval "$ac_try") 2>&5
 
20605
  ac_status=$?
 
20606
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20607
  (exit $ac_status); }; } &&
 
20608
         { ac_try='test -s conftest.$ac_objext'
 
20609
  { (case "(($ac_try" in
 
20610
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20611
  *) ac_try_echo=$ac_try;;
 
20612
esac
 
20613
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20614
  (eval "$ac_try") 2>&5
 
20615
  ac_status=$?
 
20616
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20617
  (exit $ac_status); }; }; then
 
20618
  ac_cv_c_bigendian=yes
 
20619
else
 
20620
  echo "$as_me: failed program was:" >&5
 
20621
sed 's/^/| /' conftest.$ac_ext >&5
 
20622
 
 
20623
        ac_cv_c_bigendian=no
 
20624
fi
 
20625
 
 
20626
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20627
else
 
20628
  echo "$as_me: failed program was:" >&5
 
20629
sed 's/^/| /' conftest.$ac_ext >&5
 
20630
 
 
20631
        # It does not; compile a test program.
 
20632
if test "$cross_compiling" = yes; then
 
20633
  # try to guess the endianness by grepping values into an object file
 
20634
  ac_cv_c_bigendian=unknown
 
20635
  cat >conftest.$ac_ext <<_ACEOF
 
20636
/* confdefs.h.  */
 
20637
_ACEOF
 
20638
cat confdefs.h >>conftest.$ac_ext
 
20639
cat >>conftest.$ac_ext <<_ACEOF
 
20640
/* end confdefs.h.  */
 
20641
short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
 
20642
short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
 
20643
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
 
20644
short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
 
20645
short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
 
20646
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
 
20647
int
 
20648
main ()
 
20649
{
 
20650
 _ascii (); _ebcdic ();
 
20651
  ;
 
20652
  return 0;
 
20653
}
 
20654
_ACEOF
 
20655
rm -f conftest.$ac_objext
 
20656
if { (ac_try="$ac_compile"
 
20657
case "(($ac_try" in
 
20658
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20659
  *) ac_try_echo=$ac_try;;
 
20660
esac
 
20661
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20662
  (eval "$ac_compile") 2>conftest.er1
 
20663
  ac_status=$?
 
20664
  grep -v '^ *+' conftest.er1 >conftest.err
 
20665
  rm -f conftest.er1
 
20666
  cat conftest.err >&5
 
20667
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20668
  (exit $ac_status); } &&
 
20669
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
20670
  { (case "(($ac_try" in
 
20671
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20672
  *) ac_try_echo=$ac_try;;
 
20673
esac
 
20674
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20675
  (eval "$ac_try") 2>&5
 
20676
  ac_status=$?
 
20677
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20678
  (exit $ac_status); }; } &&
 
20679
         { ac_try='test -s conftest.$ac_objext'
 
20680
  { (case "(($ac_try" in
 
20681
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20682
  *) ac_try_echo=$ac_try;;
 
20683
esac
 
20684
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20685
  (eval "$ac_try") 2>&5
 
20686
  ac_status=$?
 
20687
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20688
  (exit $ac_status); }; }; then
 
20689
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
 
20690
  ac_cv_c_bigendian=yes
 
20691
fi
 
20692
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
 
20693
  if test "$ac_cv_c_bigendian" = unknown; then
 
20694
    ac_cv_c_bigendian=no
 
20695
  else
 
20696
    # finding both strings is unlikely to happen, but who knows?
 
20697
    ac_cv_c_bigendian=unknown
 
20698
  fi
 
20699
fi
 
20700
else
 
20701
  echo "$as_me: failed program was:" >&5
 
20702
sed 's/^/| /' conftest.$ac_ext >&5
 
20703
 
 
20704
 
 
20705
fi
 
20706
 
 
20707
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20708
else
 
20709
  cat >conftest.$ac_ext <<_ACEOF
 
20710
/* confdefs.h.  */
 
20711
_ACEOF
 
20712
cat confdefs.h >>conftest.$ac_ext
 
20713
cat >>conftest.$ac_ext <<_ACEOF
 
20714
/* end confdefs.h.  */
 
20715
$ac_includes_default
 
20716
int
 
20717
main ()
 
20718
{
 
20719
 
 
20720
  /* Are we little or big endian?  From Harbison&Steele.  */
 
20721
  union
 
20722
  {
 
20723
    long int l;
 
20724
    char c[sizeof (long int)];
 
20725
  } u;
 
20726
  u.l = 1;
 
20727
  return u.c[sizeof (long int) - 1] == 1;
 
20728
 
 
20729
  ;
 
20730
  return 0;
 
20731
}
 
20732
_ACEOF
 
20733
rm -f conftest$ac_exeext
 
20734
if { (ac_try="$ac_link"
 
20735
case "(($ac_try" in
 
20736
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20737
  *) ac_try_echo=$ac_try;;
 
20738
esac
 
20739
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20740
  (eval "$ac_link") 2>&5
 
20741
  ac_status=$?
 
20742
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20743
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
20744
  { (case "(($ac_try" in
 
20745
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20746
  *) ac_try_echo=$ac_try;;
 
20747
esac
 
20748
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20749
  (eval "$ac_try") 2>&5
 
20750
  ac_status=$?
 
20751
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20752
  (exit $ac_status); }; }; then
 
20753
  ac_cv_c_bigendian=no
 
20754
else
 
20755
  echo "$as_me: program exited with status $ac_status" >&5
 
20756
echo "$as_me: failed program was:" >&5
 
20757
sed 's/^/| /' conftest.$ac_ext >&5
 
20758
 
 
20759
( exit $ac_status )
 
20760
ac_cv_c_bigendian=yes
 
20761
fi
 
20762
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
20763
fi
 
20764
 
 
20765
 
 
20766
fi
 
20767
 
 
20768
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20769
fi
 
20770
{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
 
20771
echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
 
20772
case $ac_cv_c_bigendian in
 
20773
  yes)
 
20774
 
 
20775
cat >>confdefs.h <<\_ACEOF
 
20776
#define WORDS_BIGENDIAN 1
 
20777
_ACEOF
 
20778
 ;;
 
20779
  no)
 
20780
     ;;
 
20781
  *)
 
20782
    { { echo "$as_me:$LINENO: error: unknown endianness
 
20783
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
 
20784
echo "$as_me: error: unknown endianness
 
20785
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
 
20786
   { (exit 1); exit 1; }; } ;;
 
20787
esac
 
20788
 
 
20789
if test x$ac_cv_c_bigendian = xyes ; then
 
20790
        CFLAGS="$CFLAGS -D_BIGENDIAN "
 
20791
fi
 
20792
 
 
20793
if test $GCC = yes && test $wall_werror = yes;  then
 
20794
        CFLAGS="$CFLAGS -Werror "
 
20795
fi
 
20796
 
 
20797
case $OS in
 
20798
  darwin*)
 
20799
     MSPLUGINS_CFLAGS=""
 
20800
     MSPLUGINS_LIBS="-dynamiclib"
 
20801
     ;;
 
20802
  *)
 
20803
     MSPLUGINS_CFLAGS="-pthread"
 
20804
     MSPLUGINS_LIBS="-shared -pthread"
 
20805
     CFLAGS="$CFLAGS -pthread -D_REENTRANT"
 
20806
     LIBS="$LIBS -pthread -lpthread"
 
20807
     ;;
 
20808
esac
 
20809
 
 
20810
 
 
20811
 
 
20812
 
 
20813
{ echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
 
20814
echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6; }
 
20815
if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
 
20816
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20817
else
 
20818
  ac_check_lib_save_LIBS=$LIBS
 
20819
LIBS="-lrt  $LIBS"
 
20820
cat >conftest.$ac_ext <<_ACEOF
 
20821
/* confdefs.h.  */
 
20822
_ACEOF
 
20823
cat confdefs.h >>conftest.$ac_ext
 
20824
cat >>conftest.$ac_ext <<_ACEOF
 
20825
/* end confdefs.h.  */
 
20826
 
 
20827
/* Override any GCC internal prototype to avoid an error.
 
20828
   Use char because int might match the return type of a GCC
 
20829
   builtin and then its argument prototype would still apply.  */
 
20830
#ifdef __cplusplus
 
20831
extern "C"
 
20832
#endif
 
20833
char clock_gettime ();
 
20834
int
 
20835
main ()
 
20836
{
 
20837
return clock_gettime ();
 
20838
  ;
 
20839
  return 0;
 
20840
}
 
20841
_ACEOF
 
20842
rm -f conftest.$ac_objext conftest$ac_exeext
 
20843
if { (ac_try="$ac_link"
 
20844
case "(($ac_try" in
 
20845
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20846
  *) ac_try_echo=$ac_try;;
 
20847
esac
 
20848
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20849
  (eval "$ac_link") 2>conftest.er1
 
20850
  ac_status=$?
 
20851
  grep -v '^ *+' conftest.er1 >conftest.err
 
20852
  rm -f conftest.er1
 
20853
  cat conftest.err >&5
 
20854
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20855
  (exit $ac_status); } &&
 
20856
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
20857
  { (case "(($ac_try" in
 
20858
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20859
  *) ac_try_echo=$ac_try;;
 
20860
esac
 
20861
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20862
  (eval "$ac_try") 2>&5
 
20863
  ac_status=$?
 
20864
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20865
  (exit $ac_status); }; } &&
 
20866
         { ac_try='test -s conftest$ac_exeext'
 
20867
  { (case "(($ac_try" in
 
20868
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20869
  *) ac_try_echo=$ac_try;;
 
20870
esac
 
20871
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20872
  (eval "$ac_try") 2>&5
 
20873
  ac_status=$?
 
20874
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20875
  (exit $ac_status); }; }; then
 
20876
  ac_cv_lib_rt_clock_gettime=yes
 
20877
else
 
20878
  echo "$as_me: failed program was:" >&5
 
20879
sed 's/^/| /' conftest.$ac_ext >&5
 
20880
 
 
20881
        ac_cv_lib_rt_clock_gettime=no
 
20882
fi
 
20883
 
 
20884
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
20885
      conftest$ac_exeext conftest.$ac_ext
 
20886
LIBS=$ac_check_lib_save_LIBS
 
20887
fi
 
20888
{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
 
20889
echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6; }
 
20890
if test $ac_cv_lib_rt_clock_gettime = yes; then
 
20891
  LIBS="$LIBS -lrt"
 
20892
fi
 
20893
 
 
20894
 
 
20895
 
 
20896
found_sound=no
 
20897
 
 
20898
 
 
20899
 
 
20900
 
 
20901
 
 
20902
for ac_header in soundcard.h sys/soundcard.h machine/soundcard.h sys/audio.h
 
20903
do
 
20904
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
20905
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
20906
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20907
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
20908
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
20909
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20910
fi
 
20911
ac_res=`eval echo '${'$as_ac_Header'}'`
 
20912
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
20913
echo "${ECHO_T}$ac_res" >&6; }
 
20914
else
 
20915
  # Is the header compilable?
 
20916
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
20917
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
20918
cat >conftest.$ac_ext <<_ACEOF
 
20919
/* confdefs.h.  */
 
20920
_ACEOF
 
20921
cat confdefs.h >>conftest.$ac_ext
 
20922
cat >>conftest.$ac_ext <<_ACEOF
 
20923
/* end confdefs.h.  */
 
20924
$ac_includes_default
 
20925
#include <$ac_header>
 
20926
_ACEOF
 
20927
rm -f conftest.$ac_objext
 
20928
if { (ac_try="$ac_compile"
 
20929
case "(($ac_try" in
 
20930
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20931
  *) ac_try_echo=$ac_try;;
 
20932
esac
 
20933
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20934
  (eval "$ac_compile") 2>conftest.er1
 
20935
  ac_status=$?
 
20936
  grep -v '^ *+' conftest.er1 >conftest.err
 
20937
  rm -f conftest.er1
 
20938
  cat conftest.err >&5
 
20939
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20940
  (exit $ac_status); } &&
 
20941
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
20942
  { (case "(($ac_try" in
 
20943
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20944
  *) ac_try_echo=$ac_try;;
 
20945
esac
 
20946
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20947
  (eval "$ac_try") 2>&5
 
20948
  ac_status=$?
 
20949
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20950
  (exit $ac_status); }; } &&
 
20951
         { ac_try='test -s conftest.$ac_objext'
 
20952
  { (case "(($ac_try" in
 
20953
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20954
  *) ac_try_echo=$ac_try;;
 
20955
esac
 
20956
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20957
  (eval "$ac_try") 2>&5
 
20958
  ac_status=$?
 
20959
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20960
  (exit $ac_status); }; }; then
 
20961
  ac_header_compiler=yes
 
20962
else
 
20963
  echo "$as_me: failed program was:" >&5
 
20964
sed 's/^/| /' conftest.$ac_ext >&5
 
20965
 
 
20966
        ac_header_compiler=no
 
20967
fi
 
20968
 
 
20969
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20970
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
20971
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
20972
 
 
20973
# Is the header present?
 
20974
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
20975
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
20976
cat >conftest.$ac_ext <<_ACEOF
 
20977
/* confdefs.h.  */
 
20978
_ACEOF
 
20979
cat confdefs.h >>conftest.$ac_ext
 
20980
cat >>conftest.$ac_ext <<_ACEOF
 
20981
/* end confdefs.h.  */
 
20982
#include <$ac_header>
 
20983
_ACEOF
 
20984
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
20985
case "(($ac_try" in
 
20986
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20987
  *) ac_try_echo=$ac_try;;
 
20988
esac
 
20989
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20990
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
20991
  ac_status=$?
 
20992
  grep -v '^ *+' conftest.er1 >conftest.err
 
20993
  rm -f conftest.er1
 
20994
  cat conftest.err >&5
 
20995
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20996
  (exit $ac_status); } >/dev/null; then
 
20997
  if test -s conftest.err; then
 
20998
    ac_cpp_err=$ac_c_preproc_warn_flag
 
20999
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
21000
  else
 
21001
    ac_cpp_err=
 
21002
  fi
 
21003
else
 
21004
  ac_cpp_err=yes
 
21005
fi
 
21006
if test -z "$ac_cpp_err"; then
 
21007
  ac_header_preproc=yes
 
21008
else
 
21009
  echo "$as_me: failed program was:" >&5
 
21010
sed 's/^/| /' conftest.$ac_ext >&5
 
21011
 
 
21012
  ac_header_preproc=no
 
21013
fi
 
21014
 
 
21015
rm -f conftest.err conftest.$ac_ext
 
21016
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
21017
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
21018
 
 
21019
# So?  What about this header?
 
21020
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
21021
  yes:no: )
 
21022
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
21023
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
21024
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
21025
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
21026
    ac_header_preproc=yes
 
21027
    ;;
 
21028
  no:yes:* )
 
21029
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
21030
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
21031
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
21032
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
21033
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
21034
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
21035
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
21036
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
21037
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
21038
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
21039
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
21040
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
21041
 
 
21042
    ;;
 
21043
esac
 
21044
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
21045
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
21046
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
21047
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21048
else
 
21049
  eval "$as_ac_Header=\$ac_header_preproc"
 
21050
fi
 
21051
ac_res=`eval echo '${'$as_ac_Header'}'`
 
21052
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
21053
echo "${ECHO_T}$ac_res" >&6; }
 
21054
 
 
21055
fi
 
21056
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
21057
  cat >>confdefs.h <<_ACEOF
 
21058
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
21059
_ACEOF
 
21060
 
 
21061
fi
 
21062
 
 
21063
done
 
21064
 
 
21065
if test "${ac_cv_header_sys_soundcard_h}" = "yes" || \
 
21066
        test "${ac_cv_header_soundcard_h}" = "yes" || \
 
21067
                test "${ac_cv_header_sys_audio_h}" = "yes" || \
 
21068
        test "${ac_cv_header_machine_soundcard_h}" = "yes"; then
 
21069
        found_sound=yes
 
21070
fi
 
21071
 
 
21072
 
 
21073
 
 
21074
if test x$found_sound = xyes; then
 
21075
  BUILD_OSS_TRUE=
 
21076
  BUILD_OSS_FALSE='#'
 
21077
else
 
21078
  BUILD_OSS_TRUE='#'
 
21079
  BUILD_OSS_FALSE=
 
21080
fi
 
21081
 
 
21082
 
 
21083
# Check whether --enable-alsa was given.
 
21084
if test "${enable_alsa+set}" = set; then
 
21085
  enableval=$enable_alsa; case "${enableval}" in
 
21086
        yes) alsa=true ;;
 
21087
        no)  alsa=false ;;
 
21088
        *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-alsa" >&5
 
21089
echo "$as_me: error: bad value ${enableval} for --enable-alsa" >&2;}
 
21090
   { (exit 1); exit 1; }; } ;;
 
21091
      esac
 
21092
else
 
21093
  alsa=true
 
21094
fi
 
21095
 
 
21096
 
 
21097
if test "$alsa" = "true"; then
 
21098
 
 
21099
for ac_header in alsa/asoundlib.h
 
21100
do
 
21101
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
21102
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
21103
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
21104
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
21105
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
21106
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21107
fi
 
21108
ac_res=`eval echo '${'$as_ac_Header'}'`
 
21109
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
21110
echo "${ECHO_T}$ac_res" >&6; }
 
21111
else
 
21112
  # Is the header compilable?
 
21113
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
21114
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
21115
cat >conftest.$ac_ext <<_ACEOF
 
21116
/* confdefs.h.  */
 
21117
_ACEOF
 
21118
cat confdefs.h >>conftest.$ac_ext
 
21119
cat >>conftest.$ac_ext <<_ACEOF
 
21120
/* end confdefs.h.  */
 
21121
$ac_includes_default
 
21122
#include <$ac_header>
 
21123
_ACEOF
 
21124
rm -f conftest.$ac_objext
 
21125
if { (ac_try="$ac_compile"
 
21126
case "(($ac_try" in
 
21127
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21128
  *) ac_try_echo=$ac_try;;
 
21129
esac
 
21130
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21131
  (eval "$ac_compile") 2>conftest.er1
 
21132
  ac_status=$?
 
21133
  grep -v '^ *+' conftest.er1 >conftest.err
 
21134
  rm -f conftest.er1
 
21135
  cat conftest.err >&5
 
21136
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21137
  (exit $ac_status); } &&
 
21138
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
21139
  { (case "(($ac_try" in
 
21140
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21141
  *) ac_try_echo=$ac_try;;
 
21142
esac
 
21143
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21144
  (eval "$ac_try") 2>&5
 
21145
  ac_status=$?
 
21146
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21147
  (exit $ac_status); }; } &&
 
21148
         { ac_try='test -s conftest.$ac_objext'
 
21149
  { (case "(($ac_try" in
 
21150
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21151
  *) ac_try_echo=$ac_try;;
 
21152
esac
 
21153
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21154
  (eval "$ac_try") 2>&5
 
21155
  ac_status=$?
 
21156
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21157
  (exit $ac_status); }; }; then
 
21158
  ac_header_compiler=yes
 
21159
else
 
21160
  echo "$as_me: failed program was:" >&5
 
21161
sed 's/^/| /' conftest.$ac_ext >&5
 
21162
 
 
21163
        ac_header_compiler=no
 
21164
fi
 
21165
 
 
21166
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21167
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
21168
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
21169
 
 
21170
# Is the header present?
 
21171
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
21172
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
21173
cat >conftest.$ac_ext <<_ACEOF
 
21174
/* confdefs.h.  */
 
21175
_ACEOF
 
21176
cat confdefs.h >>conftest.$ac_ext
 
21177
cat >>conftest.$ac_ext <<_ACEOF
 
21178
/* end confdefs.h.  */
 
21179
#include <$ac_header>
 
21180
_ACEOF
 
21181
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
21182
case "(($ac_try" in
 
21183
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21184
  *) ac_try_echo=$ac_try;;
 
21185
esac
 
21186
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21187
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
21188
  ac_status=$?
 
21189
  grep -v '^ *+' conftest.er1 >conftest.err
 
21190
  rm -f conftest.er1
 
21191
  cat conftest.err >&5
 
21192
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21193
  (exit $ac_status); } >/dev/null; then
 
21194
  if test -s conftest.err; then
 
21195
    ac_cpp_err=$ac_c_preproc_warn_flag
 
21196
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
21197
  else
 
21198
    ac_cpp_err=
 
21199
  fi
 
21200
else
 
21201
  ac_cpp_err=yes
 
21202
fi
 
21203
if test -z "$ac_cpp_err"; then
 
21204
  ac_header_preproc=yes
 
21205
else
 
21206
  echo "$as_me: failed program was:" >&5
 
21207
sed 's/^/| /' conftest.$ac_ext >&5
 
21208
 
 
21209
  ac_header_preproc=no
 
21210
fi
 
21211
 
 
21212
rm -f conftest.err conftest.$ac_ext
 
21213
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
21214
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
21215
 
 
21216
# So?  What about this header?
 
21217
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
21218
  yes:no: )
 
21219
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
21220
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
21221
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
21222
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
21223
    ac_header_preproc=yes
 
21224
    ;;
 
21225
  no:yes:* )
 
21226
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
21227
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
21228
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
21229
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
21230
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
21231
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
21232
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
21233
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
21234
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
21235
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
21236
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
21237
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
21238
 
 
21239
    ;;
 
21240
esac
 
21241
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
21242
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
21243
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
21244
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21245
else
 
21246
  eval "$as_ac_Header=\$ac_header_preproc"
 
21247
fi
 
21248
ac_res=`eval echo '${'$as_ac_Header'}'`
 
21249
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
21250
echo "${ECHO_T}$ac_res" >&6; }
 
21251
 
 
21252
fi
 
21253
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
21254
  cat >>confdefs.h <<_ACEOF
 
21255
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
21256
_ACEOF
 
21257
  { echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
 
21258
echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6; }
 
21259
if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
 
21260
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21261
else
 
21262
  ac_check_lib_save_LIBS=$LIBS
 
21263
LIBS="-lasound  $LIBS"
 
21264
cat >conftest.$ac_ext <<_ACEOF
 
21265
/* confdefs.h.  */
 
21266
_ACEOF
 
21267
cat confdefs.h >>conftest.$ac_ext
 
21268
cat >>conftest.$ac_ext <<_ACEOF
 
21269
/* end confdefs.h.  */
 
21270
 
 
21271
/* Override any GCC internal prototype to avoid an error.
 
21272
   Use char because int might match the return type of a GCC
 
21273
   builtin and then its argument prototype would still apply.  */
 
21274
#ifdef __cplusplus
 
21275
extern "C"
 
21276
#endif
 
21277
char snd_pcm_open ();
 
21278
int
 
21279
main ()
 
21280
{
 
21281
return snd_pcm_open ();
 
21282
  ;
 
21283
  return 0;
 
21284
}
 
21285
_ACEOF
 
21286
rm -f conftest.$ac_objext conftest$ac_exeext
 
21287
if { (ac_try="$ac_link"
 
21288
case "(($ac_try" in
 
21289
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21290
  *) ac_try_echo=$ac_try;;
 
21291
esac
 
21292
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21293
  (eval "$ac_link") 2>conftest.er1
 
21294
  ac_status=$?
 
21295
  grep -v '^ *+' conftest.er1 >conftest.err
 
21296
  rm -f conftest.er1
 
21297
  cat conftest.err >&5
 
21298
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21299
  (exit $ac_status); } &&
 
21300
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
21301
  { (case "(($ac_try" in
 
21302
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21303
  *) ac_try_echo=$ac_try;;
 
21304
esac
 
21305
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21306
  (eval "$ac_try") 2>&5
 
21307
  ac_status=$?
 
21308
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21309
  (exit $ac_status); }; } &&
 
21310
         { ac_try='test -s conftest$ac_exeext'
 
21311
  { (case "(($ac_try" in
 
21312
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21313
  *) ac_try_echo=$ac_try;;
 
21314
esac
 
21315
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21316
  (eval "$ac_try") 2>&5
 
21317
  ac_status=$?
 
21318
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21319
  (exit $ac_status); }; }; then
 
21320
  ac_cv_lib_asound_snd_pcm_open=yes
 
21321
else
 
21322
  echo "$as_me: failed program was:" >&5
 
21323
sed 's/^/| /' conftest.$ac_ext >&5
 
21324
 
 
21325
        ac_cv_lib_asound_snd_pcm_open=no
 
21326
fi
 
21327
 
 
21328
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
21329
      conftest$ac_exeext conftest.$ac_ext
 
21330
LIBS=$ac_check_lib_save_LIBS
 
21331
fi
 
21332
{ echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
 
21333
echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6; }
 
21334
if test $ac_cv_lib_asound_snd_pcm_open = yes; then
 
21335
   ALSA_LIBS="-lasound"
 
21336
                          found_sound=yes
 
21337
 
 
21338
cat >>confdefs.h <<\_ACEOF
 
21339
#define __ALSA_ENABLED__ 1
 
21340
_ACEOF
 
21341
 
 
21342
                        alsa_enabled=true
 
21343
 
 
21344
fi
 
21345
 
 
21346
 
 
21347
 
 
21348
fi
 
21349
 
 
21350
done
 
21351
 
 
21352
fi
 
21353
 
 
21354
 
 
21355
 
 
21356
 
 
21357
if test x$alsa_enabled = xtrue; then
 
21358
  BUILD_ALSA_TRUE=
 
21359
  BUILD_ALSA_FALSE='#'
 
21360
else
 
21361
  BUILD_ALSA_TRUE='#'
 
21362
  BUILD_ALSA_FALSE=
 
21363
fi
 
21364
 
 
21365
 
 
21366
 
 
21367
for ac_header in kde/artsc/artsc.h
 
21368
do
 
21369
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
21370
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
21371
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
21372
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
21373
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
21374
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21375
fi
 
21376
ac_res=`eval echo '${'$as_ac_Header'}'`
 
21377
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
21378
echo "${ECHO_T}$ac_res" >&6; }
 
21379
else
 
21380
  # Is the header compilable?
 
21381
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
21382
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
21383
cat >conftest.$ac_ext <<_ACEOF
 
21384
/* confdefs.h.  */
 
21385
_ACEOF
 
21386
cat confdefs.h >>conftest.$ac_ext
 
21387
cat >>conftest.$ac_ext <<_ACEOF
 
21388
/* end confdefs.h.  */
 
21389
$ac_includes_default
 
21390
#include <$ac_header>
 
21391
_ACEOF
 
21392
rm -f conftest.$ac_objext
 
21393
if { (ac_try="$ac_compile"
 
21394
case "(($ac_try" in
 
21395
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21396
  *) ac_try_echo=$ac_try;;
 
21397
esac
 
21398
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21399
  (eval "$ac_compile") 2>conftest.er1
 
21400
  ac_status=$?
 
21401
  grep -v '^ *+' conftest.er1 >conftest.err
 
21402
  rm -f conftest.er1
 
21403
  cat conftest.err >&5
 
21404
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21405
  (exit $ac_status); } &&
 
21406
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
21407
  { (case "(($ac_try" in
 
21408
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21409
  *) ac_try_echo=$ac_try;;
 
21410
esac
 
21411
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21412
  (eval "$ac_try") 2>&5
 
21413
  ac_status=$?
 
21414
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21415
  (exit $ac_status); }; } &&
 
21416
         { ac_try='test -s conftest.$ac_objext'
 
21417
  { (case "(($ac_try" in
 
21418
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21419
  *) ac_try_echo=$ac_try;;
 
21420
esac
 
21421
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21422
  (eval "$ac_try") 2>&5
 
21423
  ac_status=$?
 
21424
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21425
  (exit $ac_status); }; }; then
 
21426
  ac_header_compiler=yes
 
21427
else
 
21428
  echo "$as_me: failed program was:" >&5
 
21429
sed 's/^/| /' conftest.$ac_ext >&5
 
21430
 
 
21431
        ac_header_compiler=no
 
21432
fi
 
21433
 
 
21434
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21435
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
21436
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
21437
 
 
21438
# Is the header present?
 
21439
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
21440
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
21441
cat >conftest.$ac_ext <<_ACEOF
 
21442
/* confdefs.h.  */
 
21443
_ACEOF
 
21444
cat confdefs.h >>conftest.$ac_ext
 
21445
cat >>conftest.$ac_ext <<_ACEOF
 
21446
/* end confdefs.h.  */
 
21447
#include <$ac_header>
 
21448
_ACEOF
 
21449
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
21450
case "(($ac_try" in
 
21451
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21452
  *) ac_try_echo=$ac_try;;
 
21453
esac
 
21454
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21455
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
21456
  ac_status=$?
 
21457
  grep -v '^ *+' conftest.er1 >conftest.err
 
21458
  rm -f conftest.er1
 
21459
  cat conftest.err >&5
 
21460
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21461
  (exit $ac_status); } >/dev/null; then
 
21462
  if test -s conftest.err; then
 
21463
    ac_cpp_err=$ac_c_preproc_warn_flag
 
21464
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
21465
  else
 
21466
    ac_cpp_err=
 
21467
  fi
 
21468
else
 
21469
  ac_cpp_err=yes
 
21470
fi
 
21471
if test -z "$ac_cpp_err"; then
 
21472
  ac_header_preproc=yes
 
21473
else
 
21474
  echo "$as_me: failed program was:" >&5
 
21475
sed 's/^/| /' conftest.$ac_ext >&5
 
21476
 
 
21477
  ac_header_preproc=no
 
21478
fi
 
21479
 
 
21480
rm -f conftest.err conftest.$ac_ext
 
21481
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
21482
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
21483
 
 
21484
# So?  What about this header?
 
21485
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
21486
  yes:no: )
 
21487
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
21488
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
21489
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
21490
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
21491
    ac_header_preproc=yes
 
21492
    ;;
 
21493
  no:yes:* )
 
21494
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
21495
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
21496
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
21497
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
21498
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
21499
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
21500
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
21501
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
21502
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
21503
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
21504
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
21505
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
21506
 
 
21507
    ;;
 
21508
esac
 
21509
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
21510
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
21511
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
21512
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21513
else
 
21514
  eval "$as_ac_Header=\$ac_header_preproc"
 
21515
fi
 
21516
ac_res=`eval echo '${'$as_ac_Header'}'`
 
21517
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
21518
echo "${ECHO_T}$ac_res" >&6; }
 
21519
 
 
21520
fi
 
21521
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
21522
  cat >>confdefs.h <<_ACEOF
 
21523
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
21524
_ACEOF
 
21525
  { echo "$as_me:$LINENO: checking for arts_init in -lartsc" >&5
 
21526
echo $ECHO_N "checking for arts_init in -lartsc... $ECHO_C" >&6; }
 
21527
if test "${ac_cv_lib_artsc_arts_init+set}" = set; then
 
21528
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21529
else
 
21530
  ac_check_lib_save_LIBS=$LIBS
 
21531
LIBS="-lartsc  $LIBS"
 
21532
cat >conftest.$ac_ext <<_ACEOF
 
21533
/* confdefs.h.  */
 
21534
_ACEOF
 
21535
cat confdefs.h >>conftest.$ac_ext
 
21536
cat >>conftest.$ac_ext <<_ACEOF
 
21537
/* end confdefs.h.  */
 
21538
 
 
21539
/* Override any GCC internal prototype to avoid an error.
 
21540
   Use char because int might match the return type of a GCC
 
21541
   builtin and then its argument prototype would still apply.  */
 
21542
#ifdef __cplusplus
 
21543
extern "C"
 
21544
#endif
 
21545
char arts_init ();
 
21546
int
 
21547
main ()
 
21548
{
 
21549
return arts_init ();
 
21550
  ;
 
21551
  return 0;
 
21552
}
 
21553
_ACEOF
 
21554
rm -f conftest.$ac_objext conftest$ac_exeext
 
21555
if { (ac_try="$ac_link"
 
21556
case "(($ac_try" in
 
21557
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21558
  *) ac_try_echo=$ac_try;;
 
21559
esac
 
21560
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21561
  (eval "$ac_link") 2>conftest.er1
 
21562
  ac_status=$?
 
21563
  grep -v '^ *+' conftest.er1 >conftest.err
 
21564
  rm -f conftest.er1
 
21565
  cat conftest.err >&5
 
21566
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21567
  (exit $ac_status); } &&
 
21568
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
21569
  { (case "(($ac_try" in
 
21570
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21571
  *) ac_try_echo=$ac_try;;
 
21572
esac
 
21573
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21574
  (eval "$ac_try") 2>&5
 
21575
  ac_status=$?
 
21576
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21577
  (exit $ac_status); }; } &&
 
21578
         { ac_try='test -s conftest$ac_exeext'
 
21579
  { (case "(($ac_try" in
 
21580
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21581
  *) ac_try_echo=$ac_try;;
 
21582
esac
 
21583
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21584
  (eval "$ac_try") 2>&5
 
21585
  ac_status=$?
 
21586
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21587
  (exit $ac_status); }; }; then
 
21588
  ac_cv_lib_artsc_arts_init=yes
 
21589
else
 
21590
  echo "$as_me: failed program was:" >&5
 
21591
sed 's/^/| /' conftest.$ac_ext >&5
 
21592
 
 
21593
        ac_cv_lib_artsc_arts_init=no
 
21594
fi
 
21595
 
 
21596
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
21597
      conftest$ac_exeext conftest.$ac_ext
 
21598
LIBS=$ac_check_lib_save_LIBS
 
21599
fi
 
21600
{ echo "$as_me:$LINENO: result: $ac_cv_lib_artsc_arts_init" >&5
 
21601
echo "${ECHO_T}$ac_cv_lib_artsc_arts_init" >&6; }
 
21602
if test $ac_cv_lib_artsc_arts_init = yes; then
 
21603
   ARTS_LIBS="-lartsc"
 
21604
                  found_sound=yes
 
21605
 
 
21606
cat >>confdefs.h <<\_ACEOF
 
21607
#define __ARTS_ENABLED__ 1
 
21608
_ACEOF
 
21609
 
 
21610
                arts_enabled=true
 
21611
 
 
21612
fi
 
21613
 
 
21614
 
 
21615
 
 
21616
fi
 
21617
 
 
21618
done
 
21619
 
 
21620
 
 
21621
 
 
21622
 
 
21623
if test x$arts_enabled = xtrue; then
 
21624
  BUILD_ARTS_TRUE=
 
21625
  BUILD_ARTS_FALSE='#'
 
21626
else
 
21627
  BUILD_ARTS_TRUE='#'
 
21628
  BUILD_ARTS_FALSE=
 
21629
fi
 
21630
 
 
21631
 
 
21632
# Check whether --enable-portaudio was given.
 
21633
if test "${enable_portaudio+set}" = set; then
 
21634
  enableval=$enable_portaudio; case "${enableval}" in
 
21635
        yes) portaudio=true ;;
 
21636
        no)  portaudio=false ;;
 
21637
        *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-portaudio" >&5
 
21638
echo "$as_me: error: bad value ${enableval} for --enable-portaudio" >&2;}
 
21639
   { (exit 1); exit 1; }; } ;;
 
21640
      esac
 
21641
else
 
21642
  portaudio=false
 
21643
fi
 
21644
 
 
21645
 
 
21646
if test "$portaudio" = "true"; then
 
21647
 
 
21648
for ac_header in portaudio.h
 
21649
do
 
21650
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
21651
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
21652
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
21653
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
21654
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
21655
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21656
fi
 
21657
ac_res=`eval echo '${'$as_ac_Header'}'`
 
21658
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
21659
echo "${ECHO_T}$ac_res" >&6; }
 
21660
else
 
21661
  # Is the header compilable?
 
21662
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
21663
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
21664
cat >conftest.$ac_ext <<_ACEOF
 
21665
/* confdefs.h.  */
 
21666
_ACEOF
 
21667
cat confdefs.h >>conftest.$ac_ext
 
21668
cat >>conftest.$ac_ext <<_ACEOF
 
21669
/* end confdefs.h.  */
 
21670
$ac_includes_default
 
21671
#include <$ac_header>
 
21672
_ACEOF
 
21673
rm -f conftest.$ac_objext
 
21674
if { (ac_try="$ac_compile"
 
21675
case "(($ac_try" in
 
21676
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21677
  *) ac_try_echo=$ac_try;;
 
21678
esac
 
21679
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21680
  (eval "$ac_compile") 2>conftest.er1
 
21681
  ac_status=$?
 
21682
  grep -v '^ *+' conftest.er1 >conftest.err
 
21683
  rm -f conftest.er1
 
21684
  cat conftest.err >&5
 
21685
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21686
  (exit $ac_status); } &&
 
21687
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
21688
  { (case "(($ac_try" in
 
21689
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21690
  *) ac_try_echo=$ac_try;;
 
21691
esac
 
21692
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21693
  (eval "$ac_try") 2>&5
 
21694
  ac_status=$?
 
21695
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21696
  (exit $ac_status); }; } &&
 
21697
         { ac_try='test -s conftest.$ac_objext'
 
21698
  { (case "(($ac_try" in
 
21699
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21700
  *) ac_try_echo=$ac_try;;
 
21701
esac
 
21702
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21703
  (eval "$ac_try") 2>&5
 
21704
  ac_status=$?
 
21705
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21706
  (exit $ac_status); }; }; then
 
21707
  ac_header_compiler=yes
 
21708
else
 
21709
  echo "$as_me: failed program was:" >&5
 
21710
sed 's/^/| /' conftest.$ac_ext >&5
 
21711
 
 
21712
        ac_header_compiler=no
 
21713
fi
 
21714
 
 
21715
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21716
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
21717
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
21718
 
 
21719
# Is the header present?
 
21720
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
21721
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
21722
cat >conftest.$ac_ext <<_ACEOF
 
21723
/* confdefs.h.  */
 
21724
_ACEOF
 
21725
cat confdefs.h >>conftest.$ac_ext
 
21726
cat >>conftest.$ac_ext <<_ACEOF
 
21727
/* end confdefs.h.  */
 
21728
#include <$ac_header>
 
21729
_ACEOF
 
21730
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
21731
case "(($ac_try" in
 
21732
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21733
  *) ac_try_echo=$ac_try;;
 
21734
esac
 
21735
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21736
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
21737
  ac_status=$?
 
21738
  grep -v '^ *+' conftest.er1 >conftest.err
 
21739
  rm -f conftest.er1
 
21740
  cat conftest.err >&5
 
21741
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21742
  (exit $ac_status); } >/dev/null; then
 
21743
  if test -s conftest.err; then
 
21744
    ac_cpp_err=$ac_c_preproc_warn_flag
 
21745
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
21746
  else
 
21747
    ac_cpp_err=
 
21748
  fi
 
21749
else
 
21750
  ac_cpp_err=yes
 
21751
fi
 
21752
if test -z "$ac_cpp_err"; then
 
21753
  ac_header_preproc=yes
 
21754
else
 
21755
  echo "$as_me: failed program was:" >&5
 
21756
sed 's/^/| /' conftest.$ac_ext >&5
 
21757
 
 
21758
  ac_header_preproc=no
 
21759
fi
 
21760
 
 
21761
rm -f conftest.err conftest.$ac_ext
 
21762
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
21763
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
21764
 
 
21765
# So?  What about this header?
 
21766
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
21767
  yes:no: )
 
21768
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
21769
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
21770
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
21771
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
21772
    ac_header_preproc=yes
 
21773
    ;;
 
21774
  no:yes:* )
 
21775
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
21776
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
21777
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
21778
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
21779
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
21780
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
21781
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
21782
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
21783
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
21784
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
21785
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
21786
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
21787
 
 
21788
    ;;
 
21789
esac
 
21790
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
21791
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
21792
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
21793
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21794
else
 
21795
  eval "$as_ac_Header=\$ac_header_preproc"
 
21796
fi
 
21797
ac_res=`eval echo '${'$as_ac_Header'}'`
 
21798
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
21799
echo "${ECHO_T}$ac_res" >&6; }
 
21800
 
 
21801
fi
 
21802
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
21803
  cat >>confdefs.h <<_ACEOF
 
21804
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
21805
_ACEOF
 
21806
  { echo "$as_me:$LINENO: checking for Pa_Initialize in -lportaudio" >&5
 
21807
echo $ECHO_N "checking for Pa_Initialize in -lportaudio... $ECHO_C" >&6; }
 
21808
if test "${ac_cv_lib_portaudio_Pa_Initialize+set}" = set; then
 
21809
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21810
else
 
21811
  ac_check_lib_save_LIBS=$LIBS
 
21812
LIBS="-lportaudio  $LIBS"
 
21813
cat >conftest.$ac_ext <<_ACEOF
 
21814
/* confdefs.h.  */
 
21815
_ACEOF
 
21816
cat confdefs.h >>conftest.$ac_ext
 
21817
cat >>conftest.$ac_ext <<_ACEOF
 
21818
/* end confdefs.h.  */
 
21819
 
 
21820
/* Override any GCC internal prototype to avoid an error.
 
21821
   Use char because int might match the return type of a GCC
 
21822
   builtin and then its argument prototype would still apply.  */
 
21823
#ifdef __cplusplus
 
21824
extern "C"
 
21825
#endif
 
21826
char Pa_Initialize ();
 
21827
int
 
21828
main ()
 
21829
{
 
21830
return Pa_Initialize ();
 
21831
  ;
 
21832
  return 0;
 
21833
}
 
21834
_ACEOF
 
21835
rm -f conftest.$ac_objext conftest$ac_exeext
 
21836
if { (ac_try="$ac_link"
 
21837
case "(($ac_try" in
 
21838
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21839
  *) ac_try_echo=$ac_try;;
 
21840
esac
 
21841
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21842
  (eval "$ac_link") 2>conftest.er1
 
21843
  ac_status=$?
 
21844
  grep -v '^ *+' conftest.er1 >conftest.err
 
21845
  rm -f conftest.er1
 
21846
  cat conftest.err >&5
 
21847
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21848
  (exit $ac_status); } &&
 
21849
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
21850
  { (case "(($ac_try" in
 
21851
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21852
  *) ac_try_echo=$ac_try;;
 
21853
esac
 
21854
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21855
  (eval "$ac_try") 2>&5
 
21856
  ac_status=$?
 
21857
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21858
  (exit $ac_status); }; } &&
 
21859
         { ac_try='test -s conftest$ac_exeext'
 
21860
  { (case "(($ac_try" in
 
21861
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21862
  *) ac_try_echo=$ac_try;;
 
21863
esac
 
21864
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21865
  (eval "$ac_try") 2>&5
 
21866
  ac_status=$?
 
21867
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21868
  (exit $ac_status); }; }; then
 
21869
  ac_cv_lib_portaudio_Pa_Initialize=yes
 
21870
else
 
21871
  echo "$as_me: failed program was:" >&5
 
21872
sed 's/^/| /' conftest.$ac_ext >&5
 
21873
 
 
21874
        ac_cv_lib_portaudio_Pa_Initialize=no
 
21875
fi
 
21876
 
 
21877
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
21878
      conftest$ac_exeext conftest.$ac_ext
 
21879
LIBS=$ac_check_lib_save_LIBS
 
21880
fi
 
21881
{ echo "$as_me:$LINENO: result: $ac_cv_lib_portaudio_Pa_Initialize" >&5
 
21882
echo "${ECHO_T}$ac_cv_lib_portaudio_Pa_Initialize" >&6; }
 
21883
if test $ac_cv_lib_portaudio_Pa_Initialize = yes; then
 
21884
   PORTAUDIO_LIBS="-lportaudio"
 
21885
                          found_sound=yes
 
21886
 
 
21887
cat >>confdefs.h <<\_ACEOF
 
21888
#define __PORTAUDIO_ENABLED__ 1
 
21889
_ACEOF
 
21890
 
 
21891
                        portaudio_enabled=true
 
21892
 
 
21893
fi
 
21894
 
 
21895
 
 
21896
 
 
21897
fi
 
21898
 
 
21899
done
 
21900
 
 
21901
fi
 
21902
 
 
21903
 
 
21904
 
 
21905
if test x$portaudio_enabled = xtrue; then
 
21906
  BUILD_PORTAUDIO_TRUE=
 
21907
  BUILD_PORTAUDIO_FALSE='#'
 
21908
else
 
21909
  BUILD_PORTAUDIO_TRUE='#'
 
21910
  BUILD_PORTAUDIO_FALSE=
 
21911
fi
 
21912
 
 
21913
 
 
21914
 
 
21915
 
 
21916
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 
21917
        if test -n "$ac_tool_prefix"; then
 
21918
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
 
21919
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
 
21920
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
21921
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
21922
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
 
21923
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21924
else
 
21925
  case $PKG_CONFIG in
 
21926
  [\\/]* | ?:[\\/]*)
 
21927
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
21928
  ;;
 
21929
  *)
 
21930
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21931
for as_dir in $PATH
 
21932
do
 
21933
  IFS=$as_save_IFS
 
21934
  test -z "$as_dir" && as_dir=.
 
21935
  for ac_exec_ext in '' $ac_executable_extensions; do
 
21936
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
21937
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
21938
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
21939
    break 2
 
21940
  fi
 
21941
done
 
21942
done
 
21943
IFS=$as_save_IFS
 
21944
 
 
21945
  ;;
 
21946
esac
 
21947
fi
 
21948
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
21949
if test -n "$PKG_CONFIG"; then
 
21950
  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 
21951
echo "${ECHO_T}$PKG_CONFIG" >&6; }
 
21952
else
 
21953
  { echo "$as_me:$LINENO: result: no" >&5
 
21954
echo "${ECHO_T}no" >&6; }
 
21955
fi
 
21956
 
 
21957
 
 
21958
fi
 
21959
if test -z "$ac_cv_path_PKG_CONFIG"; then
 
21960
  ac_pt_PKG_CONFIG=$PKG_CONFIG
 
21961
  # Extract the first word of "pkg-config", so it can be a program name with args.
 
21962
set dummy pkg-config; ac_word=$2
 
21963
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
21964
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
21965
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
 
21966
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21967
else
 
21968
  case $ac_pt_PKG_CONFIG in
 
21969
  [\\/]* | ?:[\\/]*)
 
21970
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
 
21971
  ;;
 
21972
  *)
 
21973
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21974
for as_dir in $PATH
 
21975
do
 
21976
  IFS=$as_save_IFS
 
21977
  test -z "$as_dir" && as_dir=.
 
21978
  for ac_exec_ext in '' $ac_executable_extensions; do
 
21979
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
21980
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
21981
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
21982
    break 2
 
21983
  fi
 
21984
done
 
21985
done
 
21986
IFS=$as_save_IFS
 
21987
 
 
21988
  ;;
 
21989
esac
 
21990
fi
 
21991
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
 
21992
if test -n "$ac_pt_PKG_CONFIG"; then
 
21993
  { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
 
21994
echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
 
21995
else
 
21996
  { echo "$as_me:$LINENO: result: no" >&5
 
21997
echo "${ECHO_T}no" >&6; }
 
21998
fi
 
21999
 
 
22000
  if test "x$ac_pt_PKG_CONFIG" = x; then
 
22001
    PKG_CONFIG=""
 
22002
  else
 
22003
    case $cross_compiling:$ac_tool_warned in
 
22004
yes:)
 
22005
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
22006
whose name does not start with the host triplet.  If you think this
 
22007
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
22008
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
22009
whose name does not start with the host triplet.  If you think this
 
22010
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
22011
ac_tool_warned=yes ;;
 
22012
esac
 
22013
    PKG_CONFIG=$ac_pt_PKG_CONFIG
 
22014
  fi
 
22015
else
 
22016
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
 
22017
fi
 
22018
 
 
22019
fi
 
22020
if test -n "$PKG_CONFIG"; then
 
22021
        _pkg_min_version=0.9.0
 
22022
        { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
 
22023
echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
 
22024
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 
22025
                { echo "$as_me:$LINENO: result: yes" >&5
 
22026
echo "${ECHO_T}yes" >&6; }
 
22027
        else
 
22028
                { echo "$as_me:$LINENO: result: no" >&5
 
22029
echo "${ECHO_T}no" >&6; }
 
22030
                PKG_CONFIG=""
 
22031
        fi
 
22032
 
 
22033
fi
 
22034
 
 
22035
pkg_failed=no
 
22036
{ echo "$as_me:$LINENO: checking for JACK" >&5
 
22037
echo $ECHO_N "checking for JACK... $ECHO_C" >&6; }
 
22038
 
 
22039
if test -n "$PKG_CONFIG"; then
 
22040
    if test -n "$JACK_CFLAGS"; then
 
22041
        pkg_cv_JACK_CFLAGS="$JACK_CFLAGS"
 
22042
    else
 
22043
        if test -n "$PKG_CONFIG" && \
 
22044
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"jack >= 0.15.0\"") >&5
 
22045
  ($PKG_CONFIG --exists --print-errors "jack >= 0.15.0") 2>&5
 
22046
  ac_status=$?
 
22047
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22048
  (exit $ac_status); }; then
 
22049
  pkg_cv_JACK_CFLAGS=`$PKG_CONFIG --cflags "jack >= 0.15.0" 2>/dev/null`
 
22050
else
 
22051
  pkg_failed=yes
 
22052
fi
 
22053
    fi
 
22054
else
 
22055
        pkg_failed=untried
 
22056
fi
 
22057
if test -n "$PKG_CONFIG"; then
 
22058
    if test -n "$JACK_LIBS"; then
 
22059
        pkg_cv_JACK_LIBS="$JACK_LIBS"
 
22060
    else
 
22061
        if test -n "$PKG_CONFIG" && \
 
22062
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"jack >= 0.15.0\"") >&5
 
22063
  ($PKG_CONFIG --exists --print-errors "jack >= 0.15.0") 2>&5
 
22064
  ac_status=$?
 
22065
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22066
  (exit $ac_status); }; then
 
22067
  pkg_cv_JACK_LIBS=`$PKG_CONFIG --libs "jack >= 0.15.0" 2>/dev/null`
 
22068
else
 
22069
  pkg_failed=yes
 
22070
fi
 
22071
    fi
 
22072
else
 
22073
        pkg_failed=untried
 
22074
fi
 
22075
 
 
22076
 
 
22077
 
 
22078
if test $pkg_failed = yes; then
 
22079
 
 
22080
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
22081
        _pkg_short_errors_supported=yes
 
22082
else
 
22083
        _pkg_short_errors_supported=no
 
22084
fi
 
22085
        if test $_pkg_short_errors_supported = yes; then
 
22086
                JACK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "jack >= 0.15.0"`
 
22087
        else
 
22088
                JACK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "jack >= 0.15.0"`
 
22089
        fi
 
22090
        # Put the nasty error message in config.log where it belongs
 
22091
        echo "$JACK_PKG_ERRORS" >&5
 
22092
 
 
22093
        { echo "$as_me:$LINENO: result: no" >&5
 
22094
echo "${ECHO_T}no" >&6; }
 
22095
                echo "No jack support."
 
22096
elif test $pkg_failed = untried; then
 
22097
        echo "No jack support."
 
22098
else
 
22099
        JACK_CFLAGS=$pkg_cv_JACK_CFLAGS
 
22100
        JACK_LIBS=$pkg_cv_JACK_LIBS
 
22101
        { echo "$as_me:$LINENO: result: yes" >&5
 
22102
echo "${ECHO_T}yes" >&6; }
 
22103
 
 
22104
 
 
22105
pkg_failed=no
 
22106
{ echo "$as_me:$LINENO: checking for SAMPLERATE" >&5
 
22107
echo $ECHO_N "checking for SAMPLERATE... $ECHO_C" >&6; }
 
22108
 
 
22109
if test -n "$PKG_CONFIG"; then
 
22110
    if test -n "$SAMPLERATE_CFLAGS"; then
 
22111
        pkg_cv_SAMPLERATE_CFLAGS="$SAMPLERATE_CFLAGS"
 
22112
    else
 
22113
        if test -n "$PKG_CONFIG" && \
 
22114
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"samplerate >= 0.0.13\"") >&5
 
22115
  ($PKG_CONFIG --exists --print-errors "samplerate >= 0.0.13") 2>&5
 
22116
  ac_status=$?
 
22117
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22118
  (exit $ac_status); }; then
 
22119
  pkg_cv_SAMPLERATE_CFLAGS=`$PKG_CONFIG --cflags "samplerate >= 0.0.13" 2>/dev/null`
 
22120
else
 
22121
  pkg_failed=yes
 
22122
fi
 
22123
    fi
 
22124
else
 
22125
        pkg_failed=untried
 
22126
fi
 
22127
if test -n "$PKG_CONFIG"; then
 
22128
    if test -n "$SAMPLERATE_LIBS"; then
 
22129
        pkg_cv_SAMPLERATE_LIBS="$SAMPLERATE_LIBS"
 
22130
    else
 
22131
        if test -n "$PKG_CONFIG" && \
 
22132
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"samplerate >= 0.0.13\"") >&5
 
22133
  ($PKG_CONFIG --exists --print-errors "samplerate >= 0.0.13") 2>&5
 
22134
  ac_status=$?
 
22135
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22136
  (exit $ac_status); }; then
 
22137
  pkg_cv_SAMPLERATE_LIBS=`$PKG_CONFIG --libs "samplerate >= 0.0.13" 2>/dev/null`
 
22138
else
 
22139
  pkg_failed=yes
 
22140
fi
 
22141
    fi
 
22142
else
 
22143
        pkg_failed=untried
 
22144
fi
 
22145
 
 
22146
 
 
22147
 
 
22148
if test $pkg_failed = yes; then
 
22149
 
 
22150
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
22151
        _pkg_short_errors_supported=yes
 
22152
else
 
22153
        _pkg_short_errors_supported=no
 
22154
fi
 
22155
        if test $_pkg_short_errors_supported = yes; then
 
22156
                SAMPLERATE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "samplerate >= 0.0.13"`
 
22157
        else
 
22158
                SAMPLERATE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "samplerate >= 0.0.13"`
 
22159
        fi
 
22160
        # Put the nasty error message in config.log where it belongs
 
22161
        echo "$SAMPLERATE_PKG_ERRORS" >&5
 
22162
 
 
22163
        { echo "$as_me:$LINENO: result: no" >&5
 
22164
echo "${ECHO_T}no" >&6; }
 
22165
                echo "libsamplerate not found, jack support disabled."
 
22166
elif test $pkg_failed = untried; then
 
22167
        echo "libsamplerate not found, jack support disabled."
 
22168
else
 
22169
        SAMPLERATE_CFLAGS=$pkg_cv_SAMPLERATE_CFLAGS
 
22170
        SAMPLERATE_LIBS=$pkg_cv_SAMPLERATE_LIBS
 
22171
        { echo "$as_me:$LINENO: result: yes" >&5
 
22172
echo "${ECHO_T}yes" >&6; }
 
22173
 
 
22174
cat >>confdefs.h <<\_ACEOF
 
22175
#define __JACK_ENABLED__ 1
 
22176
_ACEOF
 
22177
 
 
22178
                found_sound=yes
 
22179
                jack_found=yes
 
22180
fi
 
22181
 
 
22182
 
 
22183
 
 
22184
fi
 
22185
 
 
22186
if test x$jack_found = xno ; then
 
22187
                JACK_CFLAGS=
 
22188
        JACK_LIBS=
 
22189
        SAMPLERATE_CFLAGS=
 
22190
        SAMPLERATE_LIBS=
 
22191
fi
 
22192
 
 
22193
 
 
22194
 
 
22195
 
 
22196
if test "$found_sound" = "no"; then
 
22197
        { { echo "$as_me:$LINENO: error: Could not find a support sound driver API" >&5
 
22198
echo "$as_me: error: Could not find a support sound driver API" >&2;}
 
22199
   { (exit 1); exit 1; }; }
 
22200
fi
 
22201
 
 
22202
 
 
22203
 
 
22204
 
 
22205
pkg_failed=no
 
22206
{ echo "$as_me:$LINENO: checking for SPEEX" >&5
 
22207
echo $ECHO_N "checking for SPEEX... $ECHO_C" >&6; }
 
22208
 
 
22209
if test -n "$PKG_CONFIG"; then
 
22210
    if test -n "$SPEEX_CFLAGS"; then
 
22211
        pkg_cv_SPEEX_CFLAGS="$SPEEX_CFLAGS"
 
22212
    else
 
22213
        if test -n "$PKG_CONFIG" && \
 
22214
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"speex >= 1.1.12\"") >&5
 
22215
  ($PKG_CONFIG --exists --print-errors "speex >= 1.1.12") 2>&5
 
22216
  ac_status=$?
 
22217
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22218
  (exit $ac_status); }; then
 
22219
  pkg_cv_SPEEX_CFLAGS=`$PKG_CONFIG --cflags "speex >= 1.1.12" 2>/dev/null`
 
22220
else
 
22221
  pkg_failed=yes
 
22222
fi
 
22223
    fi
 
22224
else
 
22225
        pkg_failed=untried
 
22226
fi
 
22227
if test -n "$PKG_CONFIG"; then
 
22228
    if test -n "$SPEEX_LIBS"; then
 
22229
        pkg_cv_SPEEX_LIBS="$SPEEX_LIBS"
 
22230
    else
 
22231
        if test -n "$PKG_CONFIG" && \
 
22232
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"speex >= 1.1.12\"") >&5
 
22233
  ($PKG_CONFIG --exists --print-errors "speex >= 1.1.12") 2>&5
 
22234
  ac_status=$?
 
22235
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22236
  (exit $ac_status); }; then
 
22237
  pkg_cv_SPEEX_LIBS=`$PKG_CONFIG --libs "speex >= 1.1.12" 2>/dev/null`
 
22238
else
 
22239
  pkg_failed=yes
 
22240
fi
 
22241
    fi
 
22242
else
 
22243
        pkg_failed=untried
 
22244
fi
 
22245
 
 
22246
 
 
22247
 
 
22248
if test $pkg_failed = yes; then
 
22249
 
 
22250
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
22251
        _pkg_short_errors_supported=yes
 
22252
else
 
22253
        _pkg_short_errors_supported=no
 
22254
fi
 
22255
        if test $_pkg_short_errors_supported = yes; then
 
22256
                SPEEX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "speex >= 1.1.12"`
 
22257
        else
 
22258
                SPEEX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "speex >= 1.1.12"`
 
22259
        fi
 
22260
        # Put the nasty error message in config.log where it belongs
 
22261
        echo "$SPEEX_PKG_ERRORS" >&5
 
22262
 
 
22263
        { echo "$as_me:$LINENO: result: no" >&5
 
22264
echo "${ECHO_T}no" >&6; }
 
22265
                try_other_speex=yes
 
22266
 
 
22267
elif test $pkg_failed = untried; then
 
22268
        try_other_speex=yes
 
22269
 
 
22270
else
 
22271
        SPEEX_CFLAGS=$pkg_cv_SPEEX_CFLAGS
 
22272
        SPEEX_LIBS=$pkg_cv_SPEEX_LIBS
 
22273
        { echo "$as_me:$LINENO: result: yes" >&5
 
22274
echo "${ECHO_T}yes" >&6; }
 
22275
 
 
22276
cat >>confdefs.h <<\_ACEOF
 
22277
#define HAVE_SPEEX_NOISE 1
 
22278
_ACEOF
 
22279
 
 
22280
fi
 
22281
 
 
22282
pkg_failed=no
 
22283
{ echo "$as_me:$LINENO: checking for SPEEX" >&5
 
22284
echo $ECHO_N "checking for SPEEX... $ECHO_C" >&6; }
 
22285
 
 
22286
if test -n "$PKG_CONFIG"; then
 
22287
    if test -n "$SPEEX_CFLAGS"; then
 
22288
        pkg_cv_SPEEX_CFLAGS="$SPEEX_CFLAGS"
 
22289
    else
 
22290
        if test -n "$PKG_CONFIG" && \
 
22291
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"speex >= 1.1.6\"") >&5
 
22292
  ($PKG_CONFIG --exists --print-errors "speex >= 1.1.6") 2>&5
 
22293
  ac_status=$?
 
22294
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22295
  (exit $ac_status); }; then
 
22296
  pkg_cv_SPEEX_CFLAGS=`$PKG_CONFIG --cflags "speex >= 1.1.6" 2>/dev/null`
 
22297
else
 
22298
  pkg_failed=yes
 
22299
fi
 
22300
    fi
 
22301
else
 
22302
        pkg_failed=untried
 
22303
fi
 
22304
if test -n "$PKG_CONFIG"; then
 
22305
    if test -n "$SPEEX_LIBS"; then
 
22306
        pkg_cv_SPEEX_LIBS="$SPEEX_LIBS"
 
22307
    else
 
22308
        if test -n "$PKG_CONFIG" && \
 
22309
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"speex >= 1.1.6\"") >&5
 
22310
  ($PKG_CONFIG --exists --print-errors "speex >= 1.1.6") 2>&5
 
22311
  ac_status=$?
 
22312
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22313
  (exit $ac_status); }; then
 
22314
  pkg_cv_SPEEX_LIBS=`$PKG_CONFIG --libs "speex >= 1.1.6" 2>/dev/null`
 
22315
else
 
22316
  pkg_failed=yes
 
22317
fi
 
22318
    fi
 
22319
else
 
22320
        pkg_failed=untried
 
22321
fi
 
22322
 
 
22323
 
 
22324
 
 
22325
if test $pkg_failed = yes; then
 
22326
 
 
22327
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
22328
        _pkg_short_errors_supported=yes
 
22329
else
 
22330
        _pkg_short_errors_supported=no
 
22331
fi
 
22332
        if test $_pkg_short_errors_supported = yes; then
 
22333
                SPEEX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "speex >= 1.1.6"`
 
22334
        else
 
22335
                SPEEX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "speex >= 1.1.6"`
 
22336
        fi
 
22337
        # Put the nasty error message in config.log where it belongs
 
22338
        echo "$SPEEX_PKG_ERRORS" >&5
 
22339
 
 
22340
        { { echo "$as_me:$LINENO: error: Package requirements (speex >= 1.1.6) were not met:
 
22341
 
 
22342
$SPEEX_PKG_ERRORS
 
22343
 
 
22344
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
22345
installed software in a non-standard prefix.
 
22346
 
 
22347
Alternatively, you may set the environment variables SPEEX_CFLAGS
 
22348
and SPEEX_LIBS to avoid the need to call pkg-config.
 
22349
See the pkg-config man page for more details.
 
22350
" >&5
 
22351
echo "$as_me: error: Package requirements (speex >= 1.1.6) were not met:
 
22352
 
 
22353
$SPEEX_PKG_ERRORS
 
22354
 
 
22355
Consider adjusting the PKG_CONFIG_PATH environment variable if you
 
22356
installed software in a non-standard prefix.
 
22357
 
 
22358
Alternatively, you may set the environment variables SPEEX_CFLAGS
 
22359
and SPEEX_LIBS to avoid the need to call pkg-config.
 
22360
See the pkg-config man page for more details.
 
22361
" >&2;}
 
22362
   { (exit 1); exit 1; }; }
 
22363
elif test $pkg_failed = untried; then
 
22364
        { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
 
22365
is in your PATH or set the PKG_CONFIG environment variable to the full
 
22366
path to pkg-config.
 
22367
 
 
22368
Alternatively, you may set the environment variables SPEEX_CFLAGS
 
22369
and SPEEX_LIBS to avoid the need to call pkg-config.
 
22370
See the pkg-config man page for more details.
 
22371
 
 
22372
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
22373
See \`config.log' for more details." >&5
 
22374
echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
 
22375
is in your PATH or set the PKG_CONFIG environment variable to the full
 
22376
path to pkg-config.
 
22377
 
 
22378
Alternatively, you may set the environment variables SPEEX_CFLAGS
 
22379
and SPEEX_LIBS to avoid the need to call pkg-config.
 
22380
See the pkg-config man page for more details.
 
22381
 
 
22382
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
 
22383
See \`config.log' for more details." >&2;}
 
22384
   { (exit 1); exit 1; }; }
 
22385
else
 
22386
        SPEEX_CFLAGS=$pkg_cv_SPEEX_CFLAGS
 
22387
        SPEEX_LIBS=$pkg_cv_SPEEX_LIBS
 
22388
        { echo "$as_me:$LINENO: result: yes" >&5
 
22389
echo "${ECHO_T}yes" >&6; }
 
22390
        build_speex=yes
 
22391
fi
 
22392
 
 
22393
 
 
22394
 
 
22395
 
 
22396
if test x$build_speex = xyes ; then
 
22397
  BUILD_SPEEX_TRUE=
 
22398
  BUILD_SPEEX_FALSE='#'
 
22399
else
 
22400
  BUILD_SPEEX_TRUE='#'
 
22401
  BUILD_SPEEX_FALSE=
 
22402
fi
 
22403
 
 
22404
 
 
22405
 
 
22406
# Check whether --with-gsm was given.
 
22407
if test "${with_gsm+set}" = set; then
 
22408
  withval=$with_gsm;  gsmdir=${withval}
 
22409
else
 
22410
   gsmdir=/usr
 
22411
fi
 
22412
 
 
22413
if test -e ../gsmlib/gsm.h ; then
 
22414
        echo "building from linphone source tree, using ../gsmlib/gsm.h"
 
22415
        GSM_CFLAGS="-I\$(top_srcdir)/../gsmlib"
 
22416
        GSM_LIBS="\$(top_builddir)/../gsmlib/libgsm.la"
 
22417
        build_gsm=yes
 
22418
 
 
22419
 
 
22420
else
 
22421
 
 
22422
 
 
22423
        NAME=GSM
 
22424
        dep_headersdir=${gsmdir}/include
 
22425
        dep_libsdir=${gsmdir}/lib
 
22426
        dep_header=gsm.h
 
22427
        dep_lib=gsm
 
22428
        dep_funclib=gsm_create
 
22429
        other_libs=
 
22430
 
 
22431
        if test "$dep_headersdir" != "/usr/include" ; then
 
22432
                eval ${NAME}_CFLAGS=\"-I$dep_headersdir \"
 
22433
        fi
 
22434
        eval ${NAME}_LIBS=\"-L$dep_libsdir -l$dep_lib\"
 
22435
 
 
22436
        CPPFLAGS_save=$CPPFLAGS
 
22437
        LDFLAGS_save=$LDFLAGS
 
22438
        CPPFLAGS="-I$dep_headersdir "
 
22439
        LDFLAGS="-L$dep_libsdir "
 
22440
 
 
22441
 
 
22442
for ac_header in $dep_header
 
22443
do
 
22444
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
22445
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
22446
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
22447
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
22448
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
22449
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22450
fi
 
22451
ac_res=`eval echo '${'$as_ac_Header'}'`
 
22452
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
22453
echo "${ECHO_T}$ac_res" >&6; }
 
22454
else
 
22455
  # Is the header compilable?
 
22456
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
22457
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
22458
cat >conftest.$ac_ext <<_ACEOF
 
22459
/* confdefs.h.  */
 
22460
_ACEOF
 
22461
cat confdefs.h >>conftest.$ac_ext
 
22462
cat >>conftest.$ac_ext <<_ACEOF
 
22463
/* end confdefs.h.  */
 
22464
$ac_includes_default
 
22465
#include <$ac_header>
 
22466
_ACEOF
 
22467
rm -f conftest.$ac_objext
 
22468
if { (ac_try="$ac_compile"
 
22469
case "(($ac_try" in
 
22470
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22471
  *) ac_try_echo=$ac_try;;
 
22472
esac
 
22473
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22474
  (eval "$ac_compile") 2>conftest.er1
 
22475
  ac_status=$?
 
22476
  grep -v '^ *+' conftest.er1 >conftest.err
 
22477
  rm -f conftest.er1
 
22478
  cat conftest.err >&5
 
22479
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22480
  (exit $ac_status); } &&
 
22481
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
22482
  { (case "(($ac_try" in
 
22483
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22484
  *) ac_try_echo=$ac_try;;
 
22485
esac
 
22486
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22487
  (eval "$ac_try") 2>&5
 
22488
  ac_status=$?
 
22489
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22490
  (exit $ac_status); }; } &&
 
22491
         { ac_try='test -s conftest.$ac_objext'
 
22492
  { (case "(($ac_try" in
 
22493
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22494
  *) ac_try_echo=$ac_try;;
 
22495
esac
 
22496
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22497
  (eval "$ac_try") 2>&5
 
22498
  ac_status=$?
 
22499
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22500
  (exit $ac_status); }; }; then
 
22501
  ac_header_compiler=yes
 
22502
else
 
22503
  echo "$as_me: failed program was:" >&5
 
22504
sed 's/^/| /' conftest.$ac_ext >&5
 
22505
 
 
22506
        ac_header_compiler=no
 
22507
fi
 
22508
 
 
22509
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
22510
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
22511
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
22512
 
 
22513
# Is the header present?
 
22514
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
22515
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
22516
cat >conftest.$ac_ext <<_ACEOF
 
22517
/* confdefs.h.  */
 
22518
_ACEOF
 
22519
cat confdefs.h >>conftest.$ac_ext
 
22520
cat >>conftest.$ac_ext <<_ACEOF
 
22521
/* end confdefs.h.  */
 
22522
#include <$ac_header>
 
22523
_ACEOF
 
22524
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
22525
case "(($ac_try" in
 
22526
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22527
  *) ac_try_echo=$ac_try;;
 
22528
esac
 
22529
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22530
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
22531
  ac_status=$?
 
22532
  grep -v '^ *+' conftest.er1 >conftest.err
 
22533
  rm -f conftest.er1
 
22534
  cat conftest.err >&5
 
22535
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22536
  (exit $ac_status); } >/dev/null; then
 
22537
  if test -s conftest.err; then
 
22538
    ac_cpp_err=$ac_c_preproc_warn_flag
 
22539
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
22540
  else
 
22541
    ac_cpp_err=
 
22542
  fi
 
22543
else
 
22544
  ac_cpp_err=yes
 
22545
fi
 
22546
if test -z "$ac_cpp_err"; then
 
22547
  ac_header_preproc=yes
 
22548
else
 
22549
  echo "$as_me: failed program was:" >&5
 
22550
sed 's/^/| /' conftest.$ac_ext >&5
 
22551
 
 
22552
  ac_header_preproc=no
 
22553
fi
 
22554
 
 
22555
rm -f conftest.err conftest.$ac_ext
 
22556
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
22557
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
22558
 
 
22559
# So?  What about this header?
 
22560
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
22561
  yes:no: )
 
22562
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
22563
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
22564
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
22565
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
22566
    ac_header_preproc=yes
 
22567
    ;;
 
22568
  no:yes:* )
 
22569
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
22570
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
22571
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
22572
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
22573
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
22574
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
22575
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
22576
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
22577
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
22578
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
22579
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
22580
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
22581
 
 
22582
    ;;
 
22583
esac
 
22584
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
22585
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
22586
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
22587
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22588
else
 
22589
  eval "$as_ac_Header=\$ac_header_preproc"
 
22590
fi
 
22591
ac_res=`eval echo '${'$as_ac_Header'}'`
 
22592
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
22593
echo "${ECHO_T}$ac_res" >&6; }
 
22594
 
 
22595
fi
 
22596
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
22597
  cat >>confdefs.h <<_ACEOF
 
22598
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
22599
_ACEOF
 
22600
 as_ac_Lib=`echo "ac_cv_lib_$dep_lib''_$dep_funclib" | $as_tr_sh`
 
22601
{ echo "$as_me:$LINENO: checking for $dep_funclib in -l$dep_lib" >&5
 
22602
echo $ECHO_N "checking for $dep_funclib in -l$dep_lib... $ECHO_C" >&6; }
 
22603
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
 
22604
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22605
else
 
22606
  ac_check_lib_save_LIBS=$LIBS
 
22607
LIBS="-l$dep_lib $other_libs $LIBS"
 
22608
cat >conftest.$ac_ext <<_ACEOF
 
22609
/* confdefs.h.  */
 
22610
_ACEOF
 
22611
cat confdefs.h >>conftest.$ac_ext
 
22612
cat >>conftest.$ac_ext <<_ACEOF
 
22613
/* end confdefs.h.  */
 
22614
 
 
22615
/* Override any GCC internal prototype to avoid an error.
 
22616
   Use char because int might match the return type of a GCC
 
22617
   builtin and then its argument prototype would still apply.  */
 
22618
#ifdef __cplusplus
 
22619
extern "C"
 
22620
#endif
 
22621
char $dep_funclib ();
 
22622
int
 
22623
main ()
 
22624
{
 
22625
return $dep_funclib ();
 
22626
  ;
 
22627
  return 0;
 
22628
}
 
22629
_ACEOF
 
22630
rm -f conftest.$ac_objext conftest$ac_exeext
 
22631
if { (ac_try="$ac_link"
 
22632
case "(($ac_try" in
 
22633
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22634
  *) ac_try_echo=$ac_try;;
 
22635
esac
 
22636
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22637
  (eval "$ac_link") 2>conftest.er1
 
22638
  ac_status=$?
 
22639
  grep -v '^ *+' conftest.er1 >conftest.err
 
22640
  rm -f conftest.er1
 
22641
  cat conftest.err >&5
 
22642
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22643
  (exit $ac_status); } &&
 
22644
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
22645
  { (case "(($ac_try" in
 
22646
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22647
  *) ac_try_echo=$ac_try;;
 
22648
esac
 
22649
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22650
  (eval "$ac_try") 2>&5
 
22651
  ac_status=$?
 
22652
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22653
  (exit $ac_status); }; } &&
 
22654
         { ac_try='test -s conftest$ac_exeext'
 
22655
  { (case "(($ac_try" in
 
22656
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22657
  *) ac_try_echo=$ac_try;;
 
22658
esac
 
22659
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22660
  (eval "$ac_try") 2>&5
 
22661
  ac_status=$?
 
22662
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22663
  (exit $ac_status); }; }; then
 
22664
  eval "$as_ac_Lib=yes"
 
22665
else
 
22666
  echo "$as_me: failed program was:" >&5
 
22667
sed 's/^/| /' conftest.$ac_ext >&5
 
22668
 
 
22669
        eval "$as_ac_Lib=no"
 
22670
fi
 
22671
 
 
22672
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
22673
      conftest$ac_exeext conftest.$ac_ext
 
22674
LIBS=$ac_check_lib_save_LIBS
 
22675
fi
 
22676
ac_res=`eval echo '${'$as_ac_Lib'}'`
 
22677
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
22678
echo "${ECHO_T}$ac_res" >&6; }
 
22679
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
 
22680
  found=yes
 
22681
else
 
22682
  found=no
 
22683
fi
 
22684
 
 
22685
 
 
22686
else
 
22687
  found=no
 
22688
fi
 
22689
 
 
22690
done
 
22691
 
 
22692
 
 
22693
        if test "$found" = "yes" ; then
 
22694
                eval ${NAME}_found=yes
 
22695
 
 
22696
 
 
22697
        else
 
22698
                eval ${NAME}_found=no
 
22699
                eval ${NAME}_CFLAGS=
 
22700
                eval ${NAME}_LIBS=
 
22701
        fi
 
22702
        CPPFLAGS=$CPPFLAGS_save
 
22703
        LDFLAGS=$LDFLAGS_save
 
22704
 
 
22705
 
 
22706
 
 
22707
        if test "$GSM_found" = "yes" ; then
 
22708
           build_gsm=yes
 
22709
        fi
 
22710
fi
 
22711
 
 
22712
 
 
22713
 
 
22714
if test x$build_gsm = xyes ; then
 
22715
  BUILD_GSM_TRUE=
 
22716
  BUILD_GSM_FALSE='#'
 
22717
else
 
22718
  BUILD_GSM_TRUE='#'
 
22719
  BUILD_GSM_FALSE=
 
22720
fi
 
22721
 
 
22722
 
 
22723
 
 
22724
 
 
22725
                # Check whether --enable-video was given.
 
22726
if test "${enable_video+set}" = set; then
 
22727
  enableval=$enable_video; case "${enableval}" in
 
22728
                        yes) video=true ;;
 
22729
                        no)  video=false ;;
 
22730
                        *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-video" >&5
 
22731
echo "$as_me: error: bad value ${enableval} for --enable-video" >&2;}
 
22732
   { (exit 1); exit 1; }; } ;;
 
22733
                  esac
 
22734
else
 
22735
  video=true
 
22736
fi
 
22737
 
 
22738
 
 
22739
 
 
22740
# Check whether --with-ffmpeg was given.
 
22741
if test "${with_ffmpeg+set}" = set; then
 
22742
  withval=$with_ffmpeg;  ffmpegdir=${withval}
 
22743
else
 
22744
   ffmpegdir=/usr
 
22745
fi
 
22746
 
 
22747
 
 
22748
 
 
22749
# Check whether --with-sdl was given.
 
22750
if test "${with_sdl+set}" = set; then
 
22751
  withval=$with_sdl;  libsdldir=${withval}
 
22752
else
 
22753
   libsdldir=/usr
 
22754
fi
 
22755
 
 
22756
 
 
22757
        if test "$video" = "true"; then
 
22758
 
 
22759
 
 
22760
pkg_failed=no
 
22761
{ echo "$as_me:$LINENO: checking for FFMPEG" >&5
 
22762
echo $ECHO_N "checking for FFMPEG... $ECHO_C" >&6; }
 
22763
 
 
22764
if test -n "$PKG_CONFIG"; then
 
22765
    if test -n "$FFMPEG_CFLAGS"; then
 
22766
        pkg_cv_FFMPEG_CFLAGS="$FFMPEG_CFLAGS"
 
22767
    else
 
22768
        if test -n "$PKG_CONFIG" && \
 
22769
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libavcodec >= 50.0.0 \"") >&5
 
22770
  ($PKG_CONFIG --exists --print-errors "libavcodec >= 50.0.0 ") 2>&5
 
22771
  ac_status=$?
 
22772
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22773
  (exit $ac_status); }; then
 
22774
  pkg_cv_FFMPEG_CFLAGS=`$PKG_CONFIG --cflags "libavcodec >= 50.0.0 " 2>/dev/null`
 
22775
else
 
22776
  pkg_failed=yes
 
22777
fi
 
22778
    fi
 
22779
else
 
22780
        pkg_failed=untried
 
22781
fi
 
22782
if test -n "$PKG_CONFIG"; then
 
22783
    if test -n "$FFMPEG_LIBS"; then
 
22784
        pkg_cv_FFMPEG_LIBS="$FFMPEG_LIBS"
 
22785
    else
 
22786
        if test -n "$PKG_CONFIG" && \
 
22787
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libavcodec >= 50.0.0 \"") >&5
 
22788
  ($PKG_CONFIG --exists --print-errors "libavcodec >= 50.0.0 ") 2>&5
 
22789
  ac_status=$?
 
22790
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22791
  (exit $ac_status); }; then
 
22792
  pkg_cv_FFMPEG_LIBS=`$PKG_CONFIG --libs "libavcodec >= 50.0.0 " 2>/dev/null`
 
22793
else
 
22794
  pkg_failed=yes
 
22795
fi
 
22796
    fi
 
22797
else
 
22798
        pkg_failed=untried
 
22799
fi
 
22800
 
 
22801
 
 
22802
 
 
22803
if test $pkg_failed = yes; then
 
22804
 
 
22805
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
22806
        _pkg_short_errors_supported=yes
 
22807
else
 
22808
        _pkg_short_errors_supported=no
 
22809
fi
 
22810
        if test $_pkg_short_errors_supported = yes; then
 
22811
                FFMPEG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libavcodec >= 50.0.0 "`
 
22812
        else
 
22813
                FFMPEG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libavcodec >= 50.0.0 "`
 
22814
        fi
 
22815
        # Put the nasty error message in config.log where it belongs
 
22816
        echo "$FFMPEG_PKG_ERRORS" >&5
 
22817
 
 
22818
        { echo "$as_me:$LINENO: result: no" >&5
 
22819
echo "${ECHO_T}no" >&6; }
 
22820
                ffmpeg_found=no
 
22821
elif test $pkg_failed = untried; then
 
22822
        ffmpeg_found=no
 
22823
else
 
22824
        FFMPEG_CFLAGS=$pkg_cv_FFMPEG_CFLAGS
 
22825
        FFMPEG_LIBS=$pkg_cv_FFMPEG_LIBS
 
22826
        { echo "$as_me:$LINENO: result: yes" >&5
 
22827
echo "${ECHO_T}yes" >&6; }
 
22828
        ffmpeg_found=yes
 
22829
fi
 
22830
 
 
22831
pkg_failed=no
 
22832
{ echo "$as_me:$LINENO: checking for FFMPEG" >&5
 
22833
echo $ECHO_N "checking for FFMPEG... $ECHO_C" >&6; }
 
22834
 
 
22835
if test -n "$PKG_CONFIG"; then
 
22836
    if test -n "$FFMPEG_CFLAGS"; then
 
22837
        pkg_cv_FFMPEG_CFLAGS="$FFMPEG_CFLAGS"
 
22838
    else
 
22839
        if test -n "$PKG_CONFIG" && \
 
22840
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libavcodec >= 0d.50.0.0 \"") >&5
 
22841
  ($PKG_CONFIG --exists --print-errors "libavcodec >= 0d.50.0.0 ") 2>&5
 
22842
  ac_status=$?
 
22843
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22844
  (exit $ac_status); }; then
 
22845
  pkg_cv_FFMPEG_CFLAGS=`$PKG_CONFIG --cflags "libavcodec >= 0d.50.0.0 " 2>/dev/null`
 
22846
else
 
22847
  pkg_failed=yes
 
22848
fi
 
22849
    fi
 
22850
else
 
22851
        pkg_failed=untried
 
22852
fi
 
22853
if test -n "$PKG_CONFIG"; then
 
22854
    if test -n "$FFMPEG_LIBS"; then
 
22855
        pkg_cv_FFMPEG_LIBS="$FFMPEG_LIBS"
 
22856
    else
 
22857
        if test -n "$PKG_CONFIG" && \
 
22858
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libavcodec >= 0d.50.0.0 \"") >&5
 
22859
  ($PKG_CONFIG --exists --print-errors "libavcodec >= 0d.50.0.0 ") 2>&5
 
22860
  ac_status=$?
 
22861
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22862
  (exit $ac_status); }; then
 
22863
  pkg_cv_FFMPEG_LIBS=`$PKG_CONFIG --libs "libavcodec >= 0d.50.0.0 " 2>/dev/null`
 
22864
else
 
22865
  pkg_failed=yes
 
22866
fi
 
22867
    fi
 
22868
else
 
22869
        pkg_failed=untried
 
22870
fi
 
22871
 
 
22872
 
 
22873
 
 
22874
if test $pkg_failed = yes; then
 
22875
 
 
22876
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
22877
        _pkg_short_errors_supported=yes
 
22878
else
 
22879
        _pkg_short_errors_supported=no
 
22880
fi
 
22881
        if test $_pkg_short_errors_supported = yes; then
 
22882
                FFMPEG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libavcodec >= 0d.50.0.0 "`
 
22883
        else
 
22884
                FFMPEG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libavcodec >= 0d.50.0.0 "`
 
22885
        fi
 
22886
        # Put the nasty error message in config.log where it belongs
 
22887
        echo "$FFMPEG_PKG_ERRORS" >&5
 
22888
 
 
22889
        { echo "$as_me:$LINENO: result: no" >&5
 
22890
echo "${ECHO_T}no" >&6; }
 
22891
                ffmpeg_found=no
 
22892
elif test $pkg_failed = untried; then
 
22893
        ffmpeg_found=no
 
22894
else
 
22895
        FFMPEG_CFLAGS=$pkg_cv_FFMPEG_CFLAGS
 
22896
        FFMPEG_LIBS=$pkg_cv_FFMPEG_LIBS
 
22897
        { echo "$as_me:$LINENO: result: yes" >&5
 
22898
echo "${ECHO_T}yes" >&6; }
 
22899
        ffmpeg_found=yes
 
22900
fi
 
22901
                if test x$ffmpeg_found = xno ; then
 
22902
                        { { echo "$as_me:$LINENO: error: Could not find ffmpeg headers and library. This is mandatory for video support" >&5
 
22903
echo "$as_me: error: Could not find ffmpeg headers and library. This is mandatory for video support" >&2;}
 
22904
   { (exit 1); exit 1; }; }
 
22905
                fi
 
22906
 
 
22907
 
 
22908
{ echo "$as_me:$LINENO: checking for avcodec_register_all in -lavcodec" >&5
 
22909
echo $ECHO_N "checking for avcodec_register_all in -lavcodec... $ECHO_C" >&6; }
 
22910
if test "${ac_cv_lib_avcodec_avcodec_register_all+set}" = set; then
 
22911
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22912
else
 
22913
  ac_check_lib_save_LIBS=$LIBS
 
22914
LIBS="-lavcodec $FFMPEG_LIBS  $LIBS"
 
22915
cat >conftest.$ac_ext <<_ACEOF
 
22916
/* confdefs.h.  */
 
22917
_ACEOF
 
22918
cat confdefs.h >>conftest.$ac_ext
 
22919
cat >>conftest.$ac_ext <<_ACEOF
 
22920
/* end confdefs.h.  */
 
22921
 
 
22922
/* Override any GCC internal prototype to avoid an error.
 
22923
   Use char because int might match the return type of a GCC
 
22924
   builtin and then its argument prototype would still apply.  */
 
22925
#ifdef __cplusplus
 
22926
extern "C"
 
22927
#endif
 
22928
char avcodec_register_all ();
 
22929
int
 
22930
main ()
 
22931
{
 
22932
return avcodec_register_all ();
 
22933
  ;
 
22934
  return 0;
 
22935
}
 
22936
_ACEOF
 
22937
rm -f conftest.$ac_objext conftest$ac_exeext
 
22938
if { (ac_try="$ac_link"
 
22939
case "(($ac_try" in
 
22940
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22941
  *) ac_try_echo=$ac_try;;
 
22942
esac
 
22943
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22944
  (eval "$ac_link") 2>conftest.er1
 
22945
  ac_status=$?
 
22946
  grep -v '^ *+' conftest.er1 >conftest.err
 
22947
  rm -f conftest.er1
 
22948
  cat conftest.err >&5
 
22949
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22950
  (exit $ac_status); } &&
 
22951
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
22952
  { (case "(($ac_try" in
 
22953
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22954
  *) ac_try_echo=$ac_try;;
 
22955
esac
 
22956
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22957
  (eval "$ac_try") 2>&5
 
22958
  ac_status=$?
 
22959
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22960
  (exit $ac_status); }; } &&
 
22961
         { ac_try='test -s conftest$ac_exeext'
 
22962
  { (case "(($ac_try" in
 
22963
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22964
  *) ac_try_echo=$ac_try;;
 
22965
esac
 
22966
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22967
  (eval "$ac_try") 2>&5
 
22968
  ac_status=$?
 
22969
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22970
  (exit $ac_status); }; }; then
 
22971
  ac_cv_lib_avcodec_avcodec_register_all=yes
 
22972
else
 
22973
  echo "$as_me: failed program was:" >&5
 
22974
sed 's/^/| /' conftest.$ac_ext >&5
 
22975
 
 
22976
        ac_cv_lib_avcodec_avcodec_register_all=no
 
22977
fi
 
22978
 
 
22979
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
22980
      conftest$ac_exeext conftest.$ac_ext
 
22981
LIBS=$ac_check_lib_save_LIBS
 
22982
fi
 
22983
{ echo "$as_me:$LINENO: result: $ac_cv_lib_avcodec_avcodec_register_all" >&5
 
22984
echo "${ECHO_T}$ac_cv_lib_avcodec_avcodec_register_all" >&6; }
 
22985
if test $ac_cv_lib_avcodec_avcodec_register_all = yes; then
 
22986
  cat >>confdefs.h <<_ACEOF
 
22987
#define HAVE_LIBAVCODEC 1
 
22988
_ACEOF
 
22989
 
 
22990
  LIBS="-lavcodec $LIBS"
 
22991
 
 
22992
else
 
22993
 
 
22994
                        LIBS="$LIBS -lvorbisenc"
 
22995
 
 
22996
fi
 
22997
 
 
22998
 
 
22999
 
 
23000
 
 
23001
        NAME=SDL
 
23002
        dep_headersdir=${libsdldir}/include
 
23003
        dep_libsdir=${libsdldir}/lib
 
23004
        dep_header=SDL/SDL.h
 
23005
        dep_lib=SDL
 
23006
        dep_funclib=SDL_Init
 
23007
        other_libs=
 
23008
 
 
23009
        if test "$dep_headersdir" != "/usr/include" ; then
 
23010
                eval ${NAME}_CFLAGS=\"-I$dep_headersdir \"
 
23011
        fi
 
23012
        eval ${NAME}_LIBS=\"-L$dep_libsdir -l$dep_lib\"
 
23013
 
 
23014
        CPPFLAGS_save=$CPPFLAGS
 
23015
        LDFLAGS_save=$LDFLAGS
 
23016
        CPPFLAGS="-I$dep_headersdir "
 
23017
        LDFLAGS="-L$dep_libsdir "
 
23018
 
 
23019
 
 
23020
for ac_header in $dep_header
 
23021
do
 
23022
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
23023
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
23024
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
23025
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
23026
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
23027
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23028
fi
 
23029
ac_res=`eval echo '${'$as_ac_Header'}'`
 
23030
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
23031
echo "${ECHO_T}$ac_res" >&6; }
 
23032
else
 
23033
  # Is the header compilable?
 
23034
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
23035
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
23036
cat >conftest.$ac_ext <<_ACEOF
 
23037
/* confdefs.h.  */
 
23038
_ACEOF
 
23039
cat confdefs.h >>conftest.$ac_ext
 
23040
cat >>conftest.$ac_ext <<_ACEOF
 
23041
/* end confdefs.h.  */
 
23042
$ac_includes_default
 
23043
#include <$ac_header>
 
23044
_ACEOF
 
23045
rm -f conftest.$ac_objext
 
23046
if { (ac_try="$ac_compile"
 
23047
case "(($ac_try" in
 
23048
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23049
  *) ac_try_echo=$ac_try;;
 
23050
esac
 
23051
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23052
  (eval "$ac_compile") 2>conftest.er1
 
23053
  ac_status=$?
 
23054
  grep -v '^ *+' conftest.er1 >conftest.err
 
23055
  rm -f conftest.er1
 
23056
  cat conftest.err >&5
 
23057
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23058
  (exit $ac_status); } &&
 
23059
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
23060
  { (case "(($ac_try" in
 
23061
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23062
  *) ac_try_echo=$ac_try;;
 
23063
esac
 
23064
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23065
  (eval "$ac_try") 2>&5
 
23066
  ac_status=$?
 
23067
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23068
  (exit $ac_status); }; } &&
 
23069
         { ac_try='test -s conftest.$ac_objext'
 
23070
  { (case "(($ac_try" in
 
23071
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23072
  *) ac_try_echo=$ac_try;;
 
23073
esac
 
23074
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23075
  (eval "$ac_try") 2>&5
 
23076
  ac_status=$?
 
23077
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23078
  (exit $ac_status); }; }; then
 
23079
  ac_header_compiler=yes
 
23080
else
 
23081
  echo "$as_me: failed program was:" >&5
 
23082
sed 's/^/| /' conftest.$ac_ext >&5
 
23083
 
 
23084
        ac_header_compiler=no
 
23085
fi
 
23086
 
 
23087
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
23088
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
23089
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
23090
 
 
23091
# Is the header present?
 
23092
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
23093
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
23094
cat >conftest.$ac_ext <<_ACEOF
 
23095
/* confdefs.h.  */
 
23096
_ACEOF
 
23097
cat confdefs.h >>conftest.$ac_ext
 
23098
cat >>conftest.$ac_ext <<_ACEOF
 
23099
/* end confdefs.h.  */
 
23100
#include <$ac_header>
 
23101
_ACEOF
 
23102
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
23103
case "(($ac_try" in
 
23104
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23105
  *) ac_try_echo=$ac_try;;
 
23106
esac
 
23107
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23108
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
23109
  ac_status=$?
 
23110
  grep -v '^ *+' conftest.er1 >conftest.err
 
23111
  rm -f conftest.er1
 
23112
  cat conftest.err >&5
 
23113
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23114
  (exit $ac_status); } >/dev/null; then
 
23115
  if test -s conftest.err; then
 
23116
    ac_cpp_err=$ac_c_preproc_warn_flag
 
23117
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
23118
  else
 
23119
    ac_cpp_err=
 
23120
  fi
 
23121
else
 
23122
  ac_cpp_err=yes
 
23123
fi
 
23124
if test -z "$ac_cpp_err"; then
 
23125
  ac_header_preproc=yes
 
23126
else
 
23127
  echo "$as_me: failed program was:" >&5
 
23128
sed 's/^/| /' conftest.$ac_ext >&5
 
23129
 
 
23130
  ac_header_preproc=no
 
23131
fi
 
23132
 
 
23133
rm -f conftest.err conftest.$ac_ext
 
23134
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
23135
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
23136
 
 
23137
# So?  What about this header?
 
23138
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
23139
  yes:no: )
 
23140
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
23141
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
23142
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
23143
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
23144
    ac_header_preproc=yes
 
23145
    ;;
 
23146
  no:yes:* )
 
23147
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
23148
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
23149
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
23150
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
23151
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
23152
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
23153
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
23154
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
23155
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
23156
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
23157
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
23158
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
23159
 
 
23160
    ;;
 
23161
esac
 
23162
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
23163
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
23164
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
23165
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23166
else
 
23167
  eval "$as_ac_Header=\$ac_header_preproc"
 
23168
fi
 
23169
ac_res=`eval echo '${'$as_ac_Header'}'`
 
23170
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
23171
echo "${ECHO_T}$ac_res" >&6; }
 
23172
 
 
23173
fi
 
23174
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
23175
  cat >>confdefs.h <<_ACEOF
 
23176
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
23177
_ACEOF
 
23178
 as_ac_Lib=`echo "ac_cv_lib_$dep_lib''_$dep_funclib" | $as_tr_sh`
 
23179
{ echo "$as_me:$LINENO: checking for $dep_funclib in -l$dep_lib" >&5
 
23180
echo $ECHO_N "checking for $dep_funclib in -l$dep_lib... $ECHO_C" >&6; }
 
23181
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
 
23182
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23183
else
 
23184
  ac_check_lib_save_LIBS=$LIBS
 
23185
LIBS="-l$dep_lib $other_libs $LIBS"
 
23186
cat >conftest.$ac_ext <<_ACEOF
 
23187
/* confdefs.h.  */
 
23188
_ACEOF
 
23189
cat confdefs.h >>conftest.$ac_ext
 
23190
cat >>conftest.$ac_ext <<_ACEOF
 
23191
/* end confdefs.h.  */
 
23192
 
 
23193
/* Override any GCC internal prototype to avoid an error.
 
23194
   Use char because int might match the return type of a GCC
 
23195
   builtin and then its argument prototype would still apply.  */
 
23196
#ifdef __cplusplus
 
23197
extern "C"
 
23198
#endif
 
23199
char $dep_funclib ();
 
23200
int
 
23201
main ()
 
23202
{
 
23203
return $dep_funclib ();
 
23204
  ;
 
23205
  return 0;
 
23206
}
 
23207
_ACEOF
 
23208
rm -f conftest.$ac_objext conftest$ac_exeext
 
23209
if { (ac_try="$ac_link"
 
23210
case "(($ac_try" in
 
23211
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23212
  *) ac_try_echo=$ac_try;;
 
23213
esac
 
23214
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23215
  (eval "$ac_link") 2>conftest.er1
 
23216
  ac_status=$?
 
23217
  grep -v '^ *+' conftest.er1 >conftest.err
 
23218
  rm -f conftest.er1
 
23219
  cat conftest.err >&5
 
23220
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23221
  (exit $ac_status); } &&
 
23222
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
23223
  { (case "(($ac_try" in
 
23224
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23225
  *) ac_try_echo=$ac_try;;
 
23226
esac
 
23227
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23228
  (eval "$ac_try") 2>&5
 
23229
  ac_status=$?
 
23230
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23231
  (exit $ac_status); }; } &&
 
23232
         { ac_try='test -s conftest$ac_exeext'
 
23233
  { (case "(($ac_try" in
 
23234
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23235
  *) ac_try_echo=$ac_try;;
 
23236
esac
 
23237
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23238
  (eval "$ac_try") 2>&5
 
23239
  ac_status=$?
 
23240
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23241
  (exit $ac_status); }; }; then
 
23242
  eval "$as_ac_Lib=yes"
 
23243
else
 
23244
  echo "$as_me: failed program was:" >&5
 
23245
sed 's/^/| /' conftest.$ac_ext >&5
 
23246
 
 
23247
        eval "$as_ac_Lib=no"
 
23248
fi
 
23249
 
 
23250
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
23251
      conftest$ac_exeext conftest.$ac_ext
 
23252
LIBS=$ac_check_lib_save_LIBS
 
23253
fi
 
23254
ac_res=`eval echo '${'$as_ac_Lib'}'`
 
23255
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
23256
echo "${ECHO_T}$ac_res" >&6; }
 
23257
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
 
23258
  found=yes
 
23259
else
 
23260
  found=no
 
23261
fi
 
23262
 
 
23263
 
 
23264
else
 
23265
  found=no
 
23266
fi
 
23267
 
 
23268
done
 
23269
 
 
23270
 
 
23271
        if test "$found" = "yes" ; then
 
23272
                eval ${NAME}_found=yes
 
23273
 
 
23274
 
 
23275
        else
 
23276
                eval ${NAME}_found=no
 
23277
                eval ${NAME}_CFLAGS=
 
23278
                eval ${NAME}_LIBS=
 
23279
        fi
 
23280
        CPPFLAGS=$CPPFLAGS_save
 
23281
        LDFLAGS=$LDFLAGS_save
 
23282
 
 
23283
 
 
23284
                if test "$SDL_found" = "no" ; then
 
23285
                        { { echo "$as_me:$LINENO: error: Could not find libsdl headers and library. This is mandatory for video support" >&5
 
23286
echo "$as_me: error: Could not find libsdl headers and library. This is mandatory for video support" >&2;}
 
23287
   { (exit 1); exit 1; }; }
 
23288
                fi
 
23289
 
 
23290
 
 
23291
pkg_failed=no
 
23292
{ echo "$as_me:$LINENO: checking for THEORA" >&5
 
23293
echo $ECHO_N "checking for THEORA... $ECHO_C" >&6; }
 
23294
 
 
23295
if test -n "$PKG_CONFIG"; then
 
23296
    if test -n "$THEORA_CFLAGS"; then
 
23297
        pkg_cv_THEORA_CFLAGS="$THEORA_CFLAGS"
 
23298
    else
 
23299
        if test -n "$PKG_CONFIG" && \
 
23300
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"theora >= 1.0alpha7 \"") >&5
 
23301
  ($PKG_CONFIG --exists --print-errors "theora >= 1.0alpha7 ") 2>&5
 
23302
  ac_status=$?
 
23303
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23304
  (exit $ac_status); }; then
 
23305
  pkg_cv_THEORA_CFLAGS=`$PKG_CONFIG --cflags "theora >= 1.0alpha7 " 2>/dev/null`
 
23306
else
 
23307
  pkg_failed=yes
 
23308
fi
 
23309
    fi
 
23310
else
 
23311
        pkg_failed=untried
 
23312
fi
 
23313
if test -n "$PKG_CONFIG"; then
 
23314
    if test -n "$THEORA_LIBS"; then
 
23315
        pkg_cv_THEORA_LIBS="$THEORA_LIBS"
 
23316
    else
 
23317
        if test -n "$PKG_CONFIG" && \
 
23318
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"theora >= 1.0alpha7 \"") >&5
 
23319
  ($PKG_CONFIG --exists --print-errors "theora >= 1.0alpha7 ") 2>&5
 
23320
  ac_status=$?
 
23321
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23322
  (exit $ac_status); }; then
 
23323
  pkg_cv_THEORA_LIBS=`$PKG_CONFIG --libs "theora >= 1.0alpha7 " 2>/dev/null`
 
23324
else
 
23325
  pkg_failed=yes
 
23326
fi
 
23327
    fi
 
23328
else
 
23329
        pkg_failed=untried
 
23330
fi
 
23331
 
 
23332
 
 
23333
 
 
23334
if test $pkg_failed = yes; then
 
23335
 
 
23336
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
23337
        _pkg_short_errors_supported=yes
 
23338
else
 
23339
        _pkg_short_errors_supported=no
 
23340
fi
 
23341
        if test $_pkg_short_errors_supported = yes; then
 
23342
                THEORA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "theora >= 1.0alpha7 "`
 
23343
        else
 
23344
                THEORA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "theora >= 1.0alpha7 "`
 
23345
        fi
 
23346
        # Put the nasty error message in config.log where it belongs
 
23347
        echo "$THEORA_PKG_ERRORS" >&5
 
23348
 
 
23349
        { echo "$as_me:$LINENO: result: no" >&5
 
23350
echo "${ECHO_T}no" >&6; }
 
23351
                have_theora=no
 
23352
elif test $pkg_failed = untried; then
 
23353
        have_theora=no
 
23354
else
 
23355
        THEORA_CFLAGS=$pkg_cv_THEORA_CFLAGS
 
23356
        THEORA_LIBS=$pkg_cv_THEORA_LIBS
 
23357
        { echo "$as_me:$LINENO: result: yes" >&5
 
23358
echo "${ECHO_T}yes" >&6; }
 
23359
        have_theora=yes
 
23360
fi
 
23361
 
 
23362
                VIDEO_CFLAGS=" $FFMPEG_CFLAGS $SDL_CFLAGS -DVIDEO_ENABLED "
 
23363
                VIDEO_LIBS=" $FFMPEG_LIBS $SDL_LIBS"
 
23364
        fi
 
23365
 
 
23366
 
 
23367
 
 
23368
 
 
23369
 
 
23370
 
 
23371
if test "$video" = "true"; then
 
23372
  BUILD_VIDEO_TRUE=
 
23373
  BUILD_VIDEO_FALSE='#'
 
23374
else
 
23375
  BUILD_VIDEO_TRUE='#'
 
23376
  BUILD_VIDEO_FALSE=
 
23377
fi
 
23378
 
 
23379
 
 
23380
 
 
23381
if test "$have_theora" = "yes"; then
 
23382
  BUILD_THEORA_TRUE=
 
23383
  BUILD_THEORA_FALSE='#'
 
23384
else
 
23385
  BUILD_THEORA_TRUE='#'
 
23386
  BUILD_THEORA_FALSE=
 
23387
fi
 
23388
 
 
23389
 
 
23390
if test -e $srcdir/../oRTP/include/ortp/ortp.h ; then
 
23391
        echo "building from linphone source tree, using ../oRTP/include/ortp/ortp.h"
 
23392
        ORTP_CFLAGS="-I\$(top_srcdir)/../oRTP/include"
 
23393
        ORTP_LIBS="\$(top_builddir)/../oRTP/src/libortp.la"
 
23394
        if test x$ac_cv_c_bigendian = xyes ; then
 
23395
                ORTP_CFLAGS="$ORTP_CFLAGS -DORTP_BIGENDIAN"
 
23396
        fi
 
23397
else
 
23398
 
 
23399
pkg_failed=no
 
23400
{ echo "$as_me:$LINENO: checking for ORTP" >&5
 
23401
echo $ECHO_N "checking for ORTP... $ECHO_C" >&6; }
 
23402
 
 
23403
if test -n "$PKG_CONFIG"; then
 
23404
    if test -n "$ORTP_CFLAGS"; then
 
23405
        pkg_cv_ORTP_CFLAGS="$ORTP_CFLAGS"
 
23406
    else
 
23407
        if test -n "$PKG_CONFIG" && \
 
23408
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"ortp >= 0.9.0\"") >&5
 
23409
  ($PKG_CONFIG --exists --print-errors "ortp >= 0.9.0") 2>&5
 
23410
  ac_status=$?
 
23411
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23412
  (exit $ac_status); }; then
 
23413
  pkg_cv_ORTP_CFLAGS=`$PKG_CONFIG --cflags "ortp >= 0.9.0" 2>/dev/null`
 
23414
else
 
23415
  pkg_failed=yes
 
23416
fi
 
23417
    fi
 
23418
else
 
23419
        pkg_failed=untried
 
23420
fi
 
23421
if test -n "$PKG_CONFIG"; then
 
23422
    if test -n "$ORTP_LIBS"; then
 
23423
        pkg_cv_ORTP_LIBS="$ORTP_LIBS"
 
23424
    else
 
23425
        if test -n "$PKG_CONFIG" && \
 
23426
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"ortp >= 0.9.0\"") >&5
 
23427
  ($PKG_CONFIG --exists --print-errors "ortp >= 0.9.0") 2>&5
 
23428
  ac_status=$?
 
23429
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23430
  (exit $ac_status); }; then
 
23431
  pkg_cv_ORTP_LIBS=`$PKG_CONFIG --libs "ortp >= 0.9.0" 2>/dev/null`
 
23432
else
 
23433
  pkg_failed=yes
 
23434
fi
 
23435
    fi
 
23436
else
 
23437
        pkg_failed=untried
 
23438
fi
 
23439
 
 
23440
 
 
23441
 
 
23442
if test $pkg_failed = yes; then
 
23443
 
 
23444
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
23445
        _pkg_short_errors_supported=yes
 
23446
else
 
23447
        _pkg_short_errors_supported=no
 
23448
fi
 
23449
        if test $_pkg_short_errors_supported = yes; then
 
23450
                ORTP_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "ortp >= 0.9.0"`
 
23451
        else
 
23452
                ORTP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "ortp >= 0.9.0"`
 
23453
        fi
 
23454
        # Put the nasty error message in config.log where it belongs
 
23455
        echo "$ORTP_PKG_ERRORS" >&5
 
23456
 
 
23457
        { echo "$as_me:$LINENO: result: no" >&5
 
23458
echo "${ECHO_T}no" >&6; }
 
23459
                 { { echo "$as_me:$LINENO: error: Couldn't find ortp library" >&5
 
23460
echo "$as_me: error: Couldn't find ortp library" >&2;}
 
23461
   { (exit 1); exit 1; }; }
 
23462
elif test $pkg_failed = untried; then
 
23463
         { { echo "$as_me:$LINENO: error: Couldn't find ortp library" >&5
 
23464
echo "$as_me: error: Couldn't find ortp library" >&2;}
 
23465
   { (exit 1); exit 1; }; }
 
23466
else
 
23467
        ORTP_CFLAGS=$pkg_cv_ORTP_CFLAGS
 
23468
        ORTP_LIBS=$pkg_cv_ORTP_LIBS
 
23469
        { echo "$as_me:$LINENO: result: yes" >&5
 
23470
echo "${ECHO_T}yes" >&6; }
 
23471
        :
 
23472
fi
 
23473
fi
 
23474
 
 
23475
 
 
23476
 
 
23477
 
 
23478
 
 
23479
for ac_header in dlfcn.h
 
23480
do
 
23481
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
23482
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
23483
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
23484
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
23485
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
23486
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23487
fi
 
23488
ac_res=`eval echo '${'$as_ac_Header'}'`
 
23489
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
23490
echo "${ECHO_T}$ac_res" >&6; }
 
23491
else
 
23492
  # Is the header compilable?
 
23493
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
23494
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
23495
cat >conftest.$ac_ext <<_ACEOF
 
23496
/* confdefs.h.  */
 
23497
_ACEOF
 
23498
cat confdefs.h >>conftest.$ac_ext
 
23499
cat >>conftest.$ac_ext <<_ACEOF
 
23500
/* end confdefs.h.  */
 
23501
$ac_includes_default
 
23502
#include <$ac_header>
 
23503
_ACEOF
 
23504
rm -f conftest.$ac_objext
 
23505
if { (ac_try="$ac_compile"
 
23506
case "(($ac_try" in
 
23507
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23508
  *) ac_try_echo=$ac_try;;
 
23509
esac
 
23510
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23511
  (eval "$ac_compile") 2>conftest.er1
 
23512
  ac_status=$?
 
23513
  grep -v '^ *+' conftest.er1 >conftest.err
 
23514
  rm -f conftest.er1
 
23515
  cat conftest.err >&5
 
23516
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23517
  (exit $ac_status); } &&
 
23518
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
23519
  { (case "(($ac_try" in
 
23520
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23521
  *) ac_try_echo=$ac_try;;
 
23522
esac
 
23523
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23524
  (eval "$ac_try") 2>&5
 
23525
  ac_status=$?
 
23526
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23527
  (exit $ac_status); }; } &&
 
23528
         { ac_try='test -s conftest.$ac_objext'
 
23529
  { (case "(($ac_try" in
 
23530
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23531
  *) ac_try_echo=$ac_try;;
 
23532
esac
 
23533
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23534
  (eval "$ac_try") 2>&5
 
23535
  ac_status=$?
 
23536
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23537
  (exit $ac_status); }; }; then
 
23538
  ac_header_compiler=yes
 
23539
else
 
23540
  echo "$as_me: failed program was:" >&5
 
23541
sed 's/^/| /' conftest.$ac_ext >&5
 
23542
 
 
23543
        ac_header_compiler=no
 
23544
fi
 
23545
 
 
23546
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
23547
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
23548
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
23549
 
 
23550
# Is the header present?
 
23551
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
23552
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
23553
cat >conftest.$ac_ext <<_ACEOF
 
23554
/* confdefs.h.  */
 
23555
_ACEOF
 
23556
cat confdefs.h >>conftest.$ac_ext
 
23557
cat >>conftest.$ac_ext <<_ACEOF
 
23558
/* end confdefs.h.  */
 
23559
#include <$ac_header>
 
23560
_ACEOF
 
23561
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
23562
case "(($ac_try" in
 
23563
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23564
  *) ac_try_echo=$ac_try;;
 
23565
esac
 
23566
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23567
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
23568
  ac_status=$?
 
23569
  grep -v '^ *+' conftest.er1 >conftest.err
 
23570
  rm -f conftest.er1
 
23571
  cat conftest.err >&5
 
23572
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23573
  (exit $ac_status); } >/dev/null; then
 
23574
  if test -s conftest.err; then
 
23575
    ac_cpp_err=$ac_c_preproc_warn_flag
 
23576
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
23577
  else
 
23578
    ac_cpp_err=
 
23579
  fi
 
23580
else
 
23581
  ac_cpp_err=yes
 
23582
fi
 
23583
if test -z "$ac_cpp_err"; then
 
23584
  ac_header_preproc=yes
 
23585
else
 
23586
  echo "$as_me: failed program was:" >&5
 
23587
sed 's/^/| /' conftest.$ac_ext >&5
 
23588
 
 
23589
  ac_header_preproc=no
 
23590
fi
 
23591
 
 
23592
rm -f conftest.err conftest.$ac_ext
 
23593
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
23594
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
23595
 
 
23596
# So?  What about this header?
 
23597
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
23598
  yes:no: )
 
23599
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
23600
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
23601
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
23602
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
23603
    ac_header_preproc=yes
 
23604
    ;;
 
23605
  no:yes:* )
 
23606
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
23607
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
23608
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
23609
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
23610
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
23611
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
23612
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
23613
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
23614
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
23615
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
23616
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
23617
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
23618
 
 
23619
    ;;
 
23620
esac
 
23621
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
23622
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
23623
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
23624
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23625
else
 
23626
  eval "$as_ac_Header=\$ac_header_preproc"
 
23627
fi
 
23628
ac_res=`eval echo '${'$as_ac_Header'}'`
 
23629
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
23630
echo "${ECHO_T}$ac_res" >&6; }
 
23631
 
 
23632
fi
 
23633
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
23634
  cat >>confdefs.h <<_ACEOF
 
23635
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
23636
_ACEOF
 
23637
 
 
23638
fi
 
23639
 
 
23640
done
 
23641
 
 
23642
have_dlopen=false
 
23643
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
23644
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
 
23645
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
23646
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23647
else
 
23648
  ac_check_lib_save_LIBS=$LIBS
 
23649
LIBS="-ldl  $LIBS"
 
23650
cat >conftest.$ac_ext <<_ACEOF
 
23651
/* confdefs.h.  */
 
23652
_ACEOF
 
23653
cat confdefs.h >>conftest.$ac_ext
 
23654
cat >>conftest.$ac_ext <<_ACEOF
 
23655
/* end confdefs.h.  */
 
23656
 
 
23657
/* Override any GCC internal prototype to avoid an error.
 
23658
   Use char because int might match the return type of a GCC
 
23659
   builtin and then its argument prototype would still apply.  */
 
23660
#ifdef __cplusplus
 
23661
extern "C"
 
23662
#endif
 
23663
char dlopen ();
 
23664
int
 
23665
main ()
 
23666
{
 
23667
return dlopen ();
 
23668
  ;
 
23669
  return 0;
 
23670
}
 
23671
_ACEOF
 
23672
rm -f conftest.$ac_objext conftest$ac_exeext
 
23673
if { (ac_try="$ac_link"
 
23674
case "(($ac_try" in
 
23675
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23676
  *) ac_try_echo=$ac_try;;
 
23677
esac
 
23678
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23679
  (eval "$ac_link") 2>conftest.er1
 
23680
  ac_status=$?
 
23681
  grep -v '^ *+' conftest.er1 >conftest.err
 
23682
  rm -f conftest.er1
 
23683
  cat conftest.err >&5
 
23684
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23685
  (exit $ac_status); } &&
 
23686
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
23687
  { (case "(($ac_try" in
 
23688
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23689
  *) ac_try_echo=$ac_try;;
 
23690
esac
 
23691
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23692
  (eval "$ac_try") 2>&5
 
23693
  ac_status=$?
 
23694
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23695
  (exit $ac_status); }; } &&
 
23696
         { ac_try='test -s conftest$ac_exeext'
 
23697
  { (case "(($ac_try" in
 
23698
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23699
  *) ac_try_echo=$ac_try;;
 
23700
esac
 
23701
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23702
  (eval "$ac_try") 2>&5
 
23703
  ac_status=$?
 
23704
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23705
  (exit $ac_status); }; }; then
 
23706
  ac_cv_lib_dl_dlopen=yes
 
23707
else
 
23708
  echo "$as_me: failed program was:" >&5
 
23709
sed 's/^/| /' conftest.$ac_ext >&5
 
23710
 
 
23711
        ac_cv_lib_dl_dlopen=no
 
23712
fi
 
23713
 
 
23714
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
23715
      conftest$ac_exeext conftest.$ac_ext
 
23716
LIBS=$ac_check_lib_save_LIBS
 
23717
fi
 
23718
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
23719
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
 
23720
if test $ac_cv_lib_dl_dlopen = yes; then
 
23721
  LIBS="$LIBS -ldl"; have_dlopen=true
 
23722
fi
 
23723
 
 
23724
{ echo "$as_me:$LINENO: checking for dlopen" >&5
 
23725
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
 
23726
if test "${ac_cv_func_dlopen+set}" = set; then
 
23727
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23728
else
 
23729
  cat >conftest.$ac_ext <<_ACEOF
 
23730
/* confdefs.h.  */
 
23731
_ACEOF
 
23732
cat confdefs.h >>conftest.$ac_ext
 
23733
cat >>conftest.$ac_ext <<_ACEOF
 
23734
/* end confdefs.h.  */
 
23735
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
23736
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
23737
#define dlopen innocuous_dlopen
 
23738
 
 
23739
/* System header to define __stub macros and hopefully few prototypes,
 
23740
    which can conflict with char dlopen (); below.
 
23741
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
23742
    <limits.h> exists even on freestanding compilers.  */
 
23743
 
 
23744
#ifdef __STDC__
 
23745
# include <limits.h>
 
23746
#else
 
23747
# include <assert.h>
 
23748
#endif
 
23749
 
 
23750
#undef dlopen
 
23751
 
 
23752
/* Override any GCC internal prototype to avoid an error.
 
23753
   Use char because int might match the return type of a GCC
 
23754
   builtin and then its argument prototype would still apply.  */
 
23755
#ifdef __cplusplus
 
23756
extern "C"
 
23757
#endif
 
23758
char dlopen ();
 
23759
/* The GNU C library defines this for functions which it implements
 
23760
    to always fail with ENOSYS.  Some functions are actually named
 
23761
    something starting with __ and the normal name is an alias.  */
 
23762
#if defined __stub_dlopen || defined __stub___dlopen
 
23763
choke me
 
23764
#endif
 
23765
 
 
23766
int
 
23767
main ()
 
23768
{
 
23769
return dlopen ();
 
23770
  ;
 
23771
  return 0;
 
23772
}
 
23773
_ACEOF
 
23774
rm -f conftest.$ac_objext conftest$ac_exeext
 
23775
if { (ac_try="$ac_link"
 
23776
case "(($ac_try" in
 
23777
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23778
  *) ac_try_echo=$ac_try;;
 
23779
esac
 
23780
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23781
  (eval "$ac_link") 2>conftest.er1
 
23782
  ac_status=$?
 
23783
  grep -v '^ *+' conftest.er1 >conftest.err
 
23784
  rm -f conftest.er1
 
23785
  cat conftest.err >&5
 
23786
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23787
  (exit $ac_status); } &&
 
23788
         { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
 
23789
  { (case "(($ac_try" in
 
23790
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23791
  *) ac_try_echo=$ac_try;;
 
23792
esac
 
23793
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23794
  (eval "$ac_try") 2>&5
 
23795
  ac_status=$?
 
23796
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23797
  (exit $ac_status); }; } &&
 
23798
         { ac_try='test -s conftest$ac_exeext'
 
23799
  { (case "(($ac_try" in
 
23800
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23801
  *) ac_try_echo=$ac_try;;
 
23802
esac
 
23803
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23804
  (eval "$ac_try") 2>&5
 
23805
  ac_status=$?
 
23806
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23807
  (exit $ac_status); }; }; then
 
23808
  ac_cv_func_dlopen=yes
 
23809
else
 
23810
  echo "$as_me: failed program was:" >&5
 
23811
sed 's/^/| /' conftest.$ac_ext >&5
 
23812
 
 
23813
        ac_cv_func_dlopen=no
 
23814
fi
 
23815
 
 
23816
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
23817
      conftest$ac_exeext conftest.$ac_ext
 
23818
fi
 
23819
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
23820
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
 
23821
if test $ac_cv_func_dlopen = yes; then
 
23822
  have_dlopen=true
 
23823
fi
 
23824
 
 
23825
if test "$have_dlopen" = "true" ; then
 
23826
 
 
23827
cat >>confdefs.h <<\_ACEOF
 
23828
#define HAVE_DLOPEN 1
 
23829
_ACEOF
 
23830
 
 
23831
fi
 
23832
 
 
23833
PACKAGE_PLUGINS_DIR=`eval echo $prefix/lib/mediastreamer/plugins`
 
23834
 
 
23835
cat >>confdefs.h <<_ACEOF
 
23836
#define PACKAGE_PLUGINS_DIR "$PACKAGE_PLUGINS_DIR"
 
23837
_ACEOF
 
23838
 
 
23839
 
 
23840
 
 
23841
 
 
23842
 
 
23843
# Extract the first word of "epm", so it can be a program name with args.
 
23844
set dummy epm; ac_word=$2
 
23845
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
23846
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
23847
if test "${ac_cv_path_EPM+set}" = set; then
 
23848
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23849
else
 
23850
  case $EPM in
 
23851
  [\\/]* | ?:[\\/]*)
 
23852
  ac_cv_path_EPM="$EPM" # Let the user override the test with a path.
 
23853
  ;;
 
23854
  *)
 
23855
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
23856
for as_dir in $PATH
 
23857
do
 
23858
  IFS=$as_save_IFS
 
23859
  test -z "$as_dir" && as_dir=.
 
23860
  for ac_exec_ext in '' $ac_executable_extensions; do
 
23861
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
23862
    ac_cv_path_EPM="$as_dir/$ac_word$ac_exec_ext"
 
23863
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
23864
    break 2
 
23865
  fi
 
23866
done
 
23867
done
 
23868
IFS=$as_save_IFS
 
23869
 
 
23870
  test -z "$ac_cv_path_EPM" && ac_cv_path_EPM="false"
 
23871
  ;;
 
23872
esac
 
23873
fi
 
23874
EPM=$ac_cv_path_EPM
 
23875
if test -n "$EPM"; then
 
23876
  { echo "$as_me:$LINENO: result: $EPM" >&5
 
23877
echo "${ECHO_T}$EPM" >&6; }
 
23878
else
 
23879
  { echo "$as_me:$LINENO: result: no" >&5
 
23880
echo "${ECHO_T}no" >&6; }
 
23881
fi
 
23882
 
 
23883
 
 
23884
# Extract the first word of "mkepmlist", so it can be a program name with args.
 
23885
set dummy mkepmlist; ac_word=$2
 
23886
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
23887
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
23888
if test "${ac_cv_path_MKEPMLIST+set}" = set; then
 
23889
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23890
else
 
23891
  case $MKEPMLIST in
 
23892
  [\\/]* | ?:[\\/]*)
 
23893
  ac_cv_path_MKEPMLIST="$MKEPMLIST" # Let the user override the test with a path.
 
23894
  ;;
 
23895
  *)
 
23896
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
23897
for as_dir in $PATH
 
23898
do
 
23899
  IFS=$as_save_IFS
 
23900
  test -z "$as_dir" && as_dir=.
 
23901
  for ac_exec_ext in '' $ac_executable_extensions; do
 
23902
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
23903
    ac_cv_path_MKEPMLIST="$as_dir/$ac_word$ac_exec_ext"
 
23904
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
23905
    break 2
 
23906
  fi
 
23907
done
 
23908
done
 
23909
IFS=$as_save_IFS
 
23910
 
 
23911
  test -z "$ac_cv_path_MKEPMLIST" && ac_cv_path_MKEPMLIST="false"
 
23912
  ;;
 
23913
esac
 
23914
fi
 
23915
MKEPMLIST=$ac_cv_path_MKEPMLIST
 
23916
if test -n "$MKEPMLIST"; then
 
23917
  { echo "$as_me:$LINENO: result: $MKEPMLIST" >&5
 
23918
echo "${ECHO_T}$MKEPMLIST" >&6; }
 
23919
else
 
23920
  { echo "$as_me:$LINENO: result: no" >&5
 
23921
echo "${ECHO_T}no" >&6; }
 
23922
fi
 
23923
 
 
23924
 
 
23925
# Extract the first word of "epminstall", so it can be a program name with args.
 
23926
set dummy epminstall; ac_word=$2
 
23927
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
23928
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
23929
if test "${ac_cv_path_EPMINSTALL+set}" = set; then
 
23930
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23931
else
 
23932
  case $EPMINSTALL in
 
23933
  [\\/]* | ?:[\\/]*)
 
23934
  ac_cv_path_EPMINSTALL="$EPMINSTALL" # Let the user override the test with a path.
 
23935
  ;;
 
23936
  *)
 
23937
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
23938
for as_dir in $PATH
 
23939
do
 
23940
  IFS=$as_save_IFS
 
23941
  test -z "$as_dir" && as_dir=.
 
23942
  for ac_exec_ext in '' $ac_executable_extensions; do
 
23943
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
 
23944
    ac_cv_path_EPMINSTALL="$as_dir/$ac_word$ac_exec_ext"
 
23945
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
23946
    break 2
 
23947
  fi
 
23948
done
 
23949
done
 
23950
IFS=$as_save_IFS
 
23951
 
 
23952
  test -z "$ac_cv_path_EPMINSTALL" && ac_cv_path_EPMINSTALL="false"
 
23953
  ;;
 
23954
esac
 
23955
fi
 
23956
EPMINSTALL=$ac_cv_path_EPMINSTALL
 
23957
if test -n "$EPMINSTALL"; then
 
23958
  { echo "$as_me:$LINENO: result: $EPMINSTALL" >&5
 
23959
echo "${ECHO_T}$EPMINSTALL" >&6; }
 
23960
else
 
23961
  { echo "$as_me:$LINENO: result: no" >&5
 
23962
echo "${ECHO_T}no" >&6; }
 
23963
fi
 
23964
 
 
23965
 
 
23966
 
 
23967
 
 
23968
if test $EPM != false && test $MKEPMLIST != false && test $EPMINSTALL != false; then
 
23969
  WITH_EPM_TRUE=
 
23970
  WITH_EPM_FALSE='#'
 
23971
else
 
23972
  WITH_EPM_TRUE='#'
 
23973
  WITH_EPM_FALSE=
 
23974
fi
 
23975
 
 
23976
 
 
23977
 
 
23978
# Preferred packaging system, as per EPM terminology
 
23979
case $target in
 
23980
*-*-linux*)
 
23981
        if test -f /etc/debian_version ; then
 
23982
                EPM_PKG_EXT=deb
 
23983
        else
 
23984
                EPM_PKG_EXT=rpm
 
23985
        fi
 
23986
        ;;
 
23987
*-hp-hpux*)
 
23988
        EPM_PKG_EXT=depot.gz;;
 
23989
*-dec-osf*)
 
23990
        EPM_PKG_EXT=setld;;
 
23991
esac
 
23992
 
 
23993
 
 
23994
# System software User & Group names
 
23995
case $target in
 
23996
*-*-linux*)
 
23997
        SYS_USER=root
 
23998
        SYS_GROUP=root
 
23999
        ;;
 
24000
*-*-hpux*|*-dec-osf*)
 
24001
        SYS_USER=bin
 
24002
        SYS_GROUP=bin
 
24003
        ;;
 
24004
esac
 
24005
 
 
24006
 
 
24007
 
 
24008
# CPU Architecture
 
24009
case $target_cpu in
 
24010
i?86)           ARCH=i386;;
 
24011
*)              ARCH=$target_cpu;;
 
24012
esac
 
24013
 
 
24014
 
 
24015
# Various other packaging variables, that can be over-ridden ad `make
 
24016
# package' time
 
24017
SUMMARY="A mediastreaming library."
 
24018
 
 
24019
PACKAGER=anonymous
 
24020
 
 
24021
LICENSE=GPL
 
24022
 
 
24023
VENDOR=Linphone
 
24024
 
 
24025
RELEASE=1
 
24026
 
 
24027
 
 
24028
 
 
24029
ac_config_files="$ac_config_files Makefile include/Makefile include/mediastreamer2/Makefile src/Makefile tests/Makefile build/Makefile build/win32native/Makefile build/wince/Makefile plugins/Makefile plugins/plugins.mk mediastreamer.pc mediastreamer2.spec"
 
24030
 
 
24031
cat >confcache <<\_ACEOF
 
24032
# This file is a shell script that caches the results of configure
 
24033
# tests run on this system so they can be shared between configure
 
24034
# scripts and configure runs, see configure's option --config-cache.
 
24035
# It is not useful on other systems.  If it contains results you don't
 
24036
# want to keep, you may remove or edit it.
 
24037
#
 
24038
# config.status only pays attention to the cache file if you give it
 
24039
# the --recheck option to rerun configure.
 
24040
#
 
24041
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
24042
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
24043
# following values.
 
24044
 
 
24045
_ACEOF
 
24046
 
 
24047
# The following way of writing the cache mishandles newlines in values,
 
24048
# but we know of no workaround that is simple, portable, and efficient.
 
24049
# So, we kill variables containing newlines.
 
24050
# Ultrix sh set writes to stderr and can't be redirected directly,
 
24051
# and sets the high bit in the cache file unless we assign to the vars.
 
24052
(
 
24053
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
24054
    eval ac_val=\$$ac_var
 
24055
    case $ac_val in #(
 
24056
    *${as_nl}*)
 
24057
      case $ac_var in #(
 
24058
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 
24059
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
24060
      esac
 
24061
      case $ac_var in #(
 
24062
      _ | IFS | as_nl) ;; #(
 
24063
      *) $as_unset $ac_var ;;
 
24064
      esac ;;
 
24065
    esac
 
24066
  done
 
24067
 
 
24068
  (set) 2>&1 |
 
24069
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
24070
    *${as_nl}ac_space=\ *)
 
24071
      # `set' does not quote correctly, so add quotes (double-quote
 
24072
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
24073
      sed -n \
 
24074
        "s/'/'\\\\''/g;
 
24075
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
24076
      ;; #(
 
24077
    *)
 
24078
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
24079
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
24080
      ;;
 
24081
    esac |
 
24082
    sort
 
24083
) |
 
24084
  sed '
 
24085
     /^ac_cv_env_/b end
 
24086
     t clear
 
24087
     :clear
 
24088
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
24089
     t end
 
24090
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
24091
     :end' >>confcache
 
24092
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
24093
  if test -w "$cache_file"; then
 
24094
    test "x$cache_file" != "x/dev/null" &&
 
24095
      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
 
24096
echo "$as_me: updating cache $cache_file" >&6;}
 
24097
    cat confcache >$cache_file
 
24098
  else
 
24099
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
 
24100
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
24101
  fi
 
24102
fi
 
24103
rm -f confcache
 
24104
 
 
24105
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
24106
# Let make expand exec_prefix.
 
24107
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
24108
 
 
24109
DEFS=-DHAVE_CONFIG_H
 
24110
 
 
24111
ac_libobjs=
 
24112
ac_ltlibobjs=
 
24113
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
24114
  # 1. Remove the extension, and $U if already installed.
 
24115
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
24116
  ac_i=`echo "$ac_i" | sed "$ac_script"`
 
24117
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
24118
  #    will be set to the directory where LIBOBJS objects are built.
 
24119
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
24120
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
 
24121
done
 
24122
LIBOBJS=$ac_libobjs
 
24123
 
 
24124
LTLIBOBJS=$ac_ltlibobjs
 
24125
 
 
24126
 
 
24127
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
24128
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
24129
Usually this means the macro was only invoked conditionally." >&5
 
24130
echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
24131
Usually this means the macro was only invoked conditionally." >&2;}
 
24132
   { (exit 1); exit 1; }; }
 
24133
fi
 
24134
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
24135
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
24136
Usually this means the macro was only invoked conditionally." >&5
 
24137
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
24138
Usually this means the macro was only invoked conditionally." >&2;}
 
24139
   { (exit 1); exit 1; }; }
 
24140
fi
 
24141
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
24142
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
24143
Usually this means the macro was only invoked conditionally." >&5
 
24144
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
24145
Usually this means the macro was only invoked conditionally." >&2;}
 
24146
   { (exit 1); exit 1; }; }
 
24147
fi
 
24148
if test -z "${BUILD_OSS_TRUE}" && test -z "${BUILD_OSS_FALSE}"; then
 
24149
  { { echo "$as_me:$LINENO: error: conditional \"BUILD_OSS\" was never defined.
 
24150
Usually this means the macro was only invoked conditionally." >&5
 
24151
echo "$as_me: error: conditional \"BUILD_OSS\" was never defined.
 
24152
Usually this means the macro was only invoked conditionally." >&2;}
 
24153
   { (exit 1); exit 1; }; }
 
24154
fi
 
24155
if test -z "${BUILD_ALSA_TRUE}" && test -z "${BUILD_ALSA_FALSE}"; then
 
24156
  { { echo "$as_me:$LINENO: error: conditional \"BUILD_ALSA\" was never defined.
 
24157
Usually this means the macro was only invoked conditionally." >&5
 
24158
echo "$as_me: error: conditional \"BUILD_ALSA\" was never defined.
 
24159
Usually this means the macro was only invoked conditionally." >&2;}
 
24160
   { (exit 1); exit 1; }; }
 
24161
fi
 
24162
if test -z "${BUILD_ARTS_TRUE}" && test -z "${BUILD_ARTS_FALSE}"; then
 
24163
  { { echo "$as_me:$LINENO: error: conditional \"BUILD_ARTS\" was never defined.
 
24164
Usually this means the macro was only invoked conditionally." >&5
 
24165
echo "$as_me: error: conditional \"BUILD_ARTS\" was never defined.
 
24166
Usually this means the macro was only invoked conditionally." >&2;}
 
24167
   { (exit 1); exit 1; }; }
 
24168
fi
 
24169
if test -z "${BUILD_PORTAUDIO_TRUE}" && test -z "${BUILD_PORTAUDIO_FALSE}"; then
 
24170
  { { echo "$as_me:$LINENO: error: conditional \"BUILD_PORTAUDIO\" was never defined.
 
24171
Usually this means the macro was only invoked conditionally." >&5
 
24172
echo "$as_me: error: conditional \"BUILD_PORTAUDIO\" was never defined.
 
24173
Usually this means the macro was only invoked conditionally." >&2;}
 
24174
   { (exit 1); exit 1; }; }
 
24175
fi
 
24176
if test -z "${BUILD_SPEEX_TRUE}" && test -z "${BUILD_SPEEX_FALSE}"; then
 
24177
  { { echo "$as_me:$LINENO: error: conditional \"BUILD_SPEEX\" was never defined.
 
24178
Usually this means the macro was only invoked conditionally." >&5
 
24179
echo "$as_me: error: conditional \"BUILD_SPEEX\" was never defined.
 
24180
Usually this means the macro was only invoked conditionally." >&2;}
 
24181
   { (exit 1); exit 1; }; }
 
24182
fi
 
24183
if test -z "${BUILD_GSM_TRUE}" && test -z "${BUILD_GSM_FALSE}"; then
 
24184
  { { echo "$as_me:$LINENO: error: conditional \"BUILD_GSM\" was never defined.
 
24185
Usually this means the macro was only invoked conditionally." >&5
 
24186
echo "$as_me: error: conditional \"BUILD_GSM\" was never defined.
 
24187
Usually this means the macro was only invoked conditionally." >&2;}
 
24188
   { (exit 1); exit 1; }; }
 
24189
fi
 
24190
if test -z "${BUILD_VIDEO_TRUE}" && test -z "${BUILD_VIDEO_FALSE}"; then
 
24191
  { { echo "$as_me:$LINENO: error: conditional \"BUILD_VIDEO\" was never defined.
 
24192
Usually this means the macro was only invoked conditionally." >&5
 
24193
echo "$as_me: error: conditional \"BUILD_VIDEO\" was never defined.
 
24194
Usually this means the macro was only invoked conditionally." >&2;}
 
24195
   { (exit 1); exit 1; }; }
 
24196
fi
 
24197
if test -z "${BUILD_THEORA_TRUE}" && test -z "${BUILD_THEORA_FALSE}"; then
 
24198
  { { echo "$as_me:$LINENO: error: conditional \"BUILD_THEORA\" was never defined.
 
24199
Usually this means the macro was only invoked conditionally." >&5
 
24200
echo "$as_me: error: conditional \"BUILD_THEORA\" was never defined.
 
24201
Usually this means the macro was only invoked conditionally." >&2;}
 
24202
   { (exit 1); exit 1; }; }
 
24203
fi
 
24204
if test -z "${WITH_EPM_TRUE}" && test -z "${WITH_EPM_FALSE}"; then
 
24205
  { { echo "$as_me:$LINENO: error: conditional \"WITH_EPM\" was never defined.
 
24206
Usually this means the macro was only invoked conditionally." >&5
 
24207
echo "$as_me: error: conditional \"WITH_EPM\" was never defined.
 
24208
Usually this means the macro was only invoked conditionally." >&2;}
 
24209
   { (exit 1); exit 1; }; }
 
24210
fi
 
24211
 
 
24212
: ${CONFIG_STATUS=./config.status}
 
24213
ac_clean_files_save=$ac_clean_files
 
24214
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
24215
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
24216
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
24217
cat >$CONFIG_STATUS <<_ACEOF
 
24218
#! $SHELL
 
24219
# Generated by $as_me.
 
24220
# Run this file to recreate the current configuration.
 
24221
# Compiler output produced by configure, useful for debugging
 
24222
# configure, is in config.log if it exists.
 
24223
 
 
24224
debug=false
 
24225
ac_cs_recheck=false
 
24226
ac_cs_silent=false
 
24227
SHELL=\${CONFIG_SHELL-$SHELL}
 
24228
_ACEOF
 
24229
 
 
24230
cat >>$CONFIG_STATUS <<\_ACEOF
 
24231
## --------------------- ##
 
24232
## M4sh Initialization.  ##
 
24233
## --------------------- ##
 
24234
 
 
24235
# Be Bourne compatible
 
24236
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
24237
  emulate sh
 
24238
  NULLCMD=:
 
24239
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
24240
  # is contrary to our usage.  Disable this feature.
 
24241
  alias -g '${1+"$@"}'='"$@"'
 
24242
  setopt NO_GLOB_SUBST
 
24243
else
 
24244
  case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
 
24245
fi
 
24246
BIN_SH=xpg4; export BIN_SH # for Tru64
 
24247
DUALCASE=1; export DUALCASE # for MKS sh
 
24248
 
 
24249
 
 
24250
# PATH needs CR
 
24251
# Avoid depending upon Character Ranges.
 
24252
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
24253
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
24254
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
24255
as_cr_digits='0123456789'
 
24256
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
24257
 
 
24258
# The user is always right.
 
24259
if test "${PATH_SEPARATOR+set}" != set; then
 
24260
  echo "#! /bin/sh" >conf$$.sh
 
24261
  echo  "exit 0"   >>conf$$.sh
 
24262
  chmod +x conf$$.sh
 
24263
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
24264
    PATH_SEPARATOR=';'
 
24265
  else
 
24266
    PATH_SEPARATOR=:
 
24267
  fi
 
24268
  rm -f conf$$.sh
 
24269
fi
 
24270
 
 
24271
# Support unset when possible.
 
24272
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
24273
  as_unset=unset
 
24274
else
 
24275
  as_unset=false
 
24276
fi
 
24277
 
 
24278
 
 
24279
# IFS
 
24280
# We need space, tab and new line, in precisely that order.  Quoting is
 
24281
# there to prevent editors from complaining about space-tab.
 
24282
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
24283
# splitting by setting IFS to empty value.)
 
24284
as_nl='
 
24285
'
 
24286
IFS=" ""        $as_nl"
 
24287
 
 
24288
# Find who we are.  Look in the path if we contain no directory separator.
 
24289
case $0 in
 
24290
  *[\\/]* ) as_myself=$0 ;;
 
24291
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
24292
for as_dir in $PATH
 
24293
do
 
24294
  IFS=$as_save_IFS
 
24295
  test -z "$as_dir" && as_dir=.
 
24296
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
24297
done
 
24298
IFS=$as_save_IFS
 
24299
 
 
24300
     ;;
 
24301
esac
 
24302
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
24303
# in which case we are not to be found in the path.
 
24304
if test "x$as_myself" = x; then
 
24305
  as_myself=$0
 
24306
fi
 
24307
if test ! -f "$as_myself"; then
 
24308
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
24309
  { (exit 1); exit 1; }
 
24310
fi
 
24311
 
 
24312
# Work around bugs in pre-3.0 UWIN ksh.
 
24313
for as_var in ENV MAIL MAILPATH
 
24314
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
24315
done
 
24316
PS1='$ '
 
24317
PS2='> '
 
24318
PS4='+ '
 
24319
 
 
24320
# NLS nuisances.
 
24321
for as_var in \
 
24322
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
24323
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
24324
  LC_TELEPHONE LC_TIME
 
24325
do
 
24326
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
24327
    eval $as_var=C; export $as_var
 
24328
  else
 
24329
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
24330
  fi
 
24331
done
 
24332
 
 
24333
# Required to use basename.
 
24334
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
24335
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
24336
  as_expr=expr
 
24337
else
 
24338
  as_expr=false
 
24339
fi
 
24340
 
 
24341
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
24342
  as_basename=basename
 
24343
else
 
24344
  as_basename=false
 
24345
fi
 
24346
 
 
24347
 
 
24348
# Name of the executable.
 
24349
as_me=`$as_basename -- "$0" ||
 
24350
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
24351
         X"$0" : 'X\(//\)$' \| \
 
24352
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
24353
echo X/"$0" |
 
24354
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
24355
            s//\1/
 
24356
            q
 
24357
          }
 
24358
          /^X\/\(\/\/\)$/{
 
24359
            s//\1/
 
24360
            q
 
24361
          }
 
24362
          /^X\/\(\/\).*/{
 
24363
            s//\1/
 
24364
            q
 
24365
          }
 
24366
          s/.*/./; q'`
 
24367
 
 
24368
# CDPATH.
 
24369
$as_unset CDPATH
 
24370
 
 
24371
 
 
24372
 
 
24373
  as_lineno_1=$LINENO
 
24374
  as_lineno_2=$LINENO
 
24375
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
24376
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
24377
 
 
24378
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
24379
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
24380
  # line-number line after each line using $LINENO; the second 'sed'
 
24381
  # does the real work.  The second script uses 'N' to pair each
 
24382
  # line-number line with the line containing $LINENO, and appends
 
24383
  # trailing '-' during substitution so that $LINENO is not a special
 
24384
  # case at line end.
 
24385
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
24386
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
24387
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
24388
  sed -n '
 
24389
    p
 
24390
    /[$]LINENO/=
 
24391
  ' <$as_myself |
 
24392
    sed '
 
24393
      s/[$]LINENO.*/&-/
 
24394
      t lineno
 
24395
      b
 
24396
      :lineno
 
24397
      N
 
24398
      :loop
 
24399
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
24400
      t loop
 
24401
      s/-\n.*//
 
24402
    ' >$as_me.lineno &&
 
24403
  chmod +x "$as_me.lineno" ||
 
24404
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
24405
   { (exit 1); exit 1; }; }
 
24406
 
 
24407
  # Don't try to exec as it changes $[0], causing all sort of problems
 
24408
  # (the dirname of $[0] is not the place where we might find the
 
24409
  # original and so on.  Autoconf is especially sensitive to this).
 
24410
  . "./$as_me.lineno"
 
24411
  # Exit status is that of the last command.
 
24412
  exit
 
24413
}
 
24414
 
 
24415
 
 
24416
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
24417
  as_dirname=dirname
 
24418
else
 
24419
  as_dirname=false
 
24420
fi
 
24421
 
 
24422
ECHO_C= ECHO_N= ECHO_T=
 
24423
case `echo -n x` in
 
24424
-n*)
 
24425
  case `echo 'x\c'` in
 
24426
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
24427
  *)   ECHO_C='\c';;
 
24428
  esac;;
 
24429
*)
 
24430
  ECHO_N='-n';;
 
24431
esac
 
24432
 
 
24433
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
24434
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
24435
  as_expr=expr
 
24436
else
 
24437
  as_expr=false
 
24438
fi
 
24439
 
 
24440
rm -f conf$$ conf$$.exe conf$$.file
 
24441
if test -d conf$$.dir; then
 
24442
  rm -f conf$$.dir/conf$$.file
 
24443
else
 
24444
  rm -f conf$$.dir
 
24445
  mkdir conf$$.dir
 
24446
fi
 
24447
echo >conf$$.file
 
24448
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
24449
  as_ln_s='ln -s'
 
24450
  # ... but there are two gotchas:
 
24451
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
24452
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
24453
  # In both cases, we have to default to `cp -p'.
 
24454
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
24455
    as_ln_s='cp -p'
 
24456
elif ln conf$$.file conf$$ 2>/dev/null; then
 
24457
  as_ln_s=ln
 
24458
else
 
24459
  as_ln_s='cp -p'
 
24460
fi
 
24461
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
24462
rmdir conf$$.dir 2>/dev/null
 
24463
 
 
24464
if mkdir -p . 2>/dev/null; then
 
24465
  as_mkdir_p=:
 
24466
else
 
24467
  test -d ./-p && rmdir ./-p
 
24468
  as_mkdir_p=false
 
24469
fi
 
24470
 
 
24471
# Find out whether ``test -x'' works.  Don't use a zero-byte file, as
 
24472
# systems may use methods other than mode bits to determine executability.
 
24473
cat >conf$$.file <<_ASEOF
 
24474
#! /bin/sh
 
24475
exit 0
 
24476
_ASEOF
 
24477
chmod +x conf$$.file
 
24478
if test -x conf$$.file >/dev/null 2>&1; then
 
24479
  as_executable_p="test -x"
 
24480
else
 
24481
  as_executable_p=:
 
24482
fi
 
24483
rm -f conf$$.file
 
24484
 
 
24485
# Sed expression to map a string onto a valid CPP name.
 
24486
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
24487
 
 
24488
# Sed expression to map a string onto a valid variable name.
 
24489
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
24490
 
 
24491
 
 
24492
exec 6>&1
 
24493
 
 
24494
# Save the log message, to keep $[0] and so on meaningful, and to
 
24495
# report actual input values of CONFIG_FILES etc. instead of their
 
24496
# values after options handling.
 
24497
ac_log="
 
24498
This file was extended by mediastreamer $as_me 2.0.0, which was
 
24499
generated by GNU Autoconf 2.60a.  Invocation command line was
 
24500
 
 
24501
  CONFIG_FILES    = $CONFIG_FILES
 
24502
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
24503
  CONFIG_LINKS    = $CONFIG_LINKS
 
24504
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
24505
  $ $0 $@
 
24506
 
 
24507
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
24508
"
 
24509
 
 
24510
_ACEOF
 
24511
 
 
24512
cat >>$CONFIG_STATUS <<_ACEOF
 
24513
# Files that config.status was made for.
 
24514
config_files="$ac_config_files"
 
24515
config_headers="$ac_config_headers"
 
24516
config_commands="$ac_config_commands"
 
24517
 
 
24518
_ACEOF
 
24519
 
 
24520
cat >>$CONFIG_STATUS <<\_ACEOF
 
24521
ac_cs_usage="\
 
24522
\`$as_me' instantiates files from templates according to the
 
24523
current configuration.
 
24524
 
 
24525
Usage: $0 [OPTIONS] [FILE]...
 
24526
 
 
24527
  -h, --help       print this help, then exit
 
24528
  -V, --version    print version number and configuration settings, then exit
 
24529
  -q, --quiet      do not print progress messages
 
24530
  -d, --debug      don't remove temporary files
 
24531
      --recheck    update $as_me by reconfiguring in the same conditions
 
24532
  --file=FILE[:TEMPLATE]
 
24533
                   instantiate the configuration file FILE
 
24534
  --header=FILE[:TEMPLATE]
 
24535
                   instantiate the configuration header FILE
 
24536
 
 
24537
Configuration files:
 
24538
$config_files
 
24539
 
 
24540
Configuration headers:
 
24541
$config_headers
 
24542
 
 
24543
Configuration commands:
 
24544
$config_commands
 
24545
 
 
24546
Report bugs to <bug-autoconf@gnu.org>."
 
24547
 
 
24548
_ACEOF
 
24549
cat >>$CONFIG_STATUS <<_ACEOF
 
24550
ac_cs_version="\\
 
24551
mediastreamer config.status 2.0.0
 
24552
configured by $0, generated by GNU Autoconf 2.60a,
 
24553
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
 
24554
 
 
24555
Copyright (C) 2006 Free Software Foundation, Inc.
 
24556
This config.status script is free software; the Free Software Foundation
 
24557
gives unlimited permission to copy, distribute and modify it."
 
24558
 
 
24559
ac_pwd='$ac_pwd'
 
24560
srcdir='$srcdir'
 
24561
INSTALL='$INSTALL'
 
24562
_ACEOF
 
24563
 
 
24564
cat >>$CONFIG_STATUS <<\_ACEOF
 
24565
# If no file are specified by the user, then we need to provide default
 
24566
# value.  By we need to know if files were specified by the user.
 
24567
ac_need_defaults=:
 
24568
while test $# != 0
 
24569
do
 
24570
  case $1 in
 
24571
  --*=*)
 
24572
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
24573
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
24574
    ac_shift=:
 
24575
    ;;
 
24576
  *)
 
24577
    ac_option=$1
 
24578
    ac_optarg=$2
 
24579
    ac_shift=shift
 
24580
    ;;
 
24581
  esac
 
24582
 
 
24583
  case $ac_option in
 
24584
  # Handling of the options.
 
24585
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
24586
    ac_cs_recheck=: ;;
 
24587
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
24588
    echo "$ac_cs_version"; exit ;;
 
24589
  --debug | --debu | --deb | --de | --d | -d )
 
24590
    debug=: ;;
 
24591
  --file | --fil | --fi | --f )
 
24592
    $ac_shift
 
24593
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
24594
    ac_need_defaults=false;;
 
24595
  --header | --heade | --head | --hea )
 
24596
    $ac_shift
 
24597
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
24598
    ac_need_defaults=false;;
 
24599
  --he | --h)
 
24600
    # Conflict between --help and --header
 
24601
    { echo "$as_me: error: ambiguous option: $1
 
24602
Try \`$0 --help' for more information." >&2
 
24603
   { (exit 1); exit 1; }; };;
 
24604
  --help | --hel | -h )
 
24605
    echo "$ac_cs_usage"; exit ;;
 
24606
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
24607
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
24608
    ac_cs_silent=: ;;
 
24609
 
 
24610
  # This is an error.
 
24611
  -*) { echo "$as_me: error: unrecognized option: $1
 
24612
Try \`$0 --help' for more information." >&2
 
24613
   { (exit 1); exit 1; }; } ;;
 
24614
 
 
24615
  *) ac_config_targets="$ac_config_targets $1"
 
24616
     ac_need_defaults=false ;;
 
24617
 
 
24618
  esac
 
24619
  shift
 
24620
done
 
24621
 
 
24622
ac_configure_extra_args=
 
24623
 
 
24624
if $ac_cs_silent; then
 
24625
  exec 6>/dev/null
 
24626
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
24627
fi
 
24628
 
 
24629
_ACEOF
 
24630
cat >>$CONFIG_STATUS <<_ACEOF
 
24631
if \$ac_cs_recheck; then
 
24632
  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
24633
  CONFIG_SHELL=$SHELL
 
24634
  export CONFIG_SHELL
 
24635
  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
24636
fi
 
24637
 
 
24638
_ACEOF
 
24639
cat >>$CONFIG_STATUS <<\_ACEOF
 
24640
exec 5>>config.log
 
24641
{
 
24642
  echo
 
24643
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
24644
## Running $as_me. ##
 
24645
_ASBOX
 
24646
  echo "$ac_log"
 
24647
} >&5
 
24648
 
 
24649
_ACEOF
 
24650
cat >>$CONFIG_STATUS <<_ACEOF
 
24651
#
 
24652
# INIT-COMMANDS
 
24653
#
 
24654
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
24655
 
 
24656
_ACEOF
 
24657
 
 
24658
cat >>$CONFIG_STATUS <<\_ACEOF
 
24659
 
 
24660
# Handling of arguments.
 
24661
for ac_config_target in $ac_config_targets
 
24662
do
 
24663
  case $ac_config_target in
 
24664
    "mediastreamer-config.h") CONFIG_HEADERS="$CONFIG_HEADERS mediastreamer-config.h" ;;
 
24665
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
24666
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
24667
    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
 
24668
    "include/mediastreamer2/Makefile") CONFIG_FILES="$CONFIG_FILES include/mediastreamer2/Makefile" ;;
 
24669
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 
24670
    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
 
24671
    "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;;
 
24672
    "build/win32native/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32native/Makefile" ;;
 
24673
    "build/wince/Makefile") CONFIG_FILES="$CONFIG_FILES build/wince/Makefile" ;;
 
24674
    "plugins/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;;
 
24675
    "plugins/plugins.mk") CONFIG_FILES="$CONFIG_FILES plugins/plugins.mk" ;;
 
24676
    "mediastreamer.pc") CONFIG_FILES="$CONFIG_FILES mediastreamer.pc" ;;
 
24677
    "mediastreamer2.spec") CONFIG_FILES="$CONFIG_FILES mediastreamer2.spec" ;;
 
24678
 
 
24679
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
24680
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
24681
   { (exit 1); exit 1; }; };;
 
24682
  esac
 
24683
done
 
24684
 
 
24685
 
 
24686
# If the user did not use the arguments to specify the items to instantiate,
 
24687
# then the envvar interface is used.  Set only those that are not.
 
24688
# We use the long form for the default assignment because of an extremely
 
24689
# bizarre bug on SunOS 4.1.3.
 
24690
if $ac_need_defaults; then
 
24691
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
24692
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
24693
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
24694
fi
 
24695
 
 
24696
# Have a temporary directory for convenience.  Make it in the build tree
 
24697
# simply because there is no reason against having it here, and in addition,
 
24698
# creating and moving files from /tmp can sometimes cause problems.
 
24699
# Hook for its removal unless debugging.
 
24700
# Note that there is a small window in which the directory will not be cleaned:
 
24701
# after its creation but before its name has been assigned to `$tmp'.
 
24702
$debug ||
 
24703
{
 
24704
  tmp=
 
24705
  trap 'exit_status=$?
 
24706
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 
24707
' 0
 
24708
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
24709
}
 
24710
# Create a (secure) tmp directory for tmp files.
 
24711
 
 
24712
{
 
24713
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
24714
  test -n "$tmp" && test -d "$tmp"
 
24715
}  ||
 
24716
{
 
24717
  tmp=./conf$$-$RANDOM
 
24718
  (umask 077 && mkdir "$tmp")
 
24719
} ||
 
24720
{
 
24721
   echo "$me: cannot create a temporary directory in ." >&2
 
24722
   { (exit 1); exit 1; }
 
24723
}
 
24724
 
 
24725
#
 
24726
# Set up the sed scripts for CONFIG_FILES section.
 
24727
#
 
24728
 
 
24729
# No need to generate the scripts if there are no CONFIG_FILES.
 
24730
# This happens for instance when ./config.status config.h
 
24731
if test -n "$CONFIG_FILES"; then
 
24732
 
 
24733
_ACEOF
 
24734
 
 
24735
 
 
24736
 
 
24737
ac_delim='%!_!# '
 
24738
for ac_last_try in false false false false false :; do
 
24739
  cat >conf$$subs.sed <<_ACEOF
 
24740
SHELL!$SHELL$ac_delim
 
24741
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
 
24742
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
 
24743
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
 
24744
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
 
24745
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
 
24746
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
 
24747
exec_prefix!$exec_prefix$ac_delim
 
24748
prefix!$prefix$ac_delim
 
24749
program_transform_name!$program_transform_name$ac_delim
 
24750
bindir!$bindir$ac_delim
 
24751
sbindir!$sbindir$ac_delim
 
24752
libexecdir!$libexecdir$ac_delim
 
24753
datarootdir!$datarootdir$ac_delim
 
24754
datadir!$datadir$ac_delim
 
24755
sysconfdir!$sysconfdir$ac_delim
 
24756
sharedstatedir!$sharedstatedir$ac_delim
 
24757
localstatedir!$localstatedir$ac_delim
 
24758
includedir!$includedir$ac_delim
 
24759
oldincludedir!$oldincludedir$ac_delim
 
24760
docdir!$docdir$ac_delim
 
24761
infodir!$infodir$ac_delim
 
24762
htmldir!$htmldir$ac_delim
 
24763
dvidir!$dvidir$ac_delim
 
24764
pdfdir!$pdfdir$ac_delim
 
24765
psdir!$psdir$ac_delim
 
24766
libdir!$libdir$ac_delim
 
24767
localedir!$localedir$ac_delim
 
24768
mandir!$mandir$ac_delim
 
24769
DEFS!$DEFS$ac_delim
 
24770
ECHO_C!$ECHO_C$ac_delim
 
24771
ECHO_N!$ECHO_N$ac_delim
 
24772
ECHO_T!$ECHO_T$ac_delim
 
24773
LIBS!$LIBS$ac_delim
 
24774
build_alias!$build_alias$ac_delim
 
24775
host_alias!$host_alias$ac_delim
 
24776
target_alias!$target_alias$ac_delim
 
24777
build!$build$ac_delim
 
24778
build_cpu!$build_cpu$ac_delim
 
24779
build_vendor!$build_vendor$ac_delim
 
24780
build_os!$build_os$ac_delim
 
24781
host!$host$ac_delim
 
24782
host_cpu!$host_cpu$ac_delim
 
24783
host_vendor!$host_vendor$ac_delim
 
24784
host_os!$host_os$ac_delim
 
24785
target!$target$ac_delim
 
24786
target_cpu!$target_cpu$ac_delim
 
24787
target_vendor!$target_vendor$ac_delim
 
24788
target_os!$target_os$ac_delim
 
24789
LIBMEDIASTREAMER_SO_VERSION!$LIBMEDIASTREAMER_SO_VERSION$ac_delim
 
24790
MEDIASTREAMER_VERSION!$MEDIASTREAMER_VERSION$ac_delim
 
24791
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
 
24792
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
 
24793
INSTALL_DATA!$INSTALL_DATA$ac_delim
 
24794
CYGPATH_W!$CYGPATH_W$ac_delim
 
24795
PACKAGE!$PACKAGE$ac_delim
 
24796
VERSION!$VERSION$ac_delim
 
24797
ACLOCAL!$ACLOCAL$ac_delim
 
24798
AUTOCONF!$AUTOCONF$ac_delim
 
24799
AUTOMAKE!$AUTOMAKE$ac_delim
 
24800
AUTOHEADER!$AUTOHEADER$ac_delim
 
24801
MAKEINFO!$MAKEINFO$ac_delim
 
24802
install_sh!$install_sh$ac_delim
 
24803
STRIP!$STRIP$ac_delim
 
24804
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
 
24805
mkdir_p!$mkdir_p$ac_delim
 
24806
AWK!$AWK$ac_delim
 
24807
SET_MAKE!$SET_MAKE$ac_delim
 
24808
am__leading_dot!$am__leading_dot$ac_delim
 
24809
AMTAR!$AMTAR$ac_delim
 
24810
am__tar!$am__tar$ac_delim
 
24811
am__untar!$am__untar$ac_delim
 
24812
CC!$CC$ac_delim
 
24813
CFLAGS!$CFLAGS$ac_delim
 
24814
LDFLAGS!$LDFLAGS$ac_delim
 
24815
CPPFLAGS!$CPPFLAGS$ac_delim
 
24816
ac_ct_CC!$ac_ct_CC$ac_delim
 
24817
EXEEXT!$EXEEXT$ac_delim
 
24818
OBJEXT!$OBJEXT$ac_delim
 
24819
DEPDIR!$DEPDIR$ac_delim
 
24820
am__include!$am__include$ac_delim
 
24821
am__quote!$am__quote$ac_delim
 
24822
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
 
24823
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
 
24824
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
 
24825
CCDEPMODE!$CCDEPMODE$ac_delim
 
24826
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
 
24827
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
 
24828
GREP!$GREP$ac_delim
 
24829
EGREP!$EGREP$ac_delim
 
24830
LN_S!$LN_S$ac_delim
 
24831
ECHO!$ECHO$ac_delim
 
24832
AR!$AR$ac_delim
 
24833
RANLIB!$RANLIB$ac_delim
 
24834
CPP!$CPP$ac_delim
 
24835
CXX!$CXX$ac_delim
 
24836
CXXFLAGS!$CXXFLAGS$ac_delim
 
24837
_ACEOF
 
24838
 
 
24839
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
 
24840
    break
 
24841
  elif $ac_last_try; then
 
24842
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
24843
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
24844
   { (exit 1); exit 1; }; }
 
24845
  else
 
24846
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
24847
  fi
 
24848
done
 
24849
 
 
24850
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
24851
if test -n "$ac_eof"; then
 
24852
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
24853
  ac_eof=`expr $ac_eof + 1`
 
24854
fi
 
24855
 
 
24856
cat >>$CONFIG_STATUS <<_ACEOF
 
24857
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
 
24858
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
24859
_ACEOF
 
24860
sed '
 
24861
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
24862
s/^/s,@/; s/!/@,|#_!!_#|/
 
24863
:n
 
24864
t n
 
24865
s/'"$ac_delim"'$/,g/; t
 
24866
s/$/\\/; p
 
24867
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
24868
' >>$CONFIG_STATUS <conf$$subs.sed
 
24869
rm -f conf$$subs.sed
 
24870
cat >>$CONFIG_STATUS <<_ACEOF
 
24871
CEOF$ac_eof
 
24872
_ACEOF
 
24873
 
 
24874
 
 
24875
ac_delim='%!_!# '
 
24876
for ac_last_try in false false false false false :; do
 
24877
  cat >conf$$subs.sed <<_ACEOF
 
24878
ac_ct_CXX!$ac_ct_CXX$ac_delim
 
24879
CXXDEPMODE!$CXXDEPMODE$ac_delim
 
24880
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
 
24881
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
 
24882
CXXCPP!$CXXCPP$ac_delim
 
24883
F77!$F77$ac_delim
 
24884
FFLAGS!$FFLAGS$ac_delim
 
24885
ac_ct_F77!$ac_ct_F77$ac_delim
 
24886
LIBTOOL!$LIBTOOL$ac_delim
 
24887
MSPLUGINS_CFLAGS!$MSPLUGINS_CFLAGS$ac_delim
 
24888
MSPLUGINS_LIBS!$MSPLUGINS_LIBS$ac_delim
 
24889
BUILD_OSS_TRUE!$BUILD_OSS_TRUE$ac_delim
 
24890
BUILD_OSS_FALSE!$BUILD_OSS_FALSE$ac_delim
 
24891
ALSA_LIBS!$ALSA_LIBS$ac_delim
 
24892
BUILD_ALSA_TRUE!$BUILD_ALSA_TRUE$ac_delim
 
24893
BUILD_ALSA_FALSE!$BUILD_ALSA_FALSE$ac_delim
 
24894
ARTS_LIBS!$ARTS_LIBS$ac_delim
 
24895
BUILD_ARTS_TRUE!$BUILD_ARTS_TRUE$ac_delim
 
24896
BUILD_ARTS_FALSE!$BUILD_ARTS_FALSE$ac_delim
 
24897
PORTAUDIO_LIBS!$PORTAUDIO_LIBS$ac_delim
 
24898
BUILD_PORTAUDIO_TRUE!$BUILD_PORTAUDIO_TRUE$ac_delim
 
24899
BUILD_PORTAUDIO_FALSE!$BUILD_PORTAUDIO_FALSE$ac_delim
 
24900
PKG_CONFIG!$PKG_CONFIG$ac_delim
 
24901
JACK_CFLAGS!$JACK_CFLAGS$ac_delim
 
24902
JACK_LIBS!$JACK_LIBS$ac_delim
 
24903
SAMPLERATE_CFLAGS!$SAMPLERATE_CFLAGS$ac_delim
 
24904
SAMPLERATE_LIBS!$SAMPLERATE_LIBS$ac_delim
 
24905
SPEEX_CFLAGS!$SPEEX_CFLAGS$ac_delim
 
24906
SPEEX_LIBS!$SPEEX_LIBS$ac_delim
 
24907
BUILD_SPEEX_TRUE!$BUILD_SPEEX_TRUE$ac_delim
 
24908
BUILD_SPEEX_FALSE!$BUILD_SPEEX_FALSE$ac_delim
 
24909
GSM_CFLAGS!$GSM_CFLAGS$ac_delim
 
24910
GSM_LIBS!$GSM_LIBS$ac_delim
 
24911
BUILD_GSM_TRUE!$BUILD_GSM_TRUE$ac_delim
 
24912
BUILD_GSM_FALSE!$BUILD_GSM_FALSE$ac_delim
 
24913
FFMPEG_CFLAGS!$FFMPEG_CFLAGS$ac_delim
 
24914
FFMPEG_LIBS!$FFMPEG_LIBS$ac_delim
 
24915
SDL_CFLAGS!$SDL_CFLAGS$ac_delim
 
24916
SDL_LIBS!$SDL_LIBS$ac_delim
 
24917
THEORA_CFLAGS!$THEORA_CFLAGS$ac_delim
 
24918
THEORA_LIBS!$THEORA_LIBS$ac_delim
 
24919
VIDEO_CFLAGS!$VIDEO_CFLAGS$ac_delim
 
24920
VIDEO_LIBS!$VIDEO_LIBS$ac_delim
 
24921
BUILD_VIDEO_TRUE!$BUILD_VIDEO_TRUE$ac_delim
 
24922
BUILD_VIDEO_FALSE!$BUILD_VIDEO_FALSE$ac_delim
 
24923
BUILD_THEORA_TRUE!$BUILD_THEORA_TRUE$ac_delim
 
24924
BUILD_THEORA_FALSE!$BUILD_THEORA_FALSE$ac_delim
 
24925
ORTP_CFLAGS!$ORTP_CFLAGS$ac_delim
 
24926
ORTP_LIBS!$ORTP_LIBS$ac_delim
 
24927
PACKAGE_PLUGINS_DIR!$PACKAGE_PLUGINS_DIR$ac_delim
 
24928
EPM!$EPM$ac_delim
 
24929
MKEPMLIST!$MKEPMLIST$ac_delim
 
24930
EPMINSTALL!$EPMINSTALL$ac_delim
 
24931
WITH_EPM_TRUE!$WITH_EPM_TRUE$ac_delim
 
24932
WITH_EPM_FALSE!$WITH_EPM_FALSE$ac_delim
 
24933
EPM_PKG_EXT!$EPM_PKG_EXT$ac_delim
 
24934
SYS_USER!$SYS_USER$ac_delim
 
24935
SYS_GROUP!$SYS_GROUP$ac_delim
 
24936
ARCH!$ARCH$ac_delim
 
24937
SUMMARY!$SUMMARY$ac_delim
 
24938
PACKAGER!$PACKAGER$ac_delim
 
24939
LICENSE!$LICENSE$ac_delim
 
24940
VENDOR!$VENDOR$ac_delim
 
24941
RELEASE!$RELEASE$ac_delim
 
24942
LIBOBJS!$LIBOBJS$ac_delim
 
24943
LTLIBOBJS!$LTLIBOBJS$ac_delim
 
24944
_ACEOF
 
24945
 
 
24946
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 66; then
 
24947
    break
 
24948
  elif $ac_last_try; then
 
24949
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
24950
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
24951
   { (exit 1); exit 1; }; }
 
24952
  else
 
24953
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
24954
  fi
 
24955
done
 
24956
 
 
24957
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
24958
if test -n "$ac_eof"; then
 
24959
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
24960
  ac_eof=`expr $ac_eof + 1`
 
24961
fi
 
24962
 
 
24963
cat >>$CONFIG_STATUS <<_ACEOF
 
24964
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
 
24965
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
 
24966
_ACEOF
 
24967
sed '
 
24968
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
24969
s/^/s,@/; s/!/@,|#_!!_#|/
 
24970
:n
 
24971
t n
 
24972
s/'"$ac_delim"'$/,g/; t
 
24973
s/$/\\/; p
 
24974
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
24975
' >>$CONFIG_STATUS <conf$$subs.sed
 
24976
rm -f conf$$subs.sed
 
24977
cat >>$CONFIG_STATUS <<_ACEOF
 
24978
:end
 
24979
s/|#_!!_#|//g
 
24980
CEOF$ac_eof
 
24981
_ACEOF
 
24982
 
 
24983
 
 
24984
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
24985
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
24986
# trailing colons and then remove the whole line if VPATH becomes empty
 
24987
# (actually we leave an empty line to preserve line numbers).
 
24988
if test "x$srcdir" = x.; then
 
24989
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
24990
s/:*\$(srcdir):*/:/
 
24991
s/:*\${srcdir}:*/:/
 
24992
s/:*@srcdir@:*/:/
 
24993
s/^\([^=]*=[     ]*\):*/\1/
 
24994
s/:*$//
 
24995
s/^[^=]*=[       ]*$//
 
24996
}'
 
24997
fi
 
24998
 
 
24999
cat >>$CONFIG_STATUS <<\_ACEOF
 
25000
fi # test -n "$CONFIG_FILES"
 
25001
 
 
25002
 
 
25003
for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
 
25004
do
 
25005
  case $ac_tag in
 
25006
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
25007
  esac
 
25008
  case $ac_mode$ac_tag in
 
25009
  :[FHL]*:*);;
 
25010
  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
 
25011
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
 
25012
   { (exit 1); exit 1; }; };;
 
25013
  :[FH]-) ac_tag=-:-;;
 
25014
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
25015
  esac
 
25016
  ac_save_IFS=$IFS
 
25017
  IFS=:
 
25018
  set x $ac_tag
 
25019
  IFS=$ac_save_IFS
 
25020
  shift
 
25021
  ac_file=$1
 
25022
  shift
 
25023
 
 
25024
  case $ac_mode in
 
25025
  :L) ac_source=$1;;
 
25026
  :[FH])
 
25027
    ac_file_inputs=
 
25028
    for ac_f
 
25029
    do
 
25030
      case $ac_f in
 
25031
      -) ac_f="$tmp/stdin";;
 
25032
      *) # Look for the file first in the build tree, then in the source tree
 
25033
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
25034
         # because $ac_f cannot contain `:'.
 
25035
         test -f "$ac_f" ||
 
25036
           case $ac_f in
 
25037
           [\\/$]*) false;;
 
25038
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
25039
           esac ||
 
25040
           { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
 
25041
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
 
25042
   { (exit 1); exit 1; }; };;
 
25043
      esac
 
25044
      ac_file_inputs="$ac_file_inputs $ac_f"
 
25045
    done
 
25046
 
 
25047
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
25048
    # use $as_me), people would be surprised to read:
 
25049
    #    /* config.h.  Generated by config.status.  */
 
25050
    configure_input="Generated from "`IFS=:
 
25051
          echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
 
25052
    if test x"$ac_file" != x-; then
 
25053
      configure_input="$ac_file.  $configure_input"
 
25054
      { echo "$as_me:$LINENO: creating $ac_file" >&5
 
25055
echo "$as_me: creating $ac_file" >&6;}
 
25056
    fi
 
25057
 
 
25058
    case $ac_tag in
 
25059
    *:-:* | *:-) cat >"$tmp/stdin";;
 
25060
    esac
 
25061
    ;;
 
25062
  esac
 
25063
 
 
25064
  ac_dir=`$as_dirname -- "$ac_file" ||
 
25065
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
25066
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
25067
         X"$ac_file" : 'X\(//\)$' \| \
 
25068
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
25069
echo X"$ac_file" |
 
25070
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
25071
            s//\1/
 
25072
            q
 
25073
          }
 
25074
          /^X\(\/\/\)[^/].*/{
 
25075
            s//\1/
 
25076
            q
 
25077
          }
 
25078
          /^X\(\/\/\)$/{
 
25079
            s//\1/
 
25080
            q
 
25081
          }
 
25082
          /^X\(\/\).*/{
 
25083
            s//\1/
 
25084
            q
 
25085
          }
 
25086
          s/.*/./; q'`
 
25087
  { as_dir="$ac_dir"
 
25088
  case $as_dir in #(
 
25089
  -*) as_dir=./$as_dir;;
 
25090
  esac
 
25091
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
25092
    as_dirs=
 
25093
    while :; do
 
25094
      case $as_dir in #(
 
25095
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 
25096
      *) as_qdir=$as_dir;;
 
25097
      esac
 
25098
      as_dirs="'$as_qdir' $as_dirs"
 
25099
      as_dir=`$as_dirname -- "$as_dir" ||
 
25100
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
25101
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
25102
         X"$as_dir" : 'X\(//\)$' \| \
 
25103
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
25104
echo X"$as_dir" |
 
25105
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
25106
            s//\1/
 
25107
            q
 
25108
          }
 
25109
          /^X\(\/\/\)[^/].*/{
 
25110
            s//\1/
 
25111
            q
 
25112
          }
 
25113
          /^X\(\/\/\)$/{
 
25114
            s//\1/
 
25115
            q
 
25116
          }
 
25117
          /^X\(\/\).*/{
 
25118
            s//\1/
 
25119
            q
 
25120
          }
 
25121
          s/.*/./; q'`
 
25122
      test -d "$as_dir" && break
 
25123
    done
 
25124
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
25125
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
25126
echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
25127
   { (exit 1); exit 1; }; }; }
 
25128
  ac_builddir=.
 
25129
 
 
25130
case "$ac_dir" in
 
25131
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
25132
*)
 
25133
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
25134
  # A ".." for each directory in $ac_dir_suffix.
 
25135
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
25136
  case $ac_top_builddir_sub in
 
25137
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
25138
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
25139
  esac ;;
 
25140
esac
 
25141
ac_abs_top_builddir=$ac_pwd
 
25142
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
25143
# for backward compatibility:
 
25144
ac_top_builddir=$ac_top_build_prefix
 
25145
 
 
25146
case $srcdir in
 
25147
  .)  # We are building in place.
 
25148
    ac_srcdir=.
 
25149
    ac_top_srcdir=$ac_top_builddir_sub
 
25150
    ac_abs_top_srcdir=$ac_pwd ;;
 
25151
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
25152
    ac_srcdir=$srcdir$ac_dir_suffix;
 
25153
    ac_top_srcdir=$srcdir
 
25154
    ac_abs_top_srcdir=$srcdir ;;
 
25155
  *) # Relative name.
 
25156
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
25157
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
25158
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
25159
esac
 
25160
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
25161
 
 
25162
 
 
25163
  case $ac_mode in
 
25164
  :F)
 
25165
  #
 
25166
  # CONFIG_FILE
 
25167
  #
 
25168
 
 
25169
  case $INSTALL in
 
25170
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
25171
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
25172
  esac
 
25173
_ACEOF
 
25174
 
 
25175
cat >>$CONFIG_STATUS <<\_ACEOF
 
25176
# If the template does not know about datarootdir, expand it.
 
25177
# FIXME: This hack should be removed a few years after 2.60.
 
25178
ac_datarootdir_hack=; ac_datarootdir_seen=
 
25179
 
 
25180
case `sed -n '/datarootdir/ {
 
25181
  p
 
25182
  q
 
25183
}
 
25184
/@datadir@/p
 
25185
/@docdir@/p
 
25186
/@infodir@/p
 
25187
/@localedir@/p
 
25188
/@mandir@/p
 
25189
' $ac_file_inputs` in
 
25190
*datarootdir*) ac_datarootdir_seen=yes;;
 
25191
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
25192
  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
25193
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
25194
_ACEOF
 
25195
cat >>$CONFIG_STATUS <<_ACEOF
 
25196
  ac_datarootdir_hack='
 
25197
  s&@datadir@&$datadir&g
 
25198
  s&@docdir@&$docdir&g
 
25199
  s&@infodir@&$infodir&g
 
25200
  s&@localedir@&$localedir&g
 
25201
  s&@mandir@&$mandir&g
 
25202
    s&\\\${datarootdir}&$datarootdir&g' ;;
 
25203
esac
 
25204
_ACEOF
 
25205
 
 
25206
# Neutralize VPATH when `$srcdir' = `.'.
 
25207
# Shell code in configure.ac might set extrasub.
 
25208
# FIXME: do we really want to maintain this feature?
 
25209
cat >>$CONFIG_STATUS <<_ACEOF
 
25210
  sed "$ac_vpsub
 
25211
$extrasub
 
25212
_ACEOF
 
25213
cat >>$CONFIG_STATUS <<\_ACEOF
 
25214
:t
 
25215
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
25216
s&@configure_input@&$configure_input&;t t
 
25217
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
25218
s&@srcdir@&$ac_srcdir&;t t
 
25219
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
25220
s&@top_srcdir@&$ac_top_srcdir&;t t
 
25221
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
25222
s&@builddir@&$ac_builddir&;t t
 
25223
s&@abs_builddir@&$ac_abs_builddir&;t t
 
25224
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
25225
s&@INSTALL@&$ac_INSTALL&;t t
 
25226
$ac_datarootdir_hack
 
25227
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
 
25228
 
 
25229
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
25230
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 
25231
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 
25232
  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
25233
which seems to be undefined.  Please make sure it is defined." >&5
 
25234
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
25235
which seems to be undefined.  Please make sure it is defined." >&2;}
 
25236
 
 
25237
  rm -f "$tmp/stdin"
 
25238
  case $ac_file in
 
25239
  -) cat "$tmp/out"; rm -f "$tmp/out";;
 
25240
  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
 
25241
  esac
 
25242
 ;;
 
25243
  :H)
 
25244
  #
 
25245
  # CONFIG_HEADER
 
25246
  #
 
25247
_ACEOF
 
25248
 
 
25249
# Transform confdefs.h into a sed script `conftest.defines', that
 
25250
# substitutes the proper values into config.h.in to produce config.h.
 
25251
rm -f conftest.defines conftest.tail
 
25252
# First, append a space to every undef/define line, to ease matching.
 
25253
echo 's/$/ /' >conftest.defines
 
25254
# Then, protect against being on the right side of a sed subst, or in
 
25255
# an unquoted here document, in config.status.  If some macros were
 
25256
# called several times there might be several #defines for the same
 
25257
# symbol, which is useless.  But do not sort them, since the last
 
25258
# AC_DEFINE must be honored.
 
25259
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
25260
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
 
25261
# NAME is the cpp macro being defined, VALUE is the value it is being given.
 
25262
# PARAMS is the parameter list in the macro definition--in most cases, it's
 
25263
# just an empty string.
 
25264
ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
 
25265
ac_dB='\\)[      (].*,\\1define\\2'
 
25266
ac_dC=' '
 
25267
ac_dD=' ,'
 
25268
 
 
25269
uniq confdefs.h |
 
25270
  sed -n '
 
25271
        t rset
 
25272
        :rset
 
25273
        s/^[     ]*#[    ]*define[       ][      ]*//
 
25274
        t ok
 
25275
        d
 
25276
        :ok
 
25277
        s/[\\&,]/\\&/g
 
25278
        s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
 
25279
        s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
 
25280
  ' >>conftest.defines
 
25281
 
 
25282
# Remove the space that was appended to ease matching.
 
25283
# Then replace #undef with comments.  This is necessary, for
 
25284
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
25285
# on some systems where configure will not decide to define it.
 
25286
# (The regexp can be short, since the line contains either #define or #undef.)
 
25287
echo 's/ $//
 
25288
s,^[     #]*u.*,/* & */,' >>conftest.defines
 
25289
 
 
25290
# Break up conftest.defines:
 
25291
ac_max_sed_lines=50
 
25292
 
 
25293
# First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
 
25294
# Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
 
25295
# Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
 
25296
# et cetera.
 
25297
ac_in='$ac_file_inputs'
 
25298
ac_out='"$tmp/out1"'
 
25299
ac_nxt='"$tmp/out2"'
 
25300
 
 
25301
while :
 
25302
do
 
25303
  # Write a here document:
 
25304
    cat >>$CONFIG_STATUS <<_ACEOF
 
25305
    # First, check the format of the line:
 
25306
    cat >"\$tmp/defines.sed" <<\\CEOF
 
25307
/^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
 
25308
/^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
 
25309
b
 
25310
:def
 
25311
_ACEOF
 
25312
  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
 
25313
  echo 'CEOF
 
25314
    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
 
25315
  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
 
25316
  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
 
25317
  grep . conftest.tail >/dev/null || break
 
25318
  rm -f conftest.defines
 
25319
  mv conftest.tail conftest.defines
 
25320
done
 
25321
rm -f conftest.defines conftest.tail
 
25322
 
 
25323
echo "ac_result=$ac_in" >>$CONFIG_STATUS
 
25324
cat >>$CONFIG_STATUS <<\_ACEOF
 
25325
  if test x"$ac_file" != x-; then
 
25326
    echo "/* $configure_input  */" >"$tmp/config.h"
 
25327
    cat "$ac_result" >>"$tmp/config.h"
 
25328
    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
 
25329
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
25330
echo "$as_me: $ac_file is unchanged" >&6;}
 
25331
    else
 
25332
      rm -f $ac_file
 
25333
      mv "$tmp/config.h" $ac_file
 
25334
    fi
 
25335
  else
 
25336
    echo "/* $configure_input  */"
 
25337
    cat "$ac_result"
 
25338
  fi
 
25339
  rm -f "$tmp/out12"
 
25340
# Compute $ac_file's index in $config_headers.
 
25341
_am_stamp_count=1
 
25342
for _am_header in $config_headers :; do
 
25343
  case $_am_header in
 
25344
    $ac_file | $ac_file:* )
 
25345
      break ;;
 
25346
    * )
 
25347
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
25348
  esac
 
25349
done
 
25350
echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
 
25351
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
25352
         X$ac_file : 'X\(//\)[^/]' \| \
 
25353
         X$ac_file : 'X\(//\)$' \| \
 
25354
         X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
 
25355
echo X$ac_file |
 
25356
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
25357
            s//\1/
 
25358
            q
 
25359
          }
 
25360
          /^X\(\/\/\)[^/].*/{
 
25361
            s//\1/
 
25362
            q
 
25363
          }
 
25364
          /^X\(\/\/\)$/{
 
25365
            s//\1/
 
25366
            q
 
25367
          }
 
25368
          /^X\(\/\).*/{
 
25369
            s//\1/
 
25370
            q
 
25371
          }
 
25372
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
25373
 ;;
 
25374
 
 
25375
  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
 
25376
echo "$as_me: executing $ac_file commands" >&6;}
 
25377
 ;;
 
25378
  esac
 
25379
 
 
25380
 
 
25381
  case $ac_file$ac_mode in
 
25382
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
25383
  # Strip MF so we end up with the name of the file.
 
25384
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
25385
  # Check whether this is an Automake generated Makefile or not.
 
25386
  # We used to match only the files named `Makefile.in', but
 
25387
  # some people rename them; so instead we look at the file content.
 
25388
  # Grep'ing the first line is not enough: some people post-process
 
25389
  # each Makefile.in and add a new line on top of each file to say so.
 
25390
  # So let's grep whole file.
 
25391
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
25392
    dirpart=`$as_dirname -- "$mf" ||
 
25393
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
25394
         X"$mf" : 'X\(//\)[^/]' \| \
 
25395
         X"$mf" : 'X\(//\)$' \| \
 
25396
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 
25397
echo X"$mf" |
 
25398
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
25399
            s//\1/
 
25400
            q
 
25401
          }
 
25402
          /^X\(\/\/\)[^/].*/{
 
25403
            s//\1/
 
25404
            q
 
25405
          }
 
25406
          /^X\(\/\/\)$/{
 
25407
            s//\1/
 
25408
            q
 
25409
          }
 
25410
          /^X\(\/\).*/{
 
25411
            s//\1/
 
25412
            q
 
25413
          }
 
25414
          s/.*/./; q'`
 
25415
  else
 
25416
    continue
 
25417
  fi
 
25418
  # Extract the definition of DEPDIR, am__include, and am__quote
 
25419
  # from the Makefile without running `make'.
 
25420
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
25421
  test -z "$DEPDIR" && continue
 
25422
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
25423
  test -z "am__include" && continue
 
25424
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
25425
  # When using ansi2knr, U may be empty or an underscore; expand it
 
25426
  U=`sed -n 's/^U = //p' < "$mf"`
 
25427
  # Find all dependency output files, they are included files with
 
25428
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
25429
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
25430
  # expansion.
 
25431
  for file in `sed -n "
 
25432
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
25433
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
25434
    # Make sure the directory exists.
 
25435
    test -f "$dirpart/$file" && continue
 
25436
    fdir=`$as_dirname -- "$file" ||
 
25437
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
25438
         X"$file" : 'X\(//\)[^/]' \| \
 
25439
         X"$file" : 'X\(//\)$' \| \
 
25440
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 
25441
echo X"$file" |
 
25442
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
25443
            s//\1/
 
25444
            q
 
25445
          }
 
25446
          /^X\(\/\/\)[^/].*/{
 
25447
            s//\1/
 
25448
            q
 
25449
          }
 
25450
          /^X\(\/\/\)$/{
 
25451
            s//\1/
 
25452
            q
 
25453
          }
 
25454
          /^X\(\/\).*/{
 
25455
            s//\1/
 
25456
            q
 
25457
          }
 
25458
          s/.*/./; q'`
 
25459
    { as_dir=$dirpart/$fdir
 
25460
  case $as_dir in #(
 
25461
  -*) as_dir=./$as_dir;;
 
25462
  esac
 
25463
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
25464
    as_dirs=
 
25465
    while :; do
 
25466
      case $as_dir in #(
 
25467
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 
25468
      *) as_qdir=$as_dir;;
 
25469
      esac
 
25470
      as_dirs="'$as_qdir' $as_dirs"
 
25471
      as_dir=`$as_dirname -- "$as_dir" ||
 
25472
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
25473
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
25474
         X"$as_dir" : 'X\(//\)$' \| \
 
25475
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
25476
echo X"$as_dir" |
 
25477
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
25478
            s//\1/
 
25479
            q
 
25480
          }
 
25481
          /^X\(\/\/\)[^/].*/{
 
25482
            s//\1/
 
25483
            q
 
25484
          }
 
25485
          /^X\(\/\/\)$/{
 
25486
            s//\1/
 
25487
            q
 
25488
          }
 
25489
          /^X\(\/\).*/{
 
25490
            s//\1/
 
25491
            q
 
25492
          }
 
25493
          s/.*/./; q'`
 
25494
      test -d "$as_dir" && break
 
25495
    done
 
25496
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
25497
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
25498
echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
25499
   { (exit 1); exit 1; }; }; }
 
25500
    # echo "creating $dirpart/$file"
 
25501
    echo '# dummy' > "$dirpart/$file"
 
25502
  done
 
25503
done
 
25504
 ;;
 
25505
 
 
25506
  esac
 
25507
done # for ac_tag
 
25508
 
 
25509
 
 
25510
{ (exit 0); exit 0; }
 
25511
_ACEOF
 
25512
chmod +x $CONFIG_STATUS
 
25513
ac_clean_files=$ac_clean_files_save
 
25514
 
 
25515
 
 
25516
# configure is writing to config.log, and then calls config.status.
 
25517
# config.status does its own redirection, appending to config.log.
 
25518
# Unfortunately, on DOS this fails, as config.log is still kept open
 
25519
# by configure, so config.status won't be able to write to it; its
 
25520
# output is simply discarded.  So we exec the FD to /dev/null,
 
25521
# effectively closing config.log, so it can be properly (re)opened and
 
25522
# appended to by config.status.  When coming back to configure, we
 
25523
# need to make the FD available again.
 
25524
if test "$no_create" != yes; then
 
25525
  ac_cs_success=:
 
25526
  ac_config_status_args=
 
25527
  test "$silent" = yes &&
 
25528
    ac_config_status_args="$ac_config_status_args --quiet"
 
25529
  exec 5>/dev/null
 
25530
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
25531
  exec 5>>config.log
 
25532
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
25533
  # would make configure fail if this is the last instruction.
 
25534
  $ac_cs_success || { (exit 1); exit 1; }
 
25535
fi
 
25536