~ubuntu-branches/ubuntu/oneiric/cryptsetup/oneiric

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Scott James Remnant, Steve Langasek, Scott James Remnant
  • Date: 2009-10-14 04:52:16 UTC
  • Revision ID: james.westby@ubuntu.com-20091014045216-yej34imeg7sh3ljd
Tags: 2:1.0.6+20090405.svn49-1ubuntu6
[ Steve Langasek ]
* Move the Debian Vcs- fields aside.

[ Scott James Remnant ]
* debian/cryptdisks-enable.upstart: Don't overcompensate for my idiocy,
  cryptsetup should not need a controlling terminal, just a terminal
  is fine.  May fix LP: #439138.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# Guess values for system-dependent variables and create Makefiles.
 
3
# Generated by GNU Autoconf 2.61 for cryptsetup 1.0.6.
 
4
#
 
5
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
6
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
 
7
# This configure script is free software; the Free Software Foundation
 
8
# gives unlimited permission to copy, distribute and modify it.
 
9
## --------------------- ##
 
10
## M4sh Initialization.  ##
 
11
## --------------------- ##
 
12
 
 
13
# Be more Bourne compatible
 
14
DUALCASE=1; export DUALCASE # for MKS sh
 
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
16
  emulate sh
 
17
  NULLCMD=:
 
18
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
19
  # is contrary to our usage.  Disable this feature.
 
20
  alias -g '${1+"$@"}'='"$@"'
 
21
  setopt NO_GLOB_SUBST
 
22
else
 
23
  case `(set -o) 2>/dev/null` in
 
24
  *posix*) set -o posix ;;
 
25
esac
 
26
 
 
27
fi
 
28
 
 
29
 
 
30
 
 
31
 
 
32
# PATH needs CR
 
33
# Avoid depending upon Character Ranges.
 
34
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
35
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
36
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
37
as_cr_digits='0123456789'
 
38
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
39
 
 
40
# The user is always right.
 
41
if test "${PATH_SEPARATOR+set}" != set; then
 
42
  echo "#! /bin/sh" >conf$$.sh
 
43
  echo  "exit 0"   >>conf$$.sh
 
44
  chmod +x conf$$.sh
 
45
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
46
    PATH_SEPARATOR=';'
 
47
  else
 
48
    PATH_SEPARATOR=:
 
49
  fi
 
50
  rm -f conf$$.sh
 
51
fi
 
52
 
 
53
# Support unset when possible.
 
54
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
55
  as_unset=unset
 
56
else
 
57
  as_unset=false
 
58
fi
 
59
 
 
60
 
 
61
# IFS
 
62
# We need space, tab and new line, in precisely that order.  Quoting is
 
63
# there to prevent editors from complaining about space-tab.
 
64
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
65
# splitting by setting IFS to empty value.)
 
66
as_nl='
 
67
'
 
68
IFS=" ""        $as_nl"
 
69
 
 
70
# Find who we are.  Look in the path if we contain no directory separator.
 
71
case $0 in
 
72
  *[\\/]* ) as_myself=$0 ;;
 
73
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
74
for as_dir in $PATH
 
75
do
 
76
  IFS=$as_save_IFS
 
77
  test -z "$as_dir" && as_dir=.
 
78
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
79
done
 
80
IFS=$as_save_IFS
 
81
 
 
82
     ;;
 
83
esac
 
84
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
85
# in which case we are not to be found in the path.
 
86
if test "x$as_myself" = x; then
 
87
  as_myself=$0
 
88
fi
 
89
if test ! -f "$as_myself"; then
 
90
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
91
  { (exit 1); exit 1; }
 
92
fi
 
93
 
 
94
# Work around bugs in pre-3.0 UWIN ksh.
 
95
for as_var in ENV MAIL MAILPATH
 
96
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
97
done
 
98
PS1='$ '
 
99
PS2='> '
 
100
PS4='+ '
 
101
 
 
102
# NLS nuisances.
 
103
for as_var in \
 
104
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
105
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
106
  LC_TELEPHONE LC_TIME
 
107
do
 
108
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
109
    eval $as_var=C; export $as_var
 
110
  else
 
111
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
112
  fi
 
113
done
 
114
 
 
115
# Required to use basename.
 
116
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
117
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
118
  as_expr=expr
 
119
else
 
120
  as_expr=false
 
121
fi
 
122
 
 
123
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
124
  as_basename=basename
 
125
else
 
126
  as_basename=false
 
127
fi
 
128
 
 
129
 
 
130
# Name of the executable.
 
131
as_me=`$as_basename -- "$0" ||
 
132
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
133
         X"$0" : 'X\(//\)$' \| \
 
134
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
135
echo X/"$0" |
 
136
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
137
            s//\1/
 
138
            q
 
139
          }
 
140
          /^X\/\(\/\/\)$/{
 
141
            s//\1/
 
142
            q
 
143
          }
 
144
          /^X\/\(\/\).*/{
 
145
            s//\1/
 
146
            q
 
147
          }
 
148
          s/.*/./; q'`
 
149
 
 
150
# CDPATH.
 
151
$as_unset CDPATH
 
152
 
 
153
 
 
154
if test "x$CONFIG_SHELL" = x; then
 
155
  if (eval ":") 2>/dev/null; then
 
156
  as_have_required=yes
 
157
else
 
158
  as_have_required=no
 
159
fi
 
160
 
 
161
  if test $as_have_required = yes &&     (eval ":
 
162
(as_func_return () {
 
163
  (exit \$1)
 
164
}
 
165
as_func_success () {
 
166
  as_func_return 0
 
167
}
 
168
as_func_failure () {
 
169
  as_func_return 1
 
170
}
 
171
as_func_ret_success () {
 
172
  return 0
 
173
}
 
174
as_func_ret_failure () {
 
175
  return 1
 
176
}
 
177
 
 
178
exitcode=0
 
179
if as_func_success; then
 
180
  :
 
181
else
 
182
  exitcode=1
 
183
  echo as_func_success failed.
 
184
fi
 
185
 
 
186
if as_func_failure; then
 
187
  exitcode=1
 
188
  echo as_func_failure succeeded.
 
189
fi
 
190
 
 
191
if as_func_ret_success; then
 
192
  :
 
193
else
 
194
  exitcode=1
 
195
  echo as_func_ret_success failed.
 
196
fi
 
197
 
 
198
if as_func_ret_failure; then
 
199
  exitcode=1
 
200
  echo as_func_ret_failure succeeded.
 
201
fi
 
202
 
 
203
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
204
  :
 
205
else
 
206
  exitcode=1
 
207
  echo positional parameters were not saved.
 
208
fi
 
209
 
 
210
test \$exitcode = 0) || { (exit 1); exit 1; }
 
211
 
 
212
(
 
213
  as_lineno_1=\$LINENO
 
214
  as_lineno_2=\$LINENO
 
215
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
 
216
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
 
217
") 2> /dev/null; then
 
218
  :
 
219
else
 
220
  as_candidate_shells=
 
221
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
222
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
223
do
 
224
  IFS=$as_save_IFS
 
225
  test -z "$as_dir" && as_dir=.
 
226
  case $as_dir in
 
227
         /*)
 
228
           for as_base in sh bash ksh sh5; do
 
229
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
 
230
           done;;
 
231
       esac
 
232
done
 
233
IFS=$as_save_IFS
 
234
 
 
235
 
 
236
      for as_shell in $as_candidate_shells $SHELL; do
 
237
         # Try only shells that exist, to save several forks.
 
238
         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
239
                { ("$as_shell") 2> /dev/null <<\_ASEOF
 
240
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
241
  emulate sh
 
242
  NULLCMD=:
 
243
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
244
  # is contrary to our usage.  Disable this feature.
 
245
  alias -g '${1+"$@"}'='"$@"'
 
246
  setopt NO_GLOB_SUBST
 
247
else
 
248
  case `(set -o) 2>/dev/null` in
 
249
  *posix*) set -o posix ;;
 
250
esac
 
251
 
 
252
fi
 
253
 
 
254
 
 
255
:
 
256
_ASEOF
 
257
}; then
 
258
  CONFIG_SHELL=$as_shell
 
259
               as_have_required=yes
 
260
               if { "$as_shell" 2> /dev/null <<\_ASEOF
 
261
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
262
  emulate sh
 
263
  NULLCMD=:
 
264
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
265
  # is contrary to our usage.  Disable this feature.
 
266
  alias -g '${1+"$@"}'='"$@"'
 
267
  setopt NO_GLOB_SUBST
 
268
else
 
269
  case `(set -o) 2>/dev/null` in
 
270
  *posix*) set -o posix ;;
 
271
esac
 
272
 
 
273
fi
 
274
 
 
275
 
 
276
:
 
277
(as_func_return () {
 
278
  (exit $1)
 
279
}
 
280
as_func_success () {
 
281
  as_func_return 0
 
282
}
 
283
as_func_failure () {
 
284
  as_func_return 1
 
285
}
 
286
as_func_ret_success () {
 
287
  return 0
 
288
}
 
289
as_func_ret_failure () {
 
290
  return 1
 
291
}
 
292
 
 
293
exitcode=0
 
294
if as_func_success; then
 
295
  :
 
296
else
 
297
  exitcode=1
 
298
  echo as_func_success failed.
 
299
fi
 
300
 
 
301
if as_func_failure; then
 
302
  exitcode=1
 
303
  echo as_func_failure succeeded.
 
304
fi
 
305
 
 
306
if as_func_ret_success; then
 
307
  :
 
308
else
 
309
  exitcode=1
 
310
  echo as_func_ret_success failed.
 
311
fi
 
312
 
 
313
if as_func_ret_failure; then
 
314
  exitcode=1
 
315
  echo as_func_ret_failure succeeded.
 
316
fi
 
317
 
 
318
if ( set x; as_func_ret_success y && test x = "$1" ); then
 
319
  :
 
320
else
 
321
  exitcode=1
 
322
  echo positional parameters were not saved.
 
323
fi
 
324
 
 
325
test $exitcode = 0) || { (exit 1); exit 1; }
 
326
 
 
327
(
 
328
  as_lineno_1=$LINENO
 
329
  as_lineno_2=$LINENO
 
330
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
331
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
 
332
 
 
333
_ASEOF
 
334
}; then
 
335
  break
 
336
fi
 
337
 
 
338
fi
 
339
 
 
340
      done
 
341
 
 
342
      if test "x$CONFIG_SHELL" != x; then
 
343
  for as_var in BASH_ENV ENV
 
344
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
345
        done
 
346
        export CONFIG_SHELL
 
347
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
 
348
fi
 
349
 
 
350
 
 
351
    if test $as_have_required = no; then
 
352
  echo This script requires a shell more modern than all the
 
353
      echo shells that I found on your system.  Please install a
 
354
      echo modern shell, or manually run the script under such a
 
355
      echo shell if you do have one.
 
356
      { (exit 1); exit 1; }
 
357
fi
 
358
 
 
359
 
 
360
fi
 
361
 
 
362
fi
 
363
 
 
364
 
 
365
 
 
366
(eval "as_func_return () {
 
367
  (exit \$1)
 
368
}
 
369
as_func_success () {
 
370
  as_func_return 0
 
371
}
 
372
as_func_failure () {
 
373
  as_func_return 1
 
374
}
 
375
as_func_ret_success () {
 
376
  return 0
 
377
}
 
378
as_func_ret_failure () {
 
379
  return 1
 
380
}
 
381
 
 
382
exitcode=0
 
383
if as_func_success; then
 
384
  :
 
385
else
 
386
  exitcode=1
 
387
  echo as_func_success failed.
 
388
fi
 
389
 
 
390
if as_func_failure; then
 
391
  exitcode=1
 
392
  echo as_func_failure succeeded.
 
393
fi
 
394
 
 
395
if as_func_ret_success; then
 
396
  :
 
397
else
 
398
  exitcode=1
 
399
  echo as_func_ret_success failed.
 
400
fi
 
401
 
 
402
if as_func_ret_failure; then
 
403
  exitcode=1
 
404
  echo as_func_ret_failure succeeded.
 
405
fi
 
406
 
 
407
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
408
  :
 
409
else
 
410
  exitcode=1
 
411
  echo positional parameters were not saved.
 
412
fi
 
413
 
 
414
test \$exitcode = 0") || {
 
415
  echo No shell found that supports shell functions.
 
416
  echo Please tell autoconf@gnu.org about your system,
 
417
  echo including any error possibly output before this
 
418
  echo message
 
419
}
 
420
 
 
421
 
 
422
 
 
423
  as_lineno_1=$LINENO
 
424
  as_lineno_2=$LINENO
 
425
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
426
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
427
 
 
428
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
429
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
430
  # line-number line after each line using $LINENO; the second 'sed'
 
431
  # does the real work.  The second script uses 'N' to pair each
 
432
  # line-number line with the line containing $LINENO, and appends
 
433
  # trailing '-' during substitution so that $LINENO is not a special
 
434
  # case at line end.
 
435
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
436
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
437
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
438
  sed -n '
 
439
    p
 
440
    /[$]LINENO/=
 
441
  ' <$as_myself |
 
442
    sed '
 
443
      s/[$]LINENO.*/&-/
 
444
      t lineno
 
445
      b
 
446
      :lineno
 
447
      N
 
448
      :loop
 
449
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
450
      t loop
 
451
      s/-\n.*//
 
452
    ' >$as_me.lineno &&
 
453
  chmod +x "$as_me.lineno" ||
 
454
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
455
   { (exit 1); exit 1; }; }
 
456
 
 
457
  # Don't try to exec as it changes $[0], causing all sort of problems
 
458
  # (the dirname of $[0] is not the place where we might find the
 
459
  # original and so on.  Autoconf is especially sensitive to this).
 
460
  . "./$as_me.lineno"
 
461
  # Exit status is that of the last command.
 
462
  exit
 
463
}
 
464
 
 
465
 
 
466
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
467
  as_dirname=dirname
 
468
else
 
469
  as_dirname=false
 
470
fi
 
471
 
 
472
ECHO_C= ECHO_N= ECHO_T=
 
473
case `echo -n x` in
 
474
-n*)
 
475
  case `echo 'x\c'` in
 
476
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
477
  *)   ECHO_C='\c';;
 
478
  esac;;
 
479
*)
 
480
  ECHO_N='-n';;
 
481
esac
 
482
 
 
483
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
484
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
485
  as_expr=expr
 
486
else
 
487
  as_expr=false
 
488
fi
 
489
 
 
490
rm -f conf$$ conf$$.exe conf$$.file
 
491
if test -d conf$$.dir; then
 
492
  rm -f conf$$.dir/conf$$.file
 
493
else
 
494
  rm -f conf$$.dir
 
495
  mkdir conf$$.dir
 
496
fi
 
497
echo >conf$$.file
 
498
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
499
  as_ln_s='ln -s'
 
500
  # ... but there are two gotchas:
 
501
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
502
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
503
  # In both cases, we have to default to `cp -p'.
 
504
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
505
    as_ln_s='cp -p'
 
506
elif ln conf$$.file conf$$ 2>/dev/null; then
 
507
  as_ln_s=ln
 
508
else
 
509
  as_ln_s='cp -p'
 
510
fi
 
511
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
512
rmdir conf$$.dir 2>/dev/null
 
513
 
 
514
if mkdir -p . 2>/dev/null; then
 
515
  as_mkdir_p=:
 
516
else
 
517
  test -d ./-p && rmdir ./-p
 
518
  as_mkdir_p=false
 
519
fi
 
520
 
 
521
if test -x / >/dev/null 2>&1; then
 
522
  as_test_x='test -x'
 
523
else
 
524
  if ls -dL / >/dev/null 2>&1; then
 
525
    as_ls_L_option=L
 
526
  else
 
527
    as_ls_L_option=
 
528
  fi
 
529
  as_test_x='
 
530
    eval sh -c '\''
 
531
      if test -d "$1"; then
 
532
        test -d "$1/.";
 
533
      else
 
534
        case $1 in
 
535
        -*)set "./$1";;
 
536
        esac;
 
537
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
538
        ???[sx]*):;;*)false;;esac;fi
 
539
    '\'' sh
 
540
  '
 
541
fi
 
542
as_executable_p=$as_test_x
 
543
 
 
544
# Sed expression to map a string onto a valid CPP name.
 
545
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
546
 
 
547
# Sed expression to map a string onto a valid variable name.
 
548
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
549
 
 
550
 
 
551
 
 
552
 
 
553
# Check that we are running under the correct shell.
 
554
SHELL=${CONFIG_SHELL-/bin/sh}
 
555
 
 
556
case X$ECHO in
 
557
X*--fallback-echo)
 
558
  # Remove one level of quotation (which was required for Make).
 
559
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
560
  ;;
 
561
esac
 
562
 
 
563
echo=${ECHO-echo}
 
564
if test "X$1" = X--no-reexec; then
 
565
  # Discard the --no-reexec flag, and continue.
 
566
  shift
 
567
elif test "X$1" = X--fallback-echo; then
 
568
  # Avoid inline document here, it may be left over
 
569
  :
 
570
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
 
571
  # Yippee, $echo works!
 
572
  :
 
573
else
 
574
  # Restart under the correct shell.
 
575
  exec $SHELL "$0" --no-reexec ${1+"$@"}
 
576
fi
 
577
 
 
578
if test "X$1" = X--fallback-echo; then
 
579
  # used as fallback echo
 
580
  shift
 
581
  cat <<EOF
 
582
$*
 
583
EOF
 
584
  exit 0
 
585
fi
 
586
 
 
587
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
588
# if CDPATH is set.
 
589
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
590
 
 
591
if test -z "$ECHO"; then
 
592
if test "X${echo_test_string+set}" != Xset; then
 
593
# find a string as large as possible, as long as the shell can cope with it
 
594
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
595
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
596
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
 
597
       echo_test_string=`eval $cmd` &&
 
598
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
 
599
    then
 
600
      break
 
601
    fi
 
602
  done
 
603
fi
 
604
 
 
605
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
606
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
607
   test "X$echo_testing_string" = "X$echo_test_string"; then
 
608
  :
 
609
else
 
610
  # The Solaris, AIX, and Digital Unix default echo programs unquote
 
611
  # backslashes.  This makes it impossible to quote backslashes using
 
612
  #   echo "$something" | sed 's/\\/\\\\/g'
 
613
  #
 
614
  # So, first we look for a working echo in the user's PATH.
 
615
 
 
616
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
617
  for dir in $PATH /usr/ucb; do
 
618
    IFS="$lt_save_ifs"
 
619
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
620
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
621
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
622
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
623
      echo="$dir/echo"
 
624
      break
 
625
    fi
 
626
  done
 
627
  IFS="$lt_save_ifs"
 
628
 
 
629
  if test "X$echo" = Xecho; then
 
630
    # We didn't find a better echo, so look for alternatives.
 
631
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
 
632
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
 
633
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
634
      # This shell has a builtin print -r that does the trick.
 
635
      echo='print -r'
 
636
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
 
637
         test "X$CONFIG_SHELL" != X/bin/ksh; then
 
638
      # If we have ksh, try running configure again with it.
 
639
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
640
      export ORIGINAL_CONFIG_SHELL
 
641
      CONFIG_SHELL=/bin/ksh
 
642
      export CONFIG_SHELL
 
643
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
644
    else
 
645
      # Try using printf.
 
646
      echo='printf %s\n'
 
647
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
648
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
649
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
650
        # Cool, printf works
 
651
        :
 
652
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
653
           test "X$echo_testing_string" = 'X\t' &&
 
654
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
655
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
656
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
657
        export CONFIG_SHELL
 
658
        SHELL="$CONFIG_SHELL"
 
659
        export SHELL
 
660
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
661
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
662
           test "X$echo_testing_string" = 'X\t' &&
 
663
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
664
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
665
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
666
      else
 
667
        # maybe with a smaller string...
 
668
        prev=:
 
669
 
 
670
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
671
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
 
672
          then
 
673
            break
 
674
          fi
 
675
          prev="$cmd"
 
676
        done
 
677
 
 
678
        if test "$prev" != 'sed 50q "$0"'; then
 
679
          echo_test_string=`eval $prev`
 
680
          export echo_test_string
 
681
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
682
        else
 
683
          # Oops.  We lost completely, so just stick with echo.
 
684
          echo=echo
 
685
        fi
 
686
      fi
 
687
    fi
 
688
  fi
 
689
fi
 
690
fi
 
691
 
 
692
# Copy echo and quote the copy suitably for passing to libtool from
 
693
# the Makefile, instead of quoting the original, which is used later.
 
694
ECHO=$echo
 
695
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
696
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
697
fi
 
698
 
 
699
 
 
700
 
 
701
 
 
702
tagnames=${tagnames+${tagnames},}CXX
 
703
 
 
704
tagnames=${tagnames+${tagnames},}F77
 
705
 
 
706
exec 7<&0 </dev/null 6>&1
 
707
 
 
708
# Name of the host.
 
709
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
710
# so uname gets run too.
 
711
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
712
 
 
713
#
 
714
# Initializations.
 
715
#
 
716
ac_default_prefix=/usr/local
 
717
ac_clean_files=
 
718
ac_config_libobj_dir=.
 
719
LIBOBJS=
 
720
cross_compiling=no
 
721
subdirs=
 
722
MFLAGS=
 
723
MAKEFLAGS=
 
724
SHELL=${CONFIG_SHELL-/bin/sh}
 
725
 
 
726
# Identity of this package.
 
727
PACKAGE_NAME='cryptsetup'
 
728
PACKAGE_TARNAME='cryptsetup'
 
729
PACKAGE_VERSION='1.0.6'
 
730
PACKAGE_STRING='cryptsetup 1.0.6'
 
731
PACKAGE_BUGREPORT=''
 
732
 
 
733
ac_unique_file="src/cryptsetup.c"
 
734
ac_default_prefix=/usr
 
735
# Factoring default headers for most tests.
 
736
ac_includes_default="\
 
737
#include <stdio.h>
 
738
#ifdef HAVE_SYS_TYPES_H
 
739
# include <sys/types.h>
 
740
#endif
 
741
#ifdef HAVE_SYS_STAT_H
 
742
# include <sys/stat.h>
 
743
#endif
 
744
#ifdef STDC_HEADERS
 
745
# include <stdlib.h>
 
746
# include <stddef.h>
 
747
#else
 
748
# ifdef HAVE_STDLIB_H
 
749
#  include <stdlib.h>
 
750
# endif
 
751
#endif
 
752
#ifdef HAVE_STRING_H
 
753
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
754
#  include <memory.h>
 
755
# endif
 
756
# include <string.h>
 
757
#endif
 
758
#ifdef HAVE_STRINGS_H
 
759
# include <strings.h>
 
760
#endif
 
761
#ifdef HAVE_INTTYPES_H
 
762
# include <inttypes.h>
 
763
#endif
 
764
#ifdef HAVE_STDINT_H
 
765
# include <stdint.h>
 
766
#endif
 
767
#ifdef HAVE_UNISTD_H
 
768
# include <unistd.h>
 
769
#endif"
 
770
 
 
771
ac_subst_vars='SHELL
 
772
PATH_SEPARATOR
 
773
PACKAGE_NAME
 
774
PACKAGE_TARNAME
 
775
PACKAGE_VERSION
 
776
PACKAGE_STRING
 
777
PACKAGE_BUGREPORT
 
778
exec_prefix
 
779
prefix
 
780
program_transform_name
 
781
bindir
 
782
sbindir
 
783
libexecdir
 
784
datarootdir
 
785
datadir
 
786
sysconfdir
 
787
sharedstatedir
 
788
localstatedir
 
789
includedir
 
790
oldincludedir
 
791
docdir
 
792
infodir
 
793
htmldir
 
794
dvidir
 
795
pdfdir
 
796
psdir
 
797
libdir
 
798
localedir
 
799
mandir
 
800
DEFS
 
801
ECHO_C
 
802
ECHO_N
 
803
ECHO_T
 
804
LIBS
 
805
build_alias
 
806
host_alias
 
807
target_alias
 
808
INSTALL_PROGRAM
 
809
INSTALL_SCRIPT
 
810
INSTALL_DATA
 
811
CYGPATH_W
 
812
PACKAGE
 
813
VERSION
 
814
ACLOCAL
 
815
AUTOCONF
 
816
AUTOMAKE
 
817
AUTOHEADER
 
818
MAKEINFO
 
819
install_sh
 
820
STRIP
 
821
INSTALL_STRIP_PROGRAM
 
822
mkdir_p
 
823
AWK
 
824
SET_MAKE
 
825
am__leading_dot
 
826
AMTAR
 
827
am__tar
 
828
am__untar
 
829
build
 
830
build_cpu
 
831
build_vendor
 
832
build_os
 
833
host
 
834
host_cpu
 
835
host_vendor
 
836
host_os
 
837
CC
 
838
CFLAGS
 
839
LDFLAGS
 
840
CPPFLAGS
 
841
ac_ct_CC
 
842
EXEEXT
 
843
OBJEXT
 
844
DEPDIR
 
845
am__include
 
846
am__quote
 
847
AMDEP_TRUE
 
848
AMDEP_FALSE
 
849
AMDEPBACKSLASH
 
850
CCDEPMODE
 
851
am__fastdepCC_TRUE
 
852
am__fastdepCC_FALSE
 
853
CPP
 
854
SED
 
855
GREP
 
856
EGREP
 
857
LN_S
 
858
ECHO
 
859
AR
 
860
RANLIB
 
861
DSYMUTIL
 
862
NMEDIT
 
863
CXX
 
864
CXXFLAGS
 
865
ac_ct_CXX
 
866
CXXDEPMODE
 
867
am__fastdepCXX_TRUE
 
868
am__fastdepCXX_FALSE
 
869
CXXCPP
 
870
F77
 
871
FFLAGS
 
872
ac_ct_F77
 
873
LIBTOOL
 
874
UUID_LIBS
 
875
GETTEXT_PACKAGE
 
876
USE_NLS
 
877
MSGFMT
 
878
GMSGFMT
 
879
MSGFMT_015
 
880
GMSGFMT_015
 
881
XGETTEXT
 
882
XGETTEXT_015
 
883
MSGMERGE
 
884
INTL_MACOSX_LIBS
 
885
LIBICONV
 
886
LTLIBICONV
 
887
INTLLIBS
 
888
LIBINTL
 
889
LTLIBINTL
 
890
POSUB
 
891
POPT_LIBS
 
892
STATIC_LIBRARY_TRUE
 
893
STATIC_LIBRARY_FALSE
 
894
LIBGCRYPT_CONFIG
 
895
LIBGCRYPT_CFLAGS
 
896
LIBGCRYPT_LIBS
 
897
BUILD_LIBGCRYPT_TRUE
 
898
BUILD_LIBGCRYPT_FALSE
 
899
SHARED_LIBGCRYPT_TRUE
 
900
SHARED_LIBGCRYPT_FALSE
 
901
LIBDEVMAPPER_LIBS
 
902
LIBDEVMAPPER_CFLAGS
 
903
BUILD_LIBDEVMAPPER_TRUE
 
904
BUILD_LIBDEVMAPPER_FALSE
 
905
SHARED_LIBDEVMAPPER_TRUE
 
906
SHARED_LIBDEVMAPPER_FALSE
 
907
STATIC_CRYPTSETUP_TRUE
 
908
STATIC_CRYPTSETUP_FALSE
 
909
DYNAMIC_CRYPTSETUP_TRUE
 
910
DYNAMIC_CRYPTSETUP_FALSE
 
911
LIBOBJS
 
912
LTLIBOBJS'
 
913
ac_subst_files=''
 
914
      ac_precious_vars='build_alias
 
915
host_alias
 
916
target_alias
 
917
CC
 
918
CFLAGS
 
919
LDFLAGS
 
920
LIBS
 
921
CPPFLAGS
 
922
CPP
 
923
CXX
 
924
CXXFLAGS
 
925
CCC
 
926
CXXCPP
 
927
F77
 
928
FFLAGS'
 
929
 
 
930
 
 
931
# Initialize some variables set by options.
 
932
ac_init_help=
 
933
ac_init_version=false
 
934
# The variables have the same names as the options, with
 
935
# dashes changed to underlines.
 
936
cache_file=/dev/null
 
937
exec_prefix=NONE
 
938
no_create=
 
939
no_recursion=
 
940
prefix=NONE
 
941
program_prefix=NONE
 
942
program_suffix=NONE
 
943
program_transform_name=s,x,x,
 
944
silent=
 
945
site=
 
946
srcdir=
 
947
verbose=
 
948
x_includes=NONE
 
949
x_libraries=NONE
 
950
 
 
951
# Installation directory options.
 
952
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
953
# and all the variables that are supposed to be based on exec_prefix
 
954
# by default will actually change.
 
955
# Use braces instead of parens because sh, perl, etc. also accept them.
 
956
# (The list follows the same order as the GNU Coding Standards.)
 
957
bindir='${exec_prefix}/bin'
 
958
sbindir='${exec_prefix}/sbin'
 
959
libexecdir='${exec_prefix}/libexec'
 
960
datarootdir='${prefix}/share'
 
961
datadir='${datarootdir}'
 
962
sysconfdir='${prefix}/etc'
 
963
sharedstatedir='${prefix}/com'
 
964
localstatedir='${prefix}/var'
 
965
includedir='${prefix}/include'
 
966
oldincludedir='/usr/include'
 
967
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
968
infodir='${datarootdir}/info'
 
969
htmldir='${docdir}'
 
970
dvidir='${docdir}'
 
971
pdfdir='${docdir}'
 
972
psdir='${docdir}'
 
973
libdir='${exec_prefix}/lib'
 
974
localedir='${datarootdir}/locale'
 
975
mandir='${datarootdir}/man'
 
976
 
 
977
ac_prev=
 
978
ac_dashdash=
 
979
for ac_option
 
980
do
 
981
  # If the previous option needs an argument, assign it.
 
982
  if test -n "$ac_prev"; then
 
983
    eval $ac_prev=\$ac_option
 
984
    ac_prev=
 
985
    continue
 
986
  fi
 
987
 
 
988
  case $ac_option in
 
989
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
990
  *)    ac_optarg=yes ;;
 
991
  esac
 
992
 
 
993
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
994
 
 
995
  case $ac_dashdash$ac_option in
 
996
  --)
 
997
    ac_dashdash=yes ;;
 
998
 
 
999
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
1000
    ac_prev=bindir ;;
 
1001
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
1002
    bindir=$ac_optarg ;;
 
1003
 
 
1004
  -build | --build | --buil | --bui | --bu)
 
1005
    ac_prev=build_alias ;;
 
1006
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
1007
    build_alias=$ac_optarg ;;
 
1008
 
 
1009
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
1010
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
1011
    ac_prev=cache_file ;;
 
1012
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
1013
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
1014
    cache_file=$ac_optarg ;;
 
1015
 
 
1016
  --config-cache | -C)
 
1017
    cache_file=config.cache ;;
 
1018
 
 
1019
  -datadir | --datadir | --datadi | --datad)
 
1020
    ac_prev=datadir ;;
 
1021
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
1022
    datadir=$ac_optarg ;;
 
1023
 
 
1024
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
1025
  | --dataroo | --dataro | --datar)
 
1026
    ac_prev=datarootdir ;;
 
1027
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
1028
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
1029
    datarootdir=$ac_optarg ;;
 
1030
 
 
1031
  -disable-* | --disable-*)
 
1032
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
1033
    # Reject names that are not valid shell variable names.
 
1034
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1035
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
1036
   { (exit 1); exit 1; }; }
 
1037
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
 
1038
    eval enable_$ac_feature=no ;;
 
1039
 
 
1040
  -docdir | --docdir | --docdi | --doc | --do)
 
1041
    ac_prev=docdir ;;
 
1042
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
1043
    docdir=$ac_optarg ;;
 
1044
 
 
1045
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
1046
    ac_prev=dvidir ;;
 
1047
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
1048
    dvidir=$ac_optarg ;;
 
1049
 
 
1050
  -enable-* | --enable-*)
 
1051
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
1052
    # Reject names that are not valid shell variable names.
 
1053
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1054
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
1055
   { (exit 1); exit 1; }; }
 
1056
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
 
1057
    eval enable_$ac_feature=\$ac_optarg ;;
 
1058
 
 
1059
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
1060
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
1061
  | --exec | --exe | --ex)
 
1062
    ac_prev=exec_prefix ;;
 
1063
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
1064
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
1065
  | --exec=* | --exe=* | --ex=*)
 
1066
    exec_prefix=$ac_optarg ;;
 
1067
 
 
1068
  -gas | --gas | --ga | --g)
 
1069
    # Obsolete; use --with-gas.
 
1070
    with_gas=yes ;;
 
1071
 
 
1072
  -help | --help | --hel | --he | -h)
 
1073
    ac_init_help=long ;;
 
1074
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
1075
    ac_init_help=recursive ;;
 
1076
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
1077
    ac_init_help=short ;;
 
1078
 
 
1079
  -host | --host | --hos | --ho)
 
1080
    ac_prev=host_alias ;;
 
1081
  -host=* | --host=* | --hos=* | --ho=*)
 
1082
    host_alias=$ac_optarg ;;
 
1083
 
 
1084
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
1085
    ac_prev=htmldir ;;
 
1086
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
1087
  | --ht=*)
 
1088
    htmldir=$ac_optarg ;;
 
1089
 
 
1090
  -includedir | --includedir | --includedi | --included | --include \
 
1091
  | --includ | --inclu | --incl | --inc)
 
1092
    ac_prev=includedir ;;
 
1093
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
1094
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
1095
    includedir=$ac_optarg ;;
 
1096
 
 
1097
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
1098
    ac_prev=infodir ;;
 
1099
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
1100
    infodir=$ac_optarg ;;
 
1101
 
 
1102
  -libdir | --libdir | --libdi | --libd)
 
1103
    ac_prev=libdir ;;
 
1104
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
1105
    libdir=$ac_optarg ;;
 
1106
 
 
1107
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
1108
  | --libexe | --libex | --libe)
 
1109
    ac_prev=libexecdir ;;
 
1110
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
1111
  | --libexe=* | --libex=* | --libe=*)
 
1112
    libexecdir=$ac_optarg ;;
 
1113
 
 
1114
  -localedir | --localedir | --localedi | --localed | --locale)
 
1115
    ac_prev=localedir ;;
 
1116
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
1117
    localedir=$ac_optarg ;;
 
1118
 
 
1119
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
1120
  | --localstate | --localstat | --localsta | --localst | --locals)
 
1121
    ac_prev=localstatedir ;;
 
1122
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
1123
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
1124
    localstatedir=$ac_optarg ;;
 
1125
 
 
1126
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
1127
    ac_prev=mandir ;;
 
1128
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
1129
    mandir=$ac_optarg ;;
 
1130
 
 
1131
  -nfp | --nfp | --nf)
 
1132
    # Obsolete; use --without-fp.
 
1133
    with_fp=no ;;
 
1134
 
 
1135
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
1136
  | --no-cr | --no-c | -n)
 
1137
    no_create=yes ;;
 
1138
 
 
1139
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
1140
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
1141
    no_recursion=yes ;;
 
1142
 
 
1143
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
1144
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
1145
  | --oldin | --oldi | --old | --ol | --o)
 
1146
    ac_prev=oldincludedir ;;
 
1147
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
1148
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
1149
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
1150
    oldincludedir=$ac_optarg ;;
 
1151
 
 
1152
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
1153
    ac_prev=prefix ;;
 
1154
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
1155
    prefix=$ac_optarg ;;
 
1156
 
 
1157
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
1158
  | --program-pre | --program-pr | --program-p)
 
1159
    ac_prev=program_prefix ;;
 
1160
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
1161
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
1162
    program_prefix=$ac_optarg ;;
 
1163
 
 
1164
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
1165
  | --program-suf | --program-su | --program-s)
 
1166
    ac_prev=program_suffix ;;
 
1167
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
1168
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
1169
    program_suffix=$ac_optarg ;;
 
1170
 
 
1171
  -program-transform-name | --program-transform-name \
 
1172
  | --program-transform-nam | --program-transform-na \
 
1173
  | --program-transform-n | --program-transform- \
 
1174
  | --program-transform | --program-transfor \
 
1175
  | --program-transfo | --program-transf \
 
1176
  | --program-trans | --program-tran \
 
1177
  | --progr-tra | --program-tr | --program-t)
 
1178
    ac_prev=program_transform_name ;;
 
1179
  -program-transform-name=* | --program-transform-name=* \
 
1180
  | --program-transform-nam=* | --program-transform-na=* \
 
1181
  | --program-transform-n=* | --program-transform-=* \
 
1182
  | --program-transform=* | --program-transfor=* \
 
1183
  | --program-transfo=* | --program-transf=* \
 
1184
  | --program-trans=* | --program-tran=* \
 
1185
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
1186
    program_transform_name=$ac_optarg ;;
 
1187
 
 
1188
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1189
    ac_prev=pdfdir ;;
 
1190
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1191
    pdfdir=$ac_optarg ;;
 
1192
 
 
1193
  -psdir | --psdir | --psdi | --psd | --ps)
 
1194
    ac_prev=psdir ;;
 
1195
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1196
    psdir=$ac_optarg ;;
 
1197
 
 
1198
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1199
  | -silent | --silent | --silen | --sile | --sil)
 
1200
    silent=yes ;;
 
1201
 
 
1202
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
1203
    ac_prev=sbindir ;;
 
1204
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
1205
  | --sbi=* | --sb=*)
 
1206
    sbindir=$ac_optarg ;;
 
1207
 
 
1208
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
1209
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
1210
  | --sharedst | --shareds | --shared | --share | --shar \
 
1211
  | --sha | --sh)
 
1212
    ac_prev=sharedstatedir ;;
 
1213
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
1214
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
1215
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
1216
  | --sha=* | --sh=*)
 
1217
    sharedstatedir=$ac_optarg ;;
 
1218
 
 
1219
  -site | --site | --sit)
 
1220
    ac_prev=site ;;
 
1221
  -site=* | --site=* | --sit=*)
 
1222
    site=$ac_optarg ;;
 
1223
 
 
1224
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
1225
    ac_prev=srcdir ;;
 
1226
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
1227
    srcdir=$ac_optarg ;;
 
1228
 
 
1229
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
1230
  | --syscon | --sysco | --sysc | --sys | --sy)
 
1231
    ac_prev=sysconfdir ;;
 
1232
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
1233
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
1234
    sysconfdir=$ac_optarg ;;
 
1235
 
 
1236
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
1237
    ac_prev=target_alias ;;
 
1238
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
1239
    target_alias=$ac_optarg ;;
 
1240
 
 
1241
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
1242
    verbose=yes ;;
 
1243
 
 
1244
  -version | --version | --versio | --versi | --vers | -V)
 
1245
    ac_init_version=: ;;
 
1246
 
 
1247
  -with-* | --with-*)
 
1248
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1249
    # Reject names that are not valid shell variable names.
 
1250
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1251
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
1252
   { (exit 1); exit 1; }; }
 
1253
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
 
1254
    eval with_$ac_package=\$ac_optarg ;;
 
1255
 
 
1256
  -without-* | --without-*)
 
1257
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1258
    # Reject names that are not valid shell variable names.
 
1259
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1260
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
1261
   { (exit 1); exit 1; }; }
 
1262
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
 
1263
    eval with_$ac_package=no ;;
 
1264
 
 
1265
  --x)
 
1266
    # Obsolete; use --with-x.
 
1267
    with_x=yes ;;
 
1268
 
 
1269
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
1270
  | --x-incl | --x-inc | --x-in | --x-i)
 
1271
    ac_prev=x_includes ;;
 
1272
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
1273
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
1274
    x_includes=$ac_optarg ;;
 
1275
 
 
1276
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
1277
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
1278
    ac_prev=x_libraries ;;
 
1279
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
1280
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
1281
    x_libraries=$ac_optarg ;;
 
1282
 
 
1283
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
1284
Try \`$0 --help' for more information." >&2
 
1285
   { (exit 1); exit 1; }; }
 
1286
    ;;
 
1287
 
 
1288
  *=*)
 
1289
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1290
    # Reject names that are not valid shell variable names.
 
1291
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
1292
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
1293
   { (exit 1); exit 1; }; }
 
1294
    eval $ac_envvar=\$ac_optarg
 
1295
    export $ac_envvar ;;
 
1296
 
 
1297
  *)
 
1298
    # FIXME: should be removed in autoconf 3.0.
 
1299
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1300
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1301
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1302
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
1303
    ;;
 
1304
 
 
1305
  esac
 
1306
done
 
1307
 
 
1308
if test -n "$ac_prev"; then
 
1309
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1310
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
1311
   { (exit 1); exit 1; }; }
 
1312
fi
 
1313
 
 
1314
# Be sure to have absolute directory names.
 
1315
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1316
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1317
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1318
                libdir localedir mandir
 
1319
do
 
1320
  eval ac_val=\$$ac_var
 
1321
  case $ac_val in
 
1322
    [\\/$]* | ?:[\\/]* )  continue;;
 
1323
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1324
  esac
 
1325
  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
1326
   { (exit 1); exit 1; }; }
 
1327
done
 
1328
 
 
1329
# There might be people who depend on the old broken behavior: `$host'
 
1330
# used to hold the argument of --host etc.
 
1331
# FIXME: To remove some day.
 
1332
build=$build_alias
 
1333
host=$host_alias
 
1334
target=$target_alias
 
1335
 
 
1336
# FIXME: To remove some day.
 
1337
if test "x$host_alias" != x; then
 
1338
  if test "x$build_alias" = x; then
 
1339
    cross_compiling=maybe
 
1340
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
1341
    If a cross compiler is detected then cross compile mode will be used." >&2
 
1342
  elif test "x$build_alias" != "x$host_alias"; then
 
1343
    cross_compiling=yes
 
1344
  fi
 
1345
fi
 
1346
 
 
1347
ac_tool_prefix=
 
1348
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1349
 
 
1350
test "$silent" = yes && exec 6>/dev/null
 
1351
 
 
1352
 
 
1353
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1354
ac_ls_di=`ls -di .` &&
 
1355
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1356
  { echo "$as_me: error: Working directory cannot be determined" >&2
 
1357
   { (exit 1); exit 1; }; }
 
1358
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1359
  { echo "$as_me: error: pwd does not report name of working directory" >&2
 
1360
   { (exit 1); exit 1; }; }
 
1361
 
 
1362
 
 
1363
# Find the source files, if location was not specified.
 
1364
if test -z "$srcdir"; then
 
1365
  ac_srcdir_defaulted=yes
 
1366
  # Try the directory containing this script, then the parent directory.
 
1367
  ac_confdir=`$as_dirname -- "$0" ||
 
1368
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1369
         X"$0" : 'X\(//\)[^/]' \| \
 
1370
         X"$0" : 'X\(//\)$' \| \
 
1371
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
1372
echo X"$0" |
 
1373
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1374
            s//\1/
 
1375
            q
 
1376
          }
 
1377
          /^X\(\/\/\)[^/].*/{
 
1378
            s//\1/
 
1379
            q
 
1380
          }
 
1381
          /^X\(\/\/\)$/{
 
1382
            s//\1/
 
1383
            q
 
1384
          }
 
1385
          /^X\(\/\).*/{
 
1386
            s//\1/
 
1387
            q
 
1388
          }
 
1389
          s/.*/./; q'`
 
1390
  srcdir=$ac_confdir
 
1391
  if test ! -r "$srcdir/$ac_unique_file"; then
 
1392
    srcdir=..
 
1393
  fi
 
1394
else
 
1395
  ac_srcdir_defaulted=no
 
1396
fi
 
1397
if test ! -r "$srcdir/$ac_unique_file"; then
 
1398
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1399
  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
1400
   { (exit 1); exit 1; }; }
 
1401
fi
 
1402
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1403
ac_abs_confdir=`(
 
1404
        cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
 
1405
   { (exit 1); exit 1; }; }
 
1406
        pwd)`
 
1407
# When building in place, set srcdir=.
 
1408
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1409
  srcdir=.
 
1410
fi
 
1411
# Remove unnecessary trailing slashes from srcdir.
 
1412
# Double slashes in file names in object file debugging info
 
1413
# mess up M-x gdb in Emacs.
 
1414
case $srcdir in
 
1415
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1416
esac
 
1417
for ac_var in $ac_precious_vars; do
 
1418
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1419
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1420
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1421
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1422
done
 
1423
 
 
1424
#
 
1425
# Report the --help message.
 
1426
#
 
1427
if test "$ac_init_help" = "long"; then
 
1428
  # Omit some internal or obsolete options to make the list less imposing.
 
1429
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1430
  cat <<_ACEOF
 
1431
\`configure' configures cryptsetup 1.0.6 to adapt to many kinds of systems.
 
1432
 
 
1433
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1434
 
 
1435
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1436
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1437
 
 
1438
Defaults for the options are specified in brackets.
 
1439
 
 
1440
Configuration:
 
1441
  -h, --help              display this help and exit
 
1442
      --help=short        display options specific to this package
 
1443
      --help=recursive    display the short help of all the included packages
 
1444
  -V, --version           display version information and exit
 
1445
  -q, --quiet, --silent   do not print \`checking...' messages
 
1446
      --cache-file=FILE   cache test results in FILE [disabled]
 
1447
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1448
  -n, --no-create         do not create output files
 
1449
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1450
 
 
1451
Installation directories:
 
1452
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1453
                          [$ac_default_prefix]
 
1454
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1455
                          [PREFIX]
 
1456
 
 
1457
By default, \`make install' will install all the files in
 
1458
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1459
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1460
for instance \`--prefix=\$HOME'.
 
1461
 
 
1462
For better control, use the options below.
 
1463
 
 
1464
Fine tuning of the installation directories:
 
1465
  --bindir=DIR           user executables [EPREFIX/bin]
 
1466
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
1467
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
1468
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
1469
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
1470
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
1471
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
1472
  --includedir=DIR       C header files [PREFIX/include]
 
1473
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
1474
  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
 
1475
  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
 
1476
  --infodir=DIR          info documentation [DATAROOTDIR/info]
 
1477
  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
 
1478
  --mandir=DIR           man documentation [DATAROOTDIR/man]
 
1479
  --docdir=DIR           documentation root [DATAROOTDIR/doc/cryptsetup]
 
1480
  --htmldir=DIR          html documentation [DOCDIR]
 
1481
  --dvidir=DIR           dvi documentation [DOCDIR]
 
1482
  --pdfdir=DIR           pdf documentation [DOCDIR]
 
1483
  --psdir=DIR            ps documentation [DOCDIR]
 
1484
_ACEOF
 
1485
 
 
1486
  cat <<\_ACEOF
 
1487
 
 
1488
Program names:
 
1489
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1490
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1491
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1492
 
 
1493
System types:
 
1494
  --build=BUILD     configure for building on BUILD [guessed]
 
1495
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1496
_ACEOF
 
1497
fi
 
1498
 
 
1499
if test -n "$ac_init_help"; then
 
1500
  case $ac_init_help in
 
1501
     short | recursive ) echo "Configuration of cryptsetup 1.0.6:";;
 
1502
   esac
 
1503
  cat <<\_ACEOF
 
1504
 
 
1505
Optional Features:
 
1506
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1507
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1508
  --disable-dependency-tracking  speeds up one-time build
 
1509
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1510
  --enable-static[=PKGS]  build static libraries [default=no]
 
1511
  --enable-shared[=PKGS]  build shared libraries [default=yes]
 
1512
  --enable-fast-install[=PKGS]
 
1513
                          optimize for fast installation [default=yes]
 
1514
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1515
  --disable-largefile     omit support for large files
 
1516
  --disable-nls           do not use Native Language Support
 
1517
  --disable-rpath         do not hardcode runtime library paths
 
1518
  --disable-shared-library
 
1519
                          disable building of shared cryptsetup library
 
1520
  --enable-plugins        disable shared library plugins
 
1521
 
 
1522
Modules:
 
1523
  --with-MODULE[=shared]  builds the module MODULE as a shared library plugin
 
1524
 
 
1525
  --disable-all           disable all modules built by default
 
1526
  --enable-libgcrypt      enable libgcrypt crypto functions [default=auto]
 
1527
  --enable-libdevmapper   enable dm-crypt backend through libdevmapper
 
1528
                          [default=auto]
 
1529
 
 
1530
Optional Packages:
 
1531
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1532
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1533
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1534
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1535
                          both]
 
1536
  --with-tags[=TAGS]      include additional configurations [automatic]
 
1537
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
 
1538
  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
 
1539
  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
 
1540
  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
 
1541
  --without-libintl-prefix     don't search for libintl in includedir and libdir
 
1542
  --with-libgcrypt-prefix=PFX
 
1543
                          prefix where LIBGCRYPT is installed (optional)
 
1544
 
 
1545
Some influential environment variables:
 
1546
  CC          C compiler command
 
1547
  CFLAGS      C compiler flags
 
1548
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1549
              nonstandard directory <lib dir>
 
1550
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1551
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
 
1552
              you have headers in a nonstandard directory <include dir>
 
1553
  CPP         C preprocessor
 
1554
  CXX         C++ compiler command
 
1555
  CXXFLAGS    C++ compiler flags
 
1556
  CXXCPP      C++ preprocessor
 
1557
  F77         Fortran 77 compiler command
 
1558
  FFLAGS      Fortran 77 compiler flags
 
1559
 
 
1560
Use these variables to override the choices made by `configure' or to help
 
1561
it to find libraries and programs with nonstandard names/locations.
 
1562
 
 
1563
_ACEOF
 
1564
ac_status=$?
 
1565
fi
 
1566
 
 
1567
if test "$ac_init_help" = "recursive"; then
 
1568
  # If there are subdirs, report their specific --help.
 
1569
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1570
    test -d "$ac_dir" || continue
 
1571
    ac_builddir=.
 
1572
 
 
1573
case "$ac_dir" in
 
1574
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1575
*)
 
1576
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1577
  # A ".." for each directory in $ac_dir_suffix.
 
1578
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
1579
  case $ac_top_builddir_sub in
 
1580
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1581
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1582
  esac ;;
 
1583
esac
 
1584
ac_abs_top_builddir=$ac_pwd
 
1585
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1586
# for backward compatibility:
 
1587
ac_top_builddir=$ac_top_build_prefix
 
1588
 
 
1589
case $srcdir in
 
1590
  .)  # We are building in place.
 
1591
    ac_srcdir=.
 
1592
    ac_top_srcdir=$ac_top_builddir_sub
 
1593
    ac_abs_top_srcdir=$ac_pwd ;;
 
1594
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
1595
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1596
    ac_top_srcdir=$srcdir
 
1597
    ac_abs_top_srcdir=$srcdir ;;
 
1598
  *) # Relative name.
 
1599
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1600
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1601
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1602
esac
 
1603
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1604
 
 
1605
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1606
    # Check for guested configure.
 
1607
    if test -f "$ac_srcdir/configure.gnu"; then
 
1608
      echo &&
 
1609
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1610
    elif test -f "$ac_srcdir/configure"; then
 
1611
      echo &&
 
1612
      $SHELL "$ac_srcdir/configure" --help=recursive
 
1613
    else
 
1614
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1615
    fi || ac_status=$?
 
1616
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1617
  done
 
1618
fi
 
1619
 
 
1620
test -n "$ac_init_help" && exit $ac_status
 
1621
if $ac_init_version; then
 
1622
  cat <<\_ACEOF
 
1623
cryptsetup configure 1.0.6
 
1624
generated by GNU Autoconf 2.61
 
1625
 
 
1626
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
1627
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
 
1628
This configure script is free software; the Free Software Foundation
 
1629
gives unlimited permission to copy, distribute and modify it.
 
1630
_ACEOF
 
1631
  exit
 
1632
fi
 
1633
cat >config.log <<_ACEOF
 
1634
This file contains any messages produced by compilers while
 
1635
running configure, to aid debugging if configure makes a mistake.
 
1636
 
 
1637
It was created by cryptsetup $as_me 1.0.6, which was
 
1638
generated by GNU Autoconf 2.61.  Invocation command line was
 
1639
 
 
1640
  $ $0 $@
 
1641
 
 
1642
_ACEOF
 
1643
exec 5>>config.log
 
1644
{
 
1645
cat <<_ASUNAME
 
1646
## --------- ##
 
1647
## Platform. ##
 
1648
## --------- ##
 
1649
 
 
1650
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1651
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1652
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1653
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1654
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1655
 
 
1656
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1657
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1658
 
 
1659
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1660
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1661
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1662
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
1663
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1664
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1665
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1666
 
 
1667
_ASUNAME
 
1668
 
 
1669
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1670
for as_dir in $PATH
 
1671
do
 
1672
  IFS=$as_save_IFS
 
1673
  test -z "$as_dir" && as_dir=.
 
1674
  echo "PATH: $as_dir"
 
1675
done
 
1676
IFS=$as_save_IFS
 
1677
 
 
1678
} >&5
 
1679
 
 
1680
cat >&5 <<_ACEOF
 
1681
 
 
1682
 
 
1683
## ----------- ##
 
1684
## Core tests. ##
 
1685
## ----------- ##
 
1686
 
 
1687
_ACEOF
 
1688
 
 
1689
 
 
1690
# Keep a trace of the command line.
 
1691
# Strip out --no-create and --no-recursion so they do not pile up.
 
1692
# Strip out --silent because we don't want to record it for future runs.
 
1693
# Also quote any args containing shell meta-characters.
 
1694
# Make two passes to allow for proper duplicate-argument suppression.
 
1695
ac_configure_args=
 
1696
ac_configure_args0=
 
1697
ac_configure_args1=
 
1698
ac_must_keep_next=false
 
1699
for ac_pass in 1 2
 
1700
do
 
1701
  for ac_arg
 
1702
  do
 
1703
    case $ac_arg in
 
1704
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1705
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1706
    | -silent | --silent | --silen | --sile | --sil)
 
1707
      continue ;;
 
1708
    *\'*)
 
1709
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1710
    esac
 
1711
    case $ac_pass in
 
1712
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1713
    2)
 
1714
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1715
      if test $ac_must_keep_next = true; then
 
1716
        ac_must_keep_next=false # Got value, back to normal.
 
1717
      else
 
1718
        case $ac_arg in
 
1719
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1720
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1721
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1722
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1723
            case "$ac_configure_args0 " in
 
1724
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1725
            esac
 
1726
            ;;
 
1727
          -* ) ac_must_keep_next=true ;;
 
1728
        esac
 
1729
      fi
 
1730
      ac_configure_args="$ac_configure_args '$ac_arg'"
 
1731
      ;;
 
1732
    esac
 
1733
  done
 
1734
done
 
1735
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1736
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1737
 
 
1738
# When interrupted or exit'd, cleanup temporary files, and complete
 
1739
# config.log.  We remove comments because anyway the quotes in there
 
1740
# would cause problems or look ugly.
 
1741
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
1742
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
1743
trap 'exit_status=$?
 
1744
  # Save into config.log some information that might help in debugging.
 
1745
  {
 
1746
    echo
 
1747
 
 
1748
    cat <<\_ASBOX
 
1749
## ---------------- ##
 
1750
## Cache variables. ##
 
1751
## ---------------- ##
 
1752
_ASBOX
 
1753
    echo
 
1754
    # The following way of writing the cache mishandles newlines in values,
 
1755
(
 
1756
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
1757
    eval ac_val=\$$ac_var
 
1758
    case $ac_val in #(
 
1759
    *${as_nl}*)
 
1760
      case $ac_var in #(
 
1761
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 
1762
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
1763
      esac
 
1764
      case $ac_var in #(
 
1765
      _ | IFS | as_nl) ;; #(
 
1766
      *) $as_unset $ac_var ;;
 
1767
      esac ;;
 
1768
    esac
 
1769
  done
 
1770
  (set) 2>&1 |
 
1771
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
1772
    *${as_nl}ac_space=\ *)
 
1773
      sed -n \
 
1774
        "s/'\''/'\''\\\\'\'''\''/g;
 
1775
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
1776
      ;; #(
 
1777
    *)
 
1778
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
1779
      ;;
 
1780
    esac |
 
1781
    sort
 
1782
)
 
1783
    echo
 
1784
 
 
1785
    cat <<\_ASBOX
 
1786
## ----------------- ##
 
1787
## Output variables. ##
 
1788
## ----------------- ##
 
1789
_ASBOX
 
1790
    echo
 
1791
    for ac_var in $ac_subst_vars
 
1792
    do
 
1793
      eval ac_val=\$$ac_var
 
1794
      case $ac_val in
 
1795
      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1796
      esac
 
1797
      echo "$ac_var='\''$ac_val'\''"
 
1798
    done | sort
 
1799
    echo
 
1800
 
 
1801
    if test -n "$ac_subst_files"; then
 
1802
      cat <<\_ASBOX
 
1803
## ------------------- ##
 
1804
## File substitutions. ##
 
1805
## ------------------- ##
 
1806
_ASBOX
 
1807
      echo
 
1808
      for ac_var in $ac_subst_files
 
1809
      do
 
1810
        eval ac_val=\$$ac_var
 
1811
        case $ac_val in
 
1812
        *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1813
        esac
 
1814
        echo "$ac_var='\''$ac_val'\''"
 
1815
      done | sort
 
1816
      echo
 
1817
    fi
 
1818
 
 
1819
    if test -s confdefs.h; then
 
1820
      cat <<\_ASBOX
 
1821
## ----------- ##
 
1822
## confdefs.h. ##
 
1823
## ----------- ##
 
1824
_ASBOX
 
1825
      echo
 
1826
      cat confdefs.h
 
1827
      echo
 
1828
    fi
 
1829
    test "$ac_signal" != 0 &&
 
1830
      echo "$as_me: caught signal $ac_signal"
 
1831
    echo "$as_me: exit $exit_status"
 
1832
  } >&5
 
1833
  rm -f core *.core core.conftest.* &&
 
1834
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
1835
    exit $exit_status
 
1836
' 0
 
1837
for ac_signal in 1 2 13 15; do
 
1838
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1839
done
 
1840
ac_signal=0
 
1841
 
 
1842
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1843
rm -f -r conftest* confdefs.h
 
1844
 
 
1845
# Predefined preprocessor variables.
 
1846
 
 
1847
cat >>confdefs.h <<_ACEOF
 
1848
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1849
_ACEOF
 
1850
 
 
1851
 
 
1852
cat >>confdefs.h <<_ACEOF
 
1853
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1854
_ACEOF
 
1855
 
 
1856
 
 
1857
cat >>confdefs.h <<_ACEOF
 
1858
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1859
_ACEOF
 
1860
 
 
1861
 
 
1862
cat >>confdefs.h <<_ACEOF
 
1863
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1864
_ACEOF
 
1865
 
 
1866
 
 
1867
cat >>confdefs.h <<_ACEOF
 
1868
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1869
_ACEOF
 
1870
 
 
1871
 
 
1872
# Let the site file select an alternate cache file if it wants to.
 
1873
# Prefer explicitly selected file to automatically selected ones.
 
1874
if test -n "$CONFIG_SITE"; then
 
1875
  set x "$CONFIG_SITE"
 
1876
elif test "x$prefix" != xNONE; then
 
1877
  set x "$prefix/share/config.site" "$prefix/etc/config.site"
 
1878
else
 
1879
  set x "$ac_default_prefix/share/config.site" \
 
1880
        "$ac_default_prefix/etc/config.site"
 
1881
fi
 
1882
shift
 
1883
for ac_site_file
 
1884
do
 
1885
  if test -r "$ac_site_file"; then
 
1886
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1887
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1888
    sed 's/^/| /' "$ac_site_file" >&5
 
1889
    . "$ac_site_file"
 
1890
  fi
 
1891
done
 
1892
 
 
1893
if test -r "$cache_file"; then
 
1894
  # Some versions of bash will fail to source /dev/null (special
 
1895
  # files actually), so we avoid doing that.
 
1896
  if test -f "$cache_file"; then
 
1897
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1898
echo "$as_me: loading cache $cache_file" >&6;}
 
1899
    case $cache_file in
 
1900
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
1901
      *)                      . "./$cache_file";;
 
1902
    esac
 
1903
  fi
 
1904
else
 
1905
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1906
echo "$as_me: creating cache $cache_file" >&6;}
 
1907
  >$cache_file
 
1908
fi
 
1909
 
 
1910
# Check that the precious variables saved in the cache have kept the same
 
1911
# value.
 
1912
ac_cache_corrupted=false
 
1913
for ac_var in $ac_precious_vars; do
 
1914
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1915
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1916
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
1917
  eval ac_new_val=\$ac_env_${ac_var}_value
 
1918
  case $ac_old_set,$ac_new_set in
 
1919
    set,)
 
1920
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1921
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1922
      ac_cache_corrupted=: ;;
 
1923
    ,set)
 
1924
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1925
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1926
      ac_cache_corrupted=: ;;
 
1927
    ,);;
 
1928
    *)
 
1929
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1930
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1931
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1932
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1933
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1934
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1935
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1936
        ac_cache_corrupted=:
 
1937
      fi;;
 
1938
  esac
 
1939
  # Pass precious variables to config.status.
 
1940
  if test "$ac_new_set" = set; then
 
1941
    case $ac_new_val in
 
1942
    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1943
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1944
    esac
 
1945
    case " $ac_configure_args " in
 
1946
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1947
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1948
    esac
 
1949
  fi
 
1950
done
 
1951
if $ac_cache_corrupted; then
 
1952
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1953
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1954
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1955
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1956
   { (exit 1); exit 1; }; }
 
1957
fi
 
1958
 
 
1959
 
 
1960
 
 
1961
 
 
1962
 
 
1963
 
 
1964
 
 
1965
 
 
1966
 
 
1967
 
 
1968
 
 
1969
 
 
1970
 
 
1971
 
 
1972
 
 
1973
 
 
1974
 
 
1975
 
 
1976
 
 
1977
 
 
1978
 
 
1979
 
 
1980
 
 
1981
 
 
1982
 
 
1983
ac_ext=c
 
1984
ac_cpp='$CPP $CPPFLAGS'
 
1985
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1986
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1987
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1988
 
 
1989
 
 
1990
 
 
1991
 
 
1992
ac_config_headers="$ac_config_headers config.h:config.h.in"
 
1993
 
 
1994
am__api_version="1.9"
 
1995
ac_aux_dir=
 
1996
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
 
1997
  if test -f "$ac_dir/install-sh"; then
 
1998
    ac_aux_dir=$ac_dir
 
1999
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
2000
    break
 
2001
  elif test -f "$ac_dir/install.sh"; then
 
2002
    ac_aux_dir=$ac_dir
 
2003
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
2004
    break
 
2005
  elif test -f "$ac_dir/shtool"; then
 
2006
    ac_aux_dir=$ac_dir
 
2007
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
2008
    break
 
2009
  fi
 
2010
done
 
2011
if test -z "$ac_aux_dir"; then
 
2012
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
 
2013
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
 
2014
   { (exit 1); exit 1; }; }
 
2015
fi
 
2016
 
 
2017
# These three variables are undocumented and unsupported,
 
2018
# and are intended to be withdrawn in a future Autoconf release.
 
2019
# They can cause serious problems if a builder's source tree is in a directory
 
2020
# whose full name contains unusual characters.
 
2021
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
2022
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
2023
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
2024
 
 
2025
 
 
2026
# Find a good install program.  We prefer a C program (faster),
 
2027
# so one script is as good as another.  But avoid the broken or
 
2028
# incompatible versions:
 
2029
# SysV /etc/install, /usr/sbin/install
 
2030
# SunOS /usr/etc/install
 
2031
# IRIX /sbin/install
 
2032
# AIX /bin/install
 
2033
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
2034
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
2035
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
2036
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
2037
# OS/2's system install, which has a completely different semantic
 
2038
# ./install, which can be erroneously created by make from ./install.sh.
 
2039
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
2040
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
 
2041
if test -z "$INSTALL"; then
 
2042
if test "${ac_cv_path_install+set}" = set; then
 
2043
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2044
else
 
2045
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2046
for as_dir in $PATH
 
2047
do
 
2048
  IFS=$as_save_IFS
 
2049
  test -z "$as_dir" && as_dir=.
 
2050
  # Account for people who put trailing slashes in PATH elements.
 
2051
case $as_dir/ in
 
2052
  ./ | .// | /cC/* | \
 
2053
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
2054
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
2055
  /usr/ucb/* ) ;;
 
2056
  *)
 
2057
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
2058
    # Don't use installbsd from OSF since it installs stuff as root
 
2059
    # by default.
 
2060
    for ac_prog in ginstall scoinst install; do
 
2061
      for ac_exec_ext in '' $ac_executable_extensions; do
 
2062
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
2063
          if test $ac_prog = install &&
 
2064
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2065
            # AIX install.  It has an incompatible calling convention.
 
2066
            :
 
2067
          elif test $ac_prog = install &&
 
2068
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2069
            # program-specific install script used by HP pwplus--don't use.
 
2070
            :
 
2071
          else
 
2072
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
2073
            break 3
 
2074
          fi
 
2075
        fi
 
2076
      done
 
2077
    done
 
2078
    ;;
 
2079
esac
 
2080
done
 
2081
IFS=$as_save_IFS
 
2082
 
 
2083
 
 
2084
fi
 
2085
  if test "${ac_cv_path_install+set}" = set; then
 
2086
    INSTALL=$ac_cv_path_install
 
2087
  else
 
2088
    # As a last resort, use the slow shell script.  Don't cache a
 
2089
    # value for INSTALL within a source directory, because that will
 
2090
    # break other packages using the cache if that directory is
 
2091
    # removed, or if the value is a relative name.
 
2092
    INSTALL=$ac_install_sh
 
2093
  fi
 
2094
fi
 
2095
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
 
2096
echo "${ECHO_T}$INSTALL" >&6; }
 
2097
 
 
2098
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
2099
# It thinks the first close brace ends the variable substitution.
 
2100
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
2101
 
 
2102
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
2103
 
 
2104
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
2105
 
 
2106
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
2107
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
 
2108
# Just in case
 
2109
sleep 1
 
2110
echo timestamp > conftest.file
 
2111
# Do `set' in a subshell so we don't clobber the current shell's
 
2112
# arguments.  Must try -L first in case configure is actually a
 
2113
# symlink; some systems play weird games with the mod time of symlinks
 
2114
# (eg FreeBSD returns the mod time of the symlink's containing
 
2115
# directory).
 
2116
if (
 
2117
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
2118
   if test "$*" = "X"; then
 
2119
      # -L didn't work.
 
2120
      set X `ls -t $srcdir/configure conftest.file`
 
2121
   fi
 
2122
   rm -f conftest.file
 
2123
   if test "$*" != "X $srcdir/configure conftest.file" \
 
2124
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
2125
 
 
2126
      # If neither matched, then we have a broken ls.  This can happen
 
2127
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
2128
      # broken ls alias from the environment.  This has actually
 
2129
      # happened.  Such a system could not be considered "sane".
 
2130
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
2131
alias in your environment" >&5
 
2132
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
2133
alias in your environment" >&2;}
 
2134
   { (exit 1); exit 1; }; }
 
2135
   fi
 
2136
 
 
2137
   test "$2" = conftest.file
 
2138
   )
 
2139
then
 
2140
   # Ok.
 
2141
   :
 
2142
else
 
2143
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
2144
Check your system clock" >&5
 
2145
echo "$as_me: error: newly created file is older than distributed files!
 
2146
Check your system clock" >&2;}
 
2147
   { (exit 1); exit 1; }; }
 
2148
fi
 
2149
{ echo "$as_me:$LINENO: result: yes" >&5
 
2150
echo "${ECHO_T}yes" >&6; }
 
2151
test "$program_prefix" != NONE &&
 
2152
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
 
2153
# Use a double $ so make ignores it.
 
2154
test "$program_suffix" != NONE &&
 
2155
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
 
2156
# Double any \ or $.  echo might interpret backslashes.
 
2157
# By default was `s,x,x', remove it if useless.
 
2158
cat <<\_ACEOF >conftest.sed
 
2159
s/[\\$]/&&/g;s/;s,x,x,$//
 
2160
_ACEOF
 
2161
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 
2162
rm -f conftest.sed
 
2163
 
 
2164
# expand $ac_aux_dir to an absolute path
 
2165
am_aux_dir=`cd $ac_aux_dir && pwd`
 
2166
 
 
2167
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
2168
# Use eval to expand $SHELL
 
2169
if eval "$MISSING --run true"; then
 
2170
  am_missing_run="$MISSING --run "
 
2171
else
 
2172
  am_missing_run=
 
2173
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
2174
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
2175
fi
 
2176
 
 
2177
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
 
2178
  # We used to keeping the `.' as first argument, in order to
 
2179
  # allow $(mkdir_p) to be used without argument.  As in
 
2180
  #   $(mkdir_p) $(somedir)
 
2181
  # where $(somedir) is conditionally defined.  However this is wrong
 
2182
  # for two reasons:
 
2183
  #  1. if the package is installed by a user who cannot write `.'
 
2184
  #     make install will fail,
 
2185
  #  2. the above comment should most certainly read
 
2186
  #     $(mkdir_p) $(DESTDIR)$(somedir)
 
2187
  #     so it does not work when $(somedir) is undefined and
 
2188
  #     $(DESTDIR) is not.
 
2189
  #  To support the latter case, we have to write
 
2190
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
 
2191
  #  so the `.' trick is pointless.
 
2192
  mkdir_p='mkdir -p --'
 
2193
else
 
2194
  # On NextStep and OpenStep, the `mkdir' command does not
 
2195
  # recognize any option.  It will interpret all options as
 
2196
  # directories to create, and then abort because `.' already
 
2197
  # exists.
 
2198
  for d in ./-p ./--version;
 
2199
  do
 
2200
    test -d $d && rmdir $d
 
2201
  done
 
2202
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
 
2203
  if test -f "$ac_aux_dir/mkinstalldirs"; then
 
2204
    mkdir_p='$(mkinstalldirs)'
 
2205
  else
 
2206
    mkdir_p='$(install_sh) -d'
 
2207
  fi
 
2208
fi
 
2209
 
 
2210
for ac_prog in gawk mawk nawk awk
 
2211
do
 
2212
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2213
set dummy $ac_prog; ac_word=$2
 
2214
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2215
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2216
if test "${ac_cv_prog_AWK+set}" = set; then
 
2217
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2218
else
 
2219
  if test -n "$AWK"; then
 
2220
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
2221
else
 
2222
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2223
for as_dir in $PATH
 
2224
do
 
2225
  IFS=$as_save_IFS
 
2226
  test -z "$as_dir" && as_dir=.
 
2227
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2228
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2229
    ac_cv_prog_AWK="$ac_prog"
 
2230
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2231
    break 2
 
2232
  fi
 
2233
done
 
2234
done
 
2235
IFS=$as_save_IFS
 
2236
 
 
2237
fi
 
2238
fi
 
2239
AWK=$ac_cv_prog_AWK
 
2240
if test -n "$AWK"; then
 
2241
  { echo "$as_me:$LINENO: result: $AWK" >&5
 
2242
echo "${ECHO_T}$AWK" >&6; }
 
2243
else
 
2244
  { echo "$as_me:$LINENO: result: no" >&5
 
2245
echo "${ECHO_T}no" >&6; }
 
2246
fi
 
2247
 
 
2248
 
 
2249
  test -n "$AWK" && break
 
2250
done
 
2251
 
 
2252
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2253
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
 
2254
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
2255
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
 
2256
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2257
else
 
2258
  cat >conftest.make <<\_ACEOF
 
2259
SHELL = /bin/sh
 
2260
all:
 
2261
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
2262
_ACEOF
 
2263
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
2264
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
2265
  *@@@%%%=?*=@@@%%%*)
 
2266
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
2267
  *)
 
2268
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
2269
esac
 
2270
rm -f conftest.make
 
2271
fi
 
2272
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
2273
  { echo "$as_me:$LINENO: result: yes" >&5
 
2274
echo "${ECHO_T}yes" >&6; }
 
2275
  SET_MAKE=
 
2276
else
 
2277
  { echo "$as_me:$LINENO: result: no" >&5
 
2278
echo "${ECHO_T}no" >&6; }
 
2279
  SET_MAKE="MAKE=${MAKE-make}"
 
2280
fi
 
2281
 
 
2282
rm -rf .tst 2>/dev/null
 
2283
mkdir .tst 2>/dev/null
 
2284
if test -d .tst; then
 
2285
  am__leading_dot=.
 
2286
else
 
2287
  am__leading_dot=_
 
2288
fi
 
2289
rmdir .tst 2>/dev/null
 
2290
 
 
2291
# test to see if srcdir already configured
 
2292
if test "`cd $srcdir && pwd`" != "`pwd`" &&
 
2293
   test -f $srcdir/config.status; then
 
2294
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
2295
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
2296
   { (exit 1); exit 1; }; }
 
2297
fi
 
2298
 
 
2299
# test whether we have cygpath
 
2300
if test -z "$CYGPATH_W"; then
 
2301
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
2302
    CYGPATH_W='cygpath -w'
 
2303
  else
 
2304
    CYGPATH_W=echo
 
2305
  fi
 
2306
fi
 
2307
 
 
2308
 
 
2309
# Define the identity of the package.
 
2310
 PACKAGE='cryptsetup'
 
2311
 VERSION='1.0.6'
 
2312
 
 
2313
 
 
2314
cat >>confdefs.h <<_ACEOF
 
2315
#define PACKAGE "$PACKAGE"
 
2316
_ACEOF
 
2317
 
 
2318
 
 
2319
cat >>confdefs.h <<_ACEOF
 
2320
#define VERSION "$VERSION"
 
2321
_ACEOF
 
2322
 
 
2323
# Some tools Automake needs.
 
2324
 
 
2325
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
2326
 
 
2327
 
 
2328
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
2329
 
 
2330
 
 
2331
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
2332
 
 
2333
 
 
2334
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
2335
 
 
2336
 
 
2337
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
2338
 
 
2339
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
2340
 
 
2341
# Installed binaries are usually stripped using `strip' when the user
 
2342
# run `make install-strip'.  However `strip' might not be the right
 
2343
# tool to use in cross-compilation environments, therefore Automake
 
2344
# will honor the `STRIP' environment variable to overrule this program.
 
2345
if test "$cross_compiling" != no; then
 
2346
  if test -n "$ac_tool_prefix"; then
 
2347
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
2348
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
2349
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2350
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2351
if test "${ac_cv_prog_STRIP+set}" = set; then
 
2352
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2353
else
 
2354
  if test -n "$STRIP"; then
 
2355
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2356
else
 
2357
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2358
for as_dir in $PATH
 
2359
do
 
2360
  IFS=$as_save_IFS
 
2361
  test -z "$as_dir" && as_dir=.
 
2362
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2363
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2364
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2365
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2366
    break 2
 
2367
  fi
 
2368
done
 
2369
done
 
2370
IFS=$as_save_IFS
 
2371
 
 
2372
fi
 
2373
fi
 
2374
STRIP=$ac_cv_prog_STRIP
 
2375
if test -n "$STRIP"; then
 
2376
  { echo "$as_me:$LINENO: result: $STRIP" >&5
 
2377
echo "${ECHO_T}$STRIP" >&6; }
 
2378
else
 
2379
  { echo "$as_me:$LINENO: result: no" >&5
 
2380
echo "${ECHO_T}no" >&6; }
 
2381
fi
 
2382
 
 
2383
 
 
2384
fi
 
2385
if test -z "$ac_cv_prog_STRIP"; then
 
2386
  ac_ct_STRIP=$STRIP
 
2387
  # Extract the first word of "strip", so it can be a program name with args.
 
2388
set dummy strip; ac_word=$2
 
2389
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2390
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2391
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
2392
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2393
else
 
2394
  if test -n "$ac_ct_STRIP"; then
 
2395
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
2396
else
 
2397
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2398
for as_dir in $PATH
 
2399
do
 
2400
  IFS=$as_save_IFS
 
2401
  test -z "$as_dir" && as_dir=.
 
2402
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2403
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2404
    ac_cv_prog_ac_ct_STRIP="strip"
 
2405
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2406
    break 2
 
2407
  fi
 
2408
done
 
2409
done
 
2410
IFS=$as_save_IFS
 
2411
 
 
2412
fi
 
2413
fi
 
2414
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
2415
if test -n "$ac_ct_STRIP"; then
 
2416
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
2417
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
 
2418
else
 
2419
  { echo "$as_me:$LINENO: result: no" >&5
 
2420
echo "${ECHO_T}no" >&6; }
 
2421
fi
 
2422
 
 
2423
  if test "x$ac_ct_STRIP" = x; then
 
2424
    STRIP=":"
 
2425
  else
 
2426
    case $cross_compiling:$ac_tool_warned in
 
2427
yes:)
 
2428
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2429
whose name does not start with the host triplet.  If you think this
 
2430
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2431
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2432
whose name does not start with the host triplet.  If you think this
 
2433
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2434
ac_tool_warned=yes ;;
 
2435
esac
 
2436
    STRIP=$ac_ct_STRIP
 
2437
  fi
 
2438
else
 
2439
  STRIP="$ac_cv_prog_STRIP"
 
2440
fi
 
2441
 
 
2442
fi
 
2443
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
2444
 
 
2445
# We need awk for the "check" target.  The system "awk" is bad on
 
2446
# some platforms.
 
2447
# Always define AMTAR for backward compatibility.
 
2448
 
 
2449
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
2450
 
 
2451
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
2452
 
 
2453
 
 
2454
 
 
2455
 
 
2456
 
 
2457
 
 
2458
if test "x$prefix" = "xNONE"; then
 
2459
        sysconfdir=/etc
 
2460
fi
 
2461
 
 
2462
 
 
2463
# Make sure we can run config.sub.
 
2464
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
2465
  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
 
2466
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
 
2467
   { (exit 1); exit 1; }; }
 
2468
 
 
2469
{ echo "$as_me:$LINENO: checking build system type" >&5
 
2470
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
 
2471
if test "${ac_cv_build+set}" = set; then
 
2472
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2473
else
 
2474
  ac_build_alias=$build_alias
 
2475
test "x$ac_build_alias" = x &&
 
2476
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
2477
test "x$ac_build_alias" = x &&
 
2478
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
2479
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
2480
   { (exit 1); exit 1; }; }
 
2481
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
2482
  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
 
2483
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
 
2484
   { (exit 1); exit 1; }; }
 
2485
 
 
2486
fi
 
2487
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
2488
echo "${ECHO_T}$ac_cv_build" >&6; }
 
2489
case $ac_cv_build in
 
2490
*-*-*) ;;
 
2491
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
 
2492
echo "$as_me: error: invalid value of canonical build" >&2;}
 
2493
   { (exit 1); exit 1; }; };;
 
2494
esac
 
2495
build=$ac_cv_build
 
2496
ac_save_IFS=$IFS; IFS='-'
 
2497
set x $ac_cv_build
 
2498
shift
 
2499
build_cpu=$1
 
2500
build_vendor=$2
 
2501
shift; shift
 
2502
# Remember, the first character of IFS is used to create $*,
 
2503
# except with old shells:
 
2504
build_os=$*
 
2505
IFS=$ac_save_IFS
 
2506
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
2507
 
 
2508
 
 
2509
{ echo "$as_me:$LINENO: checking host system type" >&5
 
2510
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
 
2511
if test "${ac_cv_host+set}" = set; then
 
2512
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2513
else
 
2514
  if test "x$host_alias" = x; then
 
2515
  ac_cv_host=$ac_cv_build
 
2516
else
 
2517
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
2518
    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
 
2519
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
 
2520
   { (exit 1); exit 1; }; }
 
2521
fi
 
2522
 
 
2523
fi
 
2524
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
2525
echo "${ECHO_T}$ac_cv_host" >&6; }
 
2526
case $ac_cv_host in
 
2527
*-*-*) ;;
 
2528
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
 
2529
echo "$as_me: error: invalid value of canonical host" >&2;}
 
2530
   { (exit 1); exit 1; }; };;
 
2531
esac
 
2532
host=$ac_cv_host
 
2533
ac_save_IFS=$IFS; IFS='-'
 
2534
set x $ac_cv_host
 
2535
shift
 
2536
host_cpu=$1
 
2537
host_vendor=$2
 
2538
shift; shift
 
2539
# Remember, the first character of IFS is used to create $*,
 
2540
# except with old shells:
 
2541
host_os=$*
 
2542
IFS=$ac_save_IFS
 
2543
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
2544
 
 
2545
 
 
2546
 
 
2547
cat >>confdefs.h <<\_ACEOF
 
2548
#define _GNU_SOURCE 1
 
2549
_ACEOF
 
2550
 
 
2551
 
 
2552
ac_ext=c
 
2553
ac_cpp='$CPP $CPPFLAGS'
 
2554
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2555
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2556
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2557
if test -n "$ac_tool_prefix"; then
 
2558
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
2559
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
2560
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2561
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2562
if test "${ac_cv_prog_CC+set}" = set; then
 
2563
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2564
else
 
2565
  if test -n "$CC"; then
 
2566
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2567
else
 
2568
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2569
for as_dir in $PATH
 
2570
do
 
2571
  IFS=$as_save_IFS
 
2572
  test -z "$as_dir" && as_dir=.
 
2573
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2574
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2575
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2576
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2577
    break 2
 
2578
  fi
 
2579
done
 
2580
done
 
2581
IFS=$as_save_IFS
 
2582
 
 
2583
fi
 
2584
fi
 
2585
CC=$ac_cv_prog_CC
 
2586
if test -n "$CC"; then
 
2587
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2588
echo "${ECHO_T}$CC" >&6; }
 
2589
else
 
2590
  { echo "$as_me:$LINENO: result: no" >&5
 
2591
echo "${ECHO_T}no" >&6; }
 
2592
fi
 
2593
 
 
2594
 
 
2595
fi
 
2596
if test -z "$ac_cv_prog_CC"; then
 
2597
  ac_ct_CC=$CC
 
2598
  # Extract the first word of "gcc", so it can be a program name with args.
 
2599
set dummy gcc; ac_word=$2
 
2600
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2601
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2602
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2603
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2604
else
 
2605
  if test -n "$ac_ct_CC"; then
 
2606
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2607
else
 
2608
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2609
for as_dir in $PATH
 
2610
do
 
2611
  IFS=$as_save_IFS
 
2612
  test -z "$as_dir" && as_dir=.
 
2613
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2614
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2615
    ac_cv_prog_ac_ct_CC="gcc"
 
2616
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2617
    break 2
 
2618
  fi
 
2619
done
 
2620
done
 
2621
IFS=$as_save_IFS
 
2622
 
 
2623
fi
 
2624
fi
 
2625
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2626
if test -n "$ac_ct_CC"; then
 
2627
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2628
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
2629
else
 
2630
  { echo "$as_me:$LINENO: result: no" >&5
 
2631
echo "${ECHO_T}no" >&6; }
 
2632
fi
 
2633
 
 
2634
  if test "x$ac_ct_CC" = x; then
 
2635
    CC=""
 
2636
  else
 
2637
    case $cross_compiling:$ac_tool_warned in
 
2638
yes:)
 
2639
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2640
whose name does not start with the host triplet.  If you think this
 
2641
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2642
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2643
whose name does not start with the host triplet.  If you think this
 
2644
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2645
ac_tool_warned=yes ;;
 
2646
esac
 
2647
    CC=$ac_ct_CC
 
2648
  fi
 
2649
else
 
2650
  CC="$ac_cv_prog_CC"
 
2651
fi
 
2652
 
 
2653
if test -z "$CC"; then
 
2654
          if test -n "$ac_tool_prefix"; then
 
2655
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2656
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
2657
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2658
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2659
if test "${ac_cv_prog_CC+set}" = set; then
 
2660
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2661
else
 
2662
  if test -n "$CC"; then
 
2663
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2664
else
 
2665
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2666
for as_dir in $PATH
 
2667
do
 
2668
  IFS=$as_save_IFS
 
2669
  test -z "$as_dir" && as_dir=.
 
2670
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2671
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2672
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2673
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2674
    break 2
 
2675
  fi
 
2676
done
 
2677
done
 
2678
IFS=$as_save_IFS
 
2679
 
 
2680
fi
 
2681
fi
 
2682
CC=$ac_cv_prog_CC
 
2683
if test -n "$CC"; then
 
2684
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2685
echo "${ECHO_T}$CC" >&6; }
 
2686
else
 
2687
  { echo "$as_me:$LINENO: result: no" >&5
 
2688
echo "${ECHO_T}no" >&6; }
 
2689
fi
 
2690
 
 
2691
 
 
2692
  fi
 
2693
fi
 
2694
if test -z "$CC"; then
 
2695
  # Extract the first word of "cc", so it can be a program name with args.
 
2696
set dummy cc; ac_word=$2
 
2697
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2698
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2699
if test "${ac_cv_prog_CC+set}" = set; then
 
2700
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2701
else
 
2702
  if test -n "$CC"; then
 
2703
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2704
else
 
2705
  ac_prog_rejected=no
 
2706
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2707
for as_dir in $PATH
 
2708
do
 
2709
  IFS=$as_save_IFS
 
2710
  test -z "$as_dir" && as_dir=.
 
2711
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2712
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2713
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2714
       ac_prog_rejected=yes
 
2715
       continue
 
2716
     fi
 
2717
    ac_cv_prog_CC="cc"
 
2718
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2719
    break 2
 
2720
  fi
 
2721
done
 
2722
done
 
2723
IFS=$as_save_IFS
 
2724
 
 
2725
if test $ac_prog_rejected = yes; then
 
2726
  # We found a bogon in the path, so make sure we never use it.
 
2727
  set dummy $ac_cv_prog_CC
 
2728
  shift
 
2729
  if test $# != 0; then
 
2730
    # We chose a different compiler from the bogus one.
 
2731
    # However, it has the same basename, so the bogon will be chosen
 
2732
    # first if we set CC to just the basename; use the full file name.
 
2733
    shift
 
2734
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
2735
  fi
 
2736
fi
 
2737
fi
 
2738
fi
 
2739
CC=$ac_cv_prog_CC
 
2740
if test -n "$CC"; then
 
2741
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2742
echo "${ECHO_T}$CC" >&6; }
 
2743
else
 
2744
  { echo "$as_me:$LINENO: result: no" >&5
 
2745
echo "${ECHO_T}no" >&6; }
 
2746
fi
 
2747
 
 
2748
 
 
2749
fi
 
2750
if test -z "$CC"; then
 
2751
  if test -n "$ac_tool_prefix"; then
 
2752
  for ac_prog in cl.exe
 
2753
  do
 
2754
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2755
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2756
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2757
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2758
if test "${ac_cv_prog_CC+set}" = set; then
 
2759
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2760
else
 
2761
  if test -n "$CC"; then
 
2762
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2763
else
 
2764
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2765
for as_dir in $PATH
 
2766
do
 
2767
  IFS=$as_save_IFS
 
2768
  test -z "$as_dir" && as_dir=.
 
2769
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2770
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2771
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2772
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2773
    break 2
 
2774
  fi
 
2775
done
 
2776
done
 
2777
IFS=$as_save_IFS
 
2778
 
 
2779
fi
 
2780
fi
 
2781
CC=$ac_cv_prog_CC
 
2782
if test -n "$CC"; then
 
2783
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2784
echo "${ECHO_T}$CC" >&6; }
 
2785
else
 
2786
  { echo "$as_me:$LINENO: result: no" >&5
 
2787
echo "${ECHO_T}no" >&6; }
 
2788
fi
 
2789
 
 
2790
 
 
2791
    test -n "$CC" && break
 
2792
  done
 
2793
fi
 
2794
if test -z "$CC"; then
 
2795
  ac_ct_CC=$CC
 
2796
  for ac_prog in cl.exe
 
2797
do
 
2798
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2799
set dummy $ac_prog; ac_word=$2
 
2800
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2801
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2802
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2803
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2804
else
 
2805
  if test -n "$ac_ct_CC"; then
 
2806
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2807
else
 
2808
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2809
for as_dir in $PATH
 
2810
do
 
2811
  IFS=$as_save_IFS
 
2812
  test -z "$as_dir" && as_dir=.
 
2813
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2814
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2815
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2816
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2817
    break 2
 
2818
  fi
 
2819
done
 
2820
done
 
2821
IFS=$as_save_IFS
 
2822
 
 
2823
fi
 
2824
fi
 
2825
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2826
if test -n "$ac_ct_CC"; then
 
2827
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2828
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
2829
else
 
2830
  { echo "$as_me:$LINENO: result: no" >&5
 
2831
echo "${ECHO_T}no" >&6; }
 
2832
fi
 
2833
 
 
2834
 
 
2835
  test -n "$ac_ct_CC" && break
 
2836
done
 
2837
 
 
2838
  if test "x$ac_ct_CC" = x; then
 
2839
    CC=""
 
2840
  else
 
2841
    case $cross_compiling:$ac_tool_warned in
 
2842
yes:)
 
2843
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2844
whose name does not start with the host triplet.  If you think this
 
2845
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2846
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2847
whose name does not start with the host triplet.  If you think this
 
2848
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2849
ac_tool_warned=yes ;;
 
2850
esac
 
2851
    CC=$ac_ct_CC
 
2852
  fi
 
2853
fi
 
2854
 
 
2855
fi
 
2856
 
 
2857
 
 
2858
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
2859
See \`config.log' for more details." >&5
 
2860
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
2861
See \`config.log' for more details." >&2;}
 
2862
   { (exit 1); exit 1; }; }
 
2863
 
 
2864
# Provide some information about the compiler.
 
2865
echo "$as_me:$LINENO: checking for C compiler version" >&5
 
2866
ac_compiler=`set X $ac_compile; echo $2`
 
2867
{ (ac_try="$ac_compiler --version >&5"
 
2868
case "(($ac_try" in
 
2869
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2870
  *) ac_try_echo=$ac_try;;
 
2871
esac
 
2872
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2873
  (eval "$ac_compiler --version >&5") 2>&5
 
2874
  ac_status=$?
 
2875
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2876
  (exit $ac_status); }
 
2877
{ (ac_try="$ac_compiler -v >&5"
 
2878
case "(($ac_try" in
 
2879
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2880
  *) ac_try_echo=$ac_try;;
 
2881
esac
 
2882
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2883
  (eval "$ac_compiler -v >&5") 2>&5
 
2884
  ac_status=$?
 
2885
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2886
  (exit $ac_status); }
 
2887
{ (ac_try="$ac_compiler -V >&5"
 
2888
case "(($ac_try" in
 
2889
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2890
  *) ac_try_echo=$ac_try;;
 
2891
esac
 
2892
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2893
  (eval "$ac_compiler -V >&5") 2>&5
 
2894
  ac_status=$?
 
2895
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2896
  (exit $ac_status); }
 
2897
 
 
2898
cat >conftest.$ac_ext <<_ACEOF
 
2899
/* confdefs.h.  */
 
2900
_ACEOF
 
2901
cat confdefs.h >>conftest.$ac_ext
 
2902
cat >>conftest.$ac_ext <<_ACEOF
 
2903
/* end confdefs.h.  */
 
2904
 
 
2905
int
 
2906
main ()
 
2907
{
 
2908
 
 
2909
  ;
 
2910
  return 0;
 
2911
}
 
2912
_ACEOF
 
2913
ac_clean_files_save=$ac_clean_files
 
2914
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
2915
# Try to create an executable without -o first, disregard a.out.
 
2916
# It will help us diagnose broken compilers, and finding out an intuition
 
2917
# of exeext.
 
2918
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
2919
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
 
2920
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2921
#
 
2922
# List of possible output files, starting from the most likely.
 
2923
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
 
2924
# only as a last resort.  b.out is created by i960 compilers.
 
2925
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
 
2926
#
 
2927
# The IRIX 6 linker writes into existing files which may not be
 
2928
# executable, retaining their permissions.  Remove them first so a
 
2929
# subsequent execution test works.
 
2930
ac_rmfiles=
 
2931
for ac_file in $ac_files
 
2932
do
 
2933
  case $ac_file in
 
2934
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
2935
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
2936
  esac
 
2937
done
 
2938
rm -f $ac_rmfiles
 
2939
 
 
2940
if { (ac_try="$ac_link_default"
 
2941
case "(($ac_try" in
 
2942
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2943
  *) ac_try_echo=$ac_try;;
 
2944
esac
 
2945
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2946
  (eval "$ac_link_default") 2>&5
 
2947
  ac_status=$?
 
2948
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2949
  (exit $ac_status); }; then
 
2950
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
2951
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
2952
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
2953
# so that the user can short-circuit this test for compilers unknown to
 
2954
# Autoconf.
 
2955
for ac_file in $ac_files ''
 
2956
do
 
2957
  test -f "$ac_file" || continue
 
2958
  case $ac_file in
 
2959
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
 
2960
        ;;
 
2961
    [ab].out )
 
2962
        # We found the default executable, but exeext='' is most
 
2963
        # certainly right.
 
2964
        break;;
 
2965
    *.* )
 
2966
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
2967
        then :; else
 
2968
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2969
        fi
 
2970
        # We set ac_cv_exeext here because the later test for it is not
 
2971
        # safe: cross compilers may not add the suffix if given an `-o'
 
2972
        # argument, so we may need to know it at that point already.
 
2973
        # Even if this section looks crufty: it has the advantage of
 
2974
        # actually working.
 
2975
        break;;
 
2976
    * )
 
2977
        break;;
 
2978
  esac
 
2979
done
 
2980
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
2981
 
 
2982
else
 
2983
  ac_file=''
 
2984
fi
 
2985
 
 
2986
{ echo "$as_me:$LINENO: result: $ac_file" >&5
 
2987
echo "${ECHO_T}$ac_file" >&6; }
 
2988
if test -z "$ac_file"; then
 
2989
  echo "$as_me: failed program was:" >&5
 
2990
sed 's/^/| /' conftest.$ac_ext >&5
 
2991
 
 
2992
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
2993
See \`config.log' for more details." >&5
 
2994
echo "$as_me: error: C compiler cannot create executables
 
2995
See \`config.log' for more details." >&2;}
 
2996
   { (exit 77); exit 77; }; }
 
2997
fi
 
2998
 
 
2999
ac_exeext=$ac_cv_exeext
 
3000
 
 
3001
# Check that the compiler produces executables we can run.  If not, either
 
3002
# the compiler is broken, or we cross compile.
 
3003
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
3004
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
 
3005
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
3006
# If not cross compiling, check that we can run a simple program.
 
3007
if test "$cross_compiling" != yes; then
 
3008
  if { ac_try='./$ac_file'
 
3009
  { (case "(($ac_try" in
 
3010
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3011
  *) ac_try_echo=$ac_try;;
 
3012
esac
 
3013
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3014
  (eval "$ac_try") 2>&5
 
3015
  ac_status=$?
 
3016
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3017
  (exit $ac_status); }; }; then
 
3018
    cross_compiling=no
 
3019
  else
 
3020
    if test "$cross_compiling" = maybe; then
 
3021
        cross_compiling=yes
 
3022
    else
 
3023
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
3024
If you meant to cross compile, use \`--host'.
 
3025
See \`config.log' for more details." >&5
 
3026
echo "$as_me: error: cannot run C compiled programs.
 
3027
If you meant to cross compile, use \`--host'.
 
3028
See \`config.log' for more details." >&2;}
 
3029
   { (exit 1); exit 1; }; }
 
3030
    fi
 
3031
  fi
 
3032
fi
 
3033
{ echo "$as_me:$LINENO: result: yes" >&5
 
3034
echo "${ECHO_T}yes" >&6; }
 
3035
 
 
3036
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
3037
ac_clean_files=$ac_clean_files_save
 
3038
# Check that the compiler produces executables we can run.  If not, either
 
3039
# the compiler is broken, or we cross compile.
 
3040
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
3041
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
 
3042
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
3043
echo "${ECHO_T}$cross_compiling" >&6; }
 
3044
 
 
3045
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
3046
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
 
3047
if { (ac_try="$ac_link"
 
3048
case "(($ac_try" in
 
3049
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3050
  *) ac_try_echo=$ac_try;;
 
3051
esac
 
3052
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3053
  (eval "$ac_link") 2>&5
 
3054
  ac_status=$?
 
3055
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3056
  (exit $ac_status); }; then
 
3057
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
3058
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
3059
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
3060
# `rm'.
 
3061
for ac_file in conftest.exe conftest conftest.*; do
 
3062
  test -f "$ac_file" || continue
 
3063
  case $ac_file in
 
3064
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
3065
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
3066
          break;;
 
3067
    * ) break;;
 
3068
  esac
 
3069
done
 
3070
else
 
3071
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
3072
See \`config.log' for more details." >&5
 
3073
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
3074
See \`config.log' for more details." >&2;}
 
3075
   { (exit 1); exit 1; }; }
 
3076
fi
 
3077
 
 
3078
rm -f conftest$ac_cv_exeext
 
3079
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
3080
echo "${ECHO_T}$ac_cv_exeext" >&6; }
 
3081
 
 
3082
rm -f conftest.$ac_ext
 
3083
EXEEXT=$ac_cv_exeext
 
3084
ac_exeext=$EXEEXT
 
3085
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
3086
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
 
3087
if test "${ac_cv_objext+set}" = set; then
 
3088
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3089
else
 
3090
  cat >conftest.$ac_ext <<_ACEOF
 
3091
/* confdefs.h.  */
 
3092
_ACEOF
 
3093
cat confdefs.h >>conftest.$ac_ext
 
3094
cat >>conftest.$ac_ext <<_ACEOF
 
3095
/* end confdefs.h.  */
 
3096
 
 
3097
int
 
3098
main ()
 
3099
{
 
3100
 
 
3101
  ;
 
3102
  return 0;
 
3103
}
 
3104
_ACEOF
 
3105
rm -f conftest.o conftest.obj
 
3106
if { (ac_try="$ac_compile"
 
3107
case "(($ac_try" in
 
3108
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3109
  *) ac_try_echo=$ac_try;;
 
3110
esac
 
3111
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3112
  (eval "$ac_compile") 2>&5
 
3113
  ac_status=$?
 
3114
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3115
  (exit $ac_status); }; then
 
3116
  for ac_file in conftest.o conftest.obj conftest.*; do
 
3117
  test -f "$ac_file" || continue;
 
3118
  case $ac_file in
 
3119
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
 
3120
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
3121
       break;;
 
3122
  esac
 
3123
done
 
3124
else
 
3125
  echo "$as_me: failed program was:" >&5
 
3126
sed 's/^/| /' conftest.$ac_ext >&5
 
3127
 
 
3128
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
3129
See \`config.log' for more details." >&5
 
3130
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
3131
See \`config.log' for more details." >&2;}
 
3132
   { (exit 1); exit 1; }; }
 
3133
fi
 
3134
 
 
3135
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
3136
fi
 
3137
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
3138
echo "${ECHO_T}$ac_cv_objext" >&6; }
 
3139
OBJEXT=$ac_cv_objext
 
3140
ac_objext=$OBJEXT
 
3141
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
3142
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
 
3143
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
3144
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3145
else
 
3146
  cat >conftest.$ac_ext <<_ACEOF
 
3147
/* confdefs.h.  */
 
3148
_ACEOF
 
3149
cat confdefs.h >>conftest.$ac_ext
 
3150
cat >>conftest.$ac_ext <<_ACEOF
 
3151
/* end confdefs.h.  */
 
3152
 
 
3153
int
 
3154
main ()
 
3155
{
 
3156
#ifndef __GNUC__
 
3157
       choke me
 
3158
#endif
 
3159
 
 
3160
  ;
 
3161
  return 0;
 
3162
}
 
3163
_ACEOF
 
3164
rm -f conftest.$ac_objext
 
3165
if { (ac_try="$ac_compile"
 
3166
case "(($ac_try" in
 
3167
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3168
  *) ac_try_echo=$ac_try;;
 
3169
esac
 
3170
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3171
  (eval "$ac_compile") 2>conftest.er1
 
3172
  ac_status=$?
 
3173
  grep -v '^ *+' conftest.er1 >conftest.err
 
3174
  rm -f conftest.er1
 
3175
  cat conftest.err >&5
 
3176
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3177
  (exit $ac_status); } && {
 
3178
         test -z "$ac_c_werror_flag" ||
 
3179
         test ! -s conftest.err
 
3180
       } && test -s conftest.$ac_objext; then
 
3181
  ac_compiler_gnu=yes
 
3182
else
 
3183
  echo "$as_me: failed program was:" >&5
 
3184
sed 's/^/| /' conftest.$ac_ext >&5
 
3185
 
 
3186
        ac_compiler_gnu=no
 
3187
fi
 
3188
 
 
3189
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3190
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
3191
 
 
3192
fi
 
3193
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
3194
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
 
3195
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
3196
ac_test_CFLAGS=${CFLAGS+set}
 
3197
ac_save_CFLAGS=$CFLAGS
 
3198
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
3199
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
 
3200
if test "${ac_cv_prog_cc_g+set}" = set; then
 
3201
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3202
else
 
3203
  ac_save_c_werror_flag=$ac_c_werror_flag
 
3204
   ac_c_werror_flag=yes
 
3205
   ac_cv_prog_cc_g=no
 
3206
   CFLAGS="-g"
 
3207
   cat >conftest.$ac_ext <<_ACEOF
 
3208
/* confdefs.h.  */
 
3209
_ACEOF
 
3210
cat confdefs.h >>conftest.$ac_ext
 
3211
cat >>conftest.$ac_ext <<_ACEOF
 
3212
/* end confdefs.h.  */
 
3213
 
 
3214
int
 
3215
main ()
 
3216
{
 
3217
 
 
3218
  ;
 
3219
  return 0;
 
3220
}
 
3221
_ACEOF
 
3222
rm -f conftest.$ac_objext
 
3223
if { (ac_try="$ac_compile"
 
3224
case "(($ac_try" in
 
3225
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3226
  *) ac_try_echo=$ac_try;;
 
3227
esac
 
3228
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3229
  (eval "$ac_compile") 2>conftest.er1
 
3230
  ac_status=$?
 
3231
  grep -v '^ *+' conftest.er1 >conftest.err
 
3232
  rm -f conftest.er1
 
3233
  cat conftest.err >&5
 
3234
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3235
  (exit $ac_status); } && {
 
3236
         test -z "$ac_c_werror_flag" ||
 
3237
         test ! -s conftest.err
 
3238
       } && test -s conftest.$ac_objext; then
 
3239
  ac_cv_prog_cc_g=yes
 
3240
else
 
3241
  echo "$as_me: failed program was:" >&5
 
3242
sed 's/^/| /' conftest.$ac_ext >&5
 
3243
 
 
3244
        CFLAGS=""
 
3245
      cat >conftest.$ac_ext <<_ACEOF
 
3246
/* confdefs.h.  */
 
3247
_ACEOF
 
3248
cat confdefs.h >>conftest.$ac_ext
 
3249
cat >>conftest.$ac_ext <<_ACEOF
 
3250
/* end confdefs.h.  */
 
3251
 
 
3252
int
 
3253
main ()
 
3254
{
 
3255
 
 
3256
  ;
 
3257
  return 0;
 
3258
}
 
3259
_ACEOF
 
3260
rm -f conftest.$ac_objext
 
3261
if { (ac_try="$ac_compile"
 
3262
case "(($ac_try" in
 
3263
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3264
  *) ac_try_echo=$ac_try;;
 
3265
esac
 
3266
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3267
  (eval "$ac_compile") 2>conftest.er1
 
3268
  ac_status=$?
 
3269
  grep -v '^ *+' conftest.er1 >conftest.err
 
3270
  rm -f conftest.er1
 
3271
  cat conftest.err >&5
 
3272
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3273
  (exit $ac_status); } && {
 
3274
         test -z "$ac_c_werror_flag" ||
 
3275
         test ! -s conftest.err
 
3276
       } && test -s conftest.$ac_objext; then
 
3277
  :
 
3278
else
 
3279
  echo "$as_me: failed program was:" >&5
 
3280
sed 's/^/| /' conftest.$ac_ext >&5
 
3281
 
 
3282
        ac_c_werror_flag=$ac_save_c_werror_flag
 
3283
         CFLAGS="-g"
 
3284
         cat >conftest.$ac_ext <<_ACEOF
 
3285
/* confdefs.h.  */
 
3286
_ACEOF
 
3287
cat confdefs.h >>conftest.$ac_ext
 
3288
cat >>conftest.$ac_ext <<_ACEOF
 
3289
/* end confdefs.h.  */
 
3290
 
 
3291
int
 
3292
main ()
 
3293
{
 
3294
 
 
3295
  ;
 
3296
  return 0;
 
3297
}
 
3298
_ACEOF
 
3299
rm -f conftest.$ac_objext
 
3300
if { (ac_try="$ac_compile"
 
3301
case "(($ac_try" in
 
3302
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3303
  *) ac_try_echo=$ac_try;;
 
3304
esac
 
3305
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3306
  (eval "$ac_compile") 2>conftest.er1
 
3307
  ac_status=$?
 
3308
  grep -v '^ *+' conftest.er1 >conftest.err
 
3309
  rm -f conftest.er1
 
3310
  cat conftest.err >&5
 
3311
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3312
  (exit $ac_status); } && {
 
3313
         test -z "$ac_c_werror_flag" ||
 
3314
         test ! -s conftest.err
 
3315
       } && test -s conftest.$ac_objext; then
 
3316
  ac_cv_prog_cc_g=yes
 
3317
else
 
3318
  echo "$as_me: failed program was:" >&5
 
3319
sed 's/^/| /' conftest.$ac_ext >&5
 
3320
 
 
3321
 
 
3322
fi
 
3323
 
 
3324
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3325
fi
 
3326
 
 
3327
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3328
fi
 
3329
 
 
3330
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3331
   ac_c_werror_flag=$ac_save_c_werror_flag
 
3332
fi
 
3333
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
3334
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
 
3335
if test "$ac_test_CFLAGS" = set; then
 
3336
  CFLAGS=$ac_save_CFLAGS
 
3337
elif test $ac_cv_prog_cc_g = yes; then
 
3338
  if test "$GCC" = yes; then
 
3339
    CFLAGS="-g -O2"
 
3340
  else
 
3341
    CFLAGS="-g"
 
3342
  fi
 
3343
else
 
3344
  if test "$GCC" = yes; then
 
3345
    CFLAGS="-O2"
 
3346
  else
 
3347
    CFLAGS=
 
3348
  fi
 
3349
fi
 
3350
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
 
3351
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
 
3352
if test "${ac_cv_prog_cc_c89+set}" = set; then
 
3353
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3354
else
 
3355
  ac_cv_prog_cc_c89=no
 
3356
ac_save_CC=$CC
 
3357
cat >conftest.$ac_ext <<_ACEOF
 
3358
/* confdefs.h.  */
 
3359
_ACEOF
 
3360
cat confdefs.h >>conftest.$ac_ext
 
3361
cat >>conftest.$ac_ext <<_ACEOF
 
3362
/* end confdefs.h.  */
 
3363
#include <stdarg.h>
 
3364
#include <stdio.h>
 
3365
#include <sys/types.h>
 
3366
#include <sys/stat.h>
 
3367
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
3368
struct buf { int x; };
 
3369
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
3370
static char *e (p, i)
 
3371
     char **p;
 
3372
     int i;
 
3373
{
 
3374
  return p[i];
 
3375
}
 
3376
static char *f (char * (*g) (char **, int), char **p, ...)
 
3377
{
 
3378
  char *s;
 
3379
  va_list v;
 
3380
  va_start (v,p);
 
3381
  s = g (p, va_arg (v,int));
 
3382
  va_end (v);
 
3383
  return s;
 
3384
}
 
3385
 
 
3386
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
3387
   function prototypes and stuff, but not '\xHH' hex character constants.
 
3388
   These don't provoke an error unfortunately, instead are silently treated
 
3389
   as 'x'.  The following induces an error, until -std is added to get
 
3390
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
3391
   array size at least.  It's necessary to write '\x00'==0 to get something
 
3392
   that's true only with -std.  */
 
3393
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
3394
 
 
3395
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
3396
   inside strings and character constants.  */
 
3397
#define FOO(x) 'x'
 
3398
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
3399
 
 
3400
int test (int i, double x);
 
3401
struct s1 {int (*f) (int a);};
 
3402
struct s2 {int (*f) (double a);};
 
3403
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
3404
int argc;
 
3405
char **argv;
 
3406
int
 
3407
main ()
 
3408
{
 
3409
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
3410
  ;
 
3411
  return 0;
 
3412
}
 
3413
_ACEOF
 
3414
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
3415
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3416
do
 
3417
  CC="$ac_save_CC $ac_arg"
 
3418
  rm -f conftest.$ac_objext
 
3419
if { (ac_try="$ac_compile"
 
3420
case "(($ac_try" in
 
3421
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3422
  *) ac_try_echo=$ac_try;;
 
3423
esac
 
3424
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3425
  (eval "$ac_compile") 2>conftest.er1
 
3426
  ac_status=$?
 
3427
  grep -v '^ *+' conftest.er1 >conftest.err
 
3428
  rm -f conftest.er1
 
3429
  cat conftest.err >&5
 
3430
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3431
  (exit $ac_status); } && {
 
3432
         test -z "$ac_c_werror_flag" ||
 
3433
         test ! -s conftest.err
 
3434
       } && test -s conftest.$ac_objext; then
 
3435
  ac_cv_prog_cc_c89=$ac_arg
 
3436
else
 
3437
  echo "$as_me: failed program was:" >&5
 
3438
sed 's/^/| /' conftest.$ac_ext >&5
 
3439
 
 
3440
 
 
3441
fi
 
3442
 
 
3443
rm -f core conftest.err conftest.$ac_objext
 
3444
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
3445
done
 
3446
rm -f conftest.$ac_ext
 
3447
CC=$ac_save_CC
 
3448
 
 
3449
fi
 
3450
# AC_CACHE_VAL
 
3451
case "x$ac_cv_prog_cc_c89" in
 
3452
  x)
 
3453
    { echo "$as_me:$LINENO: result: none needed" >&5
 
3454
echo "${ECHO_T}none needed" >&6; } ;;
 
3455
  xno)
 
3456
    { echo "$as_me:$LINENO: result: unsupported" >&5
 
3457
echo "${ECHO_T}unsupported" >&6; } ;;
 
3458
  *)
 
3459
    CC="$CC $ac_cv_prog_cc_c89"
 
3460
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
 
3461
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
 
3462
esac
 
3463
 
 
3464
 
 
3465
ac_ext=c
 
3466
ac_cpp='$CPP $CPPFLAGS'
 
3467
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3468
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3469
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3470
DEPDIR="${am__leading_dot}deps"
 
3471
 
 
3472
ac_config_commands="$ac_config_commands depfiles"
 
3473
 
 
3474
 
 
3475
am_make=${MAKE-make}
 
3476
cat > confinc << 'END'
 
3477
am__doit:
 
3478
        @echo done
 
3479
.PHONY: am__doit
 
3480
END
 
3481
# If we don't find an include directive, just comment out the code.
 
3482
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
3483
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
 
3484
am__include="#"
 
3485
am__quote=
 
3486
_am_result=none
 
3487
# First try GNU make style include.
 
3488
echo "include confinc" > confmf
 
3489
# We grep out `Entering directory' and `Leaving directory'
 
3490
# messages which can occur if `w' ends up in MAKEFLAGS.
 
3491
# In particular we don't look at `^make:' because GNU make might
 
3492
# be invoked under some other name (usually "gmake"), in which
 
3493
# case it prints its new name instead of `make'.
 
3494
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
3495
   am__include=include
 
3496
   am__quote=
 
3497
   _am_result=GNU
 
3498
fi
 
3499
# Now try BSD make style include.
 
3500
if test "$am__include" = "#"; then
 
3501
   echo '.include "confinc"' > confmf
 
3502
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
3503
      am__include=.include
 
3504
      am__quote="\""
 
3505
      _am_result=BSD
 
3506
   fi
 
3507
fi
 
3508
 
 
3509
 
 
3510
{ echo "$as_me:$LINENO: result: $_am_result" >&5
 
3511
echo "${ECHO_T}$_am_result" >&6; }
 
3512
rm -f confinc confmf
 
3513
 
 
3514
# Check whether --enable-dependency-tracking was given.
 
3515
if test "${enable_dependency_tracking+set}" = set; then
 
3516
  enableval=$enable_dependency_tracking;
 
3517
fi
 
3518
 
 
3519
if test "x$enable_dependency_tracking" != xno; then
 
3520
  am_depcomp="$ac_aux_dir/depcomp"
 
3521
  AMDEPBACKSLASH='\'
 
3522
fi
 
3523
 
 
3524
 
 
3525
if test "x$enable_dependency_tracking" != xno; then
 
3526
  AMDEP_TRUE=
 
3527
  AMDEP_FALSE='#'
 
3528
else
 
3529
  AMDEP_TRUE='#'
 
3530
  AMDEP_FALSE=
 
3531
fi
 
3532
 
 
3533
 
 
3534
 
 
3535
 
 
3536
depcc="$CC"   am_compiler_list=
 
3537
 
 
3538
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
3539
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
 
3540
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
3541
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3542
else
 
3543
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3544
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3545
  # making bogus files that we don't know about and never remove.  For
 
3546
  # instance it was reported that on HP-UX the gcc test will end up
 
3547
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3548
  # in D'.
 
3549
  mkdir conftest.dir
 
3550
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3551
  # using a relative directory.
 
3552
  cp "$am_depcomp" conftest.dir
 
3553
  cd conftest.dir
 
3554
  # We will build objects and dependencies in a subdirectory because
 
3555
  # it helps to detect inapplicable dependency modes.  For instance
 
3556
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3557
  # side effect of compilation, but ICC will put the dependencies in
 
3558
  # the current directory while Tru64 will put them in the object
 
3559
  # directory.
 
3560
  mkdir sub
 
3561
 
 
3562
  am_cv_CC_dependencies_compiler_type=none
 
3563
  if test "$am_compiler_list" = ""; then
 
3564
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3565
  fi
 
3566
  for depmode in $am_compiler_list; do
 
3567
    # Setup a source with many dependencies, because some compilers
 
3568
    # like to wrap large dependency lists on column 80 (with \), and
 
3569
    # we should not choose a depcomp mode which is confused by this.
 
3570
    #
 
3571
    # We need to recreate these files for each test, as the compiler may
 
3572
    # overwrite some of them when testing with obscure command lines.
 
3573
    # This happens at least with the AIX C compiler.
 
3574
    : > sub/conftest.c
 
3575
    for i in 1 2 3 4 5 6; do
 
3576
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3577
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3578
      # Solaris 8's {/usr,}/bin/sh.
 
3579
      touch sub/conftst$i.h
 
3580
    done
 
3581
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3582
 
 
3583
    case $depmode in
 
3584
    nosideeffect)
 
3585
      # after this tag, mechanisms are not by side-effect, so they'll
 
3586
      # only be used when explicitly requested
 
3587
      if test "x$enable_dependency_tracking" = xyes; then
 
3588
        continue
 
3589
      else
 
3590
        break
 
3591
      fi
 
3592
      ;;
 
3593
    none) break ;;
 
3594
    esac
 
3595
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3596
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3597
    # handle `-M -o', and we need to detect this.
 
3598
    if depmode=$depmode \
 
3599
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
3600
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3601
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
3602
         >/dev/null 2>conftest.err &&
 
3603
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3604
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
3605
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3606
      # icc doesn't choke on unknown options, it will just issue warnings
 
3607
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3608
      # that says an option was ignored or not supported.
 
3609
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3610
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3611
      # The diagnosis changed in icc 8.0:
 
3612
      #   icc: Command line remark: option '-MP' not supported
 
3613
      if (grep 'ignoring option' conftest.err ||
 
3614
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3615
        am_cv_CC_dependencies_compiler_type=$depmode
 
3616
        break
 
3617
      fi
 
3618
    fi
 
3619
  done
 
3620
 
 
3621
  cd ..
 
3622
  rm -rf conftest.dir
 
3623
else
 
3624
  am_cv_CC_dependencies_compiler_type=none
 
3625
fi
 
3626
 
 
3627
fi
 
3628
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3629
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
 
3630
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
3631
 
 
3632
 
 
3633
 
 
3634
if
 
3635
  test "x$enable_dependency_tracking" != xno \
 
3636
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
3637
  am__fastdepCC_TRUE=
 
3638
  am__fastdepCC_FALSE='#'
 
3639
else
 
3640
  am__fastdepCC_TRUE='#'
 
3641
  am__fastdepCC_FALSE=
 
3642
fi
 
3643
 
 
3644
 
 
3645
ac_ext=c
 
3646
ac_cpp='$CPP $CPPFLAGS'
 
3647
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3648
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3649
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3650
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
3651
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
 
3652
# On Suns, sometimes $CPP names a directory.
 
3653
if test -n "$CPP" && test -d "$CPP"; then
 
3654
  CPP=
 
3655
fi
 
3656
if test -z "$CPP"; then
 
3657
  if test "${ac_cv_prog_CPP+set}" = set; then
 
3658
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3659
else
 
3660
      # Double quotes because CPP needs to be expanded
 
3661
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
3662
    do
 
3663
      ac_preproc_ok=false
 
3664
for ac_c_preproc_warn_flag in '' yes
 
3665
do
 
3666
  # Use a header file that comes with gcc, so configuring glibc
 
3667
  # with a fresh cross-compiler works.
 
3668
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3669
  # <limits.h> exists even on freestanding compilers.
 
3670
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3671
  # not just through cpp. "Syntax error" is here to catch this case.
 
3672
  cat >conftest.$ac_ext <<_ACEOF
 
3673
/* confdefs.h.  */
 
3674
_ACEOF
 
3675
cat confdefs.h >>conftest.$ac_ext
 
3676
cat >>conftest.$ac_ext <<_ACEOF
 
3677
/* end confdefs.h.  */
 
3678
#ifdef __STDC__
 
3679
# include <limits.h>
 
3680
#else
 
3681
# include <assert.h>
 
3682
#endif
 
3683
                     Syntax error
 
3684
_ACEOF
 
3685
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
3686
case "(($ac_try" in
 
3687
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3688
  *) ac_try_echo=$ac_try;;
 
3689
esac
 
3690
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3691
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
3692
  ac_status=$?
 
3693
  grep -v '^ *+' conftest.er1 >conftest.err
 
3694
  rm -f conftest.er1
 
3695
  cat conftest.err >&5
 
3696
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3697
  (exit $ac_status); } >/dev/null && {
 
3698
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
3699
         test ! -s conftest.err
 
3700
       }; then
 
3701
  :
 
3702
else
 
3703
  echo "$as_me: failed program was:" >&5
 
3704
sed 's/^/| /' conftest.$ac_ext >&5
 
3705
 
 
3706
  # Broken: fails on valid input.
 
3707
continue
 
3708
fi
 
3709
 
 
3710
rm -f conftest.err conftest.$ac_ext
 
3711
 
 
3712
  # OK, works on sane cases.  Now check whether nonexistent headers
 
3713
  # can be detected and how.
 
3714
  cat >conftest.$ac_ext <<_ACEOF
 
3715
/* confdefs.h.  */
 
3716
_ACEOF
 
3717
cat confdefs.h >>conftest.$ac_ext
 
3718
cat >>conftest.$ac_ext <<_ACEOF
 
3719
/* end confdefs.h.  */
 
3720
#include <ac_nonexistent.h>
 
3721
_ACEOF
 
3722
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
3723
case "(($ac_try" in
 
3724
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3725
  *) ac_try_echo=$ac_try;;
 
3726
esac
 
3727
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3728
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
3729
  ac_status=$?
 
3730
  grep -v '^ *+' conftest.er1 >conftest.err
 
3731
  rm -f conftest.er1
 
3732
  cat conftest.err >&5
 
3733
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3734
  (exit $ac_status); } >/dev/null && {
 
3735
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
3736
         test ! -s conftest.err
 
3737
       }; then
 
3738
  # Broken: success on invalid input.
 
3739
continue
 
3740
else
 
3741
  echo "$as_me: failed program was:" >&5
 
3742
sed 's/^/| /' conftest.$ac_ext >&5
 
3743
 
 
3744
  # Passes both tests.
 
3745
ac_preproc_ok=:
 
3746
break
 
3747
fi
 
3748
 
 
3749
rm -f conftest.err conftest.$ac_ext
 
3750
 
 
3751
done
 
3752
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3753
rm -f conftest.err conftest.$ac_ext
 
3754
if $ac_preproc_ok; then
 
3755
  break
 
3756
fi
 
3757
 
 
3758
    done
 
3759
    ac_cv_prog_CPP=$CPP
 
3760
 
 
3761
fi
 
3762
  CPP=$ac_cv_prog_CPP
 
3763
else
 
3764
  ac_cv_prog_CPP=$CPP
 
3765
fi
 
3766
{ echo "$as_me:$LINENO: result: $CPP" >&5
 
3767
echo "${ECHO_T}$CPP" >&6; }
 
3768
ac_preproc_ok=false
 
3769
for ac_c_preproc_warn_flag in '' yes
 
3770
do
 
3771
  # Use a header file that comes with gcc, so configuring glibc
 
3772
  # with a fresh cross-compiler works.
 
3773
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3774
  # <limits.h> exists even on freestanding compilers.
 
3775
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3776
  # not just through cpp. "Syntax error" is here to catch this case.
 
3777
  cat >conftest.$ac_ext <<_ACEOF
 
3778
/* confdefs.h.  */
 
3779
_ACEOF
 
3780
cat confdefs.h >>conftest.$ac_ext
 
3781
cat >>conftest.$ac_ext <<_ACEOF
 
3782
/* end confdefs.h.  */
 
3783
#ifdef __STDC__
 
3784
# include <limits.h>
 
3785
#else
 
3786
# include <assert.h>
 
3787
#endif
 
3788
                     Syntax error
 
3789
_ACEOF
 
3790
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
3791
case "(($ac_try" in
 
3792
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3793
  *) ac_try_echo=$ac_try;;
 
3794
esac
 
3795
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3796
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
3797
  ac_status=$?
 
3798
  grep -v '^ *+' conftest.er1 >conftest.err
 
3799
  rm -f conftest.er1
 
3800
  cat conftest.err >&5
 
3801
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3802
  (exit $ac_status); } >/dev/null && {
 
3803
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
3804
         test ! -s conftest.err
 
3805
       }; then
 
3806
  :
 
3807
else
 
3808
  echo "$as_me: failed program was:" >&5
 
3809
sed 's/^/| /' conftest.$ac_ext >&5
 
3810
 
 
3811
  # Broken: fails on valid input.
 
3812
continue
 
3813
fi
 
3814
 
 
3815
rm -f conftest.err conftest.$ac_ext
 
3816
 
 
3817
  # OK, works on sane cases.  Now check whether nonexistent headers
 
3818
  # can be detected and how.
 
3819
  cat >conftest.$ac_ext <<_ACEOF
 
3820
/* confdefs.h.  */
 
3821
_ACEOF
 
3822
cat confdefs.h >>conftest.$ac_ext
 
3823
cat >>conftest.$ac_ext <<_ACEOF
 
3824
/* end confdefs.h.  */
 
3825
#include <ac_nonexistent.h>
 
3826
_ACEOF
 
3827
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
3828
case "(($ac_try" in
 
3829
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3830
  *) ac_try_echo=$ac_try;;
 
3831
esac
 
3832
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3833
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
3834
  ac_status=$?
 
3835
  grep -v '^ *+' conftest.er1 >conftest.err
 
3836
  rm -f conftest.er1
 
3837
  cat conftest.err >&5
 
3838
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3839
  (exit $ac_status); } >/dev/null && {
 
3840
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
3841
         test ! -s conftest.err
 
3842
       }; then
 
3843
  # Broken: success on invalid input.
 
3844
continue
 
3845
else
 
3846
  echo "$as_me: failed program was:" >&5
 
3847
sed 's/^/| /' conftest.$ac_ext >&5
 
3848
 
 
3849
  # Passes both tests.
 
3850
ac_preproc_ok=:
 
3851
break
 
3852
fi
 
3853
 
 
3854
rm -f conftest.err conftest.$ac_ext
 
3855
 
 
3856
done
 
3857
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
3858
rm -f conftest.err conftest.$ac_ext
 
3859
if $ac_preproc_ok; then
 
3860
  :
 
3861
else
 
3862
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
3863
See \`config.log' for more details." >&5
 
3864
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
3865
See \`config.log' for more details." >&2;}
 
3866
   { (exit 1); exit 1; }; }
 
3867
fi
 
3868
 
 
3869
ac_ext=c
 
3870
ac_cpp='$CPP $CPPFLAGS'
 
3871
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3872
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3873
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3874
 
 
3875
# Find a good install program.  We prefer a C program (faster),
 
3876
# so one script is as good as another.  But avoid the broken or
 
3877
# incompatible versions:
 
3878
# SysV /etc/install, /usr/sbin/install
 
3879
# SunOS /usr/etc/install
 
3880
# IRIX /sbin/install
 
3881
# AIX /bin/install
 
3882
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
3883
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
3884
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
3885
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
3886
# OS/2's system install, which has a completely different semantic
 
3887
# ./install, which can be erroneously created by make from ./install.sh.
 
3888
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
3889
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
 
3890
if test -z "$INSTALL"; then
 
3891
if test "${ac_cv_path_install+set}" = set; then
 
3892
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3893
else
 
3894
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3895
for as_dir in $PATH
 
3896
do
 
3897
  IFS=$as_save_IFS
 
3898
  test -z "$as_dir" && as_dir=.
 
3899
  # Account for people who put trailing slashes in PATH elements.
 
3900
case $as_dir/ in
 
3901
  ./ | .// | /cC/* | \
 
3902
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
3903
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
3904
  /usr/ucb/* ) ;;
 
3905
  *)
 
3906
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
3907
    # Don't use installbsd from OSF since it installs stuff as root
 
3908
    # by default.
 
3909
    for ac_prog in ginstall scoinst install; do
 
3910
      for ac_exec_ext in '' $ac_executable_extensions; do
 
3911
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
3912
          if test $ac_prog = install &&
 
3913
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
3914
            # AIX install.  It has an incompatible calling convention.
 
3915
            :
 
3916
          elif test $ac_prog = install &&
 
3917
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
3918
            # program-specific install script used by HP pwplus--don't use.
 
3919
            :
 
3920
          else
 
3921
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
3922
            break 3
 
3923
          fi
 
3924
        fi
 
3925
      done
 
3926
    done
 
3927
    ;;
 
3928
esac
 
3929
done
 
3930
IFS=$as_save_IFS
 
3931
 
 
3932
 
 
3933
fi
 
3934
  if test "${ac_cv_path_install+set}" = set; then
 
3935
    INSTALL=$ac_cv_path_install
 
3936
  else
 
3937
    # As a last resort, use the slow shell script.  Don't cache a
 
3938
    # value for INSTALL within a source directory, because that will
 
3939
    # break other packages using the cache if that directory is
 
3940
    # removed, or if the value is a relative name.
 
3941
    INSTALL=$ac_install_sh
 
3942
  fi
 
3943
fi
 
3944
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
 
3945
echo "${ECHO_T}$INSTALL" >&6; }
 
3946
 
 
3947
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
3948
# It thinks the first close brace ends the variable substitution.
 
3949
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
3950
 
 
3951
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
3952
 
 
3953
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
3954
 
 
3955
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
3956
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
 
3957
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
3958
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
 
3959
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3960
else
 
3961
  cat >conftest.make <<\_ACEOF
 
3962
SHELL = /bin/sh
 
3963
all:
 
3964
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
3965
_ACEOF
 
3966
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
3967
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
3968
  *@@@%%%=?*=@@@%%%*)
 
3969
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
3970
  *)
 
3971
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
3972
esac
 
3973
rm -f conftest.make
 
3974
fi
 
3975
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
3976
  { echo "$as_me:$LINENO: result: yes" >&5
 
3977
echo "${ECHO_T}yes" >&6; }
 
3978
  SET_MAKE=
 
3979
else
 
3980
  { echo "$as_me:$LINENO: result: no" >&5
 
3981
echo "${ECHO_T}no" >&6; }
 
3982
  SET_MAKE="MAKE=${MAKE-make}"
 
3983
fi
 
3984
 
 
3985
# Check whether --enable-static was given.
 
3986
if test "${enable_static+set}" = set; then
 
3987
  enableval=$enable_static; p=${PACKAGE-default}
 
3988
    case $enableval in
 
3989
    yes) enable_static=yes ;;
 
3990
    no) enable_static=no ;;
 
3991
    *)
 
3992
     enable_static=no
 
3993
      # Look at the argument we got.  We use all the common list separators.
 
3994
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3995
      for pkg in $enableval; do
 
3996
        IFS="$lt_save_ifs"
 
3997
        if test "X$pkg" = "X$p"; then
 
3998
          enable_static=yes
 
3999
        fi
 
4000
      done
 
4001
      IFS="$lt_save_ifs"
 
4002
      ;;
 
4003
    esac
 
4004
else
 
4005
  enable_static=no
 
4006
fi
 
4007
 
 
4008
 
 
4009
# Check whether --enable-shared was given.
 
4010
if test "${enable_shared+set}" = set; then
 
4011
  enableval=$enable_shared; p=${PACKAGE-default}
 
4012
    case $enableval in
 
4013
    yes) enable_shared=yes ;;
 
4014
    no) enable_shared=no ;;
 
4015
    *)
 
4016
      enable_shared=no
 
4017
      # Look at the argument we got.  We use all the common list separators.
 
4018
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
4019
      for pkg in $enableval; do
 
4020
        IFS="$lt_save_ifs"
 
4021
        if test "X$pkg" = "X$p"; then
 
4022
          enable_shared=yes
 
4023
        fi
 
4024
      done
 
4025
      IFS="$lt_save_ifs"
 
4026
      ;;
 
4027
    esac
 
4028
else
 
4029
  enable_shared=yes
 
4030
fi
 
4031
 
 
4032
 
 
4033
# Check whether --enable-fast-install was given.
 
4034
if test "${enable_fast_install+set}" = set; then
 
4035
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
4036
    case $enableval in
 
4037
    yes) enable_fast_install=yes ;;
 
4038
    no) enable_fast_install=no ;;
 
4039
    *)
 
4040
      enable_fast_install=no
 
4041
      # Look at the argument we got.  We use all the common list separators.
 
4042
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
4043
      for pkg in $enableval; do
 
4044
        IFS="$lt_save_ifs"
 
4045
        if test "X$pkg" = "X$p"; then
 
4046
          enable_fast_install=yes
 
4047
        fi
 
4048
      done
 
4049
      IFS="$lt_save_ifs"
 
4050
      ;;
 
4051
    esac
 
4052
else
 
4053
  enable_fast_install=yes
 
4054
fi
 
4055
 
 
4056
 
 
4057
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
4058
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
 
4059
if test "${lt_cv_path_SED+set}" = set; then
 
4060
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4061
else
 
4062
  # Loop through the user's path and test for sed and gsed.
 
4063
# Then use that list of sed's as ones to test for truncation.
 
4064
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4065
for as_dir in $PATH
 
4066
do
 
4067
  IFS=$as_save_IFS
 
4068
  test -z "$as_dir" && as_dir=.
 
4069
  for lt_ac_prog in sed gsed; do
 
4070
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4071
      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
 
4072
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
4073
      fi
 
4074
    done
 
4075
  done
 
4076
done
 
4077
IFS=$as_save_IFS
 
4078
lt_ac_max=0
 
4079
lt_ac_count=0
 
4080
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
4081
# along with /bin/sed that truncates output.
 
4082
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
4083
  test ! -f $lt_ac_sed && continue
 
4084
  cat /dev/null > conftest.in
 
4085
  lt_ac_count=0
 
4086
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
4087
  # Check for GNU sed and select it if it is found.
 
4088
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
4089
    lt_cv_path_SED=$lt_ac_sed
 
4090
    break
 
4091
  fi
 
4092
  while true; do
 
4093
    cat conftest.in conftest.in >conftest.tmp
 
4094
    mv conftest.tmp conftest.in
 
4095
    cp conftest.in conftest.nl
 
4096
    echo >>conftest.nl
 
4097
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
4098
    cmp -s conftest.out conftest.nl || break
 
4099
    # 10000 chars as input seems more than enough
 
4100
    test $lt_ac_count -gt 10 && break
 
4101
    lt_ac_count=`expr $lt_ac_count + 1`
 
4102
    if test $lt_ac_count -gt $lt_ac_max; then
 
4103
      lt_ac_max=$lt_ac_count
 
4104
      lt_cv_path_SED=$lt_ac_sed
 
4105
    fi
 
4106
  done
 
4107
done
 
4108
 
 
4109
fi
 
4110
 
 
4111
SED=$lt_cv_path_SED
 
4112
 
 
4113
{ echo "$as_me:$LINENO: result: $SED" >&5
 
4114
echo "${ECHO_T}$SED" >&6; }
 
4115
 
 
4116
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
 
4117
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
 
4118
if test "${ac_cv_path_GREP+set}" = set; then
 
4119
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4120
else
 
4121
  # Extract the first word of "grep ggrep" to use in msg output
 
4122
if test -z "$GREP"; then
 
4123
set dummy grep ggrep; ac_prog_name=$2
 
4124
if test "${ac_cv_path_GREP+set}" = set; then
 
4125
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4126
else
 
4127
  ac_path_GREP_found=false
 
4128
# Loop through the user's path and test for each of PROGNAME-LIST
 
4129
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4130
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4131
do
 
4132
  IFS=$as_save_IFS
 
4133
  test -z "$as_dir" && as_dir=.
 
4134
  for ac_prog in grep ggrep; do
 
4135
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4136
    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
4137
    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
4138
    # Check for GNU ac_path_GREP and select it if it is found.
 
4139
  # Check for GNU $ac_path_GREP
 
4140
case `"$ac_path_GREP" --version 2>&1` in
 
4141
*GNU*)
 
4142
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
4143
*)
 
4144
  ac_count=0
 
4145
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
4146
  while :
 
4147
  do
 
4148
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4149
    mv "conftest.tmp" "conftest.in"
 
4150
    cp "conftest.in" "conftest.nl"
 
4151
    echo 'GREP' >> "conftest.nl"
 
4152
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4153
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4154
    ac_count=`expr $ac_count + 1`
 
4155
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
4156
      # Best one so far, save it but keep looking for a better one
 
4157
      ac_cv_path_GREP="$ac_path_GREP"
 
4158
      ac_path_GREP_max=$ac_count
 
4159
    fi
 
4160
    # 10*(2^10) chars as input seems more than enough
 
4161
    test $ac_count -gt 10 && break
 
4162
  done
 
4163
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4164
esac
 
4165
 
 
4166
 
 
4167
    $ac_path_GREP_found && break 3
 
4168
  done
 
4169
done
 
4170
 
 
4171
done
 
4172
IFS=$as_save_IFS
 
4173
 
 
4174
 
 
4175
fi
 
4176
 
 
4177
GREP="$ac_cv_path_GREP"
 
4178
if test -z "$GREP"; then
 
4179
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
4180
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
4181
   { (exit 1); exit 1; }; }
 
4182
fi
 
4183
 
 
4184
else
 
4185
  ac_cv_path_GREP=$GREP
 
4186
fi
 
4187
 
 
4188
 
 
4189
fi
 
4190
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
 
4191
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
 
4192
 GREP="$ac_cv_path_GREP"
 
4193
 
 
4194
 
 
4195
{ echo "$as_me:$LINENO: checking for egrep" >&5
 
4196
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
 
4197
if test "${ac_cv_path_EGREP+set}" = set; then
 
4198
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4199
else
 
4200
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
4201
   then ac_cv_path_EGREP="$GREP -E"
 
4202
   else
 
4203
     # Extract the first word of "egrep" to use in msg output
 
4204
if test -z "$EGREP"; then
 
4205
set dummy egrep; ac_prog_name=$2
 
4206
if test "${ac_cv_path_EGREP+set}" = set; then
 
4207
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4208
else
 
4209
  ac_path_EGREP_found=false
 
4210
# Loop through the user's path and test for each of PROGNAME-LIST
 
4211
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4212
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4213
do
 
4214
  IFS=$as_save_IFS
 
4215
  test -z "$as_dir" && as_dir=.
 
4216
  for ac_prog in egrep; do
 
4217
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4218
    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4219
    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
4220
    # Check for GNU ac_path_EGREP and select it if it is found.
 
4221
  # Check for GNU $ac_path_EGREP
 
4222
case `"$ac_path_EGREP" --version 2>&1` in
 
4223
*GNU*)
 
4224
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
4225
*)
 
4226
  ac_count=0
 
4227
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
4228
  while :
 
4229
  do
 
4230
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4231
    mv "conftest.tmp" "conftest.in"
 
4232
    cp "conftest.in" "conftest.nl"
 
4233
    echo 'EGREP' >> "conftest.nl"
 
4234
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4235
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4236
    ac_count=`expr $ac_count + 1`
 
4237
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
4238
      # Best one so far, save it but keep looking for a better one
 
4239
      ac_cv_path_EGREP="$ac_path_EGREP"
 
4240
      ac_path_EGREP_max=$ac_count
 
4241
    fi
 
4242
    # 10*(2^10) chars as input seems more than enough
 
4243
    test $ac_count -gt 10 && break
 
4244
  done
 
4245
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4246
esac
 
4247
 
 
4248
 
 
4249
    $ac_path_EGREP_found && break 3
 
4250
  done
 
4251
done
 
4252
 
 
4253
done
 
4254
IFS=$as_save_IFS
 
4255
 
 
4256
 
 
4257
fi
 
4258
 
 
4259
EGREP="$ac_cv_path_EGREP"
 
4260
if test -z "$EGREP"; then
 
4261
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
4262
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
4263
   { (exit 1); exit 1; }; }
 
4264
fi
 
4265
 
 
4266
else
 
4267
  ac_cv_path_EGREP=$EGREP
 
4268
fi
 
4269
 
 
4270
 
 
4271
   fi
 
4272
fi
 
4273
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
 
4274
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
 
4275
 EGREP="$ac_cv_path_EGREP"
 
4276
 
 
4277
 
 
4278
 
 
4279
# Check whether --with-gnu-ld was given.
 
4280
if test "${with_gnu_ld+set}" = set; then
 
4281
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
4282
else
 
4283
  with_gnu_ld=no
 
4284
fi
 
4285
 
 
4286
ac_prog=ld
 
4287
if test "$GCC" = yes; then
 
4288
  # Check if gcc -print-prog-name=ld gives a path.
 
4289
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
4290
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
 
4291
  case $host in
 
4292
  *-*-mingw*)
 
4293
    # gcc leaves a trailing carriage return which upsets mingw
 
4294
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
4295
  *)
 
4296
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
4297
  esac
 
4298
  case $ac_prog in
 
4299
    # Accept absolute paths.
 
4300
    [\\/]* | ?:[\\/]*)
 
4301
      re_direlt='/[^/][^/]*/\.\./'
 
4302
      # Canonicalize the pathname of ld
 
4303
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
4304
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
4305
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
4306
      done
 
4307
      test -z "$LD" && LD="$ac_prog"
 
4308
      ;;
 
4309
  "")
 
4310
    # If it fails, then pretend we aren't using GCC.
 
4311
    ac_prog=ld
 
4312
    ;;
 
4313
  *)
 
4314
    # If it is relative, then search for the first ld in PATH.
 
4315
    with_gnu_ld=unknown
 
4316
    ;;
 
4317
  esac
 
4318
elif test "$with_gnu_ld" = yes; then
 
4319
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
 
4320
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
 
4321
else
 
4322
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
4323
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
 
4324
fi
 
4325
if test "${lt_cv_path_LD+set}" = set; then
 
4326
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4327
else
 
4328
  if test -z "$LD"; then
 
4329
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4330
  for ac_dir in $PATH; do
 
4331
    IFS="$lt_save_ifs"
 
4332
    test -z "$ac_dir" && ac_dir=.
 
4333
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
4334
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
4335
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
4336
      # but apparently some variants of GNU ld only accept -v.
 
4337
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
4338
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
4339
      *GNU* | *'with BFD'*)
 
4340
        test "$with_gnu_ld" != no && break
 
4341
        ;;
 
4342
      *)
 
4343
        test "$with_gnu_ld" != yes && break
 
4344
        ;;
 
4345
      esac
 
4346
    fi
 
4347
  done
 
4348
  IFS="$lt_save_ifs"
 
4349
else
 
4350
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
4351
fi
 
4352
fi
 
4353
 
 
4354
LD="$lt_cv_path_LD"
 
4355
if test -n "$LD"; then
 
4356
  { echo "$as_me:$LINENO: result: $LD" >&5
 
4357
echo "${ECHO_T}$LD" >&6; }
 
4358
else
 
4359
  { echo "$as_me:$LINENO: result: no" >&5
 
4360
echo "${ECHO_T}no" >&6; }
 
4361
fi
 
4362
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
4363
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
4364
   { (exit 1); exit 1; }; }
 
4365
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
4366
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
 
4367
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
4368
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4369
else
 
4370
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
4371
case `$LD -v 2>&1 </dev/null` in
 
4372
*GNU* | *'with BFD'*)
 
4373
  lt_cv_prog_gnu_ld=yes
 
4374
  ;;
 
4375
*)
 
4376
  lt_cv_prog_gnu_ld=no
 
4377
  ;;
 
4378
esac
 
4379
fi
 
4380
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
4381
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
 
4382
with_gnu_ld=$lt_cv_prog_gnu_ld
 
4383
 
 
4384
 
 
4385
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
4386
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
 
4387
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
4388
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4389
else
 
4390
  lt_cv_ld_reload_flag='-r'
 
4391
fi
 
4392
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
4393
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
 
4394
reload_flag=$lt_cv_ld_reload_flag
 
4395
case $reload_flag in
 
4396
"" | " "*) ;;
 
4397
*) reload_flag=" $reload_flag" ;;
 
4398
esac
 
4399
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4400
case $host_os in
 
4401
  darwin*)
 
4402
    if test "$GCC" = yes; then
 
4403
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
4404
    else
 
4405
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4406
    fi
 
4407
    ;;
 
4408
esac
 
4409
 
 
4410
{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
4411
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
 
4412
if test "${lt_cv_path_NM+set}" = set; then
 
4413
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4414
else
 
4415
  if test -n "$NM"; then
 
4416
  # Let the user override the test.
 
4417
  lt_cv_path_NM="$NM"
 
4418
else
 
4419
  lt_nm_to_check="${ac_tool_prefix}nm"
 
4420
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
4421
    lt_nm_to_check="$lt_nm_to_check nm"
 
4422
  fi
 
4423
  for lt_tmp_nm in $lt_nm_to_check; do
 
4424
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4425
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
4426
      IFS="$lt_save_ifs"
 
4427
      test -z "$ac_dir" && ac_dir=.
 
4428
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
4429
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
4430
        # Check to see if the nm accepts a BSD-compat flag.
 
4431
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
4432
        #   nm: unknown option "B" ignored
 
4433
        # Tru64's nm complains that /dev/null is an invalid object file
 
4434
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
4435
        */dev/null* | *'Invalid file or object type'*)
 
4436
          lt_cv_path_NM="$tmp_nm -B"
 
4437
          break
 
4438
          ;;
 
4439
        *)
 
4440
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
4441
          */dev/null*)
 
4442
            lt_cv_path_NM="$tmp_nm -p"
 
4443
            break
 
4444
            ;;
 
4445
          *)
 
4446
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
4447
            continue # so that we can try to find one that supports BSD flags
 
4448
            ;;
 
4449
          esac
 
4450
          ;;
 
4451
        esac
 
4452
      fi
 
4453
    done
 
4454
    IFS="$lt_save_ifs"
 
4455
  done
 
4456
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
4457
fi
 
4458
fi
 
4459
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
4460
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
 
4461
NM="$lt_cv_path_NM"
 
4462
 
 
4463
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
4464
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
 
4465
LN_S=$as_ln_s
 
4466
if test "$LN_S" = "ln -s"; then
 
4467
  { echo "$as_me:$LINENO: result: yes" >&5
 
4468
echo "${ECHO_T}yes" >&6; }
 
4469
else
 
4470
  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
4471
echo "${ECHO_T}no, using $LN_S" >&6; }
 
4472
fi
 
4473
 
 
4474
{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
 
4475
echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
 
4476
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
4477
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4478
else
 
4479
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
4480
lt_cv_file_magic_test_file=
 
4481
lt_cv_deplibs_check_method='unknown'
 
4482
# Need to set the preceding variable on all platforms that support
 
4483
# interlibrary dependencies.
 
4484
# 'none' -- dependencies not supported.
 
4485
# `unknown' -- same as none, but documents that we really don't know.
 
4486
# 'pass_all' -- all dependencies passed with no checks.
 
4487
# 'test_compile' -- check by making test program.
 
4488
# 'file_magic [[regex]]' -- check by looking for files in library path
 
4489
# which responds to the $file_magic_cmd with a given extended regex.
 
4490
# If you have `file' or equivalent on your system and you're not sure
 
4491
# whether `pass_all' will *always* work, you probably want this one.
 
4492
 
 
4493
case $host_os in
 
4494
aix[4-9]*)
 
4495
  lt_cv_deplibs_check_method=pass_all
 
4496
  ;;
 
4497
 
 
4498
beos*)
 
4499
  lt_cv_deplibs_check_method=pass_all
 
4500
  ;;
 
4501
 
 
4502
bsdi[45]*)
 
4503
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
4504
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
4505
  lt_cv_file_magic_test_file=/shlib/libc.so
 
4506
  ;;
 
4507
 
 
4508
cygwin*)
 
4509
  # func_win32_libid is a shell function defined in ltmain.sh
 
4510
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
4511
  lt_cv_file_magic_cmd='func_win32_libid'
 
4512
  ;;
 
4513
 
 
4514
mingw* | pw32*)
 
4515
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
4516
  # func_win32_libid shell function, so use a weaker test based on 'objdump',
 
4517
  # unless we find 'file', for example because we are cross-compiling.
 
4518
  if ( file / ) >/dev/null 2>&1; then
 
4519
    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
4520
    lt_cv_file_magic_cmd='func_win32_libid'
 
4521
  else
 
4522
    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
4523
    lt_cv_file_magic_cmd='$OBJDUMP -f'
 
4524
  fi
 
4525
  ;;
 
4526
 
 
4527
darwin* | rhapsody*)
 
4528
  lt_cv_deplibs_check_method=pass_all
 
4529
  ;;
 
4530
 
 
4531
freebsd* | dragonfly*)
 
4532
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
4533
    case $host_cpu in
 
4534
    i*86 )
 
4535
      # Not sure whether the presence of OpenBSD here was a mistake.
 
4536
      # Let's accept both of them until this is cleared up.
 
4537
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
4538
      lt_cv_file_magic_cmd=/usr/bin/file
 
4539
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
4540
      ;;
 
4541
    esac
 
4542
  else
 
4543
    lt_cv_deplibs_check_method=pass_all
 
4544
  fi
 
4545
  ;;
 
4546
 
 
4547
gnu*)
 
4548
  lt_cv_deplibs_check_method=pass_all
 
4549
  ;;
 
4550
 
 
4551
hpux10.20* | hpux11*)
 
4552
  lt_cv_file_magic_cmd=/usr/bin/file
 
4553
  case $host_cpu in
 
4554
  ia64*)
 
4555
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
4556
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
4557
    ;;
 
4558
  hppa*64*)
 
4559
    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]'
 
4560
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
4561
    ;;
 
4562
  *)
 
4563
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
4564
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
4565
    ;;
 
4566
  esac
 
4567
  ;;
 
4568
 
 
4569
interix[3-9]*)
 
4570
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
4571
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
4572
  ;;
 
4573
 
 
4574
irix5* | irix6* | nonstopux*)
 
4575
  case $LD in
 
4576
  *-32|*"-32 ") libmagic=32-bit;;
 
4577
  *-n32|*"-n32 ") libmagic=N32;;
 
4578
  *-64|*"-64 ") libmagic=64-bit;;
 
4579
  *) libmagic=never-match;;
 
4580
  esac
 
4581
  lt_cv_deplibs_check_method=pass_all
 
4582
  ;;
 
4583
 
 
4584
# This must be Linux ELF.
 
4585
linux* | k*bsd*-gnu)
 
4586
  lt_cv_deplibs_check_method=pass_all
 
4587
  ;;
 
4588
 
 
4589
netbsd*)
 
4590
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
4591
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
4592
  else
 
4593
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
4594
  fi
 
4595
  ;;
 
4596
 
 
4597
newos6*)
 
4598
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
4599
  lt_cv_file_magic_cmd=/usr/bin/file
 
4600
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
4601
  ;;
 
4602
 
 
4603
nto-qnx*)
 
4604
  lt_cv_deplibs_check_method=unknown
 
4605
  ;;
 
4606
 
 
4607
openbsd*)
 
4608
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
4609
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
4610
  else
 
4611
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
4612
  fi
 
4613
  ;;
 
4614
 
 
4615
osf3* | osf4* | osf5*)
 
4616
  lt_cv_deplibs_check_method=pass_all
 
4617
  ;;
 
4618
 
 
4619
rdos*)
 
4620
  lt_cv_deplibs_check_method=pass_all
 
4621
  ;;
 
4622
 
 
4623
solaris*)
 
4624
  lt_cv_deplibs_check_method=pass_all
 
4625
  ;;
 
4626
 
 
4627
sysv4 | sysv4.3*)
 
4628
  case $host_vendor in
 
4629
  motorola)
 
4630
    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]'
 
4631
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
4632
    ;;
 
4633
  ncr)
 
4634
    lt_cv_deplibs_check_method=pass_all
 
4635
    ;;
 
4636
  sequent)
 
4637
    lt_cv_file_magic_cmd='/bin/file'
 
4638
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
4639
    ;;
 
4640
  sni)
 
4641
    lt_cv_file_magic_cmd='/bin/file'
 
4642
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
4643
    lt_cv_file_magic_test_file=/lib/libc.so
 
4644
    ;;
 
4645
  siemens)
 
4646
    lt_cv_deplibs_check_method=pass_all
 
4647
    ;;
 
4648
  pc)
 
4649
    lt_cv_deplibs_check_method=pass_all
 
4650
    ;;
 
4651
  esac
 
4652
  ;;
 
4653
 
 
4654
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
4655
  lt_cv_deplibs_check_method=pass_all
 
4656
  ;;
 
4657
esac
 
4658
 
 
4659
fi
 
4660
{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
4661
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
 
4662
file_magic_cmd=$lt_cv_file_magic_cmd
 
4663
deplibs_check_method=$lt_cv_deplibs_check_method
 
4664
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
4665
 
 
4666
 
 
4667
 
 
4668
 
 
4669
# If no C compiler was specified, use CC.
 
4670
LTCC=${LTCC-"$CC"}
 
4671
 
 
4672
# If no C compiler flags were specified, use CFLAGS.
 
4673
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
4674
 
 
4675
# Allow CC to be a program name with arguments.
 
4676
compiler=$CC
 
4677
 
 
4678
 
 
4679
# Check whether --enable-libtool-lock was given.
 
4680
if test "${enable_libtool_lock+set}" = set; then
 
4681
  enableval=$enable_libtool_lock;
 
4682
fi
 
4683
 
 
4684
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
4685
 
 
4686
# Some flags need to be propagated to the compiler or linker for good
 
4687
# libtool support.
 
4688
case $host in
 
4689
ia64-*-hpux*)
 
4690
  # Find out which ABI we are using.
 
4691
  echo 'int i;' > conftest.$ac_ext
 
4692
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4693
  (eval $ac_compile) 2>&5
 
4694
  ac_status=$?
 
4695
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4696
  (exit $ac_status); }; then
 
4697
    case `/usr/bin/file conftest.$ac_objext` in
 
4698
    *ELF-32*)
 
4699
      HPUX_IA64_MODE="32"
 
4700
      ;;
 
4701
    *ELF-64*)
 
4702
      HPUX_IA64_MODE="64"
 
4703
      ;;
 
4704
    esac
 
4705
  fi
 
4706
  rm -rf conftest*
 
4707
  ;;
 
4708
*-*-irix6*)
 
4709
  # Find out which ABI we are using.
 
4710
  echo '#line 4710 "configure"' > 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
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
4717
    case `/usr/bin/file conftest.$ac_objext` in
 
4718
    *32-bit*)
 
4719
      LD="${LD-ld} -melf32bsmip"
 
4720
      ;;
 
4721
    *N32*)
 
4722
      LD="${LD-ld} -melf32bmipn32"
 
4723
      ;;
 
4724
    *64-bit*)
 
4725
      LD="${LD-ld} -melf64bmip"
 
4726
      ;;
 
4727
    esac
 
4728
   else
 
4729
    case `/usr/bin/file conftest.$ac_objext` in
 
4730
    *32-bit*)
 
4731
      LD="${LD-ld} -32"
 
4732
      ;;
 
4733
    *N32*)
 
4734
      LD="${LD-ld} -n32"
 
4735
      ;;
 
4736
    *64-bit*)
 
4737
      LD="${LD-ld} -64"
 
4738
      ;;
 
4739
    esac
 
4740
   fi
 
4741
  fi
 
4742
  rm -rf conftest*
 
4743
  ;;
 
4744
 
 
4745
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
 
4746
s390*-*linux*|sparc*-*linux*)
 
4747
  # Find out which ABI we are using.
 
4748
  echo 'int i;' > conftest.$ac_ext
 
4749
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4750
  (eval $ac_compile) 2>&5
 
4751
  ac_status=$?
 
4752
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4753
  (exit $ac_status); }; then
 
4754
    case `/usr/bin/file conftest.o` in
 
4755
    *32-bit*)
 
4756
      case $host in
 
4757
        x86_64-*kfreebsd*-gnu)
 
4758
          LD="${LD-ld} -m elf_i386_fbsd"
 
4759
          ;;
 
4760
        x86_64-*linux*)
 
4761
          LD="${LD-ld} -m elf_i386"
 
4762
          ;;
 
4763
        ppc64-*linux*|powerpc64-*linux*)
 
4764
          LD="${LD-ld} -m elf32ppclinux"
 
4765
          ;;
 
4766
        s390x-*linux*)
 
4767
          LD="${LD-ld} -m elf_s390"
 
4768
          ;;
 
4769
        sparc64-*linux*)
 
4770
          LD="${LD-ld} -m elf32_sparc"
 
4771
          ;;
 
4772
      esac
 
4773
      ;;
 
4774
    *64-bit*)
 
4775
      case $host in
 
4776
        x86_64-*kfreebsd*-gnu)
 
4777
          LD="${LD-ld} -m elf_x86_64_fbsd"
 
4778
          ;;
 
4779
        x86_64-*linux*)
 
4780
          LD="${LD-ld} -m elf_x86_64"
 
4781
          ;;
 
4782
        ppc*-*linux*|powerpc*-*linux*)
 
4783
          LD="${LD-ld} -m elf64ppc"
 
4784
          ;;
 
4785
        s390*-*linux*)
 
4786
          LD="${LD-ld} -m elf64_s390"
 
4787
          ;;
 
4788
        sparc*-*linux*)
 
4789
          LD="${LD-ld} -m elf64_sparc"
 
4790
          ;;
 
4791
      esac
 
4792
      ;;
 
4793
    esac
 
4794
  fi
 
4795
  rm -rf conftest*
 
4796
  ;;
 
4797
 
 
4798
*-*-sco3.2v5*)
 
4799
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
4800
  SAVE_CFLAGS="$CFLAGS"
 
4801
  CFLAGS="$CFLAGS -belf"
 
4802
  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
4803
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
 
4804
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
4805
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4806
else
 
4807
  ac_ext=c
 
4808
ac_cpp='$CPP $CPPFLAGS'
 
4809
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4810
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4811
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4812
 
 
4813
     cat >conftest.$ac_ext <<_ACEOF
 
4814
/* confdefs.h.  */
 
4815
_ACEOF
 
4816
cat confdefs.h >>conftest.$ac_ext
 
4817
cat >>conftest.$ac_ext <<_ACEOF
 
4818
/* end confdefs.h.  */
 
4819
 
 
4820
int
 
4821
main ()
 
4822
{
 
4823
 
 
4824
  ;
 
4825
  return 0;
 
4826
}
 
4827
_ACEOF
 
4828
rm -f conftest.$ac_objext conftest$ac_exeext
 
4829
if { (ac_try="$ac_link"
 
4830
case "(($ac_try" in
 
4831
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4832
  *) ac_try_echo=$ac_try;;
 
4833
esac
 
4834
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4835
  (eval "$ac_link") 2>conftest.er1
 
4836
  ac_status=$?
 
4837
  grep -v '^ *+' conftest.er1 >conftest.err
 
4838
  rm -f conftest.er1
 
4839
  cat conftest.err >&5
 
4840
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4841
  (exit $ac_status); } && {
 
4842
         test -z "$ac_c_werror_flag" ||
 
4843
         test ! -s conftest.err
 
4844
       } && test -s conftest$ac_exeext &&
 
4845
       $as_test_x conftest$ac_exeext; then
 
4846
  lt_cv_cc_needs_belf=yes
 
4847
else
 
4848
  echo "$as_me: failed program was:" >&5
 
4849
sed 's/^/| /' conftest.$ac_ext >&5
 
4850
 
 
4851
        lt_cv_cc_needs_belf=no
 
4852
fi
 
4853
 
 
4854
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
4855
      conftest$ac_exeext conftest.$ac_ext
 
4856
     ac_ext=c
 
4857
ac_cpp='$CPP $CPPFLAGS'
 
4858
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4859
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4860
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4861
 
 
4862
fi
 
4863
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
4864
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
 
4865
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
4866
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
4867
    CFLAGS="$SAVE_CFLAGS"
 
4868
  fi
 
4869
  ;;
 
4870
sparc*-*solaris*)
 
4871
  # Find out which ABI we are using.
 
4872
  echo 'int i;' > conftest.$ac_ext
 
4873
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4874
  (eval $ac_compile) 2>&5
 
4875
  ac_status=$?
 
4876
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4877
  (exit $ac_status); }; then
 
4878
    case `/usr/bin/file conftest.o` in
 
4879
    *64-bit*)
 
4880
      case $lt_cv_prog_gnu_ld in
 
4881
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
4882
      *)
 
4883
        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
 
4884
          LD="${LD-ld} -64"
 
4885
        fi
 
4886
        ;;
 
4887
      esac
 
4888
      ;;
 
4889
    esac
 
4890
  fi
 
4891
  rm -rf conftest*
 
4892
  ;;
 
4893
 
 
4894
 
 
4895
esac
 
4896
 
 
4897
need_locks="$enable_libtool_lock"
 
4898
 
 
4899
 
 
4900
 
 
4901
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
4902
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
 
4903
if test "${ac_cv_header_stdc+set}" = set; then
 
4904
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4905
else
 
4906
  cat >conftest.$ac_ext <<_ACEOF
 
4907
/* confdefs.h.  */
 
4908
_ACEOF
 
4909
cat confdefs.h >>conftest.$ac_ext
 
4910
cat >>conftest.$ac_ext <<_ACEOF
 
4911
/* end confdefs.h.  */
 
4912
#include <stdlib.h>
 
4913
#include <stdarg.h>
 
4914
#include <string.h>
 
4915
#include <float.h>
 
4916
 
 
4917
int
 
4918
main ()
 
4919
{
 
4920
 
 
4921
  ;
 
4922
  return 0;
 
4923
}
 
4924
_ACEOF
 
4925
rm -f conftest.$ac_objext
 
4926
if { (ac_try="$ac_compile"
 
4927
case "(($ac_try" in
 
4928
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4929
  *) ac_try_echo=$ac_try;;
 
4930
esac
 
4931
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4932
  (eval "$ac_compile") 2>conftest.er1
 
4933
  ac_status=$?
 
4934
  grep -v '^ *+' conftest.er1 >conftest.err
 
4935
  rm -f conftest.er1
 
4936
  cat conftest.err >&5
 
4937
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4938
  (exit $ac_status); } && {
 
4939
         test -z "$ac_c_werror_flag" ||
 
4940
         test ! -s conftest.err
 
4941
       } && test -s conftest.$ac_objext; then
 
4942
  ac_cv_header_stdc=yes
 
4943
else
 
4944
  echo "$as_me: failed program was:" >&5
 
4945
sed 's/^/| /' conftest.$ac_ext >&5
 
4946
 
 
4947
        ac_cv_header_stdc=no
 
4948
fi
 
4949
 
 
4950
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4951
 
 
4952
if test $ac_cv_header_stdc = yes; then
 
4953
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
4954
  cat >conftest.$ac_ext <<_ACEOF
 
4955
/* confdefs.h.  */
 
4956
_ACEOF
 
4957
cat confdefs.h >>conftest.$ac_ext
 
4958
cat >>conftest.$ac_ext <<_ACEOF
 
4959
/* end confdefs.h.  */
 
4960
#include <string.h>
 
4961
 
 
4962
_ACEOF
 
4963
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4964
  $EGREP "memchr" >/dev/null 2>&1; then
 
4965
  :
 
4966
else
 
4967
  ac_cv_header_stdc=no
 
4968
fi
 
4969
rm -f conftest*
 
4970
 
 
4971
fi
 
4972
 
 
4973
if test $ac_cv_header_stdc = yes; then
 
4974
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
4975
  cat >conftest.$ac_ext <<_ACEOF
 
4976
/* confdefs.h.  */
 
4977
_ACEOF
 
4978
cat confdefs.h >>conftest.$ac_ext
 
4979
cat >>conftest.$ac_ext <<_ACEOF
 
4980
/* end confdefs.h.  */
 
4981
#include <stdlib.h>
 
4982
 
 
4983
_ACEOF
 
4984
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4985
  $EGREP "free" >/dev/null 2>&1; then
 
4986
  :
 
4987
else
 
4988
  ac_cv_header_stdc=no
 
4989
fi
 
4990
rm -f conftest*
 
4991
 
 
4992
fi
 
4993
 
 
4994
if test $ac_cv_header_stdc = yes; then
 
4995
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
4996
  if test "$cross_compiling" = yes; then
 
4997
  :
 
4998
else
 
4999
  cat >conftest.$ac_ext <<_ACEOF
 
5000
/* confdefs.h.  */
 
5001
_ACEOF
 
5002
cat confdefs.h >>conftest.$ac_ext
 
5003
cat >>conftest.$ac_ext <<_ACEOF
 
5004
/* end confdefs.h.  */
 
5005
#include <ctype.h>
 
5006
#include <stdlib.h>
 
5007
#if ((' ' & 0x0FF) == 0x020)
 
5008
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
5009
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
5010
#else
 
5011
# define ISLOWER(c) \
 
5012
                   (('a' <= (c) && (c) <= 'i') \
 
5013
                     || ('j' <= (c) && (c) <= 'r') \
 
5014
                     || ('s' <= (c) && (c) <= 'z'))
 
5015
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
5016
#endif
 
5017
 
 
5018
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
5019
int
 
5020
main ()
 
5021
{
 
5022
  int i;
 
5023
  for (i = 0; i < 256; i++)
 
5024
    if (XOR (islower (i), ISLOWER (i))
 
5025
        || toupper (i) != TOUPPER (i))
 
5026
      return 2;
 
5027
  return 0;
 
5028
}
 
5029
_ACEOF
 
5030
rm -f conftest$ac_exeext
 
5031
if { (ac_try="$ac_link"
 
5032
case "(($ac_try" in
 
5033
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5034
  *) ac_try_echo=$ac_try;;
 
5035
esac
 
5036
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5037
  (eval "$ac_link") 2>&5
 
5038
  ac_status=$?
 
5039
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5040
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5041
  { (case "(($ac_try" in
 
5042
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5043
  *) ac_try_echo=$ac_try;;
 
5044
esac
 
5045
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5046
  (eval "$ac_try") 2>&5
 
5047
  ac_status=$?
 
5048
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5049
  (exit $ac_status); }; }; then
 
5050
  :
 
5051
else
 
5052
  echo "$as_me: program exited with status $ac_status" >&5
 
5053
echo "$as_me: failed program was:" >&5
 
5054
sed 's/^/| /' conftest.$ac_ext >&5
 
5055
 
 
5056
( exit $ac_status )
 
5057
ac_cv_header_stdc=no
 
5058
fi
 
5059
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5060
fi
 
5061
 
 
5062
 
 
5063
fi
 
5064
fi
 
5065
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
5066
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
 
5067
if test $ac_cv_header_stdc = yes; then
 
5068
 
 
5069
cat >>confdefs.h <<\_ACEOF
 
5070
#define STDC_HEADERS 1
 
5071
_ACEOF
 
5072
 
 
5073
fi
 
5074
 
 
5075
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
5076
 
 
5077
 
 
5078
 
 
5079
 
 
5080
 
 
5081
 
 
5082
 
 
5083
 
 
5084
 
 
5085
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
5086
                  inttypes.h stdint.h unistd.h
 
5087
do
 
5088
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5089
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5090
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5091
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5092
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5093
else
 
5094
  cat >conftest.$ac_ext <<_ACEOF
 
5095
/* confdefs.h.  */
 
5096
_ACEOF
 
5097
cat confdefs.h >>conftest.$ac_ext
 
5098
cat >>conftest.$ac_ext <<_ACEOF
 
5099
/* end confdefs.h.  */
 
5100
$ac_includes_default
 
5101
 
 
5102
#include <$ac_header>
 
5103
_ACEOF
 
5104
rm -f conftest.$ac_objext
 
5105
if { (ac_try="$ac_compile"
 
5106
case "(($ac_try" in
 
5107
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5108
  *) ac_try_echo=$ac_try;;
 
5109
esac
 
5110
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5111
  (eval "$ac_compile") 2>conftest.er1
 
5112
  ac_status=$?
 
5113
  grep -v '^ *+' conftest.er1 >conftest.err
 
5114
  rm -f conftest.er1
 
5115
  cat conftest.err >&5
 
5116
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5117
  (exit $ac_status); } && {
 
5118
         test -z "$ac_c_werror_flag" ||
 
5119
         test ! -s conftest.err
 
5120
       } && test -s conftest.$ac_objext; then
 
5121
  eval "$as_ac_Header=yes"
 
5122
else
 
5123
  echo "$as_me: failed program was:" >&5
 
5124
sed 's/^/| /' conftest.$ac_ext >&5
 
5125
 
 
5126
        eval "$as_ac_Header=no"
 
5127
fi
 
5128
 
 
5129
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5130
fi
 
5131
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5132
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5133
echo "${ECHO_T}$ac_res" >&6; }
 
5134
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5135
  cat >>confdefs.h <<_ACEOF
 
5136
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5137
_ACEOF
 
5138
 
 
5139
fi
 
5140
 
 
5141
done
 
5142
 
 
5143
 
 
5144
 
 
5145
for ac_header in dlfcn.h
 
5146
do
 
5147
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5148
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5149
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5150
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5151
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5152
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5153
fi
 
5154
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5155
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5156
echo "${ECHO_T}$ac_res" >&6; }
 
5157
else
 
5158
  # Is the header compilable?
 
5159
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
5160
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
5161
cat >conftest.$ac_ext <<_ACEOF
 
5162
/* confdefs.h.  */
 
5163
_ACEOF
 
5164
cat confdefs.h >>conftest.$ac_ext
 
5165
cat >>conftest.$ac_ext <<_ACEOF
 
5166
/* end confdefs.h.  */
 
5167
$ac_includes_default
 
5168
#include <$ac_header>
 
5169
_ACEOF
 
5170
rm -f conftest.$ac_objext
 
5171
if { (ac_try="$ac_compile"
 
5172
case "(($ac_try" in
 
5173
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5174
  *) ac_try_echo=$ac_try;;
 
5175
esac
 
5176
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5177
  (eval "$ac_compile") 2>conftest.er1
 
5178
  ac_status=$?
 
5179
  grep -v '^ *+' conftest.er1 >conftest.err
 
5180
  rm -f conftest.er1
 
5181
  cat conftest.err >&5
 
5182
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5183
  (exit $ac_status); } && {
 
5184
         test -z "$ac_c_werror_flag" ||
 
5185
         test ! -s conftest.err
 
5186
       } && test -s conftest.$ac_objext; then
 
5187
  ac_header_compiler=yes
 
5188
else
 
5189
  echo "$as_me: failed program was:" >&5
 
5190
sed 's/^/| /' conftest.$ac_ext >&5
 
5191
 
 
5192
        ac_header_compiler=no
 
5193
fi
 
5194
 
 
5195
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5196
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
5197
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
5198
 
 
5199
# Is the header present?
 
5200
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
5201
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
5202
cat >conftest.$ac_ext <<_ACEOF
 
5203
/* confdefs.h.  */
 
5204
_ACEOF
 
5205
cat confdefs.h >>conftest.$ac_ext
 
5206
cat >>conftest.$ac_ext <<_ACEOF
 
5207
/* end confdefs.h.  */
 
5208
#include <$ac_header>
 
5209
_ACEOF
 
5210
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5211
case "(($ac_try" in
 
5212
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5213
  *) ac_try_echo=$ac_try;;
 
5214
esac
 
5215
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5216
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5217
  ac_status=$?
 
5218
  grep -v '^ *+' conftest.er1 >conftest.err
 
5219
  rm -f conftest.er1
 
5220
  cat conftest.err >&5
 
5221
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5222
  (exit $ac_status); } >/dev/null && {
 
5223
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
5224
         test ! -s conftest.err
 
5225
       }; then
 
5226
  ac_header_preproc=yes
 
5227
else
 
5228
  echo "$as_me: failed program was:" >&5
 
5229
sed 's/^/| /' conftest.$ac_ext >&5
 
5230
 
 
5231
  ac_header_preproc=no
 
5232
fi
 
5233
 
 
5234
rm -f conftest.err conftest.$ac_ext
 
5235
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
5236
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
5237
 
 
5238
# So?  What about this header?
 
5239
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
5240
  yes:no: )
 
5241
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
5242
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
5243
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
5244
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
5245
    ac_header_preproc=yes
 
5246
    ;;
 
5247
  no:yes:* )
 
5248
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
5249
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
5250
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
5251
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
5252
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
5253
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
5254
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
5255
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
5256
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
5257
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5258
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
5259
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
5260
 
 
5261
    ;;
 
5262
esac
 
5263
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5264
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5265
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5266
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5267
else
 
5268
  eval "$as_ac_Header=\$ac_header_preproc"
 
5269
fi
 
5270
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5271
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5272
echo "${ECHO_T}$ac_res" >&6; }
 
5273
 
 
5274
fi
 
5275
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5276
  cat >>confdefs.h <<_ACEOF
 
5277
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5278
_ACEOF
 
5279
 
 
5280
fi
 
5281
 
 
5282
done
 
5283
 
 
5284
ac_ext=cpp
 
5285
ac_cpp='$CXXCPP $CPPFLAGS'
 
5286
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5287
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5288
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5289
if test -z "$CXX"; then
 
5290
  if test -n "$CCC"; then
 
5291
    CXX=$CCC
 
5292
  else
 
5293
    if test -n "$ac_tool_prefix"; then
 
5294
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
5295
  do
 
5296
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5297
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5298
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5299
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5300
if test "${ac_cv_prog_CXX+set}" = set; then
 
5301
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5302
else
 
5303
  if test -n "$CXX"; then
 
5304
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
5305
else
 
5306
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5307
for as_dir in $PATH
 
5308
do
 
5309
  IFS=$as_save_IFS
 
5310
  test -z "$as_dir" && as_dir=.
 
5311
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5312
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5313
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
5314
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5315
    break 2
 
5316
  fi
 
5317
done
 
5318
done
 
5319
IFS=$as_save_IFS
 
5320
 
 
5321
fi
 
5322
fi
 
5323
CXX=$ac_cv_prog_CXX
 
5324
if test -n "$CXX"; then
 
5325
  { echo "$as_me:$LINENO: result: $CXX" >&5
 
5326
echo "${ECHO_T}$CXX" >&6; }
 
5327
else
 
5328
  { echo "$as_me:$LINENO: result: no" >&5
 
5329
echo "${ECHO_T}no" >&6; }
 
5330
fi
 
5331
 
 
5332
 
 
5333
    test -n "$CXX" && break
 
5334
  done
 
5335
fi
 
5336
if test -z "$CXX"; then
 
5337
  ac_ct_CXX=$CXX
 
5338
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
5339
do
 
5340
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5341
set dummy $ac_prog; ac_word=$2
 
5342
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5343
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5344
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
5345
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5346
else
 
5347
  if test -n "$ac_ct_CXX"; then
 
5348
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
5349
else
 
5350
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5351
for as_dir in $PATH
 
5352
do
 
5353
  IFS=$as_save_IFS
 
5354
  test -z "$as_dir" && as_dir=.
 
5355
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5356
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5357
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
5358
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5359
    break 2
 
5360
  fi
 
5361
done
 
5362
done
 
5363
IFS=$as_save_IFS
 
5364
 
 
5365
fi
 
5366
fi
 
5367
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
5368
if test -n "$ac_ct_CXX"; then
 
5369
  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
5370
echo "${ECHO_T}$ac_ct_CXX" >&6; }
 
5371
else
 
5372
  { echo "$as_me:$LINENO: result: no" >&5
 
5373
echo "${ECHO_T}no" >&6; }
 
5374
fi
 
5375
 
 
5376
 
 
5377
  test -n "$ac_ct_CXX" && break
 
5378
done
 
5379
 
 
5380
  if test "x$ac_ct_CXX" = x; then
 
5381
    CXX="g++"
 
5382
  else
 
5383
    case $cross_compiling:$ac_tool_warned in
 
5384
yes:)
 
5385
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
5386
whose name does not start with the host triplet.  If you think this
 
5387
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
5388
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
5389
whose name does not start with the host triplet.  If you think this
 
5390
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
5391
ac_tool_warned=yes ;;
 
5392
esac
 
5393
    CXX=$ac_ct_CXX
 
5394
  fi
 
5395
fi
 
5396
 
 
5397
  fi
 
5398
fi
 
5399
# Provide some information about the compiler.
 
5400
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
 
5401
ac_compiler=`set X $ac_compile; echo $2`
 
5402
{ (ac_try="$ac_compiler --version >&5"
 
5403
case "(($ac_try" in
 
5404
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5405
  *) ac_try_echo=$ac_try;;
 
5406
esac
 
5407
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5408
  (eval "$ac_compiler --version >&5") 2>&5
 
5409
  ac_status=$?
 
5410
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5411
  (exit $ac_status); }
 
5412
{ (ac_try="$ac_compiler -v >&5"
 
5413
case "(($ac_try" in
 
5414
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5415
  *) ac_try_echo=$ac_try;;
 
5416
esac
 
5417
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5418
  (eval "$ac_compiler -v >&5") 2>&5
 
5419
  ac_status=$?
 
5420
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5421
  (exit $ac_status); }
 
5422
{ (ac_try="$ac_compiler -V >&5"
 
5423
case "(($ac_try" in
 
5424
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5425
  *) ac_try_echo=$ac_try;;
 
5426
esac
 
5427
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5428
  (eval "$ac_compiler -V >&5") 2>&5
 
5429
  ac_status=$?
 
5430
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5431
  (exit $ac_status); }
 
5432
 
 
5433
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
5434
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
 
5435
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
5436
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5437
else
 
5438
  cat >conftest.$ac_ext <<_ACEOF
 
5439
/* confdefs.h.  */
 
5440
_ACEOF
 
5441
cat confdefs.h >>conftest.$ac_ext
 
5442
cat >>conftest.$ac_ext <<_ACEOF
 
5443
/* end confdefs.h.  */
 
5444
 
 
5445
int
 
5446
main ()
 
5447
{
 
5448
#ifndef __GNUC__
 
5449
       choke me
 
5450
#endif
 
5451
 
 
5452
  ;
 
5453
  return 0;
 
5454
}
 
5455
_ACEOF
 
5456
rm -f conftest.$ac_objext
 
5457
if { (ac_try="$ac_compile"
 
5458
case "(($ac_try" in
 
5459
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5460
  *) ac_try_echo=$ac_try;;
 
5461
esac
 
5462
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5463
  (eval "$ac_compile") 2>conftest.er1
 
5464
  ac_status=$?
 
5465
  grep -v '^ *+' conftest.er1 >conftest.err
 
5466
  rm -f conftest.er1
 
5467
  cat conftest.err >&5
 
5468
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5469
  (exit $ac_status); } && {
 
5470
         test -z "$ac_cxx_werror_flag" ||
 
5471
         test ! -s conftest.err
 
5472
       } && test -s conftest.$ac_objext; then
 
5473
  ac_compiler_gnu=yes
 
5474
else
 
5475
  echo "$as_me: failed program was:" >&5
 
5476
sed 's/^/| /' conftest.$ac_ext >&5
 
5477
 
 
5478
        ac_compiler_gnu=no
 
5479
fi
 
5480
 
 
5481
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5482
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
5483
 
 
5484
fi
 
5485
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
5486
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
 
5487
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
5488
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
5489
ac_save_CXXFLAGS=$CXXFLAGS
 
5490
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
5491
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
 
5492
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
5493
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5494
else
 
5495
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
5496
   ac_cxx_werror_flag=yes
 
5497
   ac_cv_prog_cxx_g=no
 
5498
   CXXFLAGS="-g"
 
5499
   cat >conftest.$ac_ext <<_ACEOF
 
5500
/* confdefs.h.  */
 
5501
_ACEOF
 
5502
cat confdefs.h >>conftest.$ac_ext
 
5503
cat >>conftest.$ac_ext <<_ACEOF
 
5504
/* end confdefs.h.  */
 
5505
 
 
5506
int
 
5507
main ()
 
5508
{
 
5509
 
 
5510
  ;
 
5511
  return 0;
 
5512
}
 
5513
_ACEOF
 
5514
rm -f conftest.$ac_objext
 
5515
if { (ac_try="$ac_compile"
 
5516
case "(($ac_try" in
 
5517
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5518
  *) ac_try_echo=$ac_try;;
 
5519
esac
 
5520
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5521
  (eval "$ac_compile") 2>conftest.er1
 
5522
  ac_status=$?
 
5523
  grep -v '^ *+' conftest.er1 >conftest.err
 
5524
  rm -f conftest.er1
 
5525
  cat conftest.err >&5
 
5526
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5527
  (exit $ac_status); } && {
 
5528
         test -z "$ac_cxx_werror_flag" ||
 
5529
         test ! -s conftest.err
 
5530
       } && test -s conftest.$ac_objext; then
 
5531
  ac_cv_prog_cxx_g=yes
 
5532
else
 
5533
  echo "$as_me: failed program was:" >&5
 
5534
sed 's/^/| /' conftest.$ac_ext >&5
 
5535
 
 
5536
        CXXFLAGS=""
 
5537
      cat >conftest.$ac_ext <<_ACEOF
 
5538
/* confdefs.h.  */
 
5539
_ACEOF
 
5540
cat confdefs.h >>conftest.$ac_ext
 
5541
cat >>conftest.$ac_ext <<_ACEOF
 
5542
/* end confdefs.h.  */
 
5543
 
 
5544
int
 
5545
main ()
 
5546
{
 
5547
 
 
5548
  ;
 
5549
  return 0;
 
5550
}
 
5551
_ACEOF
 
5552
rm -f conftest.$ac_objext
 
5553
if { (ac_try="$ac_compile"
 
5554
case "(($ac_try" in
 
5555
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5556
  *) ac_try_echo=$ac_try;;
 
5557
esac
 
5558
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5559
  (eval "$ac_compile") 2>conftest.er1
 
5560
  ac_status=$?
 
5561
  grep -v '^ *+' conftest.er1 >conftest.err
 
5562
  rm -f conftest.er1
 
5563
  cat conftest.err >&5
 
5564
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5565
  (exit $ac_status); } && {
 
5566
         test -z "$ac_cxx_werror_flag" ||
 
5567
         test ! -s conftest.err
 
5568
       } && test -s conftest.$ac_objext; then
 
5569
  :
 
5570
else
 
5571
  echo "$as_me: failed program was:" >&5
 
5572
sed 's/^/| /' conftest.$ac_ext >&5
 
5573
 
 
5574
        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
5575
         CXXFLAGS="-g"
 
5576
         cat >conftest.$ac_ext <<_ACEOF
 
5577
/* confdefs.h.  */
 
5578
_ACEOF
 
5579
cat confdefs.h >>conftest.$ac_ext
 
5580
cat >>conftest.$ac_ext <<_ACEOF
 
5581
/* end confdefs.h.  */
 
5582
 
 
5583
int
 
5584
main ()
 
5585
{
 
5586
 
 
5587
  ;
 
5588
  return 0;
 
5589
}
 
5590
_ACEOF
 
5591
rm -f conftest.$ac_objext
 
5592
if { (ac_try="$ac_compile"
 
5593
case "(($ac_try" in
 
5594
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5595
  *) ac_try_echo=$ac_try;;
 
5596
esac
 
5597
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5598
  (eval "$ac_compile") 2>conftest.er1
 
5599
  ac_status=$?
 
5600
  grep -v '^ *+' conftest.er1 >conftest.err
 
5601
  rm -f conftest.er1
 
5602
  cat conftest.err >&5
 
5603
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5604
  (exit $ac_status); } && {
 
5605
         test -z "$ac_cxx_werror_flag" ||
 
5606
         test ! -s conftest.err
 
5607
       } && test -s conftest.$ac_objext; then
 
5608
  ac_cv_prog_cxx_g=yes
 
5609
else
 
5610
  echo "$as_me: failed program was:" >&5
 
5611
sed 's/^/| /' conftest.$ac_ext >&5
 
5612
 
 
5613
 
 
5614
fi
 
5615
 
 
5616
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5617
fi
 
5618
 
 
5619
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5620
fi
 
5621
 
 
5622
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5623
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
5624
fi
 
5625
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
5626
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
 
5627
if test "$ac_test_CXXFLAGS" = set; then
 
5628
  CXXFLAGS=$ac_save_CXXFLAGS
 
5629
elif test $ac_cv_prog_cxx_g = yes; then
 
5630
  if test "$GXX" = yes; then
 
5631
    CXXFLAGS="-g -O2"
 
5632
  else
 
5633
    CXXFLAGS="-g"
 
5634
  fi
 
5635
else
 
5636
  if test "$GXX" = yes; then
 
5637
    CXXFLAGS="-O2"
 
5638
  else
 
5639
    CXXFLAGS=
 
5640
  fi
 
5641
fi
 
5642
ac_ext=cpp
 
5643
ac_cpp='$CXXCPP $CPPFLAGS'
 
5644
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5645
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5646
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5647
 
 
5648
depcc="$CXX"  am_compiler_list=
 
5649
 
 
5650
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
5651
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
 
5652
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
5653
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5654
else
 
5655
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
5656
  # We make a subdir and do the tests there.  Otherwise we can end up
 
5657
  # making bogus files that we don't know about and never remove.  For
 
5658
  # instance it was reported that on HP-UX the gcc test will end up
 
5659
  # making a dummy file named `D' -- because `-MD' means `put the output
 
5660
  # in D'.
 
5661
  mkdir conftest.dir
 
5662
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
5663
  # using a relative directory.
 
5664
  cp "$am_depcomp" conftest.dir
 
5665
  cd conftest.dir
 
5666
  # We will build objects and dependencies in a subdirectory because
 
5667
  # it helps to detect inapplicable dependency modes.  For instance
 
5668
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
5669
  # side effect of compilation, but ICC will put the dependencies in
 
5670
  # the current directory while Tru64 will put them in the object
 
5671
  # directory.
 
5672
  mkdir sub
 
5673
 
 
5674
  am_cv_CXX_dependencies_compiler_type=none
 
5675
  if test "$am_compiler_list" = ""; then
 
5676
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
5677
  fi
 
5678
  for depmode in $am_compiler_list; do
 
5679
    # Setup a source with many dependencies, because some compilers
 
5680
    # like to wrap large dependency lists on column 80 (with \), and
 
5681
    # we should not choose a depcomp mode which is confused by this.
 
5682
    #
 
5683
    # We need to recreate these files for each test, as the compiler may
 
5684
    # overwrite some of them when testing with obscure command lines.
 
5685
    # This happens at least with the AIX C compiler.
 
5686
    : > sub/conftest.c
 
5687
    for i in 1 2 3 4 5 6; do
 
5688
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
5689
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
5690
      # Solaris 8's {/usr,}/bin/sh.
 
5691
      touch sub/conftst$i.h
 
5692
    done
 
5693
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
5694
 
 
5695
    case $depmode in
 
5696
    nosideeffect)
 
5697
      # after this tag, mechanisms are not by side-effect, so they'll
 
5698
      # only be used when explicitly requested
 
5699
      if test "x$enable_dependency_tracking" = xyes; then
 
5700
        continue
 
5701
      else
 
5702
        break
 
5703
      fi
 
5704
      ;;
 
5705
    none) break ;;
 
5706
    esac
 
5707
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
5708
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
5709
    # handle `-M -o', and we need to detect this.
 
5710
    if depmode=$depmode \
 
5711
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
5712
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
5713
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
5714
         >/dev/null 2>conftest.err &&
 
5715
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
5716
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
5717
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
5718
      # icc doesn't choke on unknown options, it will just issue warnings
 
5719
      # or remarks (even with -Werror).  So we grep stderr for any message
 
5720
      # that says an option was ignored or not supported.
 
5721
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
5722
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
5723
      # The diagnosis changed in icc 8.0:
 
5724
      #   icc: Command line remark: option '-MP' not supported
 
5725
      if (grep 'ignoring option' conftest.err ||
 
5726
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
5727
        am_cv_CXX_dependencies_compiler_type=$depmode
 
5728
        break
 
5729
      fi
 
5730
    fi
 
5731
  done
 
5732
 
 
5733
  cd ..
 
5734
  rm -rf conftest.dir
 
5735
else
 
5736
  am_cv_CXX_dependencies_compiler_type=none
 
5737
fi
 
5738
 
 
5739
fi
 
5740
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
5741
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
 
5742
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
5743
 
 
5744
 
 
5745
 
 
5746
if
 
5747
  test "x$enable_dependency_tracking" != xno \
 
5748
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
5749
  am__fastdepCXX_TRUE=
 
5750
  am__fastdepCXX_FALSE='#'
 
5751
else
 
5752
  am__fastdepCXX_TRUE='#'
 
5753
  am__fastdepCXX_FALSE=
 
5754
fi
 
5755
 
 
5756
 
 
5757
 
 
5758
 
 
5759
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
5760
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
5761
    (test "X$CXX" != "Xg++"))) ; then
 
5762
  ac_ext=cpp
 
5763
ac_cpp='$CXXCPP $CPPFLAGS'
 
5764
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5765
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5766
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5767
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
5768
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
 
5769
if test -z "$CXXCPP"; then
 
5770
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
5771
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5772
else
 
5773
      # Double quotes because CXXCPP needs to be expanded
 
5774
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
5775
    do
 
5776
      ac_preproc_ok=false
 
5777
for ac_cxx_preproc_warn_flag in '' yes
 
5778
do
 
5779
  # Use a header file that comes with gcc, so configuring glibc
 
5780
  # with a fresh cross-compiler works.
 
5781
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5782
  # <limits.h> exists even on freestanding compilers.
 
5783
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5784
  # not just through cpp. "Syntax error" is here to catch this case.
 
5785
  cat >conftest.$ac_ext <<_ACEOF
 
5786
/* confdefs.h.  */
 
5787
_ACEOF
 
5788
cat confdefs.h >>conftest.$ac_ext
 
5789
cat >>conftest.$ac_ext <<_ACEOF
 
5790
/* end confdefs.h.  */
 
5791
#ifdef __STDC__
 
5792
# include <limits.h>
 
5793
#else
 
5794
# include <assert.h>
 
5795
#endif
 
5796
                     Syntax error
 
5797
_ACEOF
 
5798
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5799
case "(($ac_try" in
 
5800
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5801
  *) ac_try_echo=$ac_try;;
 
5802
esac
 
5803
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5804
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5805
  ac_status=$?
 
5806
  grep -v '^ *+' conftest.er1 >conftest.err
 
5807
  rm -f conftest.er1
 
5808
  cat conftest.err >&5
 
5809
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5810
  (exit $ac_status); } >/dev/null && {
 
5811
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
5812
         test ! -s conftest.err
 
5813
       }; then
 
5814
  :
 
5815
else
 
5816
  echo "$as_me: failed program was:" >&5
 
5817
sed 's/^/| /' conftest.$ac_ext >&5
 
5818
 
 
5819
  # Broken: fails on valid input.
 
5820
continue
 
5821
fi
 
5822
 
 
5823
rm -f conftest.err conftest.$ac_ext
 
5824
 
 
5825
  # OK, works on sane cases.  Now check whether nonexistent headers
 
5826
  # can be detected and how.
 
5827
  cat >conftest.$ac_ext <<_ACEOF
 
5828
/* confdefs.h.  */
 
5829
_ACEOF
 
5830
cat confdefs.h >>conftest.$ac_ext
 
5831
cat >>conftest.$ac_ext <<_ACEOF
 
5832
/* end confdefs.h.  */
 
5833
#include <ac_nonexistent.h>
 
5834
_ACEOF
 
5835
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5836
case "(($ac_try" in
 
5837
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5838
  *) ac_try_echo=$ac_try;;
 
5839
esac
 
5840
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5841
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5842
  ac_status=$?
 
5843
  grep -v '^ *+' conftest.er1 >conftest.err
 
5844
  rm -f conftest.er1
 
5845
  cat conftest.err >&5
 
5846
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5847
  (exit $ac_status); } >/dev/null && {
 
5848
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
5849
         test ! -s conftest.err
 
5850
       }; then
 
5851
  # Broken: success on invalid input.
 
5852
continue
 
5853
else
 
5854
  echo "$as_me: failed program was:" >&5
 
5855
sed 's/^/| /' conftest.$ac_ext >&5
 
5856
 
 
5857
  # Passes both tests.
 
5858
ac_preproc_ok=:
 
5859
break
 
5860
fi
 
5861
 
 
5862
rm -f conftest.err conftest.$ac_ext
 
5863
 
 
5864
done
 
5865
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5866
rm -f conftest.err conftest.$ac_ext
 
5867
if $ac_preproc_ok; then
 
5868
  break
 
5869
fi
 
5870
 
 
5871
    done
 
5872
    ac_cv_prog_CXXCPP=$CXXCPP
 
5873
 
 
5874
fi
 
5875
  CXXCPP=$ac_cv_prog_CXXCPP
 
5876
else
 
5877
  ac_cv_prog_CXXCPP=$CXXCPP
 
5878
fi
 
5879
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
5880
echo "${ECHO_T}$CXXCPP" >&6; }
 
5881
ac_preproc_ok=false
 
5882
for ac_cxx_preproc_warn_flag in '' yes
 
5883
do
 
5884
  # Use a header file that comes with gcc, so configuring glibc
 
5885
  # with a fresh cross-compiler works.
 
5886
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5887
  # <limits.h> exists even on freestanding compilers.
 
5888
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5889
  # not just through cpp. "Syntax error" is here to catch this case.
 
5890
  cat >conftest.$ac_ext <<_ACEOF
 
5891
/* confdefs.h.  */
 
5892
_ACEOF
 
5893
cat confdefs.h >>conftest.$ac_ext
 
5894
cat >>conftest.$ac_ext <<_ACEOF
 
5895
/* end confdefs.h.  */
 
5896
#ifdef __STDC__
 
5897
# include <limits.h>
 
5898
#else
 
5899
# include <assert.h>
 
5900
#endif
 
5901
                     Syntax error
 
5902
_ACEOF
 
5903
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5904
case "(($ac_try" in
 
5905
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5906
  *) ac_try_echo=$ac_try;;
 
5907
esac
 
5908
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5909
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5910
  ac_status=$?
 
5911
  grep -v '^ *+' conftest.er1 >conftest.err
 
5912
  rm -f conftest.er1
 
5913
  cat conftest.err >&5
 
5914
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5915
  (exit $ac_status); } >/dev/null && {
 
5916
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
5917
         test ! -s conftest.err
 
5918
       }; then
 
5919
  :
 
5920
else
 
5921
  echo "$as_me: failed program was:" >&5
 
5922
sed 's/^/| /' conftest.$ac_ext >&5
 
5923
 
 
5924
  # Broken: fails on valid input.
 
5925
continue
 
5926
fi
 
5927
 
 
5928
rm -f conftest.err conftest.$ac_ext
 
5929
 
 
5930
  # OK, works on sane cases.  Now check whether nonexistent headers
 
5931
  # can be detected and how.
 
5932
  cat >conftest.$ac_ext <<_ACEOF
 
5933
/* confdefs.h.  */
 
5934
_ACEOF
 
5935
cat confdefs.h >>conftest.$ac_ext
 
5936
cat >>conftest.$ac_ext <<_ACEOF
 
5937
/* end confdefs.h.  */
 
5938
#include <ac_nonexistent.h>
 
5939
_ACEOF
 
5940
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
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_cpp conftest.$ac_ext") 2>conftest.er1
 
5947
  ac_status=$?
 
5948
  grep -v '^ *+' conftest.er1 >conftest.err
 
5949
  rm -f conftest.er1
 
5950
  cat conftest.err >&5
 
5951
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5952
  (exit $ac_status); } >/dev/null && {
 
5953
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
5954
         test ! -s conftest.err
 
5955
       }; then
 
5956
  # Broken: success on invalid input.
 
5957
continue
 
5958
else
 
5959
  echo "$as_me: failed program was:" >&5
 
5960
sed 's/^/| /' conftest.$ac_ext >&5
 
5961
 
 
5962
  # Passes both tests.
 
5963
ac_preproc_ok=:
 
5964
break
 
5965
fi
 
5966
 
 
5967
rm -f conftest.err conftest.$ac_ext
 
5968
 
 
5969
done
 
5970
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5971
rm -f conftest.err conftest.$ac_ext
 
5972
if $ac_preproc_ok; then
 
5973
  :
 
5974
else
 
5975
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
5976
See \`config.log' for more details." >&5
 
5977
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
5978
See \`config.log' for more details." >&2;}
 
5979
   { (exit 1); exit 1; }; }
 
5980
fi
 
5981
 
 
5982
ac_ext=cpp
 
5983
ac_cpp='$CXXCPP $CPPFLAGS'
 
5984
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5985
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5986
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5987
 
 
5988
fi
 
5989
 
 
5990
 
 
5991
ac_ext=f
 
5992
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
5993
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5994
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
5995
if test -n "$ac_tool_prefix"; then
 
5996
  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
 
5997
  do
 
5998
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5999
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
6000
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6001
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6002
if test "${ac_cv_prog_F77+set}" = set; then
 
6003
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6004
else
 
6005
  if test -n "$F77"; then
 
6006
  ac_cv_prog_F77="$F77" # Let the user override the test.
 
6007
else
 
6008
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6009
for as_dir in $PATH
 
6010
do
 
6011
  IFS=$as_save_IFS
 
6012
  test -z "$as_dir" && as_dir=.
 
6013
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6014
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6015
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
 
6016
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6017
    break 2
 
6018
  fi
 
6019
done
 
6020
done
 
6021
IFS=$as_save_IFS
 
6022
 
 
6023
fi
 
6024
fi
 
6025
F77=$ac_cv_prog_F77
 
6026
if test -n "$F77"; then
 
6027
  { echo "$as_me:$LINENO: result: $F77" >&5
 
6028
echo "${ECHO_T}$F77" >&6; }
 
6029
else
 
6030
  { echo "$as_me:$LINENO: result: no" >&5
 
6031
echo "${ECHO_T}no" >&6; }
 
6032
fi
 
6033
 
 
6034
 
 
6035
    test -n "$F77" && break
 
6036
  done
 
6037
fi
 
6038
if test -z "$F77"; then
 
6039
  ac_ct_F77=$F77
 
6040
  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
 
6041
do
 
6042
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
6043
set dummy $ac_prog; ac_word=$2
 
6044
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6045
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6046
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
 
6047
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6048
else
 
6049
  if test -n "$ac_ct_F77"; then
 
6050
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
 
6051
else
 
6052
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6053
for as_dir in $PATH
 
6054
do
 
6055
  IFS=$as_save_IFS
 
6056
  test -z "$as_dir" && as_dir=.
 
6057
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6058
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6059
    ac_cv_prog_ac_ct_F77="$ac_prog"
 
6060
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6061
    break 2
 
6062
  fi
 
6063
done
 
6064
done
 
6065
IFS=$as_save_IFS
 
6066
 
 
6067
fi
 
6068
fi
 
6069
ac_ct_F77=$ac_cv_prog_ac_ct_F77
 
6070
if test -n "$ac_ct_F77"; then
 
6071
  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
6072
echo "${ECHO_T}$ac_ct_F77" >&6; }
 
6073
else
 
6074
  { echo "$as_me:$LINENO: result: no" >&5
 
6075
echo "${ECHO_T}no" >&6; }
 
6076
fi
 
6077
 
 
6078
 
 
6079
  test -n "$ac_ct_F77" && break
 
6080
done
 
6081
 
 
6082
  if test "x$ac_ct_F77" = x; then
 
6083
    F77=""
 
6084
  else
 
6085
    case $cross_compiling:$ac_tool_warned in
 
6086
yes:)
 
6087
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
6088
whose name does not start with the host triplet.  If you think this
 
6089
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
6090
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
6091
whose name does not start with the host triplet.  If you think this
 
6092
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
6093
ac_tool_warned=yes ;;
 
6094
esac
 
6095
    F77=$ac_ct_F77
 
6096
  fi
 
6097
fi
 
6098
 
 
6099
 
 
6100
# Provide some information about the compiler.
 
6101
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
 
6102
ac_compiler=`set X $ac_compile; echo $2`
 
6103
{ (ac_try="$ac_compiler --version >&5"
 
6104
case "(($ac_try" in
 
6105
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6106
  *) ac_try_echo=$ac_try;;
 
6107
esac
 
6108
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6109
  (eval "$ac_compiler --version >&5") 2>&5
 
6110
  ac_status=$?
 
6111
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6112
  (exit $ac_status); }
 
6113
{ (ac_try="$ac_compiler -v >&5"
 
6114
case "(($ac_try" in
 
6115
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6116
  *) ac_try_echo=$ac_try;;
 
6117
esac
 
6118
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6119
  (eval "$ac_compiler -v >&5") 2>&5
 
6120
  ac_status=$?
 
6121
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6122
  (exit $ac_status); }
 
6123
{ (ac_try="$ac_compiler -V >&5"
 
6124
case "(($ac_try" in
 
6125
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6126
  *) ac_try_echo=$ac_try;;
 
6127
esac
 
6128
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6129
  (eval "$ac_compiler -V >&5") 2>&5
 
6130
  ac_status=$?
 
6131
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6132
  (exit $ac_status); }
 
6133
rm -f a.out
 
6134
 
 
6135
# If we don't use `.F' as extension, the preprocessor is not run on the
 
6136
# input file.  (Note that this only needs to work for GNU compilers.)
 
6137
ac_save_ext=$ac_ext
 
6138
ac_ext=F
 
6139
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
6140
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
 
6141
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
 
6142
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6143
else
 
6144
  cat >conftest.$ac_ext <<_ACEOF
 
6145
      program main
 
6146
#ifndef __GNUC__
 
6147
       choke me
 
6148
#endif
 
6149
 
 
6150
      end
 
6151
_ACEOF
 
6152
rm -f conftest.$ac_objext
 
6153
if { (ac_try="$ac_compile"
 
6154
case "(($ac_try" in
 
6155
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6156
  *) ac_try_echo=$ac_try;;
 
6157
esac
 
6158
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6159
  (eval "$ac_compile") 2>conftest.er1
 
6160
  ac_status=$?
 
6161
  grep -v '^ *+' conftest.er1 >conftest.err
 
6162
  rm -f conftest.er1
 
6163
  cat conftest.err >&5
 
6164
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6165
  (exit $ac_status); } && {
 
6166
         test -z "$ac_f77_werror_flag" ||
 
6167
         test ! -s conftest.err
 
6168
       } && test -s conftest.$ac_objext; then
 
6169
  ac_compiler_gnu=yes
 
6170
else
 
6171
  echo "$as_me: failed program was:" >&5
 
6172
sed 's/^/| /' conftest.$ac_ext >&5
 
6173
 
 
6174
        ac_compiler_gnu=no
 
6175
fi
 
6176
 
 
6177
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6178
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
 
6179
 
 
6180
fi
 
6181
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
6182
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
 
6183
ac_ext=$ac_save_ext
 
6184
ac_test_FFLAGS=${FFLAGS+set}
 
6185
ac_save_FFLAGS=$FFLAGS
 
6186
FFLAGS=
 
6187
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
6188
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
 
6189
if test "${ac_cv_prog_f77_g+set}" = set; then
 
6190
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6191
else
 
6192
  FFLAGS=-g
 
6193
cat >conftest.$ac_ext <<_ACEOF
 
6194
      program main
 
6195
 
 
6196
      end
 
6197
_ACEOF
 
6198
rm -f conftest.$ac_objext
 
6199
if { (ac_try="$ac_compile"
 
6200
case "(($ac_try" in
 
6201
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6202
  *) ac_try_echo=$ac_try;;
 
6203
esac
 
6204
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6205
  (eval "$ac_compile") 2>conftest.er1
 
6206
  ac_status=$?
 
6207
  grep -v '^ *+' conftest.er1 >conftest.err
 
6208
  rm -f conftest.er1
 
6209
  cat conftest.err >&5
 
6210
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6211
  (exit $ac_status); } && {
 
6212
         test -z "$ac_f77_werror_flag" ||
 
6213
         test ! -s conftest.err
 
6214
       } && test -s conftest.$ac_objext; then
 
6215
  ac_cv_prog_f77_g=yes
 
6216
else
 
6217
  echo "$as_me: failed program was:" >&5
 
6218
sed 's/^/| /' conftest.$ac_ext >&5
 
6219
 
 
6220
        ac_cv_prog_f77_g=no
 
6221
fi
 
6222
 
 
6223
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6224
 
 
6225
fi
 
6226
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
6227
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
 
6228
if test "$ac_test_FFLAGS" = set; then
 
6229
  FFLAGS=$ac_save_FFLAGS
 
6230
elif test $ac_cv_prog_f77_g = yes; then
 
6231
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
6232
    FFLAGS="-g -O2"
 
6233
  else
 
6234
    FFLAGS="-g"
 
6235
  fi
 
6236
else
 
6237
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
6238
    FFLAGS="-O2"
 
6239
  else
 
6240
    FFLAGS=
 
6241
  fi
 
6242
fi
 
6243
 
 
6244
G77=`test $ac_compiler_gnu = yes && echo yes`
 
6245
ac_ext=c
 
6246
ac_cpp='$CPP $CPPFLAGS'
 
6247
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6248
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6249
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6250
 
 
6251
 
 
6252
 
 
6253
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
6254
# find the maximum length of command line arguments
 
6255
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
6256
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
 
6257
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
6258
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6259
else
 
6260
    i=0
 
6261
  teststring="ABCD"
 
6262
 
 
6263
  case $build_os in
 
6264
  msdosdjgpp*)
 
6265
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
6266
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
6267
    # during glob expansion).  Even if it were fixed, the result of this
 
6268
    # check would be larger than it should be.
 
6269
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
6270
    ;;
 
6271
 
 
6272
  gnu*)
 
6273
    # Under GNU Hurd, this test is not required because there is
 
6274
    # no limit to the length of command line arguments.
 
6275
    # Libtool will interpret -1 as no limit whatsoever
 
6276
    lt_cv_sys_max_cmd_len=-1;
 
6277
    ;;
 
6278
 
 
6279
  cygwin* | mingw*)
 
6280
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
6281
    # about 5 minutes as the teststring grows exponentially.
 
6282
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
6283
    # you end up with a "frozen" computer, even though with patience
 
6284
    # the test eventually succeeds (with a max line length of 256k).
 
6285
    # Instead, let's just punt: use the minimum linelength reported by
 
6286
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
6287
    lt_cv_sys_max_cmd_len=8192;
 
6288
    ;;
 
6289
 
 
6290
  amigaos*)
 
6291
    # On AmigaOS with pdksh, this test takes hours, literally.
 
6292
    # So we just punt and use a minimum line length of 8192.
 
6293
    lt_cv_sys_max_cmd_len=8192;
 
6294
    ;;
 
6295
 
 
6296
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
6297
    # This has been around since 386BSD, at least.  Likely further.
 
6298
    if test -x /sbin/sysctl; then
 
6299
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
6300
    elif test -x /usr/sbin/sysctl; then
 
6301
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
6302
    else
 
6303
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
6304
    fi
 
6305
    # And add a safety zone
 
6306
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
6307
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
6308
    ;;
 
6309
 
 
6310
  interix*)
 
6311
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
6312
    lt_cv_sys_max_cmd_len=196608
 
6313
    ;;
 
6314
 
 
6315
  osf*)
 
6316
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
6317
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
6318
    # nice to cause kernel panics so lets avoid the loop below.
 
6319
    # First set a reasonable default.
 
6320
    lt_cv_sys_max_cmd_len=16384
 
6321
    #
 
6322
    if test -x /sbin/sysconfig; then
 
6323
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
6324
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
6325
      esac
 
6326
    fi
 
6327
    ;;
 
6328
  sco3.2v5*)
 
6329
    lt_cv_sys_max_cmd_len=102400
 
6330
    ;;
 
6331
  sysv5* | sco5v6* | sysv4.2uw2*)
 
6332
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
6333
    if test -n "$kargmax"; then
 
6334
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
 
6335
    else
 
6336
      lt_cv_sys_max_cmd_len=32768
 
6337
    fi
 
6338
    ;;
 
6339
  *)
 
6340
    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
 
6341
    if test -n "$lt_cv_sys_max_cmd_len"; then
 
6342
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
6343
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
6344
    else
 
6345
      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
6346
      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
6347
               = "XX$teststring") >/dev/null 2>&1 &&
 
6348
              new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
6349
              lt_cv_sys_max_cmd_len=$new_result &&
 
6350
              test $i != 17 # 1/2 MB should be enough
 
6351
      do
 
6352
        i=`expr $i + 1`
 
6353
        teststring=$teststring$teststring
 
6354
      done
 
6355
      teststring=
 
6356
      # Add a significant safety factor because C++ compilers can tack on massive
 
6357
      # amounts of additional arguments before passing them to the linker.
 
6358
      # It appears as though 1/2 is a usable value.
 
6359
      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
6360
    fi
 
6361
    ;;
 
6362
  esac
 
6363
 
 
6364
fi
 
6365
 
 
6366
if test -n $lt_cv_sys_max_cmd_len ; then
 
6367
  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
6368
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
 
6369
else
 
6370
  { echo "$as_me:$LINENO: result: none" >&5
 
6371
echo "${ECHO_T}none" >&6; }
 
6372
fi
 
6373
 
 
6374
 
 
6375
 
 
6376
 
 
6377
 
 
6378
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
6379
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
6380
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
 
6381
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
6382
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6383
else
 
6384
 
 
6385
# These are sane defaults that work on at least a few old systems.
 
6386
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
6387
 
 
6388
# Character class describing NM global symbol codes.
 
6389
symcode='[BCDEGRST]'
 
6390
 
 
6391
# Regexp to match symbols that can be accessed directly from C.
 
6392
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
6393
 
 
6394
# Transform an extracted symbol line into a proper C declaration
 
6395
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
6396
 
 
6397
# Transform an extracted symbol line into symbol name and symbol address
 
6398
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'"
 
6399
 
 
6400
# Define system-specific variables.
 
6401
case $host_os in
 
6402
aix*)
 
6403
  symcode='[BCDT]'
 
6404
  ;;
 
6405
cygwin* | mingw* | pw32*)
 
6406
  symcode='[ABCDGISTW]'
 
6407
  ;;
 
6408
hpux*) # Its linker distinguishes data from code symbols
 
6409
  if test "$host_cpu" = ia64; then
 
6410
    symcode='[ABCDEGRST]'
 
6411
  fi
 
6412
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6413
  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'"
 
6414
  ;;
 
6415
linux* | k*bsd*-gnu)
 
6416
  if test "$host_cpu" = ia64; then
 
6417
    symcode='[ABCDGIRSTW]'
 
6418
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6419
    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'"
 
6420
  fi
 
6421
  ;;
 
6422
irix* | nonstopux*)
 
6423
  symcode='[BCDEGRST]'
 
6424
  ;;
 
6425
osf*)
 
6426
  symcode='[BCDEGQRST]'
 
6427
  ;;
 
6428
solaris*)
 
6429
  symcode='[BDRT]'
 
6430
  ;;
 
6431
sco3.2v5*)
 
6432
  symcode='[DT]'
 
6433
  ;;
 
6434
sysv4.2uw2*)
 
6435
  symcode='[DT]'
 
6436
  ;;
 
6437
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
6438
  symcode='[ABDT]'
 
6439
  ;;
 
6440
sysv4)
 
6441
  symcode='[DFNSTU]'
 
6442
  ;;
 
6443
esac
 
6444
 
 
6445
# Handle CRLF in mingw tool chain
 
6446
opt_cr=
 
6447
case $build_os in
 
6448
mingw*)
 
6449
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
6450
  ;;
 
6451
esac
 
6452
 
 
6453
# If we're using GNU nm, then use its standard symbol codes.
 
6454
case `$NM -V 2>&1` in
 
6455
*GNU* | *'with BFD'*)
 
6456
  symcode='[ABCDGIRSTW]' ;;
 
6457
esac
 
6458
 
 
6459
# Try without a prefix undercore, then with it.
 
6460
for ac_symprfx in "" "_"; do
 
6461
 
 
6462
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
6463
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
6464
 
 
6465
  # Write the raw and C identifiers.
 
6466
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
6467
 
 
6468
  # Check to see that the pipe works correctly.
 
6469
  pipe_works=no
 
6470
 
 
6471
  rm -f conftest*
 
6472
  cat > conftest.$ac_ext <<EOF
 
6473
#ifdef __cplusplus
 
6474
extern "C" {
 
6475
#endif
 
6476
char nm_test_var;
 
6477
void nm_test_func(){}
 
6478
#ifdef __cplusplus
 
6479
}
 
6480
#endif
 
6481
int main(){nm_test_var='a';nm_test_func();return(0);}
 
6482
EOF
 
6483
 
 
6484
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6485
  (eval $ac_compile) 2>&5
 
6486
  ac_status=$?
 
6487
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6488
  (exit $ac_status); }; then
 
6489
    # Now try to grab the symbols.
 
6490
    nlist=conftest.nm
 
6491
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
6492
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
6493
  ac_status=$?
 
6494
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6495
  (exit $ac_status); } && test -s "$nlist"; then
 
6496
      # Try sorting and uniquifying the output.
 
6497
      if sort "$nlist" | uniq > "$nlist"T; then
 
6498
        mv -f "$nlist"T "$nlist"
 
6499
      else
 
6500
        rm -f "$nlist"T
 
6501
      fi
 
6502
 
 
6503
      # Make sure that we snagged all the symbols we need.
 
6504
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
6505
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
 
6506
          cat <<EOF > conftest.$ac_ext
 
6507
#ifdef __cplusplus
 
6508
extern "C" {
 
6509
#endif
 
6510
 
 
6511
EOF
 
6512
          # Now generate the symbol file.
 
6513
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 
6514
 
 
6515
          cat <<EOF >> conftest.$ac_ext
 
6516
#if defined (__STDC__) && __STDC__
 
6517
# define lt_ptr_t void *
 
6518
#else
 
6519
# define lt_ptr_t char *
 
6520
# define const
 
6521
#endif
 
6522
 
 
6523
/* The mapping between symbol names and symbols. */
 
6524
const struct {
 
6525
  const char *name;
 
6526
  lt_ptr_t address;
 
6527
}
 
6528
lt_preloaded_symbols[] =
 
6529
{
 
6530
EOF
 
6531
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 
6532
          cat <<\EOF >> conftest.$ac_ext
 
6533
  {0, (lt_ptr_t) 0}
 
6534
};
 
6535
 
 
6536
#ifdef __cplusplus
 
6537
}
 
6538
#endif
 
6539
EOF
 
6540
          # Now try linking the two files.
 
6541
          mv conftest.$ac_objext conftstm.$ac_objext
 
6542
          lt_save_LIBS="$LIBS"
 
6543
          lt_save_CFLAGS="$CFLAGS"
 
6544
          LIBS="conftstm.$ac_objext"
 
6545
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
6546
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6547
  (eval $ac_link) 2>&5
 
6548
  ac_status=$?
 
6549
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6550
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
 
6551
            pipe_works=yes
 
6552
          fi
 
6553
          LIBS="$lt_save_LIBS"
 
6554
          CFLAGS="$lt_save_CFLAGS"
 
6555
        else
 
6556
          echo "cannot find nm_test_func in $nlist" >&5
 
6557
        fi
 
6558
      else
 
6559
        echo "cannot find nm_test_var in $nlist" >&5
 
6560
      fi
 
6561
    else
 
6562
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
6563
    fi
 
6564
  else
 
6565
    echo "$progname: failed program was:" >&5
 
6566
    cat conftest.$ac_ext >&5
 
6567
  fi
 
6568
  rm -rf conftest* conftst*
 
6569
 
 
6570
  # Do not use the global_symbol_pipe unless it works.
 
6571
  if test "$pipe_works" = yes; then
 
6572
    break
 
6573
  else
 
6574
    lt_cv_sys_global_symbol_pipe=
 
6575
  fi
 
6576
done
 
6577
 
 
6578
fi
 
6579
 
 
6580
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
6581
  lt_cv_sys_global_symbol_to_cdecl=
 
6582
fi
 
6583
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
6584
  { echo "$as_me:$LINENO: result: failed" >&5
 
6585
echo "${ECHO_T}failed" >&6; }
 
6586
else
 
6587
  { echo "$as_me:$LINENO: result: ok" >&5
 
6588
echo "${ECHO_T}ok" >&6; }
 
6589
fi
 
6590
 
 
6591
{ echo "$as_me:$LINENO: checking for objdir" >&5
 
6592
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
 
6593
if test "${lt_cv_objdir+set}" = set; then
 
6594
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6595
else
 
6596
  rm -f .libs 2>/dev/null
 
6597
mkdir .libs 2>/dev/null
 
6598
if test -d .libs; then
 
6599
  lt_cv_objdir=.libs
 
6600
else
 
6601
  # MS-DOS does not allow filenames that begin with a dot.
 
6602
  lt_cv_objdir=_libs
 
6603
fi
 
6604
rmdir .libs 2>/dev/null
 
6605
fi
 
6606
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
6607
echo "${ECHO_T}$lt_cv_objdir" >&6; }
 
6608
objdir=$lt_cv_objdir
 
6609
 
 
6610
 
 
6611
 
 
6612
 
 
6613
 
 
6614
case $host_os in
 
6615
aix3*)
 
6616
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
6617
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
6618
  # vanish in a puff of smoke.
 
6619
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
6620
    COLLECT_NAMES=
 
6621
    export COLLECT_NAMES
 
6622
  fi
 
6623
  ;;
 
6624
esac
 
6625
 
 
6626
# Sed substitution that helps us do robust quoting.  It backslashifies
 
6627
# metacharacters that are still active within double-quoted strings.
 
6628
Xsed='sed -e 1s/^X//'
 
6629
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
6630
 
 
6631
# Same as above, but do not quote variable references.
 
6632
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
6633
 
 
6634
# Sed substitution to delay expansion of an escaped shell variable in a
 
6635
# double_quote_subst'ed string.
 
6636
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
6637
 
 
6638
# Sed substitution to avoid accidental globbing in evaled expressions
 
6639
no_glob_subst='s/\*/\\\*/g'
 
6640
 
 
6641
# Constants:
 
6642
rm="rm -f"
 
6643
 
 
6644
# Global variables:
 
6645
default_ofile=libtool
 
6646
can_build_shared=yes
 
6647
 
 
6648
# All known linkers require a `.a' archive for static linking (except MSVC,
 
6649
# which needs '.lib').
 
6650
libext=a
 
6651
ltmain="$ac_aux_dir/ltmain.sh"
 
6652
ofile="$default_ofile"
 
6653
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
6654
 
 
6655
if test -n "$ac_tool_prefix"; then
 
6656
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
6657
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
6658
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6659
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6660
if test "${ac_cv_prog_AR+set}" = set; then
 
6661
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6662
else
 
6663
  if test -n "$AR"; then
 
6664
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
6665
else
 
6666
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6667
for as_dir in $PATH
 
6668
do
 
6669
  IFS=$as_save_IFS
 
6670
  test -z "$as_dir" && as_dir=.
 
6671
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6672
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6673
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
6674
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6675
    break 2
 
6676
  fi
 
6677
done
 
6678
done
 
6679
IFS=$as_save_IFS
 
6680
 
 
6681
fi
 
6682
fi
 
6683
AR=$ac_cv_prog_AR
 
6684
if test -n "$AR"; then
 
6685
  { echo "$as_me:$LINENO: result: $AR" >&5
 
6686
echo "${ECHO_T}$AR" >&6; }
 
6687
else
 
6688
  { echo "$as_me:$LINENO: result: no" >&5
 
6689
echo "${ECHO_T}no" >&6; }
 
6690
fi
 
6691
 
 
6692
 
 
6693
fi
 
6694
if test -z "$ac_cv_prog_AR"; then
 
6695
  ac_ct_AR=$AR
 
6696
  # Extract the first word of "ar", so it can be a program name with args.
 
6697
set dummy ar; ac_word=$2
 
6698
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6699
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6700
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
6701
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6702
else
 
6703
  if test -n "$ac_ct_AR"; then
 
6704
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
6705
else
 
6706
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6707
for as_dir in $PATH
 
6708
do
 
6709
  IFS=$as_save_IFS
 
6710
  test -z "$as_dir" && as_dir=.
 
6711
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6712
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6713
    ac_cv_prog_ac_ct_AR="ar"
 
6714
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6715
    break 2
 
6716
  fi
 
6717
done
 
6718
done
 
6719
IFS=$as_save_IFS
 
6720
 
 
6721
fi
 
6722
fi
 
6723
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
6724
if test -n "$ac_ct_AR"; then
 
6725
  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
6726
echo "${ECHO_T}$ac_ct_AR" >&6; }
 
6727
else
 
6728
  { echo "$as_me:$LINENO: result: no" >&5
 
6729
echo "${ECHO_T}no" >&6; }
 
6730
fi
 
6731
 
 
6732
  if test "x$ac_ct_AR" = x; then
 
6733
    AR="false"
 
6734
  else
 
6735
    case $cross_compiling:$ac_tool_warned in
 
6736
yes:)
 
6737
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
6738
whose name does not start with the host triplet.  If you think this
 
6739
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
6740
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
6741
whose name does not start with the host triplet.  If you think this
 
6742
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
6743
ac_tool_warned=yes ;;
 
6744
esac
 
6745
    AR=$ac_ct_AR
 
6746
  fi
 
6747
else
 
6748
  AR="$ac_cv_prog_AR"
 
6749
fi
 
6750
 
 
6751
if test -n "$ac_tool_prefix"; then
 
6752
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
6753
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
6754
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6755
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6756
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
6757
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6758
else
 
6759
  if test -n "$RANLIB"; then
 
6760
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
6761
else
 
6762
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6763
for as_dir in $PATH
 
6764
do
 
6765
  IFS=$as_save_IFS
 
6766
  test -z "$as_dir" && as_dir=.
 
6767
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6768
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6769
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
6770
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6771
    break 2
 
6772
  fi
 
6773
done
 
6774
done
 
6775
IFS=$as_save_IFS
 
6776
 
 
6777
fi
 
6778
fi
 
6779
RANLIB=$ac_cv_prog_RANLIB
 
6780
if test -n "$RANLIB"; then
 
6781
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
 
6782
echo "${ECHO_T}$RANLIB" >&6; }
 
6783
else
 
6784
  { echo "$as_me:$LINENO: result: no" >&5
 
6785
echo "${ECHO_T}no" >&6; }
 
6786
fi
 
6787
 
 
6788
 
 
6789
fi
 
6790
if test -z "$ac_cv_prog_RANLIB"; then
 
6791
  ac_ct_RANLIB=$RANLIB
 
6792
  # Extract the first word of "ranlib", so it can be a program name with args.
 
6793
set dummy ranlib; ac_word=$2
 
6794
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6795
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6796
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
6797
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6798
else
 
6799
  if test -n "$ac_ct_RANLIB"; then
 
6800
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
6801
else
 
6802
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6803
for as_dir in $PATH
 
6804
do
 
6805
  IFS=$as_save_IFS
 
6806
  test -z "$as_dir" && as_dir=.
 
6807
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6808
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6809
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
6810
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6811
    break 2
 
6812
  fi
 
6813
done
 
6814
done
 
6815
IFS=$as_save_IFS
 
6816
 
 
6817
fi
 
6818
fi
 
6819
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
6820
if test -n "$ac_ct_RANLIB"; then
 
6821
  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
6822
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
 
6823
else
 
6824
  { echo "$as_me:$LINENO: result: no" >&5
 
6825
echo "${ECHO_T}no" >&6; }
 
6826
fi
 
6827
 
 
6828
  if test "x$ac_ct_RANLIB" = x; then
 
6829
    RANLIB=":"
 
6830
  else
 
6831
    case $cross_compiling:$ac_tool_warned in
 
6832
yes:)
 
6833
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
6834
whose name does not start with the host triplet.  If you think this
 
6835
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
6836
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
6837
whose name does not start with the host triplet.  If you think this
 
6838
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
6839
ac_tool_warned=yes ;;
 
6840
esac
 
6841
    RANLIB=$ac_ct_RANLIB
 
6842
  fi
 
6843
else
 
6844
  RANLIB="$ac_cv_prog_RANLIB"
 
6845
fi
 
6846
 
 
6847
if test -n "$ac_tool_prefix"; then
 
6848
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
6849
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
6850
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6851
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6852
if test "${ac_cv_prog_STRIP+set}" = set; then
 
6853
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6854
else
 
6855
  if test -n "$STRIP"; then
 
6856
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
6857
else
 
6858
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6859
for as_dir in $PATH
 
6860
do
 
6861
  IFS=$as_save_IFS
 
6862
  test -z "$as_dir" && as_dir=.
 
6863
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6864
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6865
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
6866
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6867
    break 2
 
6868
  fi
 
6869
done
 
6870
done
 
6871
IFS=$as_save_IFS
 
6872
 
 
6873
fi
 
6874
fi
 
6875
STRIP=$ac_cv_prog_STRIP
 
6876
if test -n "$STRIP"; then
 
6877
  { echo "$as_me:$LINENO: result: $STRIP" >&5
 
6878
echo "${ECHO_T}$STRIP" >&6; }
 
6879
else
 
6880
  { echo "$as_me:$LINENO: result: no" >&5
 
6881
echo "${ECHO_T}no" >&6; }
 
6882
fi
 
6883
 
 
6884
 
 
6885
fi
 
6886
if test -z "$ac_cv_prog_STRIP"; then
 
6887
  ac_ct_STRIP=$STRIP
 
6888
  # Extract the first word of "strip", so it can be a program name with args.
 
6889
set dummy strip; ac_word=$2
 
6890
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6891
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6892
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
6893
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6894
else
 
6895
  if test -n "$ac_ct_STRIP"; then
 
6896
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
6897
else
 
6898
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6899
for as_dir in $PATH
 
6900
do
 
6901
  IFS=$as_save_IFS
 
6902
  test -z "$as_dir" && as_dir=.
 
6903
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6904
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6905
    ac_cv_prog_ac_ct_STRIP="strip"
 
6906
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6907
    break 2
 
6908
  fi
 
6909
done
 
6910
done
 
6911
IFS=$as_save_IFS
 
6912
 
 
6913
fi
 
6914
fi
 
6915
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
6916
if test -n "$ac_ct_STRIP"; then
 
6917
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
6918
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
 
6919
else
 
6920
  { echo "$as_me:$LINENO: result: no" >&5
 
6921
echo "${ECHO_T}no" >&6; }
 
6922
fi
 
6923
 
 
6924
  if test "x$ac_ct_STRIP" = x; then
 
6925
    STRIP=":"
 
6926
  else
 
6927
    case $cross_compiling:$ac_tool_warned in
 
6928
yes:)
 
6929
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
6930
whose name does not start with the host triplet.  If you think this
 
6931
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
6932
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
6933
whose name does not start with the host triplet.  If you think this
 
6934
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
6935
ac_tool_warned=yes ;;
 
6936
esac
 
6937
    STRIP=$ac_ct_STRIP
 
6938
  fi
 
6939
else
 
6940
  STRIP="$ac_cv_prog_STRIP"
 
6941
fi
 
6942
 
 
6943
 
 
6944
old_CC="$CC"
 
6945
old_CFLAGS="$CFLAGS"
 
6946
 
 
6947
# Set sane defaults for various variables
 
6948
test -z "$AR" && AR=ar
 
6949
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
6950
test -z "$AS" && AS=as
 
6951
test -z "$CC" && CC=cc
 
6952
test -z "$LTCC" && LTCC=$CC
 
6953
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
6954
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
6955
test -z "$LD" && LD=ld
 
6956
test -z "$LN_S" && LN_S="ln -s"
 
6957
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
6958
test -z "$NM" && NM=nm
 
6959
test -z "$SED" && SED=sed
 
6960
test -z "$OBJDUMP" && OBJDUMP=objdump
 
6961
test -z "$RANLIB" && RANLIB=:
 
6962
test -z "$STRIP" && STRIP=:
 
6963
test -z "$ac_objext" && ac_objext=o
 
6964
 
 
6965
# Determine commands to create old-style static archives.
 
6966
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
 
6967
old_postinstall_cmds='chmod 644 $oldlib'
 
6968
old_postuninstall_cmds=
 
6969
 
 
6970
if test -n "$RANLIB"; then
 
6971
  case $host_os in
 
6972
  openbsd*)
 
6973
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
6974
    ;;
 
6975
  *)
 
6976
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
6977
    ;;
 
6978
  esac
 
6979
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
6980
fi
 
6981
 
 
6982
for cc_temp in $compiler""; do
 
6983
  case $cc_temp in
 
6984
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
6985
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
6986
    \-*) ;;
 
6987
    *) break;;
 
6988
  esac
 
6989
done
 
6990
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
6991
 
 
6992
 
 
6993
# Only perform the check for file, if the check method requires it
 
6994
case $deplibs_check_method in
 
6995
file_magic*)
 
6996
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
6997
    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
6998
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
 
6999
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
7000
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7001
else
 
7002
  case $MAGIC_CMD in
 
7003
[\\/*] |  ?:[\\/]*)
 
7004
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7005
  ;;
 
7006
*)
 
7007
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7008
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7009
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7010
  for ac_dir in $ac_dummy; do
 
7011
    IFS="$lt_save_ifs"
 
7012
    test -z "$ac_dir" && ac_dir=.
 
7013
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
7014
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
7015
      if test -n "$file_magic_test_file"; then
 
7016
        case $deplibs_check_method in
 
7017
        "file_magic "*)
 
7018
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7019
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7020
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7021
            $EGREP "$file_magic_regex" > /dev/null; then
 
7022
            :
 
7023
          else
 
7024
            cat <<EOF 1>&2
 
7025
 
 
7026
*** Warning: the command libtool uses to detect shared libraries,
 
7027
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7028
*** The result is that libtool may fail to recognize shared libraries
 
7029
*** as such.  This will affect the creation of libtool libraries that
 
7030
*** depend on shared libraries, but programs linked with such libtool
 
7031
*** libraries will work regardless of this problem.  Nevertheless, you
 
7032
*** may want to report the problem to your system manager and/or to
 
7033
*** bug-libtool@gnu.org
 
7034
 
 
7035
EOF
 
7036
          fi ;;
 
7037
        esac
 
7038
      fi
 
7039
      break
 
7040
    fi
 
7041
  done
 
7042
  IFS="$lt_save_ifs"
 
7043
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7044
  ;;
 
7045
esac
 
7046
fi
 
7047
 
 
7048
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7049
if test -n "$MAGIC_CMD"; then
 
7050
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
7051
echo "${ECHO_T}$MAGIC_CMD" >&6; }
 
7052
else
 
7053
  { echo "$as_me:$LINENO: result: no" >&5
 
7054
echo "${ECHO_T}no" >&6; }
 
7055
fi
 
7056
 
 
7057
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
7058
  if test -n "$ac_tool_prefix"; then
 
7059
    { echo "$as_me:$LINENO: checking for file" >&5
 
7060
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
 
7061
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
7062
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7063
else
 
7064
  case $MAGIC_CMD in
 
7065
[\\/*] |  ?:[\\/]*)
 
7066
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7067
  ;;
 
7068
*)
 
7069
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7070
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7071
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7072
  for ac_dir in $ac_dummy; do
 
7073
    IFS="$lt_save_ifs"
 
7074
    test -z "$ac_dir" && ac_dir=.
 
7075
    if test -f $ac_dir/file; then
 
7076
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
7077
      if test -n "$file_magic_test_file"; then
 
7078
        case $deplibs_check_method in
 
7079
        "file_magic "*)
 
7080
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7081
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7082
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7083
            $EGREP "$file_magic_regex" > /dev/null; then
 
7084
            :
 
7085
          else
 
7086
            cat <<EOF 1>&2
 
7087
 
 
7088
*** Warning: the command libtool uses to detect shared libraries,
 
7089
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7090
*** The result is that libtool may fail to recognize shared libraries
 
7091
*** as such.  This will affect the creation of libtool libraries that
 
7092
*** depend on shared libraries, but programs linked with such libtool
 
7093
*** libraries will work regardless of this problem.  Nevertheless, you
 
7094
*** may want to report the problem to your system manager and/or to
 
7095
*** bug-libtool@gnu.org
 
7096
 
 
7097
EOF
 
7098
          fi ;;
 
7099
        esac
 
7100
      fi
 
7101
      break
 
7102
    fi
 
7103
  done
 
7104
  IFS="$lt_save_ifs"
 
7105
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7106
  ;;
 
7107
esac
 
7108
fi
 
7109
 
 
7110
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7111
if test -n "$MAGIC_CMD"; then
 
7112
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
7113
echo "${ECHO_T}$MAGIC_CMD" >&6; }
 
7114
else
 
7115
  { echo "$as_me:$LINENO: result: no" >&5
 
7116
echo "${ECHO_T}no" >&6; }
 
7117
fi
 
7118
 
 
7119
  else
 
7120
    MAGIC_CMD=:
 
7121
  fi
 
7122
fi
 
7123
 
 
7124
  fi
 
7125
  ;;
 
7126
esac
 
7127
 
 
7128
 
 
7129
  case $host_os in
 
7130
    rhapsody* | darwin*)
 
7131
    if test -n "$ac_tool_prefix"; then
 
7132
  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
 
7133
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
 
7134
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7135
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7136
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
 
7137
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7138
else
 
7139
  if test -n "$DSYMUTIL"; then
 
7140
  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
 
7141
else
 
7142
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7143
for as_dir in $PATH
 
7144
do
 
7145
  IFS=$as_save_IFS
 
7146
  test -z "$as_dir" && as_dir=.
 
7147
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7148
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7149
    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
 
7150
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7151
    break 2
 
7152
  fi
 
7153
done
 
7154
done
 
7155
IFS=$as_save_IFS
 
7156
 
 
7157
fi
 
7158
fi
 
7159
DSYMUTIL=$ac_cv_prog_DSYMUTIL
 
7160
if test -n "$DSYMUTIL"; then
 
7161
  { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
 
7162
echo "${ECHO_T}$DSYMUTIL" >&6; }
 
7163
else
 
7164
  { echo "$as_me:$LINENO: result: no" >&5
 
7165
echo "${ECHO_T}no" >&6; }
 
7166
fi
 
7167
 
 
7168
 
 
7169
fi
 
7170
if test -z "$ac_cv_prog_DSYMUTIL"; then
 
7171
  ac_ct_DSYMUTIL=$DSYMUTIL
 
7172
  # Extract the first word of "dsymutil", so it can be a program name with args.
 
7173
set dummy dsymutil; ac_word=$2
 
7174
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7175
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7176
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
 
7177
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7178
else
 
7179
  if test -n "$ac_ct_DSYMUTIL"; then
 
7180
  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
 
7181
else
 
7182
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7183
for as_dir in $PATH
 
7184
do
 
7185
  IFS=$as_save_IFS
 
7186
  test -z "$as_dir" && as_dir=.
 
7187
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7188
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7189
    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
 
7190
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7191
    break 2
 
7192
  fi
 
7193
done
 
7194
done
 
7195
IFS=$as_save_IFS
 
7196
 
 
7197
fi
 
7198
fi
 
7199
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
 
7200
if test -n "$ac_ct_DSYMUTIL"; then
 
7201
  { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
 
7202
echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
 
7203
else
 
7204
  { echo "$as_me:$LINENO: result: no" >&5
 
7205
echo "${ECHO_T}no" >&6; }
 
7206
fi
 
7207
 
 
7208
  if test "x$ac_ct_DSYMUTIL" = x; then
 
7209
    DSYMUTIL=":"
 
7210
  else
 
7211
    case $cross_compiling:$ac_tool_warned in
 
7212
yes:)
 
7213
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
7214
whose name does not start with the host triplet.  If you think this
 
7215
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
7216
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
7217
whose name does not start with the host triplet.  If you think this
 
7218
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
7219
ac_tool_warned=yes ;;
 
7220
esac
 
7221
    DSYMUTIL=$ac_ct_DSYMUTIL
 
7222
  fi
 
7223
else
 
7224
  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
 
7225
fi
 
7226
 
 
7227
    if test -n "$ac_tool_prefix"; then
 
7228
  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
 
7229
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
 
7230
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7231
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7232
if test "${ac_cv_prog_NMEDIT+set}" = set; then
 
7233
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7234
else
 
7235
  if test -n "$NMEDIT"; then
 
7236
  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
 
7237
else
 
7238
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7239
for as_dir in $PATH
 
7240
do
 
7241
  IFS=$as_save_IFS
 
7242
  test -z "$as_dir" && as_dir=.
 
7243
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7244
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7245
    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
 
7246
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7247
    break 2
 
7248
  fi
 
7249
done
 
7250
done
 
7251
IFS=$as_save_IFS
 
7252
 
 
7253
fi
 
7254
fi
 
7255
NMEDIT=$ac_cv_prog_NMEDIT
 
7256
if test -n "$NMEDIT"; then
 
7257
  { echo "$as_me:$LINENO: result: $NMEDIT" >&5
 
7258
echo "${ECHO_T}$NMEDIT" >&6; }
 
7259
else
 
7260
  { echo "$as_me:$LINENO: result: no" >&5
 
7261
echo "${ECHO_T}no" >&6; }
 
7262
fi
 
7263
 
 
7264
 
 
7265
fi
 
7266
if test -z "$ac_cv_prog_NMEDIT"; then
 
7267
  ac_ct_NMEDIT=$NMEDIT
 
7268
  # Extract the first word of "nmedit", so it can be a program name with args.
 
7269
set dummy nmedit; ac_word=$2
 
7270
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7271
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7272
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
 
7273
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7274
else
 
7275
  if test -n "$ac_ct_NMEDIT"; then
 
7276
  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
 
7277
else
 
7278
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7279
for as_dir in $PATH
 
7280
do
 
7281
  IFS=$as_save_IFS
 
7282
  test -z "$as_dir" && as_dir=.
 
7283
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7284
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7285
    ac_cv_prog_ac_ct_NMEDIT="nmedit"
 
7286
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7287
    break 2
 
7288
  fi
 
7289
done
 
7290
done
 
7291
IFS=$as_save_IFS
 
7292
 
 
7293
fi
 
7294
fi
 
7295
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
 
7296
if test -n "$ac_ct_NMEDIT"; then
 
7297
  { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
 
7298
echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
 
7299
else
 
7300
  { echo "$as_me:$LINENO: result: no" >&5
 
7301
echo "${ECHO_T}no" >&6; }
 
7302
fi
 
7303
 
 
7304
  if test "x$ac_ct_NMEDIT" = x; then
 
7305
    NMEDIT=":"
 
7306
  else
 
7307
    case $cross_compiling:$ac_tool_warned in
 
7308
yes:)
 
7309
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
7310
whose name does not start with the host triplet.  If you think this
 
7311
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
7312
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
7313
whose name does not start with the host triplet.  If you think this
 
7314
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
7315
ac_tool_warned=yes ;;
 
7316
esac
 
7317
    NMEDIT=$ac_ct_NMEDIT
 
7318
  fi
 
7319
else
 
7320
  NMEDIT="$ac_cv_prog_NMEDIT"
 
7321
fi
 
7322
 
 
7323
 
 
7324
    { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
 
7325
echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
 
7326
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
 
7327
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7328
else
 
7329
  lt_cv_apple_cc_single_mod=no
 
7330
      if test -z "${LT_MULTI_MODULE}"; then
 
7331
   # By default we will add the -single_module flag. You can override
 
7332
   # by either setting the environment variable LT_MULTI_MODULE
 
7333
   # non-empty at configure time, or by adding -multi_module to the
 
7334
   # link flags.
 
7335
   echo "int foo(void){return 1;}" > conftest.c
 
7336
   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
 
7337
     -dynamiclib ${wl}-single_module conftest.c
 
7338
   if test -f libconftest.dylib; then
 
7339
     lt_cv_apple_cc_single_mod=yes
 
7340
     rm -rf libconftest.dylib*
 
7341
   fi
 
7342
   rm conftest.c
 
7343
      fi
 
7344
fi
 
7345
{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
 
7346
echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
 
7347
    { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
 
7348
echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
 
7349
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
 
7350
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7351
else
 
7352
  lt_cv_ld_exported_symbols_list=no
 
7353
      save_LDFLAGS=$LDFLAGS
 
7354
      echo "_main" > conftest.sym
 
7355
      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
 
7356
      cat >conftest.$ac_ext <<_ACEOF
 
7357
/* confdefs.h.  */
 
7358
_ACEOF
 
7359
cat confdefs.h >>conftest.$ac_ext
 
7360
cat >>conftest.$ac_ext <<_ACEOF
 
7361
/* end confdefs.h.  */
 
7362
 
 
7363
int
 
7364
main ()
 
7365
{
 
7366
 
 
7367
  ;
 
7368
  return 0;
 
7369
}
 
7370
_ACEOF
 
7371
rm -f conftest.$ac_objext conftest$ac_exeext
 
7372
if { (ac_try="$ac_link"
 
7373
case "(($ac_try" in
 
7374
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7375
  *) ac_try_echo=$ac_try;;
 
7376
esac
 
7377
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7378
  (eval "$ac_link") 2>conftest.er1
 
7379
  ac_status=$?
 
7380
  grep -v '^ *+' conftest.er1 >conftest.err
 
7381
  rm -f conftest.er1
 
7382
  cat conftest.err >&5
 
7383
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7384
  (exit $ac_status); } && {
 
7385
         test -z "$ac_c_werror_flag" ||
 
7386
         test ! -s conftest.err
 
7387
       } && test -s conftest$ac_exeext &&
 
7388
       $as_test_x conftest$ac_exeext; then
 
7389
  lt_cv_ld_exported_symbols_list=yes
 
7390
else
 
7391
  echo "$as_me: failed program was:" >&5
 
7392
sed 's/^/| /' conftest.$ac_ext >&5
 
7393
 
 
7394
        lt_cv_ld_exported_symbols_list=no
 
7395
fi
 
7396
 
 
7397
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
7398
      conftest$ac_exeext conftest.$ac_ext
 
7399
   LDFLAGS="$save_LDFLAGS"
 
7400
 
 
7401
fi
 
7402
{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
 
7403
echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
 
7404
    case $host_os in
 
7405
    rhapsody* | darwin1.[0123])
 
7406
      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
 
7407
    darwin1.*)
 
7408
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
7409
    darwin*)
 
7410
      # if running on 10.5 or later, the deployment target defaults
 
7411
      # to the OS version, if on x86, and 10.4, the deployment
 
7412
      # target defaults to 10.4. Don't you love it?
 
7413
      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
 
7414
   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
 
7415
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
7416
   10.[012]*)
 
7417
     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
 
7418
   10.*)
 
7419
     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
 
7420
      esac
 
7421
    ;;
 
7422
  esac
 
7423
    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
 
7424
      _lt_dar_single_mod='$single_module'
 
7425
    fi
 
7426
    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
 
7427
      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
 
7428
    else
 
7429
      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
 
7430
    fi
 
7431
    if test "$DSYMUTIL" != ":"; then
 
7432
      _lt_dsymutil="~$DSYMUTIL \$lib || :"
 
7433
    else
 
7434
      _lt_dsymutil=
 
7435
    fi
 
7436
    ;;
 
7437
  esac
 
7438
 
 
7439
 
 
7440
enable_dlopen=no
 
7441
enable_win32_dll=no
 
7442
 
 
7443
# Check whether --enable-libtool-lock was given.
 
7444
if test "${enable_libtool_lock+set}" = set; then
 
7445
  enableval=$enable_libtool_lock;
 
7446
fi
 
7447
 
 
7448
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
7449
 
 
7450
 
 
7451
# Check whether --with-pic was given.
 
7452
if test "${with_pic+set}" = set; then
 
7453
  withval=$with_pic; pic_mode="$withval"
 
7454
else
 
7455
  pic_mode=default
 
7456
fi
 
7457
 
 
7458
test -z "$pic_mode" && pic_mode=default
 
7459
 
 
7460
# Check if we have a version mismatch between libtool.m4 and ltmain.sh.
 
7461
#
 
7462
# Note:  This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined.
 
7463
#        We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually
 
7464
#        calls AC_LIBTOOL_CONFIG and creates libtool.
 
7465
#
 
7466
{ echo "$as_me:$LINENO: checking for correct ltmain.sh version" >&5
 
7467
echo $ECHO_N "checking for correct ltmain.sh version... $ECHO_C" >&6; }
 
7468
if test "x$ltmain" = "x" ; then
 
7469
  { echo "$as_me:$LINENO: result: no" >&5
 
7470
echo "${ECHO_T}no" >&6; }
 
7471
  { { echo "$as_me:$LINENO: error:
 
7472
 
 
7473
*** [Gentoo] sanity check failed! ***
 
7474
*** \$ltmain is not defined, please check the patch for consistency! ***
 
7475
" >&5
 
7476
echo "$as_me: error:
 
7477
 
 
7478
*** [Gentoo] sanity check failed! ***
 
7479
*** \$ltmain is not defined, please check the patch for consistency! ***
 
7480
" >&2;}
 
7481
   { (exit 1); exit 1; }; }
 
7482
fi
 
7483
gentoo_lt_version="1.5.26"
 
7484
gentoo_ltmain_version=`sed -n '/^[      ]*VERSION=/{s/^[        ]*VERSION=//;p;q;}' "$ltmain"`
 
7485
if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then
 
7486
  { echo "$as_me:$LINENO: result: no" >&5
 
7487
echo "${ECHO_T}no" >&6; }
 
7488
  { { echo "$as_me:$LINENO: error:
 
7489
 
 
7490
*** [Gentoo] sanity check failed! ***
 
7491
*** libtool.m4 and ltmain.sh have a version mismatch! ***
 
7492
*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
 
7493
 
 
7494
Please run:
 
7495
 
 
7496
  libtoolize --copy --force
 
7497
 
 
7498
if appropriate, please contact the maintainer of this
 
7499
package (or your distribution) for help.
 
7500
" >&5
 
7501
echo "$as_me: error:
 
7502
 
 
7503
*** [Gentoo] sanity check failed! ***
 
7504
*** libtool.m4 and ltmain.sh have a version mismatch! ***
 
7505
*** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
 
7506
 
 
7507
Please run:
 
7508
 
 
7509
  libtoolize --copy --force
 
7510
 
 
7511
if appropriate, please contact the maintainer of this
 
7512
package (or your distribution) for help.
 
7513
" >&2;}
 
7514
   { (exit 1); exit 1; }; }
 
7515
else
 
7516
  { echo "$as_me:$LINENO: result: yes" >&5
 
7517
echo "${ECHO_T}yes" >&6; }
 
7518
fi
 
7519
 
 
7520
 
 
7521
# Use C for the default configuration in the libtool script
 
7522
tagname=
 
7523
lt_save_CC="$CC"
 
7524
ac_ext=c
 
7525
ac_cpp='$CPP $CPPFLAGS'
 
7526
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7527
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7528
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7529
 
 
7530
 
 
7531
# Source file extension for C test sources.
 
7532
ac_ext=c
 
7533
 
 
7534
# Object file extension for compiled C test sources.
 
7535
objext=o
 
7536
objext=$objext
 
7537
 
 
7538
# Code to be used in simple compile tests
 
7539
lt_simple_compile_test_code="int some_variable = 0;"
 
7540
 
 
7541
# Code to be used in simple link tests
 
7542
lt_simple_link_test_code='int main(){return(0);}'
 
7543
 
 
7544
 
 
7545
# If no C compiler was specified, use CC.
 
7546
LTCC=${LTCC-"$CC"}
 
7547
 
 
7548
# If no C compiler flags were specified, use CFLAGS.
 
7549
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
7550
 
 
7551
# Allow CC to be a program name with arguments.
 
7552
compiler=$CC
 
7553
 
 
7554
 
 
7555
# save warnings/boilerplate of simple test code
 
7556
ac_outfile=conftest.$ac_objext
 
7557
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
7558
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7559
_lt_compiler_boilerplate=`cat conftest.err`
 
7560
$rm conftest*
 
7561
 
 
7562
ac_outfile=conftest.$ac_objext
 
7563
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
7564
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7565
_lt_linker_boilerplate=`cat conftest.err`
 
7566
$rm -r conftest*
 
7567
 
 
7568
 
 
7569
 
 
7570
lt_prog_compiler_no_builtin_flag=
 
7571
 
 
7572
if test "$GCC" = yes; then
 
7573
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
7574
 
 
7575
 
 
7576
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
7577
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
 
7578
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
7579
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7580
else
 
7581
  lt_cv_prog_compiler_rtti_exceptions=no
 
7582
  ac_outfile=conftest.$ac_objext
 
7583
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7584
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
7585
   # Insert the option either (1) after the last *FLAGS variable, or
 
7586
   # (2) before a word containing "conftest.", or (3) at the end.
 
7587
   # Note that $ac_compile itself does not contain backslashes and begins
 
7588
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7589
   # The option is referenced via a variable to avoid confusing sed.
 
7590
   lt_compile=`echo "$ac_compile" | $SED \
 
7591
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7592
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7593
   -e 's:$: $lt_compiler_flag:'`
 
7594
   (eval echo "\"\$as_me:7594: $lt_compile\"" >&5)
 
7595
   (eval "$lt_compile" 2>conftest.err)
 
7596
   ac_status=$?
 
7597
   cat conftest.err >&5
 
7598
   echo "$as_me:7598: \$? = $ac_status" >&5
 
7599
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
7600
     # The compiler can only warn and ignore the option if not recognized
 
7601
     # So say no if there are warnings other than the usual output.
 
7602
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
7603
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7604
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
7605
       lt_cv_prog_compiler_rtti_exceptions=yes
 
7606
     fi
 
7607
   fi
 
7608
   $rm conftest*
 
7609
 
 
7610
fi
 
7611
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
7612
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
7613
 
 
7614
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
7615
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
7616
else
 
7617
    :
 
7618
fi
 
7619
 
 
7620
fi
 
7621
 
 
7622
lt_prog_compiler_wl=
 
7623
lt_prog_compiler_pic=
 
7624
lt_prog_compiler_static=
 
7625
 
 
7626
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
7627
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
7628
 
 
7629
  if test "$GCC" = yes; then
 
7630
    lt_prog_compiler_wl='-Wl,'
 
7631
    lt_prog_compiler_static='-static'
 
7632
 
 
7633
    case $host_os in
 
7634
      aix*)
 
7635
      # All AIX code is PIC.
 
7636
      if test "$host_cpu" = ia64; then
 
7637
        # AIX 5 now supports IA64 processor
 
7638
        lt_prog_compiler_static='-Bstatic'
 
7639
      fi
 
7640
      ;;
 
7641
 
 
7642
    amigaos*)
 
7643
      # FIXME: we need at least 68020 code to build shared libraries, but
 
7644
      # adding the `-m68020' flag to GCC prevents building anything better,
 
7645
      # like `-m68040'.
 
7646
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
7647
      ;;
 
7648
 
 
7649
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
7650
      # PIC is the default for these OSes.
 
7651
      ;;
 
7652
 
 
7653
    mingw* | cygwin* | pw32* | os2*)
 
7654
      # This hack is so that the source file can tell whether it is being
 
7655
      # built for inclusion in a dll (and should export symbols for example).
 
7656
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
7657
      # (--disable-auto-import) libraries
 
7658
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
7659
      ;;
 
7660
 
 
7661
    darwin* | rhapsody*)
 
7662
      # PIC is the default on this platform
 
7663
      # Common symbols not allowed in MH_DYLIB files
 
7664
      lt_prog_compiler_pic='-fno-common'
 
7665
      ;;
 
7666
 
 
7667
    interix[3-9]*)
 
7668
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
7669
      # Instead, we relocate shared libraries at runtime.
 
7670
      ;;
 
7671
 
 
7672
    msdosdjgpp*)
 
7673
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
7674
      # on systems that don't support them.
 
7675
      lt_prog_compiler_can_build_shared=no
 
7676
      enable_shared=no
 
7677
      ;;
 
7678
 
 
7679
    sysv4*MP*)
 
7680
      if test -d /usr/nec; then
 
7681
        lt_prog_compiler_pic=-Kconform_pic
 
7682
      fi
 
7683
      ;;
 
7684
 
 
7685
    hpux*)
 
7686
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
7687
      # not for PA HP-UX.
 
7688
      case $host_cpu in
 
7689
      hppa*64*|ia64*)
 
7690
        # +Z the default
 
7691
        ;;
 
7692
      *)
 
7693
        lt_prog_compiler_pic='-fPIC'
 
7694
        ;;
 
7695
      esac
 
7696
      ;;
 
7697
 
 
7698
    *)
 
7699
      lt_prog_compiler_pic='-fPIC'
 
7700
      ;;
 
7701
    esac
 
7702
  else
 
7703
    # PORTME Check for flag to pass linker flags through the system compiler.
 
7704
    case $host_os in
 
7705
    aix*)
 
7706
      lt_prog_compiler_wl='-Wl,'
 
7707
      if test "$host_cpu" = ia64; then
 
7708
        # AIX 5 now supports IA64 processor
 
7709
        lt_prog_compiler_static='-Bstatic'
 
7710
      else
 
7711
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
7712
      fi
 
7713
      ;;
 
7714
      darwin*)
 
7715
        # PIC is the default on this platform
 
7716
        # Common symbols not allowed in MH_DYLIB files
 
7717
       case $cc_basename in
 
7718
         xlc*)
 
7719
         lt_prog_compiler_pic='-qnocommon'
 
7720
         lt_prog_compiler_wl='-Wl,'
 
7721
         ;;
 
7722
       esac
 
7723
       ;;
 
7724
 
 
7725
    mingw* | cygwin* | pw32* | os2*)
 
7726
      # This hack is so that the source file can tell whether it is being
 
7727
      # built for inclusion in a dll (and should export symbols for example).
 
7728
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
7729
      ;;
 
7730
 
 
7731
    hpux9* | hpux10* | hpux11*)
 
7732
      lt_prog_compiler_wl='-Wl,'
 
7733
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
7734
      # not for PA HP-UX.
 
7735
      case $host_cpu in
 
7736
      hppa*64*|ia64*)
 
7737
        # +Z the default
 
7738
        ;;
 
7739
      *)
 
7740
        lt_prog_compiler_pic='+Z'
 
7741
        ;;
 
7742
      esac
 
7743
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
7744
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
7745
      ;;
 
7746
 
 
7747
    irix5* | irix6* | nonstopux*)
 
7748
      lt_prog_compiler_wl='-Wl,'
 
7749
      # PIC (with -KPIC) is the default.
 
7750
      lt_prog_compiler_static='-non_shared'
 
7751
      ;;
 
7752
 
 
7753
    newsos6)
 
7754
      lt_prog_compiler_pic='-KPIC'
 
7755
      lt_prog_compiler_static='-Bstatic'
 
7756
      ;;
 
7757
 
 
7758
    linux* | k*bsd*-gnu)
 
7759
      case $cc_basename in
 
7760
      icc* | ecc*)
 
7761
        lt_prog_compiler_wl='-Wl,'
 
7762
        lt_prog_compiler_pic='-KPIC'
 
7763
        lt_prog_compiler_static='-static'
 
7764
        ;;
 
7765
      pgcc* | pgf77* | pgf90* | pgf95*)
 
7766
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
7767
        # which looks to be a dead project)
 
7768
        lt_prog_compiler_wl='-Wl,'
 
7769
        lt_prog_compiler_pic='-fpic'
 
7770
        lt_prog_compiler_static='-Bstatic'
 
7771
        ;;
 
7772
      ccc*)
 
7773
        lt_prog_compiler_wl='-Wl,'
 
7774
        # All Alpha code is PIC.
 
7775
        lt_prog_compiler_static='-non_shared'
 
7776
        ;;
 
7777
      *)
 
7778
        case `$CC -V 2>&1 | sed 5q` in
 
7779
        *Sun\ C*)
 
7780
          # Sun C 5.9
 
7781
          lt_prog_compiler_pic='-KPIC'
 
7782
          lt_prog_compiler_static='-Bstatic'
 
7783
          lt_prog_compiler_wl='-Wl,'
 
7784
          ;;
 
7785
        *Sun\ F*)
 
7786
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
7787
          lt_prog_compiler_pic='-KPIC'
 
7788
          lt_prog_compiler_static='-Bstatic'
 
7789
          lt_prog_compiler_wl=''
 
7790
          ;;
 
7791
        esac
 
7792
        ;;
 
7793
      esac
 
7794
      ;;
 
7795
 
 
7796
    osf3* | osf4* | osf5*)
 
7797
      lt_prog_compiler_wl='-Wl,'
 
7798
      # All OSF/1 code is PIC.
 
7799
      lt_prog_compiler_static='-non_shared'
 
7800
      ;;
 
7801
 
 
7802
    rdos*)
 
7803
      lt_prog_compiler_static='-non_shared'
 
7804
      ;;
 
7805
 
 
7806
    solaris*)
 
7807
      lt_prog_compiler_pic='-KPIC'
 
7808
      lt_prog_compiler_static='-Bstatic'
 
7809
      case $cc_basename in
 
7810
      f77* | f90* | f95*)
 
7811
        lt_prog_compiler_wl='-Qoption ld ';;
 
7812
      *)
 
7813
        lt_prog_compiler_wl='-Wl,';;
 
7814
      esac
 
7815
      ;;
 
7816
 
 
7817
    sunos4*)
 
7818
      lt_prog_compiler_wl='-Qoption ld '
 
7819
      lt_prog_compiler_pic='-PIC'
 
7820
      lt_prog_compiler_static='-Bstatic'
 
7821
      ;;
 
7822
 
 
7823
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
7824
      lt_prog_compiler_wl='-Wl,'
 
7825
      lt_prog_compiler_pic='-KPIC'
 
7826
      lt_prog_compiler_static='-Bstatic'
 
7827
      ;;
 
7828
 
 
7829
    sysv4*MP*)
 
7830
      if test -d /usr/nec ;then
 
7831
        lt_prog_compiler_pic='-Kconform_pic'
 
7832
        lt_prog_compiler_static='-Bstatic'
 
7833
      fi
 
7834
      ;;
 
7835
 
 
7836
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
7837
      lt_prog_compiler_wl='-Wl,'
 
7838
      lt_prog_compiler_pic='-KPIC'
 
7839
      lt_prog_compiler_static='-Bstatic'
 
7840
      ;;
 
7841
 
 
7842
    unicos*)
 
7843
      lt_prog_compiler_wl='-Wl,'
 
7844
      lt_prog_compiler_can_build_shared=no
 
7845
      ;;
 
7846
 
 
7847
    uts4*)
 
7848
      lt_prog_compiler_pic='-pic'
 
7849
      lt_prog_compiler_static='-Bstatic'
 
7850
      ;;
 
7851
 
 
7852
    *)
 
7853
      lt_prog_compiler_can_build_shared=no
 
7854
      ;;
 
7855
    esac
 
7856
  fi
 
7857
 
 
7858
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
7859
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
 
7860
 
 
7861
#
 
7862
# Check to make sure the PIC flag actually works.
 
7863
#
 
7864
if test -n "$lt_prog_compiler_pic"; then
 
7865
 
 
7866
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
7867
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
 
7868
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
 
7869
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7870
else
 
7871
  lt_cv_prog_compiler_pic_works=no
 
7872
  ac_outfile=conftest.$ac_objext
 
7873
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7874
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
7875
   # Insert the option either (1) after the last *FLAGS variable, or
 
7876
   # (2) before a word containing "conftest.", or (3) at the end.
 
7877
   # Note that $ac_compile itself does not contain backslashes and begins
 
7878
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7879
   # The option is referenced via a variable to avoid confusing sed.
 
7880
   lt_compile=`echo "$ac_compile" | $SED \
 
7881
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7882
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7883
   -e 's:$: $lt_compiler_flag:'`
 
7884
   (eval echo "\"\$as_me:7884: $lt_compile\"" >&5)
 
7885
   (eval "$lt_compile" 2>conftest.err)
 
7886
   ac_status=$?
 
7887
   cat conftest.err >&5
 
7888
   echo "$as_me:7888: \$? = $ac_status" >&5
 
7889
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
7890
     # The compiler can only warn and ignore the option if not recognized
 
7891
     # So say no if there are warnings other than the usual output.
 
7892
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
7893
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7894
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
7895
       lt_cv_prog_compiler_pic_works=yes
 
7896
     fi
 
7897
   fi
 
7898
   $rm conftest*
 
7899
 
 
7900
fi
 
7901
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
 
7902
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
 
7903
 
 
7904
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
 
7905
    case $lt_prog_compiler_pic in
 
7906
     "" | " "*) ;;
 
7907
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
7908
     esac
 
7909
else
 
7910
    lt_prog_compiler_pic=
 
7911
     lt_prog_compiler_can_build_shared=no
 
7912
fi
 
7913
 
 
7914
fi
 
7915
case $host_os in
 
7916
  # For platforms which do not support PIC, -DPIC is meaningless:
 
7917
  *djgpp*)
 
7918
    lt_prog_compiler_pic=
 
7919
    ;;
 
7920
  *)
 
7921
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
7922
    ;;
 
7923
esac
 
7924
 
 
7925
#
 
7926
# Check to make sure the static flag actually works.
 
7927
#
 
7928
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
7929
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
7930
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
7931
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
 
7932
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7933
else
 
7934
  lt_cv_prog_compiler_static_works=no
 
7935
   save_LDFLAGS="$LDFLAGS"
 
7936
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
7937
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
7938
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
7939
     # The linker can only warn and ignore the option if not recognized
 
7940
     # So say no if there are warnings
 
7941
     if test -s conftest.err; then
 
7942
       # Append any errors to the config.log.
 
7943
       cat conftest.err 1>&5
 
7944
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
7945
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7946
       if diff conftest.exp conftest.er2 >/dev/null; then
 
7947
         lt_cv_prog_compiler_static_works=yes
 
7948
       fi
 
7949
     else
 
7950
       lt_cv_prog_compiler_static_works=yes
 
7951
     fi
 
7952
   fi
 
7953
   $rm -r conftest*
 
7954
   LDFLAGS="$save_LDFLAGS"
 
7955
 
 
7956
fi
 
7957
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
 
7958
echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
 
7959
 
 
7960
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
 
7961
    :
 
7962
else
 
7963
    lt_prog_compiler_static=
 
7964
fi
 
7965
 
 
7966
 
 
7967
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
7968
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
7969
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
7970
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7971
else
 
7972
  lt_cv_prog_compiler_c_o=no
 
7973
   $rm -r conftest 2>/dev/null
 
7974
   mkdir conftest
 
7975
   cd conftest
 
7976
   mkdir out
 
7977
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7978
 
 
7979
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
7980
   # Insert the option either (1) after the last *FLAGS variable, or
 
7981
   # (2) before a word containing "conftest.", or (3) at the end.
 
7982
   # Note that $ac_compile itself does not contain backslashes and begins
 
7983
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7984
   lt_compile=`echo "$ac_compile" | $SED \
 
7985
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7986
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7987
   -e 's:$: $lt_compiler_flag:'`
 
7988
   (eval echo "\"\$as_me:7988: $lt_compile\"" >&5)
 
7989
   (eval "$lt_compile" 2>out/conftest.err)
 
7990
   ac_status=$?
 
7991
   cat out/conftest.err >&5
 
7992
   echo "$as_me:7992: \$? = $ac_status" >&5
 
7993
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
7994
   then
 
7995
     # The compiler can only warn and ignore the option if not recognized
 
7996
     # So say no if there are warnings
 
7997
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
7998
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
7999
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
8000
       lt_cv_prog_compiler_c_o=yes
 
8001
     fi
 
8002
   fi
 
8003
   chmod u+w . 2>&5
 
8004
   $rm conftest*
 
8005
   # SGI C++ compiler will create directory out/ii_files/ for
 
8006
   # template instantiation
 
8007
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
8008
   $rm out/* && rmdir out
 
8009
   cd ..
 
8010
   rmdir conftest
 
8011
   $rm conftest*
 
8012
 
 
8013
fi
 
8014
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
8015
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
 
8016
 
 
8017
 
 
8018
hard_links="nottested"
 
8019
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
8020
  # do not overwrite the value of need_locks provided by the user
 
8021
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
8022
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
8023
  hard_links=yes
 
8024
  $rm conftest*
 
8025
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
8026
  touch conftest.a
 
8027
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
8028
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
8029
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
8030
echo "${ECHO_T}$hard_links" >&6; }
 
8031
  if test "$hard_links" = no; then
 
8032
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
8033
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
8034
    need_locks=warn
 
8035
  fi
 
8036
else
 
8037
  need_locks=no
 
8038
fi
 
8039
 
 
8040
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
8041
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
8042
 
 
8043
  runpath_var=
 
8044
  allow_undefined_flag=
 
8045
  enable_shared_with_static_runtimes=no
 
8046
  archive_cmds=
 
8047
  archive_expsym_cmds=
 
8048
  old_archive_From_new_cmds=
 
8049
  old_archive_from_expsyms_cmds=
 
8050
  export_dynamic_flag_spec=
 
8051
  whole_archive_flag_spec=
 
8052
  thread_safe_flag_spec=
 
8053
  hardcode_libdir_flag_spec=
 
8054
  hardcode_libdir_flag_spec_ld=
 
8055
  hardcode_libdir_separator=
 
8056
  hardcode_direct=no
 
8057
  hardcode_minus_L=no
 
8058
  hardcode_shlibpath_var=unsupported
 
8059
  link_all_deplibs=unknown
 
8060
  hardcode_automatic=no
 
8061
  module_cmds=
 
8062
  module_expsym_cmds=
 
8063
  always_export_symbols=no
 
8064
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
8065
  # include_expsyms should be a list of space-separated symbols to be *always*
 
8066
  # included in the symbol list
 
8067
  include_expsyms=
 
8068
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
8069
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
8070
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
8071
  # as well as any symbol that contains `d'.
 
8072
  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
8073
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
8074
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
8075
  # the symbol is explicitly referenced.  Since portable code cannot
 
8076
  # rely on this symbol name, it's probably fine to never include it in
 
8077
  # preloaded symbol tables.
 
8078
  # Exclude shared library initialization/finalization symbols.
 
8079
  extract_expsyms_cmds=
 
8080
  # Just being paranoid about ensuring that cc_basename is set.
 
8081
  for cc_temp in $compiler""; do
 
8082
  case $cc_temp in
 
8083
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
8084
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
8085
    \-*) ;;
 
8086
    *) break;;
 
8087
  esac
 
8088
done
 
8089
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
8090
 
 
8091
  case $host_os in
 
8092
  cygwin* | mingw* | pw32*)
 
8093
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
8094
    # When not using gcc, we currently assume that we are using
 
8095
    # Microsoft Visual C++.
 
8096
    if test "$GCC" != yes; then
 
8097
      with_gnu_ld=no
 
8098
    fi
 
8099
    ;;
 
8100
  interix*)
 
8101
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
8102
    with_gnu_ld=yes
 
8103
    ;;
 
8104
  openbsd*)
 
8105
    with_gnu_ld=no
 
8106
    ;;
 
8107
  esac
 
8108
 
 
8109
  ld_shlibs=yes
 
8110
  if test "$with_gnu_ld" = yes; then
 
8111
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
8112
    wlarc='${wl}'
 
8113
 
 
8114
    # Set some defaults for GNU ld with shared library support. These
 
8115
    # are reset later if shared libraries are not supported. Putting them
 
8116
    # here allows them to be overridden if necessary.
 
8117
    runpath_var=LD_RUN_PATH
 
8118
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
8119
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
8120
    # ancient GNU ld didn't support --whole-archive et. al.
 
8121
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
8122
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
8123
      else
 
8124
        whole_archive_flag_spec=
 
8125
    fi
 
8126
    supports_anon_versioning=no
 
8127
    case `$LD -v 2>/dev/null` in
 
8128
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
8129
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
8130
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
8131
      *\ 2.11.*) ;; # other 2.11 versions
 
8132
      *) supports_anon_versioning=yes ;;
 
8133
    esac
 
8134
 
 
8135
    # See if GNU ld supports shared libraries.
 
8136
    case $host_os in
 
8137
    aix[3-9]*)
 
8138
      # On AIX/PPC, the GNU linker is very broken
 
8139
      if test "$host_cpu" != ia64; then
 
8140
        ld_shlibs=no
 
8141
        cat <<EOF 1>&2
 
8142
 
 
8143
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
8144
*** to be unable to reliably create shared libraries on AIX.
 
8145
*** Therefore, libtool is disabling shared libraries support.  If you
 
8146
*** really care for shared libraries, you may want to modify your PATH
 
8147
*** so that a non-GNU linker is found, and then restart.
 
8148
 
 
8149
EOF
 
8150
      fi
 
8151
      ;;
 
8152
 
 
8153
    amigaos*)
 
8154
      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)'
 
8155
      hardcode_libdir_flag_spec='-L$libdir'
 
8156
      hardcode_minus_L=yes
 
8157
 
 
8158
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
8159
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
8160
      # to version 4, is to share data among multiple programs linked
 
8161
      # with the same dynamic library.  Since this doesn't match the
 
8162
      # behavior of shared libraries on other platforms, we can't use
 
8163
      # them.
 
8164
      ld_shlibs=no
 
8165
      ;;
 
8166
 
 
8167
    beos*)
 
8168
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8169
        allow_undefined_flag=unsupported
 
8170
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
8171
        # support --undefined.  This deserves some investigation.  FIXME
 
8172
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8173
      else
 
8174
        ld_shlibs=no
 
8175
      fi
 
8176
      ;;
 
8177
 
 
8178
    cygwin* | mingw* | pw32*)
 
8179
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
8180
      # as there is no search path for DLLs.
 
8181
      hardcode_libdir_flag_spec='-L$libdir'
 
8182
      allow_undefined_flag=unsupported
 
8183
      always_export_symbols=no
 
8184
      enable_shared_with_static_runtimes=yes
 
8185
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
8186
 
 
8187
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
8188
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
8189
        # If the export-symbols file already is a .def file (1st line
 
8190
        # is EXPORTS), use it as is; otherwise, prepend...
 
8191
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
8192
          cp $export_symbols $output_objdir/$soname.def;
 
8193
        else
 
8194
          echo EXPORTS > $output_objdir/$soname.def;
 
8195
          cat $export_symbols >> $output_objdir/$soname.def;
 
8196
        fi~
 
8197
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
8198
      else
 
8199
        ld_shlibs=no
 
8200
      fi
 
8201
      ;;
 
8202
 
 
8203
    interix[3-9]*)
 
8204
      hardcode_direct=no
 
8205
      hardcode_shlibpath_var=no
 
8206
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8207
      export_dynamic_flag_spec='${wl}-E'
 
8208
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
8209
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
8210
      # default) and relocated if they conflict, which is a slow very memory
 
8211
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
8212
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
8213
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
8214
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
8215
      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'
 
8216
      ;;
 
8217
 
 
8218
    gnu* | linux* | k*bsd*-gnu)
 
8219
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8220
        tmp_addflag=
 
8221
        case $cc_basename,$host_cpu in
 
8222
        pgcc*)                          # Portland Group C compiler
 
8223
          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'
 
8224
          tmp_addflag=' $pic_flag'
 
8225
          ;;
 
8226
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
8227
          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'
 
8228
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
8229
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
8230
          tmp_addflag=' -i_dynamic' ;;
 
8231
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
8232
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
8233
        ifc* | ifort*)                  # Intel Fortran compiler
 
8234
          tmp_addflag=' -nofor_main' ;;
 
8235
        esac
 
8236
        case `$CC -V 2>&1 | sed 5q` in
 
8237
        *Sun\ C*)                       # Sun C 5.9
 
8238
          whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
8239
          tmp_sharedflag='-G' ;;
 
8240
        *Sun\ F*)                       # Sun Fortran 8.3
 
8241
          tmp_sharedflag='-G' ;;
 
8242
        *)
 
8243
          tmp_sharedflag='-shared' ;;
 
8244
        esac
 
8245
        archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8246
 
 
8247
        if test $supports_anon_versioning = yes; then
 
8248
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
8249
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
8250
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
8251
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
8252
        fi
 
8253
      else
 
8254
        ld_shlibs=no
 
8255
      fi
 
8256
      ;;
 
8257
 
 
8258
    netbsd*)
 
8259
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
8260
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
8261
        wlarc=
 
8262
      else
 
8263
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8264
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8265
      fi
 
8266
      ;;
 
8267
 
 
8268
    solaris*)
 
8269
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
8270
        ld_shlibs=no
 
8271
        cat <<EOF 1>&2
 
8272
 
 
8273
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
8274
*** create shared libraries on Solaris systems.  Therefore, libtool
 
8275
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
8276
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
8277
*** your PATH or compiler configuration so that the native linker is
 
8278
*** used, and then restart.
 
8279
 
 
8280
EOF
 
8281
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8282
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8283
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8284
      else
 
8285
        ld_shlibs=no
 
8286
      fi
 
8287
      ;;
 
8288
 
 
8289
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
8290
      case `$LD -v 2>&1` in
 
8291
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
8292
        ld_shlibs=no
 
8293
        cat <<_LT_EOF 1>&2
 
8294
 
 
8295
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
8296
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
8297
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
8298
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
8299
*** your PATH or compiler configuration so that the native linker is
 
8300
*** used, and then restart.
 
8301
 
 
8302
_LT_EOF
 
8303
        ;;
 
8304
        *)
 
8305
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8306
            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
8307
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
8308
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
8309
          else
 
8310
            ld_shlibs=no
 
8311
          fi
 
8312
        ;;
 
8313
      esac
 
8314
      ;;
 
8315
 
 
8316
    sunos4*)
 
8317
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8318
      wlarc=
 
8319
      hardcode_direct=yes
 
8320
      hardcode_shlibpath_var=no
 
8321
      ;;
 
8322
 
 
8323
    *)
 
8324
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8325
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8326
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8327
      else
 
8328
        ld_shlibs=no
 
8329
      fi
 
8330
      ;;
 
8331
    esac
 
8332
 
 
8333
    if test "$ld_shlibs" = no; then
 
8334
      runpath_var=
 
8335
      hardcode_libdir_flag_spec=
 
8336
      export_dynamic_flag_spec=
 
8337
      whole_archive_flag_spec=
 
8338
    fi
 
8339
  else
 
8340
    # PORTME fill in a description of your system's linker (not GNU ld)
 
8341
    case $host_os in
 
8342
    aix3*)
 
8343
      allow_undefined_flag=unsupported
 
8344
      always_export_symbols=yes
 
8345
      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'
 
8346
      # Note: this linker hardcodes the directories in LIBPATH if there
 
8347
      # are no directories specified by -L.
 
8348
      hardcode_minus_L=yes
 
8349
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
8350
        # Neither direct hardcoding nor static linking is supported with a
 
8351
        # broken collect2.
 
8352
        hardcode_direct=unsupported
 
8353
      fi
 
8354
      ;;
 
8355
 
 
8356
    aix[4-9]*)
 
8357
      if test "$host_cpu" = ia64; then
 
8358
        # On IA64, the linker does run time linking by default, so we don't
 
8359
        # have to do anything special.
 
8360
        aix_use_runtimelinking=no
 
8361
        exp_sym_flag='-Bexport'
 
8362
        no_entry_flag=""
 
8363
      else
 
8364
        # If we're using GNU nm, then we don't want the "-C" option.
 
8365
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
8366
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
8367
          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'
 
8368
        else
 
8369
          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'
 
8370
        fi
 
8371
        aix_use_runtimelinking=no
 
8372
 
 
8373
        # Test if we are trying to use run time linking or normal
 
8374
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
8375
        # need to do runtime linking.
 
8376
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
8377
          for ld_flag in $LDFLAGS; do
 
8378
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
8379
            aix_use_runtimelinking=yes
 
8380
            break
 
8381
          fi
 
8382
          done
 
8383
          ;;
 
8384
        esac
 
8385
 
 
8386
        exp_sym_flag='-bexport'
 
8387
        no_entry_flag='-bnoentry'
 
8388
      fi
 
8389
 
 
8390
      # When large executables or shared objects are built, AIX ld can
 
8391
      # have problems creating the table of contents.  If linking a library
 
8392
      # or program results in "error TOC overflow" add -mminimal-toc to
 
8393
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
8394
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
8395
 
 
8396
      archive_cmds=''
 
8397
      hardcode_direct=yes
 
8398
      hardcode_libdir_separator=':'
 
8399
      link_all_deplibs=yes
 
8400
 
 
8401
      if test "$GCC" = yes; then
 
8402
        case $host_os in aix4.[012]|aix4.[012].*)
 
8403
        # We only want to do this on AIX 4.2 and lower, the check
 
8404
        # below for broken collect2 doesn't work under 4.3+
 
8405
          collect2name=`${CC} -print-prog-name=collect2`
 
8406
          if test -f "$collect2name" && \
 
8407
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
8408
          then
 
8409
          # We have reworked collect2
 
8410
          :
 
8411
          else
 
8412
          # We have old collect2
 
8413
          hardcode_direct=unsupported
 
8414
          # It fails to find uninstalled libraries when the uninstalled
 
8415
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
8416
          # to unsupported forces relinking
 
8417
          hardcode_minus_L=yes
 
8418
          hardcode_libdir_flag_spec='-L$libdir'
 
8419
          hardcode_libdir_separator=
 
8420
          fi
 
8421
          ;;
 
8422
        esac
 
8423
        shared_flag='-shared'
 
8424
        if test "$aix_use_runtimelinking" = yes; then
 
8425
          shared_flag="$shared_flag "'${wl}-G'
 
8426
        fi
 
8427
      else
 
8428
        # not using gcc
 
8429
        if test "$host_cpu" = ia64; then
 
8430
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
8431
        # chokes on -Wl,-G. The following line is correct:
 
8432
          shared_flag='-G'
 
8433
        else
 
8434
          if test "$aix_use_runtimelinking" = yes; then
 
8435
            shared_flag='${wl}-G'
 
8436
          else
 
8437
            shared_flag='${wl}-bM:SRE'
 
8438
          fi
 
8439
        fi
 
8440
      fi
 
8441
 
 
8442
      # It seems that -bexpall does not export symbols beginning with
 
8443
      # underscore (_), so it is better to generate a list of symbols to export.
 
8444
      always_export_symbols=yes
 
8445
      if test "$aix_use_runtimelinking" = yes; then
 
8446
        # Warning - without using the other runtime loading flags (-brtl),
 
8447
        # -berok will link without error, but may produce a broken library.
 
8448
        allow_undefined_flag='-berok'
 
8449
       # Determine the default libpath from the value encoded in an empty executable.
 
8450
       cat >conftest.$ac_ext <<_ACEOF
 
8451
/* confdefs.h.  */
 
8452
_ACEOF
 
8453
cat confdefs.h >>conftest.$ac_ext
 
8454
cat >>conftest.$ac_ext <<_ACEOF
 
8455
/* end confdefs.h.  */
 
8456
 
 
8457
int
 
8458
main ()
 
8459
{
 
8460
 
 
8461
  ;
 
8462
  return 0;
 
8463
}
 
8464
_ACEOF
 
8465
rm -f conftest.$ac_objext conftest$ac_exeext
 
8466
if { (ac_try="$ac_link"
 
8467
case "(($ac_try" in
 
8468
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8469
  *) ac_try_echo=$ac_try;;
 
8470
esac
 
8471
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8472
  (eval "$ac_link") 2>conftest.er1
 
8473
  ac_status=$?
 
8474
  grep -v '^ *+' conftest.er1 >conftest.err
 
8475
  rm -f conftest.er1
 
8476
  cat conftest.err >&5
 
8477
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8478
  (exit $ac_status); } && {
 
8479
         test -z "$ac_c_werror_flag" ||
 
8480
         test ! -s conftest.err
 
8481
       } && test -s conftest$ac_exeext &&
 
8482
       $as_test_x conftest$ac_exeext; then
 
8483
 
 
8484
lt_aix_libpath_sed='
 
8485
    /Import File Strings/,/^$/ {
 
8486
        /^0/ {
 
8487
            s/^0  *\(.*\)$/\1/
 
8488
            p
 
8489
        }
 
8490
    }'
 
8491
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8492
# Check for a 64-bit object if we didn't find anything.
 
8493
if test -z "$aix_libpath"; then
 
8494
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8495
fi
 
8496
else
 
8497
  echo "$as_me: failed program was:" >&5
 
8498
sed 's/^/| /' conftest.$ac_ext >&5
 
8499
 
 
8500
 
 
8501
fi
 
8502
 
 
8503
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8504
      conftest$ac_exeext conftest.$ac_ext
 
8505
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
8506
 
 
8507
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8508
        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"
 
8509
       else
 
8510
        if test "$host_cpu" = ia64; then
 
8511
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
8512
          allow_undefined_flag="-z nodefs"
 
8513
          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"
 
8514
        else
 
8515
         # Determine the default libpath from the value encoded in an empty executable.
 
8516
         cat >conftest.$ac_ext <<_ACEOF
 
8517
/* confdefs.h.  */
 
8518
_ACEOF
 
8519
cat confdefs.h >>conftest.$ac_ext
 
8520
cat >>conftest.$ac_ext <<_ACEOF
 
8521
/* end confdefs.h.  */
 
8522
 
 
8523
int
 
8524
main ()
 
8525
{
 
8526
 
 
8527
  ;
 
8528
  return 0;
 
8529
}
 
8530
_ACEOF
 
8531
rm -f conftest.$ac_objext conftest$ac_exeext
 
8532
if { (ac_try="$ac_link"
 
8533
case "(($ac_try" in
 
8534
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8535
  *) ac_try_echo=$ac_try;;
 
8536
esac
 
8537
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8538
  (eval "$ac_link") 2>conftest.er1
 
8539
  ac_status=$?
 
8540
  grep -v '^ *+' conftest.er1 >conftest.err
 
8541
  rm -f conftest.er1
 
8542
  cat conftest.err >&5
 
8543
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8544
  (exit $ac_status); } && {
 
8545
         test -z "$ac_c_werror_flag" ||
 
8546
         test ! -s conftest.err
 
8547
       } && test -s conftest$ac_exeext &&
 
8548
       $as_test_x conftest$ac_exeext; then
 
8549
 
 
8550
lt_aix_libpath_sed='
 
8551
    /Import File Strings/,/^$/ {
 
8552
        /^0/ {
 
8553
            s/^0  *\(.*\)$/\1/
 
8554
            p
 
8555
        }
 
8556
    }'
 
8557
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8558
# Check for a 64-bit object if we didn't find anything.
 
8559
if test -z "$aix_libpath"; then
 
8560
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
8561
fi
 
8562
else
 
8563
  echo "$as_me: failed program was:" >&5
 
8564
sed 's/^/| /' conftest.$ac_ext >&5
 
8565
 
 
8566
 
 
8567
fi
 
8568
 
 
8569
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8570
      conftest$ac_exeext conftest.$ac_ext
 
8571
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
8572
 
 
8573
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8574
          # Warning - without using the other run time loading flags,
 
8575
          # -berok will link without error, but may produce a broken library.
 
8576
          no_undefined_flag=' ${wl}-bernotok'
 
8577
          allow_undefined_flag=' ${wl}-berok'
 
8578
          # Exported symbols can be pulled into shared objects from archives
 
8579
          whole_archive_flag_spec='$convenience'
 
8580
          archive_cmds_need_lc=yes
 
8581
          # This is similar to how AIX traditionally builds its shared libraries.
 
8582
          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'
 
8583
        fi
 
8584
      fi
 
8585
      ;;
 
8586
 
 
8587
    amigaos*)
 
8588
      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)'
 
8589
      hardcode_libdir_flag_spec='-L$libdir'
 
8590
      hardcode_minus_L=yes
 
8591
      # see comment about different semantics on the GNU ld section
 
8592
      ld_shlibs=no
 
8593
      ;;
 
8594
 
 
8595
    bsdi[45]*)
 
8596
      export_dynamic_flag_spec=-rdynamic
 
8597
      ;;
 
8598
 
 
8599
    cygwin* | mingw* | pw32*)
 
8600
      # When not using gcc, we currently assume that we are using
 
8601
      # Microsoft Visual C++.
 
8602
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
8603
      # no search path for DLLs.
 
8604
      hardcode_libdir_flag_spec=' '
 
8605
      allow_undefined_flag=unsupported
 
8606
      # Tell ltmain to make .lib files, not .a files.
 
8607
      libext=lib
 
8608
      # Tell ltmain to make .dll files, not .so files.
 
8609
      shrext_cmds=".dll"
 
8610
      # FIXME: Setting linknames here is a bad hack.
 
8611
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
8612
      # The linker will automatically build a .lib file if we build a DLL.
 
8613
      old_archive_From_new_cmds='true'
 
8614
      # FIXME: Should let the user specify the lib program.
 
8615
      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
8616
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
8617
      enable_shared_with_static_runtimes=yes
 
8618
      ;;
 
8619
 
 
8620
    darwin* | rhapsody*)
 
8621
      case $host_os in
 
8622
        rhapsody* | darwin1.[012])
 
8623
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
 
8624
         ;;
 
8625
       *) # Darwin 1.3 on
 
8626
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
8627
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
8628
         else
 
8629
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
8630
             10.[012])
 
8631
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
8632
               ;;
 
8633
             10.*)
 
8634
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
 
8635
               ;;
 
8636
           esac
 
8637
         fi
 
8638
         ;;
 
8639
      esac
 
8640
      archive_cmds_need_lc=no
 
8641
      hardcode_direct=no
 
8642
      hardcode_automatic=yes
 
8643
      hardcode_shlibpath_var=unsupported
 
8644
      whole_archive_flag_spec=''
 
8645
      link_all_deplibs=yes
 
8646
    if test "$GCC" = yes ; then
 
8647
        output_verbose_link_cmd='echo'
 
8648
        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
8649
        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
8650
        archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
8651
        module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
 
8652
    else
 
8653
      case $cc_basename in
 
8654
        xlc*)
 
8655
         output_verbose_link_cmd='echo'
 
8656
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
8657
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
8658
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
8659
         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
8660
          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}'
 
8661
          ;;
 
8662
       *)
 
8663
         ld_shlibs=no
 
8664
          ;;
 
8665
      esac
 
8666
    fi
 
8667
      ;;
 
8668
 
 
8669
    dgux*)
 
8670
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8671
      hardcode_libdir_flag_spec='-L$libdir'
 
8672
      hardcode_shlibpath_var=no
 
8673
      ;;
 
8674
 
 
8675
    freebsd1*)
 
8676
      ld_shlibs=no
 
8677
      ;;
 
8678
 
 
8679
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
8680
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
8681
    # does not break anything, and helps significantly (at the cost of a little
 
8682
    # extra space).
 
8683
    freebsd2.2*)
 
8684
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
8685
      hardcode_libdir_flag_spec='-R$libdir'
 
8686
      hardcode_direct=yes
 
8687
      hardcode_shlibpath_var=no
 
8688
      ;;
 
8689
 
 
8690
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
8691
    freebsd2*)
 
8692
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8693
      hardcode_direct=yes
 
8694
      hardcode_minus_L=yes
 
8695
      hardcode_shlibpath_var=no
 
8696
      ;;
 
8697
 
 
8698
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
8699
    freebsd* | dragonfly*)
 
8700
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
8701
      hardcode_libdir_flag_spec='-R$libdir'
 
8702
      hardcode_direct=yes
 
8703
      hardcode_shlibpath_var=no
 
8704
      ;;
 
8705
 
 
8706
    hpux9*)
 
8707
      if test "$GCC" = yes; then
 
8708
        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'
 
8709
      else
 
8710
        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'
 
8711
      fi
 
8712
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8713
      hardcode_libdir_separator=:
 
8714
      hardcode_direct=yes
 
8715
 
 
8716
      # hardcode_minus_L: Not really in the search PATH,
 
8717
      # but as the default location of the library.
 
8718
      hardcode_minus_L=yes
 
8719
      export_dynamic_flag_spec='${wl}-E'
 
8720
      ;;
 
8721
 
 
8722
    hpux10*)
 
8723
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
8724
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8725
      else
 
8726
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
8727
      fi
 
8728
      if test "$with_gnu_ld" = no; then
 
8729
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8730
        hardcode_libdir_separator=:
 
8731
 
 
8732
        hardcode_direct=yes
 
8733
        export_dynamic_flag_spec='${wl}-E'
 
8734
 
 
8735
        # hardcode_minus_L: Not really in the search PATH,
 
8736
        # but as the default location of the library.
 
8737
        hardcode_minus_L=yes
 
8738
      fi
 
8739
      ;;
 
8740
 
 
8741
    hpux11*)
 
8742
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
8743
        case $host_cpu in
 
8744
        hppa*64*)
 
8745
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8746
          ;;
 
8747
        ia64*)
 
8748
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
8749
          ;;
 
8750
        *)
 
8751
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8752
          ;;
 
8753
        esac
 
8754
      else
 
8755
        case $host_cpu in
 
8756
        hppa*64*)
 
8757
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8758
          ;;
 
8759
        ia64*)
 
8760
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
8761
          ;;
 
8762
        *)
 
8763
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8764
          ;;
 
8765
        esac
 
8766
      fi
 
8767
      if test "$with_gnu_ld" = no; then
 
8768
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8769
        hardcode_libdir_separator=:
 
8770
 
 
8771
        case $host_cpu in
 
8772
        hppa*64*|ia64*)
 
8773
          hardcode_libdir_flag_spec_ld='+b $libdir'
 
8774
          hardcode_direct=no
 
8775
          hardcode_shlibpath_var=no
 
8776
          ;;
 
8777
        *)
 
8778
          hardcode_direct=yes
 
8779
          export_dynamic_flag_spec='${wl}-E'
 
8780
 
 
8781
          # hardcode_minus_L: Not really in the search PATH,
 
8782
          # but as the default location of the library.
 
8783
          hardcode_minus_L=yes
 
8784
          ;;
 
8785
        esac
 
8786
      fi
 
8787
      ;;
 
8788
 
 
8789
    irix5* | irix6* | nonstopux*)
 
8790
      if test "$GCC" = yes; then
 
8791
        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'
 
8792
      else
 
8793
        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'
 
8794
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
8795
      fi
 
8796
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8797
      hardcode_libdir_separator=:
 
8798
      link_all_deplibs=yes
 
8799
      ;;
 
8800
 
 
8801
    netbsd*)
 
8802
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
8803
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
8804
      else
 
8805
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
8806
      fi
 
8807
      hardcode_libdir_flag_spec='-R$libdir'
 
8808
      hardcode_direct=yes
 
8809
      hardcode_shlibpath_var=no
 
8810
      ;;
 
8811
 
 
8812
    newsos6)
 
8813
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8814
      hardcode_direct=yes
 
8815
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8816
      hardcode_libdir_separator=:
 
8817
      hardcode_shlibpath_var=no
 
8818
      ;;
 
8819
 
 
8820
    openbsd*)
 
8821
      if test -f /usr/libexec/ld.so; then
 
8822
        hardcode_direct=yes
 
8823
        hardcode_shlibpath_var=no
 
8824
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
8825
          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
8826
          archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
8827
          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8828
          export_dynamic_flag_spec='${wl}-E'
 
8829
        else
 
8830
          case $host_os in
 
8831
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
8832
             archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8833
             hardcode_libdir_flag_spec='-R$libdir'
 
8834
             ;;
 
8835
           *)
 
8836
             archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
8837
             hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8838
             ;;
 
8839
          esac
 
8840
        fi
 
8841
      else
 
8842
        ld_shlibs=no
 
8843
      fi
 
8844
      ;;
 
8845
 
 
8846
    os2*)
 
8847
      hardcode_libdir_flag_spec='-L$libdir'
 
8848
      hardcode_minus_L=yes
 
8849
      allow_undefined_flag=unsupported
 
8850
      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'
 
8851
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
8852
      ;;
 
8853
 
 
8854
    osf3*)
 
8855
      if test "$GCC" = yes; then
 
8856
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
8857
        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'
 
8858
      else
 
8859
        allow_undefined_flag=' -expect_unresolved \*'
 
8860
        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'
 
8861
      fi
 
8862
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8863
      hardcode_libdir_separator=:
 
8864
      ;;
 
8865
 
 
8866
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
8867
      if test "$GCC" = yes; then
 
8868
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
8869
        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'
 
8870
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8871
      else
 
8872
        allow_undefined_flag=' -expect_unresolved \*'
 
8873
        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'
 
8874
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
8875
        $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'
 
8876
 
 
8877
        # Both c and cxx compiler support -rpath directly
 
8878
        hardcode_libdir_flag_spec='-rpath $libdir'
 
8879
      fi
 
8880
      hardcode_libdir_separator=:
 
8881
      ;;
 
8882
 
 
8883
    solaris*)
 
8884
      no_undefined_flag=' -z text'
 
8885
      if test "$GCC" = yes; then
 
8886
        wlarc='${wl}'
 
8887
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8888
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
8889
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
8890
      else
 
8891
        wlarc=''
 
8892
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8893
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
8894
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
8895
      fi
 
8896
      hardcode_libdir_flag_spec='-R$libdir'
 
8897
      hardcode_shlibpath_var=no
 
8898
      case $host_os in
 
8899
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
8900
      *)
 
8901
        # The compiler driver will combine and reorder linker options,
 
8902
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
8903
        # but is careful enough not to reorder.
 
8904
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
8905
        if test "$GCC" = yes; then
 
8906
          whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
8907
        else
 
8908
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
 
8909
        fi
 
8910
        ;;
 
8911
      esac
 
8912
      link_all_deplibs=yes
 
8913
      ;;
 
8914
 
 
8915
    sunos4*)
 
8916
      if test "x$host_vendor" = xsequent; then
 
8917
        # Use $CC to link under sequent, because it throws in some extra .o
 
8918
        # files that make .init and .fini sections work.
 
8919
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
8920
      else
 
8921
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
8922
      fi
 
8923
      hardcode_libdir_flag_spec='-L$libdir'
 
8924
      hardcode_direct=yes
 
8925
      hardcode_minus_L=yes
 
8926
      hardcode_shlibpath_var=no
 
8927
      ;;
 
8928
 
 
8929
    sysv4)
 
8930
      case $host_vendor in
 
8931
        sni)
 
8932
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8933
          hardcode_direct=yes # is this really true???
 
8934
        ;;
 
8935
        siemens)
 
8936
          ## LD is ld it makes a PLAMLIB
 
8937
          ## CC just makes a GrossModule.
 
8938
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
8939
          reload_cmds='$CC -r -o $output$reload_objs'
 
8940
          hardcode_direct=no
 
8941
        ;;
 
8942
        motorola)
 
8943
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8944
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
8945
        ;;
 
8946
      esac
 
8947
      runpath_var='LD_RUN_PATH'
 
8948
      hardcode_shlibpath_var=no
 
8949
      ;;
 
8950
 
 
8951
    sysv4.3*)
 
8952
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8953
      hardcode_shlibpath_var=no
 
8954
      export_dynamic_flag_spec='-Bexport'
 
8955
      ;;
 
8956
 
 
8957
    sysv4*MP*)
 
8958
      if test -d /usr/nec; then
 
8959
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8960
        hardcode_shlibpath_var=no
 
8961
        runpath_var=LD_RUN_PATH
 
8962
        hardcode_runpath_var=yes
 
8963
        ld_shlibs=yes
 
8964
      fi
 
8965
      ;;
 
8966
 
 
8967
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
8968
      no_undefined_flag='${wl}-z,text'
 
8969
      archive_cmds_need_lc=no
 
8970
      hardcode_shlibpath_var=no
 
8971
      runpath_var='LD_RUN_PATH'
 
8972
 
 
8973
      if test "$GCC" = yes; then
 
8974
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8975
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8976
      else
 
8977
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8978
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8979
      fi
 
8980
      ;;
 
8981
 
 
8982
    sysv5* | sco3.2v5* | sco5v6*)
 
8983
      # Note: We can NOT use -z defs as we might desire, because we do not
 
8984
      # link with -lc, and that would cause any symbols used from libc to
 
8985
      # always be unresolved, which means just about no library would
 
8986
      # ever link correctly.  If we're not using GNU ld we use -z text
 
8987
      # though, which does catch some bad symbols but isn't as heavy-handed
 
8988
      # as -z defs.
 
8989
      no_undefined_flag='${wl}-z,text'
 
8990
      allow_undefined_flag='${wl}-z,nodefs'
 
8991
      archive_cmds_need_lc=no
 
8992
      hardcode_shlibpath_var=no
 
8993
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
8994
      hardcode_libdir_separator=':'
 
8995
      link_all_deplibs=yes
 
8996
      export_dynamic_flag_spec='${wl}-Bexport'
 
8997
      runpath_var='LD_RUN_PATH'
 
8998
 
 
8999
      if test "$GCC" = yes; then
 
9000
        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9001
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9002
      else
 
9003
        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9004
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9005
      fi
 
9006
      ;;
 
9007
 
 
9008
    uts4*)
 
9009
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9010
      hardcode_libdir_flag_spec='-L$libdir'
 
9011
      hardcode_shlibpath_var=no
 
9012
      ;;
 
9013
 
 
9014
    *)
 
9015
      ld_shlibs=no
 
9016
      ;;
 
9017
    esac
 
9018
  fi
 
9019
 
 
9020
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
9021
echo "${ECHO_T}$ld_shlibs" >&6; }
 
9022
test "$ld_shlibs" = no && can_build_shared=no
 
9023
 
 
9024
#
 
9025
# Do we need to explicitly link libc?
 
9026
#
 
9027
case "x$archive_cmds_need_lc" in
 
9028
x|xyes)
 
9029
  # Assume -lc should be added
 
9030
  archive_cmds_need_lc=yes
 
9031
 
 
9032
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
9033
    case $archive_cmds in
 
9034
    *'~'*)
 
9035
      # FIXME: we may have to deal with multi-command sequences.
 
9036
      ;;
 
9037
    '$CC '*)
 
9038
      # Test whether the compiler implicitly links with -lc since on some
 
9039
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
9040
      # to ld, don't add -lc before -lgcc.
 
9041
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
9042
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
9043
      $rm conftest*
 
9044
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9045
 
 
9046
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9047
  (eval $ac_compile) 2>&5
 
9048
  ac_status=$?
 
9049
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9050
  (exit $ac_status); } 2>conftest.err; then
 
9051
        soname=conftest
 
9052
        lib=conftest
 
9053
        libobjs=conftest.$ac_objext
 
9054
        deplibs=
 
9055
        wl=$lt_prog_compiler_wl
 
9056
        pic_flag=$lt_prog_compiler_pic
 
9057
        compiler_flags=-v
 
9058
        linker_flags=-v
 
9059
        verstring=
 
9060
        output_objdir=.
 
9061
        libname=conftest
 
9062
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
9063
        allow_undefined_flag=
 
9064
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
9065
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
9066
  ac_status=$?
 
9067
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9068
  (exit $ac_status); }
 
9069
        then
 
9070
          archive_cmds_need_lc=no
 
9071
        else
 
9072
          archive_cmds_need_lc=yes
 
9073
        fi
 
9074
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
9075
      else
 
9076
        cat conftest.err 1>&5
 
9077
      fi
 
9078
      $rm conftest*
 
9079
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
9080
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
 
9081
      ;;
 
9082
    esac
 
9083
  fi
 
9084
  ;;
 
9085
esac
 
9086
 
 
9087
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
9088
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
9089
library_names_spec=
 
9090
libname_spec='lib$name'
 
9091
soname_spec=
 
9092
shrext_cmds=".so"
 
9093
postinstall_cmds=
 
9094
postuninstall_cmds=
 
9095
finish_cmds=
 
9096
finish_eval=
 
9097
shlibpath_var=
 
9098
shlibpath_overrides_runpath=unknown
 
9099
version_type=none
 
9100
dynamic_linker="$host_os ld.so"
 
9101
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
9102
 
 
9103
if test "$GCC" = yes; then
 
9104
  case $host_os in
 
9105
    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
 
9106
    *) lt_awk_arg="/^libraries:/" ;;
 
9107
  esac
 
9108
  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
9109
  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
 
9110
    # if the path contains ";" then we assume it to be the separator
 
9111
    # otherwise default to the standard path separator (i.e. ":") - it is
 
9112
    # assumed that no part of a normal pathname contains ";" but that should
 
9113
    # okay in the real world where ";" in dirpaths is itself problematic.
 
9114
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
 
9115
  else
 
9116
    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
9117
  fi
 
9118
  # Ok, now we have the path, separated by spaces, we can step through it
 
9119
  # and add multilib dir if necessary.
 
9120
  lt_tmp_lt_search_path_spec=
 
9121
  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
 
9122
  for lt_sys_path in $lt_search_path_spec; do
 
9123
    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
 
9124
      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
 
9125
    else
 
9126
      test -d "$lt_sys_path" && \
 
9127
        lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
 
9128
    fi
 
9129
  done
 
9130
  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
 
9131
BEGIN {RS=" "; FS="/|\n";} {
 
9132
  lt_foo="";
 
9133
  lt_count=0;
 
9134
  for (lt_i = NF; lt_i > 0; lt_i--) {
 
9135
    if ($lt_i != "" && $lt_i != ".") {
 
9136
      if ($lt_i == "..") {
 
9137
        lt_count++;
 
9138
      } else {
 
9139
        if (lt_count == 0) {
 
9140
          lt_foo="/" $lt_i lt_foo;
 
9141
        } else {
 
9142
          lt_count--;
 
9143
        }
 
9144
      }
 
9145
    }
 
9146
  }
 
9147
  if (lt_foo != "") { lt_freq[lt_foo]++; }
 
9148
  if (lt_freq[lt_foo] == 1) { print lt_foo; }
 
9149
}'`
 
9150
  sys_lib_search_path_spec=`echo $lt_search_path_spec`
 
9151
else
 
9152
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
9153
fi
 
9154
need_lib_prefix=unknown
 
9155
hardcode_into_libs=no
 
9156
 
 
9157
# when you set need_version to no, make sure it does not cause -set_version
 
9158
# flags to be left without arguments
 
9159
need_version=unknown
 
9160
 
 
9161
case $host_os in
 
9162
aix3*)
 
9163
  version_type=linux
 
9164
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
9165
  shlibpath_var=LIBPATH
 
9166
 
 
9167
  # AIX 3 has no versioning support, so we append a major version to the name.
 
9168
  soname_spec='${libname}${release}${shared_ext}$major'
 
9169
  ;;
 
9170
 
 
9171
aix[4-9]*)
 
9172
  version_type=linux
 
9173
  need_lib_prefix=no
 
9174
  need_version=no
 
9175
  hardcode_into_libs=yes
 
9176
  if test "$host_cpu" = ia64; then
 
9177
    # AIX 5 supports IA64
 
9178
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
9179
    shlibpath_var=LD_LIBRARY_PATH
 
9180
  else
 
9181
    # With GCC up to 2.95.x, collect2 would create an import file
 
9182
    # for dependence libraries.  The import file would start with
 
9183
    # the line `#! .'.  This would cause the generated library to
 
9184
    # depend on `.', always an invalid library.  This was fixed in
 
9185
    # development snapshots of GCC prior to 3.0.
 
9186
    case $host_os in
 
9187
      aix4 | aix4.[01] | aix4.[01].*)
 
9188
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
9189
           echo ' yes '
 
9190
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
9191
        :
 
9192
      else
 
9193
        can_build_shared=no
 
9194
      fi
 
9195
      ;;
 
9196
    esac
 
9197
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
9198
    # soname into executable. Probably we can add versioning support to
 
9199
    # collect2, so additional links can be useful in future.
 
9200
    if test "$aix_use_runtimelinking" = yes; then
 
9201
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
9202
      # instead of lib<name>.a to let people know that these are not
 
9203
      # typical AIX shared libraries.
 
9204
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9205
    else
 
9206
      # We preserve .a as extension for shared libraries through AIX4.2
 
9207
      # and later when we are not doing run time linking.
 
9208
      library_names_spec='${libname}${release}.a $libname.a'
 
9209
      soname_spec='${libname}${release}${shared_ext}$major'
 
9210
    fi
 
9211
    shlibpath_var=LIBPATH
 
9212
  fi
 
9213
  ;;
 
9214
 
 
9215
amigaos*)
 
9216
  library_names_spec='$libname.ixlibrary $libname.a'
 
9217
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
9218
  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'
 
9219
  ;;
 
9220
 
 
9221
beos*)
 
9222
  library_names_spec='${libname}${shared_ext}'
 
9223
  dynamic_linker="$host_os ld.so"
 
9224
  shlibpath_var=LIBRARY_PATH
 
9225
  ;;
 
9226
 
 
9227
bsdi[45]*)
 
9228
  version_type=linux
 
9229
  need_version=no
 
9230
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9231
  soname_spec='${libname}${release}${shared_ext}$major'
 
9232
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
9233
  shlibpath_var=LD_LIBRARY_PATH
 
9234
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
9235
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
9236
  # the default ld.so.conf also contains /usr/contrib/lib and
 
9237
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
9238
  # libtool to hard-code these into programs
 
9239
  ;;
 
9240
 
 
9241
cygwin* | mingw* | pw32*)
 
9242
  version_type=windows
 
9243
  shrext_cmds=".dll"
 
9244
  need_version=no
 
9245
  need_lib_prefix=no
 
9246
 
 
9247
  case $GCC,$host_os in
 
9248
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
9249
    library_names_spec='$libname.dll.a'
 
9250
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
9251
    postinstall_cmds='base_file=`basename \${file}`~
 
9252
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
9253
      dldir=$destdir/`dirname \$dlpath`~
 
9254
      test -d \$dldir || mkdir -p \$dldir~
 
9255
      $install_prog $dir/$dlname \$dldir/$dlname~
 
9256
      chmod a+x \$dldir/$dlname'
 
9257
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
9258
      dlpath=$dir/\$dldll~
 
9259
       $rm \$dlpath'
 
9260
    shlibpath_overrides_runpath=yes
 
9261
 
 
9262
    case $host_os in
 
9263
    cygwin*)
 
9264
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
9265
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9266
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
9267
      ;;
 
9268
    mingw*)
 
9269
      # MinGW DLLs use traditional 'lib' prefix
 
9270
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9271
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
9272
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
9273
        # It is most probably a Windows format PATH printed by
 
9274
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
9275
        # path with ; separators, and with drive letters. We can handle the
 
9276
        # drive letters (cygwin fileutils understands them), so leave them,
 
9277
        # especially as we might pass files found there to a mingw objdump,
 
9278
        # which wouldn't understand a cygwinified path. Ahh.
 
9279
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
9280
      else
 
9281
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
9282
      fi
 
9283
      ;;
 
9284
    pw32*)
 
9285
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
9286
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9287
      ;;
 
9288
    esac
 
9289
    ;;
 
9290
 
 
9291
  *)
 
9292
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
9293
    ;;
 
9294
  esac
 
9295
  dynamic_linker='Win32 ld.exe'
 
9296
  # FIXME: first we should search . and the directory the executable is in
 
9297
  shlibpath_var=PATH
 
9298
  ;;
 
9299
 
 
9300
darwin* | rhapsody*)
 
9301
  dynamic_linker="$host_os dyld"
 
9302
  version_type=darwin
 
9303
  need_lib_prefix=no
 
9304
  need_version=no
 
9305
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
9306
  soname_spec='${libname}${release}${major}$shared_ext'
 
9307
  shlibpath_overrides_runpath=yes
 
9308
  shlibpath_var=DYLD_LIBRARY_PATH
 
9309
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
9310
 
 
9311
  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
 
9312
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
9313
  ;;
 
9314
 
 
9315
dgux*)
 
9316
  version_type=linux
 
9317
  need_lib_prefix=no
 
9318
  need_version=no
 
9319
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
9320
  soname_spec='${libname}${release}${shared_ext}$major'
 
9321
  shlibpath_var=LD_LIBRARY_PATH
 
9322
  ;;
 
9323
 
 
9324
freebsd1*)
 
9325
  dynamic_linker=no
 
9326
  ;;
 
9327
 
 
9328
freebsd* | dragonfly*)
 
9329
  # DragonFly does not have aout.  When/if they implement a new
 
9330
  # versioning mechanism, adjust this.
 
9331
  if test -x /usr/bin/objformat; then
 
9332
    objformat=`/usr/bin/objformat`
 
9333
  else
 
9334
    case $host_os in
 
9335
    freebsd[123]*) objformat=aout ;;
 
9336
    *) objformat=elf ;;
 
9337
    esac
 
9338
  fi
 
9339
  # Handle Gentoo/FreeBSD as it was Linux
 
9340
  case $host_vendor in
 
9341
    gentoo)
 
9342
      version_type=linux ;;
 
9343
    *)
 
9344
      version_type=freebsd-$objformat ;;
 
9345
  esac
 
9346
 
 
9347
  case $version_type in
 
9348
    freebsd-elf*)
 
9349
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9350
      need_version=no
 
9351
      need_lib_prefix=no
 
9352
      ;;
 
9353
    freebsd-*)
 
9354
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
9355
      need_version=yes
 
9356
      ;;
 
9357
    linux)
 
9358
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9359
      soname_spec='${libname}${release}${shared_ext}$major'
 
9360
      need_lib_prefix=no
 
9361
      need_version=no
 
9362
      ;;
 
9363
  esac
 
9364
  shlibpath_var=LD_LIBRARY_PATH
 
9365
  case $host_os in
 
9366
  freebsd2*)
 
9367
    shlibpath_overrides_runpath=yes
 
9368
    ;;
 
9369
  freebsd3.[01]* | freebsdelf3.[01]*)
 
9370
    shlibpath_overrides_runpath=yes
 
9371
    hardcode_into_libs=yes
 
9372
    ;;
 
9373
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
9374
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
9375
    shlibpath_overrides_runpath=no
 
9376
    hardcode_into_libs=yes
 
9377
    ;;
 
9378
  *) # from 4.6 on, and DragonFly
 
9379
    shlibpath_overrides_runpath=yes
 
9380
    hardcode_into_libs=yes
 
9381
    ;;
 
9382
  esac
 
9383
  ;;
 
9384
 
 
9385
gnu*)
 
9386
  version_type=linux
 
9387
  need_lib_prefix=no
 
9388
  need_version=no
 
9389
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
9390
  soname_spec='${libname}${release}${shared_ext}$major'
 
9391
  shlibpath_var=LD_LIBRARY_PATH
 
9392
  hardcode_into_libs=yes
 
9393
  ;;
 
9394
 
 
9395
hpux9* | hpux10* | hpux11*)
 
9396
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
9397
  # link against other versions.
 
9398
  version_type=sunos
 
9399
  need_lib_prefix=no
 
9400
  need_version=no
 
9401
  case $host_cpu in
 
9402
  ia64*)
 
9403
    shrext_cmds='.so'
 
9404
    hardcode_into_libs=yes
 
9405
    dynamic_linker="$host_os dld.so"
 
9406
    shlibpath_var=LD_LIBRARY_PATH
 
9407
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
9408
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9409
    soname_spec='${libname}${release}${shared_ext}$major'
 
9410
    if test "X$HPUX_IA64_MODE" = X32; then
 
9411
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
9412
    else
 
9413
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
9414
    fi
 
9415
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
9416
    ;;
 
9417
   hppa*64*)
 
9418
     shrext_cmds='.sl'
 
9419
     hardcode_into_libs=yes
 
9420
     dynamic_linker="$host_os dld.sl"
 
9421
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
9422
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
9423
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9424
     soname_spec='${libname}${release}${shared_ext}$major'
 
9425
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
9426
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
9427
     ;;
 
9428
   *)
 
9429
    shrext_cmds='.sl'
 
9430
    dynamic_linker="$host_os dld.sl"
 
9431
    shlibpath_var=SHLIB_PATH
 
9432
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
9433
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9434
    soname_spec='${libname}${release}${shared_ext}$major'
 
9435
    ;;
 
9436
  esac
 
9437
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
9438
  postinstall_cmds='chmod 555 $lib'
 
9439
  ;;
 
9440
 
 
9441
interix[3-9]*)
 
9442
  version_type=linux
 
9443
  need_lib_prefix=no
 
9444
  need_version=no
 
9445
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9446
  soname_spec='${libname}${release}${shared_ext}$major'
 
9447
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
9448
  shlibpath_var=LD_LIBRARY_PATH
 
9449
  shlibpath_overrides_runpath=no
 
9450
  hardcode_into_libs=yes
 
9451
  ;;
 
9452
 
 
9453
irix5* | irix6* | nonstopux*)
 
9454
  case $host_os in
 
9455
    nonstopux*) version_type=nonstopux ;;
 
9456
    *)
 
9457
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
9458
                version_type=linux
 
9459
        else
 
9460
                version_type=irix
 
9461
        fi ;;
 
9462
  esac
 
9463
  need_lib_prefix=no
 
9464
  need_version=no
 
9465
  soname_spec='${libname}${release}${shared_ext}$major'
 
9466
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9467
  case $host_os in
 
9468
  irix5* | nonstopux*)
 
9469
    libsuff= shlibsuff=
 
9470
    ;;
 
9471
  *)
 
9472
    case $LD in # libtool.m4 will add one of these switches to LD
 
9473
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
9474
      libsuff= shlibsuff= libmagic=32-bit;;
 
9475
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
9476
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
9477
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
9478
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
9479
    *) libsuff= shlibsuff= libmagic=never-match;;
 
9480
    esac
 
9481
    ;;
 
9482
  esac
 
9483
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
9484
  shlibpath_overrides_runpath=no
 
9485
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
9486
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
9487
  hardcode_into_libs=yes
 
9488
  ;;
 
9489
 
 
9490
# No shared lib support for Linux oldld, aout, or coff.
 
9491
linux*oldld* | linux*aout* | linux*coff*)
 
9492
  dynamic_linker=no
 
9493
  ;;
 
9494
 
 
9495
# This must be Linux ELF.
 
9496
linux* | k*bsd*-gnu)
 
9497
  version_type=linux
 
9498
  need_lib_prefix=no
 
9499
  need_version=no
 
9500
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9501
  soname_spec='${libname}${release}${shared_ext}$major'
 
9502
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
9503
  shlibpath_var=LD_LIBRARY_PATH
 
9504
  shlibpath_overrides_runpath=no
 
9505
  # This implies no fast_install, which is unacceptable.
 
9506
  # Some rework will be needed to allow for fast_install
 
9507
  # before this can be enabled.
 
9508
  hardcode_into_libs=yes
 
9509
 
 
9510
  # Append ld.so.conf contents to the search path
 
9511
  if test -f /etc/ld.so.conf; then
 
9512
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
9513
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
9514
  fi
 
9515
 
 
9516
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
9517
  # powerpc, because MkLinux only supported shared libraries with the
 
9518
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
9519
  # most powerpc-linux boxes support dynamic linking these days and
 
9520
  # people can always --disable-shared, the test was removed, and we
 
9521
  # assume the GNU/Linux dynamic linker is in use.
 
9522
  dynamic_linker='GNU/Linux ld.so'
 
9523
  ;;
 
9524
 
 
9525
netbsd*)
 
9526
  version_type=sunos
 
9527
  need_lib_prefix=no
 
9528
  need_version=no
 
9529
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
9530
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9531
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
9532
    dynamic_linker='NetBSD (a.out) ld.so'
 
9533
  else
 
9534
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9535
    soname_spec='${libname}${release}${shared_ext}$major'
 
9536
    dynamic_linker='NetBSD ld.elf_so'
 
9537
  fi
 
9538
  shlibpath_var=LD_LIBRARY_PATH
 
9539
  shlibpath_overrides_runpath=yes
 
9540
  hardcode_into_libs=yes
 
9541
  ;;
 
9542
 
 
9543
newsos6)
 
9544
  version_type=linux
 
9545
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9546
  shlibpath_var=LD_LIBRARY_PATH
 
9547
  shlibpath_overrides_runpath=yes
 
9548
  ;;
 
9549
 
 
9550
nto-qnx*)
 
9551
  version_type=linux
 
9552
  need_lib_prefix=no
 
9553
  need_version=no
 
9554
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9555
  soname_spec='${libname}${release}${shared_ext}$major'
 
9556
  shlibpath_var=LD_LIBRARY_PATH
 
9557
  shlibpath_overrides_runpath=yes
 
9558
  ;;
 
9559
 
 
9560
openbsd*)
 
9561
  version_type=sunos
 
9562
  sys_lib_dlsearch_path_spec="/usr/lib"
 
9563
  need_lib_prefix=no
 
9564
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
9565
  case $host_os in
 
9566
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
9567
    *)                         need_version=no  ;;
 
9568
  esac
 
9569
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9570
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
9571
  shlibpath_var=LD_LIBRARY_PATH
 
9572
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9573
    case $host_os in
 
9574
      openbsd2.[89] | openbsd2.[89].*)
 
9575
        shlibpath_overrides_runpath=no
 
9576
        ;;
 
9577
      *)
 
9578
        shlibpath_overrides_runpath=yes
 
9579
        ;;
 
9580
      esac
 
9581
  else
 
9582
    shlibpath_overrides_runpath=yes
 
9583
  fi
 
9584
  ;;
 
9585
 
 
9586
os2*)
 
9587
  libname_spec='$name'
 
9588
  shrext_cmds=".dll"
 
9589
  need_lib_prefix=no
 
9590
  library_names_spec='$libname${shared_ext} $libname.a'
 
9591
  dynamic_linker='OS/2 ld.exe'
 
9592
  shlibpath_var=LIBPATH
 
9593
  ;;
 
9594
 
 
9595
osf3* | osf4* | osf5*)
 
9596
  version_type=osf
 
9597
  need_lib_prefix=no
 
9598
  need_version=no
 
9599
  soname_spec='${libname}${release}${shared_ext}$major'
 
9600
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9601
  shlibpath_var=LD_LIBRARY_PATH
 
9602
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
9603
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
9604
  ;;
 
9605
 
 
9606
rdos*)
 
9607
  dynamic_linker=no
 
9608
  ;;
 
9609
 
 
9610
solaris*)
 
9611
  version_type=linux
 
9612
  need_lib_prefix=no
 
9613
  need_version=no
 
9614
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9615
  soname_spec='${libname}${release}${shared_ext}$major'
 
9616
  shlibpath_var=LD_LIBRARY_PATH
 
9617
  shlibpath_overrides_runpath=yes
 
9618
  hardcode_into_libs=yes
 
9619
  # ldd complains unless libraries are executable
 
9620
  postinstall_cmds='chmod +x $lib'
 
9621
  ;;
 
9622
 
 
9623
sunos4*)
 
9624
  version_type=sunos
 
9625
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9626
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
9627
  shlibpath_var=LD_LIBRARY_PATH
 
9628
  shlibpath_overrides_runpath=yes
 
9629
  if test "$with_gnu_ld" = yes; then
 
9630
    need_lib_prefix=no
 
9631
  fi
 
9632
  need_version=yes
 
9633
  ;;
 
9634
 
 
9635
sysv4 | sysv4.3*)
 
9636
  version_type=linux
 
9637
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9638
  soname_spec='${libname}${release}${shared_ext}$major'
 
9639
  shlibpath_var=LD_LIBRARY_PATH
 
9640
  case $host_vendor in
 
9641
    sni)
 
9642
      shlibpath_overrides_runpath=no
 
9643
      need_lib_prefix=no
 
9644
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
9645
      runpath_var=LD_RUN_PATH
 
9646
      ;;
 
9647
    siemens)
 
9648
      need_lib_prefix=no
 
9649
      ;;
 
9650
    motorola)
 
9651
      need_lib_prefix=no
 
9652
      need_version=no
 
9653
      shlibpath_overrides_runpath=no
 
9654
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
9655
      ;;
 
9656
  esac
 
9657
  ;;
 
9658
 
 
9659
sysv4*MP*)
 
9660
  if test -d /usr/nec ;then
 
9661
    version_type=linux
 
9662
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
9663
    soname_spec='$libname${shared_ext}.$major'
 
9664
    shlibpath_var=LD_LIBRARY_PATH
 
9665
  fi
 
9666
  ;;
 
9667
 
 
9668
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
9669
  version_type=freebsd-elf
 
9670
  need_lib_prefix=no
 
9671
  need_version=no
 
9672
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9673
  soname_spec='${libname}${release}${shared_ext}$major'
 
9674
  shlibpath_var=LD_LIBRARY_PATH
 
9675
  hardcode_into_libs=yes
 
9676
  if test "$with_gnu_ld" = yes; then
 
9677
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
9678
    shlibpath_overrides_runpath=no
 
9679
  else
 
9680
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
9681
    shlibpath_overrides_runpath=yes
 
9682
    case $host_os in
 
9683
      sco3.2v5*)
 
9684
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
9685
        ;;
 
9686
    esac
 
9687
  fi
 
9688
  sys_lib_dlsearch_path_spec='/usr/lib'
 
9689
  ;;
 
9690
 
 
9691
uts4*)
 
9692
  version_type=linux
 
9693
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9694
  soname_spec='${libname}${release}${shared_ext}$major'
 
9695
  shlibpath_var=LD_LIBRARY_PATH
 
9696
  ;;
 
9697
 
 
9698
*)
 
9699
  dynamic_linker=no
 
9700
  ;;
 
9701
esac
 
9702
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
9703
echo "${ECHO_T}$dynamic_linker" >&6; }
 
9704
test "$dynamic_linker" = no && can_build_shared=no
 
9705
 
 
9706
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
9707
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9708
else
 
9709
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
9710
fi
 
9711
 
 
9712
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
9713
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
9714
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9715
else
 
9716
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
9717
fi
 
9718
 
 
9719
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
9720
 
 
9721
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
9722
if test "$GCC" = yes; then
 
9723
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
9724
fi
 
9725
 
 
9726
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
9727
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
9728
hardcode_action=
 
9729
if test -n "$hardcode_libdir_flag_spec" || \
 
9730
   test -n "$runpath_var" || \
 
9731
   test "X$hardcode_automatic" = "Xyes" ; then
 
9732
 
 
9733
  # We can hardcode non-existant directories.
 
9734
  if test "$hardcode_direct" != no &&
 
9735
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
9736
     # have to relink, otherwise we might link with an installed library
 
9737
     # when we should be linking with a yet-to-be-installed one
 
9738
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
9739
     test "$hardcode_minus_L" != no; then
 
9740
    # Linking always hardcodes the temporary library directory.
 
9741
    hardcode_action=relink
 
9742
  else
 
9743
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
9744
    hardcode_action=immediate
 
9745
  fi
 
9746
else
 
9747
  # We cannot hardcode anything, or else we can only hardcode existing
 
9748
  # directories.
 
9749
  hardcode_action=unsupported
 
9750
fi
 
9751
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
9752
echo "${ECHO_T}$hardcode_action" >&6; }
 
9753
 
 
9754
if test "$hardcode_action" = relink; then
 
9755
  # Fast installation is not supported
 
9756
  enable_fast_install=no
 
9757
elif test "$shlibpath_overrides_runpath" = yes ||
 
9758
     test "$enable_shared" = no; then
 
9759
  # Fast installation is not necessary
 
9760
  enable_fast_install=needless
 
9761
fi
 
9762
 
 
9763
striplib=
 
9764
old_striplib=
 
9765
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
9766
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
 
9767
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
9768
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
9769
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
9770
  { echo "$as_me:$LINENO: result: yes" >&5
 
9771
echo "${ECHO_T}yes" >&6; }
 
9772
else
 
9773
# FIXME - insert some real tests, host_os isn't really good enough
 
9774
  case $host_os in
 
9775
   darwin*)
 
9776
       if test -n "$STRIP" ; then
 
9777
         striplib="$STRIP -x"
 
9778
         old_striplib="$STRIP -S"
 
9779
         { echo "$as_me:$LINENO: result: yes" >&5
 
9780
echo "${ECHO_T}yes" >&6; }
 
9781
       else
 
9782
  { echo "$as_me:$LINENO: result: no" >&5
 
9783
echo "${ECHO_T}no" >&6; }
 
9784
fi
 
9785
       ;;
 
9786
   *)
 
9787
  { echo "$as_me:$LINENO: result: no" >&5
 
9788
echo "${ECHO_T}no" >&6; }
 
9789
    ;;
 
9790
  esac
 
9791
fi
 
9792
 
 
9793
if test "x$enable_dlopen" != xyes; then
 
9794
  enable_dlopen=unknown
 
9795
  enable_dlopen_self=unknown
 
9796
  enable_dlopen_self_static=unknown
 
9797
else
 
9798
  lt_cv_dlopen=no
 
9799
  lt_cv_dlopen_libs=
 
9800
 
 
9801
  case $host_os in
 
9802
  beos*)
 
9803
    lt_cv_dlopen="load_add_on"
 
9804
    lt_cv_dlopen_libs=
 
9805
    lt_cv_dlopen_self=yes
 
9806
    ;;
 
9807
 
 
9808
  mingw* | pw32*)
 
9809
    lt_cv_dlopen="LoadLibrary"
 
9810
    lt_cv_dlopen_libs=
 
9811
   ;;
 
9812
 
 
9813
  cygwin*)
 
9814
    lt_cv_dlopen="dlopen"
 
9815
    lt_cv_dlopen_libs=
 
9816
   ;;
 
9817
 
 
9818
  darwin*)
 
9819
  # if libdl is installed we need to link against it
 
9820
    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
9821
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
 
9822
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
9823
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9824
else
 
9825
  ac_check_lib_save_LIBS=$LIBS
 
9826
LIBS="-ldl  $LIBS"
 
9827
cat >conftest.$ac_ext <<_ACEOF
 
9828
/* confdefs.h.  */
 
9829
_ACEOF
 
9830
cat confdefs.h >>conftest.$ac_ext
 
9831
cat >>conftest.$ac_ext <<_ACEOF
 
9832
/* end confdefs.h.  */
 
9833
 
 
9834
/* Override any GCC internal prototype to avoid an error.
 
9835
   Use char because int might match the return type of a GCC
 
9836
   builtin and then its argument prototype would still apply.  */
 
9837
#ifdef __cplusplus
 
9838
extern "C"
 
9839
#endif
 
9840
char dlopen ();
 
9841
int
 
9842
main ()
 
9843
{
 
9844
return dlopen ();
 
9845
  ;
 
9846
  return 0;
 
9847
}
 
9848
_ACEOF
 
9849
rm -f conftest.$ac_objext conftest$ac_exeext
 
9850
if { (ac_try="$ac_link"
 
9851
case "(($ac_try" in
 
9852
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9853
  *) ac_try_echo=$ac_try;;
 
9854
esac
 
9855
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9856
  (eval "$ac_link") 2>conftest.er1
 
9857
  ac_status=$?
 
9858
  grep -v '^ *+' conftest.er1 >conftest.err
 
9859
  rm -f conftest.er1
 
9860
  cat conftest.err >&5
 
9861
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9862
  (exit $ac_status); } && {
 
9863
         test -z "$ac_c_werror_flag" ||
 
9864
         test ! -s conftest.err
 
9865
       } && test -s conftest$ac_exeext &&
 
9866
       $as_test_x conftest$ac_exeext; then
 
9867
  ac_cv_lib_dl_dlopen=yes
 
9868
else
 
9869
  echo "$as_me: failed program was:" >&5
 
9870
sed 's/^/| /' conftest.$ac_ext >&5
 
9871
 
 
9872
        ac_cv_lib_dl_dlopen=no
 
9873
fi
 
9874
 
 
9875
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9876
      conftest$ac_exeext conftest.$ac_ext
 
9877
LIBS=$ac_check_lib_save_LIBS
 
9878
fi
 
9879
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
9880
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
 
9881
if test $ac_cv_lib_dl_dlopen = yes; then
 
9882
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
9883
else
 
9884
 
 
9885
    lt_cv_dlopen="dyld"
 
9886
    lt_cv_dlopen_libs=
 
9887
    lt_cv_dlopen_self=yes
 
9888
 
 
9889
fi
 
9890
 
 
9891
   ;;
 
9892
 
 
9893
  *)
 
9894
    { echo "$as_me:$LINENO: checking for shl_load" >&5
 
9895
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
 
9896
if test "${ac_cv_func_shl_load+set}" = set; then
 
9897
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9898
else
 
9899
  cat >conftest.$ac_ext <<_ACEOF
 
9900
/* confdefs.h.  */
 
9901
_ACEOF
 
9902
cat confdefs.h >>conftest.$ac_ext
 
9903
cat >>conftest.$ac_ext <<_ACEOF
 
9904
/* end confdefs.h.  */
 
9905
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
9906
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
9907
#define shl_load innocuous_shl_load
 
9908
 
 
9909
/* System header to define __stub macros and hopefully few prototypes,
 
9910
    which can conflict with char shl_load (); below.
 
9911
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
9912
    <limits.h> exists even on freestanding compilers.  */
 
9913
 
 
9914
#ifdef __STDC__
 
9915
# include <limits.h>
 
9916
#else
 
9917
# include <assert.h>
 
9918
#endif
 
9919
 
 
9920
#undef shl_load
 
9921
 
 
9922
/* Override any GCC internal prototype to avoid an error.
 
9923
   Use char because int might match the return type of a GCC
 
9924
   builtin and then its argument prototype would still apply.  */
 
9925
#ifdef __cplusplus
 
9926
extern "C"
 
9927
#endif
 
9928
char shl_load ();
 
9929
/* The GNU C library defines this for functions which it implements
 
9930
    to always fail with ENOSYS.  Some functions are actually named
 
9931
    something starting with __ and the normal name is an alias.  */
 
9932
#if defined __stub_shl_load || defined __stub___shl_load
 
9933
choke me
 
9934
#endif
 
9935
 
 
9936
int
 
9937
main ()
 
9938
{
 
9939
return shl_load ();
 
9940
  ;
 
9941
  return 0;
 
9942
}
 
9943
_ACEOF
 
9944
rm -f conftest.$ac_objext conftest$ac_exeext
 
9945
if { (ac_try="$ac_link"
 
9946
case "(($ac_try" in
 
9947
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9948
  *) ac_try_echo=$ac_try;;
 
9949
esac
 
9950
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9951
  (eval "$ac_link") 2>conftest.er1
 
9952
  ac_status=$?
 
9953
  grep -v '^ *+' conftest.er1 >conftest.err
 
9954
  rm -f conftest.er1
 
9955
  cat conftest.err >&5
 
9956
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9957
  (exit $ac_status); } && {
 
9958
         test -z "$ac_c_werror_flag" ||
 
9959
         test ! -s conftest.err
 
9960
       } && test -s conftest$ac_exeext &&
 
9961
       $as_test_x conftest$ac_exeext; 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
         test -z "$ac_c_werror_flag" ||
 
10022
         test ! -s conftest.err
 
10023
       } && test -s conftest$ac_exeext &&
 
10024
       $as_test_x conftest$ac_exeext; then
 
10025
  ac_cv_lib_dld_shl_load=yes
 
10026
else
 
10027
  echo "$as_me: failed program was:" >&5
 
10028
sed 's/^/| /' conftest.$ac_ext >&5
 
10029
 
 
10030
        ac_cv_lib_dld_shl_load=no
 
10031
fi
 
10032
 
 
10033
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10034
      conftest$ac_exeext conftest.$ac_ext
 
10035
LIBS=$ac_check_lib_save_LIBS
 
10036
fi
 
10037
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
10038
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
 
10039
if test $ac_cv_lib_dld_shl_load = yes; then
 
10040
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
 
10041
else
 
10042
  { echo "$as_me:$LINENO: checking for dlopen" >&5
 
10043
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
 
10044
if test "${ac_cv_func_dlopen+set}" = set; then
 
10045
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10046
else
 
10047
  cat >conftest.$ac_ext <<_ACEOF
 
10048
/* confdefs.h.  */
 
10049
_ACEOF
 
10050
cat confdefs.h >>conftest.$ac_ext
 
10051
cat >>conftest.$ac_ext <<_ACEOF
 
10052
/* end confdefs.h.  */
 
10053
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
10054
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
10055
#define dlopen innocuous_dlopen
 
10056
 
 
10057
/* System header to define __stub macros and hopefully few prototypes,
 
10058
    which can conflict with char dlopen (); below.
 
10059
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
10060
    <limits.h> exists even on freestanding compilers.  */
 
10061
 
 
10062
#ifdef __STDC__
 
10063
# include <limits.h>
 
10064
#else
 
10065
# include <assert.h>
 
10066
#endif
 
10067
 
 
10068
#undef dlopen
 
10069
 
 
10070
/* Override any GCC internal prototype to avoid an error.
 
10071
   Use char because int might match the return type of a GCC
 
10072
   builtin and then its argument prototype would still apply.  */
 
10073
#ifdef __cplusplus
 
10074
extern "C"
 
10075
#endif
 
10076
char dlopen ();
 
10077
/* The GNU C library defines this for functions which it implements
 
10078
    to always fail with ENOSYS.  Some functions are actually named
 
10079
    something starting with __ and the normal name is an alias.  */
 
10080
#if defined __stub_dlopen || defined __stub___dlopen
 
10081
choke me
 
10082
#endif
 
10083
 
 
10084
int
 
10085
main ()
 
10086
{
 
10087
return dlopen ();
 
10088
  ;
 
10089
  return 0;
 
10090
}
 
10091
_ACEOF
 
10092
rm -f conftest.$ac_objext conftest$ac_exeext
 
10093
if { (ac_try="$ac_link"
 
10094
case "(($ac_try" in
 
10095
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10096
  *) ac_try_echo=$ac_try;;
 
10097
esac
 
10098
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10099
  (eval "$ac_link") 2>conftest.er1
 
10100
  ac_status=$?
 
10101
  grep -v '^ *+' conftest.er1 >conftest.err
 
10102
  rm -f conftest.er1
 
10103
  cat conftest.err >&5
 
10104
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10105
  (exit $ac_status); } && {
 
10106
         test -z "$ac_c_werror_flag" ||
 
10107
         test ! -s conftest.err
 
10108
       } && test -s conftest$ac_exeext &&
 
10109
       $as_test_x conftest$ac_exeext; then
 
10110
  ac_cv_func_dlopen=yes
 
10111
else
 
10112
  echo "$as_me: failed program was:" >&5
 
10113
sed 's/^/| /' conftest.$ac_ext >&5
 
10114
 
 
10115
        ac_cv_func_dlopen=no
 
10116
fi
 
10117
 
 
10118
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10119
      conftest$ac_exeext conftest.$ac_ext
 
10120
fi
 
10121
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
10122
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
 
10123
if test $ac_cv_func_dlopen = yes; then
 
10124
  lt_cv_dlopen="dlopen"
 
10125
else
 
10126
  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
10127
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
 
10128
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
10129
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10130
else
 
10131
  ac_check_lib_save_LIBS=$LIBS
 
10132
LIBS="-ldl  $LIBS"
 
10133
cat >conftest.$ac_ext <<_ACEOF
 
10134
/* confdefs.h.  */
 
10135
_ACEOF
 
10136
cat confdefs.h >>conftest.$ac_ext
 
10137
cat >>conftest.$ac_ext <<_ACEOF
 
10138
/* end confdefs.h.  */
 
10139
 
 
10140
/* Override any GCC internal prototype to avoid an error.
 
10141
   Use char because int might match the return type of a GCC
 
10142
   builtin and then its argument prototype would still apply.  */
 
10143
#ifdef __cplusplus
 
10144
extern "C"
 
10145
#endif
 
10146
char dlopen ();
 
10147
int
 
10148
main ()
 
10149
{
 
10150
return dlopen ();
 
10151
  ;
 
10152
  return 0;
 
10153
}
 
10154
_ACEOF
 
10155
rm -f conftest.$ac_objext conftest$ac_exeext
 
10156
if { (ac_try="$ac_link"
 
10157
case "(($ac_try" in
 
10158
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10159
  *) ac_try_echo=$ac_try;;
 
10160
esac
 
10161
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10162
  (eval "$ac_link") 2>conftest.er1
 
10163
  ac_status=$?
 
10164
  grep -v '^ *+' conftest.er1 >conftest.err
 
10165
  rm -f conftest.er1
 
10166
  cat conftest.err >&5
 
10167
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10168
  (exit $ac_status); } && {
 
10169
         test -z "$ac_c_werror_flag" ||
 
10170
         test ! -s conftest.err
 
10171
       } && test -s conftest$ac_exeext &&
 
10172
       $as_test_x conftest$ac_exeext; then
 
10173
  ac_cv_lib_dl_dlopen=yes
 
10174
else
 
10175
  echo "$as_me: failed program was:" >&5
 
10176
sed 's/^/| /' conftest.$ac_ext >&5
 
10177
 
 
10178
        ac_cv_lib_dl_dlopen=no
 
10179
fi
 
10180
 
 
10181
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10182
      conftest$ac_exeext conftest.$ac_ext
 
10183
LIBS=$ac_check_lib_save_LIBS
 
10184
fi
 
10185
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
10186
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
 
10187
if test $ac_cv_lib_dl_dlopen = yes; then
 
10188
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
10189
else
 
10190
  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
10191
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
 
10192
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
10193
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10194
else
 
10195
  ac_check_lib_save_LIBS=$LIBS
 
10196
LIBS="-lsvld  $LIBS"
 
10197
cat >conftest.$ac_ext <<_ACEOF
 
10198
/* confdefs.h.  */
 
10199
_ACEOF
 
10200
cat confdefs.h >>conftest.$ac_ext
 
10201
cat >>conftest.$ac_ext <<_ACEOF
 
10202
/* end confdefs.h.  */
 
10203
 
 
10204
/* Override any GCC internal prototype to avoid an error.
 
10205
   Use char because int might match the return type of a GCC
 
10206
   builtin and then its argument prototype would still apply.  */
 
10207
#ifdef __cplusplus
 
10208
extern "C"
 
10209
#endif
 
10210
char dlopen ();
 
10211
int
 
10212
main ()
 
10213
{
 
10214
return dlopen ();
 
10215
  ;
 
10216
  return 0;
 
10217
}
 
10218
_ACEOF
 
10219
rm -f conftest.$ac_objext conftest$ac_exeext
 
10220
if { (ac_try="$ac_link"
 
10221
case "(($ac_try" in
 
10222
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10223
  *) ac_try_echo=$ac_try;;
 
10224
esac
 
10225
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10226
  (eval "$ac_link") 2>conftest.er1
 
10227
  ac_status=$?
 
10228
  grep -v '^ *+' conftest.er1 >conftest.err
 
10229
  rm -f conftest.er1
 
10230
  cat conftest.err >&5
 
10231
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10232
  (exit $ac_status); } && {
 
10233
         test -z "$ac_c_werror_flag" ||
 
10234
         test ! -s conftest.err
 
10235
       } && test -s conftest$ac_exeext &&
 
10236
       $as_test_x conftest$ac_exeext; then
 
10237
  ac_cv_lib_svld_dlopen=yes
 
10238
else
 
10239
  echo "$as_me: failed program was:" >&5
 
10240
sed 's/^/| /' conftest.$ac_ext >&5
 
10241
 
 
10242
        ac_cv_lib_svld_dlopen=no
 
10243
fi
 
10244
 
 
10245
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10246
      conftest$ac_exeext conftest.$ac_ext
 
10247
LIBS=$ac_check_lib_save_LIBS
 
10248
fi
 
10249
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
10250
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
 
10251
if test $ac_cv_lib_svld_dlopen = yes; then
 
10252
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
10253
else
 
10254
  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
10255
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
 
10256
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
10257
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10258
else
 
10259
  ac_check_lib_save_LIBS=$LIBS
 
10260
LIBS="-ldld  $LIBS"
 
10261
cat >conftest.$ac_ext <<_ACEOF
 
10262
/* confdefs.h.  */
 
10263
_ACEOF
 
10264
cat confdefs.h >>conftest.$ac_ext
 
10265
cat >>conftest.$ac_ext <<_ACEOF
 
10266
/* end confdefs.h.  */
 
10267
 
 
10268
/* Override any GCC internal prototype to avoid an error.
 
10269
   Use char because int might match the return type of a GCC
 
10270
   builtin and then its argument prototype would still apply.  */
 
10271
#ifdef __cplusplus
 
10272
extern "C"
 
10273
#endif
 
10274
char dld_link ();
 
10275
int
 
10276
main ()
 
10277
{
 
10278
return dld_link ();
 
10279
  ;
 
10280
  return 0;
 
10281
}
 
10282
_ACEOF
 
10283
rm -f conftest.$ac_objext conftest$ac_exeext
 
10284
if { (ac_try="$ac_link"
 
10285
case "(($ac_try" in
 
10286
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10287
  *) ac_try_echo=$ac_try;;
 
10288
esac
 
10289
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10290
  (eval "$ac_link") 2>conftest.er1
 
10291
  ac_status=$?
 
10292
  grep -v '^ *+' conftest.er1 >conftest.err
 
10293
  rm -f conftest.er1
 
10294
  cat conftest.err >&5
 
10295
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10296
  (exit $ac_status); } && {
 
10297
         test -z "$ac_c_werror_flag" ||
 
10298
         test ! -s conftest.err
 
10299
       } && test -s conftest$ac_exeext &&
 
10300
       $as_test_x conftest$ac_exeext; then
 
10301
  ac_cv_lib_dld_dld_link=yes
 
10302
else
 
10303
  echo "$as_me: failed program was:" >&5
 
10304
sed 's/^/| /' conftest.$ac_ext >&5
 
10305
 
 
10306
        ac_cv_lib_dld_dld_link=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_dld_dld_link" >&5
 
10314
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
 
10315
if test $ac_cv_lib_dld_dld_link = yes; then
 
10316
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
 
10317
fi
 
10318
 
 
10319
 
 
10320
fi
 
10321
 
 
10322
 
 
10323
fi
 
10324
 
 
10325
 
 
10326
fi
 
10327
 
 
10328
 
 
10329
fi
 
10330
 
 
10331
 
 
10332
fi
 
10333
 
 
10334
    ;;
 
10335
  esac
 
10336
 
 
10337
  if test "x$lt_cv_dlopen" != xno; then
 
10338
    enable_dlopen=yes
 
10339
  else
 
10340
    enable_dlopen=no
 
10341
  fi
 
10342
 
 
10343
  case $lt_cv_dlopen in
 
10344
  dlopen)
 
10345
    save_CPPFLAGS="$CPPFLAGS"
 
10346
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
10347
 
 
10348
    save_LDFLAGS="$LDFLAGS"
 
10349
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
10350
 
 
10351
    save_LIBS="$LIBS"
 
10352
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
10353
 
 
10354
    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
10355
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
 
10356
if test "${lt_cv_dlopen_self+set}" = set; then
 
10357
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10358
else
 
10359
          if test "$cross_compiling" = yes; then :
 
10360
  lt_cv_dlopen_self=cross
 
10361
else
 
10362
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
10363
  lt_status=$lt_dlunknown
 
10364
  cat > conftest.$ac_ext <<EOF
 
10365
#line 10365 "configure"
 
10366
#include "confdefs.h"
 
10367
 
 
10368
#if HAVE_DLFCN_H
 
10369
#include <dlfcn.h>
 
10370
#endif
 
10371
 
 
10372
#include <stdio.h>
 
10373
 
 
10374
#ifdef RTLD_GLOBAL
 
10375
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
10376
#else
 
10377
#  ifdef DL_GLOBAL
 
10378
#    define LT_DLGLOBAL         DL_GLOBAL
 
10379
#  else
 
10380
#    define LT_DLGLOBAL         0
 
10381
#  endif
 
10382
#endif
 
10383
 
 
10384
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
10385
   find out it does not work in some platform. */
 
10386
#ifndef LT_DLLAZY_OR_NOW
 
10387
#  ifdef RTLD_LAZY
 
10388
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
10389
#  else
 
10390
#    ifdef DL_LAZY
 
10391
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
10392
#    else
 
10393
#      ifdef RTLD_NOW
 
10394
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
10395
#      else
 
10396
#        ifdef DL_NOW
 
10397
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
10398
#        else
 
10399
#          define LT_DLLAZY_OR_NOW      0
 
10400
#        endif
 
10401
#      endif
 
10402
#    endif
 
10403
#  endif
 
10404
#endif
 
10405
 
 
10406
#ifdef __cplusplus
 
10407
extern "C" void exit (int);
 
10408
#endif
 
10409
 
 
10410
void fnord() { int i=42;}
 
10411
int main ()
 
10412
{
 
10413
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
10414
  int status = $lt_dlunknown;
 
10415
 
 
10416
  if (self)
 
10417
    {
 
10418
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
10419
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
10420
      /* dlclose (self); */
 
10421
    }
 
10422
  else
 
10423
    puts (dlerror ());
 
10424
 
 
10425
    exit (status);
 
10426
}
 
10427
EOF
 
10428
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10429
  (eval $ac_link) 2>&5
 
10430
  ac_status=$?
 
10431
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10432
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
10433
    (./conftest; exit; ) >&5 2>/dev/null
 
10434
    lt_status=$?
 
10435
    case x$lt_status in
 
10436
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
10437
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
10438
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
 
10439
    esac
 
10440
  else :
 
10441
    # compilation failed
 
10442
    lt_cv_dlopen_self=no
 
10443
  fi
 
10444
fi
 
10445
rm -fr conftest*
 
10446
 
 
10447
 
 
10448
fi
 
10449
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
10450
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
 
10451
 
 
10452
    if test "x$lt_cv_dlopen_self" = xyes; then
 
10453
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
10454
      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
10455
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
 
10456
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
10457
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10458
else
 
10459
          if test "$cross_compiling" = yes; then :
 
10460
  lt_cv_dlopen_self_static=cross
 
10461
else
 
10462
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
10463
  lt_status=$lt_dlunknown
 
10464
  cat > conftest.$ac_ext <<EOF
 
10465
#line 10465 "configure"
 
10466
#include "confdefs.h"
 
10467
 
 
10468
#if HAVE_DLFCN_H
 
10469
#include <dlfcn.h>
 
10470
#endif
 
10471
 
 
10472
#include <stdio.h>
 
10473
 
 
10474
#ifdef RTLD_GLOBAL
 
10475
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
10476
#else
 
10477
#  ifdef DL_GLOBAL
 
10478
#    define LT_DLGLOBAL         DL_GLOBAL
 
10479
#  else
 
10480
#    define LT_DLGLOBAL         0
 
10481
#  endif
 
10482
#endif
 
10483
 
 
10484
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
10485
   find out it does not work in some platform. */
 
10486
#ifndef LT_DLLAZY_OR_NOW
 
10487
#  ifdef RTLD_LAZY
 
10488
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
10489
#  else
 
10490
#    ifdef DL_LAZY
 
10491
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
10492
#    else
 
10493
#      ifdef RTLD_NOW
 
10494
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
10495
#      else
 
10496
#        ifdef DL_NOW
 
10497
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
10498
#        else
 
10499
#          define LT_DLLAZY_OR_NOW      0
 
10500
#        endif
 
10501
#      endif
 
10502
#    endif
 
10503
#  endif
 
10504
#endif
 
10505
 
 
10506
#ifdef __cplusplus
 
10507
extern "C" void exit (int);
 
10508
#endif
 
10509
 
 
10510
void fnord() { int i=42;}
 
10511
int main ()
 
10512
{
 
10513
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
10514
  int status = $lt_dlunknown;
 
10515
 
 
10516
  if (self)
 
10517
    {
 
10518
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
10519
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
10520
      /* dlclose (self); */
 
10521
    }
 
10522
  else
 
10523
    puts (dlerror ());
 
10524
 
 
10525
    exit (status);
 
10526
}
 
10527
EOF
 
10528
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10529
  (eval $ac_link) 2>&5
 
10530
  ac_status=$?
 
10531
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10532
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
10533
    (./conftest; exit; ) >&5 2>/dev/null
 
10534
    lt_status=$?
 
10535
    case x$lt_status in
 
10536
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
10537
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
10538
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
 
10539
    esac
 
10540
  else :
 
10541
    # compilation failed
 
10542
    lt_cv_dlopen_self_static=no
 
10543
  fi
 
10544
fi
 
10545
rm -fr conftest*
 
10546
 
 
10547
 
 
10548
fi
 
10549
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
10550
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
 
10551
    fi
 
10552
 
 
10553
    CPPFLAGS="$save_CPPFLAGS"
 
10554
    LDFLAGS="$save_LDFLAGS"
 
10555
    LIBS="$save_LIBS"
 
10556
    ;;
 
10557
  esac
 
10558
 
 
10559
  case $lt_cv_dlopen_self in
 
10560
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
10561
  *) enable_dlopen_self=unknown ;;
 
10562
  esac
 
10563
 
 
10564
  case $lt_cv_dlopen_self_static in
 
10565
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
10566
  *) enable_dlopen_self_static=unknown ;;
 
10567
  esac
 
10568
fi
 
10569
 
 
10570
 
 
10571
# Report which library types will actually be built
 
10572
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
10573
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
 
10574
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
10575
echo "${ECHO_T}$can_build_shared" >&6; }
 
10576
 
 
10577
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
10578
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
 
10579
test "$can_build_shared" = "no" && enable_shared=no
 
10580
 
 
10581
# On AIX, shared libraries and static libraries use the same namespace, and
 
10582
# are all built from PIC.
 
10583
case $host_os in
 
10584
aix3*)
 
10585
  test "$enable_shared" = yes && enable_static=no
 
10586
  if test -n "$RANLIB"; then
 
10587
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
10588
    postinstall_cmds='$RANLIB $lib'
 
10589
  fi
 
10590
  ;;
 
10591
 
 
10592
aix[4-9]*)
 
10593
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
10594
    test "$enable_shared" = yes && enable_static=no
 
10595
  fi
 
10596
    ;;
 
10597
esac
 
10598
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
 
10599
echo "${ECHO_T}$enable_shared" >&6; }
 
10600
 
 
10601
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
10602
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
 
10603
# Make sure either enable_shared or enable_static is yes.
 
10604
test "$enable_shared" = yes || enable_static=yes
 
10605
{ echo "$as_me:$LINENO: result: $enable_static" >&5
 
10606
echo "${ECHO_T}$enable_static" >&6; }
 
10607
 
 
10608
# The else clause should only fire when bootstrapping the
 
10609
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
10610
# with your package, and you will get complaints that there are
 
10611
# no rules to generate ltmain.sh.
 
10612
if test -f "$ltmain"; then
 
10613
  # See if we are running on zsh, and set the options which allow our commands through
 
10614
  # without removal of \ escapes.
 
10615
  if test -n "${ZSH_VERSION+set}" ; then
 
10616
    setopt NO_GLOB_SUBST
 
10617
  fi
 
10618
  # Now quote all the things that may contain metacharacters while being
 
10619
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
10620
  # variables and quote the copies for generation of the libtool script.
 
10621
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
10622
    SED SHELL STRIP \
 
10623
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
10624
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
10625
    deplibs_check_method reload_flag reload_cmds need_locks \
 
10626
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
10627
    lt_cv_sys_global_symbol_to_c_name_address \
 
10628
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
10629
    old_postinstall_cmds old_postuninstall_cmds \
 
10630
    compiler \
 
10631
    CC \
 
10632
    LD \
 
10633
    lt_prog_compiler_wl \
 
10634
    lt_prog_compiler_pic \
 
10635
    lt_prog_compiler_static \
 
10636
    lt_prog_compiler_no_builtin_flag \
 
10637
    export_dynamic_flag_spec \
 
10638
    thread_safe_flag_spec \
 
10639
    whole_archive_flag_spec \
 
10640
    enable_shared_with_static_runtimes \
 
10641
    old_archive_cmds \
 
10642
    old_archive_from_new_cmds \
 
10643
    predep_objects \
 
10644
    postdep_objects \
 
10645
    predeps \
 
10646
    postdeps \
 
10647
    compiler_lib_search_path \
 
10648
    compiler_lib_search_dirs \
 
10649
    archive_cmds \
 
10650
    archive_expsym_cmds \
 
10651
    postinstall_cmds \
 
10652
    postuninstall_cmds \
 
10653
    old_archive_from_expsyms_cmds \
 
10654
    allow_undefined_flag \
 
10655
    no_undefined_flag \
 
10656
    export_symbols_cmds \
 
10657
    hardcode_libdir_flag_spec \
 
10658
    hardcode_libdir_flag_spec_ld \
 
10659
    hardcode_libdir_separator \
 
10660
    hardcode_automatic \
 
10661
    module_cmds \
 
10662
    module_expsym_cmds \
 
10663
    lt_cv_prog_compiler_c_o \
 
10664
    fix_srcfile_path \
 
10665
    exclude_expsyms \
 
10666
    include_expsyms; do
 
10667
 
 
10668
    case $var in
 
10669
    old_archive_cmds | \
 
10670
    old_archive_from_new_cmds | \
 
10671
    archive_cmds | \
 
10672
    archive_expsym_cmds | \
 
10673
    module_cmds | \
 
10674
    module_expsym_cmds | \
 
10675
    old_archive_from_expsyms_cmds | \
 
10676
    export_symbols_cmds | \
 
10677
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
10678
    postinstall_cmds | postuninstall_cmds | \
 
10679
    old_postinstall_cmds | old_postuninstall_cmds | \
 
10680
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
10681
      # Double-quote double-evaled strings.
 
10682
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
10683
      ;;
 
10684
    *)
 
10685
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
10686
      ;;
 
10687
    esac
 
10688
  done
 
10689
 
 
10690
  case $lt_echo in
 
10691
  *'\$0 --fallback-echo"')
 
10692
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
10693
    ;;
 
10694
  esac
 
10695
 
 
10696
cfgfile="${ofile}T"
 
10697
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
10698
  $rm -f "$cfgfile"
 
10699
  { echo "$as_me:$LINENO: creating $ofile" >&5
 
10700
echo "$as_me: creating $ofile" >&6;}
 
10701
 
 
10702
  cat <<__EOF__ >> "$cfgfile"
 
10703
#! $SHELL
 
10704
 
 
10705
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
10706
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
10707
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
10708
#
 
10709
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
 
10710
# Free Software Foundation, Inc.
 
10711
#
 
10712
# This file is part of GNU Libtool:
 
10713
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
10714
#
 
10715
# This program is free software; you can redistribute it and/or modify
 
10716
# it under the terms of the GNU General Public License as published by
 
10717
# the Free Software Foundation; either version 2 of the License, or
 
10718
# (at your option) any later version.
 
10719
#
 
10720
# This program is distributed in the hope that it will be useful, but
 
10721
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
10722
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
10723
# General Public License for more details.
 
10724
#
 
10725
# You should have received a copy of the GNU General Public License
 
10726
# along with this program; if not, write to the Free Software
 
10727
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
10728
#
 
10729
# As a special exception to the GNU General Public License, if you
 
10730
# distribute this file as part of a program that contains a
 
10731
# configuration script generated by Autoconf, you may include it under
 
10732
# the same distribution terms that you use for the rest of that program.
 
10733
 
 
10734
# A sed program that does not truncate output.
 
10735
SED=$lt_SED
 
10736
 
 
10737
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
10738
Xsed="$SED -e 1s/^X//"
 
10739
 
 
10740
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
10741
# if CDPATH is set.
 
10742
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
10743
 
 
10744
# The names of the tagged configurations supported by this script.
 
10745
available_tags=
 
10746
 
 
10747
# ### BEGIN LIBTOOL CONFIG
 
10748
 
 
10749
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
10750
 
 
10751
# Shell to use when invoking shell scripts.
 
10752
SHELL=$lt_SHELL
 
10753
 
 
10754
# Whether or not to build shared libraries.
 
10755
build_libtool_libs=$enable_shared
 
10756
 
 
10757
# Whether or not to build static libraries.
 
10758
build_old_libs=$enable_static
 
10759
 
 
10760
# Whether or not to add -lc for building shared libraries.
 
10761
build_libtool_need_lc=$archive_cmds_need_lc
 
10762
 
 
10763
# Whether or not to disallow shared libs when runtime libs are static
 
10764
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
10765
 
 
10766
# Whether or not to optimize for fast installation.
 
10767
fast_install=$enable_fast_install
 
10768
 
 
10769
# The host system.
 
10770
host_alias=$host_alias
 
10771
host=$host
 
10772
host_os=$host_os
 
10773
 
 
10774
# The build system.
 
10775
build_alias=$build_alias
 
10776
build=$build
 
10777
build_os=$build_os
 
10778
 
 
10779
# An echo program that does not interpret backslashes.
 
10780
echo=$lt_echo
 
10781
 
 
10782
# The archiver.
 
10783
AR=$lt_AR
 
10784
AR_FLAGS=$lt_AR_FLAGS
 
10785
 
 
10786
# A C compiler.
 
10787
LTCC=$lt_LTCC
 
10788
 
 
10789
# LTCC compiler flags.
 
10790
LTCFLAGS=$lt_LTCFLAGS
 
10791
 
 
10792
# A language-specific compiler.
 
10793
CC=$lt_compiler
 
10794
 
 
10795
# Is the compiler the GNU C compiler?
 
10796
with_gcc=$GCC
 
10797
 
 
10798
# An ERE matcher.
 
10799
EGREP=$lt_EGREP
 
10800
 
 
10801
# The linker used to build libraries.
 
10802
LD=$lt_LD
 
10803
 
 
10804
# Whether we need hard or soft links.
 
10805
LN_S=$lt_LN_S
 
10806
 
 
10807
# A BSD-compatible nm program.
 
10808
NM=$lt_NM
 
10809
 
 
10810
# A symbol stripping program
 
10811
STRIP=$lt_STRIP
 
10812
 
 
10813
# Used to examine libraries when file_magic_cmd begins "file"
 
10814
MAGIC_CMD=$MAGIC_CMD
 
10815
 
 
10816
# Used on cygwin: DLL creation program.
 
10817
DLLTOOL="$DLLTOOL"
 
10818
 
 
10819
# Used on cygwin: object dumper.
 
10820
OBJDUMP="$OBJDUMP"
 
10821
 
 
10822
# Used on cygwin: assembler.
 
10823
AS="$AS"
 
10824
 
 
10825
# The name of the directory that contains temporary libtool files.
 
10826
objdir=$objdir
 
10827
 
 
10828
# How to create reloadable object files.
 
10829
reload_flag=$lt_reload_flag
 
10830
reload_cmds=$lt_reload_cmds
 
10831
 
 
10832
# How to pass a linker flag through the compiler.
 
10833
wl=$lt_lt_prog_compiler_wl
 
10834
 
 
10835
# Object file suffix (normally "o").
 
10836
objext="$ac_objext"
 
10837
 
 
10838
# Old archive suffix (normally "a").
 
10839
libext="$libext"
 
10840
 
 
10841
# Shared library suffix (normally ".so").
 
10842
shrext_cmds='$shrext_cmds'
 
10843
 
 
10844
# Executable file suffix (normally "").
 
10845
exeext="$exeext"
 
10846
 
 
10847
# Additional compiler flags for building library objects.
 
10848
pic_flag=$lt_lt_prog_compiler_pic
 
10849
pic_mode=$pic_mode
 
10850
 
 
10851
# What is the maximum length of a command?
 
10852
max_cmd_len=$lt_cv_sys_max_cmd_len
 
10853
 
 
10854
# Does compiler simultaneously support -c and -o options?
 
10855
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
10856
 
 
10857
# Must we lock files when doing compilation?
 
10858
need_locks=$lt_need_locks
 
10859
 
 
10860
# Do we need the lib prefix for modules?
 
10861
need_lib_prefix=$need_lib_prefix
 
10862
 
 
10863
# Do we need a version for libraries?
 
10864
need_version=$need_version
 
10865
 
 
10866
# Whether dlopen is supported.
 
10867
dlopen_support=$enable_dlopen
 
10868
 
 
10869
# Whether dlopen of programs is supported.
 
10870
dlopen_self=$enable_dlopen_self
 
10871
 
 
10872
# Whether dlopen of statically linked programs is supported.
 
10873
dlopen_self_static=$enable_dlopen_self_static
 
10874
 
 
10875
# Compiler flag to prevent dynamic linking.
 
10876
link_static_flag=$lt_lt_prog_compiler_static
 
10877
 
 
10878
# Compiler flag to turn off builtin functions.
 
10879
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
10880
 
 
10881
# Compiler flag to allow reflexive dlopens.
 
10882
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
10883
 
 
10884
# Compiler flag to generate shared objects directly from archives.
 
10885
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
10886
 
 
10887
# Compiler flag to generate thread-safe objects.
 
10888
thread_safe_flag_spec=$lt_thread_safe_flag_spec
 
10889
 
 
10890
# Library versioning type.
 
10891
version_type=$version_type
 
10892
 
 
10893
# Format of library name prefix.
 
10894
libname_spec=$lt_libname_spec
 
10895
 
 
10896
# List of archive names.  First name is the real one, the rest are links.
 
10897
# The last name is the one that the linker finds with -lNAME.
 
10898
library_names_spec=$lt_library_names_spec
 
10899
 
 
10900
# The coded name of the library, if different from the real name.
 
10901
soname_spec=$lt_soname_spec
 
10902
 
 
10903
# Commands used to build and install an old-style archive.
 
10904
RANLIB=$lt_RANLIB
 
10905
old_archive_cmds=$lt_old_archive_cmds
 
10906
old_postinstall_cmds=$lt_old_postinstall_cmds
 
10907
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
10908
 
 
10909
# Create an old-style archive from a shared archive.
 
10910
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
10911
 
 
10912
# Create a temporary old-style archive to link instead of a shared archive.
 
10913
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
10914
 
 
10915
# Commands used to build and install a shared archive.
 
10916
archive_cmds=$lt_archive_cmds
 
10917
archive_expsym_cmds=$lt_archive_expsym_cmds
 
10918
postinstall_cmds=$lt_postinstall_cmds
 
10919
postuninstall_cmds=$lt_postuninstall_cmds
 
10920
 
 
10921
# Commands used to build a loadable module (assumed same as above if empty)
 
10922
module_cmds=$lt_module_cmds
 
10923
module_expsym_cmds=$lt_module_expsym_cmds
 
10924
 
 
10925
# Commands to strip libraries.
 
10926
old_striplib=$lt_old_striplib
 
10927
striplib=$lt_striplib
 
10928
 
 
10929
# Dependencies to place before the objects being linked to create a
 
10930
# shared library.
 
10931
predep_objects=$lt_predep_objects
 
10932
 
 
10933
# Dependencies to place after the objects being linked to create a
 
10934
# shared library.
 
10935
postdep_objects=$lt_postdep_objects
 
10936
 
 
10937
# Dependencies to place before the objects being linked to create a
 
10938
# shared library.
 
10939
predeps=$lt_predeps
 
10940
 
 
10941
# Dependencies to place after the objects being linked to create a
 
10942
# shared library.
 
10943
postdeps=$lt_postdeps
 
10944
 
 
10945
# The directories searched by this compiler when creating a shared
 
10946
# library
 
10947
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
 
10948
 
 
10949
# The library search path used internally by the compiler when linking
 
10950
# a shared library.
 
10951
compiler_lib_search_path=$lt_compiler_lib_search_path
 
10952
 
 
10953
# Method to check whether dependent libraries are shared objects.
 
10954
deplibs_check_method=$lt_deplibs_check_method
 
10955
 
 
10956
# Command to use when deplibs_check_method == file_magic.
 
10957
file_magic_cmd=$lt_file_magic_cmd
 
10958
 
 
10959
# Flag that allows shared libraries with undefined symbols to be built.
 
10960
allow_undefined_flag=$lt_allow_undefined_flag
 
10961
 
 
10962
# Flag that forces no undefined symbols.
 
10963
no_undefined_flag=$lt_no_undefined_flag
 
10964
 
 
10965
# Commands used to finish a libtool library installation in a directory.
 
10966
finish_cmds=$lt_finish_cmds
 
10967
 
 
10968
# Same as above, but a single script fragment to be evaled but not shown.
 
10969
finish_eval=$lt_finish_eval
 
10970
 
 
10971
# Take the output of nm and produce a listing of raw symbols and C names.
 
10972
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
10973
 
 
10974
# Transform the output of nm in a proper C declaration
 
10975
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
10976
 
 
10977
# Transform the output of nm in a C name address pair
 
10978
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
10979
 
 
10980
# This is the shared library runtime path variable.
 
10981
runpath_var=$runpath_var
 
10982
 
 
10983
# This is the shared library path variable.
 
10984
shlibpath_var=$shlibpath_var
 
10985
 
 
10986
# Is shlibpath searched before the hard-coded library search path?
 
10987
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
10988
 
 
10989
# How to hardcode a shared library path into an executable.
 
10990
hardcode_action=$hardcode_action
 
10991
 
 
10992
# Whether we should hardcode library paths into libraries.
 
10993
hardcode_into_libs=$hardcode_into_libs
 
10994
 
 
10995
# Flag to hardcode \$libdir into a binary during linking.
 
10996
# This must work even if \$libdir does not exist.
 
10997
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
10998
 
 
10999
# If ld is used when linking, flag to hardcode \$libdir into
 
11000
# a binary during linking. This must work even if \$libdir does
 
11001
# not exist.
 
11002
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
11003
 
 
11004
# Whether we need a single -rpath flag with a separated argument.
 
11005
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
11006
 
 
11007
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
11008
# resulting binary.
 
11009
hardcode_direct=$hardcode_direct
 
11010
 
 
11011
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
11012
# resulting binary.
 
11013
hardcode_minus_L=$hardcode_minus_L
 
11014
 
 
11015
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
11016
# the resulting binary.
 
11017
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
11018
 
 
11019
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
11020
# and all subsequent libraries and executables linked against it.
 
11021
hardcode_automatic=$hardcode_automatic
 
11022
 
 
11023
# Variables whose values should be saved in libtool wrapper scripts and
 
11024
# restored at relink time.
 
11025
variables_saved_for_relink="$variables_saved_for_relink"
 
11026
 
 
11027
# Whether libtool must link a program against all its dependency libraries.
 
11028
link_all_deplibs=$link_all_deplibs
 
11029
 
 
11030
# Compile-time system search path for libraries
 
11031
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
11032
 
 
11033
# Run-time system search path for libraries
 
11034
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
11035
 
 
11036
# Fix the shell variable \$srcfile for the compiler.
 
11037
fix_srcfile_path=$lt_fix_srcfile_path
 
11038
 
 
11039
# Set to yes if exported symbols are required.
 
11040
always_export_symbols=$always_export_symbols
 
11041
 
 
11042
# The commands to list exported symbols.
 
11043
export_symbols_cmds=$lt_export_symbols_cmds
 
11044
 
 
11045
# The commands to extract the exported symbol list from a shared archive.
 
11046
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
11047
 
 
11048
# Symbols that should not be listed in the preloaded symbols.
 
11049
exclude_expsyms=$lt_exclude_expsyms
 
11050
 
 
11051
# Symbols that must always be exported.
 
11052
include_expsyms=$lt_include_expsyms
 
11053
 
 
11054
# ### END LIBTOOL CONFIG
 
11055
 
 
11056
__EOF__
 
11057
 
 
11058
 
 
11059
  case $host_os in
 
11060
  aix3*)
 
11061
    cat <<\EOF >> "$cfgfile"
 
11062
 
 
11063
# AIX sometimes has problems with the GCC collect2 program.  For some
 
11064
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
11065
# vanish in a puff of smoke.
 
11066
if test "X${COLLECT_NAMES+set}" != Xset; then
 
11067
  COLLECT_NAMES=
 
11068
  export COLLECT_NAMES
 
11069
fi
 
11070
EOF
 
11071
    ;;
 
11072
  esac
 
11073
 
 
11074
  # We use sed instead of cat because bash on DJGPP gets confused if
 
11075
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
11076
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
11077
  # is reportedly fixed, but why not run on old versions too?
 
11078
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 
11079
 
 
11080
  mv -f "$cfgfile" "$ofile" || \
 
11081
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
11082
  chmod +x "$ofile"
 
11083
 
 
11084
else
 
11085
  # If there is no Makefile yet, we rely on a make rule to execute
 
11086
  # `config.status --recheck' to rerun these tests and create the
 
11087
  # libtool script then.
 
11088
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
11089
  if test -f "$ltmain_in"; then
 
11090
    test -f Makefile && make "$ltmain"
 
11091
  fi
 
11092
fi
 
11093
 
 
11094
 
 
11095
ac_ext=c
 
11096
ac_cpp='$CPP $CPPFLAGS'
 
11097
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11098
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11099
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
11100
 
 
11101
CC="$lt_save_CC"
 
11102
 
 
11103
 
 
11104
# Check whether --with-tags was given.
 
11105
if test "${with_tags+set}" = set; then
 
11106
  withval=$with_tags; tagnames="$withval"
 
11107
fi
 
11108
 
 
11109
 
 
11110
if test -f "$ltmain" && test -n "$tagnames"; then
 
11111
  if test ! -f "${ofile}"; then
 
11112
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
 
11113
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
 
11114
  fi
 
11115
 
 
11116
  if test -z "$LTCC"; then
 
11117
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
11118
    if test -z "$LTCC"; then
 
11119
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
 
11120
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
 
11121
    else
 
11122
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
 
11123
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
 
11124
    fi
 
11125
  fi
 
11126
  if test -z "$LTCFLAGS"; then
 
11127
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
 
11128
  fi
 
11129
 
 
11130
  # Extract list of available tagged configurations in $ofile.
 
11131
  # Note that this assumes the entire list is on one line.
 
11132
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
11133
 
 
11134
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
11135
  for tagname in $tagnames; do
 
11136
    IFS="$lt_save_ifs"
 
11137
    # Check whether tagname contains only valid characters
 
11138
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
 
11139
    "") ;;
 
11140
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
 
11141
echo "$as_me: error: invalid tag name: $tagname" >&2;}
 
11142
   { (exit 1); exit 1; }; }
 
11143
        ;;
 
11144
    esac
 
11145
 
 
11146
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
11147
    then
 
11148
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
 
11149
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
 
11150
   { (exit 1); exit 1; }; }
 
11151
    fi
 
11152
 
 
11153
    # Update the list of available tags.
 
11154
    if test -n "$tagname"; then
 
11155
      echo appending configuration tag \"$tagname\" to $ofile
 
11156
 
 
11157
      case $tagname in
 
11158
      CXX)
 
11159
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
11160
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
11161
            (test "X$CXX" != "Xg++"))) ; then
 
11162
          ac_ext=cpp
 
11163
ac_cpp='$CXXCPP $CPPFLAGS'
 
11164
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11165
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11166
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
11167
 
 
11168
 
 
11169
 
 
11170
 
 
11171
archive_cmds_need_lc_CXX=no
 
11172
allow_undefined_flag_CXX=
 
11173
always_export_symbols_CXX=no
 
11174
archive_expsym_cmds_CXX=
 
11175
export_dynamic_flag_spec_CXX=
 
11176
hardcode_direct_CXX=no
 
11177
hardcode_libdir_flag_spec_CXX=
 
11178
hardcode_libdir_flag_spec_ld_CXX=
 
11179
hardcode_libdir_separator_CXX=
 
11180
hardcode_minus_L_CXX=no
 
11181
hardcode_shlibpath_var_CXX=unsupported
 
11182
hardcode_automatic_CXX=no
 
11183
module_cmds_CXX=
 
11184
module_expsym_cmds_CXX=
 
11185
link_all_deplibs_CXX=unknown
 
11186
old_archive_cmds_CXX=$old_archive_cmds
 
11187
no_undefined_flag_CXX=
 
11188
whole_archive_flag_spec_CXX=
 
11189
enable_shared_with_static_runtimes_CXX=no
 
11190
 
 
11191
# Dependencies to place before and after the object being linked:
 
11192
predep_objects_CXX=
 
11193
postdep_objects_CXX=
 
11194
predeps_CXX=
 
11195
postdeps_CXX=
 
11196
compiler_lib_search_path_CXX=
 
11197
compiler_lib_search_dirs_CXX=
 
11198
 
 
11199
# Source file extension for C++ test sources.
 
11200
ac_ext=cpp
 
11201
 
 
11202
# Object file extension for compiled C++ test sources.
 
11203
objext=o
 
11204
objext_CXX=$objext
 
11205
 
 
11206
# Code to be used in simple compile tests
 
11207
lt_simple_compile_test_code="int some_variable = 0;"
 
11208
 
 
11209
# Code to be used in simple link tests
 
11210
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
 
11211
 
 
11212
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
11213
 
 
11214
# If no C compiler was specified, use CC.
 
11215
LTCC=${LTCC-"$CC"}
 
11216
 
 
11217
# If no C compiler flags were specified, use CFLAGS.
 
11218
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
11219
 
 
11220
# Allow CC to be a program name with arguments.
 
11221
compiler=$CC
 
11222
 
 
11223
 
 
11224
# save warnings/boilerplate of simple test code
 
11225
ac_outfile=conftest.$ac_objext
 
11226
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
11227
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
11228
_lt_compiler_boilerplate=`cat conftest.err`
 
11229
$rm conftest*
 
11230
 
 
11231
ac_outfile=conftest.$ac_objext
 
11232
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
11233
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
11234
_lt_linker_boilerplate=`cat conftest.err`
 
11235
$rm -r conftest*
 
11236
 
 
11237
 
 
11238
# Allow CC to be a program name with arguments.
 
11239
lt_save_CC=$CC
 
11240
lt_save_LD=$LD
 
11241
lt_save_GCC=$GCC
 
11242
GCC=$GXX
 
11243
lt_save_with_gnu_ld=$with_gnu_ld
 
11244
lt_save_path_LD=$lt_cv_path_LD
 
11245
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
11246
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
11247
else
 
11248
  $as_unset lt_cv_prog_gnu_ld
 
11249
fi
 
11250
if test -n "${lt_cv_path_LDCXX+set}"; then
 
11251
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
11252
else
 
11253
  $as_unset lt_cv_path_LD
 
11254
fi
 
11255
test -z "${LDCXX+set}" || LD=$LDCXX
 
11256
CC=${CXX-"c++"}
 
11257
compiler=$CC
 
11258
compiler_CXX=$CC
 
11259
for cc_temp in $compiler""; do
 
11260
  case $cc_temp in
 
11261
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
11262
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
11263
    \-*) ;;
 
11264
    *) break;;
 
11265
  esac
 
11266
done
 
11267
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
11268
 
 
11269
 
 
11270
# We don't want -fno-exception wen compiling C++ code, so set the
 
11271
# no_builtin_flag separately
 
11272
if test "$GXX" = yes; then
 
11273
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
11274
else
 
11275
  lt_prog_compiler_no_builtin_flag_CXX=
 
11276
fi
 
11277
 
 
11278
if test "$GXX" = yes; then
 
11279
  # Set up default GNU C++ configuration
 
11280
 
 
11281
 
 
11282
# Check whether --with-gnu-ld was given.
 
11283
if test "${with_gnu_ld+set}" = set; then
 
11284
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
11285
else
 
11286
  with_gnu_ld=no
 
11287
fi
 
11288
 
 
11289
ac_prog=ld
 
11290
if test "$GCC" = yes; then
 
11291
  # Check if gcc -print-prog-name=ld gives a path.
 
11292
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
11293
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
 
11294
  case $host in
 
11295
  *-*-mingw*)
 
11296
    # gcc leaves a trailing carriage return which upsets mingw
 
11297
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
11298
  *)
 
11299
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
11300
  esac
 
11301
  case $ac_prog in
 
11302
    # Accept absolute paths.
 
11303
    [\\/]* | ?:[\\/]*)
 
11304
      re_direlt='/[^/][^/]*/\.\./'
 
11305
      # Canonicalize the pathname of ld
 
11306
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
11307
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
11308
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
11309
      done
 
11310
      test -z "$LD" && LD="$ac_prog"
 
11311
      ;;
 
11312
  "")
 
11313
    # If it fails, then pretend we aren't using GCC.
 
11314
    ac_prog=ld
 
11315
    ;;
 
11316
  *)
 
11317
    # If it is relative, then search for the first ld in PATH.
 
11318
    with_gnu_ld=unknown
 
11319
    ;;
 
11320
  esac
 
11321
elif test "$with_gnu_ld" = yes; then
 
11322
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
 
11323
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
 
11324
else
 
11325
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
11326
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
 
11327
fi
 
11328
if test "${lt_cv_path_LD+set}" = set; then
 
11329
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11330
else
 
11331
  if test -z "$LD"; then
 
11332
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
11333
  for ac_dir in $PATH; do
 
11334
    IFS="$lt_save_ifs"
 
11335
    test -z "$ac_dir" && ac_dir=.
 
11336
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
11337
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
11338
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
11339
      # but apparently some variants of GNU ld only accept -v.
 
11340
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
11341
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
11342
      *GNU* | *'with BFD'*)
 
11343
        test "$with_gnu_ld" != no && break
 
11344
        ;;
 
11345
      *)
 
11346
        test "$with_gnu_ld" != yes && break
 
11347
        ;;
 
11348
      esac
 
11349
    fi
 
11350
  done
 
11351
  IFS="$lt_save_ifs"
 
11352
else
 
11353
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
11354
fi
 
11355
fi
 
11356
 
 
11357
LD="$lt_cv_path_LD"
 
11358
if test -n "$LD"; then
 
11359
  { echo "$as_me:$LINENO: result: $LD" >&5
 
11360
echo "${ECHO_T}$LD" >&6; }
 
11361
else
 
11362
  { echo "$as_me:$LINENO: result: no" >&5
 
11363
echo "${ECHO_T}no" >&6; }
 
11364
fi
 
11365
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
11366
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
11367
   { (exit 1); exit 1; }; }
 
11368
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
11369
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
 
11370
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
11371
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11372
else
 
11373
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
11374
case `$LD -v 2>&1 </dev/null` in
 
11375
*GNU* | *'with BFD'*)
 
11376
  lt_cv_prog_gnu_ld=yes
 
11377
  ;;
 
11378
*)
 
11379
  lt_cv_prog_gnu_ld=no
 
11380
  ;;
 
11381
esac
 
11382
fi
 
11383
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
11384
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
 
11385
with_gnu_ld=$lt_cv_prog_gnu_ld
 
11386
 
 
11387
 
 
11388
 
 
11389
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
11390
  # archiving commands below assume that GNU ld is being used.
 
11391
  if test "$with_gnu_ld" = yes; then
 
11392
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11393
    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'
 
11394
 
 
11395
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
11396
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11397
 
 
11398
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
11399
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
11400
    #     investigate it a little bit more. (MM)
 
11401
    wlarc='${wl}'
 
11402
 
 
11403
    # ancient GNU ld didn't support --whole-archive et. al.
 
11404
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
11405
        grep 'no-whole-archive' > /dev/null; then
 
11406
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
11407
    else
 
11408
      whole_archive_flag_spec_CXX=
 
11409
    fi
 
11410
  else
 
11411
    with_gnu_ld=no
 
11412
    wlarc=
 
11413
 
 
11414
    # A generic and very simple default shared library creation
 
11415
    # command for GNU C++ for the case where it uses the native
 
11416
    # linker, instead of GNU ld.  If possible, this setting should
 
11417
    # overridden to take advantage of the native linker features on
 
11418
    # the platform it is being used on.
 
11419
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
11420
  fi
 
11421
 
 
11422
  # Commands to make compiler produce verbose output that lists
 
11423
  # what "hidden" libraries, object files and flags are used when
 
11424
  # linking a shared library.
 
11425
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
11426
 
 
11427
else
 
11428
  GXX=no
 
11429
  with_gnu_ld=no
 
11430
  wlarc=
 
11431
fi
 
11432
 
 
11433
# PORTME: fill in a description of your system's C++ link characteristics
 
11434
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
11435
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
11436
ld_shlibs_CXX=yes
 
11437
case $host_os in
 
11438
  aix3*)
 
11439
    # FIXME: insert proper C++ library support
 
11440
    ld_shlibs_CXX=no
 
11441
    ;;
 
11442
  aix[4-9]*)
 
11443
    if test "$host_cpu" = ia64; then
 
11444
      # On IA64, the linker does run time linking by default, so we don't
 
11445
      # have to do anything special.
 
11446
      aix_use_runtimelinking=no
 
11447
      exp_sym_flag='-Bexport'
 
11448
      no_entry_flag=""
 
11449
    else
 
11450
      aix_use_runtimelinking=no
 
11451
 
 
11452
      # Test if we are trying to use run time linking or normal
 
11453
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
11454
      # need to do runtime linking.
 
11455
      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
11456
        for ld_flag in $LDFLAGS; do
 
11457
          case $ld_flag in
 
11458
          *-brtl*)
 
11459
            aix_use_runtimelinking=yes
 
11460
            break
 
11461
            ;;
 
11462
          esac
 
11463
        done
 
11464
        ;;
 
11465
      esac
 
11466
 
 
11467
      exp_sym_flag='-bexport'
 
11468
      no_entry_flag='-bnoentry'
 
11469
    fi
 
11470
 
 
11471
    # When large executables or shared objects are built, AIX ld can
 
11472
    # have problems creating the table of contents.  If linking a library
 
11473
    # or program results in "error TOC overflow" add -mminimal-toc to
 
11474
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
11475
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
11476
 
 
11477
    archive_cmds_CXX=''
 
11478
    hardcode_direct_CXX=yes
 
11479
    hardcode_libdir_separator_CXX=':'
 
11480
    link_all_deplibs_CXX=yes
 
11481
 
 
11482
    if test "$GXX" = yes; then
 
11483
      case $host_os in aix4.[012]|aix4.[012].*)
 
11484
      # We only want to do this on AIX 4.2 and lower, the check
 
11485
      # below for broken collect2 doesn't work under 4.3+
 
11486
        collect2name=`${CC} -print-prog-name=collect2`
 
11487
        if test -f "$collect2name" && \
 
11488
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
11489
        then
 
11490
          # We have reworked collect2
 
11491
          :
 
11492
        else
 
11493
          # We have old collect2
 
11494
          hardcode_direct_CXX=unsupported
 
11495
          # It fails to find uninstalled libraries when the uninstalled
 
11496
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
11497
          # to unsupported forces relinking
 
11498
          hardcode_minus_L_CXX=yes
 
11499
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
11500
          hardcode_libdir_separator_CXX=
 
11501
        fi
 
11502
        ;;
 
11503
      esac
 
11504
      shared_flag='-shared'
 
11505
      if test "$aix_use_runtimelinking" = yes; then
 
11506
        shared_flag="$shared_flag "'${wl}-G'
 
11507
      fi
 
11508
    else
 
11509
      # not using gcc
 
11510
      if test "$host_cpu" = ia64; then
 
11511
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
11512
        # chokes on -Wl,-G. The following line is correct:
 
11513
        shared_flag='-G'
 
11514
      else
 
11515
        if test "$aix_use_runtimelinking" = yes; then
 
11516
          shared_flag='${wl}-G'
 
11517
        else
 
11518
          shared_flag='${wl}-bM:SRE'
 
11519
        fi
 
11520
      fi
 
11521
    fi
 
11522
 
 
11523
    # It seems that -bexpall does not export symbols beginning with
 
11524
    # underscore (_), so it is better to generate a list of symbols to export.
 
11525
    always_export_symbols_CXX=yes
 
11526
    if test "$aix_use_runtimelinking" = yes; then
 
11527
      # Warning - without using the other runtime loading flags (-brtl),
 
11528
      # -berok will link without error, but may produce a broken library.
 
11529
      allow_undefined_flag_CXX='-berok'
 
11530
      # Determine the default libpath from the value encoded in an empty executable.
 
11531
      cat >conftest.$ac_ext <<_ACEOF
 
11532
/* confdefs.h.  */
 
11533
_ACEOF
 
11534
cat confdefs.h >>conftest.$ac_ext
 
11535
cat >>conftest.$ac_ext <<_ACEOF
 
11536
/* end confdefs.h.  */
 
11537
 
 
11538
int
 
11539
main ()
 
11540
{
 
11541
 
 
11542
  ;
 
11543
  return 0;
 
11544
}
 
11545
_ACEOF
 
11546
rm -f conftest.$ac_objext conftest$ac_exeext
 
11547
if { (ac_try="$ac_link"
 
11548
case "(($ac_try" in
 
11549
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11550
  *) ac_try_echo=$ac_try;;
 
11551
esac
 
11552
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11553
  (eval "$ac_link") 2>conftest.er1
 
11554
  ac_status=$?
 
11555
  grep -v '^ *+' conftest.er1 >conftest.err
 
11556
  rm -f conftest.er1
 
11557
  cat conftest.err >&5
 
11558
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11559
  (exit $ac_status); } && {
 
11560
         test -z "$ac_cxx_werror_flag" ||
 
11561
         test ! -s conftest.err
 
11562
       } && test -s conftest$ac_exeext &&
 
11563
       $as_test_x conftest$ac_exeext; then
 
11564
 
 
11565
lt_aix_libpath_sed='
 
11566
    /Import File Strings/,/^$/ {
 
11567
        /^0/ {
 
11568
            s/^0  *\(.*\)$/\1/
 
11569
            p
 
11570
        }
 
11571
    }'
 
11572
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11573
# Check for a 64-bit object if we didn't find anything.
 
11574
if test -z "$aix_libpath"; then
 
11575
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11576
fi
 
11577
else
 
11578
  echo "$as_me: failed program was:" >&5
 
11579
sed 's/^/| /' conftest.$ac_ext >&5
 
11580
 
 
11581
 
 
11582
fi
 
11583
 
 
11584
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11585
      conftest$ac_exeext conftest.$ac_ext
 
11586
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
11587
 
 
11588
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
11589
 
 
11590
      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"
 
11591
     else
 
11592
      if test "$host_cpu" = ia64; then
 
11593
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
11594
        allow_undefined_flag_CXX="-z nodefs"
 
11595
        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"
 
11596
      else
 
11597
        # Determine the default libpath from the value encoded in an empty executable.
 
11598
        cat >conftest.$ac_ext <<_ACEOF
 
11599
/* confdefs.h.  */
 
11600
_ACEOF
 
11601
cat confdefs.h >>conftest.$ac_ext
 
11602
cat >>conftest.$ac_ext <<_ACEOF
 
11603
/* end confdefs.h.  */
 
11604
 
 
11605
int
 
11606
main ()
 
11607
{
 
11608
 
 
11609
  ;
 
11610
  return 0;
 
11611
}
 
11612
_ACEOF
 
11613
rm -f conftest.$ac_objext conftest$ac_exeext
 
11614
if { (ac_try="$ac_link"
 
11615
case "(($ac_try" in
 
11616
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11617
  *) ac_try_echo=$ac_try;;
 
11618
esac
 
11619
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11620
  (eval "$ac_link") 2>conftest.er1
 
11621
  ac_status=$?
 
11622
  grep -v '^ *+' conftest.er1 >conftest.err
 
11623
  rm -f conftest.er1
 
11624
  cat conftest.err >&5
 
11625
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11626
  (exit $ac_status); } && {
 
11627
         test -z "$ac_cxx_werror_flag" ||
 
11628
         test ! -s conftest.err
 
11629
       } && test -s conftest$ac_exeext &&
 
11630
       $as_test_x conftest$ac_exeext; then
 
11631
 
 
11632
lt_aix_libpath_sed='
 
11633
    /Import File Strings/,/^$/ {
 
11634
        /^0/ {
 
11635
            s/^0  *\(.*\)$/\1/
 
11636
            p
 
11637
        }
 
11638
    }'
 
11639
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11640
# Check for a 64-bit object if we didn't find anything.
 
11641
if test -z "$aix_libpath"; then
 
11642
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
11643
fi
 
11644
else
 
11645
  echo "$as_me: failed program was:" >&5
 
11646
sed 's/^/| /' conftest.$ac_ext >&5
 
11647
 
 
11648
 
 
11649
fi
 
11650
 
 
11651
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11652
      conftest$ac_exeext conftest.$ac_ext
 
11653
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
11654
 
 
11655
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
11656
        # Warning - without using the other run time loading flags,
 
11657
        # -berok will link without error, but may produce a broken library.
 
11658
        no_undefined_flag_CXX=' ${wl}-bernotok'
 
11659
        allow_undefined_flag_CXX=' ${wl}-berok'
 
11660
        # Exported symbols can be pulled into shared objects from archives
 
11661
        whole_archive_flag_spec_CXX='$convenience'
 
11662
        archive_cmds_need_lc_CXX=yes
 
11663
        # This is similar to how AIX traditionally builds its shared libraries.
 
11664
        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'
 
11665
      fi
 
11666
    fi
 
11667
    ;;
 
11668
 
 
11669
  beos*)
 
11670
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
11671
      allow_undefined_flag_CXX=unsupported
 
11672
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
11673
      # support --undefined.  This deserves some investigation.  FIXME
 
11674
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11675
    else
 
11676
      ld_shlibs_CXX=no
 
11677
    fi
 
11678
    ;;
 
11679
 
 
11680
  chorus*)
 
11681
    case $cc_basename in
 
11682
      *)
 
11683
        # FIXME: insert proper C++ library support
 
11684
        ld_shlibs_CXX=no
 
11685
        ;;
 
11686
    esac
 
11687
    ;;
 
11688
 
 
11689
  cygwin* | mingw* | pw32*)
 
11690
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
11691
    # as there is no search path for DLLs.
 
11692
    hardcode_libdir_flag_spec_CXX='-L$libdir'
 
11693
    allow_undefined_flag_CXX=unsupported
 
11694
    always_export_symbols_CXX=no
 
11695
    enable_shared_with_static_runtimes_CXX=yes
 
11696
 
 
11697
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
11698
      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'
 
11699
      # If the export-symbols file already is a .def file (1st line
 
11700
      # is EXPORTS), use it as is; otherwise, prepend...
 
11701
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
11702
        cp $export_symbols $output_objdir/$soname.def;
 
11703
      else
 
11704
        echo EXPORTS > $output_objdir/$soname.def;
 
11705
        cat $export_symbols >> $output_objdir/$soname.def;
 
11706
      fi~
 
11707
      $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'
 
11708
    else
 
11709
      ld_shlibs_CXX=no
 
11710
    fi
 
11711
  ;;
 
11712
      darwin* | rhapsody*)
 
11713
      archive_cmds_need_lc_CXX=no
 
11714
      hardcode_direct_CXX=no
 
11715
      hardcode_automatic_CXX=yes
 
11716
      hardcode_shlibpath_var_CXX=unsupported
 
11717
      whole_archive_flag_spec_CXX=''
 
11718
      link_all_deplibs_CXX=yes
 
11719
      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
 
11720
      if test "$GXX" = yes ; then
 
11721
      output_verbose_link_cmd='echo'
 
11722
      archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
11723
      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
11724
      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
11725
      module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
 
11726
      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
 
11727
        archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
 
11728
        archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
 
11729
      fi
 
11730
      else
 
11731
      case $cc_basename in
 
11732
        xlc*)
 
11733
         output_verbose_link_cmd='echo'
 
11734
          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
11735
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
11736
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
11737
          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
11738
          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}'
 
11739
          ;;
 
11740
       *)
 
11741
         ld_shlibs_CXX=no
 
11742
          ;;
 
11743
      esac
 
11744
      fi
 
11745
        ;;
 
11746
 
 
11747
  dgux*)
 
11748
    case $cc_basename in
 
11749
      ec++*)
 
11750
        # FIXME: insert proper C++ library support
 
11751
        ld_shlibs_CXX=no
 
11752
        ;;
 
11753
      ghcx*)
 
11754
        # Green Hills C++ Compiler
 
11755
        # FIXME: insert proper C++ library support
 
11756
        ld_shlibs_CXX=no
 
11757
        ;;
 
11758
      *)
 
11759
        # FIXME: insert proper C++ library support
 
11760
        ld_shlibs_CXX=no
 
11761
        ;;
 
11762
    esac
 
11763
    ;;
 
11764
  freebsd[12]*)
 
11765
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
11766
    ld_shlibs_CXX=no
 
11767
    ;;
 
11768
  freebsd-elf*)
 
11769
    archive_cmds_need_lc_CXX=no
 
11770
    ;;
 
11771
  freebsd* | dragonfly*)
 
11772
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
11773
    # conventions
 
11774
    ld_shlibs_CXX=yes
 
11775
    ;;
 
11776
  gnu*)
 
11777
    ;;
 
11778
  hpux9*)
 
11779
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
11780
    hardcode_libdir_separator_CXX=:
 
11781
    export_dynamic_flag_spec_CXX='${wl}-E'
 
11782
    hardcode_direct_CXX=yes
 
11783
    hardcode_minus_L_CXX=yes # Not in the search PATH,
 
11784
                                # but as the default
 
11785
                                # location of the library.
 
11786
 
 
11787
    case $cc_basename in
 
11788
    CC*)
 
11789
      # FIXME: insert proper C++ library support
 
11790
      ld_shlibs_CXX=no
 
11791
      ;;
 
11792
    aCC*)
 
11793
      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'
 
11794
      # Commands to make compiler produce verbose output that lists
 
11795
      # what "hidden" libraries, object files and flags are used when
 
11796
      # linking a shared library.
 
11797
      #
 
11798
      # There doesn't appear to be a way to prevent this compiler from
 
11799
      # explicitly linking system object files so we need to strip them
 
11800
      # from the output so that they don't get included in the library
 
11801
      # dependencies.
 
11802
      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'
 
11803
      ;;
 
11804
    *)
 
11805
      if test "$GXX" = yes; then
 
11806
        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'
 
11807
      else
 
11808
        # FIXME: insert proper C++ library support
 
11809
        ld_shlibs_CXX=no
 
11810
      fi
 
11811
      ;;
 
11812
    esac
 
11813
    ;;
 
11814
  hpux10*|hpux11*)
 
11815
    if test $with_gnu_ld = no; then
 
11816
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
11817
      hardcode_libdir_separator_CXX=:
 
11818
 
 
11819
      case $host_cpu in
 
11820
      hppa*64*|ia64*) ;;
 
11821
      *)
 
11822
        export_dynamic_flag_spec_CXX='${wl}-E'
 
11823
        ;;
 
11824
      esac
 
11825
    fi
 
11826
    case $host_cpu in
 
11827
    hppa*64*|ia64*)
 
11828
      hardcode_direct_CXX=no
 
11829
      hardcode_shlibpath_var_CXX=no
 
11830
      ;;
 
11831
    *)
 
11832
      hardcode_direct_CXX=yes
 
11833
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
11834
                                              # but as the default
 
11835
                                              # location of the library.
 
11836
      ;;
 
11837
    esac
 
11838
 
 
11839
    case $cc_basename in
 
11840
      CC*)
 
11841
        # FIXME: insert proper C++ library support
 
11842
        ld_shlibs_CXX=no
 
11843
        ;;
 
11844
      aCC*)
 
11845
        case $host_cpu in
 
11846
        hppa*64*)
 
11847
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11848
          ;;
 
11849
        ia64*)
 
11850
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11851
          ;;
 
11852
        *)
 
11853
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11854
          ;;
 
11855
        esac
 
11856
        # Commands to make compiler produce verbose output that lists
 
11857
        # what "hidden" libraries, object files and flags are used when
 
11858
        # linking a shared library.
 
11859
        #
 
11860
        # There doesn't appear to be a way to prevent this compiler from
 
11861
        # explicitly linking system object files so we need to strip them
 
11862
        # from the output so that they don't get included in the library
 
11863
        # dependencies.
 
11864
        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'
 
11865
        ;;
 
11866
      *)
 
11867
        if test "$GXX" = yes; then
 
11868
          if test $with_gnu_ld = no; then
 
11869
            case $host_cpu in
 
11870
            hppa*64*)
 
11871
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11872
              ;;
 
11873
            ia64*)
 
11874
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11875
              ;;
 
11876
            *)
 
11877
              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'
 
11878
              ;;
 
11879
            esac
 
11880
          fi
 
11881
        else
 
11882
          # FIXME: insert proper C++ library support
 
11883
          ld_shlibs_CXX=no
 
11884
        fi
 
11885
        ;;
 
11886
    esac
 
11887
    ;;
 
11888
  interix[3-9]*)
 
11889
    hardcode_direct_CXX=no
 
11890
    hardcode_shlibpath_var_CXX=no
 
11891
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11892
    export_dynamic_flag_spec_CXX='${wl}-E'
 
11893
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
11894
    # Instead, shared libraries are loaded at an image base (0x10000000 by
 
11895
    # default) and relocated if they conflict, which is a slow very memory
 
11896
    # consuming and fragmenting process.  To avoid this, we pick a random,
 
11897
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
11898
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
11899
    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'
 
11900
    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'
 
11901
    ;;
 
11902
  irix5* | irix6*)
 
11903
    case $cc_basename in
 
11904
      CC*)
 
11905
        # SGI C++
 
11906
        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'
 
11907
 
 
11908
        # Archives containing C++ object files must be created using
 
11909
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
11910
        # necessary to make sure instantiated templates are included
 
11911
        # in the archive.
 
11912
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
11913
        ;;
 
11914
      *)
 
11915
        if test "$GXX" = yes; then
 
11916
          if test "$with_gnu_ld" = no; then
 
11917
            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'
 
11918
          else
 
11919
            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'
 
11920
          fi
 
11921
        fi
 
11922
        link_all_deplibs_CXX=yes
 
11923
        ;;
 
11924
    esac
 
11925
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11926
    hardcode_libdir_separator_CXX=:
 
11927
    ;;
 
11928
  linux* | k*bsd*-gnu)
 
11929
    case $cc_basename in
 
11930
      KCC*)
 
11931
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
11932
 
 
11933
        # KCC will only create a shared library if the output file
 
11934
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
11935
        # to its proper name (with version) after linking.
 
11936
        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'
 
11937
        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'
 
11938
        # Commands to make compiler produce verbose output that lists
 
11939
        # what "hidden" libraries, object files and flags are used when
 
11940
        # linking a shared library.
 
11941
        #
 
11942
        # There doesn't appear to be a way to prevent this compiler from
 
11943
        # explicitly linking system object files so we need to strip them
 
11944
        # from the output so that they don't get included in the library
 
11945
        # dependencies.
 
11946
        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'
 
11947
 
 
11948
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
 
11949
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11950
 
 
11951
        # Archives containing C++ object files must be created using
 
11952
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
11953
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
11954
        ;;
 
11955
      icpc*)
 
11956
        # Intel C++
 
11957
        with_gnu_ld=yes
 
11958
        # version 8.0 and above of icpc choke on multiply defined symbols
 
11959
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
11960
        # earlier do not add the objects themselves.
 
11961
        case `$CC -V 2>&1` in
 
11962
        *"Version 7."*)
 
11963
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11964
          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'
 
11965
          ;;
 
11966
        *)  # Version 8.0 or newer
 
11967
          tmp_idyn=
 
11968
          case $host_cpu in
 
11969
            ia64*) tmp_idyn=' -i_dynamic';;
 
11970
          esac
 
11971
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11972
          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'
 
11973
          ;;
 
11974
        esac
 
11975
        archive_cmds_need_lc_CXX=no
 
11976
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11977
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11978
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
11979
        ;;
 
11980
      pgCC* | pgcpp*)
 
11981
        # Portland Group C++ compiler
 
11982
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
11983
        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'
 
11984
 
 
11985
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
11986
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11987
        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'
 
11988
        ;;
 
11989
      cxx*)
 
11990
        # Compaq C++
 
11991
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11992
        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'
 
11993
 
 
11994
        runpath_var=LD_RUN_PATH
 
11995
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
11996
        hardcode_libdir_separator_CXX=:
 
11997
 
 
11998
        # Commands to make compiler produce verbose output that lists
 
11999
        # what "hidden" libraries, object files and flags are used when
 
12000
        # linking a shared library.
 
12001
        #
 
12002
        # There doesn't appear to be a way to prevent this compiler from
 
12003
        # explicitly linking system object files so we need to strip them
 
12004
        # from the output so that they don't get included in the library
 
12005
        # dependencies.
 
12006
        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'
 
12007
        ;;
 
12008
      *)
 
12009
        case `$CC -V 2>&1 | sed 5q` in
 
12010
        *Sun\ C*)
 
12011
          # Sun C++ 5.9
 
12012
          no_undefined_flag_CXX=' -zdefs'
 
12013
          archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12014
          archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
 
12015
          hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12016
          whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
12017
 
 
12018
          # Not sure whether something based on
 
12019
          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
 
12020
          # would be better.
 
12021
          output_verbose_link_cmd='echo'
 
12022
 
 
12023
          # Archives containing C++ object files must be created using
 
12024
          # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
12025
          # necessary to make sure instantiated templates are included
 
12026
          # in the archive.
 
12027
          old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
12028
          ;;
 
12029
        esac
 
12030
        ;;
 
12031
    esac
 
12032
    ;;
 
12033
  lynxos*)
 
12034
    # FIXME: insert proper C++ library support
 
12035
    ld_shlibs_CXX=no
 
12036
    ;;
 
12037
  m88k*)
 
12038
    # FIXME: insert proper C++ library support
 
12039
    ld_shlibs_CXX=no
 
12040
    ;;
 
12041
  mvs*)
 
12042
    case $cc_basename in
 
12043
      cxx*)
 
12044
        # FIXME: insert proper C++ library support
 
12045
        ld_shlibs_CXX=no
 
12046
        ;;
 
12047
      *)
 
12048
        # FIXME: insert proper C++ library support
 
12049
        ld_shlibs_CXX=no
 
12050
        ;;
 
12051
    esac
 
12052
    ;;
 
12053
  netbsd*)
 
12054
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
12055
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
12056
      wlarc=
 
12057
      hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12058
      hardcode_direct_CXX=yes
 
12059
      hardcode_shlibpath_var_CXX=no
 
12060
    fi
 
12061
    # Workaround some broken pre-1.5 toolchains
 
12062
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
12063
    ;;
 
12064
  openbsd2*)
 
12065
    # C++ shared libraries are fairly broken
 
12066
    ld_shlibs_CXX=no
 
12067
    ;;
 
12068
  openbsd*)
 
12069
    if test -f /usr/libexec/ld.so; then
 
12070
      hardcode_direct_CXX=yes
 
12071
      hardcode_shlibpath_var_CXX=no
 
12072
      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
12073
      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12074
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
12075
        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
12076
        export_dynamic_flag_spec_CXX='${wl}-E'
 
12077
        whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
12078
      fi
 
12079
      output_verbose_link_cmd='echo'
 
12080
    else
 
12081
      ld_shlibs_CXX=no
 
12082
    fi
 
12083
    ;;
 
12084
  osf3*)
 
12085
    case $cc_basename in
 
12086
      KCC*)
 
12087
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
12088
 
 
12089
        # KCC will only create a shared library if the output file
 
12090
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
12091
        # to its proper name (with version) after linking.
 
12092
        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'
 
12093
 
 
12094
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12095
        hardcode_libdir_separator_CXX=:
 
12096
 
 
12097
        # Archives containing C++ object files must be created using
 
12098
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
12099
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
12100
 
 
12101
        ;;
 
12102
      RCC*)
 
12103
        # Rational C++ 2.4.1
 
12104
        # FIXME: insert proper C++ library support
 
12105
        ld_shlibs_CXX=no
 
12106
        ;;
 
12107
      cxx*)
 
12108
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
12109
        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'
 
12110
 
 
12111
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12112
        hardcode_libdir_separator_CXX=:
 
12113
 
 
12114
        # Commands to make compiler produce verbose output that lists
 
12115
        # what "hidden" libraries, object files and flags are used when
 
12116
        # linking a shared library.
 
12117
        #
 
12118
        # There doesn't appear to be a way to prevent this compiler from
 
12119
        # explicitly linking system object files so we need to strip them
 
12120
        # from the output so that they don't get included in the library
 
12121
        # dependencies.
 
12122
        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'
 
12123
        ;;
 
12124
      *)
 
12125
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
12126
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
12127
          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'
 
12128
 
 
12129
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12130
          hardcode_libdir_separator_CXX=:
 
12131
 
 
12132
          # Commands to make compiler produce verbose output that lists
 
12133
          # what "hidden" libraries, object files and flags are used when
 
12134
          # linking a shared library.
 
12135
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
12136
 
 
12137
        else
 
12138
          # FIXME: insert proper C++ library support
 
12139
          ld_shlibs_CXX=no
 
12140
        fi
 
12141
        ;;
 
12142
    esac
 
12143
    ;;
 
12144
  osf4* | osf5*)
 
12145
    case $cc_basename in
 
12146
      KCC*)
 
12147
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
12148
 
 
12149
        # KCC will only create a shared library if the output file
 
12150
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
12151
        # to its proper name (with version) after linking.
 
12152
        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'
 
12153
 
 
12154
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12155
        hardcode_libdir_separator_CXX=:
 
12156
 
 
12157
        # Archives containing C++ object files must be created using
 
12158
        # the KAI C++ compiler.
 
12159
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
 
12160
        ;;
 
12161
      RCC*)
 
12162
        # Rational C++ 2.4.1
 
12163
        # FIXME: insert proper C++ library support
 
12164
        ld_shlibs_CXX=no
 
12165
        ;;
 
12166
      cxx*)
 
12167
        allow_undefined_flag_CXX=' -expect_unresolved \*'
 
12168
        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'
 
12169
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
12170
          echo "-hidden">> $lib.exp~
 
12171
          $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~
 
12172
          $rm $lib.exp'
 
12173
 
 
12174
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
12175
        hardcode_libdir_separator_CXX=:
 
12176
 
 
12177
        # Commands to make compiler produce verbose output that lists
 
12178
        # what "hidden" libraries, object files and flags are used when
 
12179
        # linking a shared library.
 
12180
        #
 
12181
        # There doesn't appear to be a way to prevent this compiler from
 
12182
        # explicitly linking system object files so we need to strip them
 
12183
        # from the output so that they don't get included in the library
 
12184
        # dependencies.
 
12185
        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'
 
12186
        ;;
 
12187
      *)
 
12188
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
12189
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
12190
         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'
 
12191
 
 
12192
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12193
          hardcode_libdir_separator_CXX=:
 
12194
 
 
12195
          # Commands to make compiler produce verbose output that lists
 
12196
          # what "hidden" libraries, object files and flags are used when
 
12197
          # linking a shared library.
 
12198
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
12199
 
 
12200
        else
 
12201
          # FIXME: insert proper C++ library support
 
12202
          ld_shlibs_CXX=no
 
12203
        fi
 
12204
        ;;
 
12205
    esac
 
12206
    ;;
 
12207
  psos*)
 
12208
    # FIXME: insert proper C++ library support
 
12209
    ld_shlibs_CXX=no
 
12210
    ;;
 
12211
  sunos4*)
 
12212
    case $cc_basename in
 
12213
      CC*)
 
12214
        # Sun C++ 4.x
 
12215
        # FIXME: insert proper C++ library support
 
12216
        ld_shlibs_CXX=no
 
12217
        ;;
 
12218
      lcc*)
 
12219
        # Lucid
 
12220
        # FIXME: insert proper C++ library support
 
12221
        ld_shlibs_CXX=no
 
12222
        ;;
 
12223
      *)
 
12224
        # FIXME: insert proper C++ library support
 
12225
        ld_shlibs_CXX=no
 
12226
        ;;
 
12227
    esac
 
12228
    ;;
 
12229
  solaris*)
 
12230
    case $cc_basename in
 
12231
      CC*)
 
12232
        # Sun C++ 4.2, 5.x and Centerline C++
 
12233
        archive_cmds_need_lc_CXX=yes
 
12234
        no_undefined_flag_CXX=' -zdefs'
 
12235
        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12236
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
12237
        $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'
 
12238
 
 
12239
        hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12240
        hardcode_shlibpath_var_CXX=no
 
12241
        case $host_os in
 
12242
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
12243
          *)
 
12244
            # The compiler driver will combine and reorder linker options,
 
12245
            # but understands `-z linker_flag'.
 
12246
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
12247
            whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
 
12248
            ;;
 
12249
        esac
 
12250
        link_all_deplibs_CXX=yes
 
12251
 
 
12252
        output_verbose_link_cmd='echo'
 
12253
 
 
12254
        # Archives containing C++ object files must be created using
 
12255
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
12256
        # necessary to make sure instantiated templates are included
 
12257
        # in the archive.
 
12258
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
12259
        ;;
 
12260
      gcx*)
 
12261
        # Green Hills C++ Compiler
 
12262
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12263
 
 
12264
        # The C++ compiler must be used to create the archive.
 
12265
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
12266
        ;;
 
12267
      *)
 
12268
        # GNU C++ compiler with Solaris linker
 
12269
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
12270
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
12271
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
12272
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12273
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
12274
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
12275
 
 
12276
            # Commands to make compiler produce verbose output that lists
 
12277
            # what "hidden" libraries, object files and flags are used when
 
12278
            # linking a shared library.
 
12279
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
12280
          else
 
12281
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
12282
            # platform.
 
12283
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12284
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
12285
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
12286
 
 
12287
            # Commands to make compiler produce verbose output that lists
 
12288
            # what "hidden" libraries, object files and flags are used when
 
12289
            # linking a shared library.
 
12290
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
12291
          fi
 
12292
 
 
12293
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
12294
          case $host_os in
 
12295
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
12296
          *)
 
12297
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
12298
            ;;
 
12299
          esac
 
12300
        fi
 
12301
        ;;
 
12302
    esac
 
12303
    ;;
 
12304
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
12305
    no_undefined_flag_CXX='${wl}-z,text'
 
12306
    archive_cmds_need_lc_CXX=no
 
12307
    hardcode_shlibpath_var_CXX=no
 
12308
    runpath_var='LD_RUN_PATH'
 
12309
 
 
12310
    case $cc_basename in
 
12311
      CC*)
 
12312
        archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12313
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12314
        ;;
 
12315
      *)
 
12316
        archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12317
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12318
        ;;
 
12319
    esac
 
12320
    ;;
 
12321
  sysv5* | sco3.2v5* | sco5v6*)
 
12322
    # Note: We can NOT use -z defs as we might desire, because we do not
 
12323
    # link with -lc, and that would cause any symbols used from libc to
 
12324
    # always be unresolved, which means just about no library would
 
12325
    # ever link correctly.  If we're not using GNU ld we use -z text
 
12326
    # though, which does catch some bad symbols but isn't as heavy-handed
 
12327
    # as -z defs.
 
12328
    # For security reasons, it is highly recommended that you always
 
12329
    # use absolute paths for naming shared libraries, and exclude the
 
12330
    # DT_RUNPATH tag from executables and libraries.  But doing so
 
12331
    # requires that you compile everything twice, which is a pain.
 
12332
    # So that behaviour is only enabled if SCOABSPATH is set to a
 
12333
    # non-empty value in the environment.  Most likely only useful for
 
12334
    # creating official distributions of packages.
 
12335
    # This is a hack until libtool officially supports absolute path
 
12336
    # names for shared libraries.
 
12337
    no_undefined_flag_CXX='${wl}-z,text'
 
12338
    allow_undefined_flag_CXX='${wl}-z,nodefs'
 
12339
    archive_cmds_need_lc_CXX=no
 
12340
    hardcode_shlibpath_var_CXX=no
 
12341
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
12342
    hardcode_libdir_separator_CXX=':'
 
12343
    link_all_deplibs_CXX=yes
 
12344
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
 
12345
    runpath_var='LD_RUN_PATH'
 
12346
 
 
12347
    case $cc_basename in
 
12348
      CC*)
 
12349
        archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12350
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12351
        ;;
 
12352
      *)
 
12353
        archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12354
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
12355
        ;;
 
12356
    esac
 
12357
    ;;
 
12358
  tandem*)
 
12359
    case $cc_basename in
 
12360
      NCC*)
 
12361
        # NonStop-UX NCC 3.20
 
12362
        # FIXME: insert proper C++ library support
 
12363
        ld_shlibs_CXX=no
 
12364
        ;;
 
12365
      *)
 
12366
        # FIXME: insert proper C++ library support
 
12367
        ld_shlibs_CXX=no
 
12368
        ;;
 
12369
    esac
 
12370
    ;;
 
12371
  vxworks*)
 
12372
    # FIXME: insert proper C++ library support
 
12373
    ld_shlibs_CXX=no
 
12374
    ;;
 
12375
  *)
 
12376
    # FIXME: insert proper C++ library support
 
12377
    ld_shlibs_CXX=no
 
12378
    ;;
 
12379
esac
 
12380
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
12381
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
 
12382
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
12383
 
 
12384
GCC_CXX="$GXX"
 
12385
LD_CXX="$LD"
 
12386
 
 
12387
cat > conftest.$ac_ext <<EOF
 
12388
class Foo
 
12389
{
 
12390
public:
 
12391
  Foo (void) { a = 0; }
 
12392
private:
 
12393
  int a;
 
12394
};
 
12395
EOF
 
12396
 
 
12397
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12398
  (eval $ac_compile) 2>&5
 
12399
  ac_status=$?
 
12400
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12401
  (exit $ac_status); }; then
 
12402
  # Parse the compiler output and extract the necessary
 
12403
  # objects, libraries and library flags.
 
12404
 
 
12405
  # Sentinel used to keep track of whether or not we are before
 
12406
  # the conftest object file.
 
12407
  pre_test_object_deps_done=no
 
12408
 
 
12409
  # The `*' in the case matches for architectures that use `case' in
 
12410
  # $output_verbose_cmd can trigger glob expansion during the loop
 
12411
  # eval without this substitution.
 
12412
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
 
12413
 
 
12414
  for p in `eval $output_verbose_link_cmd`; do
 
12415
    case $p in
 
12416
 
 
12417
    -L* | -R* | -l*)
 
12418
       # Some compilers place space between "-{L,R}" and the path.
 
12419
       # Remove the space.
 
12420
       if test $p = "-L" \
 
12421
          || test $p = "-R"; then
 
12422
         prev=$p
 
12423
         continue
 
12424
       else
 
12425
         prev=
 
12426
       fi
 
12427
 
 
12428
       if test "$pre_test_object_deps_done" = no; then
 
12429
         case $p in
 
12430
         -L* | -R*)
 
12431
           # Internal compiler library paths should come after those
 
12432
           # provided the user.  The postdeps already come after the
 
12433
           # user supplied libs so there is no need to process them.
 
12434
           if test -z "$compiler_lib_search_path_CXX"; then
 
12435
             compiler_lib_search_path_CXX="${prev}${p}"
 
12436
           else
 
12437
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
12438
           fi
 
12439
           ;;
 
12440
         # The "-l" case would never come before the object being
 
12441
         # linked, so don't bother handling this case.
 
12442
         esac
 
12443
       else
 
12444
         if test -z "$postdeps_CXX"; then
 
12445
           postdeps_CXX="${prev}${p}"
 
12446
         else
 
12447
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
12448
         fi
 
12449
       fi
 
12450
       ;;
 
12451
 
 
12452
    *.$objext)
 
12453
       # This assumes that the test object file only shows up
 
12454
       # once in the compiler output.
 
12455
       if test "$p" = "conftest.$objext"; then
 
12456
         pre_test_object_deps_done=yes
 
12457
         continue
 
12458
       fi
 
12459
 
 
12460
       if test "$pre_test_object_deps_done" = no; then
 
12461
         if test -z "$predep_objects_CXX"; then
 
12462
           predep_objects_CXX="$p"
 
12463
         else
 
12464
           predep_objects_CXX="$predep_objects_CXX $p"
 
12465
         fi
 
12466
       else
 
12467
         if test -z "$postdep_objects_CXX"; then
 
12468
           postdep_objects_CXX="$p"
 
12469
         else
 
12470
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
12471
         fi
 
12472
       fi
 
12473
       ;;
 
12474
 
 
12475
    *) ;; # Ignore the rest.
 
12476
 
 
12477
    esac
 
12478
  done
 
12479
 
 
12480
  # Clean up.
 
12481
  rm -f a.out a.exe
 
12482
else
 
12483
  echo "libtool.m4: error: problem compiling CXX test program"
 
12484
fi
 
12485
 
 
12486
$rm -f confest.$objext
 
12487
 
 
12488
compiler_lib_search_dirs_CXX=
 
12489
if test -n "$compiler_lib_search_path_CXX"; then
 
12490
  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
 
12491
fi
 
12492
 
 
12493
# PORTME: override above test on systems where it is broken
 
12494
case $host_os in
 
12495
interix[3-9]*)
 
12496
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
12497
  # hack all around it, let's just trust "g++" to DTRT.
 
12498
  predep_objects_CXX=
 
12499
  postdep_objects_CXX=
 
12500
  postdeps_CXX=
 
12501
  ;;
 
12502
 
 
12503
linux*)
 
12504
  case `$CC -V 2>&1 | sed 5q` in
 
12505
  *Sun\ C*)
 
12506
    # Sun C++ 5.9
 
12507
    #
 
12508
    # The more standards-conforming stlport4 library is
 
12509
    # incompatible with the Cstd library. Avoid specifying
 
12510
    # it if it's in CXXFLAGS. Ignore libCrun as
 
12511
    # -library=stlport4 depends on it.
 
12512
    case " $CXX $CXXFLAGS " in
 
12513
    *" -library=stlport4 "*)
 
12514
      solaris_use_stlport4=yes
 
12515
      ;;
 
12516
    esac
 
12517
    if test "$solaris_use_stlport4" != yes; then
 
12518
      postdeps_CXX='-library=Cstd -library=Crun'
 
12519
    fi
 
12520
    ;;
 
12521
  esac
 
12522
  ;;
 
12523
 
 
12524
solaris*)
 
12525
  case $cc_basename in
 
12526
  CC*)
 
12527
    # The more standards-conforming stlport4 library is
 
12528
    # incompatible with the Cstd library. Avoid specifying
 
12529
    # it if it's in CXXFLAGS. Ignore libCrun as
 
12530
    # -library=stlport4 depends on it.
 
12531
    case " $CXX $CXXFLAGS " in
 
12532
    *" -library=stlport4 "*)
 
12533
      solaris_use_stlport4=yes
 
12534
      ;;
 
12535
    esac
 
12536
 
 
12537
    # Adding this requires a known-good setup of shared libraries for
 
12538
    # Sun compiler versions before 5.6, else PIC objects from an old
 
12539
    # archive will be linked into the output, leading to subtle bugs.
 
12540
    if test "$solaris_use_stlport4" != yes; then
 
12541
      postdeps_CXX='-library=Cstd -library=Crun'
 
12542
    fi
 
12543
    ;;
 
12544
  esac
 
12545
  ;;
 
12546
esac
 
12547
 
 
12548
case " $postdeps_CXX " in
 
12549
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
12550
esac
 
12551
 
 
12552
lt_prog_compiler_wl_CXX=
 
12553
lt_prog_compiler_pic_CXX=
 
12554
lt_prog_compiler_static_CXX=
 
12555
 
 
12556
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
12557
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
12558
 
 
12559
  # C++ specific cases for pic, static, wl, etc.
 
12560
  if test "$GXX" = yes; then
 
12561
    lt_prog_compiler_wl_CXX='-Wl,'
 
12562
    lt_prog_compiler_static_CXX='-static'
 
12563
 
 
12564
    case $host_os in
 
12565
    aix*)
 
12566
      # All AIX code is PIC.
 
12567
      if test "$host_cpu" = ia64; then
 
12568
        # AIX 5 now supports IA64 processor
 
12569
        lt_prog_compiler_static_CXX='-Bstatic'
 
12570
      fi
 
12571
      ;;
 
12572
    amigaos*)
 
12573
      # FIXME: we need at least 68020 code to build shared libraries, but
 
12574
      # adding the `-m68020' flag to GCC prevents building anything better,
 
12575
      # like `-m68040'.
 
12576
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
12577
      ;;
 
12578
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
12579
      # PIC is the default for these OSes.
 
12580
      ;;
 
12581
    mingw* | cygwin* | os2* | pw32*)
 
12582
      # This hack is so that the source file can tell whether it is being
 
12583
      # built for inclusion in a dll (and should export symbols for example).
 
12584
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
12585
      # (--disable-auto-import) libraries
 
12586
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
12587
      ;;
 
12588
    darwin* | rhapsody*)
 
12589
      # PIC is the default on this platform
 
12590
      # Common symbols not allowed in MH_DYLIB files
 
12591
      lt_prog_compiler_pic_CXX='-fno-common'
 
12592
      ;;
 
12593
    *djgpp*)
 
12594
      # DJGPP does not support shared libraries at all
 
12595
      lt_prog_compiler_pic_CXX=
 
12596
      ;;
 
12597
    interix[3-9]*)
 
12598
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
12599
      # Instead, we relocate shared libraries at runtime.
 
12600
      ;;
 
12601
    sysv4*MP*)
 
12602
      if test -d /usr/nec; then
 
12603
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
12604
      fi
 
12605
      ;;
 
12606
    hpux*)
 
12607
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
12608
      # not for PA HP-UX.
 
12609
      case $host_cpu in
 
12610
      hppa*64*|ia64*)
 
12611
        ;;
 
12612
      *)
 
12613
        lt_prog_compiler_pic_CXX='-fPIC'
 
12614
        ;;
 
12615
      esac
 
12616
      ;;
 
12617
    *)
 
12618
      lt_prog_compiler_pic_CXX='-fPIC'
 
12619
      ;;
 
12620
    esac
 
12621
  else
 
12622
    case $host_os in
 
12623
      aix[4-9]*)
 
12624
        # All AIX code is PIC.
 
12625
        if test "$host_cpu" = ia64; then
 
12626
          # AIX 5 now supports IA64 processor
 
12627
          lt_prog_compiler_static_CXX='-Bstatic'
 
12628
        else
 
12629
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
12630
        fi
 
12631
        ;;
 
12632
      chorus*)
 
12633
        case $cc_basename in
 
12634
        cxch68*)
 
12635
          # Green Hills C++ Compiler
 
12636
          # _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"
 
12637
          ;;
 
12638
        esac
 
12639
        ;;
 
12640
       darwin*)
 
12641
         # PIC is the default on this platform
 
12642
         # Common symbols not allowed in MH_DYLIB files
 
12643
         case $cc_basename in
 
12644
           xlc*)
 
12645
           lt_prog_compiler_pic_CXX='-qnocommon'
 
12646
           lt_prog_compiler_wl_CXX='-Wl,'
 
12647
           ;;
 
12648
         esac
 
12649
       ;;
 
12650
      dgux*)
 
12651
        case $cc_basename in
 
12652
          ec++*)
 
12653
            lt_prog_compiler_pic_CXX='-KPIC'
 
12654
            ;;
 
12655
          ghcx*)
 
12656
            # Green Hills C++ Compiler
 
12657
            lt_prog_compiler_pic_CXX='-pic'
 
12658
            ;;
 
12659
          *)
 
12660
            ;;
 
12661
        esac
 
12662
        ;;
 
12663
      freebsd* | dragonfly*)
 
12664
        # FreeBSD uses GNU C++
 
12665
        ;;
 
12666
      hpux9* | hpux10* | hpux11*)
 
12667
        case $cc_basename in
 
12668
          CC*)
 
12669
            lt_prog_compiler_wl_CXX='-Wl,'
 
12670
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
12671
            if test "$host_cpu" != ia64; then
 
12672
              lt_prog_compiler_pic_CXX='+Z'
 
12673
            fi
 
12674
            ;;
 
12675
          aCC*)
 
12676
            lt_prog_compiler_wl_CXX='-Wl,'
 
12677
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
12678
            case $host_cpu in
 
12679
            hppa*64*|ia64*)
 
12680
              # +Z the default
 
12681
              ;;
 
12682
            *)
 
12683
              lt_prog_compiler_pic_CXX='+Z'
 
12684
              ;;
 
12685
            esac
 
12686
            ;;
 
12687
          *)
 
12688
            ;;
 
12689
        esac
 
12690
        ;;
 
12691
      interix*)
 
12692
        # This is c89, which is MS Visual C++ (no shared libs)
 
12693
        # Anyone wants to do a port?
 
12694
        ;;
 
12695
      irix5* | irix6* | nonstopux*)
 
12696
        case $cc_basename in
 
12697
          CC*)
 
12698
            lt_prog_compiler_wl_CXX='-Wl,'
 
12699
            lt_prog_compiler_static_CXX='-non_shared'
 
12700
            # CC pic flag -KPIC is the default.
 
12701
            ;;
 
12702
          *)
 
12703
            ;;
 
12704
        esac
 
12705
        ;;
 
12706
      linux* | k*bsd*-gnu)
 
12707
        case $cc_basename in
 
12708
          KCC*)
 
12709
            # KAI C++ Compiler
 
12710
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
12711
            lt_prog_compiler_pic_CXX='-fPIC'
 
12712
            ;;
 
12713
          icpc* | ecpc*)
 
12714
            # Intel C++
 
12715
            lt_prog_compiler_wl_CXX='-Wl,'
 
12716
            lt_prog_compiler_pic_CXX='-KPIC'
 
12717
            lt_prog_compiler_static_CXX='-static'
 
12718
            ;;
 
12719
          pgCC* | pgcpp*)
 
12720
            # Portland Group C++ compiler.
 
12721
            lt_prog_compiler_wl_CXX='-Wl,'
 
12722
            lt_prog_compiler_pic_CXX='-fpic'
 
12723
            lt_prog_compiler_static_CXX='-Bstatic'
 
12724
            ;;
 
12725
          cxx*)
 
12726
            # Compaq C++
 
12727
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
12728
            # Linux and Compaq Tru64 Unix objects are PIC.
 
12729
            lt_prog_compiler_pic_CXX=
 
12730
            lt_prog_compiler_static_CXX='-non_shared'
 
12731
            ;;
 
12732
          *)
 
12733
            case `$CC -V 2>&1 | sed 5q` in
 
12734
            *Sun\ C*)
 
12735
              # Sun C++ 5.9
 
12736
              lt_prog_compiler_pic_CXX='-KPIC'
 
12737
              lt_prog_compiler_static_CXX='-Bstatic'
 
12738
              lt_prog_compiler_wl_CXX='-Qoption ld '
 
12739
              ;;
 
12740
            esac
 
12741
            ;;
 
12742
        esac
 
12743
        ;;
 
12744
      lynxos*)
 
12745
        ;;
 
12746
      m88k*)
 
12747
        ;;
 
12748
      mvs*)
 
12749
        case $cc_basename in
 
12750
          cxx*)
 
12751
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
12752
            ;;
 
12753
          *)
 
12754
            ;;
 
12755
        esac
 
12756
        ;;
 
12757
      netbsd*)
 
12758
        ;;
 
12759
      osf3* | osf4* | osf5*)
 
12760
        case $cc_basename in
 
12761
          KCC*)
 
12762
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
12763
            ;;
 
12764
          RCC*)
 
12765
            # Rational C++ 2.4.1
 
12766
            lt_prog_compiler_pic_CXX='-pic'
 
12767
            ;;
 
12768
          cxx*)
 
12769
            # Digital/Compaq C++
 
12770
            lt_prog_compiler_wl_CXX='-Wl,'
 
12771
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
12772
            # Linux and Compaq Tru64 Unix objects are PIC.
 
12773
            lt_prog_compiler_pic_CXX=
 
12774
            lt_prog_compiler_static_CXX='-non_shared'
 
12775
            ;;
 
12776
          *)
 
12777
            ;;
 
12778
        esac
 
12779
        ;;
 
12780
      psos*)
 
12781
        ;;
 
12782
      solaris*)
 
12783
        case $cc_basename in
 
12784
          CC*)
 
12785
            # Sun C++ 4.2, 5.x and Centerline C++
 
12786
            lt_prog_compiler_pic_CXX='-KPIC'
 
12787
            lt_prog_compiler_static_CXX='-Bstatic'
 
12788
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
12789
            ;;
 
12790
          gcx*)
 
12791
            # Green Hills C++ Compiler
 
12792
            lt_prog_compiler_pic_CXX='-PIC'
 
12793
            ;;
 
12794
          *)
 
12795
            ;;
 
12796
        esac
 
12797
        ;;
 
12798
      sunos4*)
 
12799
        case $cc_basename in
 
12800
          CC*)
 
12801
            # Sun C++ 4.x
 
12802
            lt_prog_compiler_pic_CXX='-pic'
 
12803
            lt_prog_compiler_static_CXX='-Bstatic'
 
12804
            ;;
 
12805
          lcc*)
 
12806
            # Lucid
 
12807
            lt_prog_compiler_pic_CXX='-pic'
 
12808
            ;;
 
12809
          *)
 
12810
            ;;
 
12811
        esac
 
12812
        ;;
 
12813
      tandem*)
 
12814
        case $cc_basename in
 
12815
          NCC*)
 
12816
            # NonStop-UX NCC 3.20
 
12817
            lt_prog_compiler_pic_CXX='-KPIC'
 
12818
            ;;
 
12819
          *)
 
12820
            ;;
 
12821
        esac
 
12822
        ;;
 
12823
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
12824
        case $cc_basename in
 
12825
          CC*)
 
12826
            lt_prog_compiler_wl_CXX='-Wl,'
 
12827
            lt_prog_compiler_pic_CXX='-KPIC'
 
12828
            lt_prog_compiler_static_CXX='-Bstatic'
 
12829
            ;;
 
12830
        esac
 
12831
        ;;
 
12832
      vxworks*)
 
12833
        ;;
 
12834
      *)
 
12835
        lt_prog_compiler_can_build_shared_CXX=no
 
12836
        ;;
 
12837
    esac
 
12838
  fi
 
12839
 
 
12840
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
12841
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
 
12842
 
 
12843
#
 
12844
# Check to make sure the PIC flag actually works.
 
12845
#
 
12846
if test -n "$lt_prog_compiler_pic_CXX"; then
 
12847
 
 
12848
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
12849
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
 
12850
if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
 
12851
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12852
else
 
12853
  lt_cv_prog_compiler_pic_works_CXX=no
 
12854
  ac_outfile=conftest.$ac_objext
 
12855
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12856
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
12857
   # Insert the option either (1) after the last *FLAGS variable, or
 
12858
   # (2) before a word containing "conftest.", or (3) at the end.
 
12859
   # Note that $ac_compile itself does not contain backslashes and begins
 
12860
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
12861
   # The option is referenced via a variable to avoid confusing sed.
 
12862
   lt_compile=`echo "$ac_compile" | $SED \
 
12863
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
12864
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
12865
   -e 's:$: $lt_compiler_flag:'`
 
12866
   (eval echo "\"\$as_me:12866: $lt_compile\"" >&5)
 
12867
   (eval "$lt_compile" 2>conftest.err)
 
12868
   ac_status=$?
 
12869
   cat conftest.err >&5
 
12870
   echo "$as_me:12870: \$? = $ac_status" >&5
 
12871
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
12872
     # The compiler can only warn and ignore the option if not recognized
 
12873
     # So say no if there are warnings other than the usual output.
 
12874
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
12875
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
12876
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
12877
       lt_cv_prog_compiler_pic_works_CXX=yes
 
12878
     fi
 
12879
   fi
 
12880
   $rm conftest*
 
12881
 
 
12882
fi
 
12883
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
 
12884
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
 
12885
 
 
12886
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
 
12887
    case $lt_prog_compiler_pic_CXX in
 
12888
     "" | " "*) ;;
 
12889
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
12890
     esac
 
12891
else
 
12892
    lt_prog_compiler_pic_CXX=
 
12893
     lt_prog_compiler_can_build_shared_CXX=no
 
12894
fi
 
12895
 
 
12896
fi
 
12897
case $host_os in
 
12898
  # For platforms which do not support PIC, -DPIC is meaningless:
 
12899
  *djgpp*)
 
12900
    lt_prog_compiler_pic_CXX=
 
12901
    ;;
 
12902
  *)
 
12903
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
12904
    ;;
 
12905
esac
 
12906
 
 
12907
#
 
12908
# Check to make sure the static flag actually works.
 
12909
#
 
12910
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
 
12911
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
12912
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
12913
if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
 
12914
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12915
else
 
12916
  lt_cv_prog_compiler_static_works_CXX=no
 
12917
   save_LDFLAGS="$LDFLAGS"
 
12918
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
12919
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
12920
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
12921
     # The linker can only warn and ignore the option if not recognized
 
12922
     # So say no if there are warnings
 
12923
     if test -s conftest.err; then
 
12924
       # Append any errors to the config.log.
 
12925
       cat conftest.err 1>&5
 
12926
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
12927
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
12928
       if diff conftest.exp conftest.er2 >/dev/null; then
 
12929
         lt_cv_prog_compiler_static_works_CXX=yes
 
12930
       fi
 
12931
     else
 
12932
       lt_cv_prog_compiler_static_works_CXX=yes
 
12933
     fi
 
12934
   fi
 
12935
   $rm -r conftest*
 
12936
   LDFLAGS="$save_LDFLAGS"
 
12937
 
 
12938
fi
 
12939
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
 
12940
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
 
12941
 
 
12942
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
 
12943
    :
 
12944
else
 
12945
    lt_prog_compiler_static_CXX=
 
12946
fi
 
12947
 
 
12948
 
 
12949
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
12950
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
12951
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
12952
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12953
else
 
12954
  lt_cv_prog_compiler_c_o_CXX=no
 
12955
   $rm -r conftest 2>/dev/null
 
12956
   mkdir conftest
 
12957
   cd conftest
 
12958
   mkdir out
 
12959
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12960
 
 
12961
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
12962
   # Insert the option either (1) after the last *FLAGS variable, or
 
12963
   # (2) before a word containing "conftest.", or (3) at the end.
 
12964
   # Note that $ac_compile itself does not contain backslashes and begins
 
12965
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
12966
   lt_compile=`echo "$ac_compile" | $SED \
 
12967
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
12968
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
12969
   -e 's:$: $lt_compiler_flag:'`
 
12970
   (eval echo "\"\$as_me:12970: $lt_compile\"" >&5)
 
12971
   (eval "$lt_compile" 2>out/conftest.err)
 
12972
   ac_status=$?
 
12973
   cat out/conftest.err >&5
 
12974
   echo "$as_me:12974: \$? = $ac_status" >&5
 
12975
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
12976
   then
 
12977
     # The compiler can only warn and ignore the option if not recognized
 
12978
     # So say no if there are warnings
 
12979
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
12980
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
12981
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
12982
       lt_cv_prog_compiler_c_o_CXX=yes
 
12983
     fi
 
12984
   fi
 
12985
   chmod u+w . 2>&5
 
12986
   $rm conftest*
 
12987
   # SGI C++ compiler will create directory out/ii_files/ for
 
12988
   # template instantiation
 
12989
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
12990
   $rm out/* && rmdir out
 
12991
   cd ..
 
12992
   rmdir conftest
 
12993
   $rm conftest*
 
12994
 
 
12995
fi
 
12996
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
12997
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
 
12998
 
 
12999
 
 
13000
hard_links="nottested"
 
13001
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
13002
  # do not overwrite the value of need_locks provided by the user
 
13003
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
13004
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
13005
  hard_links=yes
 
13006
  $rm conftest*
 
13007
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13008
  touch conftest.a
 
13009
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
13010
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13011
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
13012
echo "${ECHO_T}$hard_links" >&6; }
 
13013
  if test "$hard_links" = no; then
 
13014
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
13015
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
13016
    need_locks=warn
 
13017
  fi
 
13018
else
 
13019
  need_locks=no
 
13020
fi
 
13021
 
 
13022
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
13023
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
13024
 
 
13025
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
13026
  case $host_os in
 
13027
  aix[4-9]*)
 
13028
    # If we're using GNU nm, then we don't want the "-C" option.
 
13029
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
13030
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
13031
      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'
 
13032
    else
 
13033
      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'
 
13034
    fi
 
13035
    ;;
 
13036
  pw32*)
 
13037
    export_symbols_cmds_CXX="$ltdll_cmds"
 
13038
  ;;
 
13039
  cygwin* | mingw*)
 
13040
    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'
 
13041
  ;;
 
13042
  *)
 
13043
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
13044
  ;;
 
13045
  esac
 
13046
  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
13047
 
 
13048
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
13049
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
 
13050
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
13051
 
 
13052
#
 
13053
# Do we need to explicitly link libc?
 
13054
#
 
13055
case "x$archive_cmds_need_lc_CXX" in
 
13056
x|xyes)
 
13057
  # Assume -lc should be added
 
13058
  archive_cmds_need_lc_CXX=yes
 
13059
 
 
13060
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
13061
    case $archive_cmds_CXX in
 
13062
    *'~'*)
 
13063
      # FIXME: we may have to deal with multi-command sequences.
 
13064
      ;;
 
13065
    '$CC '*)
 
13066
      # Test whether the compiler implicitly links with -lc since on some
 
13067
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
13068
      # to ld, don't add -lc before -lgcc.
 
13069
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
13070
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
13071
      $rm conftest*
 
13072
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13073
 
 
13074
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
13075
  (eval $ac_compile) 2>&5
 
13076
  ac_status=$?
 
13077
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13078
  (exit $ac_status); } 2>conftest.err; then
 
13079
        soname=conftest
 
13080
        lib=conftest
 
13081
        libobjs=conftest.$ac_objext
 
13082
        deplibs=
 
13083
        wl=$lt_prog_compiler_wl_CXX
 
13084
        pic_flag=$lt_prog_compiler_pic_CXX
 
13085
        compiler_flags=-v
 
13086
        linker_flags=-v
 
13087
        verstring=
 
13088
        output_objdir=.
 
13089
        libname=conftest
 
13090
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
13091
        allow_undefined_flag_CXX=
 
13092
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
13093
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
13094
  ac_status=$?
 
13095
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13096
  (exit $ac_status); }
 
13097
        then
 
13098
          archive_cmds_need_lc_CXX=no
 
13099
        else
 
13100
          archive_cmds_need_lc_CXX=yes
 
13101
        fi
 
13102
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
13103
      else
 
13104
        cat conftest.err 1>&5
 
13105
      fi
 
13106
      $rm conftest*
 
13107
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
13108
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
 
13109
      ;;
 
13110
    esac
 
13111
  fi
 
13112
  ;;
 
13113
esac
 
13114
 
 
13115
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
13116
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
13117
library_names_spec=
 
13118
libname_spec='lib$name'
 
13119
soname_spec=
 
13120
shrext_cmds=".so"
 
13121
postinstall_cmds=
 
13122
postuninstall_cmds=
 
13123
finish_cmds=
 
13124
finish_eval=
 
13125
shlibpath_var=
 
13126
shlibpath_overrides_runpath=unknown
 
13127
version_type=none
 
13128
dynamic_linker="$host_os ld.so"
 
13129
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
13130
 
 
13131
need_lib_prefix=unknown
 
13132
hardcode_into_libs=no
 
13133
 
 
13134
# when you set need_version to no, make sure it does not cause -set_version
 
13135
# flags to be left without arguments
 
13136
need_version=unknown
 
13137
 
 
13138
case $host_os in
 
13139
aix3*)
 
13140
  version_type=linux
 
13141
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
13142
  shlibpath_var=LIBPATH
 
13143
 
 
13144
  # AIX 3 has no versioning support, so we append a major version to the name.
 
13145
  soname_spec='${libname}${release}${shared_ext}$major'
 
13146
  ;;
 
13147
 
 
13148
aix[4-9]*)
 
13149
  version_type=linux
 
13150
  need_lib_prefix=no
 
13151
  need_version=no
 
13152
  hardcode_into_libs=yes
 
13153
  if test "$host_cpu" = ia64; then
 
13154
    # AIX 5 supports IA64
 
13155
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
13156
    shlibpath_var=LD_LIBRARY_PATH
 
13157
  else
 
13158
    # With GCC up to 2.95.x, collect2 would create an import file
 
13159
    # for dependence libraries.  The import file would start with
 
13160
    # the line `#! .'.  This would cause the generated library to
 
13161
    # depend on `.', always an invalid library.  This was fixed in
 
13162
    # development snapshots of GCC prior to 3.0.
 
13163
    case $host_os in
 
13164
      aix4 | aix4.[01] | aix4.[01].*)
 
13165
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
13166
           echo ' yes '
 
13167
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
13168
        :
 
13169
      else
 
13170
        can_build_shared=no
 
13171
      fi
 
13172
      ;;
 
13173
    esac
 
13174
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
13175
    # soname into executable. Probably we can add versioning support to
 
13176
    # collect2, so additional links can be useful in future.
 
13177
    if test "$aix_use_runtimelinking" = yes; then
 
13178
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
13179
      # instead of lib<name>.a to let people know that these are not
 
13180
      # typical AIX shared libraries.
 
13181
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13182
    else
 
13183
      # We preserve .a as extension for shared libraries through AIX4.2
 
13184
      # and later when we are not doing run time linking.
 
13185
      library_names_spec='${libname}${release}.a $libname.a'
 
13186
      soname_spec='${libname}${release}${shared_ext}$major'
 
13187
    fi
 
13188
    shlibpath_var=LIBPATH
 
13189
  fi
 
13190
  ;;
 
13191
 
 
13192
amigaos*)
 
13193
  library_names_spec='$libname.ixlibrary $libname.a'
 
13194
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
13195
  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'
 
13196
  ;;
 
13197
 
 
13198
beos*)
 
13199
  library_names_spec='${libname}${shared_ext}'
 
13200
  dynamic_linker="$host_os ld.so"
 
13201
  shlibpath_var=LIBRARY_PATH
 
13202
  ;;
 
13203
 
 
13204
bsdi[45]*)
 
13205
  version_type=linux
 
13206
  need_version=no
 
13207
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13208
  soname_spec='${libname}${release}${shared_ext}$major'
 
13209
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
13210
  shlibpath_var=LD_LIBRARY_PATH
 
13211
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
13212
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
13213
  # the default ld.so.conf also contains /usr/contrib/lib and
 
13214
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
13215
  # libtool to hard-code these into programs
 
13216
  ;;
 
13217
 
 
13218
cygwin* | mingw* | pw32*)
 
13219
  version_type=windows
 
13220
  shrext_cmds=".dll"
 
13221
  need_version=no
 
13222
  need_lib_prefix=no
 
13223
 
 
13224
  case $GCC,$host_os in
 
13225
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
13226
    library_names_spec='$libname.dll.a'
 
13227
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
13228
    postinstall_cmds='base_file=`basename \${file}`~
 
13229
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
13230
      dldir=$destdir/`dirname \$dlpath`~
 
13231
      test -d \$dldir || mkdir -p \$dldir~
 
13232
      $install_prog $dir/$dlname \$dldir/$dlname~
 
13233
      chmod a+x \$dldir/$dlname'
 
13234
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
13235
      dlpath=$dir/\$dldll~
 
13236
       $rm \$dlpath'
 
13237
    shlibpath_overrides_runpath=yes
 
13238
 
 
13239
    case $host_os in
 
13240
    cygwin*)
 
13241
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
13242
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13243
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
13244
      ;;
 
13245
    mingw*)
 
13246
      # MinGW DLLs use traditional 'lib' prefix
 
13247
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13248
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
13249
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
13250
        # It is most probably a Windows format PATH printed by
 
13251
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
13252
        # path with ; separators, and with drive letters. We can handle the
 
13253
        # drive letters (cygwin fileutils understands them), so leave them,
 
13254
        # especially as we might pass files found there to a mingw objdump,
 
13255
        # which wouldn't understand a cygwinified path. Ahh.
 
13256
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
13257
      else
 
13258
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
13259
      fi
 
13260
      ;;
 
13261
    pw32*)
 
13262
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
13263
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13264
      ;;
 
13265
    esac
 
13266
    ;;
 
13267
 
 
13268
  *)
 
13269
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
13270
    ;;
 
13271
  esac
 
13272
  dynamic_linker='Win32 ld.exe'
 
13273
  # FIXME: first we should search . and the directory the executable is in
 
13274
  shlibpath_var=PATH
 
13275
  ;;
 
13276
 
 
13277
darwin* | rhapsody*)
 
13278
  dynamic_linker="$host_os dyld"
 
13279
  version_type=darwin
 
13280
  need_lib_prefix=no
 
13281
  need_version=no
 
13282
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
13283
  soname_spec='${libname}${release}${major}$shared_ext'
 
13284
  shlibpath_overrides_runpath=yes
 
13285
  shlibpath_var=DYLD_LIBRARY_PATH
 
13286
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
13287
 
 
13288
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
13289
  ;;
 
13290
 
 
13291
dgux*)
 
13292
  version_type=linux
 
13293
  need_lib_prefix=no
 
13294
  need_version=no
 
13295
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
13296
  soname_spec='${libname}${release}${shared_ext}$major'
 
13297
  shlibpath_var=LD_LIBRARY_PATH
 
13298
  ;;
 
13299
 
 
13300
freebsd1*)
 
13301
  dynamic_linker=no
 
13302
  ;;
 
13303
 
 
13304
freebsd* | dragonfly*)
 
13305
  # DragonFly does not have aout.  When/if they implement a new
 
13306
  # versioning mechanism, adjust this.
 
13307
  if test -x /usr/bin/objformat; then
 
13308
    objformat=`/usr/bin/objformat`
 
13309
  else
 
13310
    case $host_os in
 
13311
    freebsd[123]*) objformat=aout ;;
 
13312
    *) objformat=elf ;;
 
13313
    esac
 
13314
  fi
 
13315
  # Handle Gentoo/FreeBSD as it was Linux
 
13316
  case $host_vendor in
 
13317
    gentoo)
 
13318
      version_type=linux ;;
 
13319
    *)
 
13320
      version_type=freebsd-$objformat ;;
 
13321
  esac
 
13322
 
 
13323
  case $version_type in
 
13324
    freebsd-elf*)
 
13325
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13326
      need_version=no
 
13327
      need_lib_prefix=no
 
13328
      ;;
 
13329
    freebsd-*)
 
13330
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
13331
      need_version=yes
 
13332
      ;;
 
13333
    linux)
 
13334
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13335
      soname_spec='${libname}${release}${shared_ext}$major'
 
13336
      need_lib_prefix=no
 
13337
      need_version=no
 
13338
      ;;
 
13339
  esac
 
13340
  shlibpath_var=LD_LIBRARY_PATH
 
13341
  case $host_os in
 
13342
  freebsd2*)
 
13343
    shlibpath_overrides_runpath=yes
 
13344
    ;;
 
13345
  freebsd3.[01]* | freebsdelf3.[01]*)
 
13346
    shlibpath_overrides_runpath=yes
 
13347
    hardcode_into_libs=yes
 
13348
    ;;
 
13349
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
13350
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
13351
    shlibpath_overrides_runpath=no
 
13352
    hardcode_into_libs=yes
 
13353
    ;;
 
13354
  *) # from 4.6 on, and DragonFly
 
13355
    shlibpath_overrides_runpath=yes
 
13356
    hardcode_into_libs=yes
 
13357
    ;;
 
13358
  esac
 
13359
  ;;
 
13360
 
 
13361
gnu*)
 
13362
  version_type=linux
 
13363
  need_lib_prefix=no
 
13364
  need_version=no
 
13365
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
13366
  soname_spec='${libname}${release}${shared_ext}$major'
 
13367
  shlibpath_var=LD_LIBRARY_PATH
 
13368
  hardcode_into_libs=yes
 
13369
  ;;
 
13370
 
 
13371
hpux9* | hpux10* | hpux11*)
 
13372
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
13373
  # link against other versions.
 
13374
  version_type=sunos
 
13375
  need_lib_prefix=no
 
13376
  need_version=no
 
13377
  case $host_cpu in
 
13378
  ia64*)
 
13379
    shrext_cmds='.so'
 
13380
    hardcode_into_libs=yes
 
13381
    dynamic_linker="$host_os dld.so"
 
13382
    shlibpath_var=LD_LIBRARY_PATH
 
13383
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
13384
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13385
    soname_spec='${libname}${release}${shared_ext}$major'
 
13386
    if test "X$HPUX_IA64_MODE" = X32; then
 
13387
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
13388
    else
 
13389
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
13390
    fi
 
13391
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
13392
    ;;
 
13393
   hppa*64*)
 
13394
     shrext_cmds='.sl'
 
13395
     hardcode_into_libs=yes
 
13396
     dynamic_linker="$host_os dld.sl"
 
13397
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
13398
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
13399
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13400
     soname_spec='${libname}${release}${shared_ext}$major'
 
13401
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
13402
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
13403
     ;;
 
13404
   *)
 
13405
    shrext_cmds='.sl'
 
13406
    dynamic_linker="$host_os dld.sl"
 
13407
    shlibpath_var=SHLIB_PATH
 
13408
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
13409
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13410
    soname_spec='${libname}${release}${shared_ext}$major'
 
13411
    ;;
 
13412
  esac
 
13413
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
13414
  postinstall_cmds='chmod 555 $lib'
 
13415
  ;;
 
13416
 
 
13417
interix[3-9]*)
 
13418
  version_type=linux
 
13419
  need_lib_prefix=no
 
13420
  need_version=no
 
13421
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13422
  soname_spec='${libname}${release}${shared_ext}$major'
 
13423
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
13424
  shlibpath_var=LD_LIBRARY_PATH
 
13425
  shlibpath_overrides_runpath=no
 
13426
  hardcode_into_libs=yes
 
13427
  ;;
 
13428
 
 
13429
irix5* | irix6* | nonstopux*)
 
13430
  case $host_os in
 
13431
    nonstopux*) version_type=nonstopux ;;
 
13432
    *)
 
13433
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
13434
                version_type=linux
 
13435
        else
 
13436
                version_type=irix
 
13437
        fi ;;
 
13438
  esac
 
13439
  need_lib_prefix=no
 
13440
  need_version=no
 
13441
  soname_spec='${libname}${release}${shared_ext}$major'
 
13442
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13443
  case $host_os in
 
13444
  irix5* | nonstopux*)
 
13445
    libsuff= shlibsuff=
 
13446
    ;;
 
13447
  *)
 
13448
    case $LD in # libtool.m4 will add one of these switches to LD
 
13449
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
13450
      libsuff= shlibsuff= libmagic=32-bit;;
 
13451
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
13452
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
13453
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
13454
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
13455
    *) libsuff= shlibsuff= libmagic=never-match;;
 
13456
    esac
 
13457
    ;;
 
13458
  esac
 
13459
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
13460
  shlibpath_overrides_runpath=no
 
13461
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
13462
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
13463
  hardcode_into_libs=yes
 
13464
  ;;
 
13465
 
 
13466
# No shared lib support for Linux oldld, aout, or coff.
 
13467
linux*oldld* | linux*aout* | linux*coff*)
 
13468
  dynamic_linker=no
 
13469
  ;;
 
13470
 
 
13471
# This must be Linux ELF.
 
13472
linux* | k*bsd*-gnu)
 
13473
  version_type=linux
 
13474
  need_lib_prefix=no
 
13475
  need_version=no
 
13476
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13477
  soname_spec='${libname}${release}${shared_ext}$major'
 
13478
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
13479
  shlibpath_var=LD_LIBRARY_PATH
 
13480
  shlibpath_overrides_runpath=no
 
13481
  # This implies no fast_install, which is unacceptable.
 
13482
  # Some rework will be needed to allow for fast_install
 
13483
  # before this can be enabled.
 
13484
  hardcode_into_libs=yes
 
13485
 
 
13486
  # Append ld.so.conf contents to the search path
 
13487
  if test -f /etc/ld.so.conf; then
 
13488
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
13489
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
13490
  fi
 
13491
 
 
13492
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
13493
  # powerpc, because MkLinux only supported shared libraries with the
 
13494
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
13495
  # most powerpc-linux boxes support dynamic linking these days and
 
13496
  # people can always --disable-shared, the test was removed, and we
 
13497
  # assume the GNU/Linux dynamic linker is in use.
 
13498
  dynamic_linker='GNU/Linux ld.so'
 
13499
  ;;
 
13500
 
 
13501
netbsd*)
 
13502
  version_type=sunos
 
13503
  need_lib_prefix=no
 
13504
  need_version=no
 
13505
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
13506
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13507
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
13508
    dynamic_linker='NetBSD (a.out) ld.so'
 
13509
  else
 
13510
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13511
    soname_spec='${libname}${release}${shared_ext}$major'
 
13512
    dynamic_linker='NetBSD ld.elf_so'
 
13513
  fi
 
13514
  shlibpath_var=LD_LIBRARY_PATH
 
13515
  shlibpath_overrides_runpath=yes
 
13516
  hardcode_into_libs=yes
 
13517
  ;;
 
13518
 
 
13519
newsos6)
 
13520
  version_type=linux
 
13521
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13522
  shlibpath_var=LD_LIBRARY_PATH
 
13523
  shlibpath_overrides_runpath=yes
 
13524
  ;;
 
13525
 
 
13526
nto-qnx*)
 
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
  shlibpath_var=LD_LIBRARY_PATH
 
13533
  shlibpath_overrides_runpath=yes
 
13534
  ;;
 
13535
 
 
13536
openbsd*)
 
13537
  version_type=sunos
 
13538
  sys_lib_dlsearch_path_spec="/usr/lib"
 
13539
  need_lib_prefix=no
 
13540
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
13541
  case $host_os in
 
13542
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
13543
    *)                         need_version=no  ;;
 
13544
  esac
 
13545
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13546
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
13547
  shlibpath_var=LD_LIBRARY_PATH
 
13548
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
13549
    case $host_os in
 
13550
      openbsd2.[89] | openbsd2.[89].*)
 
13551
        shlibpath_overrides_runpath=no
 
13552
        ;;
 
13553
      *)
 
13554
        shlibpath_overrides_runpath=yes
 
13555
        ;;
 
13556
      esac
 
13557
  else
 
13558
    shlibpath_overrides_runpath=yes
 
13559
  fi
 
13560
  ;;
 
13561
 
 
13562
os2*)
 
13563
  libname_spec='$name'
 
13564
  shrext_cmds=".dll"
 
13565
  need_lib_prefix=no
 
13566
  library_names_spec='$libname${shared_ext} $libname.a'
 
13567
  dynamic_linker='OS/2 ld.exe'
 
13568
  shlibpath_var=LIBPATH
 
13569
  ;;
 
13570
 
 
13571
osf3* | osf4* | osf5*)
 
13572
  version_type=osf
 
13573
  need_lib_prefix=no
 
13574
  need_version=no
 
13575
  soname_spec='${libname}${release}${shared_ext}$major'
 
13576
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13577
  shlibpath_var=LD_LIBRARY_PATH
 
13578
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
13579
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
13580
  ;;
 
13581
 
 
13582
rdos*)
 
13583
  dynamic_linker=no
 
13584
  ;;
 
13585
 
 
13586
solaris*)
 
13587
  version_type=linux
 
13588
  need_lib_prefix=no
 
13589
  need_version=no
 
13590
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13591
  soname_spec='${libname}${release}${shared_ext}$major'
 
13592
  shlibpath_var=LD_LIBRARY_PATH
 
13593
  shlibpath_overrides_runpath=yes
 
13594
  hardcode_into_libs=yes
 
13595
  # ldd complains unless libraries are executable
 
13596
  postinstall_cmds='chmod +x $lib'
 
13597
  ;;
 
13598
 
 
13599
sunos4*)
 
13600
  version_type=sunos
 
13601
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13602
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
13603
  shlibpath_var=LD_LIBRARY_PATH
 
13604
  shlibpath_overrides_runpath=yes
 
13605
  if test "$with_gnu_ld" = yes; then
 
13606
    need_lib_prefix=no
 
13607
  fi
 
13608
  need_version=yes
 
13609
  ;;
 
13610
 
 
13611
sysv4 | sysv4.3*)
 
13612
  version_type=linux
 
13613
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13614
  soname_spec='${libname}${release}${shared_ext}$major'
 
13615
  shlibpath_var=LD_LIBRARY_PATH
 
13616
  case $host_vendor in
 
13617
    sni)
 
13618
      shlibpath_overrides_runpath=no
 
13619
      need_lib_prefix=no
 
13620
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
13621
      runpath_var=LD_RUN_PATH
 
13622
      ;;
 
13623
    siemens)
 
13624
      need_lib_prefix=no
 
13625
      ;;
 
13626
    motorola)
 
13627
      need_lib_prefix=no
 
13628
      need_version=no
 
13629
      shlibpath_overrides_runpath=no
 
13630
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
13631
      ;;
 
13632
  esac
 
13633
  ;;
 
13634
 
 
13635
sysv4*MP*)
 
13636
  if test -d /usr/nec ;then
 
13637
    version_type=linux
 
13638
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
13639
    soname_spec='$libname${shared_ext}.$major'
 
13640
    shlibpath_var=LD_LIBRARY_PATH
 
13641
  fi
 
13642
  ;;
 
13643
 
 
13644
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
13645
  version_type=freebsd-elf
 
13646
  need_lib_prefix=no
 
13647
  need_version=no
 
13648
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13649
  soname_spec='${libname}${release}${shared_ext}$major'
 
13650
  shlibpath_var=LD_LIBRARY_PATH
 
13651
  hardcode_into_libs=yes
 
13652
  if test "$with_gnu_ld" = yes; then
 
13653
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
13654
    shlibpath_overrides_runpath=no
 
13655
  else
 
13656
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
13657
    shlibpath_overrides_runpath=yes
 
13658
    case $host_os in
 
13659
      sco3.2v5*)
 
13660
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
13661
        ;;
 
13662
    esac
 
13663
  fi
 
13664
  sys_lib_dlsearch_path_spec='/usr/lib'
 
13665
  ;;
 
13666
 
 
13667
uts4*)
 
13668
  version_type=linux
 
13669
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13670
  soname_spec='${libname}${release}${shared_ext}$major'
 
13671
  shlibpath_var=LD_LIBRARY_PATH
 
13672
  ;;
 
13673
 
 
13674
*)
 
13675
  dynamic_linker=no
 
13676
  ;;
 
13677
esac
 
13678
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
13679
echo "${ECHO_T}$dynamic_linker" >&6; }
 
13680
test "$dynamic_linker" = no && can_build_shared=no
 
13681
 
 
13682
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
13683
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13684
else
 
13685
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
13686
fi
 
13687
 
 
13688
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
13689
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
13690
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13691
else
 
13692
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
13693
fi
 
13694
 
 
13695
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
13696
 
 
13697
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
13698
if test "$GCC" = yes; then
 
13699
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
13700
fi
 
13701
 
 
13702
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
13703
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
13704
hardcode_action_CXX=
 
13705
if test -n "$hardcode_libdir_flag_spec_CXX" || \
 
13706
   test -n "$runpath_var_CXX" || \
 
13707
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
 
13708
 
 
13709
  # We can hardcode non-existant directories.
 
13710
  if test "$hardcode_direct_CXX" != no &&
 
13711
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
13712
     # have to relink, otherwise we might link with an installed library
 
13713
     # when we should be linking with a yet-to-be-installed one
 
13714
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
13715
     test "$hardcode_minus_L_CXX" != no; then
 
13716
    # Linking always hardcodes the temporary library directory.
 
13717
    hardcode_action_CXX=relink
 
13718
  else
 
13719
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
13720
    hardcode_action_CXX=immediate
 
13721
  fi
 
13722
else
 
13723
  # We cannot hardcode anything, or else we can only hardcode existing
 
13724
  # directories.
 
13725
  hardcode_action_CXX=unsupported
 
13726
fi
 
13727
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
13728
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
 
13729
 
 
13730
if test "$hardcode_action_CXX" = relink; then
 
13731
  # Fast installation is not supported
 
13732
  enable_fast_install=no
 
13733
elif test "$shlibpath_overrides_runpath" = yes ||
 
13734
     test "$enable_shared" = no; then
 
13735
  # Fast installation is not necessary
 
13736
  enable_fast_install=needless
 
13737
fi
 
13738
 
 
13739
 
 
13740
# The else clause should only fire when bootstrapping the
 
13741
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
13742
# with your package, and you will get complaints that there are
 
13743
# no rules to generate ltmain.sh.
 
13744
if test -f "$ltmain"; then
 
13745
  # See if we are running on zsh, and set the options which allow our commands through
 
13746
  # without removal of \ escapes.
 
13747
  if test -n "${ZSH_VERSION+set}" ; then
 
13748
    setopt NO_GLOB_SUBST
 
13749
  fi
 
13750
  # Now quote all the things that may contain metacharacters while being
 
13751
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
13752
  # variables and quote the copies for generation of the libtool script.
 
13753
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
13754
    SED SHELL STRIP \
 
13755
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
13756
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
13757
    deplibs_check_method reload_flag reload_cmds need_locks \
 
13758
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
13759
    lt_cv_sys_global_symbol_to_c_name_address \
 
13760
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
13761
    old_postinstall_cmds old_postuninstall_cmds \
 
13762
    compiler_CXX \
 
13763
    CC_CXX \
 
13764
    LD_CXX \
 
13765
    lt_prog_compiler_wl_CXX \
 
13766
    lt_prog_compiler_pic_CXX \
 
13767
    lt_prog_compiler_static_CXX \
 
13768
    lt_prog_compiler_no_builtin_flag_CXX \
 
13769
    export_dynamic_flag_spec_CXX \
 
13770
    thread_safe_flag_spec_CXX \
 
13771
    whole_archive_flag_spec_CXX \
 
13772
    enable_shared_with_static_runtimes_CXX \
 
13773
    old_archive_cmds_CXX \
 
13774
    old_archive_from_new_cmds_CXX \
 
13775
    predep_objects_CXX \
 
13776
    postdep_objects_CXX \
 
13777
    predeps_CXX \
 
13778
    postdeps_CXX \
 
13779
    compiler_lib_search_path_CXX \
 
13780
    compiler_lib_search_dirs_CXX \
 
13781
    archive_cmds_CXX \
 
13782
    archive_expsym_cmds_CXX \
 
13783
    postinstall_cmds_CXX \
 
13784
    postuninstall_cmds_CXX \
 
13785
    old_archive_from_expsyms_cmds_CXX \
 
13786
    allow_undefined_flag_CXX \
 
13787
    no_undefined_flag_CXX \
 
13788
    export_symbols_cmds_CXX \
 
13789
    hardcode_libdir_flag_spec_CXX \
 
13790
    hardcode_libdir_flag_spec_ld_CXX \
 
13791
    hardcode_libdir_separator_CXX \
 
13792
    hardcode_automatic_CXX \
 
13793
    module_cmds_CXX \
 
13794
    module_expsym_cmds_CXX \
 
13795
    lt_cv_prog_compiler_c_o_CXX \
 
13796
    fix_srcfile_path_CXX \
 
13797
    exclude_expsyms_CXX \
 
13798
    include_expsyms_CXX; do
 
13799
 
 
13800
    case $var in
 
13801
    old_archive_cmds_CXX | \
 
13802
    old_archive_from_new_cmds_CXX | \
 
13803
    archive_cmds_CXX | \
 
13804
    archive_expsym_cmds_CXX | \
 
13805
    module_cmds_CXX | \
 
13806
    module_expsym_cmds_CXX | \
 
13807
    old_archive_from_expsyms_cmds_CXX | \
 
13808
    export_symbols_cmds_CXX | \
 
13809
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
13810
    postinstall_cmds | postuninstall_cmds | \
 
13811
    old_postinstall_cmds | old_postuninstall_cmds | \
 
13812
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
13813
      # Double-quote double-evaled strings.
 
13814
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
13815
      ;;
 
13816
    *)
 
13817
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
13818
      ;;
 
13819
    esac
 
13820
  done
 
13821
 
 
13822
  case $lt_echo in
 
13823
  *'\$0 --fallback-echo"')
 
13824
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
13825
    ;;
 
13826
  esac
 
13827
 
 
13828
cfgfile="$ofile"
 
13829
 
 
13830
  cat <<__EOF__ >> "$cfgfile"
 
13831
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
13832
 
 
13833
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
13834
 
 
13835
# Shell to use when invoking shell scripts.
 
13836
SHELL=$lt_SHELL
 
13837
 
 
13838
# Whether or not to build shared libraries.
 
13839
build_libtool_libs=$enable_shared
 
13840
 
 
13841
# Whether or not to build static libraries.
 
13842
build_old_libs=$enable_static
 
13843
 
 
13844
# Whether or not to add -lc for building shared libraries.
 
13845
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
13846
 
 
13847
# Whether or not to disallow shared libs when runtime libs are static
 
13848
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
13849
 
 
13850
# Whether or not to optimize for fast installation.
 
13851
fast_install=$enable_fast_install
 
13852
 
 
13853
# The host system.
 
13854
host_alias=$host_alias
 
13855
host=$host
 
13856
host_os=$host_os
 
13857
 
 
13858
# The build system.
 
13859
build_alias=$build_alias
 
13860
build=$build
 
13861
build_os=$build_os
 
13862
 
 
13863
# An echo program that does not interpret backslashes.
 
13864
echo=$lt_echo
 
13865
 
 
13866
# The archiver.
 
13867
AR=$lt_AR
 
13868
AR_FLAGS=$lt_AR_FLAGS
 
13869
 
 
13870
# A C compiler.
 
13871
LTCC=$lt_LTCC
 
13872
 
 
13873
# LTCC compiler flags.
 
13874
LTCFLAGS=$lt_LTCFLAGS
 
13875
 
 
13876
# A language-specific compiler.
 
13877
CC=$lt_compiler_CXX
 
13878
 
 
13879
# Is the compiler the GNU C compiler?
 
13880
with_gcc=$GCC_CXX
 
13881
 
 
13882
# An ERE matcher.
 
13883
EGREP=$lt_EGREP
 
13884
 
 
13885
# The linker used to build libraries.
 
13886
LD=$lt_LD_CXX
 
13887
 
 
13888
# Whether we need hard or soft links.
 
13889
LN_S=$lt_LN_S
 
13890
 
 
13891
# A BSD-compatible nm program.
 
13892
NM=$lt_NM
 
13893
 
 
13894
# A symbol stripping program
 
13895
STRIP=$lt_STRIP
 
13896
 
 
13897
# Used to examine libraries when file_magic_cmd begins "file"
 
13898
MAGIC_CMD=$MAGIC_CMD
 
13899
 
 
13900
# Used on cygwin: DLL creation program.
 
13901
DLLTOOL="$DLLTOOL"
 
13902
 
 
13903
# Used on cygwin: object dumper.
 
13904
OBJDUMP="$OBJDUMP"
 
13905
 
 
13906
# Used on cygwin: assembler.
 
13907
AS="$AS"
 
13908
 
 
13909
# The name of the directory that contains temporary libtool files.
 
13910
objdir=$objdir
 
13911
 
 
13912
# How to create reloadable object files.
 
13913
reload_flag=$lt_reload_flag
 
13914
reload_cmds=$lt_reload_cmds
 
13915
 
 
13916
# How to pass a linker flag through the compiler.
 
13917
wl=$lt_lt_prog_compiler_wl_CXX
 
13918
 
 
13919
# Object file suffix (normally "o").
 
13920
objext="$ac_objext"
 
13921
 
 
13922
# Old archive suffix (normally "a").
 
13923
libext="$libext"
 
13924
 
 
13925
# Shared library suffix (normally ".so").
 
13926
shrext_cmds='$shrext_cmds'
 
13927
 
 
13928
# Executable file suffix (normally "").
 
13929
exeext="$exeext"
 
13930
 
 
13931
# Additional compiler flags for building library objects.
 
13932
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
13933
pic_mode=$pic_mode
 
13934
 
 
13935
# What is the maximum length of a command?
 
13936
max_cmd_len=$lt_cv_sys_max_cmd_len
 
13937
 
 
13938
# Does compiler simultaneously support -c and -o options?
 
13939
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
13940
 
 
13941
# Must we lock files when doing compilation?
 
13942
need_locks=$lt_need_locks
 
13943
 
 
13944
# Do we need the lib prefix for modules?
 
13945
need_lib_prefix=$need_lib_prefix
 
13946
 
 
13947
# Do we need a version for libraries?
 
13948
need_version=$need_version
 
13949
 
 
13950
# Whether dlopen is supported.
 
13951
dlopen_support=$enable_dlopen
 
13952
 
 
13953
# Whether dlopen of programs is supported.
 
13954
dlopen_self=$enable_dlopen_self
 
13955
 
 
13956
# Whether dlopen of statically linked programs is supported.
 
13957
dlopen_self_static=$enable_dlopen_self_static
 
13958
 
 
13959
# Compiler flag to prevent dynamic linking.
 
13960
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
13961
 
 
13962
# Compiler flag to turn off builtin functions.
 
13963
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
13964
 
 
13965
# Compiler flag to allow reflexive dlopens.
 
13966
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
13967
 
 
13968
# Compiler flag to generate shared objects directly from archives.
 
13969
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
13970
 
 
13971
# Compiler flag to generate thread-safe objects.
 
13972
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
 
13973
 
 
13974
# Library versioning type.
 
13975
version_type=$version_type
 
13976
 
 
13977
# Format of library name prefix.
 
13978
libname_spec=$lt_libname_spec
 
13979
 
 
13980
# List of archive names.  First name is the real one, the rest are links.
 
13981
# The last name is the one that the linker finds with -lNAME.
 
13982
library_names_spec=$lt_library_names_spec
 
13983
 
 
13984
# The coded name of the library, if different from the real name.
 
13985
soname_spec=$lt_soname_spec
 
13986
 
 
13987
# Commands used to build and install an old-style archive.
 
13988
RANLIB=$lt_RANLIB
 
13989
old_archive_cmds=$lt_old_archive_cmds_CXX
 
13990
old_postinstall_cmds=$lt_old_postinstall_cmds
 
13991
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
13992
 
 
13993
# Create an old-style archive from a shared archive.
 
13994
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
13995
 
 
13996
# Create a temporary old-style archive to link instead of a shared archive.
 
13997
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
13998
 
 
13999
# Commands used to build and install a shared archive.
 
14000
archive_cmds=$lt_archive_cmds_CXX
 
14001
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
14002
postinstall_cmds=$lt_postinstall_cmds
 
14003
postuninstall_cmds=$lt_postuninstall_cmds
 
14004
 
 
14005
# Commands used to build a loadable module (assumed same as above if empty)
 
14006
module_cmds=$lt_module_cmds_CXX
 
14007
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
14008
 
 
14009
# Commands to strip libraries.
 
14010
old_striplib=$lt_old_striplib
 
14011
striplib=$lt_striplib
 
14012
 
 
14013
# Dependencies to place before the objects being linked to create a
 
14014
# shared library.
 
14015
predep_objects=$lt_predep_objects_CXX
 
14016
 
 
14017
# Dependencies to place after the objects being linked to create a
 
14018
# shared library.
 
14019
postdep_objects=$lt_postdep_objects_CXX
 
14020
 
 
14021
# Dependencies to place before the objects being linked to create a
 
14022
# shared library.
 
14023
predeps=$lt_predeps_CXX
 
14024
 
 
14025
# Dependencies to place after the objects being linked to create a
 
14026
# shared library.
 
14027
postdeps=$lt_postdeps_CXX
 
14028
 
 
14029
# The directories searched by this compiler when creating a shared
 
14030
# library
 
14031
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
 
14032
 
 
14033
# The library search path used internally by the compiler when linking
 
14034
# a shared library.
 
14035
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
14036
 
 
14037
# Method to check whether dependent libraries are shared objects.
 
14038
deplibs_check_method=$lt_deplibs_check_method
 
14039
 
 
14040
# Command to use when deplibs_check_method == file_magic.
 
14041
file_magic_cmd=$lt_file_magic_cmd
 
14042
 
 
14043
# Flag that allows shared libraries with undefined symbols to be built.
 
14044
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
14045
 
 
14046
# Flag that forces no undefined symbols.
 
14047
no_undefined_flag=$lt_no_undefined_flag_CXX
 
14048
 
 
14049
# Commands used to finish a libtool library installation in a directory.
 
14050
finish_cmds=$lt_finish_cmds
 
14051
 
 
14052
# Same as above, but a single script fragment to be evaled but not shown.
 
14053
finish_eval=$lt_finish_eval
 
14054
 
 
14055
# Take the output of nm and produce a listing of raw symbols and C names.
 
14056
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
14057
 
 
14058
# Transform the output of nm in a proper C declaration
 
14059
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
14060
 
 
14061
# Transform the output of nm in a C name address pair
 
14062
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
14063
 
 
14064
# This is the shared library runtime path variable.
 
14065
runpath_var=$runpath_var
 
14066
 
 
14067
# This is the shared library path variable.
 
14068
shlibpath_var=$shlibpath_var
 
14069
 
 
14070
# Is shlibpath searched before the hard-coded library search path?
 
14071
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
14072
 
 
14073
# How to hardcode a shared library path into an executable.
 
14074
hardcode_action=$hardcode_action_CXX
 
14075
 
 
14076
# Whether we should hardcode library paths into libraries.
 
14077
hardcode_into_libs=$hardcode_into_libs
 
14078
 
 
14079
# Flag to hardcode \$libdir into a binary during linking.
 
14080
# This must work even if \$libdir does not exist.
 
14081
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
14082
 
 
14083
# If ld is used when linking, flag to hardcode \$libdir into
 
14084
# a binary during linking. This must work even if \$libdir does
 
14085
# not exist.
 
14086
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
14087
 
 
14088
# Whether we need a single -rpath flag with a separated argument.
 
14089
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
14090
 
 
14091
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
14092
# resulting binary.
 
14093
hardcode_direct=$hardcode_direct_CXX
 
14094
 
 
14095
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
14096
# resulting binary.
 
14097
hardcode_minus_L=$hardcode_minus_L_CXX
 
14098
 
 
14099
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
14100
# the resulting binary.
 
14101
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
14102
 
 
14103
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
14104
# and all subsequent libraries and executables linked against it.
 
14105
hardcode_automatic=$hardcode_automatic_CXX
 
14106
 
 
14107
# Variables whose values should be saved in libtool wrapper scripts and
 
14108
# restored at relink time.
 
14109
variables_saved_for_relink="$variables_saved_for_relink"
 
14110
 
 
14111
# Whether libtool must link a program against all its dependency libraries.
 
14112
link_all_deplibs=$link_all_deplibs_CXX
 
14113
 
 
14114
# Compile-time system search path for libraries
 
14115
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
14116
 
 
14117
# Run-time system search path for libraries
 
14118
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
14119
 
 
14120
# Fix the shell variable \$srcfile for the compiler.
 
14121
fix_srcfile_path=$lt_fix_srcfile_path
 
14122
 
 
14123
# Set to yes if exported symbols are required.
 
14124
always_export_symbols=$always_export_symbols_CXX
 
14125
 
 
14126
# The commands to list exported symbols.
 
14127
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
14128
 
 
14129
# The commands to extract the exported symbol list from a shared archive.
 
14130
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
14131
 
 
14132
# Symbols that should not be listed in the preloaded symbols.
 
14133
exclude_expsyms=$lt_exclude_expsyms_CXX
 
14134
 
 
14135
# Symbols that must always be exported.
 
14136
include_expsyms=$lt_include_expsyms_CXX
 
14137
 
 
14138
# ### END LIBTOOL TAG CONFIG: $tagname
 
14139
 
 
14140
__EOF__
 
14141
 
 
14142
 
 
14143
else
 
14144
  # If there is no Makefile yet, we rely on a make rule to execute
 
14145
  # `config.status --recheck' to rerun these tests and create the
 
14146
  # libtool script then.
 
14147
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
14148
  if test -f "$ltmain_in"; then
 
14149
    test -f Makefile && make "$ltmain"
 
14150
  fi
 
14151
fi
 
14152
 
 
14153
 
 
14154
ac_ext=c
 
14155
ac_cpp='$CPP $CPPFLAGS'
 
14156
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
14157
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14158
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
14159
 
 
14160
CC=$lt_save_CC
 
14161
LDCXX=$LD
 
14162
LD=$lt_save_LD
 
14163
GCC=$lt_save_GCC
 
14164
with_gnu_ldcxx=$with_gnu_ld
 
14165
with_gnu_ld=$lt_save_with_gnu_ld
 
14166
lt_cv_path_LDCXX=$lt_cv_path_LD
 
14167
lt_cv_path_LD=$lt_save_path_LD
 
14168
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
14169
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
14170
 
 
14171
        else
 
14172
          tagname=""
 
14173
        fi
 
14174
        ;;
 
14175
 
 
14176
      F77)
 
14177
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
14178
 
 
14179
ac_ext=f
 
14180
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
14181
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14182
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
14183
 
 
14184
 
 
14185
archive_cmds_need_lc_F77=no
 
14186
allow_undefined_flag_F77=
 
14187
always_export_symbols_F77=no
 
14188
archive_expsym_cmds_F77=
 
14189
export_dynamic_flag_spec_F77=
 
14190
hardcode_direct_F77=no
 
14191
hardcode_libdir_flag_spec_F77=
 
14192
hardcode_libdir_flag_spec_ld_F77=
 
14193
hardcode_libdir_separator_F77=
 
14194
hardcode_minus_L_F77=no
 
14195
hardcode_automatic_F77=no
 
14196
module_cmds_F77=
 
14197
module_expsym_cmds_F77=
 
14198
link_all_deplibs_F77=unknown
 
14199
old_archive_cmds_F77=$old_archive_cmds
 
14200
no_undefined_flag_F77=
 
14201
whole_archive_flag_spec_F77=
 
14202
enable_shared_with_static_runtimes_F77=no
 
14203
 
 
14204
# Source file extension for f77 test sources.
 
14205
ac_ext=f
 
14206
 
 
14207
# Object file extension for compiled f77 test sources.
 
14208
objext=o
 
14209
objext_F77=$objext
 
14210
 
 
14211
# Code to be used in simple compile tests
 
14212
lt_simple_compile_test_code="\
 
14213
      subroutine t
 
14214
      return
 
14215
      end
 
14216
"
 
14217
 
 
14218
# Code to be used in simple link tests
 
14219
lt_simple_link_test_code="\
 
14220
      program t
 
14221
      end
 
14222
"
 
14223
 
 
14224
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
14225
 
 
14226
# If no C compiler was specified, use CC.
 
14227
LTCC=${LTCC-"$CC"}
 
14228
 
 
14229
# If no C compiler flags were specified, use CFLAGS.
 
14230
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
14231
 
 
14232
# Allow CC to be a program name with arguments.
 
14233
compiler=$CC
 
14234
 
 
14235
 
 
14236
# save warnings/boilerplate of simple test code
 
14237
ac_outfile=conftest.$ac_objext
 
14238
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
14239
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
14240
_lt_compiler_boilerplate=`cat conftest.err`
 
14241
$rm conftest*
 
14242
 
 
14243
ac_outfile=conftest.$ac_objext
 
14244
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
14245
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
14246
_lt_linker_boilerplate=`cat conftest.err`
 
14247
$rm -r conftest*
 
14248
 
 
14249
 
 
14250
# Allow CC to be a program name with arguments.
 
14251
lt_save_CC="$CC"
 
14252
CC=${F77-"f77"}
 
14253
compiler=$CC
 
14254
compiler_F77=$CC
 
14255
for cc_temp in $compiler""; do
 
14256
  case $cc_temp in
 
14257
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
14258
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
14259
    \-*) ;;
 
14260
    *) break;;
 
14261
  esac
 
14262
done
 
14263
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
14264
 
 
14265
 
 
14266
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
14267
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
 
14268
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
14269
echo "${ECHO_T}$can_build_shared" >&6; }
 
14270
 
 
14271
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
14272
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
 
14273
test "$can_build_shared" = "no" && enable_shared=no
 
14274
 
 
14275
# On AIX, shared libraries and static libraries use the same namespace, and
 
14276
# are all built from PIC.
 
14277
case $host_os in
 
14278
aix3*)
 
14279
  test "$enable_shared" = yes && enable_static=no
 
14280
  if test -n "$RANLIB"; then
 
14281
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
14282
    postinstall_cmds='$RANLIB $lib'
 
14283
  fi
 
14284
  ;;
 
14285
aix[4-9]*)
 
14286
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
14287
    test "$enable_shared" = yes && enable_static=no
 
14288
  fi
 
14289
  ;;
 
14290
esac
 
14291
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
 
14292
echo "${ECHO_T}$enable_shared" >&6; }
 
14293
 
 
14294
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
14295
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
 
14296
# Make sure either enable_shared or enable_static is yes.
 
14297
test "$enable_shared" = yes || enable_static=yes
 
14298
{ echo "$as_me:$LINENO: result: $enable_static" >&5
 
14299
echo "${ECHO_T}$enable_static" >&6; }
 
14300
 
 
14301
GCC_F77="$G77"
 
14302
LD_F77="$LD"
 
14303
 
 
14304
lt_prog_compiler_wl_F77=
 
14305
lt_prog_compiler_pic_F77=
 
14306
lt_prog_compiler_static_F77=
 
14307
 
 
14308
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
14309
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
14310
 
 
14311
  if test "$GCC" = yes; then
 
14312
    lt_prog_compiler_wl_F77='-Wl,'
 
14313
    lt_prog_compiler_static_F77='-static'
 
14314
 
 
14315
    case $host_os in
 
14316
      aix*)
 
14317
      # All AIX code is PIC.
 
14318
      if test "$host_cpu" = ia64; then
 
14319
        # AIX 5 now supports IA64 processor
 
14320
        lt_prog_compiler_static_F77='-Bstatic'
 
14321
      fi
 
14322
      ;;
 
14323
 
 
14324
    amigaos*)
 
14325
      # FIXME: we need at least 68020 code to build shared libraries, but
 
14326
      # adding the `-m68020' flag to GCC prevents building anything better,
 
14327
      # like `-m68040'.
 
14328
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
 
14329
      ;;
 
14330
 
 
14331
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
14332
      # PIC is the default for these OSes.
 
14333
      ;;
 
14334
 
 
14335
    mingw* | cygwin* | pw32* | os2*)
 
14336
      # This hack is so that the source file can tell whether it is being
 
14337
      # built for inclusion in a dll (and should export symbols for example).
 
14338
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
14339
      # (--disable-auto-import) libraries
 
14340
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
14341
      ;;
 
14342
 
 
14343
    darwin* | rhapsody*)
 
14344
      # PIC is the default on this platform
 
14345
      # Common symbols not allowed in MH_DYLIB files
 
14346
      lt_prog_compiler_pic_F77='-fno-common'
 
14347
      ;;
 
14348
 
 
14349
    interix[3-9]*)
 
14350
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
14351
      # Instead, we relocate shared libraries at runtime.
 
14352
      ;;
 
14353
 
 
14354
    msdosdjgpp*)
 
14355
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
14356
      # on systems that don't support them.
 
14357
      lt_prog_compiler_can_build_shared_F77=no
 
14358
      enable_shared=no
 
14359
      ;;
 
14360
 
 
14361
    sysv4*MP*)
 
14362
      if test -d /usr/nec; then
 
14363
        lt_prog_compiler_pic_F77=-Kconform_pic
 
14364
      fi
 
14365
      ;;
 
14366
 
 
14367
    hpux*)
 
14368
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
14369
      # not for PA HP-UX.
 
14370
      case $host_cpu in
 
14371
      hppa*64*|ia64*)
 
14372
        # +Z the default
 
14373
        ;;
 
14374
      *)
 
14375
        lt_prog_compiler_pic_F77='-fPIC'
 
14376
        ;;
 
14377
      esac
 
14378
      ;;
 
14379
 
 
14380
    *)
 
14381
      lt_prog_compiler_pic_F77='-fPIC'
 
14382
      ;;
 
14383
    esac
 
14384
  else
 
14385
    # PORTME Check for flag to pass linker flags through the system compiler.
 
14386
    case $host_os in
 
14387
    aix*)
 
14388
      lt_prog_compiler_wl_F77='-Wl,'
 
14389
      if test "$host_cpu" = ia64; then
 
14390
        # AIX 5 now supports IA64 processor
 
14391
        lt_prog_compiler_static_F77='-Bstatic'
 
14392
      else
 
14393
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
 
14394
      fi
 
14395
      ;;
 
14396
      darwin*)
 
14397
        # PIC is the default on this platform
 
14398
        # Common symbols not allowed in MH_DYLIB files
 
14399
       case $cc_basename in
 
14400
         xlc*)
 
14401
         lt_prog_compiler_pic_F77='-qnocommon'
 
14402
         lt_prog_compiler_wl_F77='-Wl,'
 
14403
         ;;
 
14404
       esac
 
14405
       ;;
 
14406
 
 
14407
    mingw* | cygwin* | pw32* | os2*)
 
14408
      # This hack is so that the source file can tell whether it is being
 
14409
      # built for inclusion in a dll (and should export symbols for example).
 
14410
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
14411
      ;;
 
14412
 
 
14413
    hpux9* | hpux10* | hpux11*)
 
14414
      lt_prog_compiler_wl_F77='-Wl,'
 
14415
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
14416
      # not for PA HP-UX.
 
14417
      case $host_cpu in
 
14418
      hppa*64*|ia64*)
 
14419
        # +Z the default
 
14420
        ;;
 
14421
      *)
 
14422
        lt_prog_compiler_pic_F77='+Z'
 
14423
        ;;
 
14424
      esac
 
14425
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
14426
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
 
14427
      ;;
 
14428
 
 
14429
    irix5* | irix6* | nonstopux*)
 
14430
      lt_prog_compiler_wl_F77='-Wl,'
 
14431
      # PIC (with -KPIC) is the default.
 
14432
      lt_prog_compiler_static_F77='-non_shared'
 
14433
      ;;
 
14434
 
 
14435
    newsos6)
 
14436
      lt_prog_compiler_pic_F77='-KPIC'
 
14437
      lt_prog_compiler_static_F77='-Bstatic'
 
14438
      ;;
 
14439
 
 
14440
    linux* | k*bsd*-gnu)
 
14441
      case $cc_basename in
 
14442
      icc* | ecc*)
 
14443
        lt_prog_compiler_wl_F77='-Wl,'
 
14444
        lt_prog_compiler_pic_F77='-KPIC'
 
14445
        lt_prog_compiler_static_F77='-static'
 
14446
        ;;
 
14447
      pgcc* | pgf77* | pgf90* | pgf95*)
 
14448
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
14449
        # which looks to be a dead project)
 
14450
        lt_prog_compiler_wl_F77='-Wl,'
 
14451
        lt_prog_compiler_pic_F77='-fpic'
 
14452
        lt_prog_compiler_static_F77='-Bstatic'
 
14453
        ;;
 
14454
      ccc*)
 
14455
        lt_prog_compiler_wl_F77='-Wl,'
 
14456
        # All Alpha code is PIC.
 
14457
        lt_prog_compiler_static_F77='-non_shared'
 
14458
        ;;
 
14459
      *)
 
14460
        case `$CC -V 2>&1 | sed 5q` in
 
14461
        *Sun\ C*)
 
14462
          # Sun C 5.9
 
14463
          lt_prog_compiler_pic_F77='-KPIC'
 
14464
          lt_prog_compiler_static_F77='-Bstatic'
 
14465
          lt_prog_compiler_wl_F77='-Wl,'
 
14466
          ;;
 
14467
        *Sun\ F*)
 
14468
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
14469
          lt_prog_compiler_pic_F77='-KPIC'
 
14470
          lt_prog_compiler_static_F77='-Bstatic'
 
14471
          lt_prog_compiler_wl_F77=''
 
14472
          ;;
 
14473
        esac
 
14474
        ;;
 
14475
      esac
 
14476
      ;;
 
14477
 
 
14478
    osf3* | osf4* | osf5*)
 
14479
      lt_prog_compiler_wl_F77='-Wl,'
 
14480
      # All OSF/1 code is PIC.
 
14481
      lt_prog_compiler_static_F77='-non_shared'
 
14482
      ;;
 
14483
 
 
14484
    rdos*)
 
14485
      lt_prog_compiler_static_F77='-non_shared'
 
14486
      ;;
 
14487
 
 
14488
    solaris*)
 
14489
      lt_prog_compiler_pic_F77='-KPIC'
 
14490
      lt_prog_compiler_static_F77='-Bstatic'
 
14491
      case $cc_basename in
 
14492
      f77* | f90* | f95*)
 
14493
        lt_prog_compiler_wl_F77='-Qoption ld ';;
 
14494
      *)
 
14495
        lt_prog_compiler_wl_F77='-Wl,';;
 
14496
      esac
 
14497
      ;;
 
14498
 
 
14499
    sunos4*)
 
14500
      lt_prog_compiler_wl_F77='-Qoption ld '
 
14501
      lt_prog_compiler_pic_F77='-PIC'
 
14502
      lt_prog_compiler_static_F77='-Bstatic'
 
14503
      ;;
 
14504
 
 
14505
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
14506
      lt_prog_compiler_wl_F77='-Wl,'
 
14507
      lt_prog_compiler_pic_F77='-KPIC'
 
14508
      lt_prog_compiler_static_F77='-Bstatic'
 
14509
      ;;
 
14510
 
 
14511
    sysv4*MP*)
 
14512
      if test -d /usr/nec ;then
 
14513
        lt_prog_compiler_pic_F77='-Kconform_pic'
 
14514
        lt_prog_compiler_static_F77='-Bstatic'
 
14515
      fi
 
14516
      ;;
 
14517
 
 
14518
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
14519
      lt_prog_compiler_wl_F77='-Wl,'
 
14520
      lt_prog_compiler_pic_F77='-KPIC'
 
14521
      lt_prog_compiler_static_F77='-Bstatic'
 
14522
      ;;
 
14523
 
 
14524
    unicos*)
 
14525
      lt_prog_compiler_wl_F77='-Wl,'
 
14526
      lt_prog_compiler_can_build_shared_F77=no
 
14527
      ;;
 
14528
 
 
14529
    uts4*)
 
14530
      lt_prog_compiler_pic_F77='-pic'
 
14531
      lt_prog_compiler_static_F77='-Bstatic'
 
14532
      ;;
 
14533
 
 
14534
    *)
 
14535
      lt_prog_compiler_can_build_shared_F77=no
 
14536
      ;;
 
14537
    esac
 
14538
  fi
 
14539
 
 
14540
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
14541
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
 
14542
 
 
14543
#
 
14544
# Check to make sure the PIC flag actually works.
 
14545
#
 
14546
if test -n "$lt_prog_compiler_pic_F77"; then
 
14547
 
 
14548
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
14549
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
 
14550
if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
 
14551
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14552
else
 
14553
  lt_cv_prog_compiler_pic_works_F77=no
 
14554
  ac_outfile=conftest.$ac_objext
 
14555
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14556
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
 
14557
   # Insert the option either (1) after the last *FLAGS variable, or
 
14558
   # (2) before a word containing "conftest.", or (3) at the end.
 
14559
   # Note that $ac_compile itself does not contain backslashes and begins
 
14560
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14561
   # The option is referenced via a variable to avoid confusing sed.
 
14562
   lt_compile=`echo "$ac_compile" | $SED \
 
14563
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14564
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14565
   -e 's:$: $lt_compiler_flag:'`
 
14566
   (eval echo "\"\$as_me:14566: $lt_compile\"" >&5)
 
14567
   (eval "$lt_compile" 2>conftest.err)
 
14568
   ac_status=$?
 
14569
   cat conftest.err >&5
 
14570
   echo "$as_me:14570: \$? = $ac_status" >&5
 
14571
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
14572
     # The compiler can only warn and ignore the option if not recognized
 
14573
     # So say no if there are warnings other than the usual output.
 
14574
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
14575
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14576
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
14577
       lt_cv_prog_compiler_pic_works_F77=yes
 
14578
     fi
 
14579
   fi
 
14580
   $rm conftest*
 
14581
 
 
14582
fi
 
14583
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
 
14584
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
 
14585
 
 
14586
if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
 
14587
    case $lt_prog_compiler_pic_F77 in
 
14588
     "" | " "*) ;;
 
14589
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
 
14590
     esac
 
14591
else
 
14592
    lt_prog_compiler_pic_F77=
 
14593
     lt_prog_compiler_can_build_shared_F77=no
 
14594
fi
 
14595
 
 
14596
fi
 
14597
case $host_os in
 
14598
  # For platforms which do not support PIC, -DPIC is meaningless:
 
14599
  *djgpp*)
 
14600
    lt_prog_compiler_pic_F77=
 
14601
    ;;
 
14602
  *)
 
14603
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
 
14604
    ;;
 
14605
esac
 
14606
 
 
14607
#
 
14608
# Check to make sure the static flag actually works.
 
14609
#
 
14610
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
 
14611
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
14612
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
14613
if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
 
14614
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14615
else
 
14616
  lt_cv_prog_compiler_static_works_F77=no
 
14617
   save_LDFLAGS="$LDFLAGS"
 
14618
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
14619
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
14620
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
14621
     # The linker can only warn and ignore the option if not recognized
 
14622
     # So say no if there are warnings
 
14623
     if test -s conftest.err; then
 
14624
       # Append any errors to the config.log.
 
14625
       cat conftest.err 1>&5
 
14626
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
14627
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
14628
       if diff conftest.exp conftest.er2 >/dev/null; then
 
14629
         lt_cv_prog_compiler_static_works_F77=yes
 
14630
       fi
 
14631
     else
 
14632
       lt_cv_prog_compiler_static_works_F77=yes
 
14633
     fi
 
14634
   fi
 
14635
   $rm -r conftest*
 
14636
   LDFLAGS="$save_LDFLAGS"
 
14637
 
 
14638
fi
 
14639
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
 
14640
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
 
14641
 
 
14642
if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
 
14643
    :
 
14644
else
 
14645
    lt_prog_compiler_static_F77=
 
14646
fi
 
14647
 
 
14648
 
 
14649
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
14650
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
14651
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
 
14652
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14653
else
 
14654
  lt_cv_prog_compiler_c_o_F77=no
 
14655
   $rm -r conftest 2>/dev/null
 
14656
   mkdir conftest
 
14657
   cd conftest
 
14658
   mkdir out
 
14659
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14660
 
 
14661
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
14662
   # Insert the option either (1) after the last *FLAGS variable, or
 
14663
   # (2) before a word containing "conftest.", or (3) at the end.
 
14664
   # Note that $ac_compile itself does not contain backslashes and begins
 
14665
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14666
   lt_compile=`echo "$ac_compile" | $SED \
 
14667
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14668
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14669
   -e 's:$: $lt_compiler_flag:'`
 
14670
   (eval echo "\"\$as_me:14670: $lt_compile\"" >&5)
 
14671
   (eval "$lt_compile" 2>out/conftest.err)
 
14672
   ac_status=$?
 
14673
   cat out/conftest.err >&5
 
14674
   echo "$as_me:14674: \$? = $ac_status" >&5
 
14675
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
14676
   then
 
14677
     # The compiler can only warn and ignore the option if not recognized
 
14678
     # So say no if there are warnings
 
14679
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
14680
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
14681
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
14682
       lt_cv_prog_compiler_c_o_F77=yes
 
14683
     fi
 
14684
   fi
 
14685
   chmod u+w . 2>&5
 
14686
   $rm conftest*
 
14687
   # SGI C++ compiler will create directory out/ii_files/ for
 
14688
   # template instantiation
 
14689
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
14690
   $rm out/* && rmdir out
 
14691
   cd ..
 
14692
   rmdir conftest
 
14693
   $rm conftest*
 
14694
 
 
14695
fi
 
14696
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
14697
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
 
14698
 
 
14699
 
 
14700
hard_links="nottested"
 
14701
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
 
14702
  # do not overwrite the value of need_locks provided by the user
 
14703
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
14704
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
14705
  hard_links=yes
 
14706
  $rm conftest*
 
14707
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14708
  touch conftest.a
 
14709
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
14710
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14711
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
14712
echo "${ECHO_T}$hard_links" >&6; }
 
14713
  if test "$hard_links" = no; then
 
14714
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
14715
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
14716
    need_locks=warn
 
14717
  fi
 
14718
else
 
14719
  need_locks=no
 
14720
fi
 
14721
 
 
14722
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
14723
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
14724
 
 
14725
  runpath_var=
 
14726
  allow_undefined_flag_F77=
 
14727
  enable_shared_with_static_runtimes_F77=no
 
14728
  archive_cmds_F77=
 
14729
  archive_expsym_cmds_F77=
 
14730
  old_archive_From_new_cmds_F77=
 
14731
  old_archive_from_expsyms_cmds_F77=
 
14732
  export_dynamic_flag_spec_F77=
 
14733
  whole_archive_flag_spec_F77=
 
14734
  thread_safe_flag_spec_F77=
 
14735
  hardcode_libdir_flag_spec_F77=
 
14736
  hardcode_libdir_flag_spec_ld_F77=
 
14737
  hardcode_libdir_separator_F77=
 
14738
  hardcode_direct_F77=no
 
14739
  hardcode_minus_L_F77=no
 
14740
  hardcode_shlibpath_var_F77=unsupported
 
14741
  link_all_deplibs_F77=unknown
 
14742
  hardcode_automatic_F77=no
 
14743
  module_cmds_F77=
 
14744
  module_expsym_cmds_F77=
 
14745
  always_export_symbols_F77=no
 
14746
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
14747
  # include_expsyms should be a list of space-separated symbols to be *always*
 
14748
  # included in the symbol list
 
14749
  include_expsyms_F77=
 
14750
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
14751
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
14752
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
14753
  # as well as any symbol that contains `d'.
 
14754
  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
14755
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
14756
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
14757
  # the symbol is explicitly referenced.  Since portable code cannot
 
14758
  # rely on this symbol name, it's probably fine to never include it in
 
14759
  # preloaded symbol tables.
 
14760
  # Exclude shared library initialization/finalization symbols.
 
14761
  extract_expsyms_cmds=
 
14762
  # Just being paranoid about ensuring that cc_basename is set.
 
14763
  for cc_temp in $compiler""; do
 
14764
  case $cc_temp in
 
14765
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
14766
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
14767
    \-*) ;;
 
14768
    *) break;;
 
14769
  esac
 
14770
done
 
14771
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
14772
 
 
14773
  case $host_os in
 
14774
  cygwin* | mingw* | pw32*)
 
14775
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
14776
    # When not using gcc, we currently assume that we are using
 
14777
    # Microsoft Visual C++.
 
14778
    if test "$GCC" != yes; then
 
14779
      with_gnu_ld=no
 
14780
    fi
 
14781
    ;;
 
14782
  interix*)
 
14783
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
14784
    with_gnu_ld=yes
 
14785
    ;;
 
14786
  openbsd*)
 
14787
    with_gnu_ld=no
 
14788
    ;;
 
14789
  esac
 
14790
 
 
14791
  ld_shlibs_F77=yes
 
14792
  if test "$with_gnu_ld" = yes; then
 
14793
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
14794
    wlarc='${wl}'
 
14795
 
 
14796
    # Set some defaults for GNU ld with shared library support. These
 
14797
    # are reset later if shared libraries are not supported. Putting them
 
14798
    # here allows them to be overridden if necessary.
 
14799
    runpath_var=LD_RUN_PATH
 
14800
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
14801
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
14802
    # ancient GNU ld didn't support --whole-archive et. al.
 
14803
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
14804
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
14805
      else
 
14806
        whole_archive_flag_spec_F77=
 
14807
    fi
 
14808
    supports_anon_versioning=no
 
14809
    case `$LD -v 2>/dev/null` in
 
14810
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
14811
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
14812
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
14813
      *\ 2.11.*) ;; # other 2.11 versions
 
14814
      *) supports_anon_versioning=yes ;;
 
14815
    esac
 
14816
 
 
14817
    # See if GNU ld supports shared libraries.
 
14818
    case $host_os in
 
14819
    aix[3-9]*)
 
14820
      # On AIX/PPC, the GNU linker is very broken
 
14821
      if test "$host_cpu" != ia64; then
 
14822
        ld_shlibs_F77=no
 
14823
        cat <<EOF 1>&2
 
14824
 
 
14825
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
14826
*** to be unable to reliably create shared libraries on AIX.
 
14827
*** Therefore, libtool is disabling shared libraries support.  If you
 
14828
*** really care for shared libraries, you may want to modify your PATH
 
14829
*** so that a non-GNU linker is found, and then restart.
 
14830
 
 
14831
EOF
 
14832
      fi
 
14833
      ;;
 
14834
 
 
14835
    amigaos*)
 
14836
      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)'
 
14837
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14838
      hardcode_minus_L_F77=yes
 
14839
 
 
14840
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
14841
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
14842
      # to version 4, is to share data among multiple programs linked
 
14843
      # with the same dynamic library.  Since this doesn't match the
 
14844
      # behavior of shared libraries on other platforms, we can't use
 
14845
      # them.
 
14846
      ld_shlibs_F77=no
 
14847
      ;;
 
14848
 
 
14849
    beos*)
 
14850
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14851
        allow_undefined_flag_F77=unsupported
 
14852
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
14853
        # support --undefined.  This deserves some investigation.  FIXME
 
14854
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14855
      else
 
14856
        ld_shlibs_F77=no
 
14857
      fi
 
14858
      ;;
 
14859
 
 
14860
    cygwin* | mingw* | pw32*)
 
14861
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
 
14862
      # as there is no search path for DLLs.
 
14863
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14864
      allow_undefined_flag_F77=unsupported
 
14865
      always_export_symbols_F77=no
 
14866
      enable_shared_with_static_runtimes_F77=yes
 
14867
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
14868
 
 
14869
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
14870
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
14871
        # If the export-symbols file already is a .def file (1st line
 
14872
        # is EXPORTS), use it as is; otherwise, prepend...
 
14873
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
14874
          cp $export_symbols $output_objdir/$soname.def;
 
14875
        else
 
14876
          echo EXPORTS > $output_objdir/$soname.def;
 
14877
          cat $export_symbols >> $output_objdir/$soname.def;
 
14878
        fi~
 
14879
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
14880
      else
 
14881
        ld_shlibs_F77=no
 
14882
      fi
 
14883
      ;;
 
14884
 
 
14885
    interix[3-9]*)
 
14886
      hardcode_direct_F77=no
 
14887
      hardcode_shlibpath_var_F77=no
 
14888
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
14889
      export_dynamic_flag_spec_F77='${wl}-E'
 
14890
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
14891
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
14892
      # default) and relocated if they conflict, which is a slow very memory
 
14893
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
14894
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
14895
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
14896
      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'
 
14897
      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'
 
14898
      ;;
 
14899
 
 
14900
    gnu* | linux* | k*bsd*-gnu)
 
14901
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14902
        tmp_addflag=
 
14903
        case $cc_basename,$host_cpu in
 
14904
        pgcc*)                          # Portland Group C compiler
 
14905
          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'
 
14906
          tmp_addflag=' $pic_flag'
 
14907
          ;;
 
14908
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
14909
          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'
 
14910
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
14911
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
14912
          tmp_addflag=' -i_dynamic' ;;
 
14913
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
14914
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
14915
        ifc* | ifort*)                  # Intel Fortran compiler
 
14916
          tmp_addflag=' -nofor_main' ;;
 
14917
        esac
 
14918
        case `$CC -V 2>&1 | sed 5q` in
 
14919
        *Sun\ C*)                       # Sun C 5.9
 
14920
          whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
14921
          tmp_sharedflag='-G' ;;
 
14922
        *Sun\ F*)                       # Sun Fortran 8.3
 
14923
          tmp_sharedflag='-G' ;;
 
14924
        *)
 
14925
          tmp_sharedflag='-shared' ;;
 
14926
        esac
 
14927
        archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14928
 
 
14929
        if test $supports_anon_versioning = yes; then
 
14930
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
14931
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
14932
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
14933
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
14934
        fi
 
14935
      else
 
14936
        ld_shlibs_F77=no
 
14937
      fi
 
14938
      ;;
 
14939
 
 
14940
    netbsd*)
 
14941
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14942
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
14943
        wlarc=
 
14944
      else
 
14945
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14946
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14947
      fi
 
14948
      ;;
 
14949
 
 
14950
    solaris*)
 
14951
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
14952
        ld_shlibs_F77=no
 
14953
        cat <<EOF 1>&2
 
14954
 
 
14955
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
14956
*** create shared libraries on Solaris systems.  Therefore, libtool
 
14957
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
14958
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
14959
*** your PATH or compiler configuration so that the native linker is
 
14960
*** used, and then restart.
 
14961
 
 
14962
EOF
 
14963
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14964
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14965
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14966
      else
 
14967
        ld_shlibs_F77=no
 
14968
      fi
 
14969
      ;;
 
14970
 
 
14971
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
14972
      case `$LD -v 2>&1` in
 
14973
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
14974
        ld_shlibs_F77=no
 
14975
        cat <<_LT_EOF 1>&2
 
14976
 
 
14977
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
14978
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
14979
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
14980
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
14981
*** your PATH or compiler configuration so that the native linker is
 
14982
*** used, and then restart.
 
14983
 
 
14984
_LT_EOF
 
14985
        ;;
 
14986
        *)
 
14987
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14988
            hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
14989
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
14990
            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
14991
          else
 
14992
            ld_shlibs_F77=no
 
14993
          fi
 
14994
        ;;
 
14995
      esac
 
14996
      ;;
 
14997
 
 
14998
    sunos4*)
 
14999
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15000
      wlarc=
 
15001
      hardcode_direct_F77=yes
 
15002
      hardcode_shlibpath_var_F77=no
 
15003
      ;;
 
15004
 
 
15005
    *)
 
15006
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15007
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15008
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15009
      else
 
15010
        ld_shlibs_F77=no
 
15011
      fi
 
15012
      ;;
 
15013
    esac
 
15014
 
 
15015
    if test "$ld_shlibs_F77" = no; then
 
15016
      runpath_var=
 
15017
      hardcode_libdir_flag_spec_F77=
 
15018
      export_dynamic_flag_spec_F77=
 
15019
      whole_archive_flag_spec_F77=
 
15020
    fi
 
15021
  else
 
15022
    # PORTME fill in a description of your system's linker (not GNU ld)
 
15023
    case $host_os in
 
15024
    aix3*)
 
15025
      allow_undefined_flag_F77=unsupported
 
15026
      always_export_symbols_F77=yes
 
15027
      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'
 
15028
      # Note: this linker hardcodes the directories in LIBPATH if there
 
15029
      # are no directories specified by -L.
 
15030
      hardcode_minus_L_F77=yes
 
15031
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
15032
        # Neither direct hardcoding nor static linking is supported with a
 
15033
        # broken collect2.
 
15034
        hardcode_direct_F77=unsupported
 
15035
      fi
 
15036
      ;;
 
15037
 
 
15038
    aix[4-9]*)
 
15039
      if test "$host_cpu" = ia64; then
 
15040
        # On IA64, the linker does run time linking by default, so we don't
 
15041
        # have to do anything special.
 
15042
        aix_use_runtimelinking=no
 
15043
        exp_sym_flag='-Bexport'
 
15044
        no_entry_flag=""
 
15045
      else
 
15046
        # If we're using GNU nm, then we don't want the "-C" option.
 
15047
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
15048
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
15049
          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'
 
15050
        else
 
15051
          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'
 
15052
        fi
 
15053
        aix_use_runtimelinking=no
 
15054
 
 
15055
        # Test if we are trying to use run time linking or normal
 
15056
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
15057
        # need to do runtime linking.
 
15058
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
15059
          for ld_flag in $LDFLAGS; do
 
15060
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
15061
            aix_use_runtimelinking=yes
 
15062
            break
 
15063
          fi
 
15064
          done
 
15065
          ;;
 
15066
        esac
 
15067
 
 
15068
        exp_sym_flag='-bexport'
 
15069
        no_entry_flag='-bnoentry'
 
15070
      fi
 
15071
 
 
15072
      # When large executables or shared objects are built, AIX ld can
 
15073
      # have problems creating the table of contents.  If linking a library
 
15074
      # or program results in "error TOC overflow" add -mminimal-toc to
 
15075
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
15076
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
15077
 
 
15078
      archive_cmds_F77=''
 
15079
      hardcode_direct_F77=yes
 
15080
      hardcode_libdir_separator_F77=':'
 
15081
      link_all_deplibs_F77=yes
 
15082
 
 
15083
      if test "$GCC" = yes; then
 
15084
        case $host_os in aix4.[012]|aix4.[012].*)
 
15085
        # We only want to do this on AIX 4.2 and lower, the check
 
15086
        # below for broken collect2 doesn't work under 4.3+
 
15087
          collect2name=`${CC} -print-prog-name=collect2`
 
15088
          if test -f "$collect2name" && \
 
15089
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
15090
          then
 
15091
          # We have reworked collect2
 
15092
          :
 
15093
          else
 
15094
          # We have old collect2
 
15095
          hardcode_direct_F77=unsupported
 
15096
          # It fails to find uninstalled libraries when the uninstalled
 
15097
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
15098
          # to unsupported forces relinking
 
15099
          hardcode_minus_L_F77=yes
 
15100
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
15101
          hardcode_libdir_separator_F77=
 
15102
          fi
 
15103
          ;;
 
15104
        esac
 
15105
        shared_flag='-shared'
 
15106
        if test "$aix_use_runtimelinking" = yes; then
 
15107
          shared_flag="$shared_flag "'${wl}-G'
 
15108
        fi
 
15109
      else
 
15110
        # not using gcc
 
15111
        if test "$host_cpu" = ia64; then
 
15112
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
15113
        # chokes on -Wl,-G. The following line is correct:
 
15114
          shared_flag='-G'
 
15115
        else
 
15116
          if test "$aix_use_runtimelinking" = yes; then
 
15117
            shared_flag='${wl}-G'
 
15118
          else
 
15119
            shared_flag='${wl}-bM:SRE'
 
15120
          fi
 
15121
        fi
 
15122
      fi
 
15123
 
 
15124
      # It seems that -bexpall does not export symbols beginning with
 
15125
      # underscore (_), so it is better to generate a list of symbols to export.
 
15126
      always_export_symbols_F77=yes
 
15127
      if test "$aix_use_runtimelinking" = yes; then
 
15128
        # Warning - without using the other runtime loading flags (-brtl),
 
15129
        # -berok will link without error, but may produce a broken library.
 
15130
        allow_undefined_flag_F77='-berok'
 
15131
       # Determine the default libpath from the value encoded in an empty executable.
 
15132
       cat >conftest.$ac_ext <<_ACEOF
 
15133
      program main
 
15134
 
 
15135
      end
 
15136
_ACEOF
 
15137
rm -f conftest.$ac_objext conftest$ac_exeext
 
15138
if { (ac_try="$ac_link"
 
15139
case "(($ac_try" in
 
15140
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15141
  *) ac_try_echo=$ac_try;;
 
15142
esac
 
15143
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15144
  (eval "$ac_link") 2>conftest.er1
 
15145
  ac_status=$?
 
15146
  grep -v '^ *+' conftest.er1 >conftest.err
 
15147
  rm -f conftest.er1
 
15148
  cat conftest.err >&5
 
15149
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15150
  (exit $ac_status); } && {
 
15151
         test -z "$ac_f77_werror_flag" ||
 
15152
         test ! -s conftest.err
 
15153
       } && test -s conftest$ac_exeext &&
 
15154
       $as_test_x conftest$ac_exeext; then
 
15155
 
 
15156
lt_aix_libpath_sed='
 
15157
    /Import File Strings/,/^$/ {
 
15158
        /^0/ {
 
15159
            s/^0  *\(.*\)$/\1/
 
15160
            p
 
15161
        }
 
15162
    }'
 
15163
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
15164
# Check for a 64-bit object if we didn't find anything.
 
15165
if test -z "$aix_libpath"; then
 
15166
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
15167
fi
 
15168
else
 
15169
  echo "$as_me: failed program was:" >&5
 
15170
sed 's/^/| /' conftest.$ac_ext >&5
 
15171
 
 
15172
 
 
15173
fi
 
15174
 
 
15175
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
15176
      conftest$ac_exeext conftest.$ac_ext
 
15177
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
15178
 
 
15179
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
15180
        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"
 
15181
       else
 
15182
        if test "$host_cpu" = ia64; then
 
15183
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
 
15184
          allow_undefined_flag_F77="-z nodefs"
 
15185
          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"
 
15186
        else
 
15187
         # Determine the default libpath from the value encoded in an empty executable.
 
15188
         cat >conftest.$ac_ext <<_ACEOF
 
15189
      program main
 
15190
 
 
15191
      end
 
15192
_ACEOF
 
15193
rm -f conftest.$ac_objext conftest$ac_exeext
 
15194
if { (ac_try="$ac_link"
 
15195
case "(($ac_try" in
 
15196
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
15197
  *) ac_try_echo=$ac_try;;
 
15198
esac
 
15199
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
15200
  (eval "$ac_link") 2>conftest.er1
 
15201
  ac_status=$?
 
15202
  grep -v '^ *+' conftest.er1 >conftest.err
 
15203
  rm -f conftest.er1
 
15204
  cat conftest.err >&5
 
15205
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15206
  (exit $ac_status); } && {
 
15207
         test -z "$ac_f77_werror_flag" ||
 
15208
         test ! -s conftest.err
 
15209
       } && test -s conftest$ac_exeext &&
 
15210
       $as_test_x conftest$ac_exeext; then
 
15211
 
 
15212
lt_aix_libpath_sed='
 
15213
    /Import File Strings/,/^$/ {
 
15214
        /^0/ {
 
15215
            s/^0  *\(.*\)$/\1/
 
15216
            p
 
15217
        }
 
15218
    }'
 
15219
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
15220
# Check for a 64-bit object if we didn't find anything.
 
15221
if test -z "$aix_libpath"; then
 
15222
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
15223
fi
 
15224
else
 
15225
  echo "$as_me: failed program was:" >&5
 
15226
sed 's/^/| /' conftest.$ac_ext >&5
 
15227
 
 
15228
 
 
15229
fi
 
15230
 
 
15231
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
15232
      conftest$ac_exeext conftest.$ac_ext
 
15233
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
15234
 
 
15235
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
15236
          # Warning - without using the other run time loading flags,
 
15237
          # -berok will link without error, but may produce a broken library.
 
15238
          no_undefined_flag_F77=' ${wl}-bernotok'
 
15239
          allow_undefined_flag_F77=' ${wl}-berok'
 
15240
          # Exported symbols can be pulled into shared objects from archives
 
15241
          whole_archive_flag_spec_F77='$convenience'
 
15242
          archive_cmds_need_lc_F77=yes
 
15243
          # This is similar to how AIX traditionally builds its shared libraries.
 
15244
          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'
 
15245
        fi
 
15246
      fi
 
15247
      ;;
 
15248
 
 
15249
    amigaos*)
 
15250
      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)'
 
15251
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15252
      hardcode_minus_L_F77=yes
 
15253
      # see comment about different semantics on the GNU ld section
 
15254
      ld_shlibs_F77=no
 
15255
      ;;
 
15256
 
 
15257
    bsdi[45]*)
 
15258
      export_dynamic_flag_spec_F77=-rdynamic
 
15259
      ;;
 
15260
 
 
15261
    cygwin* | mingw* | pw32*)
 
15262
      # When not using gcc, we currently assume that we are using
 
15263
      # Microsoft Visual C++.
 
15264
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
15265
      # no search path for DLLs.
 
15266
      hardcode_libdir_flag_spec_F77=' '
 
15267
      allow_undefined_flag_F77=unsupported
 
15268
      # Tell ltmain to make .lib files, not .a files.
 
15269
      libext=lib
 
15270
      # Tell ltmain to make .dll files, not .so files.
 
15271
      shrext_cmds=".dll"
 
15272
      # FIXME: Setting linknames here is a bad hack.
 
15273
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
15274
      # The linker will automatically build a .lib file if we build a DLL.
 
15275
      old_archive_From_new_cmds_F77='true'
 
15276
      # FIXME: Should let the user specify the lib program.
 
15277
      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
15278
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
 
15279
      enable_shared_with_static_runtimes_F77=yes
 
15280
      ;;
 
15281
 
 
15282
    darwin* | rhapsody*)
 
15283
      case $host_os in
 
15284
        rhapsody* | darwin1.[012])
 
15285
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
 
15286
         ;;
 
15287
       *) # Darwin 1.3 on
 
15288
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
15289
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
15290
         else
 
15291
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
15292
             10.[012])
 
15293
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
15294
               ;;
 
15295
             10.*)
 
15296
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
 
15297
               ;;
 
15298
           esac
 
15299
         fi
 
15300
         ;;
 
15301
      esac
 
15302
      archive_cmds_need_lc_F77=no
 
15303
      hardcode_direct_F77=no
 
15304
      hardcode_automatic_F77=yes
 
15305
      hardcode_shlibpath_var_F77=unsupported
 
15306
      whole_archive_flag_spec_F77=''
 
15307
      link_all_deplibs_F77=yes
 
15308
    if test "$GCC" = yes ; then
 
15309
        output_verbose_link_cmd='echo'
 
15310
        archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
15311
        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
15312
        archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
15313
        module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
 
15314
    else
 
15315
      case $cc_basename in
 
15316
        xlc*)
 
15317
         output_verbose_link_cmd='echo'
 
15318
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
15319
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
15320
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
15321
         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
15322
          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}'
 
15323
          ;;
 
15324
       *)
 
15325
         ld_shlibs_F77=no
 
15326
          ;;
 
15327
      esac
 
15328
    fi
 
15329
      ;;
 
15330
 
 
15331
    dgux*)
 
15332
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15333
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15334
      hardcode_shlibpath_var_F77=no
 
15335
      ;;
 
15336
 
 
15337
    freebsd1*)
 
15338
      ld_shlibs_F77=no
 
15339
      ;;
 
15340
 
 
15341
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
15342
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
15343
    # does not break anything, and helps significantly (at the cost of a little
 
15344
    # extra space).
 
15345
    freebsd2.2*)
 
15346
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
15347
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15348
      hardcode_direct_F77=yes
 
15349
      hardcode_shlibpath_var_F77=no
 
15350
      ;;
 
15351
 
 
15352
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
15353
    freebsd2*)
 
15354
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15355
      hardcode_direct_F77=yes
 
15356
      hardcode_minus_L_F77=yes
 
15357
      hardcode_shlibpath_var_F77=no
 
15358
      ;;
 
15359
 
 
15360
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
15361
    freebsd* | dragonfly*)
 
15362
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
15363
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15364
      hardcode_direct_F77=yes
 
15365
      hardcode_shlibpath_var_F77=no
 
15366
      ;;
 
15367
 
 
15368
    hpux9*)
 
15369
      if test "$GCC" = yes; then
 
15370
        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'
 
15371
      else
 
15372
        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'
 
15373
      fi
 
15374
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15375
      hardcode_libdir_separator_F77=:
 
15376
      hardcode_direct_F77=yes
 
15377
 
 
15378
      # hardcode_minus_L: Not really in the search PATH,
 
15379
      # but as the default location of the library.
 
15380
      hardcode_minus_L_F77=yes
 
15381
      export_dynamic_flag_spec_F77='${wl}-E'
 
15382
      ;;
 
15383
 
 
15384
    hpux10*)
 
15385
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
15386
        archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15387
      else
 
15388
        archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
15389
      fi
 
15390
      if test "$with_gnu_ld" = no; then
 
15391
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15392
        hardcode_libdir_separator_F77=:
 
15393
 
 
15394
        hardcode_direct_F77=yes
 
15395
        export_dynamic_flag_spec_F77='${wl}-E'
 
15396
 
 
15397
        # hardcode_minus_L: Not really in the search PATH,
 
15398
        # but as the default location of the library.
 
15399
        hardcode_minus_L_F77=yes
 
15400
      fi
 
15401
      ;;
 
15402
 
 
15403
    hpux11*)
 
15404
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
15405
        case $host_cpu in
 
15406
        hppa*64*)
 
15407
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15408
          ;;
 
15409
        ia64*)
 
15410
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
15411
          ;;
 
15412
        *)
 
15413
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15414
          ;;
 
15415
        esac
 
15416
      else
 
15417
        case $host_cpu in
 
15418
        hppa*64*)
 
15419
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15420
          ;;
 
15421
        ia64*)
 
15422
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
15423
          ;;
 
15424
        *)
 
15425
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
15426
          ;;
 
15427
        esac
 
15428
      fi
 
15429
      if test "$with_gnu_ld" = no; then
 
15430
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15431
        hardcode_libdir_separator_F77=:
 
15432
 
 
15433
        case $host_cpu in
 
15434
        hppa*64*|ia64*)
 
15435
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
 
15436
          hardcode_direct_F77=no
 
15437
          hardcode_shlibpath_var_F77=no
 
15438
          ;;
 
15439
        *)
 
15440
          hardcode_direct_F77=yes
 
15441
          export_dynamic_flag_spec_F77='${wl}-E'
 
15442
 
 
15443
          # hardcode_minus_L: Not really in the search PATH,
 
15444
          # but as the default location of the library.
 
15445
          hardcode_minus_L_F77=yes
 
15446
          ;;
 
15447
        esac
 
15448
      fi
 
15449
      ;;
 
15450
 
 
15451
    irix5* | irix6* | nonstopux*)
 
15452
      if test "$GCC" = yes; then
 
15453
        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'
 
15454
      else
 
15455
        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'
 
15456
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
 
15457
      fi
 
15458
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15459
      hardcode_libdir_separator_F77=:
 
15460
      link_all_deplibs_F77=yes
 
15461
      ;;
 
15462
 
 
15463
    netbsd*)
 
15464
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15465
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
15466
      else
 
15467
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
15468
      fi
 
15469
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15470
      hardcode_direct_F77=yes
 
15471
      hardcode_shlibpath_var_F77=no
 
15472
      ;;
 
15473
 
 
15474
    newsos6)
 
15475
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15476
      hardcode_direct_F77=yes
 
15477
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15478
      hardcode_libdir_separator_F77=:
 
15479
      hardcode_shlibpath_var_F77=no
 
15480
      ;;
 
15481
 
 
15482
    openbsd*)
 
15483
      if test -f /usr/libexec/ld.so; then
 
15484
        hardcode_direct_F77=yes
 
15485
        hardcode_shlibpath_var_F77=no
 
15486
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
15487
          archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15488
          archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
15489
          hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15490
          export_dynamic_flag_spec_F77='${wl}-E'
 
15491
        else
 
15492
          case $host_os in
 
15493
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
15494
             archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15495
             hardcode_libdir_flag_spec_F77='-R$libdir'
 
15496
             ;;
 
15497
           *)
 
15498
             archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15499
             hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15500
             ;;
 
15501
          esac
 
15502
        fi
 
15503
      else
 
15504
        ld_shlibs_F77=no
 
15505
      fi
 
15506
      ;;
 
15507
 
 
15508
    os2*)
 
15509
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15510
      hardcode_minus_L_F77=yes
 
15511
      allow_undefined_flag_F77=unsupported
 
15512
      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'
 
15513
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
15514
      ;;
 
15515
 
 
15516
    osf3*)
 
15517
      if test "$GCC" = yes; then
 
15518
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
15519
        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'
 
15520
      else
 
15521
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
15522
        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'
 
15523
      fi
 
15524
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15525
      hardcode_libdir_separator_F77=:
 
15526
      ;;
 
15527
 
 
15528
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
15529
      if test "$GCC" = yes; then
 
15530
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
15531
        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'
 
15532
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15533
      else
 
15534
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
15535
        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'
 
15536
        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~
 
15537
        $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'
 
15538
 
 
15539
        # Both c and cxx compiler support -rpath directly
 
15540
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
 
15541
      fi
 
15542
      hardcode_libdir_separator_F77=:
 
15543
      ;;
 
15544
 
 
15545
    solaris*)
 
15546
      no_undefined_flag_F77=' -z text'
 
15547
      if test "$GCC" = yes; then
 
15548
        wlarc='${wl}'
 
15549
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15550
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15551
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
15552
      else
 
15553
        wlarc=''
 
15554
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15555
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15556
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
15557
      fi
 
15558
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15559
      hardcode_shlibpath_var_F77=no
 
15560
      case $host_os in
 
15561
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
15562
      *)
 
15563
        # The compiler driver will combine and reorder linker options,
 
15564
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
15565
        # but is careful enough not to reorder.
 
15566
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
15567
        if test "$GCC" = yes; then
 
15568
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
15569
        else
 
15570
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
 
15571
        fi
 
15572
        ;;
 
15573
      esac
 
15574
      link_all_deplibs_F77=yes
 
15575
      ;;
 
15576
 
 
15577
    sunos4*)
 
15578
      if test "x$host_vendor" = xsequent; then
 
15579
        # Use $CC to link under sequent, because it throws in some extra .o
 
15580
        # files that make .init and .fini sections work.
 
15581
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
15582
      else
 
15583
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
15584
      fi
 
15585
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15586
      hardcode_direct_F77=yes
 
15587
      hardcode_minus_L_F77=yes
 
15588
      hardcode_shlibpath_var_F77=no
 
15589
      ;;
 
15590
 
 
15591
    sysv4)
 
15592
      case $host_vendor in
 
15593
        sni)
 
15594
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15595
          hardcode_direct_F77=yes # is this really true???
 
15596
        ;;
 
15597
        siemens)
 
15598
          ## LD is ld it makes a PLAMLIB
 
15599
          ## CC just makes a GrossModule.
 
15600
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
15601
          reload_cmds_F77='$CC -r -o $output$reload_objs'
 
15602
          hardcode_direct_F77=no
 
15603
        ;;
 
15604
        motorola)
 
15605
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15606
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
 
15607
        ;;
 
15608
      esac
 
15609
      runpath_var='LD_RUN_PATH'
 
15610
      hardcode_shlibpath_var_F77=no
 
15611
      ;;
 
15612
 
 
15613
    sysv4.3*)
 
15614
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15615
      hardcode_shlibpath_var_F77=no
 
15616
      export_dynamic_flag_spec_F77='-Bexport'
 
15617
      ;;
 
15618
 
 
15619
    sysv4*MP*)
 
15620
      if test -d /usr/nec; then
 
15621
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15622
        hardcode_shlibpath_var_F77=no
 
15623
        runpath_var=LD_RUN_PATH
 
15624
        hardcode_runpath_var=yes
 
15625
        ld_shlibs_F77=yes
 
15626
      fi
 
15627
      ;;
 
15628
 
 
15629
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
15630
      no_undefined_flag_F77='${wl}-z,text'
 
15631
      archive_cmds_need_lc_F77=no
 
15632
      hardcode_shlibpath_var_F77=no
 
15633
      runpath_var='LD_RUN_PATH'
 
15634
 
 
15635
      if test "$GCC" = yes; then
 
15636
        archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15637
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15638
      else
 
15639
        archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15640
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15641
      fi
 
15642
      ;;
 
15643
 
 
15644
    sysv5* | sco3.2v5* | sco5v6*)
 
15645
      # Note: We can NOT use -z defs as we might desire, because we do not
 
15646
      # link with -lc, and that would cause any symbols used from libc to
 
15647
      # always be unresolved, which means just about no library would
 
15648
      # ever link correctly.  If we're not using GNU ld we use -z text
 
15649
      # though, which does catch some bad symbols but isn't as heavy-handed
 
15650
      # as -z defs.
 
15651
      no_undefined_flag_F77='${wl}-z,text'
 
15652
      allow_undefined_flag_F77='${wl}-z,nodefs'
 
15653
      archive_cmds_need_lc_F77=no
 
15654
      hardcode_shlibpath_var_F77=no
 
15655
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
15656
      hardcode_libdir_separator_F77=':'
 
15657
      link_all_deplibs_F77=yes
 
15658
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
15659
      runpath_var='LD_RUN_PATH'
 
15660
 
 
15661
      if test "$GCC" = yes; then
 
15662
        archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15663
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15664
      else
 
15665
        archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15666
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15667
      fi
 
15668
      ;;
 
15669
 
 
15670
    uts4*)
 
15671
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15672
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15673
      hardcode_shlibpath_var_F77=no
 
15674
      ;;
 
15675
 
 
15676
    *)
 
15677
      ld_shlibs_F77=no
 
15678
      ;;
 
15679
    esac
 
15680
  fi
 
15681
 
 
15682
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
15683
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
 
15684
test "$ld_shlibs_F77" = no && can_build_shared=no
 
15685
 
 
15686
#
 
15687
# Do we need to explicitly link libc?
 
15688
#
 
15689
case "x$archive_cmds_need_lc_F77" in
 
15690
x|xyes)
 
15691
  # Assume -lc should be added
 
15692
  archive_cmds_need_lc_F77=yes
 
15693
 
 
15694
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
15695
    case $archive_cmds_F77 in
 
15696
    *'~'*)
 
15697
      # FIXME: we may have to deal with multi-command sequences.
 
15698
      ;;
 
15699
    '$CC '*)
 
15700
      # Test whether the compiler implicitly links with -lc since on some
 
15701
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
15702
      # to ld, don't add -lc before -lgcc.
 
15703
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
15704
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
15705
      $rm conftest*
 
15706
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15707
 
 
15708
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15709
  (eval $ac_compile) 2>&5
 
15710
  ac_status=$?
 
15711
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15712
  (exit $ac_status); } 2>conftest.err; then
 
15713
        soname=conftest
 
15714
        lib=conftest
 
15715
        libobjs=conftest.$ac_objext
 
15716
        deplibs=
 
15717
        wl=$lt_prog_compiler_wl_F77
 
15718
        pic_flag=$lt_prog_compiler_pic_F77
 
15719
        compiler_flags=-v
 
15720
        linker_flags=-v
 
15721
        verstring=
 
15722
        output_objdir=.
 
15723
        libname=conftest
 
15724
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
 
15725
        allow_undefined_flag_F77=
 
15726
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
15727
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
15728
  ac_status=$?
 
15729
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15730
  (exit $ac_status); }
 
15731
        then
 
15732
          archive_cmds_need_lc_F77=no
 
15733
        else
 
15734
          archive_cmds_need_lc_F77=yes
 
15735
        fi
 
15736
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
 
15737
      else
 
15738
        cat conftest.err 1>&5
 
15739
      fi
 
15740
      $rm conftest*
 
15741
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
15742
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
 
15743
      ;;
 
15744
    esac
 
15745
  fi
 
15746
  ;;
 
15747
esac
 
15748
 
 
15749
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
15750
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
15751
library_names_spec=
 
15752
libname_spec='lib$name'
 
15753
soname_spec=
 
15754
shrext_cmds=".so"
 
15755
postinstall_cmds=
 
15756
postuninstall_cmds=
 
15757
finish_cmds=
 
15758
finish_eval=
 
15759
shlibpath_var=
 
15760
shlibpath_overrides_runpath=unknown
 
15761
version_type=none
 
15762
dynamic_linker="$host_os ld.so"
 
15763
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
15764
 
 
15765
need_lib_prefix=unknown
 
15766
hardcode_into_libs=no
 
15767
 
 
15768
# when you set need_version to no, make sure it does not cause -set_version
 
15769
# flags to be left without arguments
 
15770
need_version=unknown
 
15771
 
 
15772
case $host_os in
 
15773
aix3*)
 
15774
  version_type=linux
 
15775
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
15776
  shlibpath_var=LIBPATH
 
15777
 
 
15778
  # AIX 3 has no versioning support, so we append a major version to the name.
 
15779
  soname_spec='${libname}${release}${shared_ext}$major'
 
15780
  ;;
 
15781
 
 
15782
aix[4-9]*)
 
15783
  version_type=linux
 
15784
  need_lib_prefix=no
 
15785
  need_version=no
 
15786
  hardcode_into_libs=yes
 
15787
  if test "$host_cpu" = ia64; then
 
15788
    # AIX 5 supports IA64
 
15789
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
15790
    shlibpath_var=LD_LIBRARY_PATH
 
15791
  else
 
15792
    # With GCC up to 2.95.x, collect2 would create an import file
 
15793
    # for dependence libraries.  The import file would start with
 
15794
    # the line `#! .'.  This would cause the generated library to
 
15795
    # depend on `.', always an invalid library.  This was fixed in
 
15796
    # development snapshots of GCC prior to 3.0.
 
15797
    case $host_os in
 
15798
      aix4 | aix4.[01] | aix4.[01].*)
 
15799
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
15800
           echo ' yes '
 
15801
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
15802
        :
 
15803
      else
 
15804
        can_build_shared=no
 
15805
      fi
 
15806
      ;;
 
15807
    esac
 
15808
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
15809
    # soname into executable. Probably we can add versioning support to
 
15810
    # collect2, so additional links can be useful in future.
 
15811
    if test "$aix_use_runtimelinking" = yes; then
 
15812
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
15813
      # instead of lib<name>.a to let people know that these are not
 
15814
      # typical AIX shared libraries.
 
15815
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15816
    else
 
15817
      # We preserve .a as extension for shared libraries through AIX4.2
 
15818
      # and later when we are not doing run time linking.
 
15819
      library_names_spec='${libname}${release}.a $libname.a'
 
15820
      soname_spec='${libname}${release}${shared_ext}$major'
 
15821
    fi
 
15822
    shlibpath_var=LIBPATH
 
15823
  fi
 
15824
  ;;
 
15825
 
 
15826
amigaos*)
 
15827
  library_names_spec='$libname.ixlibrary $libname.a'
 
15828
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
15829
  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'
 
15830
  ;;
 
15831
 
 
15832
beos*)
 
15833
  library_names_spec='${libname}${shared_ext}'
 
15834
  dynamic_linker="$host_os ld.so"
 
15835
  shlibpath_var=LIBRARY_PATH
 
15836
  ;;
 
15837
 
 
15838
bsdi[45]*)
 
15839
  version_type=linux
 
15840
  need_version=no
 
15841
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15842
  soname_spec='${libname}${release}${shared_ext}$major'
 
15843
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
15844
  shlibpath_var=LD_LIBRARY_PATH
 
15845
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
15846
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
15847
  # the default ld.so.conf also contains /usr/contrib/lib and
 
15848
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
15849
  # libtool to hard-code these into programs
 
15850
  ;;
 
15851
 
 
15852
cygwin* | mingw* | pw32*)
 
15853
  version_type=windows
 
15854
  shrext_cmds=".dll"
 
15855
  need_version=no
 
15856
  need_lib_prefix=no
 
15857
 
 
15858
  case $GCC,$host_os in
 
15859
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
15860
    library_names_spec='$libname.dll.a'
 
15861
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
15862
    postinstall_cmds='base_file=`basename \${file}`~
 
15863
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
15864
      dldir=$destdir/`dirname \$dlpath`~
 
15865
      test -d \$dldir || mkdir -p \$dldir~
 
15866
      $install_prog $dir/$dlname \$dldir/$dlname~
 
15867
      chmod a+x \$dldir/$dlname'
 
15868
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
15869
      dlpath=$dir/\$dldll~
 
15870
       $rm \$dlpath'
 
15871
    shlibpath_overrides_runpath=yes
 
15872
 
 
15873
    case $host_os in
 
15874
    cygwin*)
 
15875
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
15876
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15877
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
15878
      ;;
 
15879
    mingw*)
 
15880
      # MinGW DLLs use traditional 'lib' prefix
 
15881
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15882
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
15883
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
15884
        # It is most probably a Windows format PATH printed by
 
15885
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
15886
        # path with ; separators, and with drive letters. We can handle the
 
15887
        # drive letters (cygwin fileutils understands them), so leave them,
 
15888
        # especially as we might pass files found there to a mingw objdump,
 
15889
        # which wouldn't understand a cygwinified path. Ahh.
 
15890
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
15891
      else
 
15892
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
15893
      fi
 
15894
      ;;
 
15895
    pw32*)
 
15896
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
15897
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15898
      ;;
 
15899
    esac
 
15900
    ;;
 
15901
 
 
15902
  *)
 
15903
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
15904
    ;;
 
15905
  esac
 
15906
  dynamic_linker='Win32 ld.exe'
 
15907
  # FIXME: first we should search . and the directory the executable is in
 
15908
  shlibpath_var=PATH
 
15909
  ;;
 
15910
 
 
15911
darwin* | rhapsody*)
 
15912
  dynamic_linker="$host_os dyld"
 
15913
  version_type=darwin
 
15914
  need_lib_prefix=no
 
15915
  need_version=no
 
15916
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
15917
  soname_spec='${libname}${release}${major}$shared_ext'
 
15918
  shlibpath_overrides_runpath=yes
 
15919
  shlibpath_var=DYLD_LIBRARY_PATH
 
15920
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
15921
 
 
15922
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
15923
  ;;
 
15924
 
 
15925
dgux*)
 
15926
  version_type=linux
 
15927
  need_lib_prefix=no
 
15928
  need_version=no
 
15929
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
15930
  soname_spec='${libname}${release}${shared_ext}$major'
 
15931
  shlibpath_var=LD_LIBRARY_PATH
 
15932
  ;;
 
15933
 
 
15934
freebsd1*)
 
15935
  dynamic_linker=no
 
15936
  ;;
 
15937
 
 
15938
freebsd* | dragonfly*)
 
15939
  # DragonFly does not have aout.  When/if they implement a new
 
15940
  # versioning mechanism, adjust this.
 
15941
  if test -x /usr/bin/objformat; then
 
15942
    objformat=`/usr/bin/objformat`
 
15943
  else
 
15944
    case $host_os in
 
15945
    freebsd[123]*) objformat=aout ;;
 
15946
    *) objformat=elf ;;
 
15947
    esac
 
15948
  fi
 
15949
  # Handle Gentoo/FreeBSD as it was Linux
 
15950
  case $host_vendor in
 
15951
    gentoo)
 
15952
      version_type=linux ;;
 
15953
    *)
 
15954
      version_type=freebsd-$objformat ;;
 
15955
  esac
 
15956
 
 
15957
  case $version_type in
 
15958
    freebsd-elf*)
 
15959
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15960
      need_version=no
 
15961
      need_lib_prefix=no
 
15962
      ;;
 
15963
    freebsd-*)
 
15964
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
15965
      need_version=yes
 
15966
      ;;
 
15967
    linux)
 
15968
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15969
      soname_spec='${libname}${release}${shared_ext}$major'
 
15970
      need_lib_prefix=no
 
15971
      need_version=no
 
15972
      ;;
 
15973
  esac
 
15974
  shlibpath_var=LD_LIBRARY_PATH
 
15975
  case $host_os in
 
15976
  freebsd2*)
 
15977
    shlibpath_overrides_runpath=yes
 
15978
    ;;
 
15979
  freebsd3.[01]* | freebsdelf3.[01]*)
 
15980
    shlibpath_overrides_runpath=yes
 
15981
    hardcode_into_libs=yes
 
15982
    ;;
 
15983
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
15984
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
15985
    shlibpath_overrides_runpath=no
 
15986
    hardcode_into_libs=yes
 
15987
    ;;
 
15988
  *) # from 4.6 on, and DragonFly
 
15989
    shlibpath_overrides_runpath=yes
 
15990
    hardcode_into_libs=yes
 
15991
    ;;
 
15992
  esac
 
15993
  ;;
 
15994
 
 
15995
gnu*)
 
15996
  version_type=linux
 
15997
  need_lib_prefix=no
 
15998
  need_version=no
 
15999
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
16000
  soname_spec='${libname}${release}${shared_ext}$major'
 
16001
  shlibpath_var=LD_LIBRARY_PATH
 
16002
  hardcode_into_libs=yes
 
16003
  ;;
 
16004
 
 
16005
hpux9* | hpux10* | hpux11*)
 
16006
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
16007
  # link against other versions.
 
16008
  version_type=sunos
 
16009
  need_lib_prefix=no
 
16010
  need_version=no
 
16011
  case $host_cpu in
 
16012
  ia64*)
 
16013
    shrext_cmds='.so'
 
16014
    hardcode_into_libs=yes
 
16015
    dynamic_linker="$host_os dld.so"
 
16016
    shlibpath_var=LD_LIBRARY_PATH
 
16017
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
16018
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16019
    soname_spec='${libname}${release}${shared_ext}$major'
 
16020
    if test "X$HPUX_IA64_MODE" = X32; then
 
16021
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
16022
    else
 
16023
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
16024
    fi
 
16025
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
16026
    ;;
 
16027
   hppa*64*)
 
16028
     shrext_cmds='.sl'
 
16029
     hardcode_into_libs=yes
 
16030
     dynamic_linker="$host_os dld.sl"
 
16031
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
16032
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
16033
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16034
     soname_spec='${libname}${release}${shared_ext}$major'
 
16035
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
16036
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
16037
     ;;
 
16038
   *)
 
16039
    shrext_cmds='.sl'
 
16040
    dynamic_linker="$host_os dld.sl"
 
16041
    shlibpath_var=SHLIB_PATH
 
16042
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
16043
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16044
    soname_spec='${libname}${release}${shared_ext}$major'
 
16045
    ;;
 
16046
  esac
 
16047
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
16048
  postinstall_cmds='chmod 555 $lib'
 
16049
  ;;
 
16050
 
 
16051
interix[3-9]*)
 
16052
  version_type=linux
 
16053
  need_lib_prefix=no
 
16054
  need_version=no
 
16055
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16056
  soname_spec='${libname}${release}${shared_ext}$major'
 
16057
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
16058
  shlibpath_var=LD_LIBRARY_PATH
 
16059
  shlibpath_overrides_runpath=no
 
16060
  hardcode_into_libs=yes
 
16061
  ;;
 
16062
 
 
16063
irix5* | irix6* | nonstopux*)
 
16064
  case $host_os in
 
16065
    nonstopux*) version_type=nonstopux ;;
 
16066
    *)
 
16067
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
16068
                version_type=linux
 
16069
        else
 
16070
                version_type=irix
 
16071
        fi ;;
 
16072
  esac
 
16073
  need_lib_prefix=no
 
16074
  need_version=no
 
16075
  soname_spec='${libname}${release}${shared_ext}$major'
 
16076
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16077
  case $host_os in
 
16078
  irix5* | nonstopux*)
 
16079
    libsuff= shlibsuff=
 
16080
    ;;
 
16081
  *)
 
16082
    case $LD in # libtool.m4 will add one of these switches to LD
 
16083
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
16084
      libsuff= shlibsuff= libmagic=32-bit;;
 
16085
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
16086
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
16087
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
16088
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
16089
    *) libsuff= shlibsuff= libmagic=never-match;;
 
16090
    esac
 
16091
    ;;
 
16092
  esac
 
16093
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
16094
  shlibpath_overrides_runpath=no
 
16095
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
16096
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
16097
  hardcode_into_libs=yes
 
16098
  ;;
 
16099
 
 
16100
# No shared lib support for Linux oldld, aout, or coff.
 
16101
linux*oldld* | linux*aout* | linux*coff*)
 
16102
  dynamic_linker=no
 
16103
  ;;
 
16104
 
 
16105
# This must be Linux ELF.
 
16106
linux* | k*bsd*-gnu)
 
16107
  version_type=linux
 
16108
  need_lib_prefix=no
 
16109
  need_version=no
 
16110
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16111
  soname_spec='${libname}${release}${shared_ext}$major'
 
16112
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
16113
  shlibpath_var=LD_LIBRARY_PATH
 
16114
  shlibpath_overrides_runpath=no
 
16115
  # This implies no fast_install, which is unacceptable.
 
16116
  # Some rework will be needed to allow for fast_install
 
16117
  # before this can be enabled.
 
16118
  hardcode_into_libs=yes
 
16119
 
 
16120
  # Append ld.so.conf contents to the search path
 
16121
  if test -f /etc/ld.so.conf; then
 
16122
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
16123
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
16124
  fi
 
16125
 
 
16126
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
16127
  # powerpc, because MkLinux only supported shared libraries with the
 
16128
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
16129
  # most powerpc-linux boxes support dynamic linking these days and
 
16130
  # people can always --disable-shared, the test was removed, and we
 
16131
  # assume the GNU/Linux dynamic linker is in use.
 
16132
  dynamic_linker='GNU/Linux ld.so'
 
16133
  ;;
 
16134
 
 
16135
netbsd*)
 
16136
  version_type=sunos
 
16137
  need_lib_prefix=no
 
16138
  need_version=no
 
16139
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16140
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16141
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
16142
    dynamic_linker='NetBSD (a.out) ld.so'
 
16143
  else
 
16144
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16145
    soname_spec='${libname}${release}${shared_ext}$major'
 
16146
    dynamic_linker='NetBSD ld.elf_so'
 
16147
  fi
 
16148
  shlibpath_var=LD_LIBRARY_PATH
 
16149
  shlibpath_overrides_runpath=yes
 
16150
  hardcode_into_libs=yes
 
16151
  ;;
 
16152
 
 
16153
newsos6)
 
16154
  version_type=linux
 
16155
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16156
  shlibpath_var=LD_LIBRARY_PATH
 
16157
  shlibpath_overrides_runpath=yes
 
16158
  ;;
 
16159
 
 
16160
nto-qnx*)
 
16161
  version_type=linux
 
16162
  need_lib_prefix=no
 
16163
  need_version=no
 
16164
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16165
  soname_spec='${libname}${release}${shared_ext}$major'
 
16166
  shlibpath_var=LD_LIBRARY_PATH
 
16167
  shlibpath_overrides_runpath=yes
 
16168
  ;;
 
16169
 
 
16170
openbsd*)
 
16171
  version_type=sunos
 
16172
  sys_lib_dlsearch_path_spec="/usr/lib"
 
16173
  need_lib_prefix=no
 
16174
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
16175
  case $host_os in
 
16176
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
16177
    *)                         need_version=no  ;;
 
16178
  esac
 
16179
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16180
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
16181
  shlibpath_var=LD_LIBRARY_PATH
 
16182
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
16183
    case $host_os in
 
16184
      openbsd2.[89] | openbsd2.[89].*)
 
16185
        shlibpath_overrides_runpath=no
 
16186
        ;;
 
16187
      *)
 
16188
        shlibpath_overrides_runpath=yes
 
16189
        ;;
 
16190
      esac
 
16191
  else
 
16192
    shlibpath_overrides_runpath=yes
 
16193
  fi
 
16194
  ;;
 
16195
 
 
16196
os2*)
 
16197
  libname_spec='$name'
 
16198
  shrext_cmds=".dll"
 
16199
  need_lib_prefix=no
 
16200
  library_names_spec='$libname${shared_ext} $libname.a'
 
16201
  dynamic_linker='OS/2 ld.exe'
 
16202
  shlibpath_var=LIBPATH
 
16203
  ;;
 
16204
 
 
16205
osf3* | osf4* | osf5*)
 
16206
  version_type=osf
 
16207
  need_lib_prefix=no
 
16208
  need_version=no
 
16209
  soname_spec='${libname}${release}${shared_ext}$major'
 
16210
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16211
  shlibpath_var=LD_LIBRARY_PATH
 
16212
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
16213
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
16214
  ;;
 
16215
 
 
16216
rdos*)
 
16217
  dynamic_linker=no
 
16218
  ;;
 
16219
 
 
16220
solaris*)
 
16221
  version_type=linux
 
16222
  need_lib_prefix=no
 
16223
  need_version=no
 
16224
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16225
  soname_spec='${libname}${release}${shared_ext}$major'
 
16226
  shlibpath_var=LD_LIBRARY_PATH
 
16227
  shlibpath_overrides_runpath=yes
 
16228
  hardcode_into_libs=yes
 
16229
  # ldd complains unless libraries are executable
 
16230
  postinstall_cmds='chmod +x $lib'
 
16231
  ;;
 
16232
 
 
16233
sunos4*)
 
16234
  version_type=sunos
 
16235
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16236
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
16237
  shlibpath_var=LD_LIBRARY_PATH
 
16238
  shlibpath_overrides_runpath=yes
 
16239
  if test "$with_gnu_ld" = yes; then
 
16240
    need_lib_prefix=no
 
16241
  fi
 
16242
  need_version=yes
 
16243
  ;;
 
16244
 
 
16245
sysv4 | sysv4.3*)
 
16246
  version_type=linux
 
16247
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16248
  soname_spec='${libname}${release}${shared_ext}$major'
 
16249
  shlibpath_var=LD_LIBRARY_PATH
 
16250
  case $host_vendor in
 
16251
    sni)
 
16252
      shlibpath_overrides_runpath=no
 
16253
      need_lib_prefix=no
 
16254
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
16255
      runpath_var=LD_RUN_PATH
 
16256
      ;;
 
16257
    siemens)
 
16258
      need_lib_prefix=no
 
16259
      ;;
 
16260
    motorola)
 
16261
      need_lib_prefix=no
 
16262
      need_version=no
 
16263
      shlibpath_overrides_runpath=no
 
16264
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
16265
      ;;
 
16266
  esac
 
16267
  ;;
 
16268
 
 
16269
sysv4*MP*)
 
16270
  if test -d /usr/nec ;then
 
16271
    version_type=linux
 
16272
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
16273
    soname_spec='$libname${shared_ext}.$major'
 
16274
    shlibpath_var=LD_LIBRARY_PATH
 
16275
  fi
 
16276
  ;;
 
16277
 
 
16278
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
16279
  version_type=freebsd-elf
 
16280
  need_lib_prefix=no
 
16281
  need_version=no
 
16282
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16283
  soname_spec='${libname}${release}${shared_ext}$major'
 
16284
  shlibpath_var=LD_LIBRARY_PATH
 
16285
  hardcode_into_libs=yes
 
16286
  if test "$with_gnu_ld" = yes; then
 
16287
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
16288
    shlibpath_overrides_runpath=no
 
16289
  else
 
16290
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
16291
    shlibpath_overrides_runpath=yes
 
16292
    case $host_os in
 
16293
      sco3.2v5*)
 
16294
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
16295
        ;;
 
16296
    esac
 
16297
  fi
 
16298
  sys_lib_dlsearch_path_spec='/usr/lib'
 
16299
  ;;
 
16300
 
 
16301
uts4*)
 
16302
  version_type=linux
 
16303
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16304
  soname_spec='${libname}${release}${shared_ext}$major'
 
16305
  shlibpath_var=LD_LIBRARY_PATH
 
16306
  ;;
 
16307
 
 
16308
*)
 
16309
  dynamic_linker=no
 
16310
  ;;
 
16311
esac
 
16312
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
16313
echo "${ECHO_T}$dynamic_linker" >&6; }
 
16314
test "$dynamic_linker" = no && can_build_shared=no
 
16315
 
 
16316
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
16317
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16318
else
 
16319
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
16320
fi
 
16321
 
 
16322
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
16323
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
16324
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16325
else
 
16326
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
16327
fi
 
16328
 
 
16329
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
16330
 
 
16331
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
16332
if test "$GCC" = yes; then
 
16333
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
16334
fi
 
16335
 
 
16336
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
16337
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
16338
hardcode_action_F77=
 
16339
if test -n "$hardcode_libdir_flag_spec_F77" || \
 
16340
   test -n "$runpath_var_F77" || \
 
16341
   test "X$hardcode_automatic_F77" = "Xyes" ; then
 
16342
 
 
16343
  # We can hardcode non-existant directories.
 
16344
  if test "$hardcode_direct_F77" != no &&
 
16345
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
16346
     # have to relink, otherwise we might link with an installed library
 
16347
     # when we should be linking with a yet-to-be-installed one
 
16348
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
 
16349
     test "$hardcode_minus_L_F77" != no; then
 
16350
    # Linking always hardcodes the temporary library directory.
 
16351
    hardcode_action_F77=relink
 
16352
  else
 
16353
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
16354
    hardcode_action_F77=immediate
 
16355
  fi
 
16356
else
 
16357
  # We cannot hardcode anything, or else we can only hardcode existing
 
16358
  # directories.
 
16359
  hardcode_action_F77=unsupported
 
16360
fi
 
16361
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
16362
echo "${ECHO_T}$hardcode_action_F77" >&6; }
 
16363
 
 
16364
if test "$hardcode_action_F77" = relink; then
 
16365
  # Fast installation is not supported
 
16366
  enable_fast_install=no
 
16367
elif test "$shlibpath_overrides_runpath" = yes ||
 
16368
     test "$enable_shared" = no; then
 
16369
  # Fast installation is not necessary
 
16370
  enable_fast_install=needless
 
16371
fi
 
16372
 
 
16373
 
 
16374
# The else clause should only fire when bootstrapping the
 
16375
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
16376
# with your package, and you will get complaints that there are
 
16377
# no rules to generate ltmain.sh.
 
16378
if test -f "$ltmain"; then
 
16379
  # See if we are running on zsh, and set the options which allow our commands through
 
16380
  # without removal of \ escapes.
 
16381
  if test -n "${ZSH_VERSION+set}" ; then
 
16382
    setopt NO_GLOB_SUBST
 
16383
  fi
 
16384
  # Now quote all the things that may contain metacharacters while being
 
16385
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
16386
  # variables and quote the copies for generation of the libtool script.
 
16387
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
16388
    SED SHELL STRIP \
 
16389
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
16390
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
16391
    deplibs_check_method reload_flag reload_cmds need_locks \
 
16392
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
16393
    lt_cv_sys_global_symbol_to_c_name_address \
 
16394
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
16395
    old_postinstall_cmds old_postuninstall_cmds \
 
16396
    compiler_F77 \
 
16397
    CC_F77 \
 
16398
    LD_F77 \
 
16399
    lt_prog_compiler_wl_F77 \
 
16400
    lt_prog_compiler_pic_F77 \
 
16401
    lt_prog_compiler_static_F77 \
 
16402
    lt_prog_compiler_no_builtin_flag_F77 \
 
16403
    export_dynamic_flag_spec_F77 \
 
16404
    thread_safe_flag_spec_F77 \
 
16405
    whole_archive_flag_spec_F77 \
 
16406
    enable_shared_with_static_runtimes_F77 \
 
16407
    old_archive_cmds_F77 \
 
16408
    old_archive_from_new_cmds_F77 \
 
16409
    predep_objects_F77 \
 
16410
    postdep_objects_F77 \
 
16411
    predeps_F77 \
 
16412
    postdeps_F77 \
 
16413
    compiler_lib_search_path_F77 \
 
16414
    compiler_lib_search_dirs_F77 \
 
16415
    archive_cmds_F77 \
 
16416
    archive_expsym_cmds_F77 \
 
16417
    postinstall_cmds_F77 \
 
16418
    postuninstall_cmds_F77 \
 
16419
    old_archive_from_expsyms_cmds_F77 \
 
16420
    allow_undefined_flag_F77 \
 
16421
    no_undefined_flag_F77 \
 
16422
    export_symbols_cmds_F77 \
 
16423
    hardcode_libdir_flag_spec_F77 \
 
16424
    hardcode_libdir_flag_spec_ld_F77 \
 
16425
    hardcode_libdir_separator_F77 \
 
16426
    hardcode_automatic_F77 \
 
16427
    module_cmds_F77 \
 
16428
    module_expsym_cmds_F77 \
 
16429
    lt_cv_prog_compiler_c_o_F77 \
 
16430
    fix_srcfile_path_F77 \
 
16431
    exclude_expsyms_F77 \
 
16432
    include_expsyms_F77; do
 
16433
 
 
16434
    case $var in
 
16435
    old_archive_cmds_F77 | \
 
16436
    old_archive_from_new_cmds_F77 | \
 
16437
    archive_cmds_F77 | \
 
16438
    archive_expsym_cmds_F77 | \
 
16439
    module_cmds_F77 | \
 
16440
    module_expsym_cmds_F77 | \
 
16441
    old_archive_from_expsyms_cmds_F77 | \
 
16442
    export_symbols_cmds_F77 | \
 
16443
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
16444
    postinstall_cmds | postuninstall_cmds | \
 
16445
    old_postinstall_cmds | old_postuninstall_cmds | \
 
16446
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
16447
      # Double-quote double-evaled strings.
 
16448
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
16449
      ;;
 
16450
    *)
 
16451
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
16452
      ;;
 
16453
    esac
 
16454
  done
 
16455
 
 
16456
  case $lt_echo in
 
16457
  *'\$0 --fallback-echo"')
 
16458
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
16459
    ;;
 
16460
  esac
 
16461
 
 
16462
cfgfile="$ofile"
 
16463
 
 
16464
  cat <<__EOF__ >> "$cfgfile"
 
16465
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
16466
 
 
16467
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
16468
 
 
16469
# Shell to use when invoking shell scripts.
 
16470
SHELL=$lt_SHELL
 
16471
 
 
16472
# Whether or not to build shared libraries.
 
16473
build_libtool_libs=$enable_shared
 
16474
 
 
16475
# Whether or not to build static libraries.
 
16476
build_old_libs=$enable_static
 
16477
 
 
16478
# Whether or not to add -lc for building shared libraries.
 
16479
build_libtool_need_lc=$archive_cmds_need_lc_F77
 
16480
 
 
16481
# Whether or not to disallow shared libs when runtime libs are static
 
16482
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
 
16483
 
 
16484
# Whether or not to optimize for fast installation.
 
16485
fast_install=$enable_fast_install
 
16486
 
 
16487
# The host system.
 
16488
host_alias=$host_alias
 
16489
host=$host
 
16490
host_os=$host_os
 
16491
 
 
16492
# The build system.
 
16493
build_alias=$build_alias
 
16494
build=$build
 
16495
build_os=$build_os
 
16496
 
 
16497
# An echo program that does not interpret backslashes.
 
16498
echo=$lt_echo
 
16499
 
 
16500
# The archiver.
 
16501
AR=$lt_AR
 
16502
AR_FLAGS=$lt_AR_FLAGS
 
16503
 
 
16504
# A C compiler.
 
16505
LTCC=$lt_LTCC
 
16506
 
 
16507
# LTCC compiler flags.
 
16508
LTCFLAGS=$lt_LTCFLAGS
 
16509
 
 
16510
# A language-specific compiler.
 
16511
CC=$lt_compiler_F77
 
16512
 
 
16513
# Is the compiler the GNU C compiler?
 
16514
with_gcc=$GCC_F77
 
16515
 
 
16516
# An ERE matcher.
 
16517
EGREP=$lt_EGREP
 
16518
 
 
16519
# The linker used to build libraries.
 
16520
LD=$lt_LD_F77
 
16521
 
 
16522
# Whether we need hard or soft links.
 
16523
LN_S=$lt_LN_S
 
16524
 
 
16525
# A BSD-compatible nm program.
 
16526
NM=$lt_NM
 
16527
 
 
16528
# A symbol stripping program
 
16529
STRIP=$lt_STRIP
 
16530
 
 
16531
# Used to examine libraries when file_magic_cmd begins "file"
 
16532
MAGIC_CMD=$MAGIC_CMD
 
16533
 
 
16534
# Used on cygwin: DLL creation program.
 
16535
DLLTOOL="$DLLTOOL"
 
16536
 
 
16537
# Used on cygwin: object dumper.
 
16538
OBJDUMP="$OBJDUMP"
 
16539
 
 
16540
# Used on cygwin: assembler.
 
16541
AS="$AS"
 
16542
 
 
16543
# The name of the directory that contains temporary libtool files.
 
16544
objdir=$objdir
 
16545
 
 
16546
# How to create reloadable object files.
 
16547
reload_flag=$lt_reload_flag
 
16548
reload_cmds=$lt_reload_cmds
 
16549
 
 
16550
# How to pass a linker flag through the compiler.
 
16551
wl=$lt_lt_prog_compiler_wl_F77
 
16552
 
 
16553
# Object file suffix (normally "o").
 
16554
objext="$ac_objext"
 
16555
 
 
16556
# Old archive suffix (normally "a").
 
16557
libext="$libext"
 
16558
 
 
16559
# Shared library suffix (normally ".so").
 
16560
shrext_cmds='$shrext_cmds'
 
16561
 
 
16562
# Executable file suffix (normally "").
 
16563
exeext="$exeext"
 
16564
 
 
16565
# Additional compiler flags for building library objects.
 
16566
pic_flag=$lt_lt_prog_compiler_pic_F77
 
16567
pic_mode=$pic_mode
 
16568
 
 
16569
# What is the maximum length of a command?
 
16570
max_cmd_len=$lt_cv_sys_max_cmd_len
 
16571
 
 
16572
# Does compiler simultaneously support -c and -o options?
 
16573
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
 
16574
 
 
16575
# Must we lock files when doing compilation?
 
16576
need_locks=$lt_need_locks
 
16577
 
 
16578
# Do we need the lib prefix for modules?
 
16579
need_lib_prefix=$need_lib_prefix
 
16580
 
 
16581
# Do we need a version for libraries?
 
16582
need_version=$need_version
 
16583
 
 
16584
# Whether dlopen is supported.
 
16585
dlopen_support=$enable_dlopen
 
16586
 
 
16587
# Whether dlopen of programs is supported.
 
16588
dlopen_self=$enable_dlopen_self
 
16589
 
 
16590
# Whether dlopen of statically linked programs is supported.
 
16591
dlopen_self_static=$enable_dlopen_self_static
 
16592
 
 
16593
# Compiler flag to prevent dynamic linking.
 
16594
link_static_flag=$lt_lt_prog_compiler_static_F77
 
16595
 
 
16596
# Compiler flag to turn off builtin functions.
 
16597
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
 
16598
 
 
16599
# Compiler flag to allow reflexive dlopens.
 
16600
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
 
16601
 
 
16602
# Compiler flag to generate shared objects directly from archives.
 
16603
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
 
16604
 
 
16605
# Compiler flag to generate thread-safe objects.
 
16606
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
 
16607
 
 
16608
# Library versioning type.
 
16609
version_type=$version_type
 
16610
 
 
16611
# Format of library name prefix.
 
16612
libname_spec=$lt_libname_spec
 
16613
 
 
16614
# List of archive names.  First name is the real one, the rest are links.
 
16615
# The last name is the one that the linker finds with -lNAME.
 
16616
library_names_spec=$lt_library_names_spec
 
16617
 
 
16618
# The coded name of the library, if different from the real name.
 
16619
soname_spec=$lt_soname_spec
 
16620
 
 
16621
# Commands used to build and install an old-style archive.
 
16622
RANLIB=$lt_RANLIB
 
16623
old_archive_cmds=$lt_old_archive_cmds_F77
 
16624
old_postinstall_cmds=$lt_old_postinstall_cmds
 
16625
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
16626
 
 
16627
# Create an old-style archive from a shared archive.
 
16628
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
 
16629
 
 
16630
# Create a temporary old-style archive to link instead of a shared archive.
 
16631
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
 
16632
 
 
16633
# Commands used to build and install a shared archive.
 
16634
archive_cmds=$lt_archive_cmds_F77
 
16635
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
 
16636
postinstall_cmds=$lt_postinstall_cmds
 
16637
postuninstall_cmds=$lt_postuninstall_cmds
 
16638
 
 
16639
# Commands used to build a loadable module (assumed same as above if empty)
 
16640
module_cmds=$lt_module_cmds_F77
 
16641
module_expsym_cmds=$lt_module_expsym_cmds_F77
 
16642
 
 
16643
# Commands to strip libraries.
 
16644
old_striplib=$lt_old_striplib
 
16645
striplib=$lt_striplib
 
16646
 
 
16647
# Dependencies to place before the objects being linked to create a
 
16648
# shared library.
 
16649
predep_objects=$lt_predep_objects_F77
 
16650
 
 
16651
# Dependencies to place after the objects being linked to create a
 
16652
# shared library.
 
16653
postdep_objects=$lt_postdep_objects_F77
 
16654
 
 
16655
# Dependencies to place before the objects being linked to create a
 
16656
# shared library.
 
16657
predeps=$lt_predeps_F77
 
16658
 
 
16659
# Dependencies to place after the objects being linked to create a
 
16660
# shared library.
 
16661
postdeps=$lt_postdeps_F77
 
16662
 
 
16663
# The directories searched by this compiler when creating a shared
 
16664
# library
 
16665
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
 
16666
 
 
16667
# The library search path used internally by the compiler when linking
 
16668
# a shared library.
 
16669
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
 
16670
 
 
16671
# Method to check whether dependent libraries are shared objects.
 
16672
deplibs_check_method=$lt_deplibs_check_method
 
16673
 
 
16674
# Command to use when deplibs_check_method == file_magic.
 
16675
file_magic_cmd=$lt_file_magic_cmd
 
16676
 
 
16677
# Flag that allows shared libraries with undefined symbols to be built.
 
16678
allow_undefined_flag=$lt_allow_undefined_flag_F77
 
16679
 
 
16680
# Flag that forces no undefined symbols.
 
16681
no_undefined_flag=$lt_no_undefined_flag_F77
 
16682
 
 
16683
# Commands used to finish a libtool library installation in a directory.
 
16684
finish_cmds=$lt_finish_cmds
 
16685
 
 
16686
# Same as above, but a single script fragment to be evaled but not shown.
 
16687
finish_eval=$lt_finish_eval
 
16688
 
 
16689
# Take the output of nm and produce a listing of raw symbols and C names.
 
16690
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
16691
 
 
16692
# Transform the output of nm in a proper C declaration
 
16693
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
16694
 
 
16695
# Transform the output of nm in a C name address pair
 
16696
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
16697
 
 
16698
# This is the shared library runtime path variable.
 
16699
runpath_var=$runpath_var
 
16700
 
 
16701
# This is the shared library path variable.
 
16702
shlibpath_var=$shlibpath_var
 
16703
 
 
16704
# Is shlibpath searched before the hard-coded library search path?
 
16705
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
16706
 
 
16707
# How to hardcode a shared library path into an executable.
 
16708
hardcode_action=$hardcode_action_F77
 
16709
 
 
16710
# Whether we should hardcode library paths into libraries.
 
16711
hardcode_into_libs=$hardcode_into_libs
 
16712
 
 
16713
# Flag to hardcode \$libdir into a binary during linking.
 
16714
# This must work even if \$libdir does not exist.
 
16715
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
 
16716
 
 
16717
# If ld is used when linking, flag to hardcode \$libdir into
 
16718
# a binary during linking. This must work even if \$libdir does
 
16719
# not exist.
 
16720
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
 
16721
 
 
16722
# Whether we need a single -rpath flag with a separated argument.
 
16723
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
 
16724
 
 
16725
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
16726
# resulting binary.
 
16727
hardcode_direct=$hardcode_direct_F77
 
16728
 
 
16729
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
16730
# resulting binary.
 
16731
hardcode_minus_L=$hardcode_minus_L_F77
 
16732
 
 
16733
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
16734
# the resulting binary.
 
16735
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
 
16736
 
 
16737
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
16738
# and all subsequent libraries and executables linked against it.
 
16739
hardcode_automatic=$hardcode_automatic_F77
 
16740
 
 
16741
# Variables whose values should be saved in libtool wrapper scripts and
 
16742
# restored at relink time.
 
16743
variables_saved_for_relink="$variables_saved_for_relink"
 
16744
 
 
16745
# Whether libtool must link a program against all its dependency libraries.
 
16746
link_all_deplibs=$link_all_deplibs_F77
 
16747
 
 
16748
# Compile-time system search path for libraries
 
16749
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
16750
 
 
16751
# Run-time system search path for libraries
 
16752
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
16753
 
 
16754
# Fix the shell variable \$srcfile for the compiler.
 
16755
fix_srcfile_path=$lt_fix_srcfile_path
 
16756
 
 
16757
# Set to yes if exported symbols are required.
 
16758
always_export_symbols=$always_export_symbols_F77
 
16759
 
 
16760
# The commands to list exported symbols.
 
16761
export_symbols_cmds=$lt_export_symbols_cmds_F77
 
16762
 
 
16763
# The commands to extract the exported symbol list from a shared archive.
 
16764
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
16765
 
 
16766
# Symbols that should not be listed in the preloaded symbols.
 
16767
exclude_expsyms=$lt_exclude_expsyms_F77
 
16768
 
 
16769
# Symbols that must always be exported.
 
16770
include_expsyms=$lt_include_expsyms_F77
 
16771
 
 
16772
# ### END LIBTOOL TAG CONFIG: $tagname
 
16773
 
 
16774
__EOF__
 
16775
 
 
16776
 
 
16777
else
 
16778
  # If there is no Makefile yet, we rely on a make rule to execute
 
16779
  # `config.status --recheck' to rerun these tests and create the
 
16780
  # libtool script then.
 
16781
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
16782
  if test -f "$ltmain_in"; then
 
16783
    test -f Makefile && make "$ltmain"
 
16784
  fi
 
16785
fi
 
16786
 
 
16787
 
 
16788
ac_ext=c
 
16789
ac_cpp='$CPP $CPPFLAGS'
 
16790
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
16791
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
16792
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
16793
 
 
16794
CC="$lt_save_CC"
 
16795
 
 
16796
        else
 
16797
          tagname=""
 
16798
        fi
 
16799
        ;;
 
16800
 
 
16801
      GCJ)
 
16802
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
16803
 
 
16804
 
 
16805
# Source file extension for Java test sources.
 
16806
ac_ext=java
 
16807
 
 
16808
# Object file extension for compiled Java test sources.
 
16809
objext=o
 
16810
objext_GCJ=$objext
 
16811
 
 
16812
# Code to be used in simple compile tests
 
16813
lt_simple_compile_test_code="class foo {}"
 
16814
 
 
16815
# Code to be used in simple link tests
 
16816
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
 
16817
 
 
16818
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
16819
 
 
16820
# If no C compiler was specified, use CC.
 
16821
LTCC=${LTCC-"$CC"}
 
16822
 
 
16823
# If no C compiler flags were specified, use CFLAGS.
 
16824
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
16825
 
 
16826
# Allow CC to be a program name with arguments.
 
16827
compiler=$CC
 
16828
 
 
16829
 
 
16830
# save warnings/boilerplate of simple test code
 
16831
ac_outfile=conftest.$ac_objext
 
16832
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
16833
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
16834
_lt_compiler_boilerplate=`cat conftest.err`
 
16835
$rm conftest*
 
16836
 
 
16837
ac_outfile=conftest.$ac_objext
 
16838
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
16839
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
16840
_lt_linker_boilerplate=`cat conftest.err`
 
16841
$rm -r conftest*
 
16842
 
 
16843
 
 
16844
# Allow CC to be a program name with arguments.
 
16845
lt_save_CC="$CC"
 
16846
CC=${GCJ-"gcj"}
 
16847
compiler=$CC
 
16848
compiler_GCJ=$CC
 
16849
for cc_temp in $compiler""; do
 
16850
  case $cc_temp in
 
16851
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
16852
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
16853
    \-*) ;;
 
16854
    *) break;;
 
16855
  esac
 
16856
done
 
16857
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
16858
 
 
16859
 
 
16860
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
16861
archive_cmds_need_lc_GCJ=no
 
16862
 
 
16863
old_archive_cmds_GCJ=$old_archive_cmds
 
16864
 
 
16865
 
 
16866
lt_prog_compiler_no_builtin_flag_GCJ=
 
16867
 
 
16868
if test "$GCC" = yes; then
 
16869
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
 
16870
 
 
16871
 
 
16872
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
16873
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
 
16874
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
16875
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16876
else
 
16877
  lt_cv_prog_compiler_rtti_exceptions=no
 
16878
  ac_outfile=conftest.$ac_objext
 
16879
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16880
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
16881
   # Insert the option either (1) after the last *FLAGS variable, or
 
16882
   # (2) before a word containing "conftest.", or (3) at the end.
 
16883
   # Note that $ac_compile itself does not contain backslashes and begins
 
16884
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16885
   # The option is referenced via a variable to avoid confusing sed.
 
16886
   lt_compile=`echo "$ac_compile" | $SED \
 
16887
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
16888
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16889
   -e 's:$: $lt_compiler_flag:'`
 
16890
   (eval echo "\"\$as_me:16890: $lt_compile\"" >&5)
 
16891
   (eval "$lt_compile" 2>conftest.err)
 
16892
   ac_status=$?
 
16893
   cat conftest.err >&5
 
16894
   echo "$as_me:16894: \$? = $ac_status" >&5
 
16895
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
16896
     # The compiler can only warn and ignore the option if not recognized
 
16897
     # So say no if there are warnings other than the usual output.
 
16898
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
16899
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
16900
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
16901
       lt_cv_prog_compiler_rtti_exceptions=yes
 
16902
     fi
 
16903
   fi
 
16904
   $rm conftest*
 
16905
 
 
16906
fi
 
16907
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
16908
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
16909
 
 
16910
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
16911
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
 
16912
else
 
16913
    :
 
16914
fi
 
16915
 
 
16916
fi
 
16917
 
 
16918
lt_prog_compiler_wl_GCJ=
 
16919
lt_prog_compiler_pic_GCJ=
 
16920
lt_prog_compiler_static_GCJ=
 
16921
 
 
16922
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
16923
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
16924
 
 
16925
  if test "$GCC" = yes; then
 
16926
    lt_prog_compiler_wl_GCJ='-Wl,'
 
16927
    lt_prog_compiler_static_GCJ='-static'
 
16928
 
 
16929
    case $host_os in
 
16930
      aix*)
 
16931
      # All AIX code is PIC.
 
16932
      if test "$host_cpu" = ia64; then
 
16933
        # AIX 5 now supports IA64 processor
 
16934
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16935
      fi
 
16936
      ;;
 
16937
 
 
16938
    amigaos*)
 
16939
      # FIXME: we need at least 68020 code to build shared libraries, but
 
16940
      # adding the `-m68020' flag to GCC prevents building anything better,
 
16941
      # like `-m68040'.
 
16942
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
 
16943
      ;;
 
16944
 
 
16945
    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
16946
      # PIC is the default for these OSes.
 
16947
      ;;
 
16948
 
 
16949
    mingw* | cygwin* | pw32* | os2*)
 
16950
      # This hack is so that the source file can tell whether it is being
 
16951
      # built for inclusion in a dll (and should export symbols for example).
 
16952
      # Although the cygwin gcc ignores -fPIC, still need this for old-style
 
16953
      # (--disable-auto-import) libraries
 
16954
 
 
16955
      ;;
 
16956
 
 
16957
    darwin* | rhapsody*)
 
16958
      # PIC is the default on this platform
 
16959
      # Common symbols not allowed in MH_DYLIB files
 
16960
      lt_prog_compiler_pic_GCJ='-fno-common'
 
16961
      ;;
 
16962
 
 
16963
    interix[3-9]*)
 
16964
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
16965
      # Instead, we relocate shared libraries at runtime.
 
16966
      ;;
 
16967
 
 
16968
    msdosdjgpp*)
 
16969
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
16970
      # on systems that don't support them.
 
16971
      lt_prog_compiler_can_build_shared_GCJ=no
 
16972
      enable_shared=no
 
16973
      ;;
 
16974
 
 
16975
    sysv4*MP*)
 
16976
      if test -d /usr/nec; then
 
16977
        lt_prog_compiler_pic_GCJ=-Kconform_pic
 
16978
      fi
 
16979
      ;;
 
16980
 
 
16981
    hpux*)
 
16982
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
16983
      # not for PA HP-UX.
 
16984
      case $host_cpu in
 
16985
      hppa*64*|ia64*)
 
16986
        # +Z the default
 
16987
        ;;
 
16988
      *)
 
16989
        lt_prog_compiler_pic_GCJ='-fPIC'
 
16990
        ;;
 
16991
      esac
 
16992
      ;;
 
16993
 
 
16994
    *)
 
16995
      lt_prog_compiler_pic_GCJ='-fPIC'
 
16996
      ;;
 
16997
    esac
 
16998
  else
 
16999
    # PORTME Check for flag to pass linker flags through the system compiler.
 
17000
    case $host_os in
 
17001
    aix*)
 
17002
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17003
      if test "$host_cpu" = ia64; then
 
17004
        # AIX 5 now supports IA64 processor
 
17005
        lt_prog_compiler_static_GCJ='-Bstatic'
 
17006
      else
 
17007
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
 
17008
      fi
 
17009
      ;;
 
17010
      darwin*)
 
17011
        # PIC is the default on this platform
 
17012
        # Common symbols not allowed in MH_DYLIB files
 
17013
       case $cc_basename in
 
17014
         xlc*)
 
17015
         lt_prog_compiler_pic_GCJ='-qnocommon'
 
17016
         lt_prog_compiler_wl_GCJ='-Wl,'
 
17017
         ;;
 
17018
       esac
 
17019
       ;;
 
17020
 
 
17021
    mingw* | cygwin* | pw32* | os2*)
 
17022
      # This hack is so that the source file can tell whether it is being
 
17023
      # built for inclusion in a dll (and should export symbols for example).
 
17024
 
 
17025
      ;;
 
17026
 
 
17027
    hpux9* | hpux10* | hpux11*)
 
17028
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17029
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
17030
      # not for PA HP-UX.
 
17031
      case $host_cpu in
 
17032
      hppa*64*|ia64*)
 
17033
        # +Z the default
 
17034
        ;;
 
17035
      *)
 
17036
        lt_prog_compiler_pic_GCJ='+Z'
 
17037
        ;;
 
17038
      esac
 
17039
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
17040
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
 
17041
      ;;
 
17042
 
 
17043
    irix5* | irix6* | nonstopux*)
 
17044
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17045
      # PIC (with -KPIC) is the default.
 
17046
      lt_prog_compiler_static_GCJ='-non_shared'
 
17047
      ;;
 
17048
 
 
17049
    newsos6)
 
17050
      lt_prog_compiler_pic_GCJ='-KPIC'
 
17051
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17052
      ;;
 
17053
 
 
17054
    linux* | k*bsd*-gnu)
 
17055
      case $cc_basename in
 
17056
      icc* | ecc*)
 
17057
        lt_prog_compiler_wl_GCJ='-Wl,'
 
17058
        lt_prog_compiler_pic_GCJ='-KPIC'
 
17059
        lt_prog_compiler_static_GCJ='-static'
 
17060
        ;;
 
17061
      pgcc* | pgf77* | pgf90* | pgf95*)
 
17062
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
17063
        # which looks to be a dead project)
 
17064
        lt_prog_compiler_wl_GCJ='-Wl,'
 
17065
        lt_prog_compiler_pic_GCJ='-fpic'
 
17066
        lt_prog_compiler_static_GCJ='-Bstatic'
 
17067
        ;;
 
17068
      ccc*)
 
17069
        lt_prog_compiler_wl_GCJ='-Wl,'
 
17070
        # All Alpha code is PIC.
 
17071
        lt_prog_compiler_static_GCJ='-non_shared'
 
17072
        ;;
 
17073
      *)
 
17074
        case `$CC -V 2>&1 | sed 5q` in
 
17075
        *Sun\ C*)
 
17076
          # Sun C 5.9
 
17077
          lt_prog_compiler_pic_GCJ='-KPIC'
 
17078
          lt_prog_compiler_static_GCJ='-Bstatic'
 
17079
          lt_prog_compiler_wl_GCJ='-Wl,'
 
17080
          ;;
 
17081
        *Sun\ F*)
 
17082
          # Sun Fortran 8.3 passes all unrecognized flags to the linker
 
17083
          lt_prog_compiler_pic_GCJ='-KPIC'
 
17084
          lt_prog_compiler_static_GCJ='-Bstatic'
 
17085
          lt_prog_compiler_wl_GCJ=''
 
17086
          ;;
 
17087
        esac
 
17088
        ;;
 
17089
      esac
 
17090
      ;;
 
17091
 
 
17092
    osf3* | osf4* | osf5*)
 
17093
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17094
      # All OSF/1 code is PIC.
 
17095
      lt_prog_compiler_static_GCJ='-non_shared'
 
17096
      ;;
 
17097
 
 
17098
    rdos*)
 
17099
      lt_prog_compiler_static_GCJ='-non_shared'
 
17100
      ;;
 
17101
 
 
17102
    solaris*)
 
17103
      lt_prog_compiler_pic_GCJ='-KPIC'
 
17104
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17105
      case $cc_basename in
 
17106
      f77* | f90* | f95*)
 
17107
        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
 
17108
      *)
 
17109
        lt_prog_compiler_wl_GCJ='-Wl,';;
 
17110
      esac
 
17111
      ;;
 
17112
 
 
17113
    sunos4*)
 
17114
      lt_prog_compiler_wl_GCJ='-Qoption ld '
 
17115
      lt_prog_compiler_pic_GCJ='-PIC'
 
17116
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17117
      ;;
 
17118
 
 
17119
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
17120
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17121
      lt_prog_compiler_pic_GCJ='-KPIC'
 
17122
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17123
      ;;
 
17124
 
 
17125
    sysv4*MP*)
 
17126
      if test -d /usr/nec ;then
 
17127
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
 
17128
        lt_prog_compiler_static_GCJ='-Bstatic'
 
17129
      fi
 
17130
      ;;
 
17131
 
 
17132
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
17133
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17134
      lt_prog_compiler_pic_GCJ='-KPIC'
 
17135
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17136
      ;;
 
17137
 
 
17138
    unicos*)
 
17139
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17140
      lt_prog_compiler_can_build_shared_GCJ=no
 
17141
      ;;
 
17142
 
 
17143
    uts4*)
 
17144
      lt_prog_compiler_pic_GCJ='-pic'
 
17145
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17146
      ;;
 
17147
 
 
17148
    *)
 
17149
      lt_prog_compiler_can_build_shared_GCJ=no
 
17150
      ;;
 
17151
    esac
 
17152
  fi
 
17153
 
 
17154
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
17155
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
 
17156
 
 
17157
#
 
17158
# Check to make sure the PIC flag actually works.
 
17159
#
 
17160
if test -n "$lt_prog_compiler_pic_GCJ"; then
 
17161
 
 
17162
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
17163
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
 
17164
if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
 
17165
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17166
else
 
17167
  lt_cv_prog_compiler_pic_works_GCJ=no
 
17168
  ac_outfile=conftest.$ac_objext
 
17169
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17170
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
 
17171
   # Insert the option either (1) after the last *FLAGS variable, or
 
17172
   # (2) before a word containing "conftest.", or (3) at the end.
 
17173
   # Note that $ac_compile itself does not contain backslashes and begins
 
17174
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
17175
   # The option is referenced via a variable to avoid confusing sed.
 
17176
   lt_compile=`echo "$ac_compile" | $SED \
 
17177
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
17178
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
17179
   -e 's:$: $lt_compiler_flag:'`
 
17180
   (eval echo "\"\$as_me:17180: $lt_compile\"" >&5)
 
17181
   (eval "$lt_compile" 2>conftest.err)
 
17182
   ac_status=$?
 
17183
   cat conftest.err >&5
 
17184
   echo "$as_me:17184: \$? = $ac_status" >&5
 
17185
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
17186
     # The compiler can only warn and ignore the option if not recognized
 
17187
     # So say no if there are warnings other than the usual output.
 
17188
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
17189
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
17190
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
17191
       lt_cv_prog_compiler_pic_works_GCJ=yes
 
17192
     fi
 
17193
   fi
 
17194
   $rm conftest*
 
17195
 
 
17196
fi
 
17197
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
 
17198
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
 
17199
 
 
17200
if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
 
17201
    case $lt_prog_compiler_pic_GCJ in
 
17202
     "" | " "*) ;;
 
17203
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
 
17204
     esac
 
17205
else
 
17206
    lt_prog_compiler_pic_GCJ=
 
17207
     lt_prog_compiler_can_build_shared_GCJ=no
 
17208
fi
 
17209
 
 
17210
fi
 
17211
case $host_os in
 
17212
  # For platforms which do not support PIC, -DPIC is meaningless:
 
17213
  *djgpp*)
 
17214
    lt_prog_compiler_pic_GCJ=
 
17215
    ;;
 
17216
  *)
 
17217
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
 
17218
    ;;
 
17219
esac
 
17220
 
 
17221
#
 
17222
# Check to make sure the static flag actually works.
 
17223
#
 
17224
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
 
17225
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
17226
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
17227
if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
 
17228
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17229
else
 
17230
  lt_cv_prog_compiler_static_works_GCJ=no
 
17231
   save_LDFLAGS="$LDFLAGS"
 
17232
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
17233
   echo "$lt_simple_link_test_code" > conftest.$ac_ext
 
17234
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
17235
     # The linker can only warn and ignore the option if not recognized
 
17236
     # So say no if there are warnings
 
17237
     if test -s conftest.err; then
 
17238
       # Append any errors to the config.log.
 
17239
       cat conftest.err 1>&5
 
17240
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
17241
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
17242
       if diff conftest.exp conftest.er2 >/dev/null; then
 
17243
         lt_cv_prog_compiler_static_works_GCJ=yes
 
17244
       fi
 
17245
     else
 
17246
       lt_cv_prog_compiler_static_works_GCJ=yes
 
17247
     fi
 
17248
   fi
 
17249
   $rm -r conftest*
 
17250
   LDFLAGS="$save_LDFLAGS"
 
17251
 
 
17252
fi
 
17253
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
 
17254
echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
 
17255
 
 
17256
if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
 
17257
    :
 
17258
else
 
17259
    lt_prog_compiler_static_GCJ=
 
17260
fi
 
17261
 
 
17262
 
 
17263
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
17264
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
17265
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
 
17266
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17267
else
 
17268
  lt_cv_prog_compiler_c_o_GCJ=no
 
17269
   $rm -r conftest 2>/dev/null
 
17270
   mkdir conftest
 
17271
   cd conftest
 
17272
   mkdir out
 
17273
   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17274
 
 
17275
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
17276
   # Insert the option either (1) after the last *FLAGS variable, or
 
17277
   # (2) before a word containing "conftest.", or (3) at the end.
 
17278
   # Note that $ac_compile itself does not contain backslashes and begins
 
17279
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
17280
   lt_compile=`echo "$ac_compile" | $SED \
 
17281
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
17282
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
17283
   -e 's:$: $lt_compiler_flag:'`
 
17284
   (eval echo "\"\$as_me:17284: $lt_compile\"" >&5)
 
17285
   (eval "$lt_compile" 2>out/conftest.err)
 
17286
   ac_status=$?
 
17287
   cat out/conftest.err >&5
 
17288
   echo "$as_me:17288: \$? = $ac_status" >&5
 
17289
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
17290
   then
 
17291
     # The compiler can only warn and ignore the option if not recognized
 
17292
     # So say no if there are warnings
 
17293
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
17294
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
17295
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
17296
       lt_cv_prog_compiler_c_o_GCJ=yes
 
17297
     fi
 
17298
   fi
 
17299
   chmod u+w . 2>&5
 
17300
   $rm conftest*
 
17301
   # SGI C++ compiler will create directory out/ii_files/ for
 
17302
   # template instantiation
 
17303
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
17304
   $rm out/* && rmdir out
 
17305
   cd ..
 
17306
   rmdir conftest
 
17307
   $rm conftest*
 
17308
 
 
17309
fi
 
17310
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
17311
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
 
17312
 
 
17313
 
 
17314
hard_links="nottested"
 
17315
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
 
17316
  # do not overwrite the value of need_locks provided by the user
 
17317
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
17318
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
17319
  hard_links=yes
 
17320
  $rm conftest*
 
17321
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
17322
  touch conftest.a
 
17323
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
17324
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
17325
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
17326
echo "${ECHO_T}$hard_links" >&6; }
 
17327
  if test "$hard_links" = no; then
 
17328
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
17329
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
17330
    need_locks=warn
 
17331
  fi
 
17332
else
 
17333
  need_locks=no
 
17334
fi
 
17335
 
 
17336
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
17337
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
17338
 
 
17339
  runpath_var=
 
17340
  allow_undefined_flag_GCJ=
 
17341
  enable_shared_with_static_runtimes_GCJ=no
 
17342
  archive_cmds_GCJ=
 
17343
  archive_expsym_cmds_GCJ=
 
17344
  old_archive_From_new_cmds_GCJ=
 
17345
  old_archive_from_expsyms_cmds_GCJ=
 
17346
  export_dynamic_flag_spec_GCJ=
 
17347
  whole_archive_flag_spec_GCJ=
 
17348
  thread_safe_flag_spec_GCJ=
 
17349
  hardcode_libdir_flag_spec_GCJ=
 
17350
  hardcode_libdir_flag_spec_ld_GCJ=
 
17351
  hardcode_libdir_separator_GCJ=
 
17352
  hardcode_direct_GCJ=no
 
17353
  hardcode_minus_L_GCJ=no
 
17354
  hardcode_shlibpath_var_GCJ=unsupported
 
17355
  link_all_deplibs_GCJ=unknown
 
17356
  hardcode_automatic_GCJ=no
 
17357
  module_cmds_GCJ=
 
17358
  module_expsym_cmds_GCJ=
 
17359
  always_export_symbols_GCJ=no
 
17360
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
17361
  # include_expsyms should be a list of space-separated symbols to be *always*
 
17362
  # included in the symbol list
 
17363
  include_expsyms_GCJ=
 
17364
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
17365
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
17366
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
17367
  # as well as any symbol that contains `d'.
 
17368
  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
 
17369
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
17370
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
17371
  # the symbol is explicitly referenced.  Since portable code cannot
 
17372
  # rely on this symbol name, it's probably fine to never include it in
 
17373
  # preloaded symbol tables.
 
17374
  # Exclude shared library initialization/finalization symbols.
 
17375
  extract_expsyms_cmds=
 
17376
  # Just being paranoid about ensuring that cc_basename is set.
 
17377
  for cc_temp in $compiler""; do
 
17378
  case $cc_temp in
 
17379
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
17380
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
17381
    \-*) ;;
 
17382
    *) break;;
 
17383
  esac
 
17384
done
 
17385
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
17386
 
 
17387
  case $host_os in
 
17388
  cygwin* | mingw* | pw32*)
 
17389
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
17390
    # When not using gcc, we currently assume that we are using
 
17391
    # Microsoft Visual C++.
 
17392
    if test "$GCC" != yes; then
 
17393
      with_gnu_ld=no
 
17394
    fi
 
17395
    ;;
 
17396
  interix*)
 
17397
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
17398
    with_gnu_ld=yes
 
17399
    ;;
 
17400
  openbsd*)
 
17401
    with_gnu_ld=no
 
17402
    ;;
 
17403
  esac
 
17404
 
 
17405
  ld_shlibs_GCJ=yes
 
17406
  if test "$with_gnu_ld" = yes; then
 
17407
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
17408
    wlarc='${wl}'
 
17409
 
 
17410
    # Set some defaults for GNU ld with shared library support. These
 
17411
    # are reset later if shared libraries are not supported. Putting them
 
17412
    # here allows them to be overridden if necessary.
 
17413
    runpath_var=LD_RUN_PATH
 
17414
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
17415
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
17416
    # ancient GNU ld didn't support --whole-archive et. al.
 
17417
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
17418
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
17419
      else
 
17420
        whole_archive_flag_spec_GCJ=
 
17421
    fi
 
17422
    supports_anon_versioning=no
 
17423
    case `$LD -v 2>/dev/null` in
 
17424
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
17425
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
17426
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
17427
      *\ 2.11.*) ;; # other 2.11 versions
 
17428
      *) supports_anon_versioning=yes ;;
 
17429
    esac
 
17430
 
 
17431
    # See if GNU ld supports shared libraries.
 
17432
    case $host_os in
 
17433
    aix[3-9]*)
 
17434
      # On AIX/PPC, the GNU linker is very broken
 
17435
      if test "$host_cpu" != ia64; then
 
17436
        ld_shlibs_GCJ=no
 
17437
        cat <<EOF 1>&2
 
17438
 
 
17439
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
17440
*** to be unable to reliably create shared libraries on AIX.
 
17441
*** Therefore, libtool is disabling shared libraries support.  If you
 
17442
*** really care for shared libraries, you may want to modify your PATH
 
17443
*** so that a non-GNU linker is found, and then restart.
 
17444
 
 
17445
EOF
 
17446
      fi
 
17447
      ;;
 
17448
 
 
17449
    amigaos*)
 
17450
      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)'
 
17451
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17452
      hardcode_minus_L_GCJ=yes
 
17453
 
 
17454
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
17455
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
17456
      # to version 4, is to share data among multiple programs linked
 
17457
      # with the same dynamic library.  Since this doesn't match the
 
17458
      # behavior of shared libraries on other platforms, we can't use
 
17459
      # them.
 
17460
      ld_shlibs_GCJ=no
 
17461
      ;;
 
17462
 
 
17463
    beos*)
 
17464
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17465
        allow_undefined_flag_GCJ=unsupported
 
17466
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
17467
        # support --undefined.  This deserves some investigation.  FIXME
 
17468
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17469
      else
 
17470
        ld_shlibs_GCJ=no
 
17471
      fi
 
17472
      ;;
 
17473
 
 
17474
    cygwin* | mingw* | pw32*)
 
17475
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
 
17476
      # as there is no search path for DLLs.
 
17477
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17478
      allow_undefined_flag_GCJ=unsupported
 
17479
      always_export_symbols_GCJ=no
 
17480
      enable_shared_with_static_runtimes_GCJ=yes
 
17481
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
 
17482
 
 
17483
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
17484
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
17485
        # If the export-symbols file already is a .def file (1st line
 
17486
        # is EXPORTS), use it as is; otherwise, prepend...
 
17487
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
17488
          cp $export_symbols $output_objdir/$soname.def;
 
17489
        else
 
17490
          echo EXPORTS > $output_objdir/$soname.def;
 
17491
          cat $export_symbols >> $output_objdir/$soname.def;
 
17492
        fi~
 
17493
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
17494
      else
 
17495
        ld_shlibs_GCJ=no
 
17496
      fi
 
17497
      ;;
 
17498
 
 
17499
    interix[3-9]*)
 
17500
      hardcode_direct_GCJ=no
 
17501
      hardcode_shlibpath_var_GCJ=no
 
17502
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17503
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
17504
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
17505
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
17506
      # default) and relocated if they conflict, which is a slow very memory
 
17507
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
17508
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
17509
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
17510
      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'
 
17511
      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'
 
17512
      ;;
 
17513
 
 
17514
    gnu* | linux* | k*bsd*-gnu)
 
17515
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17516
        tmp_addflag=
 
17517
        case $cc_basename,$host_cpu in
 
17518
        pgcc*)                          # Portland Group C compiler
 
17519
          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'
 
17520
          tmp_addflag=' $pic_flag'
 
17521
          ;;
 
17522
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
17523
          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'
 
17524
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
17525
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
17526
          tmp_addflag=' -i_dynamic' ;;
 
17527
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
17528
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
17529
        ifc* | ifort*)                  # Intel Fortran compiler
 
17530
          tmp_addflag=' -nofor_main' ;;
 
17531
        esac
 
17532
        case `$CC -V 2>&1 | sed 5q` in
 
17533
        *Sun\ C*)                       # Sun C 5.9
 
17534
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
17535
          tmp_sharedflag='-G' ;;
 
17536
        *Sun\ F*)                       # Sun Fortran 8.3
 
17537
          tmp_sharedflag='-G' ;;
 
17538
        *)
 
17539
          tmp_sharedflag='-shared' ;;
 
17540
        esac
 
17541
        archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17542
 
 
17543
        if test $supports_anon_versioning = yes; then
 
17544
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
17545
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
17546
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
17547
          $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
17548
        fi
 
17549
      else
 
17550
        ld_shlibs_GCJ=no
 
17551
      fi
 
17552
      ;;
 
17553
 
 
17554
    netbsd*)
 
17555
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17556
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
17557
        wlarc=
 
17558
      else
 
17559
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17560
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17561
      fi
 
17562
      ;;
 
17563
 
 
17564
    solaris*)
 
17565
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
17566
        ld_shlibs_GCJ=no
 
17567
        cat <<EOF 1>&2
 
17568
 
 
17569
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
17570
*** create shared libraries on Solaris systems.  Therefore, libtool
 
17571
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
17572
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
17573
*** your PATH or compiler configuration so that the native linker is
 
17574
*** used, and then restart.
 
17575
 
 
17576
EOF
 
17577
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17578
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17579
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17580
      else
 
17581
        ld_shlibs_GCJ=no
 
17582
      fi
 
17583
      ;;
 
17584
 
 
17585
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
17586
      case `$LD -v 2>&1` in
 
17587
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
17588
        ld_shlibs_GCJ=no
 
17589
        cat <<_LT_EOF 1>&2
 
17590
 
 
17591
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
17592
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
17593
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
17594
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
17595
*** your PATH or compiler configuration so that the native linker is
 
17596
*** used, and then restart.
 
17597
 
 
17598
_LT_EOF
 
17599
        ;;
 
17600
        *)
 
17601
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17602
            hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
17603
            archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
17604
            archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
17605
          else
 
17606
            ld_shlibs_GCJ=no
 
17607
          fi
 
17608
        ;;
 
17609
      esac
 
17610
      ;;
 
17611
 
 
17612
    sunos4*)
 
17613
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17614
      wlarc=
 
17615
      hardcode_direct_GCJ=yes
 
17616
      hardcode_shlibpath_var_GCJ=no
 
17617
      ;;
 
17618
 
 
17619
    *)
 
17620
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17621
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17622
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
17623
      else
 
17624
        ld_shlibs_GCJ=no
 
17625
      fi
 
17626
      ;;
 
17627
    esac
 
17628
 
 
17629
    if test "$ld_shlibs_GCJ" = no; then
 
17630
      runpath_var=
 
17631
      hardcode_libdir_flag_spec_GCJ=
 
17632
      export_dynamic_flag_spec_GCJ=
 
17633
      whole_archive_flag_spec_GCJ=
 
17634
    fi
 
17635
  else
 
17636
    # PORTME fill in a description of your system's linker (not GNU ld)
 
17637
    case $host_os in
 
17638
    aix3*)
 
17639
      allow_undefined_flag_GCJ=unsupported
 
17640
      always_export_symbols_GCJ=yes
 
17641
      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'
 
17642
      # Note: this linker hardcodes the directories in LIBPATH if there
 
17643
      # are no directories specified by -L.
 
17644
      hardcode_minus_L_GCJ=yes
 
17645
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
17646
        # Neither direct hardcoding nor static linking is supported with a
 
17647
        # broken collect2.
 
17648
        hardcode_direct_GCJ=unsupported
 
17649
      fi
 
17650
      ;;
 
17651
 
 
17652
    aix[4-9]*)
 
17653
      if test "$host_cpu" = ia64; then
 
17654
        # On IA64, the linker does run time linking by default, so we don't
 
17655
        # have to do anything special.
 
17656
        aix_use_runtimelinking=no
 
17657
        exp_sym_flag='-Bexport'
 
17658
        no_entry_flag=""
 
17659
      else
 
17660
        # If we're using GNU nm, then we don't want the "-C" option.
 
17661
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
17662
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
17663
          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'
 
17664
        else
 
17665
          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'
 
17666
        fi
 
17667
        aix_use_runtimelinking=no
 
17668
 
 
17669
        # Test if we are trying to use run time linking or normal
 
17670
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
17671
        # need to do runtime linking.
 
17672
        case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
 
17673
          for ld_flag in $LDFLAGS; do
 
17674
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
17675
            aix_use_runtimelinking=yes
 
17676
            break
 
17677
          fi
 
17678
          done
 
17679
          ;;
 
17680
        esac
 
17681
 
 
17682
        exp_sym_flag='-bexport'
 
17683
        no_entry_flag='-bnoentry'
 
17684
      fi
 
17685
 
 
17686
      # When large executables or shared objects are built, AIX ld can
 
17687
      # have problems creating the table of contents.  If linking a library
 
17688
      # or program results in "error TOC overflow" add -mminimal-toc to
 
17689
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
17690
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
17691
 
 
17692
      archive_cmds_GCJ=''
 
17693
      hardcode_direct_GCJ=yes
 
17694
      hardcode_libdir_separator_GCJ=':'
 
17695
      link_all_deplibs_GCJ=yes
 
17696
 
 
17697
      if test "$GCC" = yes; then
 
17698
        case $host_os in aix4.[012]|aix4.[012].*)
 
17699
        # We only want to do this on AIX 4.2 and lower, the check
 
17700
        # below for broken collect2 doesn't work under 4.3+
 
17701
          collect2name=`${CC} -print-prog-name=collect2`
 
17702
          if test -f "$collect2name" && \
 
17703
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
17704
          then
 
17705
          # We have reworked collect2
 
17706
          :
 
17707
          else
 
17708
          # We have old collect2
 
17709
          hardcode_direct_GCJ=unsupported
 
17710
          # It fails to find uninstalled libraries when the uninstalled
 
17711
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
17712
          # to unsupported forces relinking
 
17713
          hardcode_minus_L_GCJ=yes
 
17714
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17715
          hardcode_libdir_separator_GCJ=
 
17716
          fi
 
17717
          ;;
 
17718
        esac
 
17719
        shared_flag='-shared'
 
17720
        if test "$aix_use_runtimelinking" = yes; then
 
17721
          shared_flag="$shared_flag "'${wl}-G'
 
17722
        fi
 
17723
      else
 
17724
        # not using gcc
 
17725
        if test "$host_cpu" = ia64; then
 
17726
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
17727
        # chokes on -Wl,-G. The following line is correct:
 
17728
          shared_flag='-G'
 
17729
        else
 
17730
          if test "$aix_use_runtimelinking" = yes; then
 
17731
            shared_flag='${wl}-G'
 
17732
          else
 
17733
            shared_flag='${wl}-bM:SRE'
 
17734
          fi
 
17735
        fi
 
17736
      fi
 
17737
 
 
17738
      # It seems that -bexpall does not export symbols beginning with
 
17739
      # underscore (_), so it is better to generate a list of symbols to export.
 
17740
      always_export_symbols_GCJ=yes
 
17741
      if test "$aix_use_runtimelinking" = yes; then
 
17742
        # Warning - without using the other runtime loading flags (-brtl),
 
17743
        # -berok will link without error, but may produce a broken library.
 
17744
        allow_undefined_flag_GCJ='-berok'
 
17745
       # Determine the default libpath from the value encoded in an empty executable.
 
17746
       cat >conftest.$ac_ext <<_ACEOF
 
17747
/* confdefs.h.  */
 
17748
_ACEOF
 
17749
cat confdefs.h >>conftest.$ac_ext
 
17750
cat >>conftest.$ac_ext <<_ACEOF
 
17751
/* end confdefs.h.  */
 
17752
 
 
17753
int
 
17754
main ()
 
17755
{
 
17756
 
 
17757
  ;
 
17758
  return 0;
 
17759
}
 
17760
_ACEOF
 
17761
rm -f conftest.$ac_objext conftest$ac_exeext
 
17762
if { (ac_try="$ac_link"
 
17763
case "(($ac_try" in
 
17764
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17765
  *) ac_try_echo=$ac_try;;
 
17766
esac
 
17767
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17768
  (eval "$ac_link") 2>conftest.er1
 
17769
  ac_status=$?
 
17770
  grep -v '^ *+' conftest.er1 >conftest.err
 
17771
  rm -f conftest.er1
 
17772
  cat conftest.err >&5
 
17773
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17774
  (exit $ac_status); } && {
 
17775
         test -z "$ac_c_werror_flag" ||
 
17776
         test ! -s conftest.err
 
17777
       } && test -s conftest$ac_exeext &&
 
17778
       $as_test_x conftest$ac_exeext; then
 
17779
 
 
17780
lt_aix_libpath_sed='
 
17781
    /Import File Strings/,/^$/ {
 
17782
        /^0/ {
 
17783
            s/^0  *\(.*\)$/\1/
 
17784
            p
 
17785
        }
 
17786
    }'
 
17787
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
17788
# Check for a 64-bit object if we didn't find anything.
 
17789
if test -z "$aix_libpath"; then
 
17790
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
17791
fi
 
17792
else
 
17793
  echo "$as_me: failed program was:" >&5
 
17794
sed 's/^/| /' conftest.$ac_ext >&5
 
17795
 
 
17796
 
 
17797
fi
 
17798
 
 
17799
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17800
      conftest$ac_exeext conftest.$ac_ext
 
17801
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
17802
 
 
17803
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
17804
        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"
 
17805
       else
 
17806
        if test "$host_cpu" = ia64; then
 
17807
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
 
17808
          allow_undefined_flag_GCJ="-z nodefs"
 
17809
          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"
 
17810
        else
 
17811
         # Determine the default libpath from the value encoded in an empty executable.
 
17812
         cat >conftest.$ac_ext <<_ACEOF
 
17813
/* confdefs.h.  */
 
17814
_ACEOF
 
17815
cat confdefs.h >>conftest.$ac_ext
 
17816
cat >>conftest.$ac_ext <<_ACEOF
 
17817
/* end confdefs.h.  */
 
17818
 
 
17819
int
 
17820
main ()
 
17821
{
 
17822
 
 
17823
  ;
 
17824
  return 0;
 
17825
}
 
17826
_ACEOF
 
17827
rm -f conftest.$ac_objext conftest$ac_exeext
 
17828
if { (ac_try="$ac_link"
 
17829
case "(($ac_try" in
 
17830
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17831
  *) ac_try_echo=$ac_try;;
 
17832
esac
 
17833
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17834
  (eval "$ac_link") 2>conftest.er1
 
17835
  ac_status=$?
 
17836
  grep -v '^ *+' conftest.er1 >conftest.err
 
17837
  rm -f conftest.er1
 
17838
  cat conftest.err >&5
 
17839
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17840
  (exit $ac_status); } && {
 
17841
         test -z "$ac_c_werror_flag" ||
 
17842
         test ! -s conftest.err
 
17843
       } && test -s conftest$ac_exeext &&
 
17844
       $as_test_x conftest$ac_exeext; then
 
17845
 
 
17846
lt_aix_libpath_sed='
 
17847
    /Import File Strings/,/^$/ {
 
17848
        /^0/ {
 
17849
            s/^0  *\(.*\)$/\1/
 
17850
            p
 
17851
        }
 
17852
    }'
 
17853
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
17854
# Check for a 64-bit object if we didn't find anything.
 
17855
if test -z "$aix_libpath"; then
 
17856
  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
 
17857
fi
 
17858
else
 
17859
  echo "$as_me: failed program was:" >&5
 
17860
sed 's/^/| /' conftest.$ac_ext >&5
 
17861
 
 
17862
 
 
17863
fi
 
17864
 
 
17865
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17866
      conftest$ac_exeext conftest.$ac_ext
 
17867
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
17868
 
 
17869
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
17870
          # Warning - without using the other run time loading flags,
 
17871
          # -berok will link without error, but may produce a broken library.
 
17872
          no_undefined_flag_GCJ=' ${wl}-bernotok'
 
17873
          allow_undefined_flag_GCJ=' ${wl}-berok'
 
17874
          # Exported symbols can be pulled into shared objects from archives
 
17875
          whole_archive_flag_spec_GCJ='$convenience'
 
17876
          archive_cmds_need_lc_GCJ=yes
 
17877
          # This is similar to how AIX traditionally builds its shared libraries.
 
17878
          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'
 
17879
        fi
 
17880
      fi
 
17881
      ;;
 
17882
 
 
17883
    amigaos*)
 
17884
      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)'
 
17885
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17886
      hardcode_minus_L_GCJ=yes
 
17887
      # see comment about different semantics on the GNU ld section
 
17888
      ld_shlibs_GCJ=no
 
17889
      ;;
 
17890
 
 
17891
    bsdi[45]*)
 
17892
      export_dynamic_flag_spec_GCJ=-rdynamic
 
17893
      ;;
 
17894
 
 
17895
    cygwin* | mingw* | pw32*)
 
17896
      # When not using gcc, we currently assume that we are using
 
17897
      # Microsoft Visual C++.
 
17898
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
17899
      # no search path for DLLs.
 
17900
      hardcode_libdir_flag_spec_GCJ=' '
 
17901
      allow_undefined_flag_GCJ=unsupported
 
17902
      # Tell ltmain to make .lib files, not .a files.
 
17903
      libext=lib
 
17904
      # Tell ltmain to make .dll files, not .so files.
 
17905
      shrext_cmds=".dll"
 
17906
      # FIXME: Setting linknames here is a bad hack.
 
17907
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
17908
      # The linker will automatically build a .lib file if we build a DLL.
 
17909
      old_archive_From_new_cmds_GCJ='true'
 
17910
      # FIXME: Should let the user specify the lib program.
 
17911
      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
 
17912
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
 
17913
      enable_shared_with_static_runtimes_GCJ=yes
 
17914
      ;;
 
17915
 
 
17916
    darwin* | rhapsody*)
 
17917
      case $host_os in
 
17918
        rhapsody* | darwin1.[012])
 
17919
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
 
17920
         ;;
 
17921
       *) # Darwin 1.3 on
 
17922
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
17923
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
17924
         else
 
17925
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
17926
             10.[012])
 
17927
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
17928
               ;;
 
17929
             10.*)
 
17930
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
 
17931
               ;;
 
17932
           esac
 
17933
         fi
 
17934
         ;;
 
17935
      esac
 
17936
      archive_cmds_need_lc_GCJ=no
 
17937
      hardcode_direct_GCJ=no
 
17938
      hardcode_automatic_GCJ=yes
 
17939
      hardcode_shlibpath_var_GCJ=unsupported
 
17940
      whole_archive_flag_spec_GCJ=''
 
17941
      link_all_deplibs_GCJ=yes
 
17942
    if test "$GCC" = yes ; then
 
17943
        output_verbose_link_cmd='echo'
 
17944
        archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
 
17945
        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
 
17946
        archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
 
17947
        module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
 
17948
    else
 
17949
      case $cc_basename in
 
17950
        xlc*)
 
17951
         output_verbose_link_cmd='echo'
 
17952
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
 
17953
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
17954
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
17955
         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
17956
          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}'
 
17957
          ;;
 
17958
       *)
 
17959
         ld_shlibs_GCJ=no
 
17960
          ;;
 
17961
      esac
 
17962
    fi
 
17963
      ;;
 
17964
 
 
17965
    dgux*)
 
17966
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17967
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17968
      hardcode_shlibpath_var_GCJ=no
 
17969
      ;;
 
17970
 
 
17971
    freebsd1*)
 
17972
      ld_shlibs_GCJ=no
 
17973
      ;;
 
17974
 
 
17975
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
17976
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
17977
    # does not break anything, and helps significantly (at the cost of a little
 
17978
    # extra space).
 
17979
    freebsd2.2*)
 
17980
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
17981
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17982
      hardcode_direct_GCJ=yes
 
17983
      hardcode_shlibpath_var_GCJ=no
 
17984
      ;;
 
17985
 
 
17986
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
17987
    freebsd2*)
 
17988
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17989
      hardcode_direct_GCJ=yes
 
17990
      hardcode_minus_L_GCJ=yes
 
17991
      hardcode_shlibpath_var_GCJ=no
 
17992
      ;;
 
17993
 
 
17994
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
17995
    freebsd* | dragonfly*)
 
17996
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
17997
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17998
      hardcode_direct_GCJ=yes
 
17999
      hardcode_shlibpath_var_GCJ=no
 
18000
      ;;
 
18001
 
 
18002
    hpux9*)
 
18003
      if test "$GCC" = yes; then
 
18004
        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'
 
18005
      else
 
18006
        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'
 
18007
      fi
 
18008
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
18009
      hardcode_libdir_separator_GCJ=:
 
18010
      hardcode_direct_GCJ=yes
 
18011
 
 
18012
      # hardcode_minus_L: Not really in the search PATH,
 
18013
      # but as the default location of the library.
 
18014
      hardcode_minus_L_GCJ=yes
 
18015
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
18016
      ;;
 
18017
 
 
18018
    hpux10*)
 
18019
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
18020
        archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
18021
      else
 
18022
        archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
18023
      fi
 
18024
      if test "$with_gnu_ld" = no; then
 
18025
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
18026
        hardcode_libdir_separator_GCJ=:
 
18027
 
 
18028
        hardcode_direct_GCJ=yes
 
18029
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
18030
 
 
18031
        # hardcode_minus_L: Not really in the search PATH,
 
18032
        # but as the default location of the library.
 
18033
        hardcode_minus_L_GCJ=yes
 
18034
      fi
 
18035
      ;;
 
18036
 
 
18037
    hpux11*)
 
18038
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
18039
        case $host_cpu in
 
18040
        hppa*64*)
 
18041
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18042
          ;;
 
18043
        ia64*)
 
18044
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
18045
          ;;
 
18046
        *)
 
18047
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
18048
          ;;
 
18049
        esac
 
18050
      else
 
18051
        case $host_cpu in
 
18052
        hppa*64*)
 
18053
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18054
          ;;
 
18055
        ia64*)
 
18056
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
18057
          ;;
 
18058
        *)
 
18059
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
18060
          ;;
 
18061
        esac
 
18062
      fi
 
18063
      if test "$with_gnu_ld" = no; then
 
18064
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
18065
        hardcode_libdir_separator_GCJ=:
 
18066
 
 
18067
        case $host_cpu in
 
18068
        hppa*64*|ia64*)
 
18069
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
 
18070
          hardcode_direct_GCJ=no
 
18071
          hardcode_shlibpath_var_GCJ=no
 
18072
          ;;
 
18073
        *)
 
18074
          hardcode_direct_GCJ=yes
 
18075
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
18076
 
 
18077
          # hardcode_minus_L: Not really in the search PATH,
 
18078
          # but as the default location of the library.
 
18079
          hardcode_minus_L_GCJ=yes
 
18080
          ;;
 
18081
        esac
 
18082
      fi
 
18083
      ;;
 
18084
 
 
18085
    irix5* | irix6* | nonstopux*)
 
18086
      if test "$GCC" = yes; then
 
18087
        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'
 
18088
      else
 
18089
        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'
 
18090
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
 
18091
      fi
 
18092
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18093
      hardcode_libdir_separator_GCJ=:
 
18094
      link_all_deplibs_GCJ=yes
 
18095
      ;;
 
18096
 
 
18097
    netbsd*)
 
18098
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
18099
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
18100
      else
 
18101
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
18102
      fi
 
18103
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18104
      hardcode_direct_GCJ=yes
 
18105
      hardcode_shlibpath_var_GCJ=no
 
18106
      ;;
 
18107
 
 
18108
    newsos6)
 
18109
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18110
      hardcode_direct_GCJ=yes
 
18111
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18112
      hardcode_libdir_separator_GCJ=:
 
18113
      hardcode_shlibpath_var_GCJ=no
 
18114
      ;;
 
18115
 
 
18116
    openbsd*)
 
18117
      if test -f /usr/libexec/ld.so; then
 
18118
        hardcode_direct_GCJ=yes
 
18119
        hardcode_shlibpath_var_GCJ=no
 
18120
        if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
18121
          archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
18122
          archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
18123
          hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
18124
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
18125
        else
 
18126
          case $host_os in
 
18127
           openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
18128
             archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
18129
             hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18130
             ;;
 
18131
           *)
 
18132
             archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
18133
             hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
18134
             ;;
 
18135
          esac
 
18136
        fi
 
18137
      else
 
18138
        ld_shlibs_GCJ=no
 
18139
      fi
 
18140
      ;;
 
18141
 
 
18142
    os2*)
 
18143
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18144
      hardcode_minus_L_GCJ=yes
 
18145
      allow_undefined_flag_GCJ=unsupported
 
18146
      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'
 
18147
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
18148
      ;;
 
18149
 
 
18150
    osf3*)
 
18151
      if test "$GCC" = yes; then
 
18152
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
18153
        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'
 
18154
      else
 
18155
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
18156
        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'
 
18157
      fi
 
18158
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18159
      hardcode_libdir_separator_GCJ=:
 
18160
      ;;
 
18161
 
 
18162
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
18163
      if test "$GCC" = yes; then
 
18164
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
18165
        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'
 
18166
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18167
      else
 
18168
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
18169
        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'
 
18170
        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~
 
18171
        $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'
 
18172
 
 
18173
        # Both c and cxx compiler support -rpath directly
 
18174
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
 
18175
      fi
 
18176
      hardcode_libdir_separator_GCJ=:
 
18177
      ;;
 
18178
 
 
18179
    solaris*)
 
18180
      no_undefined_flag_GCJ=' -z text'
 
18181
      if test "$GCC" = yes; then
 
18182
        wlarc='${wl}'
 
18183
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18184
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
18185
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
18186
      else
 
18187
        wlarc=''
 
18188
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18189
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
18190
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
18191
      fi
 
18192
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18193
      hardcode_shlibpath_var_GCJ=no
 
18194
      case $host_os in
 
18195
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
18196
      *)
 
18197
        # The compiler driver will combine and reorder linker options,
 
18198
        # but understands `-z linker_flag'.  GCC discards it without `$wl',
 
18199
        # but is careful enough not to reorder.
 
18200
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
18201
        if test "$GCC" = yes; then
 
18202
          whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
18203
        else
 
18204
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
 
18205
        fi
 
18206
        ;;
 
18207
      esac
 
18208
      link_all_deplibs_GCJ=yes
 
18209
      ;;
 
18210
 
 
18211
    sunos4*)
 
18212
      if test "x$host_vendor" = xsequent; then
 
18213
        # Use $CC to link under sequent, because it throws in some extra .o
 
18214
        # files that make .init and .fini sections work.
 
18215
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
18216
      else
 
18217
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
18218
      fi
 
18219
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18220
      hardcode_direct_GCJ=yes
 
18221
      hardcode_minus_L_GCJ=yes
 
18222
      hardcode_shlibpath_var_GCJ=no
 
18223
      ;;
 
18224
 
 
18225
    sysv4)
 
18226
      case $host_vendor in
 
18227
        sni)
 
18228
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18229
          hardcode_direct_GCJ=yes # is this really true???
 
18230
        ;;
 
18231
        siemens)
 
18232
          ## LD is ld it makes a PLAMLIB
 
18233
          ## CC just makes a GrossModule.
 
18234
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
18235
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
 
18236
          hardcode_direct_GCJ=no
 
18237
        ;;
 
18238
        motorola)
 
18239
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18240
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
 
18241
        ;;
 
18242
      esac
 
18243
      runpath_var='LD_RUN_PATH'
 
18244
      hardcode_shlibpath_var_GCJ=no
 
18245
      ;;
 
18246
 
 
18247
    sysv4.3*)
 
18248
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18249
      hardcode_shlibpath_var_GCJ=no
 
18250
      export_dynamic_flag_spec_GCJ='-Bexport'
 
18251
      ;;
 
18252
 
 
18253
    sysv4*MP*)
 
18254
      if test -d /usr/nec; then
 
18255
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18256
        hardcode_shlibpath_var_GCJ=no
 
18257
        runpath_var=LD_RUN_PATH
 
18258
        hardcode_runpath_var=yes
 
18259
        ld_shlibs_GCJ=yes
 
18260
      fi
 
18261
      ;;
 
18262
 
 
18263
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
18264
      no_undefined_flag_GCJ='${wl}-z,text'
 
18265
      archive_cmds_need_lc_GCJ=no
 
18266
      hardcode_shlibpath_var_GCJ=no
 
18267
      runpath_var='LD_RUN_PATH'
 
18268
 
 
18269
      if test "$GCC" = yes; then
 
18270
        archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18271
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18272
      else
 
18273
        archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18274
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18275
      fi
 
18276
      ;;
 
18277
 
 
18278
    sysv5* | sco3.2v5* | sco5v6*)
 
18279
      # Note: We can NOT use -z defs as we might desire, because we do not
 
18280
      # link with -lc, and that would cause any symbols used from libc to
 
18281
      # always be unresolved, which means just about no library would
 
18282
      # ever link correctly.  If we're not using GNU ld we use -z text
 
18283
      # though, which does catch some bad symbols but isn't as heavy-handed
 
18284
      # as -z defs.
 
18285
      no_undefined_flag_GCJ='${wl}-z,text'
 
18286
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
 
18287
      archive_cmds_need_lc_GCJ=no
 
18288
      hardcode_shlibpath_var_GCJ=no
 
18289
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
18290
      hardcode_libdir_separator_GCJ=':'
 
18291
      link_all_deplibs_GCJ=yes
 
18292
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
18293
      runpath_var='LD_RUN_PATH'
 
18294
 
 
18295
      if test "$GCC" = yes; then
 
18296
        archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18297
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18298
      else
 
18299
        archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18300
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18301
      fi
 
18302
      ;;
 
18303
 
 
18304
    uts4*)
 
18305
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18306
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18307
      hardcode_shlibpath_var_GCJ=no
 
18308
      ;;
 
18309
 
 
18310
    *)
 
18311
      ld_shlibs_GCJ=no
 
18312
      ;;
 
18313
    esac
 
18314
  fi
 
18315
 
 
18316
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
18317
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
 
18318
test "$ld_shlibs_GCJ" = no && can_build_shared=no
 
18319
 
 
18320
#
 
18321
# Do we need to explicitly link libc?
 
18322
#
 
18323
case "x$archive_cmds_need_lc_GCJ" in
 
18324
x|xyes)
 
18325
  # Assume -lc should be added
 
18326
  archive_cmds_need_lc_GCJ=yes
 
18327
 
 
18328
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
18329
    case $archive_cmds_GCJ in
 
18330
    *'~'*)
 
18331
      # FIXME: we may have to deal with multi-command sequences.
 
18332
      ;;
 
18333
    '$CC '*)
 
18334
      # Test whether the compiler implicitly links with -lc since on some
 
18335
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
18336
      # to ld, don't add -lc before -lgcc.
 
18337
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
18338
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
18339
      $rm conftest*
 
18340
      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
18341
 
 
18342
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
18343
  (eval $ac_compile) 2>&5
 
18344
  ac_status=$?
 
18345
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18346
  (exit $ac_status); } 2>conftest.err; then
 
18347
        soname=conftest
 
18348
        lib=conftest
 
18349
        libobjs=conftest.$ac_objext
 
18350
        deplibs=
 
18351
        wl=$lt_prog_compiler_wl_GCJ
 
18352
        pic_flag=$lt_prog_compiler_pic_GCJ
 
18353
        compiler_flags=-v
 
18354
        linker_flags=-v
 
18355
        verstring=
 
18356
        output_objdir=.
 
18357
        libname=conftest
 
18358
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
 
18359
        allow_undefined_flag_GCJ=
 
18360
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
18361
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
18362
  ac_status=$?
 
18363
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18364
  (exit $ac_status); }
 
18365
        then
 
18366
          archive_cmds_need_lc_GCJ=no
 
18367
        else
 
18368
          archive_cmds_need_lc_GCJ=yes
 
18369
        fi
 
18370
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
 
18371
      else
 
18372
        cat conftest.err 1>&5
 
18373
      fi
 
18374
      $rm conftest*
 
18375
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
18376
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
 
18377
      ;;
 
18378
    esac
 
18379
  fi
 
18380
  ;;
 
18381
esac
 
18382
 
 
18383
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
18384
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
18385
library_names_spec=
 
18386
libname_spec='lib$name'
 
18387
soname_spec=
 
18388
shrext_cmds=".so"
 
18389
postinstall_cmds=
 
18390
postuninstall_cmds=
 
18391
finish_cmds=
 
18392
finish_eval=
 
18393
shlibpath_var=
 
18394
shlibpath_overrides_runpath=unknown
 
18395
version_type=none
 
18396
dynamic_linker="$host_os ld.so"
 
18397
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
18398
 
 
18399
need_lib_prefix=unknown
 
18400
hardcode_into_libs=no
 
18401
 
 
18402
# when you set need_version to no, make sure it does not cause -set_version
 
18403
# flags to be left without arguments
 
18404
need_version=unknown
 
18405
 
 
18406
case $host_os in
 
18407
aix3*)
 
18408
  version_type=linux
 
18409
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
18410
  shlibpath_var=LIBPATH
 
18411
 
 
18412
  # AIX 3 has no versioning support, so we append a major version to the name.
 
18413
  soname_spec='${libname}${release}${shared_ext}$major'
 
18414
  ;;
 
18415
 
 
18416
aix[4-9]*)
 
18417
  version_type=linux
 
18418
  need_lib_prefix=no
 
18419
  need_version=no
 
18420
  hardcode_into_libs=yes
 
18421
  if test "$host_cpu" = ia64; then
 
18422
    # AIX 5 supports IA64
 
18423
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
18424
    shlibpath_var=LD_LIBRARY_PATH
 
18425
  else
 
18426
    # With GCC up to 2.95.x, collect2 would create an import file
 
18427
    # for dependence libraries.  The import file would start with
 
18428
    # the line `#! .'.  This would cause the generated library to
 
18429
    # depend on `.', always an invalid library.  This was fixed in
 
18430
    # development snapshots of GCC prior to 3.0.
 
18431
    case $host_os in
 
18432
      aix4 | aix4.[01] | aix4.[01].*)
 
18433
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
18434
           echo ' yes '
 
18435
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
18436
        :
 
18437
      else
 
18438
        can_build_shared=no
 
18439
      fi
 
18440
      ;;
 
18441
    esac
 
18442
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
18443
    # soname into executable. Probably we can add versioning support to
 
18444
    # collect2, so additional links can be useful in future.
 
18445
    if test "$aix_use_runtimelinking" = yes; then
 
18446
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
18447
      # instead of lib<name>.a to let people know that these are not
 
18448
      # typical AIX shared libraries.
 
18449
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18450
    else
 
18451
      # We preserve .a as extension for shared libraries through AIX4.2
 
18452
      # and later when we are not doing run time linking.
 
18453
      library_names_spec='${libname}${release}.a $libname.a'
 
18454
      soname_spec='${libname}${release}${shared_ext}$major'
 
18455
    fi
 
18456
    shlibpath_var=LIBPATH
 
18457
  fi
 
18458
  ;;
 
18459
 
 
18460
amigaos*)
 
18461
  library_names_spec='$libname.ixlibrary $libname.a'
 
18462
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
18463
  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'
 
18464
  ;;
 
18465
 
 
18466
beos*)
 
18467
  library_names_spec='${libname}${shared_ext}'
 
18468
  dynamic_linker="$host_os ld.so"
 
18469
  shlibpath_var=LIBRARY_PATH
 
18470
  ;;
 
18471
 
 
18472
bsdi[45]*)
 
18473
  version_type=linux
 
18474
  need_version=no
 
18475
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18476
  soname_spec='${libname}${release}${shared_ext}$major'
 
18477
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
18478
  shlibpath_var=LD_LIBRARY_PATH
 
18479
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
18480
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
18481
  # the default ld.so.conf also contains /usr/contrib/lib and
 
18482
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
18483
  # libtool to hard-code these into programs
 
18484
  ;;
 
18485
 
 
18486
cygwin* | mingw* | pw32*)
 
18487
  version_type=windows
 
18488
  shrext_cmds=".dll"
 
18489
  need_version=no
 
18490
  need_lib_prefix=no
 
18491
 
 
18492
  case $GCC,$host_os in
 
18493
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
18494
    library_names_spec='$libname.dll.a'
 
18495
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
18496
    postinstall_cmds='base_file=`basename \${file}`~
 
18497
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
18498
      dldir=$destdir/`dirname \$dlpath`~
 
18499
      test -d \$dldir || mkdir -p \$dldir~
 
18500
      $install_prog $dir/$dlname \$dldir/$dlname~
 
18501
      chmod a+x \$dldir/$dlname'
 
18502
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
18503
      dlpath=$dir/\$dldll~
 
18504
       $rm \$dlpath'
 
18505
    shlibpath_overrides_runpath=yes
 
18506
 
 
18507
    case $host_os in
 
18508
    cygwin*)
 
18509
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
18510
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18511
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
18512
      ;;
 
18513
    mingw*)
 
18514
      # MinGW DLLs use traditional 'lib' prefix
 
18515
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18516
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
18517
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
18518
        # It is most probably a Windows format PATH printed by
 
18519
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
18520
        # path with ; separators, and with drive letters. We can handle the
 
18521
        # drive letters (cygwin fileutils understands them), so leave them,
 
18522
        # especially as we might pass files found there to a mingw objdump,
 
18523
        # which wouldn't understand a cygwinified path. Ahh.
 
18524
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
18525
      else
 
18526
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
18527
      fi
 
18528
      ;;
 
18529
    pw32*)
 
18530
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
18531
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18532
      ;;
 
18533
    esac
 
18534
    ;;
 
18535
 
 
18536
  *)
 
18537
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
18538
    ;;
 
18539
  esac
 
18540
  dynamic_linker='Win32 ld.exe'
 
18541
  # FIXME: first we should search . and the directory the executable is in
 
18542
  shlibpath_var=PATH
 
18543
  ;;
 
18544
 
 
18545
darwin* | rhapsody*)
 
18546
  dynamic_linker="$host_os dyld"
 
18547
  version_type=darwin
 
18548
  need_lib_prefix=no
 
18549
  need_version=no
 
18550
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
18551
  soname_spec='${libname}${release}${major}$shared_ext'
 
18552
  shlibpath_overrides_runpath=yes
 
18553
  shlibpath_var=DYLD_LIBRARY_PATH
 
18554
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
18555
 
 
18556
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
18557
  ;;
 
18558
 
 
18559
dgux*)
 
18560
  version_type=linux
 
18561
  need_lib_prefix=no
 
18562
  need_version=no
 
18563
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
18564
  soname_spec='${libname}${release}${shared_ext}$major'
 
18565
  shlibpath_var=LD_LIBRARY_PATH
 
18566
  ;;
 
18567
 
 
18568
freebsd1*)
 
18569
  dynamic_linker=no
 
18570
  ;;
 
18571
 
 
18572
freebsd* | dragonfly*)
 
18573
  # DragonFly does not have aout.  When/if they implement a new
 
18574
  # versioning mechanism, adjust this.
 
18575
  if test -x /usr/bin/objformat; then
 
18576
    objformat=`/usr/bin/objformat`
 
18577
  else
 
18578
    case $host_os in
 
18579
    freebsd[123]*) objformat=aout ;;
 
18580
    *) objformat=elf ;;
 
18581
    esac
 
18582
  fi
 
18583
  # Handle Gentoo/FreeBSD as it was Linux
 
18584
  case $host_vendor in
 
18585
    gentoo)
 
18586
      version_type=linux ;;
 
18587
    *)
 
18588
      version_type=freebsd-$objformat ;;
 
18589
  esac
 
18590
 
 
18591
  case $version_type in
 
18592
    freebsd-elf*)
 
18593
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18594
      need_version=no
 
18595
      need_lib_prefix=no
 
18596
      ;;
 
18597
    freebsd-*)
 
18598
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
18599
      need_version=yes
 
18600
      ;;
 
18601
    linux)
 
18602
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18603
      soname_spec='${libname}${release}${shared_ext}$major'
 
18604
      need_lib_prefix=no
 
18605
      need_version=no
 
18606
      ;;
 
18607
  esac
 
18608
  shlibpath_var=LD_LIBRARY_PATH
 
18609
  case $host_os in
 
18610
  freebsd2*)
 
18611
    shlibpath_overrides_runpath=yes
 
18612
    ;;
 
18613
  freebsd3.[01]* | freebsdelf3.[01]*)
 
18614
    shlibpath_overrides_runpath=yes
 
18615
    hardcode_into_libs=yes
 
18616
    ;;
 
18617
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
18618
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
18619
    shlibpath_overrides_runpath=no
 
18620
    hardcode_into_libs=yes
 
18621
    ;;
 
18622
  *) # from 4.6 on, and DragonFly
 
18623
    shlibpath_overrides_runpath=yes
 
18624
    hardcode_into_libs=yes
 
18625
    ;;
 
18626
  esac
 
18627
  ;;
 
18628
 
 
18629
gnu*)
 
18630
  version_type=linux
 
18631
  need_lib_prefix=no
 
18632
  need_version=no
 
18633
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
18634
  soname_spec='${libname}${release}${shared_ext}$major'
 
18635
  shlibpath_var=LD_LIBRARY_PATH
 
18636
  hardcode_into_libs=yes
 
18637
  ;;
 
18638
 
 
18639
hpux9* | hpux10* | hpux11*)
 
18640
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
18641
  # link against other versions.
 
18642
  version_type=sunos
 
18643
  need_lib_prefix=no
 
18644
  need_version=no
 
18645
  case $host_cpu in
 
18646
  ia64*)
 
18647
    shrext_cmds='.so'
 
18648
    hardcode_into_libs=yes
 
18649
    dynamic_linker="$host_os dld.so"
 
18650
    shlibpath_var=LD_LIBRARY_PATH
 
18651
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
18652
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18653
    soname_spec='${libname}${release}${shared_ext}$major'
 
18654
    if test "X$HPUX_IA64_MODE" = X32; then
 
18655
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
18656
    else
 
18657
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
18658
    fi
 
18659
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
18660
    ;;
 
18661
   hppa*64*)
 
18662
     shrext_cmds='.sl'
 
18663
     hardcode_into_libs=yes
 
18664
     dynamic_linker="$host_os dld.sl"
 
18665
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
18666
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
18667
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18668
     soname_spec='${libname}${release}${shared_ext}$major'
 
18669
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
18670
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
18671
     ;;
 
18672
   *)
 
18673
    shrext_cmds='.sl'
 
18674
    dynamic_linker="$host_os dld.sl"
 
18675
    shlibpath_var=SHLIB_PATH
 
18676
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
18677
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18678
    soname_spec='${libname}${release}${shared_ext}$major'
 
18679
    ;;
 
18680
  esac
 
18681
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
18682
  postinstall_cmds='chmod 555 $lib'
 
18683
  ;;
 
18684
 
 
18685
interix[3-9]*)
 
18686
  version_type=linux
 
18687
  need_lib_prefix=no
 
18688
  need_version=no
 
18689
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18690
  soname_spec='${libname}${release}${shared_ext}$major'
 
18691
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
18692
  shlibpath_var=LD_LIBRARY_PATH
 
18693
  shlibpath_overrides_runpath=no
 
18694
  hardcode_into_libs=yes
 
18695
  ;;
 
18696
 
 
18697
irix5* | irix6* | nonstopux*)
 
18698
  case $host_os in
 
18699
    nonstopux*) version_type=nonstopux ;;
 
18700
    *)
 
18701
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
18702
                version_type=linux
 
18703
        else
 
18704
                version_type=irix
 
18705
        fi ;;
 
18706
  esac
 
18707
  need_lib_prefix=no
 
18708
  need_version=no
 
18709
  soname_spec='${libname}${release}${shared_ext}$major'
 
18710
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18711
  case $host_os in
 
18712
  irix5* | nonstopux*)
 
18713
    libsuff= shlibsuff=
 
18714
    ;;
 
18715
  *)
 
18716
    case $LD in # libtool.m4 will add one of these switches to LD
 
18717
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
18718
      libsuff= shlibsuff= libmagic=32-bit;;
 
18719
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
18720
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
18721
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
18722
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
18723
    *) libsuff= shlibsuff= libmagic=never-match;;
 
18724
    esac
 
18725
    ;;
 
18726
  esac
 
18727
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
18728
  shlibpath_overrides_runpath=no
 
18729
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
18730
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
18731
  hardcode_into_libs=yes
 
18732
  ;;
 
18733
 
 
18734
# No shared lib support for Linux oldld, aout, or coff.
 
18735
linux*oldld* | linux*aout* | linux*coff*)
 
18736
  dynamic_linker=no
 
18737
  ;;
 
18738
 
 
18739
# This must be Linux ELF.
 
18740
linux* | k*bsd*-gnu)
 
18741
  version_type=linux
 
18742
  need_lib_prefix=no
 
18743
  need_version=no
 
18744
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18745
  soname_spec='${libname}${release}${shared_ext}$major'
 
18746
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
18747
  shlibpath_var=LD_LIBRARY_PATH
 
18748
  shlibpath_overrides_runpath=no
 
18749
  # This implies no fast_install, which is unacceptable.
 
18750
  # Some rework will be needed to allow for fast_install
 
18751
  # before this can be enabled.
 
18752
  hardcode_into_libs=yes
 
18753
 
 
18754
  # Append ld.so.conf contents to the search path
 
18755
  if test -f /etc/ld.so.conf; then
 
18756
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
18757
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
18758
  fi
 
18759
 
 
18760
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
18761
  # powerpc, because MkLinux only supported shared libraries with the
 
18762
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
18763
  # most powerpc-linux boxes support dynamic linking these days and
 
18764
  # people can always --disable-shared, the test was removed, and we
 
18765
  # assume the GNU/Linux dynamic linker is in use.
 
18766
  dynamic_linker='GNU/Linux ld.so'
 
18767
  ;;
 
18768
 
 
18769
netbsd*)
 
18770
  version_type=sunos
 
18771
  need_lib_prefix=no
 
18772
  need_version=no
 
18773
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
18774
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18775
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
18776
    dynamic_linker='NetBSD (a.out) ld.so'
 
18777
  else
 
18778
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18779
    soname_spec='${libname}${release}${shared_ext}$major'
 
18780
    dynamic_linker='NetBSD ld.elf_so'
 
18781
  fi
 
18782
  shlibpath_var=LD_LIBRARY_PATH
 
18783
  shlibpath_overrides_runpath=yes
 
18784
  hardcode_into_libs=yes
 
18785
  ;;
 
18786
 
 
18787
newsos6)
 
18788
  version_type=linux
 
18789
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18790
  shlibpath_var=LD_LIBRARY_PATH
 
18791
  shlibpath_overrides_runpath=yes
 
18792
  ;;
 
18793
 
 
18794
nto-qnx*)
 
18795
  version_type=linux
 
18796
  need_lib_prefix=no
 
18797
  need_version=no
 
18798
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18799
  soname_spec='${libname}${release}${shared_ext}$major'
 
18800
  shlibpath_var=LD_LIBRARY_PATH
 
18801
  shlibpath_overrides_runpath=yes
 
18802
  ;;
 
18803
 
 
18804
openbsd*)
 
18805
  version_type=sunos
 
18806
  sys_lib_dlsearch_path_spec="/usr/lib"
 
18807
  need_lib_prefix=no
 
18808
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
18809
  case $host_os in
 
18810
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
18811
    *)                         need_version=no  ;;
 
18812
  esac
 
18813
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18814
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
18815
  shlibpath_var=LD_LIBRARY_PATH
 
18816
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
18817
    case $host_os in
 
18818
      openbsd2.[89] | openbsd2.[89].*)
 
18819
        shlibpath_overrides_runpath=no
 
18820
        ;;
 
18821
      *)
 
18822
        shlibpath_overrides_runpath=yes
 
18823
        ;;
 
18824
      esac
 
18825
  else
 
18826
    shlibpath_overrides_runpath=yes
 
18827
  fi
 
18828
  ;;
 
18829
 
 
18830
os2*)
 
18831
  libname_spec='$name'
 
18832
  shrext_cmds=".dll"
 
18833
  need_lib_prefix=no
 
18834
  library_names_spec='$libname${shared_ext} $libname.a'
 
18835
  dynamic_linker='OS/2 ld.exe'
 
18836
  shlibpath_var=LIBPATH
 
18837
  ;;
 
18838
 
 
18839
osf3* | osf4* | osf5*)
 
18840
  version_type=osf
 
18841
  need_lib_prefix=no
 
18842
  need_version=no
 
18843
  soname_spec='${libname}${release}${shared_ext}$major'
 
18844
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18845
  shlibpath_var=LD_LIBRARY_PATH
 
18846
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
18847
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
18848
  ;;
 
18849
 
 
18850
rdos*)
 
18851
  dynamic_linker=no
 
18852
  ;;
 
18853
 
 
18854
solaris*)
 
18855
  version_type=linux
 
18856
  need_lib_prefix=no
 
18857
  need_version=no
 
18858
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18859
  soname_spec='${libname}${release}${shared_ext}$major'
 
18860
  shlibpath_var=LD_LIBRARY_PATH
 
18861
  shlibpath_overrides_runpath=yes
 
18862
  hardcode_into_libs=yes
 
18863
  # ldd complains unless libraries are executable
 
18864
  postinstall_cmds='chmod +x $lib'
 
18865
  ;;
 
18866
 
 
18867
sunos4*)
 
18868
  version_type=sunos
 
18869
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18870
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
18871
  shlibpath_var=LD_LIBRARY_PATH
 
18872
  shlibpath_overrides_runpath=yes
 
18873
  if test "$with_gnu_ld" = yes; then
 
18874
    need_lib_prefix=no
 
18875
  fi
 
18876
  need_version=yes
 
18877
  ;;
 
18878
 
 
18879
sysv4 | sysv4.3*)
 
18880
  version_type=linux
 
18881
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18882
  soname_spec='${libname}${release}${shared_ext}$major'
 
18883
  shlibpath_var=LD_LIBRARY_PATH
 
18884
  case $host_vendor in
 
18885
    sni)
 
18886
      shlibpath_overrides_runpath=no
 
18887
      need_lib_prefix=no
 
18888
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
18889
      runpath_var=LD_RUN_PATH
 
18890
      ;;
 
18891
    siemens)
 
18892
      need_lib_prefix=no
 
18893
      ;;
 
18894
    motorola)
 
18895
      need_lib_prefix=no
 
18896
      need_version=no
 
18897
      shlibpath_overrides_runpath=no
 
18898
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
18899
      ;;
 
18900
  esac
 
18901
  ;;
 
18902
 
 
18903
sysv4*MP*)
 
18904
  if test -d /usr/nec ;then
 
18905
    version_type=linux
 
18906
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
18907
    soname_spec='$libname${shared_ext}.$major'
 
18908
    shlibpath_var=LD_LIBRARY_PATH
 
18909
  fi
 
18910
  ;;
 
18911
 
 
18912
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
18913
  version_type=freebsd-elf
 
18914
  need_lib_prefix=no
 
18915
  need_version=no
 
18916
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18917
  soname_spec='${libname}${release}${shared_ext}$major'
 
18918
  shlibpath_var=LD_LIBRARY_PATH
 
18919
  hardcode_into_libs=yes
 
18920
  if test "$with_gnu_ld" = yes; then
 
18921
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
18922
    shlibpath_overrides_runpath=no
 
18923
  else
 
18924
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
18925
    shlibpath_overrides_runpath=yes
 
18926
    case $host_os in
 
18927
      sco3.2v5*)
 
18928
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
18929
        ;;
 
18930
    esac
 
18931
  fi
 
18932
  sys_lib_dlsearch_path_spec='/usr/lib'
 
18933
  ;;
 
18934
 
 
18935
uts4*)
 
18936
  version_type=linux
 
18937
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18938
  soname_spec='${libname}${release}${shared_ext}$major'
 
18939
  shlibpath_var=LD_LIBRARY_PATH
 
18940
  ;;
 
18941
 
 
18942
*)
 
18943
  dynamic_linker=no
 
18944
  ;;
 
18945
esac
 
18946
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
18947
echo "${ECHO_T}$dynamic_linker" >&6; }
 
18948
test "$dynamic_linker" = no && can_build_shared=no
 
18949
 
 
18950
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
 
18951
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18952
else
 
18953
  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
 
18954
fi
 
18955
 
 
18956
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
 
18957
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
 
18958
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18959
else
 
18960
  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
 
18961
fi
 
18962
 
 
18963
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
 
18964
 
 
18965
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
18966
if test "$GCC" = yes; then
 
18967
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
18968
fi
 
18969
 
 
18970
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
18971
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
18972
hardcode_action_GCJ=
 
18973
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
 
18974
   test -n "$runpath_var_GCJ" || \
 
18975
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
 
18976
 
 
18977
  # We can hardcode non-existant directories.
 
18978
  if test "$hardcode_direct_GCJ" != no &&
 
18979
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
18980
     # have to relink, otherwise we might link with an installed library
 
18981
     # when we should be linking with a yet-to-be-installed one
 
18982
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
 
18983
     test "$hardcode_minus_L_GCJ" != no; then
 
18984
    # Linking always hardcodes the temporary library directory.
 
18985
    hardcode_action_GCJ=relink
 
18986
  else
 
18987
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
18988
    hardcode_action_GCJ=immediate
 
18989
  fi
 
18990
else
 
18991
  # We cannot hardcode anything, or else we can only hardcode existing
 
18992
  # directories.
 
18993
  hardcode_action_GCJ=unsupported
 
18994
fi
 
18995
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
18996
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
 
18997
 
 
18998
if test "$hardcode_action_GCJ" = relink; then
 
18999
  # Fast installation is not supported
 
19000
  enable_fast_install=no
 
19001
elif test "$shlibpath_overrides_runpath" = yes ||
 
19002
     test "$enable_shared" = no; then
 
19003
  # Fast installation is not necessary
 
19004
  enable_fast_install=needless
 
19005
fi
 
19006
 
 
19007
 
 
19008
# The else clause should only fire when bootstrapping the
 
19009
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
19010
# with your package, and you will get complaints that there are
 
19011
# no rules to generate ltmain.sh.
 
19012
if test -f "$ltmain"; then
 
19013
  # See if we are running on zsh, and set the options which allow our commands through
 
19014
  # without removal of \ escapes.
 
19015
  if test -n "${ZSH_VERSION+set}" ; then
 
19016
    setopt NO_GLOB_SUBST
 
19017
  fi
 
19018
  # Now quote all the things that may contain metacharacters while being
 
19019
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
19020
  # variables and quote the copies for generation of the libtool script.
 
19021
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
19022
    SED SHELL STRIP \
 
19023
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
19024
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
19025
    deplibs_check_method reload_flag reload_cmds need_locks \
 
19026
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
19027
    lt_cv_sys_global_symbol_to_c_name_address \
 
19028
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
19029
    old_postinstall_cmds old_postuninstall_cmds \
 
19030
    compiler_GCJ \
 
19031
    CC_GCJ \
 
19032
    LD_GCJ \
 
19033
    lt_prog_compiler_wl_GCJ \
 
19034
    lt_prog_compiler_pic_GCJ \
 
19035
    lt_prog_compiler_static_GCJ \
 
19036
    lt_prog_compiler_no_builtin_flag_GCJ \
 
19037
    export_dynamic_flag_spec_GCJ \
 
19038
    thread_safe_flag_spec_GCJ \
 
19039
    whole_archive_flag_spec_GCJ \
 
19040
    enable_shared_with_static_runtimes_GCJ \
 
19041
    old_archive_cmds_GCJ \
 
19042
    old_archive_from_new_cmds_GCJ \
 
19043
    predep_objects_GCJ \
 
19044
    postdep_objects_GCJ \
 
19045
    predeps_GCJ \
 
19046
    postdeps_GCJ \
 
19047
    compiler_lib_search_path_GCJ \
 
19048
    compiler_lib_search_dirs_GCJ \
 
19049
    archive_cmds_GCJ \
 
19050
    archive_expsym_cmds_GCJ \
 
19051
    postinstall_cmds_GCJ \
 
19052
    postuninstall_cmds_GCJ \
 
19053
    old_archive_from_expsyms_cmds_GCJ \
 
19054
    allow_undefined_flag_GCJ \
 
19055
    no_undefined_flag_GCJ \
 
19056
    export_symbols_cmds_GCJ \
 
19057
    hardcode_libdir_flag_spec_GCJ \
 
19058
    hardcode_libdir_flag_spec_ld_GCJ \
 
19059
    hardcode_libdir_separator_GCJ \
 
19060
    hardcode_automatic_GCJ \
 
19061
    module_cmds_GCJ \
 
19062
    module_expsym_cmds_GCJ \
 
19063
    lt_cv_prog_compiler_c_o_GCJ \
 
19064
    fix_srcfile_path_GCJ \
 
19065
    exclude_expsyms_GCJ \
 
19066
    include_expsyms_GCJ; do
 
19067
 
 
19068
    case $var in
 
19069
    old_archive_cmds_GCJ | \
 
19070
    old_archive_from_new_cmds_GCJ | \
 
19071
    archive_cmds_GCJ | \
 
19072
    archive_expsym_cmds_GCJ | \
 
19073
    module_cmds_GCJ | \
 
19074
    module_expsym_cmds_GCJ | \
 
19075
    old_archive_from_expsyms_cmds_GCJ | \
 
19076
    export_symbols_cmds_GCJ | \
 
19077
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
19078
    postinstall_cmds | postuninstall_cmds | \
 
19079
    old_postinstall_cmds | old_postuninstall_cmds | \
 
19080
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
19081
      # Double-quote double-evaled strings.
 
19082
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
19083
      ;;
 
19084
    *)
 
19085
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
19086
      ;;
 
19087
    esac
 
19088
  done
 
19089
 
 
19090
  case $lt_echo in
 
19091
  *'\$0 --fallback-echo"')
 
19092
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
19093
    ;;
 
19094
  esac
 
19095
 
 
19096
cfgfile="$ofile"
 
19097
 
 
19098
  cat <<__EOF__ >> "$cfgfile"
 
19099
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
19100
 
 
19101
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
19102
 
 
19103
# Shell to use when invoking shell scripts.
 
19104
SHELL=$lt_SHELL
 
19105
 
 
19106
# Whether or not to build shared libraries.
 
19107
build_libtool_libs=$enable_shared
 
19108
 
 
19109
# Whether or not to build static libraries.
 
19110
build_old_libs=$enable_static
 
19111
 
 
19112
# Whether or not to add -lc for building shared libraries.
 
19113
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
 
19114
 
 
19115
# Whether or not to disallow shared libs when runtime libs are static
 
19116
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
 
19117
 
 
19118
# Whether or not to optimize for fast installation.
 
19119
fast_install=$enable_fast_install
 
19120
 
 
19121
# The host system.
 
19122
host_alias=$host_alias
 
19123
host=$host
 
19124
host_os=$host_os
 
19125
 
 
19126
# The build system.
 
19127
build_alias=$build_alias
 
19128
build=$build
 
19129
build_os=$build_os
 
19130
 
 
19131
# An echo program that does not interpret backslashes.
 
19132
echo=$lt_echo
 
19133
 
 
19134
# The archiver.
 
19135
AR=$lt_AR
 
19136
AR_FLAGS=$lt_AR_FLAGS
 
19137
 
 
19138
# A C compiler.
 
19139
LTCC=$lt_LTCC
 
19140
 
 
19141
# LTCC compiler flags.
 
19142
LTCFLAGS=$lt_LTCFLAGS
 
19143
 
 
19144
# A language-specific compiler.
 
19145
CC=$lt_compiler_GCJ
 
19146
 
 
19147
# Is the compiler the GNU C compiler?
 
19148
with_gcc=$GCC_GCJ
 
19149
 
 
19150
# An ERE matcher.
 
19151
EGREP=$lt_EGREP
 
19152
 
 
19153
# The linker used to build libraries.
 
19154
LD=$lt_LD_GCJ
 
19155
 
 
19156
# Whether we need hard or soft links.
 
19157
LN_S=$lt_LN_S
 
19158
 
 
19159
# A BSD-compatible nm program.
 
19160
NM=$lt_NM
 
19161
 
 
19162
# A symbol stripping program
 
19163
STRIP=$lt_STRIP
 
19164
 
 
19165
# Used to examine libraries when file_magic_cmd begins "file"
 
19166
MAGIC_CMD=$MAGIC_CMD
 
19167
 
 
19168
# Used on cygwin: DLL creation program.
 
19169
DLLTOOL="$DLLTOOL"
 
19170
 
 
19171
# Used on cygwin: object dumper.
 
19172
OBJDUMP="$OBJDUMP"
 
19173
 
 
19174
# Used on cygwin: assembler.
 
19175
AS="$AS"
 
19176
 
 
19177
# The name of the directory that contains temporary libtool files.
 
19178
objdir=$objdir
 
19179
 
 
19180
# How to create reloadable object files.
 
19181
reload_flag=$lt_reload_flag
 
19182
reload_cmds=$lt_reload_cmds
 
19183
 
 
19184
# How to pass a linker flag through the compiler.
 
19185
wl=$lt_lt_prog_compiler_wl_GCJ
 
19186
 
 
19187
# Object file suffix (normally "o").
 
19188
objext="$ac_objext"
 
19189
 
 
19190
# Old archive suffix (normally "a").
 
19191
libext="$libext"
 
19192
 
 
19193
# Shared library suffix (normally ".so").
 
19194
shrext_cmds='$shrext_cmds'
 
19195
 
 
19196
# Executable file suffix (normally "").
 
19197
exeext="$exeext"
 
19198
 
 
19199
# Additional compiler flags for building library objects.
 
19200
pic_flag=$lt_lt_prog_compiler_pic_GCJ
 
19201
pic_mode=$pic_mode
 
19202
 
 
19203
# What is the maximum length of a command?
 
19204
max_cmd_len=$lt_cv_sys_max_cmd_len
 
19205
 
 
19206
# Does compiler simultaneously support -c and -o options?
 
19207
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
 
19208
 
 
19209
# Must we lock files when doing compilation?
 
19210
need_locks=$lt_need_locks
 
19211
 
 
19212
# Do we need the lib prefix for modules?
 
19213
need_lib_prefix=$need_lib_prefix
 
19214
 
 
19215
# Do we need a version for libraries?
 
19216
need_version=$need_version
 
19217
 
 
19218
# Whether dlopen is supported.
 
19219
dlopen_support=$enable_dlopen
 
19220
 
 
19221
# Whether dlopen of programs is supported.
 
19222
dlopen_self=$enable_dlopen_self
 
19223
 
 
19224
# Whether dlopen of statically linked programs is supported.
 
19225
dlopen_self_static=$enable_dlopen_self_static
 
19226
 
 
19227
# Compiler flag to prevent dynamic linking.
 
19228
link_static_flag=$lt_lt_prog_compiler_static_GCJ
 
19229
 
 
19230
# Compiler flag to turn off builtin functions.
 
19231
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
 
19232
 
 
19233
# Compiler flag to allow reflexive dlopens.
 
19234
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
 
19235
 
 
19236
# Compiler flag to generate shared objects directly from archives.
 
19237
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
 
19238
 
 
19239
# Compiler flag to generate thread-safe objects.
 
19240
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
 
19241
 
 
19242
# Library versioning type.
 
19243
version_type=$version_type
 
19244
 
 
19245
# Format of library name prefix.
 
19246
libname_spec=$lt_libname_spec
 
19247
 
 
19248
# List of archive names.  First name is the real one, the rest are links.
 
19249
# The last name is the one that the linker finds with -lNAME.
 
19250
library_names_spec=$lt_library_names_spec
 
19251
 
 
19252
# The coded name of the library, if different from the real name.
 
19253
soname_spec=$lt_soname_spec
 
19254
 
 
19255
# Commands used to build and install an old-style archive.
 
19256
RANLIB=$lt_RANLIB
 
19257
old_archive_cmds=$lt_old_archive_cmds_GCJ
 
19258
old_postinstall_cmds=$lt_old_postinstall_cmds
 
19259
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
19260
 
 
19261
# Create an old-style archive from a shared archive.
 
19262
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
 
19263
 
 
19264
# Create a temporary old-style archive to link instead of a shared archive.
 
19265
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
 
19266
 
 
19267
# Commands used to build and install a shared archive.
 
19268
archive_cmds=$lt_archive_cmds_GCJ
 
19269
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
 
19270
postinstall_cmds=$lt_postinstall_cmds
 
19271
postuninstall_cmds=$lt_postuninstall_cmds
 
19272
 
 
19273
# Commands used to build a loadable module (assumed same as above if empty)
 
19274
module_cmds=$lt_module_cmds_GCJ
 
19275
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
 
19276
 
 
19277
# Commands to strip libraries.
 
19278
old_striplib=$lt_old_striplib
 
19279
striplib=$lt_striplib
 
19280
 
 
19281
# Dependencies to place before the objects being linked to create a
 
19282
# shared library.
 
19283
predep_objects=$lt_predep_objects_GCJ
 
19284
 
 
19285
# Dependencies to place after the objects being linked to create a
 
19286
# shared library.
 
19287
postdep_objects=$lt_postdep_objects_GCJ
 
19288
 
 
19289
# Dependencies to place before the objects being linked to create a
 
19290
# shared library.
 
19291
predeps=$lt_predeps_GCJ
 
19292
 
 
19293
# Dependencies to place after the objects being linked to create a
 
19294
# shared library.
 
19295
postdeps=$lt_postdeps_GCJ
 
19296
 
 
19297
# The directories searched by this compiler when creating a shared
 
19298
# library
 
19299
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
 
19300
 
 
19301
# The library search path used internally by the compiler when linking
 
19302
# a shared library.
 
19303
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
 
19304
 
 
19305
# Method to check whether dependent libraries are shared objects.
 
19306
deplibs_check_method=$lt_deplibs_check_method
 
19307
 
 
19308
# Command to use when deplibs_check_method == file_magic.
 
19309
file_magic_cmd=$lt_file_magic_cmd
 
19310
 
 
19311
# Flag that allows shared libraries with undefined symbols to be built.
 
19312
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
 
19313
 
 
19314
# Flag that forces no undefined symbols.
 
19315
no_undefined_flag=$lt_no_undefined_flag_GCJ
 
19316
 
 
19317
# Commands used to finish a libtool library installation in a directory.
 
19318
finish_cmds=$lt_finish_cmds
 
19319
 
 
19320
# Same as above, but a single script fragment to be evaled but not shown.
 
19321
finish_eval=$lt_finish_eval
 
19322
 
 
19323
# Take the output of nm and produce a listing of raw symbols and C names.
 
19324
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
19325
 
 
19326
# Transform the output of nm in a proper C declaration
 
19327
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
19328
 
 
19329
# Transform the output of nm in a C name address pair
 
19330
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
19331
 
 
19332
# This is the shared library runtime path variable.
 
19333
runpath_var=$runpath_var
 
19334
 
 
19335
# This is the shared library path variable.
 
19336
shlibpath_var=$shlibpath_var
 
19337
 
 
19338
# Is shlibpath searched before the hard-coded library search path?
 
19339
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
19340
 
 
19341
# How to hardcode a shared library path into an executable.
 
19342
hardcode_action=$hardcode_action_GCJ
 
19343
 
 
19344
# Whether we should hardcode library paths into libraries.
 
19345
hardcode_into_libs=$hardcode_into_libs
 
19346
 
 
19347
# Flag to hardcode \$libdir into a binary during linking.
 
19348
# This must work even if \$libdir does not exist.
 
19349
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
 
19350
 
 
19351
# If ld is used when linking, flag to hardcode \$libdir into
 
19352
# a binary during linking. This must work even if \$libdir does
 
19353
# not exist.
 
19354
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
 
19355
 
 
19356
# Whether we need a single -rpath flag with a separated argument.
 
19357
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
 
19358
 
 
19359
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
19360
# resulting binary.
 
19361
hardcode_direct=$hardcode_direct_GCJ
 
19362
 
 
19363
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
19364
# resulting binary.
 
19365
hardcode_minus_L=$hardcode_minus_L_GCJ
 
19366
 
 
19367
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
19368
# the resulting binary.
 
19369
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
 
19370
 
 
19371
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
19372
# and all subsequent libraries and executables linked against it.
 
19373
hardcode_automatic=$hardcode_automatic_GCJ
 
19374
 
 
19375
# Variables whose values should be saved in libtool wrapper scripts and
 
19376
# restored at relink time.
 
19377
variables_saved_for_relink="$variables_saved_for_relink"
 
19378
 
 
19379
# Whether libtool must link a program against all its dependency libraries.
 
19380
link_all_deplibs=$link_all_deplibs_GCJ
 
19381
 
 
19382
# Compile-time system search path for libraries
 
19383
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
19384
 
 
19385
# Run-time system search path for libraries
 
19386
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
19387
 
 
19388
# Fix the shell variable \$srcfile for the compiler.
 
19389
fix_srcfile_path=$lt_fix_srcfile_path
 
19390
 
 
19391
# Set to yes if exported symbols are required.
 
19392
always_export_symbols=$always_export_symbols_GCJ
 
19393
 
 
19394
# The commands to list exported symbols.
 
19395
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
 
19396
 
 
19397
# The commands to extract the exported symbol list from a shared archive.
 
19398
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
19399
 
 
19400
# Symbols that should not be listed in the preloaded symbols.
 
19401
exclude_expsyms=$lt_exclude_expsyms_GCJ
 
19402
 
 
19403
# Symbols that must always be exported.
 
19404
include_expsyms=$lt_include_expsyms_GCJ
 
19405
 
 
19406
# ### END LIBTOOL TAG CONFIG: $tagname
 
19407
 
 
19408
__EOF__
 
19409
 
 
19410
 
 
19411
else
 
19412
  # If there is no Makefile yet, we rely on a make rule to execute
 
19413
  # `config.status --recheck' to rerun these tests and create the
 
19414
  # libtool script then.
 
19415
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
19416
  if test -f "$ltmain_in"; then
 
19417
    test -f Makefile && make "$ltmain"
 
19418
  fi
 
19419
fi
 
19420
 
 
19421
 
 
19422
ac_ext=c
 
19423
ac_cpp='$CPP $CPPFLAGS'
 
19424
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19425
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19426
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19427
 
 
19428
CC="$lt_save_CC"
 
19429
 
 
19430
        else
 
19431
          tagname=""
 
19432
        fi
 
19433
        ;;
 
19434
 
 
19435
      RC)
 
19436
 
 
19437
 
 
19438
# Source file extension for RC test sources.
 
19439
ac_ext=rc
 
19440
 
 
19441
# Object file extension for compiled RC test sources.
 
19442
objext=o
 
19443
objext_RC=$objext
 
19444
 
 
19445
# Code to be used in simple compile tests
 
19446
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
 
19447
 
 
19448
# Code to be used in simple link tests
 
19449
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
19450
 
 
19451
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
19452
 
 
19453
# If no C compiler was specified, use CC.
 
19454
LTCC=${LTCC-"$CC"}
 
19455
 
 
19456
# If no C compiler flags were specified, use CFLAGS.
 
19457
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
19458
 
 
19459
# Allow CC to be a program name with arguments.
 
19460
compiler=$CC
 
19461
 
 
19462
 
 
19463
# save warnings/boilerplate of simple test code
 
19464
ac_outfile=conftest.$ac_objext
 
19465
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
 
19466
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
19467
_lt_compiler_boilerplate=`cat conftest.err`
 
19468
$rm conftest*
 
19469
 
 
19470
ac_outfile=conftest.$ac_objext
 
19471
echo "$lt_simple_link_test_code" >conftest.$ac_ext
 
19472
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
19473
_lt_linker_boilerplate=`cat conftest.err`
 
19474
$rm -r conftest*
 
19475
 
 
19476
 
 
19477
# Allow CC to be a program name with arguments.
 
19478
lt_save_CC="$CC"
 
19479
CC=${RC-"windres"}
 
19480
compiler=$CC
 
19481
compiler_RC=$CC
 
19482
for cc_temp in $compiler""; do
 
19483
  case $cc_temp in
 
19484
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
19485
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
19486
    \-*) ;;
 
19487
    *) break;;
 
19488
  esac
 
19489
done
 
19490
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
19491
 
 
19492
lt_cv_prog_compiler_c_o_RC=yes
 
19493
 
 
19494
# The else clause should only fire when bootstrapping the
 
19495
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
19496
# with your package, and you will get complaints that there are
 
19497
# no rules to generate ltmain.sh.
 
19498
if test -f "$ltmain"; then
 
19499
  # See if we are running on zsh, and set the options which allow our commands through
 
19500
  # without removal of \ escapes.
 
19501
  if test -n "${ZSH_VERSION+set}" ; then
 
19502
    setopt NO_GLOB_SUBST
 
19503
  fi
 
19504
  # Now quote all the things that may contain metacharacters while being
 
19505
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
19506
  # variables and quote the copies for generation of the libtool script.
 
19507
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
19508
    SED SHELL STRIP \
 
19509
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
19510
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
19511
    deplibs_check_method reload_flag reload_cmds need_locks \
 
19512
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
19513
    lt_cv_sys_global_symbol_to_c_name_address \
 
19514
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
19515
    old_postinstall_cmds old_postuninstall_cmds \
 
19516
    compiler_RC \
 
19517
    CC_RC \
 
19518
    LD_RC \
 
19519
    lt_prog_compiler_wl_RC \
 
19520
    lt_prog_compiler_pic_RC \
 
19521
    lt_prog_compiler_static_RC \
 
19522
    lt_prog_compiler_no_builtin_flag_RC \
 
19523
    export_dynamic_flag_spec_RC \
 
19524
    thread_safe_flag_spec_RC \
 
19525
    whole_archive_flag_spec_RC \
 
19526
    enable_shared_with_static_runtimes_RC \
 
19527
    old_archive_cmds_RC \
 
19528
    old_archive_from_new_cmds_RC \
 
19529
    predep_objects_RC \
 
19530
    postdep_objects_RC \
 
19531
    predeps_RC \
 
19532
    postdeps_RC \
 
19533
    compiler_lib_search_path_RC \
 
19534
    compiler_lib_search_dirs_RC \
 
19535
    archive_cmds_RC \
 
19536
    archive_expsym_cmds_RC \
 
19537
    postinstall_cmds_RC \
 
19538
    postuninstall_cmds_RC \
 
19539
    old_archive_from_expsyms_cmds_RC \
 
19540
    allow_undefined_flag_RC \
 
19541
    no_undefined_flag_RC \
 
19542
    export_symbols_cmds_RC \
 
19543
    hardcode_libdir_flag_spec_RC \
 
19544
    hardcode_libdir_flag_spec_ld_RC \
 
19545
    hardcode_libdir_separator_RC \
 
19546
    hardcode_automatic_RC \
 
19547
    module_cmds_RC \
 
19548
    module_expsym_cmds_RC \
 
19549
    lt_cv_prog_compiler_c_o_RC \
 
19550
    fix_srcfile_path_RC \
 
19551
    exclude_expsyms_RC \
 
19552
    include_expsyms_RC; do
 
19553
 
 
19554
    case $var in
 
19555
    old_archive_cmds_RC | \
 
19556
    old_archive_from_new_cmds_RC | \
 
19557
    archive_cmds_RC | \
 
19558
    archive_expsym_cmds_RC | \
 
19559
    module_cmds_RC | \
 
19560
    module_expsym_cmds_RC | \
 
19561
    old_archive_from_expsyms_cmds_RC | \
 
19562
    export_symbols_cmds_RC | \
 
19563
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
19564
    postinstall_cmds | postuninstall_cmds | \
 
19565
    old_postinstall_cmds | old_postuninstall_cmds | \
 
19566
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
19567
      # Double-quote double-evaled strings.
 
19568
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
19569
      ;;
 
19570
    *)
 
19571
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
19572
      ;;
 
19573
    esac
 
19574
  done
 
19575
 
 
19576
  case $lt_echo in
 
19577
  *'\$0 --fallback-echo"')
 
19578
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
19579
    ;;
 
19580
  esac
 
19581
 
 
19582
cfgfile="$ofile"
 
19583
 
 
19584
  cat <<__EOF__ >> "$cfgfile"
 
19585
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
19586
 
 
19587
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
19588
 
 
19589
# Shell to use when invoking shell scripts.
 
19590
SHELL=$lt_SHELL
 
19591
 
 
19592
# Whether or not to build shared libraries.
 
19593
build_libtool_libs=$enable_shared
 
19594
 
 
19595
# Whether or not to build static libraries.
 
19596
build_old_libs=$enable_static
 
19597
 
 
19598
# Whether or not to add -lc for building shared libraries.
 
19599
build_libtool_need_lc=$archive_cmds_need_lc_RC
 
19600
 
 
19601
# Whether or not to disallow shared libs when runtime libs are static
 
19602
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
 
19603
 
 
19604
# Whether or not to optimize for fast installation.
 
19605
fast_install=$enable_fast_install
 
19606
 
 
19607
# The host system.
 
19608
host_alias=$host_alias
 
19609
host=$host
 
19610
host_os=$host_os
 
19611
 
 
19612
# The build system.
 
19613
build_alias=$build_alias
 
19614
build=$build
 
19615
build_os=$build_os
 
19616
 
 
19617
# An echo program that does not interpret backslashes.
 
19618
echo=$lt_echo
 
19619
 
 
19620
# The archiver.
 
19621
AR=$lt_AR
 
19622
AR_FLAGS=$lt_AR_FLAGS
 
19623
 
 
19624
# A C compiler.
 
19625
LTCC=$lt_LTCC
 
19626
 
 
19627
# LTCC compiler flags.
 
19628
LTCFLAGS=$lt_LTCFLAGS
 
19629
 
 
19630
# A language-specific compiler.
 
19631
CC=$lt_compiler_RC
 
19632
 
 
19633
# Is the compiler the GNU C compiler?
 
19634
with_gcc=$GCC_RC
 
19635
 
 
19636
# An ERE matcher.
 
19637
EGREP=$lt_EGREP
 
19638
 
 
19639
# The linker used to build libraries.
 
19640
LD=$lt_LD_RC
 
19641
 
 
19642
# Whether we need hard or soft links.
 
19643
LN_S=$lt_LN_S
 
19644
 
 
19645
# A BSD-compatible nm program.
 
19646
NM=$lt_NM
 
19647
 
 
19648
# A symbol stripping program
 
19649
STRIP=$lt_STRIP
 
19650
 
 
19651
# Used to examine libraries when file_magic_cmd begins "file"
 
19652
MAGIC_CMD=$MAGIC_CMD
 
19653
 
 
19654
# Used on cygwin: DLL creation program.
 
19655
DLLTOOL="$DLLTOOL"
 
19656
 
 
19657
# Used on cygwin: object dumper.
 
19658
OBJDUMP="$OBJDUMP"
 
19659
 
 
19660
# Used on cygwin: assembler.
 
19661
AS="$AS"
 
19662
 
 
19663
# The name of the directory that contains temporary libtool files.
 
19664
objdir=$objdir
 
19665
 
 
19666
# How to create reloadable object files.
 
19667
reload_flag=$lt_reload_flag
 
19668
reload_cmds=$lt_reload_cmds
 
19669
 
 
19670
# How to pass a linker flag through the compiler.
 
19671
wl=$lt_lt_prog_compiler_wl_RC
 
19672
 
 
19673
# Object file suffix (normally "o").
 
19674
objext="$ac_objext"
 
19675
 
 
19676
# Old archive suffix (normally "a").
 
19677
libext="$libext"
 
19678
 
 
19679
# Shared library suffix (normally ".so").
 
19680
shrext_cmds='$shrext_cmds'
 
19681
 
 
19682
# Executable file suffix (normally "").
 
19683
exeext="$exeext"
 
19684
 
 
19685
# Additional compiler flags for building library objects.
 
19686
pic_flag=$lt_lt_prog_compiler_pic_RC
 
19687
pic_mode=$pic_mode
 
19688
 
 
19689
# What is the maximum length of a command?
 
19690
max_cmd_len=$lt_cv_sys_max_cmd_len
 
19691
 
 
19692
# Does compiler simultaneously support -c and -o options?
 
19693
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
 
19694
 
 
19695
# Must we lock files when doing compilation?
 
19696
need_locks=$lt_need_locks
 
19697
 
 
19698
# Do we need the lib prefix for modules?
 
19699
need_lib_prefix=$need_lib_prefix
 
19700
 
 
19701
# Do we need a version for libraries?
 
19702
need_version=$need_version
 
19703
 
 
19704
# Whether dlopen is supported.
 
19705
dlopen_support=$enable_dlopen
 
19706
 
 
19707
# Whether dlopen of programs is supported.
 
19708
dlopen_self=$enable_dlopen_self
 
19709
 
 
19710
# Whether dlopen of statically linked programs is supported.
 
19711
dlopen_self_static=$enable_dlopen_self_static
 
19712
 
 
19713
# Compiler flag to prevent dynamic linking.
 
19714
link_static_flag=$lt_lt_prog_compiler_static_RC
 
19715
 
 
19716
# Compiler flag to turn off builtin functions.
 
19717
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
 
19718
 
 
19719
# Compiler flag to allow reflexive dlopens.
 
19720
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
 
19721
 
 
19722
# Compiler flag to generate shared objects directly from archives.
 
19723
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
 
19724
 
 
19725
# Compiler flag to generate thread-safe objects.
 
19726
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
 
19727
 
 
19728
# Library versioning type.
 
19729
version_type=$version_type
 
19730
 
 
19731
# Format of library name prefix.
 
19732
libname_spec=$lt_libname_spec
 
19733
 
 
19734
# List of archive names.  First name is the real one, the rest are links.
 
19735
# The last name is the one that the linker finds with -lNAME.
 
19736
library_names_spec=$lt_library_names_spec
 
19737
 
 
19738
# The coded name of the library, if different from the real name.
 
19739
soname_spec=$lt_soname_spec
 
19740
 
 
19741
# Commands used to build and install an old-style archive.
 
19742
RANLIB=$lt_RANLIB
 
19743
old_archive_cmds=$lt_old_archive_cmds_RC
 
19744
old_postinstall_cmds=$lt_old_postinstall_cmds
 
19745
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
19746
 
 
19747
# Create an old-style archive from a shared archive.
 
19748
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
 
19749
 
 
19750
# Create a temporary old-style archive to link instead of a shared archive.
 
19751
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
 
19752
 
 
19753
# Commands used to build and install a shared archive.
 
19754
archive_cmds=$lt_archive_cmds_RC
 
19755
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
 
19756
postinstall_cmds=$lt_postinstall_cmds
 
19757
postuninstall_cmds=$lt_postuninstall_cmds
 
19758
 
 
19759
# Commands used to build a loadable module (assumed same as above if empty)
 
19760
module_cmds=$lt_module_cmds_RC
 
19761
module_expsym_cmds=$lt_module_expsym_cmds_RC
 
19762
 
 
19763
# Commands to strip libraries.
 
19764
old_striplib=$lt_old_striplib
 
19765
striplib=$lt_striplib
 
19766
 
 
19767
# Dependencies to place before the objects being linked to create a
 
19768
# shared library.
 
19769
predep_objects=$lt_predep_objects_RC
 
19770
 
 
19771
# Dependencies to place after the objects being linked to create a
 
19772
# shared library.
 
19773
postdep_objects=$lt_postdep_objects_RC
 
19774
 
 
19775
# Dependencies to place before the objects being linked to create a
 
19776
# shared library.
 
19777
predeps=$lt_predeps_RC
 
19778
 
 
19779
# Dependencies to place after the objects being linked to create a
 
19780
# shared library.
 
19781
postdeps=$lt_postdeps_RC
 
19782
 
 
19783
# The directories searched by this compiler when creating a shared
 
19784
# library
 
19785
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
 
19786
 
 
19787
# The library search path used internally by the compiler when linking
 
19788
# a shared library.
 
19789
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
 
19790
 
 
19791
# Method to check whether dependent libraries are shared objects.
 
19792
deplibs_check_method=$lt_deplibs_check_method
 
19793
 
 
19794
# Command to use when deplibs_check_method == file_magic.
 
19795
file_magic_cmd=$lt_file_magic_cmd
 
19796
 
 
19797
# Flag that allows shared libraries with undefined symbols to be built.
 
19798
allow_undefined_flag=$lt_allow_undefined_flag_RC
 
19799
 
 
19800
# Flag that forces no undefined symbols.
 
19801
no_undefined_flag=$lt_no_undefined_flag_RC
 
19802
 
 
19803
# Commands used to finish a libtool library installation in a directory.
 
19804
finish_cmds=$lt_finish_cmds
 
19805
 
 
19806
# Same as above, but a single script fragment to be evaled but not shown.
 
19807
finish_eval=$lt_finish_eval
 
19808
 
 
19809
# Take the output of nm and produce a listing of raw symbols and C names.
 
19810
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
19811
 
 
19812
# Transform the output of nm in a proper C declaration
 
19813
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
19814
 
 
19815
# Transform the output of nm in a C name address pair
 
19816
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
19817
 
 
19818
# This is the shared library runtime path variable.
 
19819
runpath_var=$runpath_var
 
19820
 
 
19821
# This is the shared library path variable.
 
19822
shlibpath_var=$shlibpath_var
 
19823
 
 
19824
# Is shlibpath searched before the hard-coded library search path?
 
19825
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
19826
 
 
19827
# How to hardcode a shared library path into an executable.
 
19828
hardcode_action=$hardcode_action_RC
 
19829
 
 
19830
# Whether we should hardcode library paths into libraries.
 
19831
hardcode_into_libs=$hardcode_into_libs
 
19832
 
 
19833
# Flag to hardcode \$libdir into a binary during linking.
 
19834
# This must work even if \$libdir does not exist.
 
19835
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
 
19836
 
 
19837
# If ld is used when linking, flag to hardcode \$libdir into
 
19838
# a binary during linking. This must work even if \$libdir does
 
19839
# not exist.
 
19840
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
 
19841
 
 
19842
# Whether we need a single -rpath flag with a separated argument.
 
19843
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
 
19844
 
 
19845
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
19846
# resulting binary.
 
19847
hardcode_direct=$hardcode_direct_RC
 
19848
 
 
19849
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
19850
# resulting binary.
 
19851
hardcode_minus_L=$hardcode_minus_L_RC
 
19852
 
 
19853
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
19854
# the resulting binary.
 
19855
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
 
19856
 
 
19857
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
19858
# and all subsequent libraries and executables linked against it.
 
19859
hardcode_automatic=$hardcode_automatic_RC
 
19860
 
 
19861
# Variables whose values should be saved in libtool wrapper scripts and
 
19862
# restored at relink time.
 
19863
variables_saved_for_relink="$variables_saved_for_relink"
 
19864
 
 
19865
# Whether libtool must link a program against all its dependency libraries.
 
19866
link_all_deplibs=$link_all_deplibs_RC
 
19867
 
 
19868
# Compile-time system search path for libraries
 
19869
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
19870
 
 
19871
# Run-time system search path for libraries
 
19872
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
19873
 
 
19874
# Fix the shell variable \$srcfile for the compiler.
 
19875
fix_srcfile_path=$lt_fix_srcfile_path
 
19876
 
 
19877
# Set to yes if exported symbols are required.
 
19878
always_export_symbols=$always_export_symbols_RC
 
19879
 
 
19880
# The commands to list exported symbols.
 
19881
export_symbols_cmds=$lt_export_symbols_cmds_RC
 
19882
 
 
19883
# The commands to extract the exported symbol list from a shared archive.
 
19884
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
19885
 
 
19886
# Symbols that should not be listed in the preloaded symbols.
 
19887
exclude_expsyms=$lt_exclude_expsyms_RC
 
19888
 
 
19889
# Symbols that must always be exported.
 
19890
include_expsyms=$lt_include_expsyms_RC
 
19891
 
 
19892
# ### END LIBTOOL TAG CONFIG: $tagname
 
19893
 
 
19894
__EOF__
 
19895
 
 
19896
 
 
19897
else
 
19898
  # If there is no Makefile yet, we rely on a make rule to execute
 
19899
  # `config.status --recheck' to rerun these tests and create the
 
19900
  # libtool script then.
 
19901
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
19902
  if test -f "$ltmain_in"; then
 
19903
    test -f Makefile && make "$ltmain"
 
19904
  fi
 
19905
fi
 
19906
 
 
19907
 
 
19908
ac_ext=c
 
19909
ac_cpp='$CPP $CPPFLAGS'
 
19910
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19911
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19912
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19913
 
 
19914
CC="$lt_save_CC"
 
19915
 
 
19916
        ;;
 
19917
 
 
19918
      *)
 
19919
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
 
19920
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
 
19921
   { (exit 1); exit 1; }; }
 
19922
        ;;
 
19923
      esac
 
19924
 
 
19925
      # Append the new tag name to the list of available tags.
 
19926
      if test -n "$tagname" ; then
 
19927
      available_tags="$available_tags $tagname"
 
19928
    fi
 
19929
    fi
 
19930
  done
 
19931
  IFS="$lt_save_ifs"
 
19932
 
 
19933
  # Now substitute the updated list of available tags.
 
19934
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
19935
    mv "${ofile}T" "$ofile"
 
19936
    chmod +x "$ofile"
 
19937
  else
 
19938
    rm -f "${ofile}T"
 
19939
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
 
19940
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
 
19941
   { (exit 1); exit 1; }; }
 
19942
  fi
 
19943
fi
 
19944
 
 
19945
 
 
19946
 
 
19947
# This can be used to rebuild libtool when needed
 
19948
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
19949
 
 
19950
# Always use our own libtool.
 
19951
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
19952
 
 
19953
# Prevent multiple expansion
 
19954
 
 
19955
 
 
19956
 
 
19957
 
 
19958
 
 
19959
 
 
19960
 
 
19961
 
 
19962
 
 
19963
 
 
19964
 
 
19965
 
 
19966
 
 
19967
 
 
19968
 
 
19969
 
 
19970
 
 
19971
 
 
19972
 
 
19973
 
 
19974
 
 
19975
 
 
19976
 
 
19977
 
 
19978
 
 
19979
 
 
19980
ac_header_dirent=no
 
19981
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
 
19982
  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
 
19983
{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
 
19984
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
 
19985
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
19986
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19987
else
 
19988
  cat >conftest.$ac_ext <<_ACEOF
 
19989
/* confdefs.h.  */
 
19990
_ACEOF
 
19991
cat confdefs.h >>conftest.$ac_ext
 
19992
cat >>conftest.$ac_ext <<_ACEOF
 
19993
/* end confdefs.h.  */
 
19994
#include <sys/types.h>
 
19995
#include <$ac_hdr>
 
19996
 
 
19997
int
 
19998
main ()
 
19999
{
 
20000
if ((DIR *) 0)
 
20001
return 0;
 
20002
  ;
 
20003
  return 0;
 
20004
}
 
20005
_ACEOF
 
20006
rm -f conftest.$ac_objext
 
20007
if { (ac_try="$ac_compile"
 
20008
case "(($ac_try" in
 
20009
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20010
  *) ac_try_echo=$ac_try;;
 
20011
esac
 
20012
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20013
  (eval "$ac_compile") 2>conftest.er1
 
20014
  ac_status=$?
 
20015
  grep -v '^ *+' conftest.er1 >conftest.err
 
20016
  rm -f conftest.er1
 
20017
  cat conftest.err >&5
 
20018
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20019
  (exit $ac_status); } && {
 
20020
         test -z "$ac_c_werror_flag" ||
 
20021
         test ! -s conftest.err
 
20022
       } && test -s conftest.$ac_objext; then
 
20023
  eval "$as_ac_Header=yes"
 
20024
else
 
20025
  echo "$as_me: failed program was:" >&5
 
20026
sed 's/^/| /' conftest.$ac_ext >&5
 
20027
 
 
20028
        eval "$as_ac_Header=no"
 
20029
fi
 
20030
 
 
20031
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20032
fi
 
20033
ac_res=`eval echo '${'$as_ac_Header'}'`
 
20034
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
20035
echo "${ECHO_T}$ac_res" >&6; }
 
20036
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
20037
  cat >>confdefs.h <<_ACEOF
 
20038
#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
 
20039
_ACEOF
 
20040
 
 
20041
ac_header_dirent=$ac_hdr; break
 
20042
fi
 
20043
 
 
20044
done
 
20045
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
 
20046
if test $ac_header_dirent = dirent.h; then
 
20047
  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
 
20048
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
 
20049
if test "${ac_cv_search_opendir+set}" = set; then
 
20050
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20051
else
 
20052
  ac_func_search_save_LIBS=$LIBS
 
20053
cat >conftest.$ac_ext <<_ACEOF
 
20054
/* confdefs.h.  */
 
20055
_ACEOF
 
20056
cat confdefs.h >>conftest.$ac_ext
 
20057
cat >>conftest.$ac_ext <<_ACEOF
 
20058
/* end confdefs.h.  */
 
20059
 
 
20060
/* Override any GCC internal prototype to avoid an error.
 
20061
   Use char because int might match the return type of a GCC
 
20062
   builtin and then its argument prototype would still apply.  */
 
20063
#ifdef __cplusplus
 
20064
extern "C"
 
20065
#endif
 
20066
char opendir ();
 
20067
int
 
20068
main ()
 
20069
{
 
20070
return opendir ();
 
20071
  ;
 
20072
  return 0;
 
20073
}
 
20074
_ACEOF
 
20075
for ac_lib in '' dir; do
 
20076
  if test -z "$ac_lib"; then
 
20077
    ac_res="none required"
 
20078
  else
 
20079
    ac_res=-l$ac_lib
 
20080
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
20081
  fi
 
20082
  rm -f conftest.$ac_objext conftest$ac_exeext
 
20083
if { (ac_try="$ac_link"
 
20084
case "(($ac_try" in
 
20085
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20086
  *) ac_try_echo=$ac_try;;
 
20087
esac
 
20088
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20089
  (eval "$ac_link") 2>conftest.er1
 
20090
  ac_status=$?
 
20091
  grep -v '^ *+' conftest.er1 >conftest.err
 
20092
  rm -f conftest.er1
 
20093
  cat conftest.err >&5
 
20094
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20095
  (exit $ac_status); } && {
 
20096
         test -z "$ac_c_werror_flag" ||
 
20097
         test ! -s conftest.err
 
20098
       } && test -s conftest$ac_exeext &&
 
20099
       $as_test_x conftest$ac_exeext; then
 
20100
  ac_cv_search_opendir=$ac_res
 
20101
else
 
20102
  echo "$as_me: failed program was:" >&5
 
20103
sed 's/^/| /' conftest.$ac_ext >&5
 
20104
 
 
20105
 
 
20106
fi
 
20107
 
 
20108
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
20109
      conftest$ac_exeext
 
20110
  if test "${ac_cv_search_opendir+set}" = set; then
 
20111
  break
 
20112
fi
 
20113
done
 
20114
if test "${ac_cv_search_opendir+set}" = set; then
 
20115
  :
 
20116
else
 
20117
  ac_cv_search_opendir=no
 
20118
fi
 
20119
rm conftest.$ac_ext
 
20120
LIBS=$ac_func_search_save_LIBS
 
20121
fi
 
20122
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
 
20123
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
 
20124
ac_res=$ac_cv_search_opendir
 
20125
if test "$ac_res" != no; then
 
20126
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
20127
 
 
20128
fi
 
20129
 
 
20130
else
 
20131
  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
 
20132
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
 
20133
if test "${ac_cv_search_opendir+set}" = set; then
 
20134
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20135
else
 
20136
  ac_func_search_save_LIBS=$LIBS
 
20137
cat >conftest.$ac_ext <<_ACEOF
 
20138
/* confdefs.h.  */
 
20139
_ACEOF
 
20140
cat confdefs.h >>conftest.$ac_ext
 
20141
cat >>conftest.$ac_ext <<_ACEOF
 
20142
/* end confdefs.h.  */
 
20143
 
 
20144
/* Override any GCC internal prototype to avoid an error.
 
20145
   Use char because int might match the return type of a GCC
 
20146
   builtin and then its argument prototype would still apply.  */
 
20147
#ifdef __cplusplus
 
20148
extern "C"
 
20149
#endif
 
20150
char opendir ();
 
20151
int
 
20152
main ()
 
20153
{
 
20154
return opendir ();
 
20155
  ;
 
20156
  return 0;
 
20157
}
 
20158
_ACEOF
 
20159
for ac_lib in '' x; do
 
20160
  if test -z "$ac_lib"; then
 
20161
    ac_res="none required"
 
20162
  else
 
20163
    ac_res=-l$ac_lib
 
20164
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
20165
  fi
 
20166
  rm -f conftest.$ac_objext conftest$ac_exeext
 
20167
if { (ac_try="$ac_link"
 
20168
case "(($ac_try" in
 
20169
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20170
  *) ac_try_echo=$ac_try;;
 
20171
esac
 
20172
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20173
  (eval "$ac_link") 2>conftest.er1
 
20174
  ac_status=$?
 
20175
  grep -v '^ *+' conftest.er1 >conftest.err
 
20176
  rm -f conftest.er1
 
20177
  cat conftest.err >&5
 
20178
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20179
  (exit $ac_status); } && {
 
20180
         test -z "$ac_c_werror_flag" ||
 
20181
         test ! -s conftest.err
 
20182
       } && test -s conftest$ac_exeext &&
 
20183
       $as_test_x conftest$ac_exeext; then
 
20184
  ac_cv_search_opendir=$ac_res
 
20185
else
 
20186
  echo "$as_me: failed program was:" >&5
 
20187
sed 's/^/| /' conftest.$ac_ext >&5
 
20188
 
 
20189
 
 
20190
fi
 
20191
 
 
20192
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
20193
      conftest$ac_exeext
 
20194
  if test "${ac_cv_search_opendir+set}" = set; then
 
20195
  break
 
20196
fi
 
20197
done
 
20198
if test "${ac_cv_search_opendir+set}" = set; then
 
20199
  :
 
20200
else
 
20201
  ac_cv_search_opendir=no
 
20202
fi
 
20203
rm conftest.$ac_ext
 
20204
LIBS=$ac_func_search_save_LIBS
 
20205
fi
 
20206
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
 
20207
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
 
20208
ac_res=$ac_cv_search_opendir
 
20209
if test "$ac_res" != no; then
 
20210
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
20211
 
 
20212
fi
 
20213
 
 
20214
fi
 
20215
 
 
20216
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
20217
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
 
20218
if test "${ac_cv_header_stdc+set}" = set; then
 
20219
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20220
else
 
20221
  cat >conftest.$ac_ext <<_ACEOF
 
20222
/* confdefs.h.  */
 
20223
_ACEOF
 
20224
cat confdefs.h >>conftest.$ac_ext
 
20225
cat >>conftest.$ac_ext <<_ACEOF
 
20226
/* end confdefs.h.  */
 
20227
#include <stdlib.h>
 
20228
#include <stdarg.h>
 
20229
#include <string.h>
 
20230
#include <float.h>
 
20231
 
 
20232
int
 
20233
main ()
 
20234
{
 
20235
 
 
20236
  ;
 
20237
  return 0;
 
20238
}
 
20239
_ACEOF
 
20240
rm -f conftest.$ac_objext
 
20241
if { (ac_try="$ac_compile"
 
20242
case "(($ac_try" in
 
20243
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20244
  *) ac_try_echo=$ac_try;;
 
20245
esac
 
20246
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20247
  (eval "$ac_compile") 2>conftest.er1
 
20248
  ac_status=$?
 
20249
  grep -v '^ *+' conftest.er1 >conftest.err
 
20250
  rm -f conftest.er1
 
20251
  cat conftest.err >&5
 
20252
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20253
  (exit $ac_status); } && {
 
20254
         test -z "$ac_c_werror_flag" ||
 
20255
         test ! -s conftest.err
 
20256
       } && test -s conftest.$ac_objext; then
 
20257
  ac_cv_header_stdc=yes
 
20258
else
 
20259
  echo "$as_me: failed program was:" >&5
 
20260
sed 's/^/| /' conftest.$ac_ext >&5
 
20261
 
 
20262
        ac_cv_header_stdc=no
 
20263
fi
 
20264
 
 
20265
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20266
 
 
20267
if test $ac_cv_header_stdc = yes; then
 
20268
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
20269
  cat >conftest.$ac_ext <<_ACEOF
 
20270
/* confdefs.h.  */
 
20271
_ACEOF
 
20272
cat confdefs.h >>conftest.$ac_ext
 
20273
cat >>conftest.$ac_ext <<_ACEOF
 
20274
/* end confdefs.h.  */
 
20275
#include <string.h>
 
20276
 
 
20277
_ACEOF
 
20278
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
20279
  $EGREP "memchr" >/dev/null 2>&1; then
 
20280
  :
 
20281
else
 
20282
  ac_cv_header_stdc=no
 
20283
fi
 
20284
rm -f conftest*
 
20285
 
 
20286
fi
 
20287
 
 
20288
if test $ac_cv_header_stdc = yes; then
 
20289
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
20290
  cat >conftest.$ac_ext <<_ACEOF
 
20291
/* confdefs.h.  */
 
20292
_ACEOF
 
20293
cat confdefs.h >>conftest.$ac_ext
 
20294
cat >>conftest.$ac_ext <<_ACEOF
 
20295
/* end confdefs.h.  */
 
20296
#include <stdlib.h>
 
20297
 
 
20298
_ACEOF
 
20299
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
20300
  $EGREP "free" >/dev/null 2>&1; then
 
20301
  :
 
20302
else
 
20303
  ac_cv_header_stdc=no
 
20304
fi
 
20305
rm -f conftest*
 
20306
 
 
20307
fi
 
20308
 
 
20309
if test $ac_cv_header_stdc = yes; then
 
20310
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
20311
  if test "$cross_compiling" = yes; then
 
20312
  :
 
20313
else
 
20314
  cat >conftest.$ac_ext <<_ACEOF
 
20315
/* confdefs.h.  */
 
20316
_ACEOF
 
20317
cat confdefs.h >>conftest.$ac_ext
 
20318
cat >>conftest.$ac_ext <<_ACEOF
 
20319
/* end confdefs.h.  */
 
20320
#include <ctype.h>
 
20321
#include <stdlib.h>
 
20322
#if ((' ' & 0x0FF) == 0x020)
 
20323
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
20324
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
20325
#else
 
20326
# define ISLOWER(c) \
 
20327
                   (('a' <= (c) && (c) <= 'i') \
 
20328
                     || ('j' <= (c) && (c) <= 'r') \
 
20329
                     || ('s' <= (c) && (c) <= 'z'))
 
20330
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
20331
#endif
 
20332
 
 
20333
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
20334
int
 
20335
main ()
 
20336
{
 
20337
  int i;
 
20338
  for (i = 0; i < 256; i++)
 
20339
    if (XOR (islower (i), ISLOWER (i))
 
20340
        || toupper (i) != TOUPPER (i))
 
20341
      return 2;
 
20342
  return 0;
 
20343
}
 
20344
_ACEOF
 
20345
rm -f conftest$ac_exeext
 
20346
if { (ac_try="$ac_link"
 
20347
case "(($ac_try" in
 
20348
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20349
  *) ac_try_echo=$ac_try;;
 
20350
esac
 
20351
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20352
  (eval "$ac_link") 2>&5
 
20353
  ac_status=$?
 
20354
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20355
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
20356
  { (case "(($ac_try" in
 
20357
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20358
  *) ac_try_echo=$ac_try;;
 
20359
esac
 
20360
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20361
  (eval "$ac_try") 2>&5
 
20362
  ac_status=$?
 
20363
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20364
  (exit $ac_status); }; }; then
 
20365
  :
 
20366
else
 
20367
  echo "$as_me: program exited with status $ac_status" >&5
 
20368
echo "$as_me: failed program was:" >&5
 
20369
sed 's/^/| /' conftest.$ac_ext >&5
 
20370
 
 
20371
( exit $ac_status )
 
20372
ac_cv_header_stdc=no
 
20373
fi
 
20374
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
20375
fi
 
20376
 
 
20377
 
 
20378
fi
 
20379
fi
 
20380
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
20381
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
 
20382
if test $ac_cv_header_stdc = yes; then
 
20383
 
 
20384
cat >>confdefs.h <<\_ACEOF
 
20385
#define STDC_HEADERS 1
 
20386
_ACEOF
 
20387
 
 
20388
fi
 
20389
 
 
20390
 
 
20391
 
 
20392
 
 
20393
 
 
20394
 
 
20395
 
 
20396
 
 
20397
 
 
20398
for ac_header in fcntl.h malloc.h inttypes.h sys/ioctl.h sys/mman.h \
 
20399
        ctype.h unistd.h locale.h
 
20400
do
 
20401
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
20402
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
20403
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20404
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
20405
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
20406
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20407
fi
 
20408
ac_res=`eval echo '${'$as_ac_Header'}'`
 
20409
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
20410
echo "${ECHO_T}$ac_res" >&6; }
 
20411
else
 
20412
  # Is the header compilable?
 
20413
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
20414
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
20415
cat >conftest.$ac_ext <<_ACEOF
 
20416
/* confdefs.h.  */
 
20417
_ACEOF
 
20418
cat confdefs.h >>conftest.$ac_ext
 
20419
cat >>conftest.$ac_ext <<_ACEOF
 
20420
/* end confdefs.h.  */
 
20421
$ac_includes_default
 
20422
#include <$ac_header>
 
20423
_ACEOF
 
20424
rm -f conftest.$ac_objext
 
20425
if { (ac_try="$ac_compile"
 
20426
case "(($ac_try" in
 
20427
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20428
  *) ac_try_echo=$ac_try;;
 
20429
esac
 
20430
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20431
  (eval "$ac_compile") 2>conftest.er1
 
20432
  ac_status=$?
 
20433
  grep -v '^ *+' conftest.er1 >conftest.err
 
20434
  rm -f conftest.er1
 
20435
  cat conftest.err >&5
 
20436
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20437
  (exit $ac_status); } && {
 
20438
         test -z "$ac_c_werror_flag" ||
 
20439
         test ! -s conftest.err
 
20440
       } && test -s conftest.$ac_objext; then
 
20441
  ac_header_compiler=yes
 
20442
else
 
20443
  echo "$as_me: failed program was:" >&5
 
20444
sed 's/^/| /' conftest.$ac_ext >&5
 
20445
 
 
20446
        ac_header_compiler=no
 
20447
fi
 
20448
 
 
20449
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20450
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
20451
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
20452
 
 
20453
# Is the header present?
 
20454
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
20455
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
20456
cat >conftest.$ac_ext <<_ACEOF
 
20457
/* confdefs.h.  */
 
20458
_ACEOF
 
20459
cat confdefs.h >>conftest.$ac_ext
 
20460
cat >>conftest.$ac_ext <<_ACEOF
 
20461
/* end confdefs.h.  */
 
20462
#include <$ac_header>
 
20463
_ACEOF
 
20464
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
20465
case "(($ac_try" in
 
20466
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20467
  *) ac_try_echo=$ac_try;;
 
20468
esac
 
20469
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20470
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
20471
  ac_status=$?
 
20472
  grep -v '^ *+' conftest.er1 >conftest.err
 
20473
  rm -f conftest.er1
 
20474
  cat conftest.err >&5
 
20475
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20476
  (exit $ac_status); } >/dev/null && {
 
20477
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
20478
         test ! -s conftest.err
 
20479
       }; then
 
20480
  ac_header_preproc=yes
 
20481
else
 
20482
  echo "$as_me: failed program was:" >&5
 
20483
sed 's/^/| /' conftest.$ac_ext >&5
 
20484
 
 
20485
  ac_header_preproc=no
 
20486
fi
 
20487
 
 
20488
rm -f conftest.err conftest.$ac_ext
 
20489
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
20490
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
20491
 
 
20492
# So?  What about this header?
 
20493
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
20494
  yes:no: )
 
20495
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
20496
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
20497
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
20498
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
20499
    ac_header_preproc=yes
 
20500
    ;;
 
20501
  no:yes:* )
 
20502
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
20503
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
20504
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
20505
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
20506
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
20507
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
20508
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
20509
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
20510
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
20511
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
20512
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
20513
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
20514
 
 
20515
    ;;
 
20516
esac
 
20517
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20518
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
20519
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
20520
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20521
else
 
20522
  eval "$as_ac_Header=\$ac_header_preproc"
 
20523
fi
 
20524
ac_res=`eval echo '${'$as_ac_Header'}'`
 
20525
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
20526
echo "${ECHO_T}$ac_res" >&6; }
 
20527
 
 
20528
fi
 
20529
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
20530
  cat >>confdefs.h <<_ACEOF
 
20531
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
20532
_ACEOF
 
20533
 
 
20534
fi
 
20535
 
 
20536
done
 
20537
 
 
20538
 
 
20539
 
 
20540
for ac_header in uuid/uuid.h
 
20541
do
 
20542
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
20543
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
20544
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20545
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
20546
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
20547
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20548
fi
 
20549
ac_res=`eval echo '${'$as_ac_Header'}'`
 
20550
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
20551
echo "${ECHO_T}$ac_res" >&6; }
 
20552
else
 
20553
  # Is the header compilable?
 
20554
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
20555
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
20556
cat >conftest.$ac_ext <<_ACEOF
 
20557
/* confdefs.h.  */
 
20558
_ACEOF
 
20559
cat confdefs.h >>conftest.$ac_ext
 
20560
cat >>conftest.$ac_ext <<_ACEOF
 
20561
/* end confdefs.h.  */
 
20562
$ac_includes_default
 
20563
#include <$ac_header>
 
20564
_ACEOF
 
20565
rm -f conftest.$ac_objext
 
20566
if { (ac_try="$ac_compile"
 
20567
case "(($ac_try" in
 
20568
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20569
  *) ac_try_echo=$ac_try;;
 
20570
esac
 
20571
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20572
  (eval "$ac_compile") 2>conftest.er1
 
20573
  ac_status=$?
 
20574
  grep -v '^ *+' conftest.er1 >conftest.err
 
20575
  rm -f conftest.er1
 
20576
  cat conftest.err >&5
 
20577
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20578
  (exit $ac_status); } && {
 
20579
         test -z "$ac_c_werror_flag" ||
 
20580
         test ! -s conftest.err
 
20581
       } && test -s conftest.$ac_objext; then
 
20582
  ac_header_compiler=yes
 
20583
else
 
20584
  echo "$as_me: failed program was:" >&5
 
20585
sed 's/^/| /' conftest.$ac_ext >&5
 
20586
 
 
20587
        ac_header_compiler=no
 
20588
fi
 
20589
 
 
20590
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20591
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
20592
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
20593
 
 
20594
# Is the header present?
 
20595
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
20596
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
20597
cat >conftest.$ac_ext <<_ACEOF
 
20598
/* confdefs.h.  */
 
20599
_ACEOF
 
20600
cat confdefs.h >>conftest.$ac_ext
 
20601
cat >>conftest.$ac_ext <<_ACEOF
 
20602
/* end confdefs.h.  */
 
20603
#include <$ac_header>
 
20604
_ACEOF
 
20605
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
20606
case "(($ac_try" in
 
20607
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20608
  *) ac_try_echo=$ac_try;;
 
20609
esac
 
20610
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20611
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
20612
  ac_status=$?
 
20613
  grep -v '^ *+' conftest.er1 >conftest.err
 
20614
  rm -f conftest.er1
 
20615
  cat conftest.err >&5
 
20616
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20617
  (exit $ac_status); } >/dev/null && {
 
20618
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
20619
         test ! -s conftest.err
 
20620
       }; then
 
20621
  ac_header_preproc=yes
 
20622
else
 
20623
  echo "$as_me: failed program was:" >&5
 
20624
sed 's/^/| /' conftest.$ac_ext >&5
 
20625
 
 
20626
  ac_header_preproc=no
 
20627
fi
 
20628
 
 
20629
rm -f conftest.err conftest.$ac_ext
 
20630
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
20631
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
20632
 
 
20633
# So?  What about this header?
 
20634
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
20635
  yes:no: )
 
20636
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
20637
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
20638
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
20639
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
20640
    ac_header_preproc=yes
 
20641
    ;;
 
20642
  no:yes:* )
 
20643
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
20644
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
20645
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
20646
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
20647
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
20648
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
20649
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
20650
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
20651
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
20652
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
20653
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
20654
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
20655
 
 
20656
    ;;
 
20657
esac
 
20658
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20659
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
20660
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
20661
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20662
else
 
20663
  eval "$as_ac_Header=\$ac_header_preproc"
 
20664
fi
 
20665
ac_res=`eval echo '${'$as_ac_Header'}'`
 
20666
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
20667
echo "${ECHO_T}$ac_res" >&6; }
 
20668
 
 
20669
fi
 
20670
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
20671
  cat >>confdefs.h <<_ACEOF
 
20672
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
20673
_ACEOF
 
20674
 
 
20675
else
 
20676
  { { echo "$as_me:$LINENO: error: 'You need the uuid library (from e2fsprogs)'" >&5
 
20677
echo "$as_me: error: 'You need the uuid library (from e2fsprogs)'" >&2;}
 
20678
   { (exit 1); exit 1; }; }
 
20679
fi
 
20680
 
 
20681
done
 
20682
 
 
20683
 
 
20684
saved_LIBS="$LIBS"
 
20685
 
 
20686
{ echo "$as_me:$LINENO: checking for uuid_clear in -luuid" >&5
 
20687
echo $ECHO_N "checking for uuid_clear in -luuid... $ECHO_C" >&6; }
 
20688
if test "${ac_cv_lib_uuid_uuid_clear+set}" = set; then
 
20689
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20690
else
 
20691
  ac_check_lib_save_LIBS=$LIBS
 
20692
LIBS="-luuid  $LIBS"
 
20693
cat >conftest.$ac_ext <<_ACEOF
 
20694
/* confdefs.h.  */
 
20695
_ACEOF
 
20696
cat confdefs.h >>conftest.$ac_ext
 
20697
cat >>conftest.$ac_ext <<_ACEOF
 
20698
/* end confdefs.h.  */
 
20699
 
 
20700
/* Override any GCC internal prototype to avoid an error.
 
20701
   Use char because int might match the return type of a GCC
 
20702
   builtin and then its argument prototype would still apply.  */
 
20703
#ifdef __cplusplus
 
20704
extern "C"
 
20705
#endif
 
20706
char uuid_clear ();
 
20707
int
 
20708
main ()
 
20709
{
 
20710
return uuid_clear ();
 
20711
  ;
 
20712
  return 0;
 
20713
}
 
20714
_ACEOF
 
20715
rm -f conftest.$ac_objext conftest$ac_exeext
 
20716
if { (ac_try="$ac_link"
 
20717
case "(($ac_try" in
 
20718
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20719
  *) ac_try_echo=$ac_try;;
 
20720
esac
 
20721
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20722
  (eval "$ac_link") 2>conftest.er1
 
20723
  ac_status=$?
 
20724
  grep -v '^ *+' conftest.er1 >conftest.err
 
20725
  rm -f conftest.er1
 
20726
  cat conftest.err >&5
 
20727
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20728
  (exit $ac_status); } && {
 
20729
         test -z "$ac_c_werror_flag" ||
 
20730
         test ! -s conftest.err
 
20731
       } && test -s conftest$ac_exeext &&
 
20732
       $as_test_x conftest$ac_exeext; then
 
20733
  ac_cv_lib_uuid_uuid_clear=yes
 
20734
else
 
20735
  echo "$as_me: failed program was:" >&5
 
20736
sed 's/^/| /' conftest.$ac_ext >&5
 
20737
 
 
20738
        ac_cv_lib_uuid_uuid_clear=no
 
20739
fi
 
20740
 
 
20741
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
20742
      conftest$ac_exeext conftest.$ac_ext
 
20743
LIBS=$ac_check_lib_save_LIBS
 
20744
fi
 
20745
{ echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_clear" >&5
 
20746
echo "${ECHO_T}$ac_cv_lib_uuid_uuid_clear" >&6; }
 
20747
if test $ac_cv_lib_uuid_uuid_clear = yes; then
 
20748
  cat >>confdefs.h <<_ACEOF
 
20749
#define HAVE_LIBUUID 1
 
20750
_ACEOF
 
20751
 
 
20752
  LIBS="-luuid $LIBS"
 
20753
 
 
20754
else
 
20755
  { { echo "$as_me:$LINENO: error: 'You need the uuid library (from e2fsprogs)'" >&5
 
20756
echo "$as_me: error: 'You need the uuid library (from e2fsprogs)'" >&2;}
 
20757
   { (exit 1); exit 1; }; }
 
20758
fi
 
20759
 
 
20760
UUID_LIBS="$LIBS"
 
20761
LIBS="$saved_LIBS"
 
20762
 
 
20763
 
 
20764
 
 
20765
for ac_func in setlocale
 
20766
do
 
20767
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
20768
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
20769
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
20770
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
20771
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20772
else
 
20773
  cat >conftest.$ac_ext <<_ACEOF
 
20774
/* confdefs.h.  */
 
20775
_ACEOF
 
20776
cat confdefs.h >>conftest.$ac_ext
 
20777
cat >>conftest.$ac_ext <<_ACEOF
 
20778
/* end confdefs.h.  */
 
20779
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
20780
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
20781
#define $ac_func innocuous_$ac_func
 
20782
 
 
20783
/* System header to define __stub macros and hopefully few prototypes,
 
20784
    which can conflict with char $ac_func (); below.
 
20785
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
20786
    <limits.h> exists even on freestanding compilers.  */
 
20787
 
 
20788
#ifdef __STDC__
 
20789
# include <limits.h>
 
20790
#else
 
20791
# include <assert.h>
 
20792
#endif
 
20793
 
 
20794
#undef $ac_func
 
20795
 
 
20796
/* Override any GCC internal prototype to avoid an error.
 
20797
   Use char because int might match the return type of a GCC
 
20798
   builtin and then its argument prototype would still apply.  */
 
20799
#ifdef __cplusplus
 
20800
extern "C"
 
20801
#endif
 
20802
char $ac_func ();
 
20803
/* The GNU C library defines this for functions which it implements
 
20804
    to always fail with ENOSYS.  Some functions are actually named
 
20805
    something starting with __ and the normal name is an alias.  */
 
20806
#if defined __stub_$ac_func || defined __stub___$ac_func
 
20807
choke me
 
20808
#endif
 
20809
 
 
20810
int
 
20811
main ()
 
20812
{
 
20813
return $ac_func ();
 
20814
  ;
 
20815
  return 0;
 
20816
}
 
20817
_ACEOF
 
20818
rm -f conftest.$ac_objext conftest$ac_exeext
 
20819
if { (ac_try="$ac_link"
 
20820
case "(($ac_try" in
 
20821
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20822
  *) ac_try_echo=$ac_try;;
 
20823
esac
 
20824
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20825
  (eval "$ac_link") 2>conftest.er1
 
20826
  ac_status=$?
 
20827
  grep -v '^ *+' conftest.er1 >conftest.err
 
20828
  rm -f conftest.er1
 
20829
  cat conftest.err >&5
 
20830
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20831
  (exit $ac_status); } && {
 
20832
         test -z "$ac_c_werror_flag" ||
 
20833
         test ! -s conftest.err
 
20834
       } && test -s conftest$ac_exeext &&
 
20835
       $as_test_x conftest$ac_exeext; then
 
20836
  eval "$as_ac_var=yes"
 
20837
else
 
20838
  echo "$as_me: failed program was:" >&5
 
20839
sed 's/^/| /' conftest.$ac_ext >&5
 
20840
 
 
20841
        eval "$as_ac_var=no"
 
20842
fi
 
20843
 
 
20844
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
20845
      conftest$ac_exeext conftest.$ac_ext
 
20846
fi
 
20847
ac_res=`eval echo '${'$as_ac_var'}'`
 
20848
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
20849
echo "${ECHO_T}$ac_res" >&6; }
 
20850
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
20851
  cat >>confdefs.h <<_ACEOF
 
20852
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
20853
_ACEOF
 
20854
 
 
20855
fi
 
20856
done
 
20857
 
 
20858
 
 
20859
 
 
20860
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
 
20861
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
 
20862
if test "${ac_cv_c_const+set}" = set; then
 
20863
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20864
else
 
20865
  cat >conftest.$ac_ext <<_ACEOF
 
20866
/* confdefs.h.  */
 
20867
_ACEOF
 
20868
cat confdefs.h >>conftest.$ac_ext
 
20869
cat >>conftest.$ac_ext <<_ACEOF
 
20870
/* end confdefs.h.  */
 
20871
 
 
20872
int
 
20873
main ()
 
20874
{
 
20875
/* FIXME: Include the comments suggested by Paul. */
 
20876
#ifndef __cplusplus
 
20877
  /* Ultrix mips cc rejects this.  */
 
20878
  typedef int charset[2];
 
20879
  const charset cs;
 
20880
  /* SunOS 4.1.1 cc rejects this.  */
 
20881
  char const *const *pcpcc;
 
20882
  char **ppc;
 
20883
  /* NEC SVR4.0.2 mips cc rejects this.  */
 
20884
  struct point {int x, y;};
 
20885
  static struct point const zero = {0,0};
 
20886
  /* AIX XL C 1.02.0.0 rejects this.
 
20887
     It does not let you subtract one const X* pointer from another in
 
20888
     an arm of an if-expression whose if-part is not a constant
 
20889
     expression */
 
20890
  const char *g = "string";
 
20891
  pcpcc = &g + (g ? g-g : 0);
 
20892
  /* HPUX 7.0 cc rejects these. */
 
20893
  ++pcpcc;
 
20894
  ppc = (char**) pcpcc;
 
20895
  pcpcc = (char const *const *) ppc;
 
20896
  { /* SCO 3.2v4 cc rejects this.  */
 
20897
    char *t;
 
20898
    char const *s = 0 ? (char *) 0 : (char const *) 0;
 
20899
 
 
20900
    *t++ = 0;
 
20901
    if (s) return 0;
 
20902
  }
 
20903
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
20904
    int x[] = {25, 17};
 
20905
    const int *foo = &x[0];
 
20906
    ++foo;
 
20907
  }
 
20908
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
20909
    typedef const int *iptr;
 
20910
    iptr p = 0;
 
20911
    ++p;
 
20912
  }
 
20913
  { /* AIX XL C 1.02.0.0 rejects this saying
 
20914
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 
20915
    struct s { int j; const int *ap[3]; };
 
20916
    struct s *b; b->j = 5;
 
20917
  }
 
20918
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
20919
    const int foo = 10;
 
20920
    if (!foo) return 0;
 
20921
  }
 
20922
  return !cs[0] && !zero.x;
 
20923
#endif
 
20924
 
 
20925
  ;
 
20926
  return 0;
 
20927
}
 
20928
_ACEOF
 
20929
rm -f conftest.$ac_objext
 
20930
if { (ac_try="$ac_compile"
 
20931
case "(($ac_try" in
 
20932
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20933
  *) ac_try_echo=$ac_try;;
 
20934
esac
 
20935
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20936
  (eval "$ac_compile") 2>conftest.er1
 
20937
  ac_status=$?
 
20938
  grep -v '^ *+' conftest.er1 >conftest.err
 
20939
  rm -f conftest.er1
 
20940
  cat conftest.err >&5
 
20941
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20942
  (exit $ac_status); } && {
 
20943
         test -z "$ac_c_werror_flag" ||
 
20944
         test ! -s conftest.err
 
20945
       } && test -s conftest.$ac_objext; then
 
20946
  ac_cv_c_const=yes
 
20947
else
 
20948
  echo "$as_me: failed program was:" >&5
 
20949
sed 's/^/| /' conftest.$ac_ext >&5
 
20950
 
 
20951
        ac_cv_c_const=no
 
20952
fi
 
20953
 
 
20954
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20955
fi
 
20956
{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
 
20957
echo "${ECHO_T}$ac_cv_c_const" >&6; }
 
20958
if test $ac_cv_c_const = no; then
 
20959
 
 
20960
cat >>confdefs.h <<\_ACEOF
 
20961
#define const
 
20962
_ACEOF
 
20963
 
 
20964
fi
 
20965
 
 
20966
{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
 
20967
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
 
20968
if test "${ac_cv_c_bigendian+set}" = set; then
 
20969
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20970
else
 
20971
  # See if sys/param.h defines the BYTE_ORDER macro.
 
20972
cat >conftest.$ac_ext <<_ACEOF
 
20973
/* confdefs.h.  */
 
20974
_ACEOF
 
20975
cat confdefs.h >>conftest.$ac_ext
 
20976
cat >>conftest.$ac_ext <<_ACEOF
 
20977
/* end confdefs.h.  */
 
20978
#include <sys/types.h>
 
20979
#include <sys/param.h>
 
20980
 
 
20981
int
 
20982
main ()
 
20983
{
 
20984
#if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
 
20985
        && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
 
20986
 bogus endian macros
 
20987
#endif
 
20988
 
 
20989
  ;
 
20990
  return 0;
 
20991
}
 
20992
_ACEOF
 
20993
rm -f conftest.$ac_objext
 
20994
if { (ac_try="$ac_compile"
 
20995
case "(($ac_try" in
 
20996
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20997
  *) ac_try_echo=$ac_try;;
 
20998
esac
 
20999
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21000
  (eval "$ac_compile") 2>conftest.er1
 
21001
  ac_status=$?
 
21002
  grep -v '^ *+' conftest.er1 >conftest.err
 
21003
  rm -f conftest.er1
 
21004
  cat conftest.err >&5
 
21005
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21006
  (exit $ac_status); } && {
 
21007
         test -z "$ac_c_werror_flag" ||
 
21008
         test ! -s conftest.err
 
21009
       } && test -s conftest.$ac_objext; then
 
21010
  # It does; now see whether it defined to BIG_ENDIAN or not.
 
21011
cat >conftest.$ac_ext <<_ACEOF
 
21012
/* confdefs.h.  */
 
21013
_ACEOF
 
21014
cat confdefs.h >>conftest.$ac_ext
 
21015
cat >>conftest.$ac_ext <<_ACEOF
 
21016
/* end confdefs.h.  */
 
21017
#include <sys/types.h>
 
21018
#include <sys/param.h>
 
21019
 
 
21020
int
 
21021
main ()
 
21022
{
 
21023
#if BYTE_ORDER != BIG_ENDIAN
 
21024
 not big endian
 
21025
#endif
 
21026
 
 
21027
  ;
 
21028
  return 0;
 
21029
}
 
21030
_ACEOF
 
21031
rm -f conftest.$ac_objext
 
21032
if { (ac_try="$ac_compile"
 
21033
case "(($ac_try" in
 
21034
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21035
  *) ac_try_echo=$ac_try;;
 
21036
esac
 
21037
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21038
  (eval "$ac_compile") 2>conftest.er1
 
21039
  ac_status=$?
 
21040
  grep -v '^ *+' conftest.er1 >conftest.err
 
21041
  rm -f conftest.er1
 
21042
  cat conftest.err >&5
 
21043
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21044
  (exit $ac_status); } && {
 
21045
         test -z "$ac_c_werror_flag" ||
 
21046
         test ! -s conftest.err
 
21047
       } && test -s conftest.$ac_objext; then
 
21048
  ac_cv_c_bigendian=yes
 
21049
else
 
21050
  echo "$as_me: failed program was:" >&5
 
21051
sed 's/^/| /' conftest.$ac_ext >&5
 
21052
 
 
21053
        ac_cv_c_bigendian=no
 
21054
fi
 
21055
 
 
21056
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21057
else
 
21058
  echo "$as_me: failed program was:" >&5
 
21059
sed 's/^/| /' conftest.$ac_ext >&5
 
21060
 
 
21061
        # It does not; compile a test program.
 
21062
if test "$cross_compiling" = yes; then
 
21063
  # try to guess the endianness by grepping values into an object file
 
21064
  ac_cv_c_bigendian=unknown
 
21065
  cat >conftest.$ac_ext <<_ACEOF
 
21066
/* confdefs.h.  */
 
21067
_ACEOF
 
21068
cat confdefs.h >>conftest.$ac_ext
 
21069
cat >>conftest.$ac_ext <<_ACEOF
 
21070
/* end confdefs.h.  */
 
21071
short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
 
21072
short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
 
21073
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
 
21074
short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
 
21075
short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
 
21076
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
 
21077
int
 
21078
main ()
 
21079
{
 
21080
 _ascii (); _ebcdic ();
 
21081
  ;
 
21082
  return 0;
 
21083
}
 
21084
_ACEOF
 
21085
rm -f conftest.$ac_objext
 
21086
if { (ac_try="$ac_compile"
 
21087
case "(($ac_try" in
 
21088
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21089
  *) ac_try_echo=$ac_try;;
 
21090
esac
 
21091
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21092
  (eval "$ac_compile") 2>conftest.er1
 
21093
  ac_status=$?
 
21094
  grep -v '^ *+' conftest.er1 >conftest.err
 
21095
  rm -f conftest.er1
 
21096
  cat conftest.err >&5
 
21097
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21098
  (exit $ac_status); } && {
 
21099
         test -z "$ac_c_werror_flag" ||
 
21100
         test ! -s conftest.err
 
21101
       } && test -s conftest.$ac_objext; then
 
21102
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
 
21103
  ac_cv_c_bigendian=yes
 
21104
fi
 
21105
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
 
21106
  if test "$ac_cv_c_bigendian" = unknown; then
 
21107
    ac_cv_c_bigendian=no
 
21108
  else
 
21109
    # finding both strings is unlikely to happen, but who knows?
 
21110
    ac_cv_c_bigendian=unknown
 
21111
  fi
 
21112
fi
 
21113
else
 
21114
  echo "$as_me: failed program was:" >&5
 
21115
sed 's/^/| /' conftest.$ac_ext >&5
 
21116
 
 
21117
 
 
21118
fi
 
21119
 
 
21120
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21121
else
 
21122
  cat >conftest.$ac_ext <<_ACEOF
 
21123
/* confdefs.h.  */
 
21124
_ACEOF
 
21125
cat confdefs.h >>conftest.$ac_ext
 
21126
cat >>conftest.$ac_ext <<_ACEOF
 
21127
/* end confdefs.h.  */
 
21128
$ac_includes_default
 
21129
int
 
21130
main ()
 
21131
{
 
21132
 
 
21133
  /* Are we little or big endian?  From Harbison&Steele.  */
 
21134
  union
 
21135
  {
 
21136
    long int l;
 
21137
    char c[sizeof (long int)];
 
21138
  } u;
 
21139
  u.l = 1;
 
21140
  return u.c[sizeof (long int) - 1] == 1;
 
21141
 
 
21142
  ;
 
21143
  return 0;
 
21144
}
 
21145
_ACEOF
 
21146
rm -f conftest$ac_exeext
 
21147
if { (ac_try="$ac_link"
 
21148
case "(($ac_try" in
 
21149
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21150
  *) ac_try_echo=$ac_try;;
 
21151
esac
 
21152
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21153
  (eval "$ac_link") 2>&5
 
21154
  ac_status=$?
 
21155
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21156
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
21157
  { (case "(($ac_try" in
 
21158
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21159
  *) ac_try_echo=$ac_try;;
 
21160
esac
 
21161
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21162
  (eval "$ac_try") 2>&5
 
21163
  ac_status=$?
 
21164
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21165
  (exit $ac_status); }; }; then
 
21166
  ac_cv_c_bigendian=no
 
21167
else
 
21168
  echo "$as_me: program exited with status $ac_status" >&5
 
21169
echo "$as_me: failed program was:" >&5
 
21170
sed 's/^/| /' conftest.$ac_ext >&5
 
21171
 
 
21172
( exit $ac_status )
 
21173
ac_cv_c_bigendian=yes
 
21174
fi
 
21175
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
21176
fi
 
21177
 
 
21178
 
 
21179
fi
 
21180
 
 
21181
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21182
fi
 
21183
{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
 
21184
echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
 
21185
case $ac_cv_c_bigendian in
 
21186
  yes)
 
21187
 
 
21188
cat >>confdefs.h <<\_ACEOF
 
21189
#define WORDS_BIGENDIAN 1
 
21190
_ACEOF
 
21191
 ;;
 
21192
  no)
 
21193
     ;;
 
21194
  *)
 
21195
    { { echo "$as_me:$LINENO: error: unknown endianness
 
21196
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
 
21197
echo "$as_me: error: unknown endianness
 
21198
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
 
21199
   { (exit 1); exit 1; }; } ;;
 
21200
esac
 
21201
 
 
21202
{ echo "$as_me:$LINENO: checking for off_t" >&5
 
21203
echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
 
21204
if test "${ac_cv_type_off_t+set}" = set; then
 
21205
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21206
else
 
21207
  cat >conftest.$ac_ext <<_ACEOF
 
21208
/* confdefs.h.  */
 
21209
_ACEOF
 
21210
cat confdefs.h >>conftest.$ac_ext
 
21211
cat >>conftest.$ac_ext <<_ACEOF
 
21212
/* end confdefs.h.  */
 
21213
$ac_includes_default
 
21214
typedef off_t ac__type_new_;
 
21215
int
 
21216
main ()
 
21217
{
 
21218
if ((ac__type_new_ *) 0)
 
21219
  return 0;
 
21220
if (sizeof (ac__type_new_))
 
21221
  return 0;
 
21222
  ;
 
21223
  return 0;
 
21224
}
 
21225
_ACEOF
 
21226
rm -f conftest.$ac_objext
 
21227
if { (ac_try="$ac_compile"
 
21228
case "(($ac_try" in
 
21229
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21230
  *) ac_try_echo=$ac_try;;
 
21231
esac
 
21232
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21233
  (eval "$ac_compile") 2>conftest.er1
 
21234
  ac_status=$?
 
21235
  grep -v '^ *+' conftest.er1 >conftest.err
 
21236
  rm -f conftest.er1
 
21237
  cat conftest.err >&5
 
21238
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21239
  (exit $ac_status); } && {
 
21240
         test -z "$ac_c_werror_flag" ||
 
21241
         test ! -s conftest.err
 
21242
       } && test -s conftest.$ac_objext; then
 
21243
  ac_cv_type_off_t=yes
 
21244
else
 
21245
  echo "$as_me: failed program was:" >&5
 
21246
sed 's/^/| /' conftest.$ac_ext >&5
 
21247
 
 
21248
        ac_cv_type_off_t=no
 
21249
fi
 
21250
 
 
21251
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21252
fi
 
21253
{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
 
21254
echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
 
21255
if test $ac_cv_type_off_t = yes; then
 
21256
  :
 
21257
else
 
21258
 
 
21259
cat >>confdefs.h <<_ACEOF
 
21260
#define off_t long int
 
21261
_ACEOF
 
21262
 
 
21263
fi
 
21264
 
 
21265
{ echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
 
21266
echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
 
21267
if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
 
21268
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21269
else
 
21270
  cat >conftest.$ac_ext <<_ACEOF
 
21271
/* confdefs.h.  */
 
21272
_ACEOF
 
21273
cat confdefs.h >>conftest.$ac_ext
 
21274
cat >>conftest.$ac_ext <<_ACEOF
 
21275
/* end confdefs.h.  */
 
21276
$ac_includes_default
 
21277
int
 
21278
main ()
 
21279
{
 
21280
static struct stat ac_aggr;
 
21281
if (ac_aggr.st_rdev)
 
21282
return 0;
 
21283
  ;
 
21284
  return 0;
 
21285
}
 
21286
_ACEOF
 
21287
rm -f conftest.$ac_objext
 
21288
if { (ac_try="$ac_compile"
 
21289
case "(($ac_try" in
 
21290
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21291
  *) ac_try_echo=$ac_try;;
 
21292
esac
 
21293
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21294
  (eval "$ac_compile") 2>conftest.er1
 
21295
  ac_status=$?
 
21296
  grep -v '^ *+' conftest.er1 >conftest.err
 
21297
  rm -f conftest.er1
 
21298
  cat conftest.err >&5
 
21299
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21300
  (exit $ac_status); } && {
 
21301
         test -z "$ac_c_werror_flag" ||
 
21302
         test ! -s conftest.err
 
21303
       } && test -s conftest.$ac_objext; then
 
21304
  ac_cv_member_struct_stat_st_rdev=yes
 
21305
else
 
21306
  echo "$as_me: failed program was:" >&5
 
21307
sed 's/^/| /' conftest.$ac_ext >&5
 
21308
 
 
21309
        cat >conftest.$ac_ext <<_ACEOF
 
21310
/* confdefs.h.  */
 
21311
_ACEOF
 
21312
cat confdefs.h >>conftest.$ac_ext
 
21313
cat >>conftest.$ac_ext <<_ACEOF
 
21314
/* end confdefs.h.  */
 
21315
$ac_includes_default
 
21316
int
 
21317
main ()
 
21318
{
 
21319
static struct stat ac_aggr;
 
21320
if (sizeof ac_aggr.st_rdev)
 
21321
return 0;
 
21322
  ;
 
21323
  return 0;
 
21324
}
 
21325
_ACEOF
 
21326
rm -f conftest.$ac_objext
 
21327
if { (ac_try="$ac_compile"
 
21328
case "(($ac_try" in
 
21329
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21330
  *) ac_try_echo=$ac_try;;
 
21331
esac
 
21332
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21333
  (eval "$ac_compile") 2>conftest.er1
 
21334
  ac_status=$?
 
21335
  grep -v '^ *+' conftest.er1 >conftest.err
 
21336
  rm -f conftest.er1
 
21337
  cat conftest.err >&5
 
21338
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21339
  (exit $ac_status); } && {
 
21340
         test -z "$ac_c_werror_flag" ||
 
21341
         test ! -s conftest.err
 
21342
       } && test -s conftest.$ac_objext; then
 
21343
  ac_cv_member_struct_stat_st_rdev=yes
 
21344
else
 
21345
  echo "$as_me: failed program was:" >&5
 
21346
sed 's/^/| /' conftest.$ac_ext >&5
 
21347
 
 
21348
        ac_cv_member_struct_stat_st_rdev=no
 
21349
fi
 
21350
 
 
21351
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21352
fi
 
21353
 
 
21354
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21355
fi
 
21356
{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
 
21357
echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
 
21358
if test $ac_cv_member_struct_stat_st_rdev = yes; then
 
21359
 
 
21360
cat >>confdefs.h <<_ACEOF
 
21361
#define HAVE_STRUCT_STAT_ST_RDEV 1
 
21362
_ACEOF
 
21363
 
 
21364
 
 
21365
cat >>confdefs.h <<\_ACEOF
 
21366
#define HAVE_ST_RDEV 1
 
21367
_ACEOF
 
21368
 
 
21369
fi
 
21370
 
 
21371
 
 
21372
# Check whether --enable-largefile was given.
 
21373
if test "${enable_largefile+set}" = set; then
 
21374
  enableval=$enable_largefile;
 
21375
fi
 
21376
 
 
21377
if test "$enable_largefile" != no; then
 
21378
 
 
21379
  { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
 
21380
echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
 
21381
if test "${ac_cv_sys_largefile_CC+set}" = set; then
 
21382
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21383
else
 
21384
  ac_cv_sys_largefile_CC=no
 
21385
     if test "$GCC" != yes; then
 
21386
       ac_save_CC=$CC
 
21387
       while :; do
 
21388
         # IRIX 6.2 and later do not support large files by default,
 
21389
         # so use the C compiler's -n32 option if that helps.
 
21390
         cat >conftest.$ac_ext <<_ACEOF
 
21391
/* confdefs.h.  */
 
21392
_ACEOF
 
21393
cat confdefs.h >>conftest.$ac_ext
 
21394
cat >>conftest.$ac_ext <<_ACEOF
 
21395
/* end confdefs.h.  */
 
21396
#include <sys/types.h>
 
21397
 /* Check that off_t can represent 2**63 - 1 correctly.
 
21398
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
21399
    since some C++ compilers masquerading as C compilers
 
21400
    incorrectly reject 9223372036854775807.  */
 
21401
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
21402
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
21403
                       && LARGE_OFF_T % 2147483647 == 1)
 
21404
                      ? 1 : -1];
 
21405
int
 
21406
main ()
 
21407
{
 
21408
 
 
21409
  ;
 
21410
  return 0;
 
21411
}
 
21412
_ACEOF
 
21413
         rm -f conftest.$ac_objext
 
21414
if { (ac_try="$ac_compile"
 
21415
case "(($ac_try" in
 
21416
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21417
  *) ac_try_echo=$ac_try;;
 
21418
esac
 
21419
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21420
  (eval "$ac_compile") 2>conftest.er1
 
21421
  ac_status=$?
 
21422
  grep -v '^ *+' conftest.er1 >conftest.err
 
21423
  rm -f conftest.er1
 
21424
  cat conftest.err >&5
 
21425
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21426
  (exit $ac_status); } && {
 
21427
         test -z "$ac_c_werror_flag" ||
 
21428
         test ! -s conftest.err
 
21429
       } && test -s conftest.$ac_objext; then
 
21430
  break
 
21431
else
 
21432
  echo "$as_me: failed program was:" >&5
 
21433
sed 's/^/| /' conftest.$ac_ext >&5
 
21434
 
 
21435
 
 
21436
fi
 
21437
 
 
21438
rm -f core conftest.err conftest.$ac_objext
 
21439
         CC="$CC -n32"
 
21440
         rm -f conftest.$ac_objext
 
21441
if { (ac_try="$ac_compile"
 
21442
case "(($ac_try" in
 
21443
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21444
  *) ac_try_echo=$ac_try;;
 
21445
esac
 
21446
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21447
  (eval "$ac_compile") 2>conftest.er1
 
21448
  ac_status=$?
 
21449
  grep -v '^ *+' conftest.er1 >conftest.err
 
21450
  rm -f conftest.er1
 
21451
  cat conftest.err >&5
 
21452
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21453
  (exit $ac_status); } && {
 
21454
         test -z "$ac_c_werror_flag" ||
 
21455
         test ! -s conftest.err
 
21456
       } && test -s conftest.$ac_objext; then
 
21457
  ac_cv_sys_largefile_CC=' -n32'; break
 
21458
else
 
21459
  echo "$as_me: failed program was:" >&5
 
21460
sed 's/^/| /' conftest.$ac_ext >&5
 
21461
 
 
21462
 
 
21463
fi
 
21464
 
 
21465
rm -f core conftest.err conftest.$ac_objext
 
21466
         break
 
21467
       done
 
21468
       CC=$ac_save_CC
 
21469
       rm -f conftest.$ac_ext
 
21470
    fi
 
21471
fi
 
21472
{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
 
21473
echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
 
21474
  if test "$ac_cv_sys_largefile_CC" != no; then
 
21475
    CC=$CC$ac_cv_sys_largefile_CC
 
21476
  fi
 
21477
 
 
21478
  { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
 
21479
echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
 
21480
if test "${ac_cv_sys_file_offset_bits+set}" = set; then
 
21481
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21482
else
 
21483
  while :; do
 
21484
  cat >conftest.$ac_ext <<_ACEOF
 
21485
/* confdefs.h.  */
 
21486
_ACEOF
 
21487
cat confdefs.h >>conftest.$ac_ext
 
21488
cat >>conftest.$ac_ext <<_ACEOF
 
21489
/* end confdefs.h.  */
 
21490
#include <sys/types.h>
 
21491
 /* Check that off_t can represent 2**63 - 1 correctly.
 
21492
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
21493
    since some C++ compilers masquerading as C compilers
 
21494
    incorrectly reject 9223372036854775807.  */
 
21495
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
21496
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
21497
                       && LARGE_OFF_T % 2147483647 == 1)
 
21498
                      ? 1 : -1];
 
21499
int
 
21500
main ()
 
21501
{
 
21502
 
 
21503
  ;
 
21504
  return 0;
 
21505
}
 
21506
_ACEOF
 
21507
rm -f conftest.$ac_objext
 
21508
if { (ac_try="$ac_compile"
 
21509
case "(($ac_try" in
 
21510
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21511
  *) ac_try_echo=$ac_try;;
 
21512
esac
 
21513
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21514
  (eval "$ac_compile") 2>conftest.er1
 
21515
  ac_status=$?
 
21516
  grep -v '^ *+' conftest.er1 >conftest.err
 
21517
  rm -f conftest.er1
 
21518
  cat conftest.err >&5
 
21519
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21520
  (exit $ac_status); } && {
 
21521
         test -z "$ac_c_werror_flag" ||
 
21522
         test ! -s conftest.err
 
21523
       } && test -s conftest.$ac_objext; then
 
21524
  ac_cv_sys_file_offset_bits=no; break
 
21525
else
 
21526
  echo "$as_me: failed program was:" >&5
 
21527
sed 's/^/| /' conftest.$ac_ext >&5
 
21528
 
 
21529
 
 
21530
fi
 
21531
 
 
21532
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21533
  cat >conftest.$ac_ext <<_ACEOF
 
21534
/* confdefs.h.  */
 
21535
_ACEOF
 
21536
cat confdefs.h >>conftest.$ac_ext
 
21537
cat >>conftest.$ac_ext <<_ACEOF
 
21538
/* end confdefs.h.  */
 
21539
#define _FILE_OFFSET_BITS 64
 
21540
#include <sys/types.h>
 
21541
 /* Check that off_t can represent 2**63 - 1 correctly.
 
21542
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
21543
    since some C++ compilers masquerading as C compilers
 
21544
    incorrectly reject 9223372036854775807.  */
 
21545
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
21546
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
21547
                       && LARGE_OFF_T % 2147483647 == 1)
 
21548
                      ? 1 : -1];
 
21549
int
 
21550
main ()
 
21551
{
 
21552
 
 
21553
  ;
 
21554
  return 0;
 
21555
}
 
21556
_ACEOF
 
21557
rm -f conftest.$ac_objext
 
21558
if { (ac_try="$ac_compile"
 
21559
case "(($ac_try" in
 
21560
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21561
  *) ac_try_echo=$ac_try;;
 
21562
esac
 
21563
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21564
  (eval "$ac_compile") 2>conftest.er1
 
21565
  ac_status=$?
 
21566
  grep -v '^ *+' conftest.er1 >conftest.err
 
21567
  rm -f conftest.er1
 
21568
  cat conftest.err >&5
 
21569
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21570
  (exit $ac_status); } && {
 
21571
         test -z "$ac_c_werror_flag" ||
 
21572
         test ! -s conftest.err
 
21573
       } && test -s conftest.$ac_objext; then
 
21574
  ac_cv_sys_file_offset_bits=64; break
 
21575
else
 
21576
  echo "$as_me: failed program was:" >&5
 
21577
sed 's/^/| /' conftest.$ac_ext >&5
 
21578
 
 
21579
 
 
21580
fi
 
21581
 
 
21582
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21583
  ac_cv_sys_file_offset_bits=unknown
 
21584
  break
 
21585
done
 
21586
fi
 
21587
{ echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
 
21588
echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
 
21589
case $ac_cv_sys_file_offset_bits in #(
 
21590
  no | unknown) ;;
 
21591
  *)
 
21592
cat >>confdefs.h <<_ACEOF
 
21593
#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
 
21594
_ACEOF
 
21595
;;
 
21596
esac
 
21597
rm -f conftest*
 
21598
  if test $ac_cv_sys_file_offset_bits = unknown; then
 
21599
    { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
 
21600
echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
 
21601
if test "${ac_cv_sys_large_files+set}" = set; then
 
21602
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21603
else
 
21604
  while :; do
 
21605
  cat >conftest.$ac_ext <<_ACEOF
 
21606
/* confdefs.h.  */
 
21607
_ACEOF
 
21608
cat confdefs.h >>conftest.$ac_ext
 
21609
cat >>conftest.$ac_ext <<_ACEOF
 
21610
/* end confdefs.h.  */
 
21611
#include <sys/types.h>
 
21612
 /* Check that off_t can represent 2**63 - 1 correctly.
 
21613
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
21614
    since some C++ compilers masquerading as C compilers
 
21615
    incorrectly reject 9223372036854775807.  */
 
21616
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
21617
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
21618
                       && LARGE_OFF_T % 2147483647 == 1)
 
21619
                      ? 1 : -1];
 
21620
int
 
21621
main ()
 
21622
{
 
21623
 
 
21624
  ;
 
21625
  return 0;
 
21626
}
 
21627
_ACEOF
 
21628
rm -f conftest.$ac_objext
 
21629
if { (ac_try="$ac_compile"
 
21630
case "(($ac_try" in
 
21631
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21632
  *) ac_try_echo=$ac_try;;
 
21633
esac
 
21634
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21635
  (eval "$ac_compile") 2>conftest.er1
 
21636
  ac_status=$?
 
21637
  grep -v '^ *+' conftest.er1 >conftest.err
 
21638
  rm -f conftest.er1
 
21639
  cat conftest.err >&5
 
21640
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21641
  (exit $ac_status); } && {
 
21642
         test -z "$ac_c_werror_flag" ||
 
21643
         test ! -s conftest.err
 
21644
       } && test -s conftest.$ac_objext; then
 
21645
  ac_cv_sys_large_files=no; break
 
21646
else
 
21647
  echo "$as_me: failed program was:" >&5
 
21648
sed 's/^/| /' conftest.$ac_ext >&5
 
21649
 
 
21650
 
 
21651
fi
 
21652
 
 
21653
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21654
  cat >conftest.$ac_ext <<_ACEOF
 
21655
/* confdefs.h.  */
 
21656
_ACEOF
 
21657
cat confdefs.h >>conftest.$ac_ext
 
21658
cat >>conftest.$ac_ext <<_ACEOF
 
21659
/* end confdefs.h.  */
 
21660
#define _LARGE_FILES 1
 
21661
#include <sys/types.h>
 
21662
 /* Check that off_t can represent 2**63 - 1 correctly.
 
21663
    We can't simply define LARGE_OFF_T to be 9223372036854775807,
 
21664
    since some C++ compilers masquerading as C compilers
 
21665
    incorrectly reject 9223372036854775807.  */
 
21666
#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
 
21667
  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
 
21668
                       && LARGE_OFF_T % 2147483647 == 1)
 
21669
                      ? 1 : -1];
 
21670
int
 
21671
main ()
 
21672
{
 
21673
 
 
21674
  ;
 
21675
  return 0;
 
21676
}
 
21677
_ACEOF
 
21678
rm -f conftest.$ac_objext
 
21679
if { (ac_try="$ac_compile"
 
21680
case "(($ac_try" in
 
21681
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
21682
  *) ac_try_echo=$ac_try;;
 
21683
esac
 
21684
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
21685
  (eval "$ac_compile") 2>conftest.er1
 
21686
  ac_status=$?
 
21687
  grep -v '^ *+' conftest.er1 >conftest.err
 
21688
  rm -f conftest.er1
 
21689
  cat conftest.err >&5
 
21690
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21691
  (exit $ac_status); } && {
 
21692
         test -z "$ac_c_werror_flag" ||
 
21693
         test ! -s conftest.err
 
21694
       } && test -s conftest.$ac_objext; then
 
21695
  ac_cv_sys_large_files=1; break
 
21696
else
 
21697
  echo "$as_me: failed program was:" >&5
 
21698
sed 's/^/| /' conftest.$ac_ext >&5
 
21699
 
 
21700
 
 
21701
fi
 
21702
 
 
21703
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
21704
  ac_cv_sys_large_files=unknown
 
21705
  break
 
21706
done
 
21707
fi
 
21708
{ echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
 
21709
echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
 
21710
case $ac_cv_sys_large_files in #(
 
21711
  no | unknown) ;;
 
21712
  *)
 
21713
cat >>confdefs.h <<_ACEOF
 
21714
#define _LARGE_FILES $ac_cv_sys_large_files
 
21715
_ACEOF
 
21716
;;
 
21717
esac
 
21718
rm -f conftest*
 
21719
  fi
 
21720
fi
 
21721
 
 
21722
 
 
21723
if test $ac_cv_c_compiler_gnu = yes; then
 
21724
    { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
 
21725
echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
 
21726
if test "${ac_cv_prog_gcc_traditional+set}" = set; then
 
21727
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21728
else
 
21729
    ac_pattern="Autoconf.*'x'"
 
21730
  cat >conftest.$ac_ext <<_ACEOF
 
21731
/* confdefs.h.  */
 
21732
_ACEOF
 
21733
cat confdefs.h >>conftest.$ac_ext
 
21734
cat >>conftest.$ac_ext <<_ACEOF
 
21735
/* end confdefs.h.  */
 
21736
#include <sgtty.h>
 
21737
Autoconf TIOCGETP
 
21738
_ACEOF
 
21739
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
21740
  $EGREP "$ac_pattern" >/dev/null 2>&1; then
 
21741
  ac_cv_prog_gcc_traditional=yes
 
21742
else
 
21743
  ac_cv_prog_gcc_traditional=no
 
21744
fi
 
21745
rm -f conftest*
 
21746
 
 
21747
 
 
21748
  if test $ac_cv_prog_gcc_traditional = no; then
 
21749
    cat >conftest.$ac_ext <<_ACEOF
 
21750
/* confdefs.h.  */
 
21751
_ACEOF
 
21752
cat confdefs.h >>conftest.$ac_ext
 
21753
cat >>conftest.$ac_ext <<_ACEOF
 
21754
/* end confdefs.h.  */
 
21755
#include <termio.h>
 
21756
Autoconf TCGETA
 
21757
_ACEOF
 
21758
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
21759
  $EGREP "$ac_pattern" >/dev/null 2>&1; then
 
21760
  ac_cv_prog_gcc_traditional=yes
 
21761
fi
 
21762
rm -f conftest*
 
21763
 
 
21764
  fi
 
21765
fi
 
21766
{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
 
21767
echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
 
21768
  if test $ac_cv_prog_gcc_traditional = yes; then
 
21769
    CC="$CC -traditional"
 
21770
  fi
 
21771
fi
 
21772
 
 
21773
 
 
21774
 
 
21775
GETTEXT_PACKAGE=cryptsetup-luks
 
21776
 
 
21777
 
 
21778
cat >>confdefs.h <<_ACEOF
 
21779
#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
 
21780
_ACEOF
 
21781
 
 
21782
 
 
21783
 
 
21784
  { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
 
21785
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
 
21786
    # Check whether --enable-nls was given.
 
21787
if test "${enable_nls+set}" = set; then
 
21788
  enableval=$enable_nls; USE_NLS=$enableval
 
21789
else
 
21790
  USE_NLS=yes
 
21791
fi
 
21792
 
 
21793
  { echo "$as_me:$LINENO: result: $USE_NLS" >&5
 
21794
echo "${ECHO_T}$USE_NLS" >&6; }
 
21795
 
 
21796
 
 
21797
 
 
21798
 
 
21799
 
 
21800
 
 
21801
# Prepare PATH_SEPARATOR.
 
21802
# The user is always right.
 
21803
if test "${PATH_SEPARATOR+set}" != set; then
 
21804
  echo "#! /bin/sh" >conf$$.sh
 
21805
  echo  "exit 0"   >>conf$$.sh
 
21806
  chmod +x conf$$.sh
 
21807
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
21808
    PATH_SEPARATOR=';'
 
21809
  else
 
21810
    PATH_SEPARATOR=:
 
21811
  fi
 
21812
  rm -f conf$$.sh
 
21813
fi
 
21814
 
 
21815
# Find out how to test for executable files. Don't use a zero-byte file,
 
21816
# as systems may use methods other than mode bits to determine executability.
 
21817
cat >conf$$.file <<_ASEOF
 
21818
#! /bin/sh
 
21819
exit 0
 
21820
_ASEOF
 
21821
chmod +x conf$$.file
 
21822
if test -x conf$$.file >/dev/null 2>&1; then
 
21823
  ac_executable_p="test -x"
 
21824
else
 
21825
  ac_executable_p="test -f"
 
21826
fi
 
21827
rm -f conf$$.file
 
21828
 
 
21829
# Extract the first word of "msgfmt", so it can be a program name with args.
 
21830
set dummy msgfmt; ac_word=$2
 
21831
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
21832
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
21833
if test "${ac_cv_path_MSGFMT+set}" = set; then
 
21834
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21835
else
 
21836
  case "$MSGFMT" in
 
21837
  [\\/]* | ?:[\\/]*)
 
21838
    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
 
21839
    ;;
 
21840
  *)
 
21841
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
 
21842
    for ac_dir in $PATH; do
 
21843
      IFS="$ac_save_IFS"
 
21844
      test -z "$ac_dir" && ac_dir=.
 
21845
      for ac_exec_ext in '' $ac_executable_extensions; do
 
21846
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
 
21847
          echo "$as_me: trying $ac_dir/$ac_word..." >&5
 
21848
          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
 
21849
     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
 
21850
            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
 
21851
            break 2
 
21852
          fi
 
21853
        fi
 
21854
      done
 
21855
    done
 
21856
    IFS="$ac_save_IFS"
 
21857
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
 
21858
    ;;
 
21859
esac
 
21860
fi
 
21861
MSGFMT="$ac_cv_path_MSGFMT"
 
21862
if test "$MSGFMT" != ":"; then
 
21863
  { echo "$as_me:$LINENO: result: $MSGFMT" >&5
 
21864
echo "${ECHO_T}$MSGFMT" >&6; }
 
21865
else
 
21866
  { echo "$as_me:$LINENO: result: no" >&5
 
21867
echo "${ECHO_T}no" >&6; }
 
21868
fi
 
21869
 
 
21870
  # Extract the first word of "gmsgfmt", so it can be a program name with args.
 
21871
set dummy gmsgfmt; ac_word=$2
 
21872
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
21873
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
21874
if test "${ac_cv_path_GMSGFMT+set}" = set; then
 
21875
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21876
else
 
21877
  case $GMSGFMT in
 
21878
  [\\/]* | ?:[\\/]*)
 
21879
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
 
21880
  ;;
 
21881
  *)
 
21882
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21883
for as_dir in $PATH
 
21884
do
 
21885
  IFS=$as_save_IFS
 
21886
  test -z "$as_dir" && as_dir=.
 
21887
  for ac_exec_ext in '' $ac_executable_extensions; do
 
21888
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
21889
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
 
21890
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
21891
    break 2
 
21892
  fi
 
21893
done
 
21894
done
 
21895
IFS=$as_save_IFS
 
21896
 
 
21897
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
 
21898
  ;;
 
21899
esac
 
21900
fi
 
21901
GMSGFMT=$ac_cv_path_GMSGFMT
 
21902
if test -n "$GMSGFMT"; then
 
21903
  { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
 
21904
echo "${ECHO_T}$GMSGFMT" >&6; }
 
21905
else
 
21906
  { echo "$as_me:$LINENO: result: no" >&5
 
21907
echo "${ECHO_T}no" >&6; }
 
21908
fi
 
21909
 
 
21910
 
 
21911
 
 
21912
    case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
 
21913
    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
 
21914
    *) MSGFMT_015=$MSGFMT ;;
 
21915
  esac
 
21916
 
 
21917
  case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
 
21918
    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
 
21919
    *) GMSGFMT_015=$GMSGFMT ;;
 
21920
  esac
 
21921
 
 
21922
 
 
21923
 
 
21924
# Prepare PATH_SEPARATOR.
 
21925
# The user is always right.
 
21926
if test "${PATH_SEPARATOR+set}" != set; then
 
21927
  echo "#! /bin/sh" >conf$$.sh
 
21928
  echo  "exit 0"   >>conf$$.sh
 
21929
  chmod +x conf$$.sh
 
21930
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
21931
    PATH_SEPARATOR=';'
 
21932
  else
 
21933
    PATH_SEPARATOR=:
 
21934
  fi
 
21935
  rm -f conf$$.sh
 
21936
fi
 
21937
 
 
21938
# Find out how to test for executable files. Don't use a zero-byte file,
 
21939
# as systems may use methods other than mode bits to determine executability.
 
21940
cat >conf$$.file <<_ASEOF
 
21941
#! /bin/sh
 
21942
exit 0
 
21943
_ASEOF
 
21944
chmod +x conf$$.file
 
21945
if test -x conf$$.file >/dev/null 2>&1; then
 
21946
  ac_executable_p="test -x"
 
21947
else
 
21948
  ac_executable_p="test -f"
 
21949
fi
 
21950
rm -f conf$$.file
 
21951
 
 
21952
# Extract the first word of "xgettext", so it can be a program name with args.
 
21953
set dummy xgettext; ac_word=$2
 
21954
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
21955
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
21956
if test "${ac_cv_path_XGETTEXT+set}" = set; then
 
21957
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21958
else
 
21959
  case "$XGETTEXT" in
 
21960
  [\\/]* | ?:[\\/]*)
 
21961
    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
 
21962
    ;;
 
21963
  *)
 
21964
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
 
21965
    for ac_dir in $PATH; do
 
21966
      IFS="$ac_save_IFS"
 
21967
      test -z "$ac_dir" && ac_dir=.
 
21968
      for ac_exec_ext in '' $ac_executable_extensions; do
 
21969
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
 
21970
          echo "$as_me: trying $ac_dir/$ac_word..." >&5
 
21971
          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
 
21972
     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
 
21973
            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
 
21974
            break 2
 
21975
          fi
 
21976
        fi
 
21977
      done
 
21978
    done
 
21979
    IFS="$ac_save_IFS"
 
21980
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
 
21981
    ;;
 
21982
esac
 
21983
fi
 
21984
XGETTEXT="$ac_cv_path_XGETTEXT"
 
21985
if test "$XGETTEXT" != ":"; then
 
21986
  { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
 
21987
echo "${ECHO_T}$XGETTEXT" >&6; }
 
21988
else
 
21989
  { echo "$as_me:$LINENO: result: no" >&5
 
21990
echo "${ECHO_T}no" >&6; }
 
21991
fi
 
21992
 
 
21993
    rm -f messages.po
 
21994
 
 
21995
    case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
 
21996
    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
 
21997
    *) XGETTEXT_015=$XGETTEXT ;;
 
21998
  esac
 
21999
 
 
22000
 
 
22001
 
 
22002
# Prepare PATH_SEPARATOR.
 
22003
# The user is always right.
 
22004
if test "${PATH_SEPARATOR+set}" != set; then
 
22005
  echo "#! /bin/sh" >conf$$.sh
 
22006
  echo  "exit 0"   >>conf$$.sh
 
22007
  chmod +x conf$$.sh
 
22008
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
22009
    PATH_SEPARATOR=';'
 
22010
  else
 
22011
    PATH_SEPARATOR=:
 
22012
  fi
 
22013
  rm -f conf$$.sh
 
22014
fi
 
22015
 
 
22016
# Find out how to test for executable files. Don't use a zero-byte file,
 
22017
# as systems may use methods other than mode bits to determine executability.
 
22018
cat >conf$$.file <<_ASEOF
 
22019
#! /bin/sh
 
22020
exit 0
 
22021
_ASEOF
 
22022
chmod +x conf$$.file
 
22023
if test -x conf$$.file >/dev/null 2>&1; then
 
22024
  ac_executable_p="test -x"
 
22025
else
 
22026
  ac_executable_p="test -f"
 
22027
fi
 
22028
rm -f conf$$.file
 
22029
 
 
22030
# Extract the first word of "msgmerge", so it can be a program name with args.
 
22031
set dummy msgmerge; ac_word=$2
 
22032
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
22033
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
22034
if test "${ac_cv_path_MSGMERGE+set}" = set; then
 
22035
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22036
else
 
22037
  case "$MSGMERGE" in
 
22038
  [\\/]* | ?:[\\/]*)
 
22039
    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
 
22040
    ;;
 
22041
  *)
 
22042
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
 
22043
    for ac_dir in $PATH; do
 
22044
      IFS="$ac_save_IFS"
 
22045
      test -z "$ac_dir" && ac_dir=.
 
22046
      for ac_exec_ext in '' $ac_executable_extensions; do
 
22047
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
 
22048
          echo "$as_me: trying $ac_dir/$ac_word..." >&5
 
22049
          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
 
22050
            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
 
22051
            break 2
 
22052
          fi
 
22053
        fi
 
22054
      done
 
22055
    done
 
22056
    IFS="$ac_save_IFS"
 
22057
  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
 
22058
    ;;
 
22059
esac
 
22060
fi
 
22061
MSGMERGE="$ac_cv_path_MSGMERGE"
 
22062
if test "$MSGMERGE" != ":"; then
 
22063
  { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
 
22064
echo "${ECHO_T}$MSGMERGE" >&6; }
 
22065
else
 
22066
  { echo "$as_me:$LINENO: result: no" >&5
 
22067
echo "${ECHO_T}no" >&6; }
 
22068
fi
 
22069
 
 
22070
 
 
22071
        test -n "$localedir" || localedir='${datadir}/locale'
 
22072
 
 
22073
 
 
22074
  ac_config_commands="$ac_config_commands po-directories"
 
22075
 
 
22076
 
 
22077
 
 
22078
      if test "X$prefix" = "XNONE"; then
 
22079
    acl_final_prefix="$ac_default_prefix"
 
22080
  else
 
22081
    acl_final_prefix="$prefix"
 
22082
  fi
 
22083
  if test "X$exec_prefix" = "XNONE"; then
 
22084
    acl_final_exec_prefix='${prefix}'
 
22085
  else
 
22086
    acl_final_exec_prefix="$exec_prefix"
 
22087
  fi
 
22088
  acl_save_prefix="$prefix"
 
22089
  prefix="$acl_final_prefix"
 
22090
  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
 
22091
  prefix="$acl_save_prefix"
 
22092
 
 
22093
 
 
22094
# Check whether --with-gnu-ld was given.
 
22095
if test "${with_gnu_ld+set}" = set; then
 
22096
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
22097
else
 
22098
  with_gnu_ld=no
 
22099
fi
 
22100
 
 
22101
# Prepare PATH_SEPARATOR.
 
22102
# The user is always right.
 
22103
if test "${PATH_SEPARATOR+set}" != set; then
 
22104
  echo "#! /bin/sh" >conf$$.sh
 
22105
  echo  "exit 0"   >>conf$$.sh
 
22106
  chmod +x conf$$.sh
 
22107
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
22108
    PATH_SEPARATOR=';'
 
22109
  else
 
22110
    PATH_SEPARATOR=:
 
22111
  fi
 
22112
  rm -f conf$$.sh
 
22113
fi
 
22114
ac_prog=ld
 
22115
if test "$GCC" = yes; then
 
22116
  # Check if gcc -print-prog-name=ld gives a path.
 
22117
  { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
 
22118
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
 
22119
  case $host in
 
22120
  *-*-mingw*)
 
22121
    # gcc leaves a trailing carriage return which upsets mingw
 
22122
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
22123
  *)
 
22124
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
22125
  esac
 
22126
  case $ac_prog in
 
22127
    # Accept absolute paths.
 
22128
    [\\/]* | [A-Za-z]:[\\/]*)
 
22129
      re_direlt='/[^/][^/]*/\.\./'
 
22130
      # Canonicalize the path of ld
 
22131
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
 
22132
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
22133
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
 
22134
      done
 
22135
      test -z "$LD" && LD="$ac_prog"
 
22136
      ;;
 
22137
  "")
 
22138
    # If it fails, then pretend we aren't using GCC.
 
22139
    ac_prog=ld
 
22140
    ;;
 
22141
  *)
 
22142
    # If it is relative, then search for the first ld in PATH.
 
22143
    with_gnu_ld=unknown
 
22144
    ;;
 
22145
  esac
 
22146
elif test "$with_gnu_ld" = yes; then
 
22147
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
 
22148
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
 
22149
else
 
22150
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
22151
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
 
22152
fi
 
22153
if test "${acl_cv_path_LD+set}" = set; then
 
22154
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22155
else
 
22156
  if test -z "$LD"; then
 
22157
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
 
22158
  for ac_dir in $PATH; do
 
22159
    test -z "$ac_dir" && ac_dir=.
 
22160
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
22161
      acl_cv_path_LD="$ac_dir/$ac_prog"
 
22162
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
22163
      # but apparently some GNU ld's only accept -v.
 
22164
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
22165
      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
 
22166
      *GNU* | *'with BFD'*)
 
22167
        test "$with_gnu_ld" != no && break ;;
 
22168
      *)
 
22169
        test "$with_gnu_ld" != yes && break ;;
 
22170
      esac
 
22171
    fi
 
22172
  done
 
22173
  IFS="$ac_save_ifs"
 
22174
else
 
22175
  acl_cv_path_LD="$LD" # Let the user override the test with a path.
 
22176
fi
 
22177
fi
 
22178
 
 
22179
LD="$acl_cv_path_LD"
 
22180
if test -n "$LD"; then
 
22181
  { echo "$as_me:$LINENO: result: $LD" >&5
 
22182
echo "${ECHO_T}$LD" >&6; }
 
22183
else
 
22184
  { echo "$as_me:$LINENO: result: no" >&5
 
22185
echo "${ECHO_T}no" >&6; }
 
22186
fi
 
22187
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
22188
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
22189
   { (exit 1); exit 1; }; }
 
22190
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
22191
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
 
22192
if test "${acl_cv_prog_gnu_ld+set}" = set; then
 
22193
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22194
else
 
22195
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
22196
case `$LD -v 2>&1 </dev/null` in
 
22197
*GNU* | *'with BFD'*)
 
22198
  acl_cv_prog_gnu_ld=yes ;;
 
22199
*)
 
22200
  acl_cv_prog_gnu_ld=no ;;
 
22201
esac
 
22202
fi
 
22203
{ echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
 
22204
echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
 
22205
with_gnu_ld=$acl_cv_prog_gnu_ld
 
22206
 
 
22207
 
 
22208
 
 
22209
 
 
22210
                                                { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
 
22211
echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
 
22212
if test "${acl_cv_rpath+set}" = set; then
 
22213
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22214
else
 
22215
 
 
22216
    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
 
22217
    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
 
22218
    . ./conftest.sh
 
22219
    rm -f ./conftest.sh
 
22220
    acl_cv_rpath=done
 
22221
 
 
22222
fi
 
22223
{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
 
22224
echo "${ECHO_T}$acl_cv_rpath" >&6; }
 
22225
  wl="$acl_cv_wl"
 
22226
  libext="$acl_cv_libext"
 
22227
  shlibext="$acl_cv_shlibext"
 
22228
  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
 
22229
  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
 
22230
  hardcode_direct="$acl_cv_hardcode_direct"
 
22231
  hardcode_minus_L="$acl_cv_hardcode_minus_L"
 
22232
    # Check whether --enable-rpath was given.
 
22233
if test "${enable_rpath+set}" = set; then
 
22234
  enableval=$enable_rpath; :
 
22235
else
 
22236
  enable_rpath=yes
 
22237
fi
 
22238
 
 
22239
 
 
22240
 
 
22241
                  acl_libdirstem=lib
 
22242
  searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
 
22243
  if test -n "$searchpath"; then
 
22244
    acl_save_IFS="${IFS=        }"; IFS=":"
 
22245
    for searchdir in $searchpath; do
 
22246
      if test -d "$searchdir"; then
 
22247
        case "$searchdir" in
 
22248
          */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
 
22249
          *) searchdir=`cd "$searchdir" && pwd`
 
22250
             case "$searchdir" in
 
22251
               */lib64 ) acl_libdirstem=lib64 ;;
 
22252
             esac ;;
 
22253
        esac
 
22254
      fi
 
22255
    done
 
22256
    IFS="$acl_save_IFS"
 
22257
  fi
 
22258
 
 
22259
 
 
22260
 
 
22261
 
 
22262
 
 
22263
 
 
22264
 
 
22265
 
 
22266
    use_additional=yes
 
22267
 
 
22268
  acl_save_prefix="$prefix"
 
22269
  prefix="$acl_final_prefix"
 
22270
  acl_save_exec_prefix="$exec_prefix"
 
22271
  exec_prefix="$acl_final_exec_prefix"
 
22272
 
 
22273
    eval additional_includedir=\"$includedir\"
 
22274
    eval additional_libdir=\"$libdir\"
 
22275
 
 
22276
  exec_prefix="$acl_save_exec_prefix"
 
22277
  prefix="$acl_save_prefix"
 
22278
 
 
22279
 
 
22280
# Check whether --with-libiconv-prefix was given.
 
22281
if test "${with_libiconv_prefix+set}" = set; then
 
22282
  withval=$with_libiconv_prefix;
 
22283
    if test "X$withval" = "Xno"; then
 
22284
      use_additional=no
 
22285
    else
 
22286
      if test "X$withval" = "X"; then
 
22287
 
 
22288
  acl_save_prefix="$prefix"
 
22289
  prefix="$acl_final_prefix"
 
22290
  acl_save_exec_prefix="$exec_prefix"
 
22291
  exec_prefix="$acl_final_exec_prefix"
 
22292
 
 
22293
          eval additional_includedir=\"$includedir\"
 
22294
          eval additional_libdir=\"$libdir\"
 
22295
 
 
22296
  exec_prefix="$acl_save_exec_prefix"
 
22297
  prefix="$acl_save_prefix"
 
22298
 
 
22299
      else
 
22300
        additional_includedir="$withval/include"
 
22301
        additional_libdir="$withval/$acl_libdirstem"
 
22302
      fi
 
22303
    fi
 
22304
 
 
22305
fi
 
22306
 
 
22307
      LIBICONV=
 
22308
  LTLIBICONV=
 
22309
  INCICONV=
 
22310
  rpathdirs=
 
22311
  ltrpathdirs=
 
22312
  names_already_handled=
 
22313
  names_next_round='iconv '
 
22314
  while test -n "$names_next_round"; do
 
22315
    names_this_round="$names_next_round"
 
22316
    names_next_round=
 
22317
    for name in $names_this_round; do
 
22318
      already_handled=
 
22319
      for n in $names_already_handled; do
 
22320
        if test "$n" = "$name"; then
 
22321
          already_handled=yes
 
22322
          break
 
22323
        fi
 
22324
      done
 
22325
      if test -z "$already_handled"; then
 
22326
        names_already_handled="$names_already_handled $name"
 
22327
                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
 
22328
        eval value=\"\$HAVE_LIB$uppername\"
 
22329
        if test -n "$value"; then
 
22330
          if test "$value" = yes; then
 
22331
            eval value=\"\$LIB$uppername\"
 
22332
            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
 
22333
            eval value=\"\$LTLIB$uppername\"
 
22334
            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
 
22335
          else
 
22336
                                    :
 
22337
          fi
 
22338
        else
 
22339
                              found_dir=
 
22340
          found_la=
 
22341
          found_so=
 
22342
          found_a=
 
22343
          if test $use_additional = yes; then
 
22344
            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
 
22345
              found_dir="$additional_libdir"
 
22346
              found_so="$additional_libdir/lib$name.$shlibext"
 
22347
              if test -f "$additional_libdir/lib$name.la"; then
 
22348
                found_la="$additional_libdir/lib$name.la"
 
22349
              fi
 
22350
            else
 
22351
              if test -f "$additional_libdir/lib$name.$libext"; then
 
22352
                found_dir="$additional_libdir"
 
22353
                found_a="$additional_libdir/lib$name.$libext"
 
22354
                if test -f "$additional_libdir/lib$name.la"; then
 
22355
                  found_la="$additional_libdir/lib$name.la"
 
22356
                fi
 
22357
              fi
 
22358
            fi
 
22359
          fi
 
22360
          if test "X$found_dir" = "X"; then
 
22361
            for x in $LDFLAGS $LTLIBICONV; do
 
22362
 
 
22363
  acl_save_prefix="$prefix"
 
22364
  prefix="$acl_final_prefix"
 
22365
  acl_save_exec_prefix="$exec_prefix"
 
22366
  exec_prefix="$acl_final_exec_prefix"
 
22367
  eval x=\"$x\"
 
22368
  exec_prefix="$acl_save_exec_prefix"
 
22369
  prefix="$acl_save_prefix"
 
22370
 
 
22371
              case "$x" in
 
22372
                -L*)
 
22373
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
 
22374
                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
 
22375
                    found_dir="$dir"
 
22376
                    found_so="$dir/lib$name.$shlibext"
 
22377
                    if test -f "$dir/lib$name.la"; then
 
22378
                      found_la="$dir/lib$name.la"
 
22379
                    fi
 
22380
                  else
 
22381
                    if test -f "$dir/lib$name.$libext"; then
 
22382
                      found_dir="$dir"
 
22383
                      found_a="$dir/lib$name.$libext"
 
22384
                      if test -f "$dir/lib$name.la"; then
 
22385
                        found_la="$dir/lib$name.la"
 
22386
                      fi
 
22387
                    fi
 
22388
                  fi
 
22389
                  ;;
 
22390
              esac
 
22391
              if test "X$found_dir" != "X"; then
 
22392
                break
 
22393
              fi
 
22394
            done
 
22395
          fi
 
22396
          if test "X$found_dir" != "X"; then
 
22397
                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
 
22398
            if test "X$found_so" != "X"; then
 
22399
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
 
22400
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
22401
              else
 
22402
                                                                                haveit=
 
22403
                for x in $ltrpathdirs; do
 
22404
                  if test "X$x" = "X$found_dir"; then
 
22405
                    haveit=yes
 
22406
                    break
 
22407
                  fi
 
22408
                done
 
22409
                if test -z "$haveit"; then
 
22410
                  ltrpathdirs="$ltrpathdirs $found_dir"
 
22411
                fi
 
22412
                                if test "$hardcode_direct" = yes; then
 
22413
                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
22414
                else
 
22415
                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
 
22416
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
22417
                                                            haveit=
 
22418
                    for x in $rpathdirs; do
 
22419
                      if test "X$x" = "X$found_dir"; then
 
22420
                        haveit=yes
 
22421
                        break
 
22422
                      fi
 
22423
                    done
 
22424
                    if test -z "$haveit"; then
 
22425
                      rpathdirs="$rpathdirs $found_dir"
 
22426
                    fi
 
22427
                  else
 
22428
                                                                                haveit=
 
22429
                    for x in $LDFLAGS $LIBICONV; do
 
22430
 
 
22431
  acl_save_prefix="$prefix"
 
22432
  prefix="$acl_final_prefix"
 
22433
  acl_save_exec_prefix="$exec_prefix"
 
22434
  exec_prefix="$acl_final_exec_prefix"
 
22435
  eval x=\"$x\"
 
22436
  exec_prefix="$acl_save_exec_prefix"
 
22437
  prefix="$acl_save_prefix"
 
22438
 
 
22439
                      if test "X$x" = "X-L$found_dir"; then
 
22440
                        haveit=yes
 
22441
                        break
 
22442
                      fi
 
22443
                    done
 
22444
                    if test -z "$haveit"; then
 
22445
                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
 
22446
                    fi
 
22447
                    if test "$hardcode_minus_L" != no; then
 
22448
                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
 
22449
                    else
 
22450
                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
 
22451
                    fi
 
22452
                  fi
 
22453
                fi
 
22454
              fi
 
22455
            else
 
22456
              if test "X$found_a" != "X"; then
 
22457
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
 
22458
              else
 
22459
                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
 
22460
              fi
 
22461
            fi
 
22462
                        additional_includedir=
 
22463
            case "$found_dir" in
 
22464
              */$acl_libdirstem | */$acl_libdirstem/)
 
22465
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
 
22466
                additional_includedir="$basedir/include"
 
22467
                ;;
 
22468
            esac
 
22469
            if test "X$additional_includedir" != "X"; then
 
22470
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
 
22471
                haveit=
 
22472
                if test "X$additional_includedir" = "X/usr/local/include"; then
 
22473
                  if test -n "$GCC"; then
 
22474
                    case $host_os in
 
22475
                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
22476
                    esac
 
22477
                  fi
 
22478
                fi
 
22479
                if test -z "$haveit"; then
 
22480
                  for x in $CPPFLAGS $INCICONV; do
 
22481
 
 
22482
  acl_save_prefix="$prefix"
 
22483
  prefix="$acl_final_prefix"
 
22484
  acl_save_exec_prefix="$exec_prefix"
 
22485
  exec_prefix="$acl_final_exec_prefix"
 
22486
  eval x=\"$x\"
 
22487
  exec_prefix="$acl_save_exec_prefix"
 
22488
  prefix="$acl_save_prefix"
 
22489
 
 
22490
                    if test "X$x" = "X-I$additional_includedir"; then
 
22491
                      haveit=yes
 
22492
                      break
 
22493
                    fi
 
22494
                  done
 
22495
                  if test -z "$haveit"; then
 
22496
                    if test -d "$additional_includedir"; then
 
22497
                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
 
22498
                    fi
 
22499
                  fi
 
22500
                fi
 
22501
              fi
 
22502
            fi
 
22503
                        if test -n "$found_la"; then
 
22504
                                                        save_libdir="$libdir"
 
22505
              case "$found_la" in
 
22506
                */* | *\\*) . "$found_la" ;;
 
22507
                *) . "./$found_la" ;;
 
22508
              esac
 
22509
              libdir="$save_libdir"
 
22510
                            for dep in $dependency_libs; do
 
22511
                case "$dep" in
 
22512
                  -L*)
 
22513
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
 
22514
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
 
22515
                      haveit=
 
22516
                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
 
22517
                        if test -n "$GCC"; then
 
22518
                          case $host_os in
 
22519
                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
22520
                          esac
 
22521
                        fi
 
22522
                      fi
 
22523
                      if test -z "$haveit"; then
 
22524
                        haveit=
 
22525
                        for x in $LDFLAGS $LIBICONV; do
 
22526
 
 
22527
  acl_save_prefix="$prefix"
 
22528
  prefix="$acl_final_prefix"
 
22529
  acl_save_exec_prefix="$exec_prefix"
 
22530
  exec_prefix="$acl_final_exec_prefix"
 
22531
  eval x=\"$x\"
 
22532
  exec_prefix="$acl_save_exec_prefix"
 
22533
  prefix="$acl_save_prefix"
 
22534
 
 
22535
                          if test "X$x" = "X-L$additional_libdir"; then
 
22536
                            haveit=yes
 
22537
                            break
 
22538
                          fi
 
22539
                        done
 
22540
                        if test -z "$haveit"; then
 
22541
                          if test -d "$additional_libdir"; then
 
22542
                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
 
22543
                          fi
 
22544
                        fi
 
22545
                        haveit=
 
22546
                        for x in $LDFLAGS $LTLIBICONV; do
 
22547
 
 
22548
  acl_save_prefix="$prefix"
 
22549
  prefix="$acl_final_prefix"
 
22550
  acl_save_exec_prefix="$exec_prefix"
 
22551
  exec_prefix="$acl_final_exec_prefix"
 
22552
  eval x=\"$x\"
 
22553
  exec_prefix="$acl_save_exec_prefix"
 
22554
  prefix="$acl_save_prefix"
 
22555
 
 
22556
                          if test "X$x" = "X-L$additional_libdir"; then
 
22557
                            haveit=yes
 
22558
                            break
 
22559
                          fi
 
22560
                        done
 
22561
                        if test -z "$haveit"; then
 
22562
                          if test -d "$additional_libdir"; then
 
22563
                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
 
22564
                          fi
 
22565
                        fi
 
22566
                      fi
 
22567
                    fi
 
22568
                    ;;
 
22569
                  -R*)
 
22570
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
 
22571
                    if test "$enable_rpath" != no; then
 
22572
                                                                  haveit=
 
22573
                      for x in $rpathdirs; do
 
22574
                        if test "X$x" = "X$dir"; then
 
22575
                          haveit=yes
 
22576
                          break
 
22577
                        fi
 
22578
                      done
 
22579
                      if test -z "$haveit"; then
 
22580
                        rpathdirs="$rpathdirs $dir"
 
22581
                      fi
 
22582
                                                                  haveit=
 
22583
                      for x in $ltrpathdirs; do
 
22584
                        if test "X$x" = "X$dir"; then
 
22585
                          haveit=yes
 
22586
                          break
 
22587
                        fi
 
22588
                      done
 
22589
                      if test -z "$haveit"; then
 
22590
                        ltrpathdirs="$ltrpathdirs $dir"
 
22591
                      fi
 
22592
                    fi
 
22593
                    ;;
 
22594
                  -l*)
 
22595
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
 
22596
                    ;;
 
22597
                  *.la)
 
22598
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
 
22599
                    ;;
 
22600
                  *)
 
22601
                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
 
22602
                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
 
22603
                    ;;
 
22604
                esac
 
22605
              done
 
22606
            fi
 
22607
          else
 
22608
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
 
22609
            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
 
22610
          fi
 
22611
        fi
 
22612
      fi
 
22613
    done
 
22614
  done
 
22615
  if test "X$rpathdirs" != "X"; then
 
22616
    if test -n "$hardcode_libdir_separator"; then
 
22617
                        alldirs=
 
22618
      for found_dir in $rpathdirs; do
 
22619
        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
 
22620
      done
 
22621
            acl_save_libdir="$libdir"
 
22622
      libdir="$alldirs"
 
22623
      eval flag=\"$hardcode_libdir_flag_spec\"
 
22624
      libdir="$acl_save_libdir"
 
22625
      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
 
22626
    else
 
22627
            for found_dir in $rpathdirs; do
 
22628
        acl_save_libdir="$libdir"
 
22629
        libdir="$found_dir"
 
22630
        eval flag=\"$hardcode_libdir_flag_spec\"
 
22631
        libdir="$acl_save_libdir"
 
22632
        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
 
22633
      done
 
22634
    fi
 
22635
  fi
 
22636
  if test "X$ltrpathdirs" != "X"; then
 
22637
            for found_dir in $ltrpathdirs; do
 
22638
      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
 
22639
    done
 
22640
  fi
 
22641
 
 
22642
 
 
22643
 
 
22644
 
 
22645
 
 
22646
 
 
22647
 
 
22648
 
 
22649
 
 
22650
 
 
22651
 
 
22652
 
 
22653
 
 
22654
 
 
22655
 
 
22656
 
 
22657
 
 
22658
 
 
22659
    { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
 
22660
echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
 
22661
if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
 
22662
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22663
else
 
22664
  gt_save_LIBS="$LIBS"
 
22665
     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
 
22666
     cat >conftest.$ac_ext <<_ACEOF
 
22667
/* confdefs.h.  */
 
22668
_ACEOF
 
22669
cat confdefs.h >>conftest.$ac_ext
 
22670
cat >>conftest.$ac_ext <<_ACEOF
 
22671
/* end confdefs.h.  */
 
22672
#include <CoreFoundation/CFPreferences.h>
 
22673
int
 
22674
main ()
 
22675
{
 
22676
CFPreferencesCopyAppValue(NULL, NULL)
 
22677
  ;
 
22678
  return 0;
 
22679
}
 
22680
_ACEOF
 
22681
rm -f conftest.$ac_objext conftest$ac_exeext
 
22682
if { (ac_try="$ac_link"
 
22683
case "(($ac_try" in
 
22684
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22685
  *) ac_try_echo=$ac_try;;
 
22686
esac
 
22687
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22688
  (eval "$ac_link") 2>conftest.er1
 
22689
  ac_status=$?
 
22690
  grep -v '^ *+' conftest.er1 >conftest.err
 
22691
  rm -f conftest.er1
 
22692
  cat conftest.err >&5
 
22693
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22694
  (exit $ac_status); } && {
 
22695
         test -z "$ac_c_werror_flag" ||
 
22696
         test ! -s conftest.err
 
22697
       } && test -s conftest$ac_exeext &&
 
22698
       $as_test_x conftest$ac_exeext; then
 
22699
  gt_cv_func_CFPreferencesCopyAppValue=yes
 
22700
else
 
22701
  echo "$as_me: failed program was:" >&5
 
22702
sed 's/^/| /' conftest.$ac_ext >&5
 
22703
 
 
22704
        gt_cv_func_CFPreferencesCopyAppValue=no
 
22705
fi
 
22706
 
 
22707
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
22708
      conftest$ac_exeext conftest.$ac_ext
 
22709
     LIBS="$gt_save_LIBS"
 
22710
fi
 
22711
{ echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
 
22712
echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
 
22713
  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
 
22714
 
 
22715
cat >>confdefs.h <<\_ACEOF
 
22716
#define HAVE_CFPREFERENCESCOPYAPPVALUE 1
 
22717
_ACEOF
 
22718
 
 
22719
  fi
 
22720
    { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
 
22721
echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
 
22722
if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
 
22723
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22724
else
 
22725
  gt_save_LIBS="$LIBS"
 
22726
     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
 
22727
     cat >conftest.$ac_ext <<_ACEOF
 
22728
/* confdefs.h.  */
 
22729
_ACEOF
 
22730
cat confdefs.h >>conftest.$ac_ext
 
22731
cat >>conftest.$ac_ext <<_ACEOF
 
22732
/* end confdefs.h.  */
 
22733
#include <CoreFoundation/CFLocale.h>
 
22734
int
 
22735
main ()
 
22736
{
 
22737
CFLocaleCopyCurrent();
 
22738
  ;
 
22739
  return 0;
 
22740
}
 
22741
_ACEOF
 
22742
rm -f conftest.$ac_objext conftest$ac_exeext
 
22743
if { (ac_try="$ac_link"
 
22744
case "(($ac_try" in
 
22745
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22746
  *) ac_try_echo=$ac_try;;
 
22747
esac
 
22748
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22749
  (eval "$ac_link") 2>conftest.er1
 
22750
  ac_status=$?
 
22751
  grep -v '^ *+' conftest.er1 >conftest.err
 
22752
  rm -f conftest.er1
 
22753
  cat conftest.err >&5
 
22754
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22755
  (exit $ac_status); } && {
 
22756
         test -z "$ac_c_werror_flag" ||
 
22757
         test ! -s conftest.err
 
22758
       } && test -s conftest$ac_exeext &&
 
22759
       $as_test_x conftest$ac_exeext; then
 
22760
  gt_cv_func_CFLocaleCopyCurrent=yes
 
22761
else
 
22762
  echo "$as_me: failed program was:" >&5
 
22763
sed 's/^/| /' conftest.$ac_ext >&5
 
22764
 
 
22765
        gt_cv_func_CFLocaleCopyCurrent=no
 
22766
fi
 
22767
 
 
22768
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
22769
      conftest$ac_exeext conftest.$ac_ext
 
22770
     LIBS="$gt_save_LIBS"
 
22771
fi
 
22772
{ echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
 
22773
echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
 
22774
  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
 
22775
 
 
22776
cat >>confdefs.h <<\_ACEOF
 
22777
#define HAVE_CFLOCALECOPYCURRENT 1
 
22778
_ACEOF
 
22779
 
 
22780
  fi
 
22781
  INTL_MACOSX_LIBS=
 
22782
  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
 
22783
    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
 
22784
  fi
 
22785
 
 
22786
 
 
22787
 
 
22788
 
 
22789
 
 
22790
 
 
22791
  LIBINTL=
 
22792
  LTLIBINTL=
 
22793
  POSUB=
 
22794
 
 
22795
    if test "$USE_NLS" = "yes"; then
 
22796
    gt_use_preinstalled_gnugettext=no
 
22797
 
 
22798
 
 
22799
 
 
22800
 
 
22801
 
 
22802
 
 
22803
        { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
 
22804
echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
 
22805
if test "${gt_cv_func_gnugettext2_libc+set}" = set; then
 
22806
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22807
else
 
22808
  cat >conftest.$ac_ext <<_ACEOF
 
22809
/* confdefs.h.  */
 
22810
_ACEOF
 
22811
cat confdefs.h >>conftest.$ac_ext
 
22812
cat >>conftest.$ac_ext <<_ACEOF
 
22813
/* end confdefs.h.  */
 
22814
#include <libintl.h>
 
22815
extern int _nl_msg_cat_cntr;
 
22816
extern int *_nl_domain_bindings;
 
22817
int
 
22818
main ()
 
22819
{
 
22820
bindtextdomain ("", "");
 
22821
return * gettext ("") + * ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_domain_bindings
 
22822
  ;
 
22823
  return 0;
 
22824
}
 
22825
_ACEOF
 
22826
rm -f conftest.$ac_objext conftest$ac_exeext
 
22827
if { (ac_try="$ac_link"
 
22828
case "(($ac_try" in
 
22829
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22830
  *) ac_try_echo=$ac_try;;
 
22831
esac
 
22832
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22833
  (eval "$ac_link") 2>conftest.er1
 
22834
  ac_status=$?
 
22835
  grep -v '^ *+' conftest.er1 >conftest.err
 
22836
  rm -f conftest.er1
 
22837
  cat conftest.err >&5
 
22838
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22839
  (exit $ac_status); } && {
 
22840
         test -z "$ac_c_werror_flag" ||
 
22841
         test ! -s conftest.err
 
22842
       } && test -s conftest$ac_exeext &&
 
22843
       $as_test_x conftest$ac_exeext; then
 
22844
  gt_cv_func_gnugettext2_libc=yes
 
22845
else
 
22846
  echo "$as_me: failed program was:" >&5
 
22847
sed 's/^/| /' conftest.$ac_ext >&5
 
22848
 
 
22849
        gt_cv_func_gnugettext2_libc=no
 
22850
fi
 
22851
 
 
22852
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
22853
      conftest$ac_exeext conftest.$ac_ext
 
22854
fi
 
22855
{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libc" >&5
 
22856
echo "${ECHO_T}$gt_cv_func_gnugettext2_libc" >&6; }
 
22857
 
 
22858
        if test "$gt_cv_func_gnugettext2_libc" != "yes"; then
 
22859
 
 
22860
 
 
22861
 
 
22862
 
 
22863
 
 
22864
          am_save_CPPFLAGS="$CPPFLAGS"
 
22865
 
 
22866
  for element in $INCICONV; do
 
22867
    haveit=
 
22868
    for x in $CPPFLAGS; do
 
22869
 
 
22870
  acl_save_prefix="$prefix"
 
22871
  prefix="$acl_final_prefix"
 
22872
  acl_save_exec_prefix="$exec_prefix"
 
22873
  exec_prefix="$acl_final_exec_prefix"
 
22874
  eval x=\"$x\"
 
22875
  exec_prefix="$acl_save_exec_prefix"
 
22876
  prefix="$acl_save_prefix"
 
22877
 
 
22878
      if test "X$x" = "X$element"; then
 
22879
        haveit=yes
 
22880
        break
 
22881
      fi
 
22882
    done
 
22883
    if test -z "$haveit"; then
 
22884
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
 
22885
    fi
 
22886
  done
 
22887
 
 
22888
 
 
22889
  { echo "$as_me:$LINENO: checking for iconv" >&5
 
22890
echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
 
22891
if test "${am_cv_func_iconv+set}" = set; then
 
22892
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22893
else
 
22894
 
 
22895
    am_cv_func_iconv="no, consider installing GNU libiconv"
 
22896
    am_cv_lib_iconv=no
 
22897
    cat >conftest.$ac_ext <<_ACEOF
 
22898
/* confdefs.h.  */
 
22899
_ACEOF
 
22900
cat confdefs.h >>conftest.$ac_ext
 
22901
cat >>conftest.$ac_ext <<_ACEOF
 
22902
/* end confdefs.h.  */
 
22903
#include <stdlib.h>
 
22904
#include <iconv.h>
 
22905
int
 
22906
main ()
 
22907
{
 
22908
iconv_t cd = iconv_open("","");
 
22909
       iconv(cd,NULL,NULL,NULL,NULL);
 
22910
       iconv_close(cd);
 
22911
  ;
 
22912
  return 0;
 
22913
}
 
22914
_ACEOF
 
22915
rm -f conftest.$ac_objext conftest$ac_exeext
 
22916
if { (ac_try="$ac_link"
 
22917
case "(($ac_try" in
 
22918
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22919
  *) ac_try_echo=$ac_try;;
 
22920
esac
 
22921
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22922
  (eval "$ac_link") 2>conftest.er1
 
22923
  ac_status=$?
 
22924
  grep -v '^ *+' conftest.er1 >conftest.err
 
22925
  rm -f conftest.er1
 
22926
  cat conftest.err >&5
 
22927
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22928
  (exit $ac_status); } && {
 
22929
         test -z "$ac_c_werror_flag" ||
 
22930
         test ! -s conftest.err
 
22931
       } && test -s conftest$ac_exeext &&
 
22932
       $as_test_x conftest$ac_exeext; then
 
22933
  am_cv_func_iconv=yes
 
22934
else
 
22935
  echo "$as_me: failed program was:" >&5
 
22936
sed 's/^/| /' conftest.$ac_ext >&5
 
22937
 
 
22938
 
 
22939
fi
 
22940
 
 
22941
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
22942
      conftest$ac_exeext conftest.$ac_ext
 
22943
    if test "$am_cv_func_iconv" != yes; then
 
22944
      am_save_LIBS="$LIBS"
 
22945
      LIBS="$LIBS $LIBICONV"
 
22946
      cat >conftest.$ac_ext <<_ACEOF
 
22947
/* confdefs.h.  */
 
22948
_ACEOF
 
22949
cat confdefs.h >>conftest.$ac_ext
 
22950
cat >>conftest.$ac_ext <<_ACEOF
 
22951
/* end confdefs.h.  */
 
22952
#include <stdlib.h>
 
22953
#include <iconv.h>
 
22954
int
 
22955
main ()
 
22956
{
 
22957
iconv_t cd = iconv_open("","");
 
22958
         iconv(cd,NULL,NULL,NULL,NULL);
 
22959
         iconv_close(cd);
 
22960
  ;
 
22961
  return 0;
 
22962
}
 
22963
_ACEOF
 
22964
rm -f conftest.$ac_objext conftest$ac_exeext
 
22965
if { (ac_try="$ac_link"
 
22966
case "(($ac_try" in
 
22967
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
22968
  *) ac_try_echo=$ac_try;;
 
22969
esac
 
22970
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
22971
  (eval "$ac_link") 2>conftest.er1
 
22972
  ac_status=$?
 
22973
  grep -v '^ *+' conftest.er1 >conftest.err
 
22974
  rm -f conftest.er1
 
22975
  cat conftest.err >&5
 
22976
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22977
  (exit $ac_status); } && {
 
22978
         test -z "$ac_c_werror_flag" ||
 
22979
         test ! -s conftest.err
 
22980
       } && test -s conftest$ac_exeext &&
 
22981
       $as_test_x conftest$ac_exeext; then
 
22982
  am_cv_lib_iconv=yes
 
22983
        am_cv_func_iconv=yes
 
22984
else
 
22985
  echo "$as_me: failed program was:" >&5
 
22986
sed 's/^/| /' conftest.$ac_ext >&5
 
22987
 
 
22988
 
 
22989
fi
 
22990
 
 
22991
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
22992
      conftest$ac_exeext conftest.$ac_ext
 
22993
      LIBS="$am_save_LIBS"
 
22994
    fi
 
22995
 
 
22996
fi
 
22997
{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
 
22998
echo "${ECHO_T}$am_cv_func_iconv" >&6; }
 
22999
  if test "$am_cv_func_iconv" = yes; then
 
23000
 
 
23001
cat >>confdefs.h <<\_ACEOF
 
23002
#define HAVE_ICONV 1
 
23003
_ACEOF
 
23004
 
 
23005
  fi
 
23006
  if test "$am_cv_lib_iconv" = yes; then
 
23007
    { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
 
23008
echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
 
23009
    { echo "$as_me:$LINENO: result: $LIBICONV" >&5
 
23010
echo "${ECHO_T}$LIBICONV" >&6; }
 
23011
  else
 
23012
            CPPFLAGS="$am_save_CPPFLAGS"
 
23013
    LIBICONV=
 
23014
    LTLIBICONV=
 
23015
  fi
 
23016
 
 
23017
 
 
23018
 
 
23019
 
 
23020
 
 
23021
 
 
23022
 
 
23023
    use_additional=yes
 
23024
 
 
23025
  acl_save_prefix="$prefix"
 
23026
  prefix="$acl_final_prefix"
 
23027
  acl_save_exec_prefix="$exec_prefix"
 
23028
  exec_prefix="$acl_final_exec_prefix"
 
23029
 
 
23030
    eval additional_includedir=\"$includedir\"
 
23031
    eval additional_libdir=\"$libdir\"
 
23032
 
 
23033
  exec_prefix="$acl_save_exec_prefix"
 
23034
  prefix="$acl_save_prefix"
 
23035
 
 
23036
 
 
23037
# Check whether --with-libintl-prefix was given.
 
23038
if test "${with_libintl_prefix+set}" = set; then
 
23039
  withval=$with_libintl_prefix;
 
23040
    if test "X$withval" = "Xno"; then
 
23041
      use_additional=no
 
23042
    else
 
23043
      if test "X$withval" = "X"; then
 
23044
 
 
23045
  acl_save_prefix="$prefix"
 
23046
  prefix="$acl_final_prefix"
 
23047
  acl_save_exec_prefix="$exec_prefix"
 
23048
  exec_prefix="$acl_final_exec_prefix"
 
23049
 
 
23050
          eval additional_includedir=\"$includedir\"
 
23051
          eval additional_libdir=\"$libdir\"
 
23052
 
 
23053
  exec_prefix="$acl_save_exec_prefix"
 
23054
  prefix="$acl_save_prefix"
 
23055
 
 
23056
      else
 
23057
        additional_includedir="$withval/include"
 
23058
        additional_libdir="$withval/$acl_libdirstem"
 
23059
      fi
 
23060
    fi
 
23061
 
 
23062
fi
 
23063
 
 
23064
      LIBINTL=
 
23065
  LTLIBINTL=
 
23066
  INCINTL=
 
23067
  rpathdirs=
 
23068
  ltrpathdirs=
 
23069
  names_already_handled=
 
23070
  names_next_round='intl '
 
23071
  while test -n "$names_next_round"; do
 
23072
    names_this_round="$names_next_round"
 
23073
    names_next_round=
 
23074
    for name in $names_this_round; do
 
23075
      already_handled=
 
23076
      for n in $names_already_handled; do
 
23077
        if test "$n" = "$name"; then
 
23078
          already_handled=yes
 
23079
          break
 
23080
        fi
 
23081
      done
 
23082
      if test -z "$already_handled"; then
 
23083
        names_already_handled="$names_already_handled $name"
 
23084
                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
 
23085
        eval value=\"\$HAVE_LIB$uppername\"
 
23086
        if test -n "$value"; then
 
23087
          if test "$value" = yes; then
 
23088
            eval value=\"\$LIB$uppername\"
 
23089
            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
 
23090
            eval value=\"\$LTLIB$uppername\"
 
23091
            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
 
23092
          else
 
23093
                                    :
 
23094
          fi
 
23095
        else
 
23096
                              found_dir=
 
23097
          found_la=
 
23098
          found_so=
 
23099
          found_a=
 
23100
          if test $use_additional = yes; then
 
23101
            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
 
23102
              found_dir="$additional_libdir"
 
23103
              found_so="$additional_libdir/lib$name.$shlibext"
 
23104
              if test -f "$additional_libdir/lib$name.la"; then
 
23105
                found_la="$additional_libdir/lib$name.la"
 
23106
              fi
 
23107
            else
 
23108
              if test -f "$additional_libdir/lib$name.$libext"; then
 
23109
                found_dir="$additional_libdir"
 
23110
                found_a="$additional_libdir/lib$name.$libext"
 
23111
                if test -f "$additional_libdir/lib$name.la"; then
 
23112
                  found_la="$additional_libdir/lib$name.la"
 
23113
                fi
 
23114
              fi
 
23115
            fi
 
23116
          fi
 
23117
          if test "X$found_dir" = "X"; then
 
23118
            for x in $LDFLAGS $LTLIBINTL; do
 
23119
 
 
23120
  acl_save_prefix="$prefix"
 
23121
  prefix="$acl_final_prefix"
 
23122
  acl_save_exec_prefix="$exec_prefix"
 
23123
  exec_prefix="$acl_final_exec_prefix"
 
23124
  eval x=\"$x\"
 
23125
  exec_prefix="$acl_save_exec_prefix"
 
23126
  prefix="$acl_save_prefix"
 
23127
 
 
23128
              case "$x" in
 
23129
                -L*)
 
23130
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
 
23131
                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
 
23132
                    found_dir="$dir"
 
23133
                    found_so="$dir/lib$name.$shlibext"
 
23134
                    if test -f "$dir/lib$name.la"; then
 
23135
                      found_la="$dir/lib$name.la"
 
23136
                    fi
 
23137
                  else
 
23138
                    if test -f "$dir/lib$name.$libext"; then
 
23139
                      found_dir="$dir"
 
23140
                      found_a="$dir/lib$name.$libext"
 
23141
                      if test -f "$dir/lib$name.la"; then
 
23142
                        found_la="$dir/lib$name.la"
 
23143
                      fi
 
23144
                    fi
 
23145
                  fi
 
23146
                  ;;
 
23147
              esac
 
23148
              if test "X$found_dir" != "X"; then
 
23149
                break
 
23150
              fi
 
23151
            done
 
23152
          fi
 
23153
          if test "X$found_dir" != "X"; then
 
23154
                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
 
23155
            if test "X$found_so" != "X"; then
 
23156
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
 
23157
                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
 
23158
              else
 
23159
                                                                                haveit=
 
23160
                for x in $ltrpathdirs; do
 
23161
                  if test "X$x" = "X$found_dir"; then
 
23162
                    haveit=yes
 
23163
                    break
 
23164
                  fi
 
23165
                done
 
23166
                if test -z "$haveit"; then
 
23167
                  ltrpathdirs="$ltrpathdirs $found_dir"
 
23168
                fi
 
23169
                                if test "$hardcode_direct" = yes; then
 
23170
                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
 
23171
                else
 
23172
                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
 
23173
                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
 
23174
                                                            haveit=
 
23175
                    for x in $rpathdirs; do
 
23176
                      if test "X$x" = "X$found_dir"; then
 
23177
                        haveit=yes
 
23178
                        break
 
23179
                      fi
 
23180
                    done
 
23181
                    if test -z "$haveit"; then
 
23182
                      rpathdirs="$rpathdirs $found_dir"
 
23183
                    fi
 
23184
                  else
 
23185
                                                                                haveit=
 
23186
                    for x in $LDFLAGS $LIBINTL; do
 
23187
 
 
23188
  acl_save_prefix="$prefix"
 
23189
  prefix="$acl_final_prefix"
 
23190
  acl_save_exec_prefix="$exec_prefix"
 
23191
  exec_prefix="$acl_final_exec_prefix"
 
23192
  eval x=\"$x\"
 
23193
  exec_prefix="$acl_save_exec_prefix"
 
23194
  prefix="$acl_save_prefix"
 
23195
 
 
23196
                      if test "X$x" = "X-L$found_dir"; then
 
23197
                        haveit=yes
 
23198
                        break
 
23199
                      fi
 
23200
                    done
 
23201
                    if test -z "$haveit"; then
 
23202
                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
 
23203
                    fi
 
23204
                    if test "$hardcode_minus_L" != no; then
 
23205
                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
 
23206
                    else
 
23207
                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
 
23208
                    fi
 
23209
                  fi
 
23210
                fi
 
23211
              fi
 
23212
            else
 
23213
              if test "X$found_a" != "X"; then
 
23214
                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
 
23215
              else
 
23216
                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
 
23217
              fi
 
23218
            fi
 
23219
                        additional_includedir=
 
23220
            case "$found_dir" in
 
23221
              */$acl_libdirstem | */$acl_libdirstem/)
 
23222
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
 
23223
                additional_includedir="$basedir/include"
 
23224
                ;;
 
23225
            esac
 
23226
            if test "X$additional_includedir" != "X"; then
 
23227
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
 
23228
                haveit=
 
23229
                if test "X$additional_includedir" = "X/usr/local/include"; then
 
23230
                  if test -n "$GCC"; then
 
23231
                    case $host_os in
 
23232
                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
23233
                    esac
 
23234
                  fi
 
23235
                fi
 
23236
                if test -z "$haveit"; then
 
23237
                  for x in $CPPFLAGS $INCINTL; do
 
23238
 
 
23239
  acl_save_prefix="$prefix"
 
23240
  prefix="$acl_final_prefix"
 
23241
  acl_save_exec_prefix="$exec_prefix"
 
23242
  exec_prefix="$acl_final_exec_prefix"
 
23243
  eval x=\"$x\"
 
23244
  exec_prefix="$acl_save_exec_prefix"
 
23245
  prefix="$acl_save_prefix"
 
23246
 
 
23247
                    if test "X$x" = "X-I$additional_includedir"; then
 
23248
                      haveit=yes
 
23249
                      break
 
23250
                    fi
 
23251
                  done
 
23252
                  if test -z "$haveit"; then
 
23253
                    if test -d "$additional_includedir"; then
 
23254
                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
 
23255
                    fi
 
23256
                  fi
 
23257
                fi
 
23258
              fi
 
23259
            fi
 
23260
                        if test -n "$found_la"; then
 
23261
                                                        save_libdir="$libdir"
 
23262
              case "$found_la" in
 
23263
                */* | *\\*) . "$found_la" ;;
 
23264
                *) . "./$found_la" ;;
 
23265
              esac
 
23266
              libdir="$save_libdir"
 
23267
                            for dep in $dependency_libs; do
 
23268
                case "$dep" in
 
23269
                  -L*)
 
23270
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
 
23271
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
 
23272
                      haveit=
 
23273
                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
 
23274
                        if test -n "$GCC"; then
 
23275
                          case $host_os in
 
23276
                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
 
23277
                          esac
 
23278
                        fi
 
23279
                      fi
 
23280
                      if test -z "$haveit"; then
 
23281
                        haveit=
 
23282
                        for x in $LDFLAGS $LIBINTL; do
 
23283
 
 
23284
  acl_save_prefix="$prefix"
 
23285
  prefix="$acl_final_prefix"
 
23286
  acl_save_exec_prefix="$exec_prefix"
 
23287
  exec_prefix="$acl_final_exec_prefix"
 
23288
  eval x=\"$x\"
 
23289
  exec_prefix="$acl_save_exec_prefix"
 
23290
  prefix="$acl_save_prefix"
 
23291
 
 
23292
                          if test "X$x" = "X-L$additional_libdir"; then
 
23293
                            haveit=yes
 
23294
                            break
 
23295
                          fi
 
23296
                        done
 
23297
                        if test -z "$haveit"; then
 
23298
                          if test -d "$additional_libdir"; then
 
23299
                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
 
23300
                          fi
 
23301
                        fi
 
23302
                        haveit=
 
23303
                        for x in $LDFLAGS $LTLIBINTL; do
 
23304
 
 
23305
  acl_save_prefix="$prefix"
 
23306
  prefix="$acl_final_prefix"
 
23307
  acl_save_exec_prefix="$exec_prefix"
 
23308
  exec_prefix="$acl_final_exec_prefix"
 
23309
  eval x=\"$x\"
 
23310
  exec_prefix="$acl_save_exec_prefix"
 
23311
  prefix="$acl_save_prefix"
 
23312
 
 
23313
                          if test "X$x" = "X-L$additional_libdir"; then
 
23314
                            haveit=yes
 
23315
                            break
 
23316
                          fi
 
23317
                        done
 
23318
                        if test -z "$haveit"; then
 
23319
                          if test -d "$additional_libdir"; then
 
23320
                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
 
23321
                          fi
 
23322
                        fi
 
23323
                      fi
 
23324
                    fi
 
23325
                    ;;
 
23326
                  -R*)
 
23327
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
 
23328
                    if test "$enable_rpath" != no; then
 
23329
                                                                  haveit=
 
23330
                      for x in $rpathdirs; do
 
23331
                        if test "X$x" = "X$dir"; then
 
23332
                          haveit=yes
 
23333
                          break
 
23334
                        fi
 
23335
                      done
 
23336
                      if test -z "$haveit"; then
 
23337
                        rpathdirs="$rpathdirs $dir"
 
23338
                      fi
 
23339
                                                                  haveit=
 
23340
                      for x in $ltrpathdirs; do
 
23341
                        if test "X$x" = "X$dir"; then
 
23342
                          haveit=yes
 
23343
                          break
 
23344
                        fi
 
23345
                      done
 
23346
                      if test -z "$haveit"; then
 
23347
                        ltrpathdirs="$ltrpathdirs $dir"
 
23348
                      fi
 
23349
                    fi
 
23350
                    ;;
 
23351
                  -l*)
 
23352
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
 
23353
                    ;;
 
23354
                  *.la)
 
23355
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
 
23356
                    ;;
 
23357
                  *)
 
23358
                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
 
23359
                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
 
23360
                    ;;
 
23361
                esac
 
23362
              done
 
23363
            fi
 
23364
          else
 
23365
                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
 
23366
            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
 
23367
          fi
 
23368
        fi
 
23369
      fi
 
23370
    done
 
23371
  done
 
23372
  if test "X$rpathdirs" != "X"; then
 
23373
    if test -n "$hardcode_libdir_separator"; then
 
23374
                        alldirs=
 
23375
      for found_dir in $rpathdirs; do
 
23376
        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
 
23377
      done
 
23378
            acl_save_libdir="$libdir"
 
23379
      libdir="$alldirs"
 
23380
      eval flag=\"$hardcode_libdir_flag_spec\"
 
23381
      libdir="$acl_save_libdir"
 
23382
      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
 
23383
    else
 
23384
            for found_dir in $rpathdirs; do
 
23385
        acl_save_libdir="$libdir"
 
23386
        libdir="$found_dir"
 
23387
        eval flag=\"$hardcode_libdir_flag_spec\"
 
23388
        libdir="$acl_save_libdir"
 
23389
        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
 
23390
      done
 
23391
    fi
 
23392
  fi
 
23393
  if test "X$ltrpathdirs" != "X"; then
 
23394
            for found_dir in $ltrpathdirs; do
 
23395
      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
 
23396
    done
 
23397
  fi
 
23398
 
 
23399
          { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
 
23400
echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
 
23401
if test "${gt_cv_func_gnugettext2_libintl+set}" = set; then
 
23402
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23403
else
 
23404
  gt_save_CPPFLAGS="$CPPFLAGS"
 
23405
            CPPFLAGS="$CPPFLAGS $INCINTL"
 
23406
            gt_save_LIBS="$LIBS"
 
23407
            LIBS="$LIBS $LIBINTL"
 
23408
                        cat >conftest.$ac_ext <<_ACEOF
 
23409
/* confdefs.h.  */
 
23410
_ACEOF
 
23411
cat confdefs.h >>conftest.$ac_ext
 
23412
cat >>conftest.$ac_ext <<_ACEOF
 
23413
/* end confdefs.h.  */
 
23414
#include <libintl.h>
 
23415
extern int _nl_msg_cat_cntr;
 
23416
extern
 
23417
#ifdef __cplusplus
 
23418
"C"
 
23419
#endif
 
23420
const char *_nl_expand_alias (const char *);
 
23421
int
 
23422
main ()
 
23423
{
 
23424
bindtextdomain ("", "");
 
23425
return * gettext ("") + * ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias ("")
 
23426
  ;
 
23427
  return 0;
 
23428
}
 
23429
_ACEOF
 
23430
rm -f conftest.$ac_objext conftest$ac_exeext
 
23431
if { (ac_try="$ac_link"
 
23432
case "(($ac_try" in
 
23433
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23434
  *) ac_try_echo=$ac_try;;
 
23435
esac
 
23436
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23437
  (eval "$ac_link") 2>conftest.er1
 
23438
  ac_status=$?
 
23439
  grep -v '^ *+' conftest.er1 >conftest.err
 
23440
  rm -f conftest.er1
 
23441
  cat conftest.err >&5
 
23442
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23443
  (exit $ac_status); } && {
 
23444
         test -z "$ac_c_werror_flag" ||
 
23445
         test ! -s conftest.err
 
23446
       } && test -s conftest$ac_exeext &&
 
23447
       $as_test_x conftest$ac_exeext; then
 
23448
  gt_cv_func_gnugettext2_libintl=yes
 
23449
else
 
23450
  echo "$as_me: failed program was:" >&5
 
23451
sed 's/^/| /' conftest.$ac_ext >&5
 
23452
 
 
23453
        gt_cv_func_gnugettext2_libintl=no
 
23454
fi
 
23455
 
 
23456
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
23457
      conftest$ac_exeext conftest.$ac_ext
 
23458
                        if test "$gt_cv_func_gnugettext2_libintl" != yes && test -n "$LIBICONV"; then
 
23459
              LIBS="$LIBS $LIBICONV"
 
23460
              cat >conftest.$ac_ext <<_ACEOF
 
23461
/* confdefs.h.  */
 
23462
_ACEOF
 
23463
cat confdefs.h >>conftest.$ac_ext
 
23464
cat >>conftest.$ac_ext <<_ACEOF
 
23465
/* end confdefs.h.  */
 
23466
#include <libintl.h>
 
23467
extern int _nl_msg_cat_cntr;
 
23468
extern
 
23469
#ifdef __cplusplus
 
23470
"C"
 
23471
#endif
 
23472
const char *_nl_expand_alias (const char *);
 
23473
int
 
23474
main ()
 
23475
{
 
23476
bindtextdomain ("", "");
 
23477
return * gettext ("") + * ngettext ("", "", 0) + _nl_msg_cat_cntr + *_nl_expand_alias ("")
 
23478
  ;
 
23479
  return 0;
 
23480
}
 
23481
_ACEOF
 
23482
rm -f conftest.$ac_objext conftest$ac_exeext
 
23483
if { (ac_try="$ac_link"
 
23484
case "(($ac_try" in
 
23485
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23486
  *) ac_try_echo=$ac_try;;
 
23487
esac
 
23488
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23489
  (eval "$ac_link") 2>conftest.er1
 
23490
  ac_status=$?
 
23491
  grep -v '^ *+' conftest.er1 >conftest.err
 
23492
  rm -f conftest.er1
 
23493
  cat conftest.err >&5
 
23494
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23495
  (exit $ac_status); } && {
 
23496
         test -z "$ac_c_werror_flag" ||
 
23497
         test ! -s conftest.err
 
23498
       } && test -s conftest$ac_exeext &&
 
23499
       $as_test_x conftest$ac_exeext; then
 
23500
  LIBINTL="$LIBINTL $LIBICONV"
 
23501
                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
 
23502
                gt_cv_func_gnugettext2_libintl=yes
 
23503
 
 
23504
else
 
23505
  echo "$as_me: failed program was:" >&5
 
23506
sed 's/^/| /' conftest.$ac_ext >&5
 
23507
 
 
23508
 
 
23509
fi
 
23510
 
 
23511
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
23512
      conftest$ac_exeext conftest.$ac_ext
 
23513
            fi
 
23514
            CPPFLAGS="$gt_save_CPPFLAGS"
 
23515
            LIBS="$gt_save_LIBS"
 
23516
fi
 
23517
{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext2_libintl" >&5
 
23518
echo "${ECHO_T}$gt_cv_func_gnugettext2_libintl" >&6; }
 
23519
        fi
 
23520
 
 
23521
                                        if test "$gt_cv_func_gnugettext2_libc" = "yes" \
 
23522
           || { test "$gt_cv_func_gnugettext2_libintl" = "yes" \
 
23523
                && test "$PACKAGE" != gettext-runtime \
 
23524
                && test "$PACKAGE" != gettext-tools; }; then
 
23525
          gt_use_preinstalled_gnugettext=yes
 
23526
        else
 
23527
                    LIBINTL=
 
23528
          LTLIBINTL=
 
23529
          INCINTL=
 
23530
        fi
 
23531
 
 
23532
 
 
23533
 
 
23534
    if test -n "$INTL_MACOSX_LIBS"; then
 
23535
      if test "$gt_use_preinstalled_gnugettext" = "yes" \
 
23536
         || test "$nls_cv_use_gnu_gettext" = "yes"; then
 
23537
                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
 
23538
        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
 
23539
      fi
 
23540
    fi
 
23541
 
 
23542
    if test "$gt_use_preinstalled_gnugettext" = "yes" \
 
23543
       || test "$nls_cv_use_gnu_gettext" = "yes"; then
 
23544
 
 
23545
cat >>confdefs.h <<\_ACEOF
 
23546
#define ENABLE_NLS 1
 
23547
_ACEOF
 
23548
 
 
23549
    else
 
23550
      USE_NLS=no
 
23551
    fi
 
23552
  fi
 
23553
 
 
23554
  { echo "$as_me:$LINENO: checking whether to use NLS" >&5
 
23555
echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
 
23556
  { echo "$as_me:$LINENO: result: $USE_NLS" >&5
 
23557
echo "${ECHO_T}$USE_NLS" >&6; }
 
23558
  if test "$USE_NLS" = "yes"; then
 
23559
    { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
 
23560
echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
 
23561
    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
 
23562
      if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
 
23563
        gt_source="external libintl"
 
23564
      else
 
23565
        gt_source="libc"
 
23566
      fi
 
23567
    else
 
23568
      gt_source="included intl directory"
 
23569
    fi
 
23570
    { echo "$as_me:$LINENO: result: $gt_source" >&5
 
23571
echo "${ECHO_T}$gt_source" >&6; }
 
23572
  fi
 
23573
 
 
23574
  if test "$USE_NLS" = "yes"; then
 
23575
 
 
23576
    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
 
23577
      if test "$gt_cv_func_gnugettext2_libintl" = "yes"; then
 
23578
        { echo "$as_me:$LINENO: checking how to link with libintl" >&5
 
23579
echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
 
23580
        { echo "$as_me:$LINENO: result: $LIBINTL" >&5
 
23581
echo "${ECHO_T}$LIBINTL" >&6; }
 
23582
 
 
23583
  for element in $INCINTL; do
 
23584
    haveit=
 
23585
    for x in $CPPFLAGS; do
 
23586
 
 
23587
  acl_save_prefix="$prefix"
 
23588
  prefix="$acl_final_prefix"
 
23589
  acl_save_exec_prefix="$exec_prefix"
 
23590
  exec_prefix="$acl_final_exec_prefix"
 
23591
  eval x=\"$x\"
 
23592
  exec_prefix="$acl_save_exec_prefix"
 
23593
  prefix="$acl_save_prefix"
 
23594
 
 
23595
      if test "X$x" = "X$element"; then
 
23596
        haveit=yes
 
23597
        break
 
23598
      fi
 
23599
    done
 
23600
    if test -z "$haveit"; then
 
23601
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
 
23602
    fi
 
23603
  done
 
23604
 
 
23605
      fi
 
23606
 
 
23607
 
 
23608
cat >>confdefs.h <<\_ACEOF
 
23609
#define HAVE_GETTEXT 1
 
23610
_ACEOF
 
23611
 
 
23612
 
 
23613
cat >>confdefs.h <<\_ACEOF
 
23614
#define HAVE_DCGETTEXT 1
 
23615
_ACEOF
 
23616
 
 
23617
    fi
 
23618
 
 
23619
        POSUB=po
 
23620
  fi
 
23621
 
 
23622
 
 
23623
 
 
23624
    INTLLIBS="$LIBINTL"
 
23625
 
 
23626
 
 
23627
 
 
23628
 
 
23629
 
 
23630
 
 
23631
 
 
23632
 
 
23633
 
 
23634
saved_LIBS="$LIBS"
 
23635
 
 
23636
{ echo "$as_me:$LINENO: checking for poptConfigFileToString in -lpopt" >&5
 
23637
echo $ECHO_N "checking for poptConfigFileToString in -lpopt... $ECHO_C" >&6; }
 
23638
if test "${ac_cv_lib_popt_poptConfigFileToString+set}" = set; then
 
23639
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23640
else
 
23641
  ac_check_lib_save_LIBS=$LIBS
 
23642
LIBS="-lpopt  $LIBS"
 
23643
cat >conftest.$ac_ext <<_ACEOF
 
23644
/* confdefs.h.  */
 
23645
_ACEOF
 
23646
cat confdefs.h >>conftest.$ac_ext
 
23647
cat >>conftest.$ac_ext <<_ACEOF
 
23648
/* end confdefs.h.  */
 
23649
 
 
23650
/* Override any GCC internal prototype to avoid an error.
 
23651
   Use char because int might match the return type of a GCC
 
23652
   builtin and then its argument prototype would still apply.  */
 
23653
#ifdef __cplusplus
 
23654
extern "C"
 
23655
#endif
 
23656
char poptConfigFileToString ();
 
23657
int
 
23658
main ()
 
23659
{
 
23660
return poptConfigFileToString ();
 
23661
  ;
 
23662
  return 0;
 
23663
}
 
23664
_ACEOF
 
23665
rm -f conftest.$ac_objext conftest$ac_exeext
 
23666
if { (ac_try="$ac_link"
 
23667
case "(($ac_try" in
 
23668
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
23669
  *) ac_try_echo=$ac_try;;
 
23670
esac
 
23671
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
23672
  (eval "$ac_link") 2>conftest.er1
 
23673
  ac_status=$?
 
23674
  grep -v '^ *+' conftest.er1 >conftest.err
 
23675
  rm -f conftest.er1
 
23676
  cat conftest.err >&5
 
23677
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23678
  (exit $ac_status); } && {
 
23679
         test -z "$ac_c_werror_flag" ||
 
23680
         test ! -s conftest.err
 
23681
       } && test -s conftest$ac_exeext &&
 
23682
       $as_test_x conftest$ac_exeext; then
 
23683
  ac_cv_lib_popt_poptConfigFileToString=yes
 
23684
else
 
23685
  echo "$as_me: failed program was:" >&5
 
23686
sed 's/^/| /' conftest.$ac_ext >&5
 
23687
 
 
23688
        ac_cv_lib_popt_poptConfigFileToString=no
 
23689
fi
 
23690
 
 
23691
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
23692
      conftest$ac_exeext conftest.$ac_ext
 
23693
LIBS=$ac_check_lib_save_LIBS
 
23694
fi
 
23695
{ echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptConfigFileToString" >&5
 
23696
echo "${ECHO_T}$ac_cv_lib_popt_poptConfigFileToString" >&6; }
 
23697
if test $ac_cv_lib_popt_poptConfigFileToString = yes; then
 
23698
  cat >>confdefs.h <<_ACEOF
 
23699
#define HAVE_LIBPOPT 1
 
23700
_ACEOF
 
23701
 
 
23702
  LIBS="-lpopt $LIBS"
 
23703
 
 
23704
else
 
23705
  { { echo "$as_me:$LINENO: error: You need popt 1.7 or newer to compile." >&5
 
23706
echo "$as_me: error: You need popt 1.7 or newer to compile." >&2;}
 
23707
   { (exit 1); exit 1; }; }
 
23708
fi
 
23709
 
 
23710
POPT_LIBS="$LIBS"
 
23711
LIBS="$saved_LIBS"
 
23712
 
 
23713
 
 
23714
 
 
23715
# Check whether --enable-shared-library was given.
 
23716
if test "${enable_shared_library+set}" = set; then
 
23717
  enableval=$enable_shared_library;
 
23718
else
 
23719
  enable_shared_library=yes
 
23720
fi
 
23721
 
 
23722
 
 
23723
 
 
23724
if test x$enable_shared_library = xno; then
 
23725
  STATIC_LIBRARY_TRUE=
 
23726
  STATIC_LIBRARY_FALSE='#'
 
23727
else
 
23728
  STATIC_LIBRARY_TRUE='#'
 
23729
  STATIC_LIBRARY_FALSE=
 
23730
fi
 
23731
 
 
23732
 
 
23733
# Check whether --enable-plugins was given.
 
23734
if test "${enable_plugins+set}" = set; then
 
23735
  enableval=$enable_plugins;
 
23736
else
 
23737
  enable_plugins=no
 
23738
fi
 
23739
 
 
23740
if test "x$enable_plugins" = xyes; then
 
23741
 
 
23742
cat >>confdefs.h <<\_ACEOF
 
23743
#define USE_PLUGINS 1
 
23744
_ACEOF
 
23745
 
 
23746
fi
 
23747
 
 
23748
# Check whether --enable- was given.
 
23749
if test "${enable_+set}" = set; then
 
23750
  enableval=$enable_;
 
23751
fi
 
23752
 
 
23753
 
 
23754
# Check whether --enable-all was given.
 
23755
if test "${enable_all+set}" = set; then
 
23756
  enableval=$enable_all;
 
23757
else
 
23758
  enable_all=default
 
23759
fi
 
23760
 
 
23761
 
 
23762
 
 
23763
        unset have_module
 
23764
        # Check whether --enable-libgcrypt was given.
 
23765
if test "${enable_libgcrypt+set}" = set; then
 
23766
  enableval=$enable_libgcrypt;
 
23767
else
 
23768
 
 
23769
                if test "x${enable_all}" = "xdefault"; then
 
23770
                        enable_libgcrypt=auto
 
23771
                else
 
23772
                        enable_libgcrypt="${enable_all}"
 
23773
                fi
 
23774
 
 
23775
fi
 
23776
 
 
23777
        if test "x${enable_libgcrypt}" != "xno"; then
 
23778
 
 
23779
 
 
23780
# Check whether --with-libgcrypt-prefix was given.
 
23781
if test "${with_libgcrypt_prefix+set}" = set; then
 
23782
  withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
 
23783
else
 
23784
  libgcrypt_config_prefix=""
 
23785
fi
 
23786
 
 
23787
  if test x$libgcrypt_config_prefix != x ; then
 
23788
     if test x${LIBGCRYPT_CONFIG+set} != xset ; then
 
23789
        LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
 
23790
     fi
 
23791
  fi
 
23792
 
 
23793
  # Extract the first word of "libgcrypt-config", so it can be a program name with args.
 
23794
set dummy libgcrypt-config; ac_word=$2
 
23795
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
23796
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
23797
if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then
 
23798
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23799
else
 
23800
  case $LIBGCRYPT_CONFIG in
 
23801
  [\\/]* | ?:[\\/]*)
 
23802
  ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
 
23803
  ;;
 
23804
  *)
 
23805
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
23806
for as_dir in $PATH
 
23807
do
 
23808
  IFS=$as_save_IFS
 
23809
  test -z "$as_dir" && as_dir=.
 
23810
  for ac_exec_ext in '' $ac_executable_extensions; do
 
23811
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
23812
    ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
23813
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
23814
    break 2
 
23815
  fi
 
23816
done
 
23817
done
 
23818
IFS=$as_save_IFS
 
23819
 
 
23820
  test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
 
23821
  ;;
 
23822
esac
 
23823
fi
 
23824
LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
 
23825
if test -n "$LIBGCRYPT_CONFIG"; then
 
23826
  { echo "$as_me:$LINENO: result: $LIBGCRYPT_CONFIG" >&5
 
23827
echo "${ECHO_T}$LIBGCRYPT_CONFIG" >&6; }
 
23828
else
 
23829
  { echo "$as_me:$LINENO: result: no" >&5
 
23830
echo "${ECHO_T}no" >&6; }
 
23831
fi
 
23832
 
 
23833
 
 
23834
  tmp=1.1.42
 
23835
  if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
 
23836
     req_libgcrypt_api=`echo "$tmp"     | sed 's/\(.*\):\(.*\)/\1/'`
 
23837
     min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
 
23838
  else
 
23839
     req_libgcrypt_api=0
 
23840
     min_libgcrypt_version="$tmp"
 
23841
  fi
 
23842
 
 
23843
  { echo "$as_me:$LINENO: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
 
23844
echo $ECHO_N "checking for LIBGCRYPT - version >= $min_libgcrypt_version... $ECHO_C" >&6; }
 
23845
  ok=no
 
23846
  if test "$LIBGCRYPT_CONFIG" != "no" ; then
 
23847
    req_major=`echo $min_libgcrypt_version | \
 
23848
               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
 
23849
    req_minor=`echo $min_libgcrypt_version | \
 
23850
               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
 
23851
    req_micro=`echo $min_libgcrypt_version | \
 
23852
               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
 
23853
    libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
 
23854
    major=`echo $libgcrypt_config_version | \
 
23855
               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
 
23856
    minor=`echo $libgcrypt_config_version | \
 
23857
               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
 
23858
    micro=`echo $libgcrypt_config_version | \
 
23859
               sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
 
23860
    if test "$major" -gt "$req_major"; then
 
23861
        ok=yes
 
23862
    else
 
23863
        if test "$major" -eq "$req_major"; then
 
23864
            if test "$minor" -gt "$req_minor"; then
 
23865
               ok=yes
 
23866
            else
 
23867
               if test "$minor" -eq "$req_minor"; then
 
23868
                   if test "$micro" -ge "$req_micro"; then
 
23869
                     ok=yes
 
23870
                   fi
 
23871
               fi
 
23872
            fi
 
23873
        fi
 
23874
    fi
 
23875
  fi
 
23876
  if test $ok = yes; then
 
23877
    { echo "$as_me:$LINENO: result: yes ($libgcrypt_config_version)" >&5
 
23878
echo "${ECHO_T}yes ($libgcrypt_config_version)" >&6; }
 
23879
  else
 
23880
    { echo "$as_me:$LINENO: result: no" >&5
 
23881
echo "${ECHO_T}no" >&6; }
 
23882
  fi
 
23883
  if test $ok = yes; then
 
23884
     # If we have a recent libgcrypt, we should also check that the
 
23885
     # API is compatible
 
23886
     if test "$req_libgcrypt_api" -gt 0 ; then
 
23887
        tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
 
23888
        if test "$tmp" -gt 0 ; then
 
23889
           { echo "$as_me:$LINENO: checking LIBGCRYPT API version" >&5
 
23890
echo $ECHO_N "checking LIBGCRYPT API version... $ECHO_C" >&6; }
 
23891
           if test "$req_libgcrypt_api" -eq "$tmp" ; then
 
23892
             { echo "$as_me:$LINENO: result: okay" >&5
 
23893
echo "${ECHO_T}okay" >&6; }
 
23894
           else
 
23895
             ok=no
 
23896
             { echo "$as_me:$LINENO: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
 
23897
echo "${ECHO_T}does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
 
23898
           fi
 
23899
        fi
 
23900
     fi
 
23901
  fi
 
23902
  if test $ok = yes; then
 
23903
    LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
 
23904
    LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
 
23905
    have_module=yes
 
23906
  else
 
23907
    LIBGCRYPT_CFLAGS=""
 
23908
    LIBGCRYPT_LIBS=""
 
23909
    :
 
23910
  fi
 
23911
 
 
23912
 
 
23913
 
 
23914
 
 
23915
                { echo "$as_me:$LINENO: checking whether to build libgcrypt module" >&5
 
23916
echo $ECHO_N "checking whether to build libgcrypt module... $ECHO_C" >&6; }
 
23917
                if test -n "${have_module+set}"; then
 
23918
                        if test "x${enable_libgcrypt}" = "xauto"; then
 
23919
                                if test "x${enable_plugins}" != "xno"; then
 
23920
                                        { echo "$as_me:$LINENO: result: yes, as plugin" >&5
 
23921
echo "${ECHO_T}yes, as plugin" >&6; }
 
23922
                                        build_static=no
 
23923
                                        build_shared=yes
 
23924
                                else
 
23925
                                        { echo "$as_me:$LINENO: result: yes" >&5
 
23926
echo "${ECHO_T}yes" >&6; }
 
23927
                                        build_static=yes
 
23928
                                        build_shared=no
 
23929
                                fi
 
23930
                        elif test "x${enable_libgcrypt}" = "xshared"; then
 
23931
                                if test "x${enable_plugins}" != "xno"; then
 
23932
                                        { echo "$as_me:$LINENO: result: yes, as plugin" >&5
 
23933
echo "${ECHO_T}yes, as plugin" >&6; }
 
23934
                                        build_static=no
 
23935
                                        build_shared=yes
 
23936
                                else
 
23937
                                        { echo "$as_me:$LINENO: result: no" >&5
 
23938
echo "${ECHO_T}no" >&6; }
 
23939
                                        { { echo "$as_me:$LINENO: error: Can't build libgcrypt module, plugins are disabled" >&5
 
23940
echo "$as_me: error: Can't build libgcrypt module, plugins are disabled" >&2;}
 
23941
   { (exit 1); exit 1; }; }
 
23942
                                fi
 
23943
                        else
 
23944
                                { echo "$as_me:$LINENO: result: yes" >&5
 
23945
echo "${ECHO_T}yes" >&6; }
 
23946
                                build_static=yes
 
23947
                                build_shared=no
 
23948
                        fi
 
23949
                elif test "x${enable_libgcrypt}" != "xauto"; then
 
23950
                        { echo "$as_me:$LINENO: result: no" >&5
 
23951
echo "${ECHO_T}no" >&6; }
 
23952
                        { { echo "$as_me:$LINENO: error: Unable to build libgcrypt plugin, see messages above" >&5
 
23953
echo "$as_me: error: Unable to build libgcrypt plugin, see messages above" >&2;}
 
23954
   { (exit 1); exit 1; }; }
 
23955
                else
 
23956
                        { echo "$as_me:$LINENO: result: no" >&5
 
23957
echo "${ECHO_T}no" >&6; }
 
23958
                        build_static=no
 
23959
                        build_shared=no
 
23960
                fi
 
23961
        else
 
23962
                { echo "$as_me:$LINENO: checking whether to build libgcrypt module" >&5
 
23963
echo $ECHO_N "checking whether to build libgcrypt module... $ECHO_C" >&6; }
 
23964
                { echo "$as_me:$LINENO: result: no" >&5
 
23965
echo "${ECHO_T}no" >&6; }
 
23966
                build_static=no
 
23967
                build_shared=no
 
23968
        fi
 
23969
 
 
23970
 
 
23971
 
 
23972
if test x$build_static = xyes; then
 
23973
  BUILD_LIBGCRYPT_TRUE=
 
23974
  BUILD_LIBGCRYPT_FALSE='#'
 
23975
else
 
23976
  BUILD_LIBGCRYPT_TRUE='#'
 
23977
  BUILD_LIBGCRYPT_FALSE=
 
23978
fi
 
23979
 
 
23980
 
 
23981
 
 
23982
if test x$build_shared = xyes; then
 
23983
  SHARED_LIBGCRYPT_TRUE=
 
23984
  SHARED_LIBGCRYPT_FALSE='#'
 
23985
else
 
23986
  SHARED_LIBGCRYPT_TRUE='#'
 
23987
  SHARED_LIBGCRYPT_FALSE=
 
23988
fi
 
23989
 
 
23990
 
 
23991
 
 
23992
        unset have_module
 
23993
        # Check whether --enable-libdevmapper was given.
 
23994
if test "${enable_libdevmapper+set}" = set; then
 
23995
  enableval=$enable_libdevmapper;
 
23996
else
 
23997
 
 
23998
                if test "x${enable_all}" = "xdefault"; then
 
23999
                        enable_libdevmapper=auto
 
24000
                else
 
24001
                        enable_libdevmapper="${enable_all}"
 
24002
                fi
 
24003
 
 
24004
fi
 
24005
 
 
24006
        if test "x${enable_libdevmapper}" != "xno"; then
 
24007
 
 
24008
        have_module=yes
 
24009
        saved_LIBS="$LIBS"
 
24010
 
 
24011
{ echo "$as_me:$LINENO: checking for sepol_bool_set in -lsepol" >&5
 
24012
echo $ECHO_N "checking for sepol_bool_set in -lsepol... $ECHO_C" >&6; }
 
24013
if test "${ac_cv_lib_sepol_sepol_bool_set+set}" = set; then
 
24014
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24015
else
 
24016
  ac_check_lib_save_LIBS=$LIBS
 
24017
LIBS="-lsepol  $LIBS"
 
24018
cat >conftest.$ac_ext <<_ACEOF
 
24019
/* confdefs.h.  */
 
24020
_ACEOF
 
24021
cat confdefs.h >>conftest.$ac_ext
 
24022
cat >>conftest.$ac_ext <<_ACEOF
 
24023
/* end confdefs.h.  */
 
24024
 
 
24025
/* Override any GCC internal prototype to avoid an error.
 
24026
   Use char because int might match the return type of a GCC
 
24027
   builtin and then its argument prototype would still apply.  */
 
24028
#ifdef __cplusplus
 
24029
extern "C"
 
24030
#endif
 
24031
char sepol_bool_set ();
 
24032
int
 
24033
main ()
 
24034
{
 
24035
return sepol_bool_set ();
 
24036
  ;
 
24037
  return 0;
 
24038
}
 
24039
_ACEOF
 
24040
rm -f conftest.$ac_objext conftest$ac_exeext
 
24041
if { (ac_try="$ac_link"
 
24042
case "(($ac_try" in
 
24043
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24044
  *) ac_try_echo=$ac_try;;
 
24045
esac
 
24046
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24047
  (eval "$ac_link") 2>conftest.er1
 
24048
  ac_status=$?
 
24049
  grep -v '^ *+' conftest.er1 >conftest.err
 
24050
  rm -f conftest.er1
 
24051
  cat conftest.err >&5
 
24052
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24053
  (exit $ac_status); } && {
 
24054
         test -z "$ac_c_werror_flag" ||
 
24055
         test ! -s conftest.err
 
24056
       } && test -s conftest$ac_exeext &&
 
24057
       $as_test_x conftest$ac_exeext; then
 
24058
  ac_cv_lib_sepol_sepol_bool_set=yes
 
24059
else
 
24060
  echo "$as_me: failed program was:" >&5
 
24061
sed 's/^/| /' conftest.$ac_ext >&5
 
24062
 
 
24063
        ac_cv_lib_sepol_sepol_bool_set=no
 
24064
fi
 
24065
 
 
24066
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
24067
      conftest$ac_exeext conftest.$ac_ext
 
24068
LIBS=$ac_check_lib_save_LIBS
 
24069
fi
 
24070
{ echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_bool_set" >&5
 
24071
echo "${ECHO_T}$ac_cv_lib_sepol_sepol_bool_set" >&6; }
 
24072
if test $ac_cv_lib_sepol_sepol_bool_set = yes; then
 
24073
  cat >>confdefs.h <<_ACEOF
 
24074
#define HAVE_LIBSEPOL 1
 
24075
_ACEOF
 
24076
 
 
24077
  LIBS="-lsepol $LIBS"
 
24078
 
 
24079
fi
 
24080
 
 
24081
 
 
24082
{ echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
 
24083
echo $ECHO_N "checking for is_selinux_enabled in -lselinux... $ECHO_C" >&6; }
 
24084
if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
 
24085
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24086
else
 
24087
  ac_check_lib_save_LIBS=$LIBS
 
24088
LIBS="-lselinux  $LIBS"
 
24089
cat >conftest.$ac_ext <<_ACEOF
 
24090
/* confdefs.h.  */
 
24091
_ACEOF
 
24092
cat confdefs.h >>conftest.$ac_ext
 
24093
cat >>conftest.$ac_ext <<_ACEOF
 
24094
/* end confdefs.h.  */
 
24095
 
 
24096
/* Override any GCC internal prototype to avoid an error.
 
24097
   Use char because int might match the return type of a GCC
 
24098
   builtin and then its argument prototype would still apply.  */
 
24099
#ifdef __cplusplus
 
24100
extern "C"
 
24101
#endif
 
24102
char is_selinux_enabled ();
 
24103
int
 
24104
main ()
 
24105
{
 
24106
return is_selinux_enabled ();
 
24107
  ;
 
24108
  return 0;
 
24109
}
 
24110
_ACEOF
 
24111
rm -f conftest.$ac_objext conftest$ac_exeext
 
24112
if { (ac_try="$ac_link"
 
24113
case "(($ac_try" in
 
24114
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24115
  *) ac_try_echo=$ac_try;;
 
24116
esac
 
24117
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24118
  (eval "$ac_link") 2>conftest.er1
 
24119
  ac_status=$?
 
24120
  grep -v '^ *+' conftest.er1 >conftest.err
 
24121
  rm -f conftest.er1
 
24122
  cat conftest.err >&5
 
24123
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24124
  (exit $ac_status); } && {
 
24125
         test -z "$ac_c_werror_flag" ||
 
24126
         test ! -s conftest.err
 
24127
       } && test -s conftest$ac_exeext &&
 
24128
       $as_test_x conftest$ac_exeext; then
 
24129
  ac_cv_lib_selinux_is_selinux_enabled=yes
 
24130
else
 
24131
  echo "$as_me: failed program was:" >&5
 
24132
sed 's/^/| /' conftest.$ac_ext >&5
 
24133
 
 
24134
        ac_cv_lib_selinux_is_selinux_enabled=no
 
24135
fi
 
24136
 
 
24137
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
24138
      conftest$ac_exeext conftest.$ac_ext
 
24139
LIBS=$ac_check_lib_save_LIBS
 
24140
fi
 
24141
{ echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
 
24142
echo "${ECHO_T}$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
 
24143
if test $ac_cv_lib_selinux_is_selinux_enabled = yes; then
 
24144
  cat >>confdefs.h <<_ACEOF
 
24145
#define HAVE_LIBSELINUX 1
 
24146
_ACEOF
 
24147
 
 
24148
  LIBS="-lselinux $LIBS"
 
24149
 
 
24150
fi
 
24151
 
 
24152
 
 
24153
{ echo "$as_me:$LINENO: checking for dm_task_set_name in -ldevmapper" >&5
 
24154
echo $ECHO_N "checking for dm_task_set_name in -ldevmapper... $ECHO_C" >&6; }
 
24155
if test "${ac_cv_lib_devmapper_dm_task_set_name+set}" = set; then
 
24156
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24157
else
 
24158
  ac_check_lib_save_LIBS=$LIBS
 
24159
LIBS="-ldevmapper  $LIBS"
 
24160
cat >conftest.$ac_ext <<_ACEOF
 
24161
/* confdefs.h.  */
 
24162
_ACEOF
 
24163
cat confdefs.h >>conftest.$ac_ext
 
24164
cat >>conftest.$ac_ext <<_ACEOF
 
24165
/* end confdefs.h.  */
 
24166
 
 
24167
/* Override any GCC internal prototype to avoid an error.
 
24168
   Use char because int might match the return type of a GCC
 
24169
   builtin and then its argument prototype would still apply.  */
 
24170
#ifdef __cplusplus
 
24171
extern "C"
 
24172
#endif
 
24173
char dm_task_set_name ();
 
24174
int
 
24175
main ()
 
24176
{
 
24177
return dm_task_set_name ();
 
24178
  ;
 
24179
  return 0;
 
24180
}
 
24181
_ACEOF
 
24182
rm -f conftest.$ac_objext conftest$ac_exeext
 
24183
if { (ac_try="$ac_link"
 
24184
case "(($ac_try" in
 
24185
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24186
  *) ac_try_echo=$ac_try;;
 
24187
esac
 
24188
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24189
  (eval "$ac_link") 2>conftest.er1
 
24190
  ac_status=$?
 
24191
  grep -v '^ *+' conftest.er1 >conftest.err
 
24192
  rm -f conftest.er1
 
24193
  cat conftest.err >&5
 
24194
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24195
  (exit $ac_status); } && {
 
24196
         test -z "$ac_c_werror_flag" ||
 
24197
         test ! -s conftest.err
 
24198
       } && test -s conftest$ac_exeext &&
 
24199
       $as_test_x conftest$ac_exeext; then
 
24200
  ac_cv_lib_devmapper_dm_task_set_name=yes
 
24201
else
 
24202
  echo "$as_me: failed program was:" >&5
 
24203
sed 's/^/| /' conftest.$ac_ext >&5
 
24204
 
 
24205
        ac_cv_lib_devmapper_dm_task_set_name=no
 
24206
fi
 
24207
 
 
24208
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
24209
      conftest$ac_exeext conftest.$ac_ext
 
24210
LIBS=$ac_check_lib_save_LIBS
 
24211
fi
 
24212
{ echo "$as_me:$LINENO: result: $ac_cv_lib_devmapper_dm_task_set_name" >&5
 
24213
echo "${ECHO_T}$ac_cv_lib_devmapper_dm_task_set_name" >&6; }
 
24214
if test $ac_cv_lib_devmapper_dm_task_set_name = yes; then
 
24215
  cat >>confdefs.h <<_ACEOF
 
24216
#define HAVE_LIBDEVMAPPER 1
 
24217
_ACEOF
 
24218
 
 
24219
  LIBS="-ldevmapper $LIBS"
 
24220
 
 
24221
else
 
24222
  unset have_module
 
24223
fi
 
24224
 
 
24225
        if test "${ac_cv_header_libdevmapper_h+set}" = set; then
 
24226
  { echo "$as_me:$LINENO: checking for libdevmapper.h" >&5
 
24227
echo $ECHO_N "checking for libdevmapper.h... $ECHO_C" >&6; }
 
24228
if test "${ac_cv_header_libdevmapper_h+set}" = set; then
 
24229
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24230
fi
 
24231
{ echo "$as_me:$LINENO: result: $ac_cv_header_libdevmapper_h" >&5
 
24232
echo "${ECHO_T}$ac_cv_header_libdevmapper_h" >&6; }
 
24233
else
 
24234
  # Is the header compilable?
 
24235
{ echo "$as_me:$LINENO: checking libdevmapper.h usability" >&5
 
24236
echo $ECHO_N "checking libdevmapper.h usability... $ECHO_C" >&6; }
 
24237
cat >conftest.$ac_ext <<_ACEOF
 
24238
/* confdefs.h.  */
 
24239
_ACEOF
 
24240
cat confdefs.h >>conftest.$ac_ext
 
24241
cat >>conftest.$ac_ext <<_ACEOF
 
24242
/* end confdefs.h.  */
 
24243
$ac_includes_default
 
24244
#include <libdevmapper.h>
 
24245
_ACEOF
 
24246
rm -f conftest.$ac_objext
 
24247
if { (ac_try="$ac_compile"
 
24248
case "(($ac_try" in
 
24249
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24250
  *) ac_try_echo=$ac_try;;
 
24251
esac
 
24252
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24253
  (eval "$ac_compile") 2>conftest.er1
 
24254
  ac_status=$?
 
24255
  grep -v '^ *+' conftest.er1 >conftest.err
 
24256
  rm -f conftest.er1
 
24257
  cat conftest.err >&5
 
24258
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24259
  (exit $ac_status); } && {
 
24260
         test -z "$ac_c_werror_flag" ||
 
24261
         test ! -s conftest.err
 
24262
       } && test -s conftest.$ac_objext; then
 
24263
  ac_header_compiler=yes
 
24264
else
 
24265
  echo "$as_me: failed program was:" >&5
 
24266
sed 's/^/| /' conftest.$ac_ext >&5
 
24267
 
 
24268
        ac_header_compiler=no
 
24269
fi
 
24270
 
 
24271
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
24272
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
24273
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
24274
 
 
24275
# Is the header present?
 
24276
{ echo "$as_me:$LINENO: checking libdevmapper.h presence" >&5
 
24277
echo $ECHO_N "checking libdevmapper.h presence... $ECHO_C" >&6; }
 
24278
cat >conftest.$ac_ext <<_ACEOF
 
24279
/* confdefs.h.  */
 
24280
_ACEOF
 
24281
cat confdefs.h >>conftest.$ac_ext
 
24282
cat >>conftest.$ac_ext <<_ACEOF
 
24283
/* end confdefs.h.  */
 
24284
#include <libdevmapper.h>
 
24285
_ACEOF
 
24286
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
24287
case "(($ac_try" in
 
24288
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
24289
  *) ac_try_echo=$ac_try;;
 
24290
esac
 
24291
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
24292
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
24293
  ac_status=$?
 
24294
  grep -v '^ *+' conftest.er1 >conftest.err
 
24295
  rm -f conftest.er1
 
24296
  cat conftest.err >&5
 
24297
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24298
  (exit $ac_status); } >/dev/null && {
 
24299
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
24300
         test ! -s conftest.err
 
24301
       }; then
 
24302
  ac_header_preproc=yes
 
24303
else
 
24304
  echo "$as_me: failed program was:" >&5
 
24305
sed 's/^/| /' conftest.$ac_ext >&5
 
24306
 
 
24307
  ac_header_preproc=no
 
24308
fi
 
24309
 
 
24310
rm -f conftest.err conftest.$ac_ext
 
24311
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
24312
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
24313
 
 
24314
# So?  What about this header?
 
24315
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
24316
  yes:no: )
 
24317
    { echo "$as_me:$LINENO: WARNING: libdevmapper.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
24318
echo "$as_me: WARNING: libdevmapper.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
24319
    { echo "$as_me:$LINENO: WARNING: libdevmapper.h: proceeding with the compiler's result" >&5
 
24320
echo "$as_me: WARNING: libdevmapper.h: proceeding with the compiler's result" >&2;}
 
24321
    ac_header_preproc=yes
 
24322
    ;;
 
24323
  no:yes:* )
 
24324
    { echo "$as_me:$LINENO: WARNING: libdevmapper.h: present but cannot be compiled" >&5
 
24325
echo "$as_me: WARNING: libdevmapper.h: present but cannot be compiled" >&2;}
 
24326
    { echo "$as_me:$LINENO: WARNING: libdevmapper.h:     check for missing prerequisite headers?" >&5
 
24327
echo "$as_me: WARNING: libdevmapper.h:     check for missing prerequisite headers?" >&2;}
 
24328
    { echo "$as_me:$LINENO: WARNING: libdevmapper.h: see the Autoconf documentation" >&5
 
24329
echo "$as_me: WARNING: libdevmapper.h: see the Autoconf documentation" >&2;}
 
24330
    { echo "$as_me:$LINENO: WARNING: libdevmapper.h:     section \"Present But Cannot Be Compiled\"" >&5
 
24331
echo "$as_me: WARNING: libdevmapper.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
24332
    { echo "$as_me:$LINENO: WARNING: libdevmapper.h: proceeding with the preprocessor's result" >&5
 
24333
echo "$as_me: WARNING: libdevmapper.h: proceeding with the preprocessor's result" >&2;}
 
24334
    { echo "$as_me:$LINENO: WARNING: libdevmapper.h: in the future, the compiler will take precedence" >&5
 
24335
echo "$as_me: WARNING: libdevmapper.h: in the future, the compiler will take precedence" >&2;}
 
24336
 
 
24337
    ;;
 
24338
esac
 
24339
{ echo "$as_me:$LINENO: checking for libdevmapper.h" >&5
 
24340
echo $ECHO_N "checking for libdevmapper.h... $ECHO_C" >&6; }
 
24341
if test "${ac_cv_header_libdevmapper_h+set}" = set; then
 
24342
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24343
else
 
24344
  ac_cv_header_libdevmapper_h=$ac_header_preproc
 
24345
fi
 
24346
{ echo "$as_me:$LINENO: result: $ac_cv_header_libdevmapper_h" >&5
 
24347
echo "${ECHO_T}$ac_cv_header_libdevmapper_h" >&6; }
 
24348
 
 
24349
fi
 
24350
if test $ac_cv_header_libdevmapper_h = yes; then
 
24351
  :
 
24352
else
 
24353
  unset have_module
 
24354
fi
 
24355
 
 
24356
 
 
24357
        LIBDEVMAPPER_LIBS="$LIBS"
 
24358
        LIBS="$saved_LIBS"
 
24359
 
 
24360
 
 
24361
 
 
24362
                { echo "$as_me:$LINENO: checking whether to build libdevmapper module" >&5
 
24363
echo $ECHO_N "checking whether to build libdevmapper module... $ECHO_C" >&6; }
 
24364
                if test -n "${have_module+set}"; then
 
24365
                        if test "x${enable_libdevmapper}" = "xauto"; then
 
24366
                                if test "x${enable_plugins}" != "xno"; then
 
24367
                                        { echo "$as_me:$LINENO: result: yes, as plugin" >&5
 
24368
echo "${ECHO_T}yes, as plugin" >&6; }
 
24369
                                        build_static=no
 
24370
                                        build_shared=yes
 
24371
                                else
 
24372
                                        { echo "$as_me:$LINENO: result: yes" >&5
 
24373
echo "${ECHO_T}yes" >&6; }
 
24374
                                        build_static=yes
 
24375
                                        build_shared=no
 
24376
                                fi
 
24377
                        elif test "x${enable_libdevmapper}" = "xshared"; then
 
24378
                                if test "x${enable_plugins}" != "xno"; then
 
24379
                                        { echo "$as_me:$LINENO: result: yes, as plugin" >&5
 
24380
echo "${ECHO_T}yes, as plugin" >&6; }
 
24381
                                        build_static=no
 
24382
                                        build_shared=yes
 
24383
                                else
 
24384
                                        { echo "$as_me:$LINENO: result: no" >&5
 
24385
echo "${ECHO_T}no" >&6; }
 
24386
                                        { { echo "$as_me:$LINENO: error: Can't build libdevmapper module, plugins are disabled" >&5
 
24387
echo "$as_me: error: Can't build libdevmapper module, plugins are disabled" >&2;}
 
24388
   { (exit 1); exit 1; }; }
 
24389
                                fi
 
24390
                        else
 
24391
                                { echo "$as_me:$LINENO: result: yes" >&5
 
24392
echo "${ECHO_T}yes" >&6; }
 
24393
                                build_static=yes
 
24394
                                build_shared=no
 
24395
                        fi
 
24396
                elif test "x${enable_libdevmapper}" != "xauto"; then
 
24397
                        { echo "$as_me:$LINENO: result: no" >&5
 
24398
echo "${ECHO_T}no" >&6; }
 
24399
                        { { echo "$as_me:$LINENO: error: Unable to build libdevmapper plugin, see messages above" >&5
 
24400
echo "$as_me: error: Unable to build libdevmapper plugin, see messages above" >&2;}
 
24401
   { (exit 1); exit 1; }; }
 
24402
                else
 
24403
                        { echo "$as_me:$LINENO: result: no" >&5
 
24404
echo "${ECHO_T}no" >&6; }
 
24405
                        build_static=no
 
24406
                        build_shared=no
 
24407
                fi
 
24408
        else
 
24409
                { echo "$as_me:$LINENO: checking whether to build libdevmapper module" >&5
 
24410
echo $ECHO_N "checking whether to build libdevmapper module... $ECHO_C" >&6; }
 
24411
                { echo "$as_me:$LINENO: result: no" >&5
 
24412
echo "${ECHO_T}no" >&6; }
 
24413
                build_static=no
 
24414
                build_shared=no
 
24415
        fi
 
24416
 
 
24417
 
 
24418
 
 
24419
if test x$build_static = xyes; then
 
24420
  BUILD_LIBDEVMAPPER_TRUE=
 
24421
  BUILD_LIBDEVMAPPER_FALSE='#'
 
24422
else
 
24423
  BUILD_LIBDEVMAPPER_TRUE='#'
 
24424
  BUILD_LIBDEVMAPPER_FALSE=
 
24425
fi
 
24426
 
 
24427
 
 
24428
 
 
24429
if test x$build_shared = xyes; then
 
24430
  SHARED_LIBDEVMAPPER_TRUE=
 
24431
  SHARED_LIBDEVMAPPER_FALSE='#'
 
24432
else
 
24433
  SHARED_LIBDEVMAPPER_TRUE='#'
 
24434
  SHARED_LIBDEVMAPPER_FALSE=
 
24435
fi
 
24436
 
 
24437
 
 
24438
 
 
24439
 
 
24440
 
 
24441
if test x$enable_static = xyes; then
 
24442
  STATIC_CRYPTSETUP_TRUE=
 
24443
  STATIC_CRYPTSETUP_FALSE='#'
 
24444
else
 
24445
  STATIC_CRYPTSETUP_TRUE='#'
 
24446
  STATIC_CRYPTSETUP_FALSE=
 
24447
fi
 
24448
 
 
24449
 
 
24450
 
 
24451
if test x$enable_static = xno; then
 
24452
  DYNAMIC_CRYPTSETUP_TRUE=
 
24453
  DYNAMIC_CRYPTSETUP_FALSE='#'
 
24454
else
 
24455
  DYNAMIC_CRYPTSETUP_TRUE='#'
 
24456
  DYNAMIC_CRYPTSETUP_FALSE=
 
24457
fi
 
24458
 
 
24459
 
 
24460
 
 
24461
ac_config_files="$ac_config_files m4/Makefile Makefile lib/Makefile src/Makefile po/Makefile.in luks/Makefile man/Makefile"
 
24462
 
 
24463
cat >confcache <<\_ACEOF
 
24464
# This file is a shell script that caches the results of configure
 
24465
# tests run on this system so they can be shared between configure
 
24466
# scripts and configure runs, see configure's option --config-cache.
 
24467
# It is not useful on other systems.  If it contains results you don't
 
24468
# want to keep, you may remove or edit it.
 
24469
#
 
24470
# config.status only pays attention to the cache file if you give it
 
24471
# the --recheck option to rerun configure.
 
24472
#
 
24473
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
24474
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
24475
# following values.
 
24476
 
 
24477
_ACEOF
 
24478
 
 
24479
# The following way of writing the cache mishandles newlines in values,
 
24480
# but we know of no workaround that is simple, portable, and efficient.
 
24481
# So, we kill variables containing newlines.
 
24482
# Ultrix sh set writes to stderr and can't be redirected directly,
 
24483
# and sets the high bit in the cache file unless we assign to the vars.
 
24484
(
 
24485
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
24486
    eval ac_val=\$$ac_var
 
24487
    case $ac_val in #(
 
24488
    *${as_nl}*)
 
24489
      case $ac_var in #(
 
24490
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 
24491
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
24492
      esac
 
24493
      case $ac_var in #(
 
24494
      _ | IFS | as_nl) ;; #(
 
24495
      *) $as_unset $ac_var ;;
 
24496
      esac ;;
 
24497
    esac
 
24498
  done
 
24499
 
 
24500
  (set) 2>&1 |
 
24501
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
24502
    *${as_nl}ac_space=\ *)
 
24503
      # `set' does not quote correctly, so add quotes (double-quote
 
24504
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
24505
      sed -n \
 
24506
        "s/'/'\\\\''/g;
 
24507
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
24508
      ;; #(
 
24509
    *)
 
24510
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
24511
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
24512
      ;;
 
24513
    esac |
 
24514
    sort
 
24515
) |
 
24516
  sed '
 
24517
     /^ac_cv_env_/b end
 
24518
     t clear
 
24519
     :clear
 
24520
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
24521
     t end
 
24522
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
24523
     :end' >>confcache
 
24524
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
24525
  if test -w "$cache_file"; then
 
24526
    test "x$cache_file" != "x/dev/null" &&
 
24527
      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
 
24528
echo "$as_me: updating cache $cache_file" >&6;}
 
24529
    cat confcache >$cache_file
 
24530
  else
 
24531
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
 
24532
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
24533
  fi
 
24534
fi
 
24535
rm -f confcache
 
24536
 
 
24537
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
24538
# Let make expand exec_prefix.
 
24539
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
24540
 
 
24541
DEFS=-DHAVE_CONFIG_H
 
24542
 
 
24543
ac_libobjs=
 
24544
ac_ltlibobjs=
 
24545
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
24546
  # 1. Remove the extension, and $U if already installed.
 
24547
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
24548
  ac_i=`echo "$ac_i" | sed "$ac_script"`
 
24549
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
24550
  #    will be set to the directory where LIBOBJS objects are built.
 
24551
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
24552
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
 
24553
done
 
24554
LIBOBJS=$ac_libobjs
 
24555
 
 
24556
LTLIBOBJS=$ac_ltlibobjs
 
24557
 
 
24558
 
 
24559
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
24560
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
24561
Usually this means the macro was only invoked conditionally." >&5
 
24562
echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
24563
Usually this means the macro was only invoked conditionally." >&2;}
 
24564
   { (exit 1); exit 1; }; }
 
24565
fi
 
24566
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
24567
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
24568
Usually this means the macro was only invoked conditionally." >&5
 
24569
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
24570
Usually this means the macro was only invoked conditionally." >&2;}
 
24571
   { (exit 1); exit 1; }; }
 
24572
fi
 
24573
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
24574
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
24575
Usually this means the macro was only invoked conditionally." >&5
 
24576
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
24577
Usually this means the macro was only invoked conditionally." >&2;}
 
24578
   { (exit 1); exit 1; }; }
 
24579
fi
 
24580
if test -z "${STATIC_LIBRARY_TRUE}" && test -z "${STATIC_LIBRARY_FALSE}"; then
 
24581
  { { echo "$as_me:$LINENO: error: conditional \"STATIC_LIBRARY\" was never defined.
 
24582
Usually this means the macro was only invoked conditionally." >&5
 
24583
echo "$as_me: error: conditional \"STATIC_LIBRARY\" was never defined.
 
24584
Usually this means the macro was only invoked conditionally." >&2;}
 
24585
   { (exit 1); exit 1; }; }
 
24586
fi
 
24587
if test -z "${BUILD_LIBGCRYPT_TRUE}" && test -z "${BUILD_LIBGCRYPT_FALSE}"; then
 
24588
  { { echo "$as_me:$LINENO: error: conditional \"BUILD_LIBGCRYPT\" was never defined.
 
24589
Usually this means the macro was only invoked conditionally." >&5
 
24590
echo "$as_me: error: conditional \"BUILD_LIBGCRYPT\" was never defined.
 
24591
Usually this means the macro was only invoked conditionally." >&2;}
 
24592
   { (exit 1); exit 1; }; }
 
24593
fi
 
24594
if test -z "${SHARED_LIBGCRYPT_TRUE}" && test -z "${SHARED_LIBGCRYPT_FALSE}"; then
 
24595
  { { echo "$as_me:$LINENO: error: conditional \"SHARED_LIBGCRYPT\" was never defined.
 
24596
Usually this means the macro was only invoked conditionally." >&5
 
24597
echo "$as_me: error: conditional \"SHARED_LIBGCRYPT\" was never defined.
 
24598
Usually this means the macro was only invoked conditionally." >&2;}
 
24599
   { (exit 1); exit 1; }; }
 
24600
fi
 
24601
if test -z "${BUILD_LIBDEVMAPPER_TRUE}" && test -z "${BUILD_LIBDEVMAPPER_FALSE}"; then
 
24602
  { { echo "$as_me:$LINENO: error: conditional \"BUILD_LIBDEVMAPPER\" was never defined.
 
24603
Usually this means the macro was only invoked conditionally." >&5
 
24604
echo "$as_me: error: conditional \"BUILD_LIBDEVMAPPER\" was never defined.
 
24605
Usually this means the macro was only invoked conditionally." >&2;}
 
24606
   { (exit 1); exit 1; }; }
 
24607
fi
 
24608
if test -z "${SHARED_LIBDEVMAPPER_TRUE}" && test -z "${SHARED_LIBDEVMAPPER_FALSE}"; then
 
24609
  { { echo "$as_me:$LINENO: error: conditional \"SHARED_LIBDEVMAPPER\" was never defined.
 
24610
Usually this means the macro was only invoked conditionally." >&5
 
24611
echo "$as_me: error: conditional \"SHARED_LIBDEVMAPPER\" was never defined.
 
24612
Usually this means the macro was only invoked conditionally." >&2;}
 
24613
   { (exit 1); exit 1; }; }
 
24614
fi
 
24615
if test -z "${STATIC_CRYPTSETUP_TRUE}" && test -z "${STATIC_CRYPTSETUP_FALSE}"; then
 
24616
  { { echo "$as_me:$LINENO: error: conditional \"STATIC_CRYPTSETUP\" was never defined.
 
24617
Usually this means the macro was only invoked conditionally." >&5
 
24618
echo "$as_me: error: conditional \"STATIC_CRYPTSETUP\" was never defined.
 
24619
Usually this means the macro was only invoked conditionally." >&2;}
 
24620
   { (exit 1); exit 1; }; }
 
24621
fi
 
24622
if test -z "${DYNAMIC_CRYPTSETUP_TRUE}" && test -z "${DYNAMIC_CRYPTSETUP_FALSE}"; then
 
24623
  { { echo "$as_me:$LINENO: error: conditional \"DYNAMIC_CRYPTSETUP\" was never defined.
 
24624
Usually this means the macro was only invoked conditionally." >&5
 
24625
echo "$as_me: error: conditional \"DYNAMIC_CRYPTSETUP\" was never defined.
 
24626
Usually this means the macro was only invoked conditionally." >&2;}
 
24627
   { (exit 1); exit 1; }; }
 
24628
fi
 
24629
 
 
24630
: ${CONFIG_STATUS=./config.status}
 
24631
ac_clean_files_save=$ac_clean_files
 
24632
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
24633
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
24634
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
24635
cat >$CONFIG_STATUS <<_ACEOF
 
24636
#! $SHELL
 
24637
# Generated by $as_me.
 
24638
# Run this file to recreate the current configuration.
 
24639
# Compiler output produced by configure, useful for debugging
 
24640
# configure, is in config.log if it exists.
 
24641
 
 
24642
debug=false
 
24643
ac_cs_recheck=false
 
24644
ac_cs_silent=false
 
24645
SHELL=\${CONFIG_SHELL-$SHELL}
 
24646
_ACEOF
 
24647
 
 
24648
cat >>$CONFIG_STATUS <<\_ACEOF
 
24649
## --------------------- ##
 
24650
## M4sh Initialization.  ##
 
24651
## --------------------- ##
 
24652
 
 
24653
# Be more Bourne compatible
 
24654
DUALCASE=1; export DUALCASE # for MKS sh
 
24655
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
24656
  emulate sh
 
24657
  NULLCMD=:
 
24658
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
24659
  # is contrary to our usage.  Disable this feature.
 
24660
  alias -g '${1+"$@"}'='"$@"'
 
24661
  setopt NO_GLOB_SUBST
 
24662
else
 
24663
  case `(set -o) 2>/dev/null` in
 
24664
  *posix*) set -o posix ;;
 
24665
esac
 
24666
 
 
24667
fi
 
24668
 
 
24669
 
 
24670
 
 
24671
 
 
24672
# PATH needs CR
 
24673
# Avoid depending upon Character Ranges.
 
24674
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
24675
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
24676
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
24677
as_cr_digits='0123456789'
 
24678
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
24679
 
 
24680
# The user is always right.
 
24681
if test "${PATH_SEPARATOR+set}" != set; then
 
24682
  echo "#! /bin/sh" >conf$$.sh
 
24683
  echo  "exit 0"   >>conf$$.sh
 
24684
  chmod +x conf$$.sh
 
24685
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
24686
    PATH_SEPARATOR=';'
 
24687
  else
 
24688
    PATH_SEPARATOR=:
 
24689
  fi
 
24690
  rm -f conf$$.sh
 
24691
fi
 
24692
 
 
24693
# Support unset when possible.
 
24694
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
24695
  as_unset=unset
 
24696
else
 
24697
  as_unset=false
 
24698
fi
 
24699
 
 
24700
 
 
24701
# IFS
 
24702
# We need space, tab and new line, in precisely that order.  Quoting is
 
24703
# there to prevent editors from complaining about space-tab.
 
24704
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
24705
# splitting by setting IFS to empty value.)
 
24706
as_nl='
 
24707
'
 
24708
IFS=" ""        $as_nl"
 
24709
 
 
24710
# Find who we are.  Look in the path if we contain no directory separator.
 
24711
case $0 in
 
24712
  *[\\/]* ) as_myself=$0 ;;
 
24713
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
24714
for as_dir in $PATH
 
24715
do
 
24716
  IFS=$as_save_IFS
 
24717
  test -z "$as_dir" && as_dir=.
 
24718
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
24719
done
 
24720
IFS=$as_save_IFS
 
24721
 
 
24722
     ;;
 
24723
esac
 
24724
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
24725
# in which case we are not to be found in the path.
 
24726
if test "x$as_myself" = x; then
 
24727
  as_myself=$0
 
24728
fi
 
24729
if test ! -f "$as_myself"; then
 
24730
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
24731
  { (exit 1); exit 1; }
 
24732
fi
 
24733
 
 
24734
# Work around bugs in pre-3.0 UWIN ksh.
 
24735
for as_var in ENV MAIL MAILPATH
 
24736
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
24737
done
 
24738
PS1='$ '
 
24739
PS2='> '
 
24740
PS4='+ '
 
24741
 
 
24742
# NLS nuisances.
 
24743
for as_var in \
 
24744
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
24745
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
24746
  LC_TELEPHONE LC_TIME
 
24747
do
 
24748
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
24749
    eval $as_var=C; export $as_var
 
24750
  else
 
24751
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
24752
  fi
 
24753
done
 
24754
 
 
24755
# Required to use basename.
 
24756
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
24757
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
24758
  as_expr=expr
 
24759
else
 
24760
  as_expr=false
 
24761
fi
 
24762
 
 
24763
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
24764
  as_basename=basename
 
24765
else
 
24766
  as_basename=false
 
24767
fi
 
24768
 
 
24769
 
 
24770
# Name of the executable.
 
24771
as_me=`$as_basename -- "$0" ||
 
24772
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
24773
         X"$0" : 'X\(//\)$' \| \
 
24774
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
24775
echo X/"$0" |
 
24776
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
24777
            s//\1/
 
24778
            q
 
24779
          }
 
24780
          /^X\/\(\/\/\)$/{
 
24781
            s//\1/
 
24782
            q
 
24783
          }
 
24784
          /^X\/\(\/\).*/{
 
24785
            s//\1/
 
24786
            q
 
24787
          }
 
24788
          s/.*/./; q'`
 
24789
 
 
24790
# CDPATH.
 
24791
$as_unset CDPATH
 
24792
 
 
24793
 
 
24794
 
 
24795
  as_lineno_1=$LINENO
 
24796
  as_lineno_2=$LINENO
 
24797
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
24798
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
24799
 
 
24800
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
24801
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
24802
  # line-number line after each line using $LINENO; the second 'sed'
 
24803
  # does the real work.  The second script uses 'N' to pair each
 
24804
  # line-number line with the line containing $LINENO, and appends
 
24805
  # trailing '-' during substitution so that $LINENO is not a special
 
24806
  # case at line end.
 
24807
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
24808
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
24809
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
24810
  sed -n '
 
24811
    p
 
24812
    /[$]LINENO/=
 
24813
  ' <$as_myself |
 
24814
    sed '
 
24815
      s/[$]LINENO.*/&-/
 
24816
      t lineno
 
24817
      b
 
24818
      :lineno
 
24819
      N
 
24820
      :loop
 
24821
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
24822
      t loop
 
24823
      s/-\n.*//
 
24824
    ' >$as_me.lineno &&
 
24825
  chmod +x "$as_me.lineno" ||
 
24826
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
24827
   { (exit 1); exit 1; }; }
 
24828
 
 
24829
  # Don't try to exec as it changes $[0], causing all sort of problems
 
24830
  # (the dirname of $[0] is not the place where we might find the
 
24831
  # original and so on.  Autoconf is especially sensitive to this).
 
24832
  . "./$as_me.lineno"
 
24833
  # Exit status is that of the last command.
 
24834
  exit
 
24835
}
 
24836
 
 
24837
 
 
24838
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
24839
  as_dirname=dirname
 
24840
else
 
24841
  as_dirname=false
 
24842
fi
 
24843
 
 
24844
ECHO_C= ECHO_N= ECHO_T=
 
24845
case `echo -n x` in
 
24846
-n*)
 
24847
  case `echo 'x\c'` in
 
24848
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
24849
  *)   ECHO_C='\c';;
 
24850
  esac;;
 
24851
*)
 
24852
  ECHO_N='-n';;
 
24853
esac
 
24854
 
 
24855
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
24856
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
24857
  as_expr=expr
 
24858
else
 
24859
  as_expr=false
 
24860
fi
 
24861
 
 
24862
rm -f conf$$ conf$$.exe conf$$.file
 
24863
if test -d conf$$.dir; then
 
24864
  rm -f conf$$.dir/conf$$.file
 
24865
else
 
24866
  rm -f conf$$.dir
 
24867
  mkdir conf$$.dir
 
24868
fi
 
24869
echo >conf$$.file
 
24870
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
24871
  as_ln_s='ln -s'
 
24872
  # ... but there are two gotchas:
 
24873
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
24874
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
24875
  # In both cases, we have to default to `cp -p'.
 
24876
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
24877
    as_ln_s='cp -p'
 
24878
elif ln conf$$.file conf$$ 2>/dev/null; then
 
24879
  as_ln_s=ln
 
24880
else
 
24881
  as_ln_s='cp -p'
 
24882
fi
 
24883
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
24884
rmdir conf$$.dir 2>/dev/null
 
24885
 
 
24886
if mkdir -p . 2>/dev/null; then
 
24887
  as_mkdir_p=:
 
24888
else
 
24889
  test -d ./-p && rmdir ./-p
 
24890
  as_mkdir_p=false
 
24891
fi
 
24892
 
 
24893
if test -x / >/dev/null 2>&1; then
 
24894
  as_test_x='test -x'
 
24895
else
 
24896
  if ls -dL / >/dev/null 2>&1; then
 
24897
    as_ls_L_option=L
 
24898
  else
 
24899
    as_ls_L_option=
 
24900
  fi
 
24901
  as_test_x='
 
24902
    eval sh -c '\''
 
24903
      if test -d "$1"; then
 
24904
        test -d "$1/.";
 
24905
      else
 
24906
        case $1 in
 
24907
        -*)set "./$1";;
 
24908
        esac;
 
24909
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
24910
        ???[sx]*):;;*)false;;esac;fi
 
24911
    '\'' sh
 
24912
  '
 
24913
fi
 
24914
as_executable_p=$as_test_x
 
24915
 
 
24916
# Sed expression to map a string onto a valid CPP name.
 
24917
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
24918
 
 
24919
# Sed expression to map a string onto a valid variable name.
 
24920
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
24921
 
 
24922
 
 
24923
exec 6>&1
 
24924
 
 
24925
# Save the log message, to keep $[0] and so on meaningful, and to
 
24926
# report actual input values of CONFIG_FILES etc. instead of their
 
24927
# values after options handling.
 
24928
ac_log="
 
24929
This file was extended by cryptsetup $as_me 1.0.6, which was
 
24930
generated by GNU Autoconf 2.61.  Invocation command line was
 
24931
 
 
24932
  CONFIG_FILES    = $CONFIG_FILES
 
24933
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
24934
  CONFIG_LINKS    = $CONFIG_LINKS
 
24935
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
24936
  $ $0 $@
 
24937
 
 
24938
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
24939
"
 
24940
 
 
24941
_ACEOF
 
24942
 
 
24943
cat >>$CONFIG_STATUS <<_ACEOF
 
24944
# Files that config.status was made for.
 
24945
config_files="$ac_config_files"
 
24946
config_headers="$ac_config_headers"
 
24947
config_commands="$ac_config_commands"
 
24948
 
 
24949
_ACEOF
 
24950
 
 
24951
cat >>$CONFIG_STATUS <<\_ACEOF
 
24952
ac_cs_usage="\
 
24953
\`$as_me' instantiates files from templates according to the
 
24954
current configuration.
 
24955
 
 
24956
Usage: $0 [OPTIONS] [FILE]...
 
24957
 
 
24958
  -h, --help       print this help, then exit
 
24959
  -V, --version    print version number and configuration settings, then exit
 
24960
  -q, --quiet      do not print progress messages
 
24961
  -d, --debug      don't remove temporary files
 
24962
      --recheck    update $as_me by reconfiguring in the same conditions
 
24963
  --file=FILE[:TEMPLATE]
 
24964
                   instantiate the configuration file FILE
 
24965
  --header=FILE[:TEMPLATE]
 
24966
                   instantiate the configuration header FILE
 
24967
 
 
24968
Configuration files:
 
24969
$config_files
 
24970
 
 
24971
Configuration headers:
 
24972
$config_headers
 
24973
 
 
24974
Configuration commands:
 
24975
$config_commands
 
24976
 
 
24977
Report bugs to <bug-autoconf@gnu.org>."
 
24978
 
 
24979
_ACEOF
 
24980
cat >>$CONFIG_STATUS <<_ACEOF
 
24981
ac_cs_version="\\
 
24982
cryptsetup config.status 1.0.6
 
24983
configured by $0, generated by GNU Autoconf 2.61,
 
24984
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
 
24985
 
 
24986
Copyright (C) 2006 Free Software Foundation, Inc.
 
24987
This config.status script is free software; the Free Software Foundation
 
24988
gives unlimited permission to copy, distribute and modify it."
 
24989
 
 
24990
ac_pwd='$ac_pwd'
 
24991
srcdir='$srcdir'
 
24992
INSTALL='$INSTALL'
 
24993
_ACEOF
 
24994
 
 
24995
cat >>$CONFIG_STATUS <<\_ACEOF
 
24996
# If no file are specified by the user, then we need to provide default
 
24997
# value.  By we need to know if files were specified by the user.
 
24998
ac_need_defaults=:
 
24999
while test $# != 0
 
25000
do
 
25001
  case $1 in
 
25002
  --*=*)
 
25003
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
25004
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
25005
    ac_shift=:
 
25006
    ;;
 
25007
  *)
 
25008
    ac_option=$1
 
25009
    ac_optarg=$2
 
25010
    ac_shift=shift
 
25011
    ;;
 
25012
  esac
 
25013
 
 
25014
  case $ac_option in
 
25015
  # Handling of the options.
 
25016
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
25017
    ac_cs_recheck=: ;;
 
25018
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
25019
    echo "$ac_cs_version"; exit ;;
 
25020
  --debug | --debu | --deb | --de | --d | -d )
 
25021
    debug=: ;;
 
25022
  --file | --fil | --fi | --f )
 
25023
    $ac_shift
 
25024
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
25025
    ac_need_defaults=false;;
 
25026
  --header | --heade | --head | --hea )
 
25027
    $ac_shift
 
25028
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
25029
    ac_need_defaults=false;;
 
25030
  --he | --h)
 
25031
    # Conflict between --help and --header
 
25032
    { echo "$as_me: error: ambiguous option: $1
 
25033
Try \`$0 --help' for more information." >&2
 
25034
   { (exit 1); exit 1; }; };;
 
25035
  --help | --hel | -h )
 
25036
    echo "$ac_cs_usage"; exit ;;
 
25037
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
25038
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
25039
    ac_cs_silent=: ;;
 
25040
 
 
25041
  # This is an error.
 
25042
  -*) { echo "$as_me: error: unrecognized option: $1
 
25043
Try \`$0 --help' for more information." >&2
 
25044
   { (exit 1); exit 1; }; } ;;
 
25045
 
 
25046
  *) ac_config_targets="$ac_config_targets $1"
 
25047
     ac_need_defaults=false ;;
 
25048
 
 
25049
  esac
 
25050
  shift
 
25051
done
 
25052
 
 
25053
ac_configure_extra_args=
 
25054
 
 
25055
if $ac_cs_silent; then
 
25056
  exec 6>/dev/null
 
25057
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
25058
fi
 
25059
 
 
25060
_ACEOF
 
25061
cat >>$CONFIG_STATUS <<_ACEOF
 
25062
if \$ac_cs_recheck; then
 
25063
  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
25064
  CONFIG_SHELL=$SHELL
 
25065
  export CONFIG_SHELL
 
25066
  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
25067
fi
 
25068
 
 
25069
_ACEOF
 
25070
cat >>$CONFIG_STATUS <<\_ACEOF
 
25071
exec 5>>config.log
 
25072
{
 
25073
  echo
 
25074
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
25075
## Running $as_me. ##
 
25076
_ASBOX
 
25077
  echo "$ac_log"
 
25078
} >&5
 
25079
 
 
25080
_ACEOF
 
25081
cat >>$CONFIG_STATUS <<_ACEOF
 
25082
#
 
25083
# INIT-COMMANDS
 
25084
#
 
25085
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
25086
# Capture the value of obsolete ALL_LINGUAS because we need it to compute
 
25087
    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
 
25088
    # from automake < 1.5.
 
25089
    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
 
25090
    # Capture the value of LINGUAS because we need it to compute CATALOGS.
 
25091
    LINGUAS="${LINGUAS-%UNSET%}"
 
25092
 
 
25093
 
 
25094
_ACEOF
 
25095
 
 
25096
cat >>$CONFIG_STATUS <<\_ACEOF
 
25097
 
 
25098
# Handling of arguments.
 
25099
for ac_config_target in $ac_config_targets
 
25100
do
 
25101
  case $ac_config_target in
 
25102
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
 
25103
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
25104
    "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
 
25105
    "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
 
25106
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
25107
    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
 
25108
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 
25109
    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
 
25110
    "luks/Makefile") CONFIG_FILES="$CONFIG_FILES luks/Makefile" ;;
 
25111
    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
 
25112
 
 
25113
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
25114
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
25115
   { (exit 1); exit 1; }; };;
 
25116
  esac
 
25117
done
 
25118
 
 
25119
 
 
25120
# If the user did not use the arguments to specify the items to instantiate,
 
25121
# then the envvar interface is used.  Set only those that are not.
 
25122
# We use the long form for the default assignment because of an extremely
 
25123
# bizarre bug on SunOS 4.1.3.
 
25124
if $ac_need_defaults; then
 
25125
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
25126
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
25127
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
25128
fi
 
25129
 
 
25130
# Have a temporary directory for convenience.  Make it in the build tree
 
25131
# simply because there is no reason against having it here, and in addition,
 
25132
# creating and moving files from /tmp can sometimes cause problems.
 
25133
# Hook for its removal unless debugging.
 
25134
# Note that there is a small window in which the directory will not be cleaned:
 
25135
# after its creation but before its name has been assigned to `$tmp'.
 
25136
$debug ||
 
25137
{
 
25138
  tmp=
 
25139
  trap 'exit_status=$?
 
25140
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 
25141
' 0
 
25142
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
25143
}
 
25144
# Create a (secure) tmp directory for tmp files.
 
25145
 
 
25146
{
 
25147
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
25148
  test -n "$tmp" && test -d "$tmp"
 
25149
}  ||
 
25150
{
 
25151
  tmp=./conf$$-$RANDOM
 
25152
  (umask 077 && mkdir "$tmp")
 
25153
} ||
 
25154
{
 
25155
   echo "$me: cannot create a temporary directory in ." >&2
 
25156
   { (exit 1); exit 1; }
 
25157
}
 
25158
 
 
25159
#
 
25160
# Set up the sed scripts for CONFIG_FILES section.
 
25161
#
 
25162
 
 
25163
# No need to generate the scripts if there are no CONFIG_FILES.
 
25164
# This happens for instance when ./config.status config.h
 
25165
if test -n "$CONFIG_FILES"; then
 
25166
 
 
25167
_ACEOF
 
25168
 
 
25169
 
 
25170
 
 
25171
ac_delim='%!_!# '
 
25172
for ac_last_try in false false false false false :; do
 
25173
  cat >conf$$subs.sed <<_ACEOF
 
25174
SHELL!$SHELL$ac_delim
 
25175
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
 
25176
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
 
25177
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
 
25178
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
 
25179
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
 
25180
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
 
25181
exec_prefix!$exec_prefix$ac_delim
 
25182
prefix!$prefix$ac_delim
 
25183
program_transform_name!$program_transform_name$ac_delim
 
25184
bindir!$bindir$ac_delim
 
25185
sbindir!$sbindir$ac_delim
 
25186
libexecdir!$libexecdir$ac_delim
 
25187
datarootdir!$datarootdir$ac_delim
 
25188
datadir!$datadir$ac_delim
 
25189
sysconfdir!$sysconfdir$ac_delim
 
25190
sharedstatedir!$sharedstatedir$ac_delim
 
25191
localstatedir!$localstatedir$ac_delim
 
25192
includedir!$includedir$ac_delim
 
25193
oldincludedir!$oldincludedir$ac_delim
 
25194
docdir!$docdir$ac_delim
 
25195
infodir!$infodir$ac_delim
 
25196
htmldir!$htmldir$ac_delim
 
25197
dvidir!$dvidir$ac_delim
 
25198
pdfdir!$pdfdir$ac_delim
 
25199
psdir!$psdir$ac_delim
 
25200
libdir!$libdir$ac_delim
 
25201
localedir!$localedir$ac_delim
 
25202
mandir!$mandir$ac_delim
 
25203
DEFS!$DEFS$ac_delim
 
25204
ECHO_C!$ECHO_C$ac_delim
 
25205
ECHO_N!$ECHO_N$ac_delim
 
25206
ECHO_T!$ECHO_T$ac_delim
 
25207
LIBS!$LIBS$ac_delim
 
25208
build_alias!$build_alias$ac_delim
 
25209
host_alias!$host_alias$ac_delim
 
25210
target_alias!$target_alias$ac_delim
 
25211
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
 
25212
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
 
25213
INSTALL_DATA!$INSTALL_DATA$ac_delim
 
25214
CYGPATH_W!$CYGPATH_W$ac_delim
 
25215
PACKAGE!$PACKAGE$ac_delim
 
25216
VERSION!$VERSION$ac_delim
 
25217
ACLOCAL!$ACLOCAL$ac_delim
 
25218
AUTOCONF!$AUTOCONF$ac_delim
 
25219
AUTOMAKE!$AUTOMAKE$ac_delim
 
25220
AUTOHEADER!$AUTOHEADER$ac_delim
 
25221
MAKEINFO!$MAKEINFO$ac_delim
 
25222
install_sh!$install_sh$ac_delim
 
25223
STRIP!$STRIP$ac_delim
 
25224
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
 
25225
mkdir_p!$mkdir_p$ac_delim
 
25226
AWK!$AWK$ac_delim
 
25227
SET_MAKE!$SET_MAKE$ac_delim
 
25228
am__leading_dot!$am__leading_dot$ac_delim
 
25229
AMTAR!$AMTAR$ac_delim
 
25230
am__tar!$am__tar$ac_delim
 
25231
am__untar!$am__untar$ac_delim
 
25232
build!$build$ac_delim
 
25233
build_cpu!$build_cpu$ac_delim
 
25234
build_vendor!$build_vendor$ac_delim
 
25235
build_os!$build_os$ac_delim
 
25236
host!$host$ac_delim
 
25237
host_cpu!$host_cpu$ac_delim
 
25238
host_vendor!$host_vendor$ac_delim
 
25239
host_os!$host_os$ac_delim
 
25240
CC!$CC$ac_delim
 
25241
CFLAGS!$CFLAGS$ac_delim
 
25242
LDFLAGS!$LDFLAGS$ac_delim
 
25243
CPPFLAGS!$CPPFLAGS$ac_delim
 
25244
ac_ct_CC!$ac_ct_CC$ac_delim
 
25245
EXEEXT!$EXEEXT$ac_delim
 
25246
OBJEXT!$OBJEXT$ac_delim
 
25247
DEPDIR!$DEPDIR$ac_delim
 
25248
am__include!$am__include$ac_delim
 
25249
am__quote!$am__quote$ac_delim
 
25250
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
 
25251
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
 
25252
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
 
25253
CCDEPMODE!$CCDEPMODE$ac_delim
 
25254
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
 
25255
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
 
25256
CPP!$CPP$ac_delim
 
25257
SED!$SED$ac_delim
 
25258
GREP!$GREP$ac_delim
 
25259
EGREP!$EGREP$ac_delim
 
25260
LN_S!$LN_S$ac_delim
 
25261
ECHO!$ECHO$ac_delim
 
25262
AR!$AR$ac_delim
 
25263
RANLIB!$RANLIB$ac_delim
 
25264
DSYMUTIL!$DSYMUTIL$ac_delim
 
25265
NMEDIT!$NMEDIT$ac_delim
 
25266
CXX!$CXX$ac_delim
 
25267
CXXFLAGS!$CXXFLAGS$ac_delim
 
25268
ac_ct_CXX!$ac_ct_CXX$ac_delim
 
25269
CXXDEPMODE!$CXXDEPMODE$ac_delim
 
25270
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
 
25271
_ACEOF
 
25272
 
 
25273
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
 
25274
    break
 
25275
  elif $ac_last_try; then
 
25276
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
25277
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
25278
   { (exit 1); exit 1; }; }
 
25279
  else
 
25280
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
25281
  fi
 
25282
done
 
25283
 
 
25284
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
25285
if test -n "$ac_eof"; then
 
25286
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
25287
  ac_eof=`expr $ac_eof + 1`
 
25288
fi
 
25289
 
 
25290
cat >>$CONFIG_STATUS <<_ACEOF
 
25291
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
 
25292
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
25293
_ACEOF
 
25294
sed '
 
25295
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
25296
s/^/s,@/; s/!/@,|#_!!_#|/
 
25297
:n
 
25298
t n
 
25299
s/'"$ac_delim"'$/,g/; t
 
25300
s/$/\\/; p
 
25301
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
25302
' >>$CONFIG_STATUS <conf$$subs.sed
 
25303
rm -f conf$$subs.sed
 
25304
cat >>$CONFIG_STATUS <<_ACEOF
 
25305
CEOF$ac_eof
 
25306
_ACEOF
 
25307
 
 
25308
 
 
25309
ac_delim='%!_!# '
 
25310
for ac_last_try in false false false false false :; do
 
25311
  cat >conf$$subs.sed <<_ACEOF
 
25312
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
 
25313
CXXCPP!$CXXCPP$ac_delim
 
25314
F77!$F77$ac_delim
 
25315
FFLAGS!$FFLAGS$ac_delim
 
25316
ac_ct_F77!$ac_ct_F77$ac_delim
 
25317
LIBTOOL!$LIBTOOL$ac_delim
 
25318
UUID_LIBS!$UUID_LIBS$ac_delim
 
25319
GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
 
25320
USE_NLS!$USE_NLS$ac_delim
 
25321
MSGFMT!$MSGFMT$ac_delim
 
25322
GMSGFMT!$GMSGFMT$ac_delim
 
25323
MSGFMT_015!$MSGFMT_015$ac_delim
 
25324
GMSGFMT_015!$GMSGFMT_015$ac_delim
 
25325
XGETTEXT!$XGETTEXT$ac_delim
 
25326
XGETTEXT_015!$XGETTEXT_015$ac_delim
 
25327
MSGMERGE!$MSGMERGE$ac_delim
 
25328
INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
 
25329
LIBICONV!$LIBICONV$ac_delim
 
25330
LTLIBICONV!$LTLIBICONV$ac_delim
 
25331
INTLLIBS!$INTLLIBS$ac_delim
 
25332
LIBINTL!$LIBINTL$ac_delim
 
25333
LTLIBINTL!$LTLIBINTL$ac_delim
 
25334
POSUB!$POSUB$ac_delim
 
25335
POPT_LIBS!$POPT_LIBS$ac_delim
 
25336
STATIC_LIBRARY_TRUE!$STATIC_LIBRARY_TRUE$ac_delim
 
25337
STATIC_LIBRARY_FALSE!$STATIC_LIBRARY_FALSE$ac_delim
 
25338
LIBGCRYPT_CONFIG!$LIBGCRYPT_CONFIG$ac_delim
 
25339
LIBGCRYPT_CFLAGS!$LIBGCRYPT_CFLAGS$ac_delim
 
25340
LIBGCRYPT_LIBS!$LIBGCRYPT_LIBS$ac_delim
 
25341
BUILD_LIBGCRYPT_TRUE!$BUILD_LIBGCRYPT_TRUE$ac_delim
 
25342
BUILD_LIBGCRYPT_FALSE!$BUILD_LIBGCRYPT_FALSE$ac_delim
 
25343
SHARED_LIBGCRYPT_TRUE!$SHARED_LIBGCRYPT_TRUE$ac_delim
 
25344
SHARED_LIBGCRYPT_FALSE!$SHARED_LIBGCRYPT_FALSE$ac_delim
 
25345
LIBDEVMAPPER_LIBS!$LIBDEVMAPPER_LIBS$ac_delim
 
25346
LIBDEVMAPPER_CFLAGS!$LIBDEVMAPPER_CFLAGS$ac_delim
 
25347
BUILD_LIBDEVMAPPER_TRUE!$BUILD_LIBDEVMAPPER_TRUE$ac_delim
 
25348
BUILD_LIBDEVMAPPER_FALSE!$BUILD_LIBDEVMAPPER_FALSE$ac_delim
 
25349
SHARED_LIBDEVMAPPER_TRUE!$SHARED_LIBDEVMAPPER_TRUE$ac_delim
 
25350
SHARED_LIBDEVMAPPER_FALSE!$SHARED_LIBDEVMAPPER_FALSE$ac_delim
 
25351
STATIC_CRYPTSETUP_TRUE!$STATIC_CRYPTSETUP_TRUE$ac_delim
 
25352
STATIC_CRYPTSETUP_FALSE!$STATIC_CRYPTSETUP_FALSE$ac_delim
 
25353
DYNAMIC_CRYPTSETUP_TRUE!$DYNAMIC_CRYPTSETUP_TRUE$ac_delim
 
25354
DYNAMIC_CRYPTSETUP_FALSE!$DYNAMIC_CRYPTSETUP_FALSE$ac_delim
 
25355
LIBOBJS!$LIBOBJS$ac_delim
 
25356
LTLIBOBJS!$LTLIBOBJS$ac_delim
 
25357
_ACEOF
 
25358
 
 
25359
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 45; then
 
25360
    break
 
25361
  elif $ac_last_try; then
 
25362
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
25363
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
25364
   { (exit 1); exit 1; }; }
 
25365
  else
 
25366
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
25367
  fi
 
25368
done
 
25369
 
 
25370
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
25371
if test -n "$ac_eof"; then
 
25372
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
25373
  ac_eof=`expr $ac_eof + 1`
 
25374
fi
 
25375
 
 
25376
cat >>$CONFIG_STATUS <<_ACEOF
 
25377
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
 
25378
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
 
25379
_ACEOF
 
25380
sed '
 
25381
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
25382
s/^/s,@/; s/!/@,|#_!!_#|/
 
25383
:n
 
25384
t n
 
25385
s/'"$ac_delim"'$/,g/; t
 
25386
s/$/\\/; p
 
25387
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
25388
' >>$CONFIG_STATUS <conf$$subs.sed
 
25389
rm -f conf$$subs.sed
 
25390
cat >>$CONFIG_STATUS <<_ACEOF
 
25391
:end
 
25392
s/|#_!!_#|//g
 
25393
CEOF$ac_eof
 
25394
_ACEOF
 
25395
 
 
25396
 
 
25397
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
25398
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
25399
# trailing colons and then remove the whole line if VPATH becomes empty
 
25400
# (actually we leave an empty line to preserve line numbers).
 
25401
if test "x$srcdir" = x.; then
 
25402
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
25403
s/:*\$(srcdir):*/:/
 
25404
s/:*\${srcdir}:*/:/
 
25405
s/:*@srcdir@:*/:/
 
25406
s/^\([^=]*=[     ]*\):*/\1/
 
25407
s/:*$//
 
25408
s/^[^=]*=[       ]*$//
 
25409
}'
 
25410
fi
 
25411
 
 
25412
cat >>$CONFIG_STATUS <<\_ACEOF
 
25413
fi # test -n "$CONFIG_FILES"
 
25414
 
 
25415
 
 
25416
for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
 
25417
do
 
25418
  case $ac_tag in
 
25419
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
25420
  esac
 
25421
  case $ac_mode$ac_tag in
 
25422
  :[FHL]*:*);;
 
25423
  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
 
25424
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
 
25425
   { (exit 1); exit 1; }; };;
 
25426
  :[FH]-) ac_tag=-:-;;
 
25427
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
25428
  esac
 
25429
  ac_save_IFS=$IFS
 
25430
  IFS=:
 
25431
  set x $ac_tag
 
25432
  IFS=$ac_save_IFS
 
25433
  shift
 
25434
  ac_file=$1
 
25435
  shift
 
25436
 
 
25437
  case $ac_mode in
 
25438
  :L) ac_source=$1;;
 
25439
  :[FH])
 
25440
    ac_file_inputs=
 
25441
    for ac_f
 
25442
    do
 
25443
      case $ac_f in
 
25444
      -) ac_f="$tmp/stdin";;
 
25445
      *) # Look for the file first in the build tree, then in the source tree
 
25446
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
25447
         # because $ac_f cannot contain `:'.
 
25448
         test -f "$ac_f" ||
 
25449
           case $ac_f in
 
25450
           [\\/$]*) false;;
 
25451
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
25452
           esac ||
 
25453
           { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
 
25454
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
 
25455
   { (exit 1); exit 1; }; };;
 
25456
      esac
 
25457
      ac_file_inputs="$ac_file_inputs $ac_f"
 
25458
    done
 
25459
 
 
25460
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
25461
    # use $as_me), people would be surprised to read:
 
25462
    #    /* config.h.  Generated by config.status.  */
 
25463
    configure_input="Generated from "`IFS=:
 
25464
          echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
 
25465
    if test x"$ac_file" != x-; then
 
25466
      configure_input="$ac_file.  $configure_input"
 
25467
      { echo "$as_me:$LINENO: creating $ac_file" >&5
 
25468
echo "$as_me: creating $ac_file" >&6;}
 
25469
    fi
 
25470
 
 
25471
    case $ac_tag in
 
25472
    *:-:* | *:-) cat >"$tmp/stdin";;
 
25473
    esac
 
25474
    ;;
 
25475
  esac
 
25476
 
 
25477
  ac_dir=`$as_dirname -- "$ac_file" ||
 
25478
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
25479
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
25480
         X"$ac_file" : 'X\(//\)$' \| \
 
25481
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
25482
echo X"$ac_file" |
 
25483
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
25484
            s//\1/
 
25485
            q
 
25486
          }
 
25487
          /^X\(\/\/\)[^/].*/{
 
25488
            s//\1/
 
25489
            q
 
25490
          }
 
25491
          /^X\(\/\/\)$/{
 
25492
            s//\1/
 
25493
            q
 
25494
          }
 
25495
          /^X\(\/\).*/{
 
25496
            s//\1/
 
25497
            q
 
25498
          }
 
25499
          s/.*/./; q'`
 
25500
  { as_dir="$ac_dir"
 
25501
  case $as_dir in #(
 
25502
  -*) as_dir=./$as_dir;;
 
25503
  esac
 
25504
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
25505
    as_dirs=
 
25506
    while :; do
 
25507
      case $as_dir in #(
 
25508
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 
25509
      *) as_qdir=$as_dir;;
 
25510
      esac
 
25511
      as_dirs="'$as_qdir' $as_dirs"
 
25512
      as_dir=`$as_dirname -- "$as_dir" ||
 
25513
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
25514
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
25515
         X"$as_dir" : 'X\(//\)$' \| \
 
25516
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
25517
echo X"$as_dir" |
 
25518
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
25519
            s//\1/
 
25520
            q
 
25521
          }
 
25522
          /^X\(\/\/\)[^/].*/{
 
25523
            s//\1/
 
25524
            q
 
25525
          }
 
25526
          /^X\(\/\/\)$/{
 
25527
            s//\1/
 
25528
            q
 
25529
          }
 
25530
          /^X\(\/\).*/{
 
25531
            s//\1/
 
25532
            q
 
25533
          }
 
25534
          s/.*/./; q'`
 
25535
      test -d "$as_dir" && break
 
25536
    done
 
25537
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
25538
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
25539
echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
25540
   { (exit 1); exit 1; }; }; }
 
25541
  ac_builddir=.
 
25542
 
 
25543
case "$ac_dir" in
 
25544
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
25545
*)
 
25546
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
25547
  # A ".." for each directory in $ac_dir_suffix.
 
25548
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
25549
  case $ac_top_builddir_sub in
 
25550
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
25551
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
25552
  esac ;;
 
25553
esac
 
25554
ac_abs_top_builddir=$ac_pwd
 
25555
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
25556
# for backward compatibility:
 
25557
ac_top_builddir=$ac_top_build_prefix
 
25558
 
 
25559
case $srcdir in
 
25560
  .)  # We are building in place.
 
25561
    ac_srcdir=.
 
25562
    ac_top_srcdir=$ac_top_builddir_sub
 
25563
    ac_abs_top_srcdir=$ac_pwd ;;
 
25564
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
25565
    ac_srcdir=$srcdir$ac_dir_suffix;
 
25566
    ac_top_srcdir=$srcdir
 
25567
    ac_abs_top_srcdir=$srcdir ;;
 
25568
  *) # Relative name.
 
25569
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
25570
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
25571
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
25572
esac
 
25573
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
25574
 
 
25575
 
 
25576
  case $ac_mode in
 
25577
  :F)
 
25578
  #
 
25579
  # CONFIG_FILE
 
25580
  #
 
25581
 
 
25582
  case $INSTALL in
 
25583
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
25584
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
25585
  esac
 
25586
_ACEOF
 
25587
 
 
25588
cat >>$CONFIG_STATUS <<\_ACEOF
 
25589
# If the template does not know about datarootdir, expand it.
 
25590
# FIXME: This hack should be removed a few years after 2.60.
 
25591
ac_datarootdir_hack=; ac_datarootdir_seen=
 
25592
 
 
25593
case `sed -n '/datarootdir/ {
 
25594
  p
 
25595
  q
 
25596
}
 
25597
/@datadir@/p
 
25598
/@docdir@/p
 
25599
/@infodir@/p
 
25600
/@localedir@/p
 
25601
/@mandir@/p
 
25602
' $ac_file_inputs` in
 
25603
*datarootdir*) ac_datarootdir_seen=yes;;
 
25604
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
25605
  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
25606
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
25607
_ACEOF
 
25608
cat >>$CONFIG_STATUS <<_ACEOF
 
25609
  ac_datarootdir_hack='
 
25610
  s&@datadir@&$datadir&g
 
25611
  s&@docdir@&$docdir&g
 
25612
  s&@infodir@&$infodir&g
 
25613
  s&@localedir@&$localedir&g
 
25614
  s&@mandir@&$mandir&g
 
25615
    s&\\\${datarootdir}&$datarootdir&g' ;;
 
25616
esac
 
25617
_ACEOF
 
25618
 
 
25619
# Neutralize VPATH when `$srcdir' = `.'.
 
25620
# Shell code in configure.ac might set extrasub.
 
25621
# FIXME: do we really want to maintain this feature?
 
25622
cat >>$CONFIG_STATUS <<_ACEOF
 
25623
  sed "$ac_vpsub
 
25624
$extrasub
 
25625
_ACEOF
 
25626
cat >>$CONFIG_STATUS <<\_ACEOF
 
25627
:t
 
25628
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
25629
s&@configure_input@&$configure_input&;t t
 
25630
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
25631
s&@srcdir@&$ac_srcdir&;t t
 
25632
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
25633
s&@top_srcdir@&$ac_top_srcdir&;t t
 
25634
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
25635
s&@builddir@&$ac_builddir&;t t
 
25636
s&@abs_builddir@&$ac_abs_builddir&;t t
 
25637
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
25638
s&@INSTALL@&$ac_INSTALL&;t t
 
25639
$ac_datarootdir_hack
 
25640
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
 
25641
 
 
25642
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
25643
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 
25644
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 
25645
  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
25646
which seems to be undefined.  Please make sure it is defined." >&5
 
25647
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
25648
which seems to be undefined.  Please make sure it is defined." >&2;}
 
25649
 
 
25650
  rm -f "$tmp/stdin"
 
25651
  case $ac_file in
 
25652
  -) cat "$tmp/out"; rm -f "$tmp/out";;
 
25653
  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
 
25654
  esac
 
25655
 ;;
 
25656
  :H)
 
25657
  #
 
25658
  # CONFIG_HEADER
 
25659
  #
 
25660
_ACEOF
 
25661
 
 
25662
# Transform confdefs.h into a sed script `conftest.defines', that
 
25663
# substitutes the proper values into config.h.in to produce config.h.
 
25664
rm -f conftest.defines conftest.tail
 
25665
# First, append a space to every undef/define line, to ease matching.
 
25666
echo 's/$/ /' >conftest.defines
 
25667
# Then, protect against being on the right side of a sed subst, or in
 
25668
# an unquoted here document, in config.status.  If some macros were
 
25669
# called several times there might be several #defines for the same
 
25670
# symbol, which is useless.  But do not sort them, since the last
 
25671
# AC_DEFINE must be honored.
 
25672
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
25673
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
 
25674
# NAME is the cpp macro being defined, VALUE is the value it is being given.
 
25675
# PARAMS is the parameter list in the macro definition--in most cases, it's
 
25676
# just an empty string.
 
25677
ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
 
25678
ac_dB='\\)[      (].*,\\1define\\2'
 
25679
ac_dC=' '
 
25680
ac_dD=' ,'
 
25681
 
 
25682
uniq confdefs.h |
 
25683
  sed -n '
 
25684
        t rset
 
25685
        :rset
 
25686
        s/^[     ]*#[    ]*define[       ][      ]*//
 
25687
        t ok
 
25688
        d
 
25689
        :ok
 
25690
        s/[\\&,]/\\&/g
 
25691
        s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
 
25692
        s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
 
25693
  ' >>conftest.defines
 
25694
 
 
25695
# Remove the space that was appended to ease matching.
 
25696
# Then replace #undef with comments.  This is necessary, for
 
25697
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
25698
# on some systems where configure will not decide to define it.
 
25699
# (The regexp can be short, since the line contains either #define or #undef.)
 
25700
echo 's/ $//
 
25701
s,^[     #]*u.*,/* & */,' >>conftest.defines
 
25702
 
 
25703
# Break up conftest.defines:
 
25704
ac_max_sed_lines=50
 
25705
 
 
25706
# First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
 
25707
# Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
 
25708
# Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
 
25709
# et cetera.
 
25710
ac_in='$ac_file_inputs'
 
25711
ac_out='"$tmp/out1"'
 
25712
ac_nxt='"$tmp/out2"'
 
25713
 
 
25714
while :
 
25715
do
 
25716
  # Write a here document:
 
25717
    cat >>$CONFIG_STATUS <<_ACEOF
 
25718
    # First, check the format of the line:
 
25719
    cat >"\$tmp/defines.sed" <<\\CEOF
 
25720
/^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
 
25721
/^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
 
25722
b
 
25723
:def
 
25724
_ACEOF
 
25725
  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
 
25726
  echo 'CEOF
 
25727
    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
 
25728
  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
 
25729
  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
 
25730
  grep . conftest.tail >/dev/null || break
 
25731
  rm -f conftest.defines
 
25732
  mv conftest.tail conftest.defines
 
25733
done
 
25734
rm -f conftest.defines conftest.tail
 
25735
 
 
25736
echo "ac_result=$ac_in" >>$CONFIG_STATUS
 
25737
cat >>$CONFIG_STATUS <<\_ACEOF
 
25738
  if test x"$ac_file" != x-; then
 
25739
    echo "/* $configure_input  */" >"$tmp/config.h"
 
25740
    cat "$ac_result" >>"$tmp/config.h"
 
25741
    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
 
25742
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
25743
echo "$as_me: $ac_file is unchanged" >&6;}
 
25744
    else
 
25745
      rm -f $ac_file
 
25746
      mv "$tmp/config.h" $ac_file
 
25747
    fi
 
25748
  else
 
25749
    echo "/* $configure_input  */"
 
25750
    cat "$ac_result"
 
25751
  fi
 
25752
  rm -f "$tmp/out12"
 
25753
# Compute $ac_file's index in $config_headers.
 
25754
_am_stamp_count=1
 
25755
for _am_header in $config_headers :; do
 
25756
  case $_am_header in
 
25757
    $ac_file | $ac_file:* )
 
25758
      break ;;
 
25759
    * )
 
25760
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
25761
  esac
 
25762
done
 
25763
echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
 
25764
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
25765
         X$ac_file : 'X\(//\)[^/]' \| \
 
25766
         X$ac_file : 'X\(//\)$' \| \
 
25767
         X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
 
25768
echo X$ac_file |
 
25769
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
25770
            s//\1/
 
25771
            q
 
25772
          }
 
25773
          /^X\(\/\/\)[^/].*/{
 
25774
            s//\1/
 
25775
            q
 
25776
          }
 
25777
          /^X\(\/\/\)$/{
 
25778
            s//\1/
 
25779
            q
 
25780
          }
 
25781
          /^X\(\/\).*/{
 
25782
            s//\1/
 
25783
            q
 
25784
          }
 
25785
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
25786
 ;;
 
25787
 
 
25788
  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
 
25789
echo "$as_me: executing $ac_file commands" >&6;}
 
25790
 ;;
 
25791
  esac
 
25792
 
 
25793
 
 
25794
  case $ac_file$ac_mode in
 
25795
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
25796
  # Strip MF so we end up with the name of the file.
 
25797
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
25798
  # Check whether this is an Automake generated Makefile or not.
 
25799
  # We used to match only the files named `Makefile.in', but
 
25800
  # some people rename them; so instead we look at the file content.
 
25801
  # Grep'ing the first line is not enough: some people post-process
 
25802
  # each Makefile.in and add a new line on top of each file to say so.
 
25803
  # So let's grep whole file.
 
25804
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
25805
    dirpart=`$as_dirname -- "$mf" ||
 
25806
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
25807
         X"$mf" : 'X\(//\)[^/]' \| \
 
25808
         X"$mf" : 'X\(//\)$' \| \
 
25809
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 
25810
echo X"$mf" |
 
25811
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
25812
            s//\1/
 
25813
            q
 
25814
          }
 
25815
          /^X\(\/\/\)[^/].*/{
 
25816
            s//\1/
 
25817
            q
 
25818
          }
 
25819
          /^X\(\/\/\)$/{
 
25820
            s//\1/
 
25821
            q
 
25822
          }
 
25823
          /^X\(\/\).*/{
 
25824
            s//\1/
 
25825
            q
 
25826
          }
 
25827
          s/.*/./; q'`
 
25828
  else
 
25829
    continue
 
25830
  fi
 
25831
  # Extract the definition of DEPDIR, am__include, and am__quote
 
25832
  # from the Makefile without running `make'.
 
25833
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
25834
  test -z "$DEPDIR" && continue
 
25835
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
25836
  test -z "am__include" && continue
 
25837
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
25838
  # When using ansi2knr, U may be empty or an underscore; expand it
 
25839
  U=`sed -n 's/^U = //p' < "$mf"`
 
25840
  # Find all dependency output files, they are included files with
 
25841
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
25842
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
25843
  # expansion.
 
25844
  for file in `sed -n "
 
25845
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
25846
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
25847
    # Make sure the directory exists.
 
25848
    test -f "$dirpart/$file" && continue
 
25849
    fdir=`$as_dirname -- "$file" ||
 
25850
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
25851
         X"$file" : 'X\(//\)[^/]' \| \
 
25852
         X"$file" : 'X\(//\)$' \| \
 
25853
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 
25854
echo X"$file" |
 
25855
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
25856
            s//\1/
 
25857
            q
 
25858
          }
 
25859
          /^X\(\/\/\)[^/].*/{
 
25860
            s//\1/
 
25861
            q
 
25862
          }
 
25863
          /^X\(\/\/\)$/{
 
25864
            s//\1/
 
25865
            q
 
25866
          }
 
25867
          /^X\(\/\).*/{
 
25868
            s//\1/
 
25869
            q
 
25870
          }
 
25871
          s/.*/./; q'`
 
25872
    { as_dir=$dirpart/$fdir
 
25873
  case $as_dir in #(
 
25874
  -*) as_dir=./$as_dir;;
 
25875
  esac
 
25876
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
25877
    as_dirs=
 
25878
    while :; do
 
25879
      case $as_dir in #(
 
25880
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 
25881
      *) as_qdir=$as_dir;;
 
25882
      esac
 
25883
      as_dirs="'$as_qdir' $as_dirs"
 
25884
      as_dir=`$as_dirname -- "$as_dir" ||
 
25885
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
25886
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
25887
         X"$as_dir" : 'X\(//\)$' \| \
 
25888
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
25889
echo X"$as_dir" |
 
25890
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
25891
            s//\1/
 
25892
            q
 
25893
          }
 
25894
          /^X\(\/\/\)[^/].*/{
 
25895
            s//\1/
 
25896
            q
 
25897
          }
 
25898
          /^X\(\/\/\)$/{
 
25899
            s//\1/
 
25900
            q
 
25901
          }
 
25902
          /^X\(\/\).*/{
 
25903
            s//\1/
 
25904
            q
 
25905
          }
 
25906
          s/.*/./; q'`
 
25907
      test -d "$as_dir" && break
 
25908
    done
 
25909
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
25910
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
25911
echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
25912
   { (exit 1); exit 1; }; }; }
 
25913
    # echo "creating $dirpart/$file"
 
25914
    echo '# dummy' > "$dirpart/$file"
 
25915
  done
 
25916
done
 
25917
 ;;
 
25918
    "po-directories":C)
 
25919
    for ac_file in $CONFIG_FILES; do
 
25920
      # Support "outfile[:infile[:infile...]]"
 
25921
      case "$ac_file" in
 
25922
        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
 
25923
      esac
 
25924
      # PO directories have a Makefile.in generated from Makefile.in.in.
 
25925
      case "$ac_file" in */Makefile.in)
 
25926
        # Adjust a relative srcdir.
 
25927
        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
 
25928
        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
 
25929
        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
 
25930
        # In autoconf-2.13 it is called $ac_given_srcdir.
 
25931
        # In autoconf-2.50 it is called $srcdir.
 
25932
        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
 
25933
        case "$ac_given_srcdir" in
 
25934
          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
 
25935
          /*) top_srcdir="$ac_given_srcdir" ;;
 
25936
          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
 
25937
        esac
 
25938
        # Treat a directory as a PO directory if and only if it has a
 
25939
        # POTFILES.in file. This allows packages to have multiple PO
 
25940
        # directories under different names or in different locations.
 
25941
        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
 
25942
          rm -f "$ac_dir/POTFILES"
 
25943
          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
 
25944
          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
 
25945
          POMAKEFILEDEPS="POTFILES.in"
 
25946
          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
 
25947
          # on $ac_dir but don't depend on user-specified configuration
 
25948
          # parameters.
 
25949
          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
 
25950
            # The LINGUAS file contains the set of available languages.
 
25951
            if test -n "$OBSOLETE_ALL_LINGUAS"; then
 
25952
              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
 
25953
            fi
 
25954
            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
 
25955
            # Hide the ALL_LINGUAS assigment from automake < 1.5.
 
25956
            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
 
25957
            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
 
25958
          else
 
25959
            # The set of available languages was given in configure.in.
 
25960
            # Hide the ALL_LINGUAS assigment from automake < 1.5.
 
25961
            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
 
25962
          fi
 
25963
          # Compute POFILES
 
25964
          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
 
25965
          # Compute UPDATEPOFILES
 
25966
          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
 
25967
          # Compute DUMMYPOFILES
 
25968
          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
 
25969
          # Compute GMOFILES
 
25970
          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
 
25971
          case "$ac_given_srcdir" in
 
25972
            .) srcdirpre= ;;
 
25973
            *) srcdirpre='$(srcdir)/' ;;
 
25974
          esac
 
25975
          POFILES=
 
25976
          UPDATEPOFILES=
 
25977
          DUMMYPOFILES=
 
25978
          GMOFILES=
 
25979
          for lang in $ALL_LINGUAS; do
 
25980
            POFILES="$POFILES $srcdirpre$lang.po"
 
25981
            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
 
25982
            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
 
25983
            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
 
25984
          done
 
25985
          # CATALOGS depends on both $ac_dir and the user's LINGUAS
 
25986
          # environment variable.
 
25987
          INST_LINGUAS=
 
25988
          if test -n "$ALL_LINGUAS"; then
 
25989
            for presentlang in $ALL_LINGUAS; do
 
25990
              useit=no
 
25991
              if test "%UNSET%" != "$LINGUAS"; then
 
25992
                desiredlanguages="$LINGUAS"
 
25993
              else
 
25994
                desiredlanguages="$ALL_LINGUAS"
 
25995
              fi
 
25996
              for desiredlang in $desiredlanguages; do
 
25997
                # Use the presentlang catalog if desiredlang is
 
25998
                #   a. equal to presentlang, or
 
25999
                #   b. a variant of presentlang (because in this case,
 
26000
                #      presentlang can be used as a fallback for messages
 
26001
                #      which are not translated in the desiredlang catalog).
 
26002
                case "$desiredlang" in
 
26003
                  "$presentlang"*) useit=yes;;
 
26004
                esac
 
26005
              done
 
26006
              if test $useit = yes; then
 
26007
                INST_LINGUAS="$INST_LINGUAS $presentlang"
 
26008
              fi
 
26009
            done
 
26010
          fi
 
26011
          CATALOGS=
 
26012
          if test -n "$INST_LINGUAS"; then
 
26013
            for lang in $INST_LINGUAS; do
 
26014
              CATALOGS="$CATALOGS $lang.gmo"
 
26015
            done
 
26016
          fi
 
26017
          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
 
26018
          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
 
26019
          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
 
26020
            if test -f "$f"; then
 
26021
              case "$f" in
 
26022
                *.orig | *.bak | *~) ;;
 
26023
                *) cat "$f" >> "$ac_dir/Makefile" ;;
 
26024
              esac
 
26025
            fi
 
26026
          done
 
26027
        fi
 
26028
        ;;
 
26029
      esac
 
26030
    done ;;
 
26031
 
 
26032
  esac
 
26033
done # for ac_tag
 
26034
 
 
26035
 
 
26036
{ (exit 0); exit 0; }
 
26037
_ACEOF
 
26038
chmod +x $CONFIG_STATUS
 
26039
ac_clean_files=$ac_clean_files_save
 
26040
 
 
26041
 
 
26042
# configure is writing to config.log, and then calls config.status.
 
26043
# config.status does its own redirection, appending to config.log.
 
26044
# Unfortunately, on DOS this fails, as config.log is still kept open
 
26045
# by configure, so config.status won't be able to write to it; its
 
26046
# output is simply discarded.  So we exec the FD to /dev/null,
 
26047
# effectively closing config.log, so it can be properly (re)opened and
 
26048
# appended to by config.status.  When coming back to configure, we
 
26049
# need to make the FD available again.
 
26050
if test "$no_create" != yes; then
 
26051
  ac_cs_success=:
 
26052
  ac_config_status_args=
 
26053
  test "$silent" = yes &&
 
26054
    ac_config_status_args="$ac_config_status_args --quiet"
 
26055
  exec 5>/dev/null
 
26056
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
26057
  exec 5>>config.log
 
26058
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
26059
  # would make configure fail if this is the last instruction.
 
26060
  $ac_cs_success || { (exit 1); exit 1; }
 
26061
fi
 
26062