~ubuntu-branches/ubuntu/karmic/thinkfinger/karmic

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Luca Capello
  • Date: 2007-09-15 14:44:23 UTC
  • Revision ID: james.westby@ubuntu.com-20070915144423-6m2api7re19o2wxo
Tags: upstream-0.3
ImportĀ upstreamĀ versionĀ 0.3

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 ThinkFinger 0.3.
 
4
#
 
5
# Report bugs to <http://thinkfinger.sourceforge.net/>.
 
6
#
 
7
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
8
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
 
9
# This configure script is free software; the Free Software Foundation
 
10
# gives unlimited permission to copy, distribute and modify it.
 
11
## --------------------- ##
 
12
## M4sh Initialization.  ##
 
13
## --------------------- ##
 
14
 
 
15
# Be more Bourne compatible
 
16
DUALCASE=1; export DUALCASE # for MKS sh
 
17
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
18
  emulate sh
 
19
  NULLCMD=:
 
20
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
21
  # is contrary to our usage.  Disable this feature.
 
22
  alias -g '${1+"$@"}'='"$@"'
 
23
  setopt NO_GLOB_SUBST
 
24
else
 
25
  case `(set -o) 2>/dev/null` in
 
26
  *posix*) set -o posix ;;
 
27
esac
 
28
 
 
29
fi
 
30
 
 
31
 
 
32
 
 
33
 
 
34
# PATH needs CR
 
35
# Avoid depending upon Character Ranges.
 
36
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
37
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
38
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
39
as_cr_digits='0123456789'
 
40
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
41
 
 
42
# The user is always right.
 
43
if test "${PATH_SEPARATOR+set}" != set; then
 
44
  echo "#! /bin/sh" >conf$$.sh
 
45
  echo  "exit 0"   >>conf$$.sh
 
46
  chmod +x conf$$.sh
 
47
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
48
    PATH_SEPARATOR=';'
 
49
  else
 
50
    PATH_SEPARATOR=:
 
51
  fi
 
52
  rm -f conf$$.sh
 
53
fi
 
54
 
 
55
# Support unset when possible.
 
56
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
57
  as_unset=unset
 
58
else
 
59
  as_unset=false
 
60
fi
 
61
 
 
62
 
 
63
# IFS
 
64
# We need space, tab and new line, in precisely that order.  Quoting is
 
65
# there to prevent editors from complaining about space-tab.
 
66
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
67
# splitting by setting IFS to empty value.)
 
68
as_nl='
 
69
'
 
70
IFS=" ""        $as_nl"
 
71
 
 
72
# Find who we are.  Look in the path if we contain no directory separator.
 
73
case $0 in
 
74
  *[\\/]* ) as_myself=$0 ;;
 
75
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
76
for as_dir in $PATH
 
77
do
 
78
  IFS=$as_save_IFS
 
79
  test -z "$as_dir" && as_dir=.
 
80
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
81
done
 
82
IFS=$as_save_IFS
 
83
 
 
84
     ;;
 
85
esac
 
86
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
87
# in which case we are not to be found in the path.
 
88
if test "x$as_myself" = x; then
 
89
  as_myself=$0
 
90
fi
 
91
if test ! -f "$as_myself"; then
 
92
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
93
  { (exit 1); exit 1; }
 
94
fi
 
95
 
 
96
# Work around bugs in pre-3.0 UWIN ksh.
 
97
for as_var in ENV MAIL MAILPATH
 
98
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
99
done
 
100
PS1='$ '
 
101
PS2='> '
 
102
PS4='+ '
 
103
 
 
104
# NLS nuisances.
 
105
for as_var in \
 
106
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
107
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
108
  LC_TELEPHONE LC_TIME
 
109
do
 
110
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
111
    eval $as_var=C; export $as_var
 
112
  else
 
113
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
114
  fi
 
115
done
 
116
 
 
117
# Required to use basename.
 
118
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
119
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
120
  as_expr=expr
 
121
else
 
122
  as_expr=false
 
123
fi
 
124
 
 
125
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
126
  as_basename=basename
 
127
else
 
128
  as_basename=false
 
129
fi
 
130
 
 
131
 
 
132
# Name of the executable.
 
133
as_me=`$as_basename -- "$0" ||
 
134
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
135
         X"$0" : 'X\(//\)$' \| \
 
136
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
137
echo X/"$0" |
 
138
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
139
            s//\1/
 
140
            q
 
141
          }
 
142
          /^X\/\(\/\/\)$/{
 
143
            s//\1/
 
144
            q
 
145
          }
 
146
          /^X\/\(\/\).*/{
 
147
            s//\1/
 
148
            q
 
149
          }
 
150
          s/.*/./; q'`
 
151
 
 
152
# CDPATH.
 
153
$as_unset CDPATH
 
154
 
 
155
 
 
156
if test "x$CONFIG_SHELL" = x; then
 
157
  if (eval ":") 2>/dev/null; then
 
158
  as_have_required=yes
 
159
else
 
160
  as_have_required=no
 
161
fi
 
162
 
 
163
  if test $as_have_required = yes &&     (eval ":
 
164
(as_func_return () {
 
165
  (exit \$1)
 
166
}
 
167
as_func_success () {
 
168
  as_func_return 0
 
169
}
 
170
as_func_failure () {
 
171
  as_func_return 1
 
172
}
 
173
as_func_ret_success () {
 
174
  return 0
 
175
}
 
176
as_func_ret_failure () {
 
177
  return 1
 
178
}
 
179
 
 
180
exitcode=0
 
181
if as_func_success; then
 
182
  :
 
183
else
 
184
  exitcode=1
 
185
  echo as_func_success failed.
 
186
fi
 
187
 
 
188
if as_func_failure; then
 
189
  exitcode=1
 
190
  echo as_func_failure succeeded.
 
191
fi
 
192
 
 
193
if as_func_ret_success; then
 
194
  :
 
195
else
 
196
  exitcode=1
 
197
  echo as_func_ret_success failed.
 
198
fi
 
199
 
 
200
if as_func_ret_failure; then
 
201
  exitcode=1
 
202
  echo as_func_ret_failure succeeded.
 
203
fi
 
204
 
 
205
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
206
  :
 
207
else
 
208
  exitcode=1
 
209
  echo positional parameters were not saved.
 
210
fi
 
211
 
 
212
test \$exitcode = 0) || { (exit 1); exit 1; }
 
213
 
 
214
(
 
215
  as_lineno_1=\$LINENO
 
216
  as_lineno_2=\$LINENO
 
217
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
 
218
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
 
219
") 2> /dev/null; then
 
220
  :
 
221
else
 
222
  as_candidate_shells=
 
223
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
224
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
225
do
 
226
  IFS=$as_save_IFS
 
227
  test -z "$as_dir" && as_dir=.
 
228
  case $as_dir in
 
229
         /*)
 
230
           for as_base in sh bash ksh sh5; do
 
231
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
 
232
           done;;
 
233
       esac
 
234
done
 
235
IFS=$as_save_IFS
 
236
 
 
237
 
 
238
      for as_shell in $as_candidate_shells $SHELL; do
 
239
         # Try only shells that exist, to save several forks.
 
240
         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
241
                { ("$as_shell") 2> /dev/null <<\_ASEOF
 
242
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
243
  emulate sh
 
244
  NULLCMD=:
 
245
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
246
  # is contrary to our usage.  Disable this feature.
 
247
  alias -g '${1+"$@"}'='"$@"'
 
248
  setopt NO_GLOB_SUBST
 
249
else
 
250
  case `(set -o) 2>/dev/null` in
 
251
  *posix*) set -o posix ;;
 
252
esac
 
253
 
 
254
fi
 
255
 
 
256
 
 
257
:
 
258
_ASEOF
 
259
}; then
 
260
  CONFIG_SHELL=$as_shell
 
261
               as_have_required=yes
 
262
               if { "$as_shell" 2> /dev/null <<\_ASEOF
 
263
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
264
  emulate sh
 
265
  NULLCMD=:
 
266
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
267
  # is contrary to our usage.  Disable this feature.
 
268
  alias -g '${1+"$@"}'='"$@"'
 
269
  setopt NO_GLOB_SUBST
 
270
else
 
271
  case `(set -o) 2>/dev/null` in
 
272
  *posix*) set -o posix ;;
 
273
esac
 
274
 
 
275
fi
 
276
 
 
277
 
 
278
:
 
279
(as_func_return () {
 
280
  (exit $1)
 
281
}
 
282
as_func_success () {
 
283
  as_func_return 0
 
284
}
 
285
as_func_failure () {
 
286
  as_func_return 1
 
287
}
 
288
as_func_ret_success () {
 
289
  return 0
 
290
}
 
291
as_func_ret_failure () {
 
292
  return 1
 
293
}
 
294
 
 
295
exitcode=0
 
296
if as_func_success; then
 
297
  :
 
298
else
 
299
  exitcode=1
 
300
  echo as_func_success failed.
 
301
fi
 
302
 
 
303
if as_func_failure; then
 
304
  exitcode=1
 
305
  echo as_func_failure succeeded.
 
306
fi
 
307
 
 
308
if as_func_ret_success; then
 
309
  :
 
310
else
 
311
  exitcode=1
 
312
  echo as_func_ret_success failed.
 
313
fi
 
314
 
 
315
if as_func_ret_failure; then
 
316
  exitcode=1
 
317
  echo as_func_ret_failure succeeded.
 
318
fi
 
319
 
 
320
if ( set x; as_func_ret_success y && test x = "$1" ); then
 
321
  :
 
322
else
 
323
  exitcode=1
 
324
  echo positional parameters were not saved.
 
325
fi
 
326
 
 
327
test $exitcode = 0) || { (exit 1); exit 1; }
 
328
 
 
329
(
 
330
  as_lineno_1=$LINENO
 
331
  as_lineno_2=$LINENO
 
332
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
333
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
 
334
 
 
335
_ASEOF
 
336
}; then
 
337
  break
 
338
fi
 
339
 
 
340
fi
 
341
 
 
342
      done
 
343
 
 
344
      if test "x$CONFIG_SHELL" != x; then
 
345
  for as_var in BASH_ENV ENV
 
346
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
347
        done
 
348
        export CONFIG_SHELL
 
349
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
 
350
fi
 
351
 
 
352
 
 
353
    if test $as_have_required = no; then
 
354
  echo This script requires a shell more modern than all the
 
355
      echo shells that I found on your system.  Please install a
 
356
      echo modern shell, or manually run the script under such a
 
357
      echo shell if you do have one.
 
358
      { (exit 1); exit 1; }
 
359
fi
 
360
 
 
361
 
 
362
fi
 
363
 
 
364
fi
 
365
 
 
366
 
 
367
 
 
368
(eval "as_func_return () {
 
369
  (exit \$1)
 
370
}
 
371
as_func_success () {
 
372
  as_func_return 0
 
373
}
 
374
as_func_failure () {
 
375
  as_func_return 1
 
376
}
 
377
as_func_ret_success () {
 
378
  return 0
 
379
}
 
380
as_func_ret_failure () {
 
381
  return 1
 
382
}
 
383
 
 
384
exitcode=0
 
385
if as_func_success; then
 
386
  :
 
387
else
 
388
  exitcode=1
 
389
  echo as_func_success failed.
 
390
fi
 
391
 
 
392
if as_func_failure; then
 
393
  exitcode=1
 
394
  echo as_func_failure succeeded.
 
395
fi
 
396
 
 
397
if as_func_ret_success; then
 
398
  :
 
399
else
 
400
  exitcode=1
 
401
  echo as_func_ret_success failed.
 
402
fi
 
403
 
 
404
if as_func_ret_failure; then
 
405
  exitcode=1
 
406
  echo as_func_ret_failure succeeded.
 
407
fi
 
408
 
 
409
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
410
  :
 
411
else
 
412
  exitcode=1
 
413
  echo positional parameters were not saved.
 
414
fi
 
415
 
 
416
test \$exitcode = 0") || {
 
417
  echo No shell found that supports shell functions.
 
418
  echo Please tell autoconf@gnu.org about your system,
 
419
  echo including any error possibly output before this
 
420
  echo message
 
421
}
 
422
 
 
423
 
 
424
 
 
425
  as_lineno_1=$LINENO
 
426
  as_lineno_2=$LINENO
 
427
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
428
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
429
 
 
430
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
431
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
432
  # line-number line after each line using $LINENO; the second 'sed'
 
433
  # does the real work.  The second script uses 'N' to pair each
 
434
  # line-number line with the line containing $LINENO, and appends
 
435
  # trailing '-' during substitution so that $LINENO is not a special
 
436
  # case at line end.
 
437
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
438
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
439
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
440
  sed -n '
 
441
    p
 
442
    /[$]LINENO/=
 
443
  ' <$as_myself |
 
444
    sed '
 
445
      s/[$]LINENO.*/&-/
 
446
      t lineno
 
447
      b
 
448
      :lineno
 
449
      N
 
450
      :loop
 
451
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
452
      t loop
 
453
      s/-\n.*//
 
454
    ' >$as_me.lineno &&
 
455
  chmod +x "$as_me.lineno" ||
 
456
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
457
   { (exit 1); exit 1; }; }
 
458
 
 
459
  # Don't try to exec as it changes $[0], causing all sort of problems
 
460
  # (the dirname of $[0] is not the place where we might find the
 
461
  # original and so on.  Autoconf is especially sensitive to this).
 
462
  . "./$as_me.lineno"
 
463
  # Exit status is that of the last command.
 
464
  exit
 
465
}
 
466
 
 
467
 
 
468
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
469
  as_dirname=dirname
 
470
else
 
471
  as_dirname=false
 
472
fi
 
473
 
 
474
ECHO_C= ECHO_N= ECHO_T=
 
475
case `echo -n x` in
 
476
-n*)
 
477
  case `echo 'x\c'` in
 
478
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
479
  *)   ECHO_C='\c';;
 
480
  esac;;
 
481
*)
 
482
  ECHO_N='-n';;
 
483
esac
 
484
 
 
485
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
486
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
487
  as_expr=expr
 
488
else
 
489
  as_expr=false
 
490
fi
 
491
 
 
492
rm -f conf$$ conf$$.exe conf$$.file
 
493
if test -d conf$$.dir; then
 
494
  rm -f conf$$.dir/conf$$.file
 
495
else
 
496
  rm -f conf$$.dir
 
497
  mkdir conf$$.dir
 
498
fi
 
499
echo >conf$$.file
 
500
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
501
  as_ln_s='ln -s'
 
502
  # ... but there are two gotchas:
 
503
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
504
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
505
  # In both cases, we have to default to `cp -p'.
 
506
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
507
    as_ln_s='cp -p'
 
508
elif ln conf$$.file conf$$ 2>/dev/null; then
 
509
  as_ln_s=ln
 
510
else
 
511
  as_ln_s='cp -p'
 
512
fi
 
513
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
514
rmdir conf$$.dir 2>/dev/null
 
515
 
 
516
if mkdir -p . 2>/dev/null; then
 
517
  as_mkdir_p=:
 
518
else
 
519
  test -d ./-p && rmdir ./-p
 
520
  as_mkdir_p=false
 
521
fi
 
522
 
 
523
if test -x / >/dev/null 2>&1; then
 
524
  as_test_x='test -x'
 
525
else
 
526
  if ls -dL / >/dev/null 2>&1; then
 
527
    as_ls_L_option=L
 
528
  else
 
529
    as_ls_L_option=
 
530
  fi
 
531
  as_test_x='
 
532
    eval sh -c '\''
 
533
      if test -d "$1"; then
 
534
        test -d "$1/.";
 
535
      else
 
536
        case $1 in
 
537
        -*)set "./$1";;
 
538
        esac;
 
539
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
540
        ???[sx]*):;;*)false;;esac;fi
 
541
    '\'' sh
 
542
  '
 
543
fi
 
544
as_executable_p=$as_test_x
 
545
 
 
546
# Sed expression to map a string onto a valid CPP name.
 
547
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
548
 
 
549
# Sed expression to map a string onto a valid variable name.
 
550
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
551
 
 
552
 
 
553
 
 
554
 
 
555
# Check that we are running under the correct shell.
 
556
SHELL=${CONFIG_SHELL-/bin/sh}
 
557
 
 
558
case X$ECHO in
 
559
X*--fallback-echo)
 
560
  # Remove one level of quotation (which was required for Make).
 
561
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
562
  ;;
 
563
esac
 
564
 
 
565
echo=${ECHO-echo}
 
566
if test "X$1" = X--no-reexec; then
 
567
  # Discard the --no-reexec flag, and continue.
 
568
  shift
 
569
elif test "X$1" = X--fallback-echo; then
 
570
  # Avoid inline document here, it may be left over
 
571
  :
 
572
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
 
573
  # Yippee, $echo works!
 
574
  :
 
575
else
 
576
  # Restart under the correct shell.
 
577
  exec $SHELL "$0" --no-reexec ${1+"$@"}
 
578
fi
 
579
 
 
580
if test "X$1" = X--fallback-echo; then
 
581
  # used as fallback echo
 
582
  shift
 
583
  cat <<EOF
 
584
$*
 
585
EOF
 
586
  exit 0
 
587
fi
 
588
 
 
589
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
590
# if CDPATH is set.
 
591
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
592
 
 
593
if test -z "$ECHO"; then
 
594
if test "X${echo_test_string+set}" != Xset; then
 
595
# find a string as large as possible, as long as the shell can cope with it
 
596
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
597
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
598
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
 
599
       echo_test_string=`eval $cmd` &&
 
600
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
 
601
    then
 
602
      break
 
603
    fi
 
604
  done
 
605
fi
 
606
 
 
607
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
608
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
609
   test "X$echo_testing_string" = "X$echo_test_string"; then
 
610
  :
 
611
else
 
612
  # The Solaris, AIX, and Digital Unix default echo programs unquote
 
613
  # backslashes.  This makes it impossible to quote backslashes using
 
614
  #   echo "$something" | sed 's/\\/\\\\/g'
 
615
  #
 
616
  # So, first we look for a working echo in the user's PATH.
 
617
 
 
618
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
619
  for dir in $PATH /usr/ucb; do
 
620
    IFS="$lt_save_ifs"
 
621
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
622
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
623
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
624
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
625
      echo="$dir/echo"
 
626
      break
 
627
    fi
 
628
  done
 
629
  IFS="$lt_save_ifs"
 
630
 
 
631
  if test "X$echo" = Xecho; then
 
632
    # We didn't find a better echo, so look for alternatives.
 
633
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
 
634
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
 
635
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
636
      # This shell has a builtin print -r that does the trick.
 
637
      echo='print -r'
 
638
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
 
639
         test "X$CONFIG_SHELL" != X/bin/ksh; then
 
640
      # If we have ksh, try running configure again with it.
 
641
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
642
      export ORIGINAL_CONFIG_SHELL
 
643
      CONFIG_SHELL=/bin/ksh
 
644
      export CONFIG_SHELL
 
645
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
646
    else
 
647
      # Try using printf.
 
648
      echo='printf %s\n'
 
649
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
650
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
651
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
652
        # Cool, printf works
 
653
        :
 
654
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
655
           test "X$echo_testing_string" = 'X\t' &&
 
656
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
657
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
658
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
659
        export CONFIG_SHELL
 
660
        SHELL="$CONFIG_SHELL"
 
661
        export SHELL
 
662
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
663
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
664
           test "X$echo_testing_string" = 'X\t' &&
 
665
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
666
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
667
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
668
      else
 
669
        # maybe with a smaller string...
 
670
        prev=:
 
671
 
 
672
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
673
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
 
674
          then
 
675
            break
 
676
          fi
 
677
          prev="$cmd"
 
678
        done
 
679
 
 
680
        if test "$prev" != 'sed 50q "$0"'; then
 
681
          echo_test_string=`eval $prev`
 
682
          export echo_test_string
 
683
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
684
        else
 
685
          # Oops.  We lost completely, so just stick with echo.
 
686
          echo=echo
 
687
        fi
 
688
      fi
 
689
    fi
 
690
  fi
 
691
fi
 
692
fi
 
693
 
 
694
# Copy echo and quote the copy suitably for passing to libtool from
 
695
# the Makefile, instead of quoting the original, which is used later.
 
696
ECHO=$echo
 
697
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
698
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
699
fi
 
700
 
 
701
 
 
702
 
 
703
 
 
704
tagnames=${tagnames+${tagnames},}CXX
 
705
 
 
706
tagnames=${tagnames+${tagnames},}F77
 
707
 
 
708
exec 7<&0 </dev/null 6>&1
 
709
 
 
710
# Name of the host.
 
711
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
712
# so uname gets run too.
 
713
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
714
 
 
715
#
 
716
# Initializations.
 
717
#
 
718
ac_default_prefix=/usr/local
 
719
ac_clean_files=
 
720
ac_config_libobj_dir=.
 
721
LIBOBJS=
 
722
cross_compiling=no
 
723
subdirs=
 
724
MFLAGS=
 
725
MAKEFLAGS=
 
726
SHELL=${CONFIG_SHELL-/bin/sh}
 
727
 
 
728
# Identity of this package.
 
729
PACKAGE_NAME='ThinkFinger'
 
730
PACKAGE_TARNAME='thinkfinger'
 
731
PACKAGE_VERSION='0.3'
 
732
PACKAGE_STRING='ThinkFinger 0.3'
 
733
PACKAGE_BUGREPORT='http://thinkfinger.sourceforge.net/'
 
734
 
 
735
ac_unique_file="libthinkfinger/libthinkfinger.c"
 
736
# Factoring default headers for most tests.
 
737
ac_includes_default="\
 
738
#include <stdio.h>
 
739
#ifdef HAVE_SYS_TYPES_H
 
740
# include <sys/types.h>
 
741
#endif
 
742
#ifdef HAVE_SYS_STAT_H
 
743
# include <sys/stat.h>
 
744
#endif
 
745
#ifdef STDC_HEADERS
 
746
# include <stdlib.h>
 
747
# include <stddef.h>
 
748
#else
 
749
# ifdef HAVE_STDLIB_H
 
750
#  include <stdlib.h>
 
751
# endif
 
752
#endif
 
753
#ifdef HAVE_STRING_H
 
754
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
755
#  include <memory.h>
 
756
# endif
 
757
# include <string.h>
 
758
#endif
 
759
#ifdef HAVE_STRINGS_H
 
760
# include <strings.h>
 
761
#endif
 
762
#ifdef HAVE_INTTYPES_H
 
763
# include <inttypes.h>
 
764
#endif
 
765
#ifdef HAVE_STDINT_H
 
766
# include <stdint.h>
 
767
#endif
 
768
#ifdef HAVE_UNISTD_H
 
769
# include <unistd.h>
 
770
#endif"
 
771
 
 
772
ac_subst_vars='SHELL
 
773
PATH_SEPARATOR
 
774
PACKAGE_NAME
 
775
PACKAGE_TARNAME
 
776
PACKAGE_VERSION
 
777
PACKAGE_STRING
 
778
PACKAGE_BUGREPORT
 
779
exec_prefix
 
780
prefix
 
781
program_transform_name
 
782
bindir
 
783
sbindir
 
784
libexecdir
 
785
datarootdir
 
786
datadir
 
787
sysconfdir
 
788
sharedstatedir
 
789
localstatedir
 
790
includedir
 
791
oldincludedir
 
792
docdir
 
793
infodir
 
794
htmldir
 
795
dvidir
 
796
pdfdir
 
797
psdir
 
798
libdir
 
799
localedir
 
800
mandir
 
801
DEFS
 
802
ECHO_C
 
803
ECHO_N
 
804
ECHO_T
 
805
LIBS
 
806
build_alias
 
807
host_alias
 
808
target_alias
 
809
INSTALL_PROGRAM
 
810
INSTALL_SCRIPT
 
811
INSTALL_DATA
 
812
am__isrc
 
813
CYGPATH_W
 
814
PACKAGE
 
815
VERSION
 
816
ACLOCAL
 
817
AUTOCONF
 
818
AUTOMAKE
 
819
AUTOHEADER
 
820
MAKEINFO
 
821
install_sh
 
822
STRIP
 
823
INSTALL_STRIP_PROGRAM
 
824
mkdir_p
 
825
AWK
 
826
SET_MAKE
 
827
am__leading_dot
 
828
AMTAR
 
829
am__tar
 
830
am__untar
 
831
CC
 
832
CFLAGS
 
833
LDFLAGS
 
834
CPPFLAGS
 
835
ac_ct_CC
 
836
EXEEXT
 
837
OBJEXT
 
838
DEPDIR
 
839
am__include
 
840
am__quote
 
841
AMDEP_TRUE
 
842
AMDEP_FALSE
 
843
AMDEPBACKSLASH
 
844
CCDEPMODE
 
845
am__fastdepCC_TRUE
 
846
am__fastdepCC_FALSE
 
847
build
 
848
build_cpu
 
849
build_vendor
 
850
build_os
 
851
host
 
852
host_cpu
 
853
host_vendor
 
854
host_os
 
855
GREP
 
856
EGREP
 
857
LN_S
 
858
ECHO
 
859
AR
 
860
RANLIB
 
861
CPP
 
862
CXX
 
863
CXXFLAGS
 
864
ac_ct_CXX
 
865
CXXDEPMODE
 
866
am__fastdepCXX_TRUE
 
867
am__fastdepCXX_FALSE
 
868
CXXCPP
 
869
F77
 
870
FFLAGS
 
871
ac_ct_F77
 
872
LIBTOOL
 
873
PKG_CONFIG
 
874
USB_CFLAGS
 
875
USB_LIBS
 
876
DOXYGEN
 
877
PREFIX
 
878
LIBDIR
 
879
BINDIR
 
880
SBINDIR
 
881
SECUREDIR
 
882
BIRDIR
 
883
MANDIR
 
884
PAM_LIBS
 
885
PTHREAD_LIBS
 
886
BUILD_PAM_TRUE
 
887
BUILD_PAM_FALSE
 
888
HAVE_OLD_PAM_TRUE
 
889
HAVE_OLD_PAM_FALSE
 
890
LIBOBJS
 
891
LTLIBOBJS'
 
892
ac_subst_files=''
 
893
      ac_precious_vars='build_alias
 
894
host_alias
 
895
target_alias
 
896
CC
 
897
CFLAGS
 
898
LDFLAGS
 
899
LIBS
 
900
CPPFLAGS
 
901
CPP
 
902
CXX
 
903
CXXFLAGS
 
904
CCC
 
905
CXXCPP
 
906
F77
 
907
FFLAGS
 
908
PKG_CONFIG
 
909
USB_CFLAGS
 
910
USB_LIBS'
 
911
 
 
912
 
 
913
# Initialize some variables set by options.
 
914
ac_init_help=
 
915
ac_init_version=false
 
916
# The variables have the same names as the options, with
 
917
# dashes changed to underlines.
 
918
cache_file=/dev/null
 
919
exec_prefix=NONE
 
920
no_create=
 
921
no_recursion=
 
922
prefix=NONE
 
923
program_prefix=NONE
 
924
program_suffix=NONE
 
925
program_transform_name=s,x,x,
 
926
silent=
 
927
site=
 
928
srcdir=
 
929
verbose=
 
930
x_includes=NONE
 
931
x_libraries=NONE
 
932
 
 
933
# Installation directory options.
 
934
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
935
# and all the variables that are supposed to be based on exec_prefix
 
936
# by default will actually change.
 
937
# Use braces instead of parens because sh, perl, etc. also accept them.
 
938
# (The list follows the same order as the GNU Coding Standards.)
 
939
bindir='${exec_prefix}/bin'
 
940
sbindir='${exec_prefix}/sbin'
 
941
libexecdir='${exec_prefix}/libexec'
 
942
datarootdir='${prefix}/share'
 
943
datadir='${datarootdir}'
 
944
sysconfdir='${prefix}/etc'
 
945
sharedstatedir='${prefix}/com'
 
946
localstatedir='${prefix}/var'
 
947
includedir='${prefix}/include'
 
948
oldincludedir='/usr/include'
 
949
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
950
infodir='${datarootdir}/info'
 
951
htmldir='${docdir}'
 
952
dvidir='${docdir}'
 
953
pdfdir='${docdir}'
 
954
psdir='${docdir}'
 
955
libdir='${exec_prefix}/lib'
 
956
localedir='${datarootdir}/locale'
 
957
mandir='${datarootdir}/man'
 
958
 
 
959
ac_prev=
 
960
ac_dashdash=
 
961
for ac_option
 
962
do
 
963
  # If the previous option needs an argument, assign it.
 
964
  if test -n "$ac_prev"; then
 
965
    eval $ac_prev=\$ac_option
 
966
    ac_prev=
 
967
    continue
 
968
  fi
 
969
 
 
970
  case $ac_option in
 
971
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
972
  *)    ac_optarg=yes ;;
 
973
  esac
 
974
 
 
975
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
976
 
 
977
  case $ac_dashdash$ac_option in
 
978
  --)
 
979
    ac_dashdash=yes ;;
 
980
 
 
981
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
982
    ac_prev=bindir ;;
 
983
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
984
    bindir=$ac_optarg ;;
 
985
 
 
986
  -build | --build | --buil | --bui | --bu)
 
987
    ac_prev=build_alias ;;
 
988
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
989
    build_alias=$ac_optarg ;;
 
990
 
 
991
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
992
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
993
    ac_prev=cache_file ;;
 
994
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
995
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
996
    cache_file=$ac_optarg ;;
 
997
 
 
998
  --config-cache | -C)
 
999
    cache_file=config.cache ;;
 
1000
 
 
1001
  -datadir | --datadir | --datadi | --datad)
 
1002
    ac_prev=datadir ;;
 
1003
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
1004
    datadir=$ac_optarg ;;
 
1005
 
 
1006
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
1007
  | --dataroo | --dataro | --datar)
 
1008
    ac_prev=datarootdir ;;
 
1009
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
1010
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
1011
    datarootdir=$ac_optarg ;;
 
1012
 
 
1013
  -disable-* | --disable-*)
 
1014
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
1015
    # Reject names that are not valid shell variable names.
 
1016
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1017
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
1018
   { (exit 1); exit 1; }; }
 
1019
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
 
1020
    eval enable_$ac_feature=no ;;
 
1021
 
 
1022
  -docdir | --docdir | --docdi | --doc | --do)
 
1023
    ac_prev=docdir ;;
 
1024
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
1025
    docdir=$ac_optarg ;;
 
1026
 
 
1027
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
1028
    ac_prev=dvidir ;;
 
1029
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
1030
    dvidir=$ac_optarg ;;
 
1031
 
 
1032
  -enable-* | --enable-*)
 
1033
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
1034
    # Reject names that are not valid shell variable names.
 
1035
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1036
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
1037
   { (exit 1); exit 1; }; }
 
1038
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
 
1039
    eval enable_$ac_feature=\$ac_optarg ;;
 
1040
 
 
1041
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
1042
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
1043
  | --exec | --exe | --ex)
 
1044
    ac_prev=exec_prefix ;;
 
1045
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
1046
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
1047
  | --exec=* | --exe=* | --ex=*)
 
1048
    exec_prefix=$ac_optarg ;;
 
1049
 
 
1050
  -gas | --gas | --ga | --g)
 
1051
    # Obsolete; use --with-gas.
 
1052
    with_gas=yes ;;
 
1053
 
 
1054
  -help | --help | --hel | --he | -h)
 
1055
    ac_init_help=long ;;
 
1056
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
1057
    ac_init_help=recursive ;;
 
1058
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
1059
    ac_init_help=short ;;
 
1060
 
 
1061
  -host | --host | --hos | --ho)
 
1062
    ac_prev=host_alias ;;
 
1063
  -host=* | --host=* | --hos=* | --ho=*)
 
1064
    host_alias=$ac_optarg ;;
 
1065
 
 
1066
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
1067
    ac_prev=htmldir ;;
 
1068
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
1069
  | --ht=*)
 
1070
    htmldir=$ac_optarg ;;
 
1071
 
 
1072
  -includedir | --includedir | --includedi | --included | --include \
 
1073
  | --includ | --inclu | --incl | --inc)
 
1074
    ac_prev=includedir ;;
 
1075
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
1076
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
1077
    includedir=$ac_optarg ;;
 
1078
 
 
1079
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
1080
    ac_prev=infodir ;;
 
1081
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
1082
    infodir=$ac_optarg ;;
 
1083
 
 
1084
  -libdir | --libdir | --libdi | --libd)
 
1085
    ac_prev=libdir ;;
 
1086
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
1087
    libdir=$ac_optarg ;;
 
1088
 
 
1089
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
1090
  | --libexe | --libex | --libe)
 
1091
    ac_prev=libexecdir ;;
 
1092
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
1093
  | --libexe=* | --libex=* | --libe=*)
 
1094
    libexecdir=$ac_optarg ;;
 
1095
 
 
1096
  -localedir | --localedir | --localedi | --localed | --locale)
 
1097
    ac_prev=localedir ;;
 
1098
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
1099
    localedir=$ac_optarg ;;
 
1100
 
 
1101
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
1102
  | --localstate | --localstat | --localsta | --localst | --locals)
 
1103
    ac_prev=localstatedir ;;
 
1104
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
1105
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
1106
    localstatedir=$ac_optarg ;;
 
1107
 
 
1108
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
1109
    ac_prev=mandir ;;
 
1110
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
1111
    mandir=$ac_optarg ;;
 
1112
 
 
1113
  -nfp | --nfp | --nf)
 
1114
    # Obsolete; use --without-fp.
 
1115
    with_fp=no ;;
 
1116
 
 
1117
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
1118
  | --no-cr | --no-c | -n)
 
1119
    no_create=yes ;;
 
1120
 
 
1121
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
1122
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
1123
    no_recursion=yes ;;
 
1124
 
 
1125
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
1126
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
1127
  | --oldin | --oldi | --old | --ol | --o)
 
1128
    ac_prev=oldincludedir ;;
 
1129
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
1130
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
1131
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
1132
    oldincludedir=$ac_optarg ;;
 
1133
 
 
1134
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
1135
    ac_prev=prefix ;;
 
1136
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
1137
    prefix=$ac_optarg ;;
 
1138
 
 
1139
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
1140
  | --program-pre | --program-pr | --program-p)
 
1141
    ac_prev=program_prefix ;;
 
1142
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
1143
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
1144
    program_prefix=$ac_optarg ;;
 
1145
 
 
1146
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
1147
  | --program-suf | --program-su | --program-s)
 
1148
    ac_prev=program_suffix ;;
 
1149
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
1150
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
1151
    program_suffix=$ac_optarg ;;
 
1152
 
 
1153
  -program-transform-name | --program-transform-name \
 
1154
  | --program-transform-nam | --program-transform-na \
 
1155
  | --program-transform-n | --program-transform- \
 
1156
  | --program-transform | --program-transfor \
 
1157
  | --program-transfo | --program-transf \
 
1158
  | --program-trans | --program-tran \
 
1159
  | --progr-tra | --program-tr | --program-t)
 
1160
    ac_prev=program_transform_name ;;
 
1161
  -program-transform-name=* | --program-transform-name=* \
 
1162
  | --program-transform-nam=* | --program-transform-na=* \
 
1163
  | --program-transform-n=* | --program-transform-=* \
 
1164
  | --program-transform=* | --program-transfor=* \
 
1165
  | --program-transfo=* | --program-transf=* \
 
1166
  | --program-trans=* | --program-tran=* \
 
1167
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
1168
    program_transform_name=$ac_optarg ;;
 
1169
 
 
1170
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1171
    ac_prev=pdfdir ;;
 
1172
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1173
    pdfdir=$ac_optarg ;;
 
1174
 
 
1175
  -psdir | --psdir | --psdi | --psd | --ps)
 
1176
    ac_prev=psdir ;;
 
1177
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1178
    psdir=$ac_optarg ;;
 
1179
 
 
1180
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1181
  | -silent | --silent | --silen | --sile | --sil)
 
1182
    silent=yes ;;
 
1183
 
 
1184
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
1185
    ac_prev=sbindir ;;
 
1186
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
1187
  | --sbi=* | --sb=*)
 
1188
    sbindir=$ac_optarg ;;
 
1189
 
 
1190
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
1191
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
1192
  | --sharedst | --shareds | --shared | --share | --shar \
 
1193
  | --sha | --sh)
 
1194
    ac_prev=sharedstatedir ;;
 
1195
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
1196
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
1197
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
1198
  | --sha=* | --sh=*)
 
1199
    sharedstatedir=$ac_optarg ;;
 
1200
 
 
1201
  -site | --site | --sit)
 
1202
    ac_prev=site ;;
 
1203
  -site=* | --site=* | --sit=*)
 
1204
    site=$ac_optarg ;;
 
1205
 
 
1206
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
1207
    ac_prev=srcdir ;;
 
1208
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
1209
    srcdir=$ac_optarg ;;
 
1210
 
 
1211
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
1212
  | --syscon | --sysco | --sysc | --sys | --sy)
 
1213
    ac_prev=sysconfdir ;;
 
1214
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
1215
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
1216
    sysconfdir=$ac_optarg ;;
 
1217
 
 
1218
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
1219
    ac_prev=target_alias ;;
 
1220
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
1221
    target_alias=$ac_optarg ;;
 
1222
 
 
1223
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
1224
    verbose=yes ;;
 
1225
 
 
1226
  -version | --version | --versio | --versi | --vers | -V)
 
1227
    ac_init_version=: ;;
 
1228
 
 
1229
  -with-* | --with-*)
 
1230
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1231
    # Reject names that are not valid shell variable names.
 
1232
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1233
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
1234
   { (exit 1); exit 1; }; }
 
1235
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
 
1236
    eval with_$ac_package=\$ac_optarg ;;
 
1237
 
 
1238
  -without-* | --without-*)
 
1239
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1240
    # Reject names that are not valid shell variable names.
 
1241
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1242
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
1243
   { (exit 1); exit 1; }; }
 
1244
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
 
1245
    eval with_$ac_package=no ;;
 
1246
 
 
1247
  --x)
 
1248
    # Obsolete; use --with-x.
 
1249
    with_x=yes ;;
 
1250
 
 
1251
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
1252
  | --x-incl | --x-inc | --x-in | --x-i)
 
1253
    ac_prev=x_includes ;;
 
1254
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
1255
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
1256
    x_includes=$ac_optarg ;;
 
1257
 
 
1258
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
1259
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
1260
    ac_prev=x_libraries ;;
 
1261
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
1262
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
1263
    x_libraries=$ac_optarg ;;
 
1264
 
 
1265
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
1266
Try \`$0 --help' for more information." >&2
 
1267
   { (exit 1); exit 1; }; }
 
1268
    ;;
 
1269
 
 
1270
  *=*)
 
1271
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1272
    # Reject names that are not valid shell variable names.
 
1273
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
1274
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
1275
   { (exit 1); exit 1; }; }
 
1276
    eval $ac_envvar=\$ac_optarg
 
1277
    export $ac_envvar ;;
 
1278
 
 
1279
  *)
 
1280
    # FIXME: should be removed in autoconf 3.0.
 
1281
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1282
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1283
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1284
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
1285
    ;;
 
1286
 
 
1287
  esac
 
1288
done
 
1289
 
 
1290
if test -n "$ac_prev"; then
 
1291
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1292
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
1293
   { (exit 1); exit 1; }; }
 
1294
fi
 
1295
 
 
1296
# Be sure to have absolute directory names.
 
1297
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1298
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1299
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1300
                libdir localedir mandir
 
1301
do
 
1302
  eval ac_val=\$$ac_var
 
1303
  case $ac_val in
 
1304
    [\\/$]* | ?:[\\/]* )  continue;;
 
1305
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1306
  esac
 
1307
  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
1308
   { (exit 1); exit 1; }; }
 
1309
done
 
1310
 
 
1311
# There might be people who depend on the old broken behavior: `$host'
 
1312
# used to hold the argument of --host etc.
 
1313
# FIXME: To remove some day.
 
1314
build=$build_alias
 
1315
host=$host_alias
 
1316
target=$target_alias
 
1317
 
 
1318
# FIXME: To remove some day.
 
1319
if test "x$host_alias" != x; then
 
1320
  if test "x$build_alias" = x; then
 
1321
    cross_compiling=maybe
 
1322
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
1323
    If a cross compiler is detected then cross compile mode will be used." >&2
 
1324
  elif test "x$build_alias" != "x$host_alias"; then
 
1325
    cross_compiling=yes
 
1326
  fi
 
1327
fi
 
1328
 
 
1329
ac_tool_prefix=
 
1330
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1331
 
 
1332
test "$silent" = yes && exec 6>/dev/null
 
1333
 
 
1334
 
 
1335
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1336
ac_ls_di=`ls -di .` &&
 
1337
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1338
  { echo "$as_me: error: Working directory cannot be determined" >&2
 
1339
   { (exit 1); exit 1; }; }
 
1340
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1341
  { echo "$as_me: error: pwd does not report name of working directory" >&2
 
1342
   { (exit 1); exit 1; }; }
 
1343
 
 
1344
 
 
1345
# Find the source files, if location was not specified.
 
1346
if test -z "$srcdir"; then
 
1347
  ac_srcdir_defaulted=yes
 
1348
  # Try the directory containing this script, then the parent directory.
 
1349
  ac_confdir=`$as_dirname -- "$0" ||
 
1350
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1351
         X"$0" : 'X\(//\)[^/]' \| \
 
1352
         X"$0" : 'X\(//\)$' \| \
 
1353
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
1354
echo X"$0" |
 
1355
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1356
            s//\1/
 
1357
            q
 
1358
          }
 
1359
          /^X\(\/\/\)[^/].*/{
 
1360
            s//\1/
 
1361
            q
 
1362
          }
 
1363
          /^X\(\/\/\)$/{
 
1364
            s//\1/
 
1365
            q
 
1366
          }
 
1367
          /^X\(\/\).*/{
 
1368
            s//\1/
 
1369
            q
 
1370
          }
 
1371
          s/.*/./; q'`
 
1372
  srcdir=$ac_confdir
 
1373
  if test ! -r "$srcdir/$ac_unique_file"; then
 
1374
    srcdir=..
 
1375
  fi
 
1376
else
 
1377
  ac_srcdir_defaulted=no
 
1378
fi
 
1379
if test ! -r "$srcdir/$ac_unique_file"; then
 
1380
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1381
  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
1382
   { (exit 1); exit 1; }; }
 
1383
fi
 
1384
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1385
ac_abs_confdir=`(
 
1386
        cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
 
1387
   { (exit 1); exit 1; }; }
 
1388
        pwd)`
 
1389
# When building in place, set srcdir=.
 
1390
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1391
  srcdir=.
 
1392
fi
 
1393
# Remove unnecessary trailing slashes from srcdir.
 
1394
# Double slashes in file names in object file debugging info
 
1395
# mess up M-x gdb in Emacs.
 
1396
case $srcdir in
 
1397
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1398
esac
 
1399
for ac_var in $ac_precious_vars; do
 
1400
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1401
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1402
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1403
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1404
done
 
1405
 
 
1406
#
 
1407
# Report the --help message.
 
1408
#
 
1409
if test "$ac_init_help" = "long"; then
 
1410
  # Omit some internal or obsolete options to make the list less imposing.
 
1411
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1412
  cat <<_ACEOF
 
1413
\`configure' configures ThinkFinger 0.3 to adapt to many kinds of systems.
 
1414
 
 
1415
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1416
 
 
1417
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1418
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1419
 
 
1420
Defaults for the options are specified in brackets.
 
1421
 
 
1422
Configuration:
 
1423
  -h, --help              display this help and exit
 
1424
      --help=short        display options specific to this package
 
1425
      --help=recursive    display the short help of all the included packages
 
1426
  -V, --version           display version information and exit
 
1427
  -q, --quiet, --silent   do not print \`checking...' messages
 
1428
      --cache-file=FILE   cache test results in FILE [disabled]
 
1429
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1430
  -n, --no-create         do not create output files
 
1431
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1432
 
 
1433
Installation directories:
 
1434
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1435
                          [$ac_default_prefix]
 
1436
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1437
                          [PREFIX]
 
1438
 
 
1439
By default, \`make install' will install all the files in
 
1440
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1441
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1442
for instance \`--prefix=\$HOME'.
 
1443
 
 
1444
For better control, use the options below.
 
1445
 
 
1446
Fine tuning of the installation directories:
 
1447
  --bindir=DIR           user executables [EPREFIX/bin]
 
1448
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
1449
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
1450
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
1451
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
1452
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
1453
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
1454
  --includedir=DIR       C header files [PREFIX/include]
 
1455
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
1456
  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
 
1457
  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
 
1458
  --infodir=DIR          info documentation [DATAROOTDIR/info]
 
1459
  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
 
1460
  --mandir=DIR           man documentation [DATAROOTDIR/man]
 
1461
  --docdir=DIR           documentation root [DATAROOTDIR/doc/thinkfinger]
 
1462
  --htmldir=DIR          html documentation [DOCDIR]
 
1463
  --dvidir=DIR           dvi documentation [DOCDIR]
 
1464
  --pdfdir=DIR           pdf documentation [DOCDIR]
 
1465
  --psdir=DIR            ps documentation [DOCDIR]
 
1466
_ACEOF
 
1467
 
 
1468
  cat <<\_ACEOF
 
1469
 
 
1470
Program names:
 
1471
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1472
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1473
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1474
 
 
1475
System types:
 
1476
  --build=BUILD     configure for building on BUILD [guessed]
 
1477
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1478
_ACEOF
 
1479
fi
 
1480
 
 
1481
if test -n "$ac_init_help"; then
 
1482
  case $ac_init_help in
 
1483
     short | recursive ) echo "Configuration of ThinkFinger 0.3:";;
 
1484
   esac
 
1485
  cat <<\_ACEOF
 
1486
 
 
1487
Optional Features:
 
1488
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1489
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1490
  --disable-dependency-tracking  speeds up one-time build
 
1491
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1492
  --enable-shared[=PKGS]  build shared libraries [default=yes]
 
1493
  --enable-static[=PKGS]  build static libraries [default=yes]
 
1494
  --enable-fast-install[=PKGS]
 
1495
                          optimize for fast installation [default=yes]
 
1496
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1497
  --enable-usb-debug      build with USB hooks for debugging
 
1498
  --enable-pam            build PAM module
 
1499
  --with-securedir=dir    Where to put PAM module [default=$libdir/security]
 
1500
  --with-birdir=dir       Where to put the biometric identification records
 
1501
                          (bir files) [default=$sysconfdir/pam_thinkfinger]
 
1502
 
 
1503
Optional Packages:
 
1504
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1505
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1506
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1507
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1508
                          both]
 
1509
  --with-tags[=TAGS]      include additional configurations [automatic]
 
1510
 
 
1511
Some influential environment variables:
 
1512
  CC          C compiler command
 
1513
  CFLAGS      C compiler flags
 
1514
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1515
              nonstandard directory <lib dir>
 
1516
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1517
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
 
1518
              you have headers in a nonstandard directory <include dir>
 
1519
  CPP         C preprocessor
 
1520
  CXX         C++ compiler command
 
1521
  CXXFLAGS    C++ compiler flags
 
1522
  CXXCPP      C++ preprocessor
 
1523
  F77         Fortran 77 compiler command
 
1524
  FFLAGS      Fortran 77 compiler flags
 
1525
  PKG_CONFIG  path to pkg-config utility
 
1526
  USB_CFLAGS  C compiler flags for USB, overriding pkg-config
 
1527
  USB_LIBS    linker flags for USB, overriding pkg-config
 
1528
 
 
1529
Use these variables to override the choices made by `configure' or to help
 
1530
it to find libraries and programs with nonstandard names/locations.
 
1531
 
 
1532
Report bugs to <http://thinkfinger.sourceforge.net/>.
 
1533
_ACEOF
 
1534
ac_status=$?
 
1535
fi
 
1536
 
 
1537
if test "$ac_init_help" = "recursive"; then
 
1538
  # If there are subdirs, report their specific --help.
 
1539
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1540
    test -d "$ac_dir" || continue
 
1541
    ac_builddir=.
 
1542
 
 
1543
case "$ac_dir" in
 
1544
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1545
*)
 
1546
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1547
  # A ".." for each directory in $ac_dir_suffix.
 
1548
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
1549
  case $ac_top_builddir_sub in
 
1550
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1551
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1552
  esac ;;
 
1553
esac
 
1554
ac_abs_top_builddir=$ac_pwd
 
1555
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1556
# for backward compatibility:
 
1557
ac_top_builddir=$ac_top_build_prefix
 
1558
 
 
1559
case $srcdir in
 
1560
  .)  # We are building in place.
 
1561
    ac_srcdir=.
 
1562
    ac_top_srcdir=$ac_top_builddir_sub
 
1563
    ac_abs_top_srcdir=$ac_pwd ;;
 
1564
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
1565
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1566
    ac_top_srcdir=$srcdir
 
1567
    ac_abs_top_srcdir=$srcdir ;;
 
1568
  *) # Relative name.
 
1569
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1570
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1571
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1572
esac
 
1573
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1574
 
 
1575
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1576
    # Check for guested configure.
 
1577
    if test -f "$ac_srcdir/configure.gnu"; then
 
1578
      echo &&
 
1579
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1580
    elif test -f "$ac_srcdir/configure"; then
 
1581
      echo &&
 
1582
      $SHELL "$ac_srcdir/configure" --help=recursive
 
1583
    else
 
1584
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1585
    fi || ac_status=$?
 
1586
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1587
  done
 
1588
fi
 
1589
 
 
1590
test -n "$ac_init_help" && exit $ac_status
 
1591
if $ac_init_version; then
 
1592
  cat <<\_ACEOF
 
1593
ThinkFinger configure 0.3
 
1594
generated by GNU Autoconf 2.61
 
1595
 
 
1596
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
1597
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
 
1598
This configure script is free software; the Free Software Foundation
 
1599
gives unlimited permission to copy, distribute and modify it.
 
1600
_ACEOF
 
1601
  exit
 
1602
fi
 
1603
cat >config.log <<_ACEOF
 
1604
This file contains any messages produced by compilers while
 
1605
running configure, to aid debugging if configure makes a mistake.
 
1606
 
 
1607
It was created by ThinkFinger $as_me 0.3, which was
 
1608
generated by GNU Autoconf 2.61.  Invocation command line was
 
1609
 
 
1610
  $ $0 $@
 
1611
 
 
1612
_ACEOF
 
1613
exec 5>>config.log
 
1614
{
 
1615
cat <<_ASUNAME
 
1616
## --------- ##
 
1617
## Platform. ##
 
1618
## --------- ##
 
1619
 
 
1620
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1621
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1622
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1623
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1624
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1625
 
 
1626
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1627
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1628
 
 
1629
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1630
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1631
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1632
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
1633
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1634
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1635
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1636
 
 
1637
_ASUNAME
 
1638
 
 
1639
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1640
for as_dir in $PATH
 
1641
do
 
1642
  IFS=$as_save_IFS
 
1643
  test -z "$as_dir" && as_dir=.
 
1644
  echo "PATH: $as_dir"
 
1645
done
 
1646
IFS=$as_save_IFS
 
1647
 
 
1648
} >&5
 
1649
 
 
1650
cat >&5 <<_ACEOF
 
1651
 
 
1652
 
 
1653
## ----------- ##
 
1654
## Core tests. ##
 
1655
## ----------- ##
 
1656
 
 
1657
_ACEOF
 
1658
 
 
1659
 
 
1660
# Keep a trace of the command line.
 
1661
# Strip out --no-create and --no-recursion so they do not pile up.
 
1662
# Strip out --silent because we don't want to record it for future runs.
 
1663
# Also quote any args containing shell meta-characters.
 
1664
# Make two passes to allow for proper duplicate-argument suppression.
 
1665
ac_configure_args=
 
1666
ac_configure_args0=
 
1667
ac_configure_args1=
 
1668
ac_must_keep_next=false
 
1669
for ac_pass in 1 2
 
1670
do
 
1671
  for ac_arg
 
1672
  do
 
1673
    case $ac_arg in
 
1674
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1675
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1676
    | -silent | --silent | --silen | --sile | --sil)
 
1677
      continue ;;
 
1678
    *\'*)
 
1679
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1680
    esac
 
1681
    case $ac_pass in
 
1682
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1683
    2)
 
1684
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1685
      if test $ac_must_keep_next = true; then
 
1686
        ac_must_keep_next=false # Got value, back to normal.
 
1687
      else
 
1688
        case $ac_arg in
 
1689
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1690
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1691
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1692
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1693
            case "$ac_configure_args0 " in
 
1694
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1695
            esac
 
1696
            ;;
 
1697
          -* ) ac_must_keep_next=true ;;
 
1698
        esac
 
1699
      fi
 
1700
      ac_configure_args="$ac_configure_args '$ac_arg'"
 
1701
      ;;
 
1702
    esac
 
1703
  done
 
1704
done
 
1705
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1706
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1707
 
 
1708
# When interrupted or exit'd, cleanup temporary files, and complete
 
1709
# config.log.  We remove comments because anyway the quotes in there
 
1710
# would cause problems or look ugly.
 
1711
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
1712
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
1713
trap 'exit_status=$?
 
1714
  # Save into config.log some information that might help in debugging.
 
1715
  {
 
1716
    echo
 
1717
 
 
1718
    cat <<\_ASBOX
 
1719
## ---------------- ##
 
1720
## Cache variables. ##
 
1721
## ---------------- ##
 
1722
_ASBOX
 
1723
    echo
 
1724
    # The following way of writing the cache mishandles newlines in values,
 
1725
(
 
1726
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
1727
    eval ac_val=\$$ac_var
 
1728
    case $ac_val in #(
 
1729
    *${as_nl}*)
 
1730
      case $ac_var in #(
 
1731
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 
1732
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
1733
      esac
 
1734
      case $ac_var in #(
 
1735
      _ | IFS | as_nl) ;; #(
 
1736
      *) $as_unset $ac_var ;;
 
1737
      esac ;;
 
1738
    esac
 
1739
  done
 
1740
  (set) 2>&1 |
 
1741
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
1742
    *${as_nl}ac_space=\ *)
 
1743
      sed -n \
 
1744
        "s/'\''/'\''\\\\'\'''\''/g;
 
1745
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
1746
      ;; #(
 
1747
    *)
 
1748
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
1749
      ;;
 
1750
    esac |
 
1751
    sort
 
1752
)
 
1753
    echo
 
1754
 
 
1755
    cat <<\_ASBOX
 
1756
## ----------------- ##
 
1757
## Output variables. ##
 
1758
## ----------------- ##
 
1759
_ASBOX
 
1760
    echo
 
1761
    for ac_var in $ac_subst_vars
 
1762
    do
 
1763
      eval ac_val=\$$ac_var
 
1764
      case $ac_val in
 
1765
      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1766
      esac
 
1767
      echo "$ac_var='\''$ac_val'\''"
 
1768
    done | sort
 
1769
    echo
 
1770
 
 
1771
    if test -n "$ac_subst_files"; then
 
1772
      cat <<\_ASBOX
 
1773
## ------------------- ##
 
1774
## File substitutions. ##
 
1775
## ------------------- ##
 
1776
_ASBOX
 
1777
      echo
 
1778
      for ac_var in $ac_subst_files
 
1779
      do
 
1780
        eval ac_val=\$$ac_var
 
1781
        case $ac_val in
 
1782
        *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1783
        esac
 
1784
        echo "$ac_var='\''$ac_val'\''"
 
1785
      done | sort
 
1786
      echo
 
1787
    fi
 
1788
 
 
1789
    if test -s confdefs.h; then
 
1790
      cat <<\_ASBOX
 
1791
## ----------- ##
 
1792
## confdefs.h. ##
 
1793
## ----------- ##
 
1794
_ASBOX
 
1795
      echo
 
1796
      cat confdefs.h
 
1797
      echo
 
1798
    fi
 
1799
    test "$ac_signal" != 0 &&
 
1800
      echo "$as_me: caught signal $ac_signal"
 
1801
    echo "$as_me: exit $exit_status"
 
1802
  } >&5
 
1803
  rm -f core *.core core.conftest.* &&
 
1804
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
1805
    exit $exit_status
 
1806
' 0
 
1807
for ac_signal in 1 2 13 15; do
 
1808
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1809
done
 
1810
ac_signal=0
 
1811
 
 
1812
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1813
rm -f -r conftest* confdefs.h
 
1814
 
 
1815
# Predefined preprocessor variables.
 
1816
 
 
1817
cat >>confdefs.h <<_ACEOF
 
1818
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1819
_ACEOF
 
1820
 
 
1821
 
 
1822
cat >>confdefs.h <<_ACEOF
 
1823
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1824
_ACEOF
 
1825
 
 
1826
 
 
1827
cat >>confdefs.h <<_ACEOF
 
1828
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1829
_ACEOF
 
1830
 
 
1831
 
 
1832
cat >>confdefs.h <<_ACEOF
 
1833
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1834
_ACEOF
 
1835
 
 
1836
 
 
1837
cat >>confdefs.h <<_ACEOF
 
1838
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1839
_ACEOF
 
1840
 
 
1841
 
 
1842
# Let the site file select an alternate cache file if it wants to.
 
1843
# Prefer explicitly selected file to automatically selected ones.
 
1844
if test -n "$CONFIG_SITE"; then
 
1845
  set x "$CONFIG_SITE"
 
1846
elif test "x$prefix" != xNONE; then
 
1847
  set x "$prefix/share/config.site" "$prefix/etc/config.site"
 
1848
else
 
1849
  set x "$ac_default_prefix/share/config.site" \
 
1850
        "$ac_default_prefix/etc/config.site"
 
1851
fi
 
1852
shift
 
1853
for ac_site_file
 
1854
do
 
1855
  if test -r "$ac_site_file"; then
 
1856
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1857
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1858
    sed 's/^/| /' "$ac_site_file" >&5
 
1859
    . "$ac_site_file"
 
1860
  fi
 
1861
done
 
1862
 
 
1863
if test -r "$cache_file"; then
 
1864
  # Some versions of bash will fail to source /dev/null (special
 
1865
  # files actually), so we avoid doing that.
 
1866
  if test -f "$cache_file"; then
 
1867
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1868
echo "$as_me: loading cache $cache_file" >&6;}
 
1869
    case $cache_file in
 
1870
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
1871
      *)                      . "./$cache_file";;
 
1872
    esac
 
1873
  fi
 
1874
else
 
1875
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1876
echo "$as_me: creating cache $cache_file" >&6;}
 
1877
  >$cache_file
 
1878
fi
 
1879
 
 
1880
# Check that the precious variables saved in the cache have kept the same
 
1881
# value.
 
1882
ac_cache_corrupted=false
 
1883
for ac_var in $ac_precious_vars; do
 
1884
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1885
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1886
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
1887
  eval ac_new_val=\$ac_env_${ac_var}_value
 
1888
  case $ac_old_set,$ac_new_set in
 
1889
    set,)
 
1890
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1891
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1892
      ac_cache_corrupted=: ;;
 
1893
    ,set)
 
1894
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1895
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1896
      ac_cache_corrupted=: ;;
 
1897
    ,);;
 
1898
    *)
 
1899
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1900
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1901
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1902
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1903
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1904
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1905
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1906
        ac_cache_corrupted=:
 
1907
      fi;;
 
1908
  esac
 
1909
  # Pass precious variables to config.status.
 
1910
  if test "$ac_new_set" = set; then
 
1911
    case $ac_new_val in
 
1912
    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1913
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1914
    esac
 
1915
    case " $ac_configure_args " in
 
1916
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1917
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1918
    esac
 
1919
  fi
 
1920
done
 
1921
if $ac_cache_corrupted; then
 
1922
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1923
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1924
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1925
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1926
   { (exit 1); exit 1; }; }
 
1927
fi
 
1928
 
 
1929
 
 
1930
 
 
1931
 
 
1932
 
 
1933
 
 
1934
 
 
1935
 
 
1936
 
 
1937
 
 
1938
 
 
1939
 
 
1940
 
 
1941
 
 
1942
 
 
1943
 
 
1944
 
 
1945
 
 
1946
 
 
1947
 
 
1948
 
 
1949
 
 
1950
 
 
1951
 
 
1952
 
 
1953
ac_ext=c
 
1954
ac_cpp='$CPP $CPPFLAGS'
 
1955
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1956
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1957
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1958
 
 
1959
 
 
1960
ac_config_headers="$ac_config_headers config.h"
 
1961
 
 
1962
am__api_version='1.10'
 
1963
 
 
1964
ac_aux_dir=
 
1965
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
 
1966
  if test -f "$ac_dir/install-sh"; then
 
1967
    ac_aux_dir=$ac_dir
 
1968
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
1969
    break
 
1970
  elif test -f "$ac_dir/install.sh"; then
 
1971
    ac_aux_dir=$ac_dir
 
1972
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
1973
    break
 
1974
  elif test -f "$ac_dir/shtool"; then
 
1975
    ac_aux_dir=$ac_dir
 
1976
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1977
    break
 
1978
  fi
 
1979
done
 
1980
if test -z "$ac_aux_dir"; then
 
1981
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
 
1982
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
 
1983
   { (exit 1); exit 1; }; }
 
1984
fi
 
1985
 
 
1986
# These three variables are undocumented and unsupported,
 
1987
# and are intended to be withdrawn in a future Autoconf release.
 
1988
# They can cause serious problems if a builder's source tree is in a directory
 
1989
# whose full name contains unusual characters.
 
1990
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
1991
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
1992
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
1993
 
 
1994
 
 
1995
# Find a good install program.  We prefer a C program (faster),
 
1996
# so one script is as good as another.  But avoid the broken or
 
1997
# incompatible versions:
 
1998
# SysV /etc/install, /usr/sbin/install
 
1999
# SunOS /usr/etc/install
 
2000
# IRIX /sbin/install
 
2001
# AIX /bin/install
 
2002
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
2003
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
2004
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
2005
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
2006
# OS/2's system install, which has a completely different semantic
 
2007
# ./install, which can be erroneously created by make from ./install.sh.
 
2008
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
2009
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
 
2010
if test -z "$INSTALL"; then
 
2011
if test "${ac_cv_path_install+set}" = set; then
 
2012
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2013
else
 
2014
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2015
for as_dir in $PATH
 
2016
do
 
2017
  IFS=$as_save_IFS
 
2018
  test -z "$as_dir" && as_dir=.
 
2019
  # Account for people who put trailing slashes in PATH elements.
 
2020
case $as_dir/ in
 
2021
  ./ | .// | /cC/* | \
 
2022
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
2023
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
2024
  /usr/ucb/* ) ;;
 
2025
  *)
 
2026
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
2027
    # Don't use installbsd from OSF since it installs stuff as root
 
2028
    # by default.
 
2029
    for ac_prog in ginstall scoinst install; do
 
2030
      for ac_exec_ext in '' $ac_executable_extensions; do
 
2031
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
2032
          if test $ac_prog = install &&
 
2033
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2034
            # AIX install.  It has an incompatible calling convention.
 
2035
            :
 
2036
          elif test $ac_prog = install &&
 
2037
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2038
            # program-specific install script used by HP pwplus--don't use.
 
2039
            :
 
2040
          else
 
2041
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
2042
            break 3
 
2043
          fi
 
2044
        fi
 
2045
      done
 
2046
    done
 
2047
    ;;
 
2048
esac
 
2049
done
 
2050
IFS=$as_save_IFS
 
2051
 
 
2052
 
 
2053
fi
 
2054
  if test "${ac_cv_path_install+set}" = set; then
 
2055
    INSTALL=$ac_cv_path_install
 
2056
  else
 
2057
    # As a last resort, use the slow shell script.  Don't cache a
 
2058
    # value for INSTALL within a source directory, because that will
 
2059
    # break other packages using the cache if that directory is
 
2060
    # removed, or if the value is a relative name.
 
2061
    INSTALL=$ac_install_sh
 
2062
  fi
 
2063
fi
 
2064
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
 
2065
echo "${ECHO_T}$INSTALL" >&6; }
 
2066
 
 
2067
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
2068
# It thinks the first close brace ends the variable substitution.
 
2069
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
2070
 
 
2071
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
2072
 
 
2073
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
2074
 
 
2075
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
2076
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
 
2077
# Just in case
 
2078
sleep 1
 
2079
echo timestamp > conftest.file
 
2080
# Do `set' in a subshell so we don't clobber the current shell's
 
2081
# arguments.  Must try -L first in case configure is actually a
 
2082
# symlink; some systems play weird games with the mod time of symlinks
 
2083
# (eg FreeBSD returns the mod time of the symlink's containing
 
2084
# directory).
 
2085
if (
 
2086
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
2087
   if test "$*" = "X"; then
 
2088
      # -L didn't work.
 
2089
      set X `ls -t $srcdir/configure conftest.file`
 
2090
   fi
 
2091
   rm -f conftest.file
 
2092
   if test "$*" != "X $srcdir/configure conftest.file" \
 
2093
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
2094
 
 
2095
      # If neither matched, then we have a broken ls.  This can happen
 
2096
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
2097
      # broken ls alias from the environment.  This has actually
 
2098
      # happened.  Such a system could not be considered "sane".
 
2099
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
2100
alias in your environment" >&5
 
2101
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
2102
alias in your environment" >&2;}
 
2103
   { (exit 1); exit 1; }; }
 
2104
   fi
 
2105
 
 
2106
   test "$2" = conftest.file
 
2107
   )
 
2108
then
 
2109
   # Ok.
 
2110
   :
 
2111
else
 
2112
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
2113
Check your system clock" >&5
 
2114
echo "$as_me: error: newly created file is older than distributed files!
 
2115
Check your system clock" >&2;}
 
2116
   { (exit 1); exit 1; }; }
 
2117
fi
 
2118
{ echo "$as_me:$LINENO: result: yes" >&5
 
2119
echo "${ECHO_T}yes" >&6; }
 
2120
test "$program_prefix" != NONE &&
 
2121
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
 
2122
# Use a double $ so make ignores it.
 
2123
test "$program_suffix" != NONE &&
 
2124
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
 
2125
# Double any \ or $.  echo might interpret backslashes.
 
2126
# By default was `s,x,x', remove it if useless.
 
2127
cat <<\_ACEOF >conftest.sed
 
2128
s/[\\$]/&&/g;s/;s,x,x,$//
 
2129
_ACEOF
 
2130
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 
2131
rm -f conftest.sed
 
2132
 
 
2133
# expand $ac_aux_dir to an absolute path
 
2134
am_aux_dir=`cd $ac_aux_dir && pwd`
 
2135
 
 
2136
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
2137
# Use eval to expand $SHELL
 
2138
if eval "$MISSING --run true"; then
 
2139
  am_missing_run="$MISSING --run "
 
2140
else
 
2141
  am_missing_run=
 
2142
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
2143
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
2144
fi
 
2145
 
 
2146
{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
 
2147
echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
 
2148
if test -z "$MKDIR_P"; then
 
2149
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2150
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2151
else
 
2152
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2153
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
2154
do
 
2155
  IFS=$as_save_IFS
 
2156
  test -z "$as_dir" && as_dir=.
 
2157
  for ac_prog in mkdir gmkdir; do
 
2158
         for ac_exec_ext in '' $ac_executable_extensions; do
 
2159
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
 
2160
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
 
2161
             'mkdir (GNU coreutils) '* | \
 
2162
             'mkdir (coreutils) '* | \
 
2163
             'mkdir (fileutils) '4.1*)
 
2164
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
 
2165
               break 3;;
 
2166
           esac
 
2167
         done
 
2168
       done
 
2169
done
 
2170
IFS=$as_save_IFS
 
2171
 
 
2172
fi
 
2173
 
 
2174
  if test "${ac_cv_path_mkdir+set}" = set; then
 
2175
    MKDIR_P="$ac_cv_path_mkdir -p"
 
2176
  else
 
2177
    # As a last resort, use the slow shell script.  Don't cache a
 
2178
    # value for MKDIR_P within a source directory, because that will
 
2179
    # break other packages using the cache if that directory is
 
2180
    # removed, or if the value is a relative name.
 
2181
    test -d ./--version && rmdir ./--version
 
2182
    MKDIR_P="$ac_install_sh -d"
 
2183
  fi
 
2184
fi
 
2185
{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
 
2186
echo "${ECHO_T}$MKDIR_P" >&6; }
 
2187
 
 
2188
mkdir_p="$MKDIR_P"
 
2189
case $mkdir_p in
 
2190
  [\\/$]* | ?:[\\/]*) ;;
 
2191
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
2192
esac
 
2193
 
 
2194
for ac_prog in gawk mawk nawk awk
 
2195
do
 
2196
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2197
set dummy $ac_prog; ac_word=$2
 
2198
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2199
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2200
if test "${ac_cv_prog_AWK+set}" = set; then
 
2201
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2202
else
 
2203
  if test -n "$AWK"; then
 
2204
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
2205
else
 
2206
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2207
for as_dir in $PATH
 
2208
do
 
2209
  IFS=$as_save_IFS
 
2210
  test -z "$as_dir" && as_dir=.
 
2211
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2212
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2213
    ac_cv_prog_AWK="$ac_prog"
 
2214
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2215
    break 2
 
2216
  fi
 
2217
done
 
2218
done
 
2219
IFS=$as_save_IFS
 
2220
 
 
2221
fi
 
2222
fi
 
2223
AWK=$ac_cv_prog_AWK
 
2224
if test -n "$AWK"; then
 
2225
  { echo "$as_me:$LINENO: result: $AWK" >&5
 
2226
echo "${ECHO_T}$AWK" >&6; }
 
2227
else
 
2228
  { echo "$as_me:$LINENO: result: no" >&5
 
2229
echo "${ECHO_T}no" >&6; }
 
2230
fi
 
2231
 
 
2232
 
 
2233
  test -n "$AWK" && break
 
2234
done
 
2235
 
 
2236
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2237
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
 
2238
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
2239
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
 
2240
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2241
else
 
2242
  cat >conftest.make <<\_ACEOF
 
2243
SHELL = /bin/sh
 
2244
all:
 
2245
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
2246
_ACEOF
 
2247
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
2248
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
2249
  *@@@%%%=?*=@@@%%%*)
 
2250
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
2251
  *)
 
2252
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
2253
esac
 
2254
rm -f conftest.make
 
2255
fi
 
2256
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
2257
  { echo "$as_me:$LINENO: result: yes" >&5
 
2258
echo "${ECHO_T}yes" >&6; }
 
2259
  SET_MAKE=
 
2260
else
 
2261
  { echo "$as_me:$LINENO: result: no" >&5
 
2262
echo "${ECHO_T}no" >&6; }
 
2263
  SET_MAKE="MAKE=${MAKE-make}"
 
2264
fi
 
2265
 
 
2266
rm -rf .tst 2>/dev/null
 
2267
mkdir .tst 2>/dev/null
 
2268
if test -d .tst; then
 
2269
  am__leading_dot=.
 
2270
else
 
2271
  am__leading_dot=_
 
2272
fi
 
2273
rmdir .tst 2>/dev/null
 
2274
 
 
2275
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
2276
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
2277
  # is not polluted with repeated "-I."
 
2278
  am__isrc=' -I$(srcdir)'
 
2279
  # test to see if srcdir already configured
 
2280
  if test -f $srcdir/config.status; then
 
2281
    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
2282
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
2283
   { (exit 1); exit 1; }; }
 
2284
  fi
 
2285
fi
 
2286
 
 
2287
# test whether we have cygpath
 
2288
if test -z "$CYGPATH_W"; then
 
2289
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
2290
    CYGPATH_W='cygpath -w'
 
2291
  else
 
2292
    CYGPATH_W=echo
 
2293
  fi
 
2294
fi
 
2295
 
 
2296
 
 
2297
# Define the identity of the package.
 
2298
 PACKAGE='thinkfinger'
 
2299
 VERSION='0.3'
 
2300
 
 
2301
 
 
2302
cat >>confdefs.h <<_ACEOF
 
2303
#define PACKAGE "$PACKAGE"
 
2304
_ACEOF
 
2305
 
 
2306
 
 
2307
cat >>confdefs.h <<_ACEOF
 
2308
#define VERSION "$VERSION"
 
2309
_ACEOF
 
2310
 
 
2311
# Some tools Automake needs.
 
2312
 
 
2313
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
2314
 
 
2315
 
 
2316
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
2317
 
 
2318
 
 
2319
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
2320
 
 
2321
 
 
2322
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
2323
 
 
2324
 
 
2325
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
2326
 
 
2327
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
 
2328
 
 
2329
# Installed binaries are usually stripped using `strip' when the user
 
2330
# run `make install-strip'.  However `strip' might not be the right
 
2331
# tool to use in cross-compilation environments, therefore Automake
 
2332
# will honor the `STRIP' environment variable to overrule this program.
 
2333
if test "$cross_compiling" != no; then
 
2334
  if test -n "$ac_tool_prefix"; then
 
2335
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
2336
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
2337
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2338
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2339
if test "${ac_cv_prog_STRIP+set}" = set; then
 
2340
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2341
else
 
2342
  if test -n "$STRIP"; then
 
2343
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2344
else
 
2345
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2346
for as_dir in $PATH
 
2347
do
 
2348
  IFS=$as_save_IFS
 
2349
  test -z "$as_dir" && as_dir=.
 
2350
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2351
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2352
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2353
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2354
    break 2
 
2355
  fi
 
2356
done
 
2357
done
 
2358
IFS=$as_save_IFS
 
2359
 
 
2360
fi
 
2361
fi
 
2362
STRIP=$ac_cv_prog_STRIP
 
2363
if test -n "$STRIP"; then
 
2364
  { echo "$as_me:$LINENO: result: $STRIP" >&5
 
2365
echo "${ECHO_T}$STRIP" >&6; }
 
2366
else
 
2367
  { echo "$as_me:$LINENO: result: no" >&5
 
2368
echo "${ECHO_T}no" >&6; }
 
2369
fi
 
2370
 
 
2371
 
 
2372
fi
 
2373
if test -z "$ac_cv_prog_STRIP"; then
 
2374
  ac_ct_STRIP=$STRIP
 
2375
  # Extract the first word of "strip", so it can be a program name with args.
 
2376
set dummy strip; ac_word=$2
 
2377
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2378
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2379
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
2380
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2381
else
 
2382
  if test -n "$ac_ct_STRIP"; then
 
2383
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
2384
else
 
2385
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2386
for as_dir in $PATH
 
2387
do
 
2388
  IFS=$as_save_IFS
 
2389
  test -z "$as_dir" && as_dir=.
 
2390
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2391
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2392
    ac_cv_prog_ac_ct_STRIP="strip"
 
2393
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2394
    break 2
 
2395
  fi
 
2396
done
 
2397
done
 
2398
IFS=$as_save_IFS
 
2399
 
 
2400
fi
 
2401
fi
 
2402
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
2403
if test -n "$ac_ct_STRIP"; then
 
2404
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
2405
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
 
2406
else
 
2407
  { echo "$as_me:$LINENO: result: no" >&5
 
2408
echo "${ECHO_T}no" >&6; }
 
2409
fi
 
2410
 
 
2411
  if test "x$ac_ct_STRIP" = x; then
 
2412
    STRIP=":"
 
2413
  else
 
2414
    case $cross_compiling:$ac_tool_warned in
 
2415
yes:)
 
2416
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2417
whose name does not start with the host triplet.  If you think this
 
2418
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2419
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2420
whose name does not start with the host triplet.  If you think this
 
2421
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2422
ac_tool_warned=yes ;;
 
2423
esac
 
2424
    STRIP=$ac_ct_STRIP
 
2425
  fi
 
2426
else
 
2427
  STRIP="$ac_cv_prog_STRIP"
 
2428
fi
 
2429
 
 
2430
fi
 
2431
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
2432
 
 
2433
# We need awk for the "check" target.  The system "awk" is bad on
 
2434
# some platforms.
 
2435
# Always define AMTAR for backward compatibility.
 
2436
 
 
2437
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
2438
 
 
2439
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
2440
 
 
2441
 
 
2442
 
 
2443
 
 
2444
 
 
2445
 
 
2446
 
 
2447
# Checks for required programs
 
2448
ac_ext=c
 
2449
ac_cpp='$CPP $CPPFLAGS'
 
2450
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2451
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2452
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2453
if test -n "$ac_tool_prefix"; then
 
2454
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
2455
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
2456
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2457
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2458
if test "${ac_cv_prog_CC+set}" = set; then
 
2459
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2460
else
 
2461
  if test -n "$CC"; then
 
2462
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2463
else
 
2464
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2465
for as_dir in $PATH
 
2466
do
 
2467
  IFS=$as_save_IFS
 
2468
  test -z "$as_dir" && as_dir=.
 
2469
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2470
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2471
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2472
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2473
    break 2
 
2474
  fi
 
2475
done
 
2476
done
 
2477
IFS=$as_save_IFS
 
2478
 
 
2479
fi
 
2480
fi
 
2481
CC=$ac_cv_prog_CC
 
2482
if test -n "$CC"; then
 
2483
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2484
echo "${ECHO_T}$CC" >&6; }
 
2485
else
 
2486
  { echo "$as_me:$LINENO: result: no" >&5
 
2487
echo "${ECHO_T}no" >&6; }
 
2488
fi
 
2489
 
 
2490
 
 
2491
fi
 
2492
if test -z "$ac_cv_prog_CC"; then
 
2493
  ac_ct_CC=$CC
 
2494
  # Extract the first word of "gcc", so it can be a program name with args.
 
2495
set dummy gcc; ac_word=$2
 
2496
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2497
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2498
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2499
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2500
else
 
2501
  if test -n "$ac_ct_CC"; then
 
2502
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2503
else
 
2504
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2505
for as_dir in $PATH
 
2506
do
 
2507
  IFS=$as_save_IFS
 
2508
  test -z "$as_dir" && as_dir=.
 
2509
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2510
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2511
    ac_cv_prog_ac_ct_CC="gcc"
 
2512
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2513
    break 2
 
2514
  fi
 
2515
done
 
2516
done
 
2517
IFS=$as_save_IFS
 
2518
 
 
2519
fi
 
2520
fi
 
2521
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2522
if test -n "$ac_ct_CC"; then
 
2523
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2524
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
2525
else
 
2526
  { echo "$as_me:$LINENO: result: no" >&5
 
2527
echo "${ECHO_T}no" >&6; }
 
2528
fi
 
2529
 
 
2530
  if test "x$ac_ct_CC" = x; then
 
2531
    CC=""
 
2532
  else
 
2533
    case $cross_compiling:$ac_tool_warned in
 
2534
yes:)
 
2535
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2536
whose name does not start with the host triplet.  If you think this
 
2537
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2538
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2539
whose name does not start with the host triplet.  If you think this
 
2540
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2541
ac_tool_warned=yes ;;
 
2542
esac
 
2543
    CC=$ac_ct_CC
 
2544
  fi
 
2545
else
 
2546
  CC="$ac_cv_prog_CC"
 
2547
fi
 
2548
 
 
2549
if test -z "$CC"; then
 
2550
          if test -n "$ac_tool_prefix"; then
 
2551
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2552
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
2553
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2554
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2555
if test "${ac_cv_prog_CC+set}" = set; then
 
2556
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2557
else
 
2558
  if test -n "$CC"; then
 
2559
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2560
else
 
2561
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2562
for as_dir in $PATH
 
2563
do
 
2564
  IFS=$as_save_IFS
 
2565
  test -z "$as_dir" && as_dir=.
 
2566
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2567
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2568
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2569
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2570
    break 2
 
2571
  fi
 
2572
done
 
2573
done
 
2574
IFS=$as_save_IFS
 
2575
 
 
2576
fi
 
2577
fi
 
2578
CC=$ac_cv_prog_CC
 
2579
if test -n "$CC"; then
 
2580
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2581
echo "${ECHO_T}$CC" >&6; }
 
2582
else
 
2583
  { echo "$as_me:$LINENO: result: no" >&5
 
2584
echo "${ECHO_T}no" >&6; }
 
2585
fi
 
2586
 
 
2587
 
 
2588
  fi
 
2589
fi
 
2590
if test -z "$CC"; then
 
2591
  # Extract the first word of "cc", so it can be a program name with args.
 
2592
set dummy cc; ac_word=$2
 
2593
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2594
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2595
if test "${ac_cv_prog_CC+set}" = set; then
 
2596
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2597
else
 
2598
  if test -n "$CC"; then
 
2599
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2600
else
 
2601
  ac_prog_rejected=no
 
2602
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2603
for as_dir in $PATH
 
2604
do
 
2605
  IFS=$as_save_IFS
 
2606
  test -z "$as_dir" && as_dir=.
 
2607
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2608
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2609
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2610
       ac_prog_rejected=yes
 
2611
       continue
 
2612
     fi
 
2613
    ac_cv_prog_CC="cc"
 
2614
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2615
    break 2
 
2616
  fi
 
2617
done
 
2618
done
 
2619
IFS=$as_save_IFS
 
2620
 
 
2621
if test $ac_prog_rejected = yes; then
 
2622
  # We found a bogon in the path, so make sure we never use it.
 
2623
  set dummy $ac_cv_prog_CC
 
2624
  shift
 
2625
  if test $# != 0; then
 
2626
    # We chose a different compiler from the bogus one.
 
2627
    # However, it has the same basename, so the bogon will be chosen
 
2628
    # first if we set CC to just the basename; use the full file name.
 
2629
    shift
 
2630
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
2631
  fi
 
2632
fi
 
2633
fi
 
2634
fi
 
2635
CC=$ac_cv_prog_CC
 
2636
if test -n "$CC"; then
 
2637
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2638
echo "${ECHO_T}$CC" >&6; }
 
2639
else
 
2640
  { echo "$as_me:$LINENO: result: no" >&5
 
2641
echo "${ECHO_T}no" >&6; }
 
2642
fi
 
2643
 
 
2644
 
 
2645
fi
 
2646
if test -z "$CC"; then
 
2647
  if test -n "$ac_tool_prefix"; then
 
2648
  for ac_prog in cl.exe
 
2649
  do
 
2650
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2651
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2652
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2653
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2654
if test "${ac_cv_prog_CC+set}" = set; then
 
2655
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2656
else
 
2657
  if test -n "$CC"; then
 
2658
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2659
else
 
2660
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2661
for as_dir in $PATH
 
2662
do
 
2663
  IFS=$as_save_IFS
 
2664
  test -z "$as_dir" && as_dir=.
 
2665
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2666
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2667
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2668
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2669
    break 2
 
2670
  fi
 
2671
done
 
2672
done
 
2673
IFS=$as_save_IFS
 
2674
 
 
2675
fi
 
2676
fi
 
2677
CC=$ac_cv_prog_CC
 
2678
if test -n "$CC"; then
 
2679
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2680
echo "${ECHO_T}$CC" >&6; }
 
2681
else
 
2682
  { echo "$as_me:$LINENO: result: no" >&5
 
2683
echo "${ECHO_T}no" >&6; }
 
2684
fi
 
2685
 
 
2686
 
 
2687
    test -n "$CC" && break
 
2688
  done
 
2689
fi
 
2690
if test -z "$CC"; then
 
2691
  ac_ct_CC=$CC
 
2692
  for ac_prog in cl.exe
 
2693
do
 
2694
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2695
set dummy $ac_prog; ac_word=$2
 
2696
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2697
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2698
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2699
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2700
else
 
2701
  if test -n "$ac_ct_CC"; then
 
2702
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2703
else
 
2704
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2705
for as_dir in $PATH
 
2706
do
 
2707
  IFS=$as_save_IFS
 
2708
  test -z "$as_dir" && as_dir=.
 
2709
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2710
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2711
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2712
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2713
    break 2
 
2714
  fi
 
2715
done
 
2716
done
 
2717
IFS=$as_save_IFS
 
2718
 
 
2719
fi
 
2720
fi
 
2721
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2722
if test -n "$ac_ct_CC"; then
 
2723
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2724
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
2725
else
 
2726
  { echo "$as_me:$LINENO: result: no" >&5
 
2727
echo "${ECHO_T}no" >&6; }
 
2728
fi
 
2729
 
 
2730
 
 
2731
  test -n "$ac_ct_CC" && break
 
2732
done
 
2733
 
 
2734
  if test "x$ac_ct_CC" = x; then
 
2735
    CC=""
 
2736
  else
 
2737
    case $cross_compiling:$ac_tool_warned in
 
2738
yes:)
 
2739
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2740
whose name does not start with the host triplet.  If you think this
 
2741
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2742
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2743
whose name does not start with the host triplet.  If you think this
 
2744
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2745
ac_tool_warned=yes ;;
 
2746
esac
 
2747
    CC=$ac_ct_CC
 
2748
  fi
 
2749
fi
 
2750
 
 
2751
fi
 
2752
 
 
2753
 
 
2754
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
2755
See \`config.log' for more details." >&5
 
2756
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
2757
See \`config.log' for more details." >&2;}
 
2758
   { (exit 1); exit 1; }; }
 
2759
 
 
2760
# Provide some information about the compiler.
 
2761
echo "$as_me:$LINENO: checking for C compiler version" >&5
 
2762
ac_compiler=`set X $ac_compile; echo $2`
 
2763
{ (ac_try="$ac_compiler --version >&5"
 
2764
case "(($ac_try" in
 
2765
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2766
  *) ac_try_echo=$ac_try;;
 
2767
esac
 
2768
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2769
  (eval "$ac_compiler --version >&5") 2>&5
 
2770
  ac_status=$?
 
2771
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2772
  (exit $ac_status); }
 
2773
{ (ac_try="$ac_compiler -v >&5"
 
2774
case "(($ac_try" in
 
2775
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2776
  *) ac_try_echo=$ac_try;;
 
2777
esac
 
2778
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2779
  (eval "$ac_compiler -v >&5") 2>&5
 
2780
  ac_status=$?
 
2781
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2782
  (exit $ac_status); }
 
2783
{ (ac_try="$ac_compiler -V >&5"
 
2784
case "(($ac_try" in
 
2785
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2786
  *) ac_try_echo=$ac_try;;
 
2787
esac
 
2788
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2789
  (eval "$ac_compiler -V >&5") 2>&5
 
2790
  ac_status=$?
 
2791
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2792
  (exit $ac_status); }
 
2793
 
 
2794
cat >conftest.$ac_ext <<_ACEOF
 
2795
/* confdefs.h.  */
 
2796
_ACEOF
 
2797
cat confdefs.h >>conftest.$ac_ext
 
2798
cat >>conftest.$ac_ext <<_ACEOF
 
2799
/* end confdefs.h.  */
 
2800
 
 
2801
int
 
2802
main ()
 
2803
{
 
2804
 
 
2805
  ;
 
2806
  return 0;
 
2807
}
 
2808
_ACEOF
 
2809
ac_clean_files_save=$ac_clean_files
 
2810
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
2811
# Try to create an executable without -o first, disregard a.out.
 
2812
# It will help us diagnose broken compilers, and finding out an intuition
 
2813
# of exeext.
 
2814
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
2815
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
 
2816
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2817
#
 
2818
# List of possible output files, starting from the most likely.
 
2819
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
 
2820
# only as a last resort.  b.out is created by i960 compilers.
 
2821
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
 
2822
#
 
2823
# The IRIX 6 linker writes into existing files which may not be
 
2824
# executable, retaining their permissions.  Remove them first so a
 
2825
# subsequent execution test works.
 
2826
ac_rmfiles=
 
2827
for ac_file in $ac_files
 
2828
do
 
2829
  case $ac_file in
 
2830
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
2831
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
2832
  esac
 
2833
done
 
2834
rm -f $ac_rmfiles
 
2835
 
 
2836
if { (ac_try="$ac_link_default"
 
2837
case "(($ac_try" in
 
2838
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2839
  *) ac_try_echo=$ac_try;;
 
2840
esac
 
2841
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2842
  (eval "$ac_link_default") 2>&5
 
2843
  ac_status=$?
 
2844
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2845
  (exit $ac_status); }; then
 
2846
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
2847
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
2848
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
2849
# so that the user can short-circuit this test for compilers unknown to
 
2850
# Autoconf.
 
2851
for ac_file in $ac_files ''
 
2852
do
 
2853
  test -f "$ac_file" || continue
 
2854
  case $ac_file in
 
2855
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
 
2856
        ;;
 
2857
    [ab].out )
 
2858
        # We found the default executable, but exeext='' is most
 
2859
        # certainly right.
 
2860
        break;;
 
2861
    *.* )
 
2862
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
2863
        then :; else
 
2864
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2865
        fi
 
2866
        # We set ac_cv_exeext here because the later test for it is not
 
2867
        # safe: cross compilers may not add the suffix if given an `-o'
 
2868
        # argument, so we may need to know it at that point already.
 
2869
        # Even if this section looks crufty: it has the advantage of
 
2870
        # actually working.
 
2871
        break;;
 
2872
    * )
 
2873
        break;;
 
2874
  esac
 
2875
done
 
2876
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
2877
 
 
2878
else
 
2879
  ac_file=''
 
2880
fi
 
2881
 
 
2882
{ echo "$as_me:$LINENO: result: $ac_file" >&5
 
2883
echo "${ECHO_T}$ac_file" >&6; }
 
2884
if test -z "$ac_file"; then
 
2885
  echo "$as_me: failed program was:" >&5
 
2886
sed 's/^/| /' conftest.$ac_ext >&5
 
2887
 
 
2888
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
2889
See \`config.log' for more details." >&5
 
2890
echo "$as_me: error: C compiler cannot create executables
 
2891
See \`config.log' for more details." >&2;}
 
2892
   { (exit 77); exit 77; }; }
 
2893
fi
 
2894
 
 
2895
ac_exeext=$ac_cv_exeext
 
2896
 
 
2897
# Check that the compiler produces executables we can run.  If not, either
 
2898
# the compiler is broken, or we cross compile.
 
2899
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
2900
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
 
2901
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
2902
# If not cross compiling, check that we can run a simple program.
 
2903
if test "$cross_compiling" != yes; then
 
2904
  if { ac_try='./$ac_file'
 
2905
  { (case "(($ac_try" in
 
2906
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2907
  *) ac_try_echo=$ac_try;;
 
2908
esac
 
2909
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2910
  (eval "$ac_try") 2>&5
 
2911
  ac_status=$?
 
2912
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2913
  (exit $ac_status); }; }; then
 
2914
    cross_compiling=no
 
2915
  else
 
2916
    if test "$cross_compiling" = maybe; then
 
2917
        cross_compiling=yes
 
2918
    else
 
2919
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
2920
If you meant to cross compile, use \`--host'.
 
2921
See \`config.log' for more details." >&5
 
2922
echo "$as_me: error: cannot run C compiled programs.
 
2923
If you meant to cross compile, use \`--host'.
 
2924
See \`config.log' for more details." >&2;}
 
2925
   { (exit 1); exit 1; }; }
 
2926
    fi
 
2927
  fi
 
2928
fi
 
2929
{ echo "$as_me:$LINENO: result: yes" >&5
 
2930
echo "${ECHO_T}yes" >&6; }
 
2931
 
 
2932
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
2933
ac_clean_files=$ac_clean_files_save
 
2934
# Check that the compiler produces executables we can run.  If not, either
 
2935
# the compiler is broken, or we cross compile.
 
2936
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
2937
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
 
2938
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
2939
echo "${ECHO_T}$cross_compiling" >&6; }
 
2940
 
 
2941
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
2942
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
 
2943
if { (ac_try="$ac_link"
 
2944
case "(($ac_try" in
 
2945
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2946
  *) ac_try_echo=$ac_try;;
 
2947
esac
 
2948
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2949
  (eval "$ac_link") 2>&5
 
2950
  ac_status=$?
 
2951
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2952
  (exit $ac_status); }; then
 
2953
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
2954
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
2955
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
2956
# `rm'.
 
2957
for ac_file in conftest.exe conftest conftest.*; do
 
2958
  test -f "$ac_file" || continue
 
2959
  case $ac_file in
 
2960
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
2961
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2962
          break;;
 
2963
    * ) break;;
 
2964
  esac
 
2965
done
 
2966
else
 
2967
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
2968
See \`config.log' for more details." >&5
 
2969
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
2970
See \`config.log' for more details." >&2;}
 
2971
   { (exit 1); exit 1; }; }
 
2972
fi
 
2973
 
 
2974
rm -f conftest$ac_cv_exeext
 
2975
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
2976
echo "${ECHO_T}$ac_cv_exeext" >&6; }
 
2977
 
 
2978
rm -f conftest.$ac_ext
 
2979
EXEEXT=$ac_cv_exeext
 
2980
ac_exeext=$EXEEXT
 
2981
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
2982
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
 
2983
if test "${ac_cv_objext+set}" = set; then
 
2984
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2985
else
 
2986
  cat >conftest.$ac_ext <<_ACEOF
 
2987
/* confdefs.h.  */
 
2988
_ACEOF
 
2989
cat confdefs.h >>conftest.$ac_ext
 
2990
cat >>conftest.$ac_ext <<_ACEOF
 
2991
/* end confdefs.h.  */
 
2992
 
 
2993
int
 
2994
main ()
 
2995
{
 
2996
 
 
2997
  ;
 
2998
  return 0;
 
2999
}
 
3000
_ACEOF
 
3001
rm -f conftest.o conftest.obj
 
3002
if { (ac_try="$ac_compile"
 
3003
case "(($ac_try" in
 
3004
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3005
  *) ac_try_echo=$ac_try;;
 
3006
esac
 
3007
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3008
  (eval "$ac_compile") 2>&5
 
3009
  ac_status=$?
 
3010
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3011
  (exit $ac_status); }; then
 
3012
  for ac_file in conftest.o conftest.obj conftest.*; do
 
3013
  test -f "$ac_file" || continue;
 
3014
  case $ac_file in
 
3015
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
 
3016
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
3017
       break;;
 
3018
  esac
 
3019
done
 
3020
else
 
3021
  echo "$as_me: failed program was:" >&5
 
3022
sed 's/^/| /' conftest.$ac_ext >&5
 
3023
 
 
3024
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
3025
See \`config.log' for more details." >&5
 
3026
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
3027
See \`config.log' for more details." >&2;}
 
3028
   { (exit 1); exit 1; }; }
 
3029
fi
 
3030
 
 
3031
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
3032
fi
 
3033
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
3034
echo "${ECHO_T}$ac_cv_objext" >&6; }
 
3035
OBJEXT=$ac_cv_objext
 
3036
ac_objext=$OBJEXT
 
3037
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
3038
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
 
3039
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
3040
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3041
else
 
3042
  cat >conftest.$ac_ext <<_ACEOF
 
3043
/* confdefs.h.  */
 
3044
_ACEOF
 
3045
cat confdefs.h >>conftest.$ac_ext
 
3046
cat >>conftest.$ac_ext <<_ACEOF
 
3047
/* end confdefs.h.  */
 
3048
 
 
3049
int
 
3050
main ()
 
3051
{
 
3052
#ifndef __GNUC__
 
3053
       choke me
 
3054
#endif
 
3055
 
 
3056
  ;
 
3057
  return 0;
 
3058
}
 
3059
_ACEOF
 
3060
rm -f conftest.$ac_objext
 
3061
if { (ac_try="$ac_compile"
 
3062
case "(($ac_try" in
 
3063
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3064
  *) ac_try_echo=$ac_try;;
 
3065
esac
 
3066
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3067
  (eval "$ac_compile") 2>conftest.er1
 
3068
  ac_status=$?
 
3069
  grep -v '^ *+' conftest.er1 >conftest.err
 
3070
  rm -f conftest.er1
 
3071
  cat conftest.err >&5
 
3072
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3073
  (exit $ac_status); } && {
 
3074
         test -z "$ac_c_werror_flag" ||
 
3075
         test ! -s conftest.err
 
3076
       } && test -s conftest.$ac_objext; then
 
3077
  ac_compiler_gnu=yes
 
3078
else
 
3079
  echo "$as_me: failed program was:" >&5
 
3080
sed 's/^/| /' conftest.$ac_ext >&5
 
3081
 
 
3082
        ac_compiler_gnu=no
 
3083
fi
 
3084
 
 
3085
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3086
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
3087
 
 
3088
fi
 
3089
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
3090
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
 
3091
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
3092
ac_test_CFLAGS=${CFLAGS+set}
 
3093
ac_save_CFLAGS=$CFLAGS
 
3094
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
3095
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
 
3096
if test "${ac_cv_prog_cc_g+set}" = set; then
 
3097
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3098
else
 
3099
  ac_save_c_werror_flag=$ac_c_werror_flag
 
3100
   ac_c_werror_flag=yes
 
3101
   ac_cv_prog_cc_g=no
 
3102
   CFLAGS="-g"
 
3103
   cat >conftest.$ac_ext <<_ACEOF
 
3104
/* confdefs.h.  */
 
3105
_ACEOF
 
3106
cat confdefs.h >>conftest.$ac_ext
 
3107
cat >>conftest.$ac_ext <<_ACEOF
 
3108
/* end confdefs.h.  */
 
3109
 
 
3110
int
 
3111
main ()
 
3112
{
 
3113
 
 
3114
  ;
 
3115
  return 0;
 
3116
}
 
3117
_ACEOF
 
3118
rm -f conftest.$ac_objext
 
3119
if { (ac_try="$ac_compile"
 
3120
case "(($ac_try" in
 
3121
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3122
  *) ac_try_echo=$ac_try;;
 
3123
esac
 
3124
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3125
  (eval "$ac_compile") 2>conftest.er1
 
3126
  ac_status=$?
 
3127
  grep -v '^ *+' conftest.er1 >conftest.err
 
3128
  rm -f conftest.er1
 
3129
  cat conftest.err >&5
 
3130
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3131
  (exit $ac_status); } && {
 
3132
         test -z "$ac_c_werror_flag" ||
 
3133
         test ! -s conftest.err
 
3134
       } && test -s conftest.$ac_objext; then
 
3135
  ac_cv_prog_cc_g=yes
 
3136
else
 
3137
  echo "$as_me: failed program was:" >&5
 
3138
sed 's/^/| /' conftest.$ac_ext >&5
 
3139
 
 
3140
        CFLAGS=""
 
3141
      cat >conftest.$ac_ext <<_ACEOF
 
3142
/* confdefs.h.  */
 
3143
_ACEOF
 
3144
cat confdefs.h >>conftest.$ac_ext
 
3145
cat >>conftest.$ac_ext <<_ACEOF
 
3146
/* end confdefs.h.  */
 
3147
 
 
3148
int
 
3149
main ()
 
3150
{
 
3151
 
 
3152
  ;
 
3153
  return 0;
 
3154
}
 
3155
_ACEOF
 
3156
rm -f conftest.$ac_objext
 
3157
if { (ac_try="$ac_compile"
 
3158
case "(($ac_try" in
 
3159
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3160
  *) ac_try_echo=$ac_try;;
 
3161
esac
 
3162
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3163
  (eval "$ac_compile") 2>conftest.er1
 
3164
  ac_status=$?
 
3165
  grep -v '^ *+' conftest.er1 >conftest.err
 
3166
  rm -f conftest.er1
 
3167
  cat conftest.err >&5
 
3168
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3169
  (exit $ac_status); } && {
 
3170
         test -z "$ac_c_werror_flag" ||
 
3171
         test ! -s conftest.err
 
3172
       } && test -s conftest.$ac_objext; then
 
3173
  :
 
3174
else
 
3175
  echo "$as_me: failed program was:" >&5
 
3176
sed 's/^/| /' conftest.$ac_ext >&5
 
3177
 
 
3178
        ac_c_werror_flag=$ac_save_c_werror_flag
 
3179
         CFLAGS="-g"
 
3180
         cat >conftest.$ac_ext <<_ACEOF
 
3181
/* confdefs.h.  */
 
3182
_ACEOF
 
3183
cat confdefs.h >>conftest.$ac_ext
 
3184
cat >>conftest.$ac_ext <<_ACEOF
 
3185
/* end confdefs.h.  */
 
3186
 
 
3187
int
 
3188
main ()
 
3189
{
 
3190
 
 
3191
  ;
 
3192
  return 0;
 
3193
}
 
3194
_ACEOF
 
3195
rm -f conftest.$ac_objext
 
3196
if { (ac_try="$ac_compile"
 
3197
case "(($ac_try" in
 
3198
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3199
  *) ac_try_echo=$ac_try;;
 
3200
esac
 
3201
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3202
  (eval "$ac_compile") 2>conftest.er1
 
3203
  ac_status=$?
 
3204
  grep -v '^ *+' conftest.er1 >conftest.err
 
3205
  rm -f conftest.er1
 
3206
  cat conftest.err >&5
 
3207
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3208
  (exit $ac_status); } && {
 
3209
         test -z "$ac_c_werror_flag" ||
 
3210
         test ! -s conftest.err
 
3211
       } && test -s conftest.$ac_objext; then
 
3212
  ac_cv_prog_cc_g=yes
 
3213
else
 
3214
  echo "$as_me: failed program was:" >&5
 
3215
sed 's/^/| /' conftest.$ac_ext >&5
 
3216
 
 
3217
 
 
3218
fi
 
3219
 
 
3220
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3221
fi
 
3222
 
 
3223
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3224
fi
 
3225
 
 
3226
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3227
   ac_c_werror_flag=$ac_save_c_werror_flag
 
3228
fi
 
3229
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
3230
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
 
3231
if test "$ac_test_CFLAGS" = set; then
 
3232
  CFLAGS=$ac_save_CFLAGS
 
3233
elif test $ac_cv_prog_cc_g = yes; then
 
3234
  if test "$GCC" = yes; then
 
3235
    CFLAGS="-g -O2"
 
3236
  else
 
3237
    CFLAGS="-g"
 
3238
  fi
 
3239
else
 
3240
  if test "$GCC" = yes; then
 
3241
    CFLAGS="-O2"
 
3242
  else
 
3243
    CFLAGS=
 
3244
  fi
 
3245
fi
 
3246
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
 
3247
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
 
3248
if test "${ac_cv_prog_cc_c89+set}" = set; then
 
3249
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3250
else
 
3251
  ac_cv_prog_cc_c89=no
 
3252
ac_save_CC=$CC
 
3253
cat >conftest.$ac_ext <<_ACEOF
 
3254
/* confdefs.h.  */
 
3255
_ACEOF
 
3256
cat confdefs.h >>conftest.$ac_ext
 
3257
cat >>conftest.$ac_ext <<_ACEOF
 
3258
/* end confdefs.h.  */
 
3259
#include <stdarg.h>
 
3260
#include <stdio.h>
 
3261
#include <sys/types.h>
 
3262
#include <sys/stat.h>
 
3263
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
3264
struct buf { int x; };
 
3265
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
3266
static char *e (p, i)
 
3267
     char **p;
 
3268
     int i;
 
3269
{
 
3270
  return p[i];
 
3271
}
 
3272
static char *f (char * (*g) (char **, int), char **p, ...)
 
3273
{
 
3274
  char *s;
 
3275
  va_list v;
 
3276
  va_start (v,p);
 
3277
  s = g (p, va_arg (v,int));
 
3278
  va_end (v);
 
3279
  return s;
 
3280
}
 
3281
 
 
3282
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
3283
   function prototypes and stuff, but not '\xHH' hex character constants.
 
3284
   These don't provoke an error unfortunately, instead are silently treated
 
3285
   as 'x'.  The following induces an error, until -std is added to get
 
3286
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
3287
   array size at least.  It's necessary to write '\x00'==0 to get something
 
3288
   that's true only with -std.  */
 
3289
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
3290
 
 
3291
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
3292
   inside strings and character constants.  */
 
3293
#define FOO(x) 'x'
 
3294
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
3295
 
 
3296
int test (int i, double x);
 
3297
struct s1 {int (*f) (int a);};
 
3298
struct s2 {int (*f) (double a);};
 
3299
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
3300
int argc;
 
3301
char **argv;
 
3302
int
 
3303
main ()
 
3304
{
 
3305
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
3306
  ;
 
3307
  return 0;
 
3308
}
 
3309
_ACEOF
 
3310
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
3311
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3312
do
 
3313
  CC="$ac_save_CC $ac_arg"
 
3314
  rm -f conftest.$ac_objext
 
3315
if { (ac_try="$ac_compile"
 
3316
case "(($ac_try" in
 
3317
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3318
  *) ac_try_echo=$ac_try;;
 
3319
esac
 
3320
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3321
  (eval "$ac_compile") 2>conftest.er1
 
3322
  ac_status=$?
 
3323
  grep -v '^ *+' conftest.er1 >conftest.err
 
3324
  rm -f conftest.er1
 
3325
  cat conftest.err >&5
 
3326
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3327
  (exit $ac_status); } && {
 
3328
         test -z "$ac_c_werror_flag" ||
 
3329
         test ! -s conftest.err
 
3330
       } && test -s conftest.$ac_objext; then
 
3331
  ac_cv_prog_cc_c89=$ac_arg
 
3332
else
 
3333
  echo "$as_me: failed program was:" >&5
 
3334
sed 's/^/| /' conftest.$ac_ext >&5
 
3335
 
 
3336
 
 
3337
fi
 
3338
 
 
3339
rm -f core conftest.err conftest.$ac_objext
 
3340
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
3341
done
 
3342
rm -f conftest.$ac_ext
 
3343
CC=$ac_save_CC
 
3344
 
 
3345
fi
 
3346
# AC_CACHE_VAL
 
3347
case "x$ac_cv_prog_cc_c89" in
 
3348
  x)
 
3349
    { echo "$as_me:$LINENO: result: none needed" >&5
 
3350
echo "${ECHO_T}none needed" >&6; } ;;
 
3351
  xno)
 
3352
    { echo "$as_me:$LINENO: result: unsupported" >&5
 
3353
echo "${ECHO_T}unsupported" >&6; } ;;
 
3354
  *)
 
3355
    CC="$CC $ac_cv_prog_cc_c89"
 
3356
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
 
3357
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
 
3358
esac
 
3359
 
 
3360
 
 
3361
ac_ext=c
 
3362
ac_cpp='$CPP $CPPFLAGS'
 
3363
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3364
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3365
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3366
DEPDIR="${am__leading_dot}deps"
 
3367
 
 
3368
ac_config_commands="$ac_config_commands depfiles"
 
3369
 
 
3370
 
 
3371
am_make=${MAKE-make}
 
3372
cat > confinc << 'END'
 
3373
am__doit:
 
3374
        @echo done
 
3375
.PHONY: am__doit
 
3376
END
 
3377
# If we don't find an include directive, just comment out the code.
 
3378
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
3379
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
 
3380
am__include="#"
 
3381
am__quote=
 
3382
_am_result=none
 
3383
# First try GNU make style include.
 
3384
echo "include confinc" > confmf
 
3385
# We grep out `Entering directory' and `Leaving directory'
 
3386
# messages which can occur if `w' ends up in MAKEFLAGS.
 
3387
# In particular we don't look at `^make:' because GNU make might
 
3388
# be invoked under some other name (usually "gmake"), in which
 
3389
# case it prints its new name instead of `make'.
 
3390
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
3391
   am__include=include
 
3392
   am__quote=
 
3393
   _am_result=GNU
 
3394
fi
 
3395
# Now try BSD make style include.
 
3396
if test "$am__include" = "#"; then
 
3397
   echo '.include "confinc"' > confmf
 
3398
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
3399
      am__include=.include
 
3400
      am__quote="\""
 
3401
      _am_result=BSD
 
3402
   fi
 
3403
fi
 
3404
 
 
3405
 
 
3406
{ echo "$as_me:$LINENO: result: $_am_result" >&5
 
3407
echo "${ECHO_T}$_am_result" >&6; }
 
3408
rm -f confinc confmf
 
3409
 
 
3410
# Check whether --enable-dependency-tracking was given.
 
3411
if test "${enable_dependency_tracking+set}" = set; then
 
3412
  enableval=$enable_dependency_tracking;
 
3413
fi
 
3414
 
 
3415
if test "x$enable_dependency_tracking" != xno; then
 
3416
  am_depcomp="$ac_aux_dir/depcomp"
 
3417
  AMDEPBACKSLASH='\'
 
3418
fi
 
3419
 if test "x$enable_dependency_tracking" != xno; then
 
3420
  AMDEP_TRUE=
 
3421
  AMDEP_FALSE='#'
 
3422
else
 
3423
  AMDEP_TRUE='#'
 
3424
  AMDEP_FALSE=
 
3425
fi
 
3426
 
 
3427
 
 
3428
 
 
3429
depcc="$CC"   am_compiler_list=
 
3430
 
 
3431
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
3432
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
 
3433
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
3434
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3435
else
 
3436
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3437
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3438
  # making bogus files that we don't know about and never remove.  For
 
3439
  # instance it was reported that on HP-UX the gcc test will end up
 
3440
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3441
  # in D'.
 
3442
  mkdir conftest.dir
 
3443
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3444
  # using a relative directory.
 
3445
  cp "$am_depcomp" conftest.dir
 
3446
  cd conftest.dir
 
3447
  # We will build objects and dependencies in a subdirectory because
 
3448
  # it helps to detect inapplicable dependency modes.  For instance
 
3449
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3450
  # side effect of compilation, but ICC will put the dependencies in
 
3451
  # the current directory while Tru64 will put them in the object
 
3452
  # directory.
 
3453
  mkdir sub
 
3454
 
 
3455
  am_cv_CC_dependencies_compiler_type=none
 
3456
  if test "$am_compiler_list" = ""; then
 
3457
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3458
  fi
 
3459
  for depmode in $am_compiler_list; do
 
3460
    # Setup a source with many dependencies, because some compilers
 
3461
    # like to wrap large dependency lists on column 80 (with \), and
 
3462
    # we should not choose a depcomp mode which is confused by this.
 
3463
    #
 
3464
    # We need to recreate these files for each test, as the compiler may
 
3465
    # overwrite some of them when testing with obscure command lines.
 
3466
    # This happens at least with the AIX C compiler.
 
3467
    : > sub/conftest.c
 
3468
    for i in 1 2 3 4 5 6; do
 
3469
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3470
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3471
      # Solaris 8's {/usr,}/bin/sh.
 
3472
      touch sub/conftst$i.h
 
3473
    done
 
3474
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3475
 
 
3476
    case $depmode in
 
3477
    nosideeffect)
 
3478
      # after this tag, mechanisms are not by side-effect, so they'll
 
3479
      # only be used when explicitly requested
 
3480
      if test "x$enable_dependency_tracking" = xyes; then
 
3481
        continue
 
3482
      else
 
3483
        break
 
3484
      fi
 
3485
      ;;
 
3486
    none) break ;;
 
3487
    esac
 
3488
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3489
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3490
    # handle `-M -o', and we need to detect this.
 
3491
    if depmode=$depmode \
 
3492
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
3493
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3494
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
3495
         >/dev/null 2>conftest.err &&
 
3496
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
3497
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3498
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
3499
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3500
      # icc doesn't choke on unknown options, it will just issue warnings
 
3501
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3502
      # that says an option was ignored or not supported.
 
3503
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3504
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3505
      # The diagnosis changed in icc 8.0:
 
3506
      #   icc: Command line remark: option '-MP' not supported
 
3507
      if (grep 'ignoring option' conftest.err ||
 
3508
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3509
        am_cv_CC_dependencies_compiler_type=$depmode
 
3510
        break
 
3511
      fi
 
3512
    fi
 
3513
  done
 
3514
 
 
3515
  cd ..
 
3516
  rm -rf conftest.dir
 
3517
else
 
3518
  am_cv_CC_dependencies_compiler_type=none
 
3519
fi
 
3520
 
 
3521
fi
 
3522
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3523
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
 
3524
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
3525
 
 
3526
 if
 
3527
  test "x$enable_dependency_tracking" != xno \
 
3528
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
3529
  am__fastdepCC_TRUE=
 
3530
  am__fastdepCC_FALSE='#'
 
3531
else
 
3532
  am__fastdepCC_TRUE='#'
 
3533
  am__fastdepCC_FALSE=
 
3534
fi
 
3535
 
 
3536
 
 
3537
# Find a good install program.  We prefer a C program (faster),
 
3538
# so one script is as good as another.  But avoid the broken or
 
3539
# incompatible versions:
 
3540
# SysV /etc/install, /usr/sbin/install
 
3541
# SunOS /usr/etc/install
 
3542
# IRIX /sbin/install
 
3543
# AIX /bin/install
 
3544
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
3545
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
3546
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
3547
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
3548
# OS/2's system install, which has a completely different semantic
 
3549
# ./install, which can be erroneously created by make from ./install.sh.
 
3550
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
3551
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
 
3552
if test -z "$INSTALL"; then
 
3553
if test "${ac_cv_path_install+set}" = set; then
 
3554
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3555
else
 
3556
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3557
for as_dir in $PATH
 
3558
do
 
3559
  IFS=$as_save_IFS
 
3560
  test -z "$as_dir" && as_dir=.
 
3561
  # Account for people who put trailing slashes in PATH elements.
 
3562
case $as_dir/ in
 
3563
  ./ | .// | /cC/* | \
 
3564
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
3565
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
3566
  /usr/ucb/* ) ;;
 
3567
  *)
 
3568
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
3569
    # Don't use installbsd from OSF since it installs stuff as root
 
3570
    # by default.
 
3571
    for ac_prog in ginstall scoinst install; do
 
3572
      for ac_exec_ext in '' $ac_executable_extensions; do
 
3573
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
3574
          if test $ac_prog = install &&
 
3575
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
3576
            # AIX install.  It has an incompatible calling convention.
 
3577
            :
 
3578
          elif test $ac_prog = install &&
 
3579
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
3580
            # program-specific install script used by HP pwplus--don't use.
 
3581
            :
 
3582
          else
 
3583
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
3584
            break 3
 
3585
          fi
 
3586
        fi
 
3587
      done
 
3588
    done
 
3589
    ;;
 
3590
esac
 
3591
done
 
3592
IFS=$as_save_IFS
 
3593
 
 
3594
 
 
3595
fi
 
3596
  if test "${ac_cv_path_install+set}" = set; then
 
3597
    INSTALL=$ac_cv_path_install
 
3598
  else
 
3599
    # As a last resort, use the slow shell script.  Don't cache a
 
3600
    # value for INSTALL within a source directory, because that will
 
3601
    # break other packages using the cache if that directory is
 
3602
    # removed, or if the value is a relative name.
 
3603
    INSTALL=$ac_install_sh
 
3604
  fi
 
3605
fi
 
3606
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
 
3607
echo "${ECHO_T}$INSTALL" >&6; }
 
3608
 
 
3609
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
3610
# It thinks the first close brace ends the variable substitution.
 
3611
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
3612
 
 
3613
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
3614
 
 
3615
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
3616
 
 
3617
# Check whether --enable-shared was given.
 
3618
if test "${enable_shared+set}" = set; then
 
3619
  enableval=$enable_shared; p=${PACKAGE-default}
 
3620
    case $enableval in
 
3621
    yes) enable_shared=yes ;;
 
3622
    no) enable_shared=no ;;
 
3623
    *)
 
3624
      enable_shared=no
 
3625
      # Look at the argument we got.  We use all the common list separators.
 
3626
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3627
      for pkg in $enableval; do
 
3628
        IFS="$lt_save_ifs"
 
3629
        if test "X$pkg" = "X$p"; then
 
3630
          enable_shared=yes
 
3631
        fi
 
3632
      done
 
3633
      IFS="$lt_save_ifs"
 
3634
      ;;
 
3635
    esac
 
3636
else
 
3637
  enable_shared=yes
 
3638
fi
 
3639
 
 
3640
 
 
3641
# Check whether --enable-static was given.
 
3642
if test "${enable_static+set}" = set; then
 
3643
  enableval=$enable_static; p=${PACKAGE-default}
 
3644
    case $enableval in
 
3645
    yes) enable_static=yes ;;
 
3646
    no) enable_static=no ;;
 
3647
    *)
 
3648
     enable_static=no
 
3649
      # Look at the argument we got.  We use all the common list separators.
 
3650
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3651
      for pkg in $enableval; do
 
3652
        IFS="$lt_save_ifs"
 
3653
        if test "X$pkg" = "X$p"; then
 
3654
          enable_static=yes
 
3655
        fi
 
3656
      done
 
3657
      IFS="$lt_save_ifs"
 
3658
      ;;
 
3659
    esac
 
3660
else
 
3661
  enable_static=yes
 
3662
fi
 
3663
 
 
3664
 
 
3665
# Check whether --enable-fast-install was given.
 
3666
if test "${enable_fast_install+set}" = set; then
 
3667
  enableval=$enable_fast_install; p=${PACKAGE-default}
 
3668
    case $enableval in
 
3669
    yes) enable_fast_install=yes ;;
 
3670
    no) enable_fast_install=no ;;
 
3671
    *)
 
3672
      enable_fast_install=no
 
3673
      # Look at the argument we got.  We use all the common list separators.
 
3674
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3675
      for pkg in $enableval; do
 
3676
        IFS="$lt_save_ifs"
 
3677
        if test "X$pkg" = "X$p"; then
 
3678
          enable_fast_install=yes
 
3679
        fi
 
3680
      done
 
3681
      IFS="$lt_save_ifs"
 
3682
      ;;
 
3683
    esac
 
3684
else
 
3685
  enable_fast_install=yes
 
3686
fi
 
3687
 
 
3688
 
 
3689
# Make sure we can run config.sub.
 
3690
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
3691
  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
 
3692
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
 
3693
   { (exit 1); exit 1; }; }
 
3694
 
 
3695
{ echo "$as_me:$LINENO: checking build system type" >&5
 
3696
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
 
3697
if test "${ac_cv_build+set}" = set; then
 
3698
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3699
else
 
3700
  ac_build_alias=$build_alias
 
3701
test "x$ac_build_alias" = x &&
 
3702
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
3703
test "x$ac_build_alias" = x &&
 
3704
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
3705
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
3706
   { (exit 1); exit 1; }; }
 
3707
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
3708
  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
 
3709
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
 
3710
   { (exit 1); exit 1; }; }
 
3711
 
 
3712
fi
 
3713
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
3714
echo "${ECHO_T}$ac_cv_build" >&6; }
 
3715
case $ac_cv_build in
 
3716
*-*-*) ;;
 
3717
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
 
3718
echo "$as_me: error: invalid value of canonical build" >&2;}
 
3719
   { (exit 1); exit 1; }; };;
 
3720
esac
 
3721
build=$ac_cv_build
 
3722
ac_save_IFS=$IFS; IFS='-'
 
3723
set x $ac_cv_build
 
3724
shift
 
3725
build_cpu=$1
 
3726
build_vendor=$2
 
3727
shift; shift
 
3728
# Remember, the first character of IFS is used to create $*,
 
3729
# except with old shells:
 
3730
build_os=$*
 
3731
IFS=$ac_save_IFS
 
3732
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
3733
 
 
3734
 
 
3735
{ echo "$as_me:$LINENO: checking host system type" >&5
 
3736
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
 
3737
if test "${ac_cv_host+set}" = set; then
 
3738
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3739
else
 
3740
  if test "x$host_alias" = x; then
 
3741
  ac_cv_host=$ac_cv_build
 
3742
else
 
3743
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
3744
    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
 
3745
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
 
3746
   { (exit 1); exit 1; }; }
 
3747
fi
 
3748
 
 
3749
fi
 
3750
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
3751
echo "${ECHO_T}$ac_cv_host" >&6; }
 
3752
case $ac_cv_host in
 
3753
*-*-*) ;;
 
3754
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
 
3755
echo "$as_me: error: invalid value of canonical host" >&2;}
 
3756
   { (exit 1); exit 1; }; };;
 
3757
esac
 
3758
host=$ac_cv_host
 
3759
ac_save_IFS=$IFS; IFS='-'
 
3760
set x $ac_cv_host
 
3761
shift
 
3762
host_cpu=$1
 
3763
host_vendor=$2
 
3764
shift; shift
 
3765
# Remember, the first character of IFS is used to create $*,
 
3766
# except with old shells:
 
3767
host_os=$*
 
3768
IFS=$ac_save_IFS
 
3769
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
 
3770
 
 
3771
 
 
3772
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
3773
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
 
3774
if test "${lt_cv_path_SED+set}" = set; then
 
3775
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3776
else
 
3777
  # Loop through the user's path and test for sed and gsed.
 
3778
# Then use that list of sed's as ones to test for truncation.
 
3779
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3780
for as_dir in $PATH
 
3781
do
 
3782
  IFS=$as_save_IFS
 
3783
  test -z "$as_dir" && as_dir=.
 
3784
  for lt_ac_prog in sed gsed; do
 
3785
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3786
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
3787
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
3788
      fi
 
3789
    done
 
3790
  done
 
3791
done
 
3792
lt_ac_max=0
 
3793
lt_ac_count=0
 
3794
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
3795
# along with /bin/sed that truncates output.
 
3796
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
3797
  test ! -f $lt_ac_sed && continue
 
3798
  cat /dev/null > conftest.in
 
3799
  lt_ac_count=0
 
3800
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
3801
  # Check for GNU sed and select it if it is found.
 
3802
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
3803
    lt_cv_path_SED=$lt_ac_sed
 
3804
    break
 
3805
  fi
 
3806
  while true; do
 
3807
    cat conftest.in conftest.in >conftest.tmp
 
3808
    mv conftest.tmp conftest.in
 
3809
    cp conftest.in conftest.nl
 
3810
    echo >>conftest.nl
 
3811
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
3812
    cmp -s conftest.out conftest.nl || break
 
3813
    # 10000 chars as input seems more than enough
 
3814
    test $lt_ac_count -gt 10 && break
 
3815
    lt_ac_count=`expr $lt_ac_count + 1`
 
3816
    if test $lt_ac_count -gt $lt_ac_max; then
 
3817
      lt_ac_max=$lt_ac_count
 
3818
      lt_cv_path_SED=$lt_ac_sed
 
3819
    fi
 
3820
  done
 
3821
done
 
3822
 
 
3823
fi
 
3824
 
 
3825
SED=$lt_cv_path_SED
 
3826
{ echo "$as_me:$LINENO: result: $SED" >&5
 
3827
echo "${ECHO_T}$SED" >&6; }
 
3828
 
 
3829
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
 
3830
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
 
3831
if test "${ac_cv_path_GREP+set}" = set; then
 
3832
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3833
else
 
3834
  # Extract the first word of "grep ggrep" to use in msg output
 
3835
if test -z "$GREP"; then
 
3836
set dummy grep ggrep; ac_prog_name=$2
 
3837
if test "${ac_cv_path_GREP+set}" = set; then
 
3838
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3839
else
 
3840
  ac_path_GREP_found=false
 
3841
# Loop through the user's path and test for each of PROGNAME-LIST
 
3842
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3843
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
3844
do
 
3845
  IFS=$as_save_IFS
 
3846
  test -z "$as_dir" && as_dir=.
 
3847
  for ac_prog in grep ggrep; do
 
3848
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3849
    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
3850
    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
3851
    # Check for GNU ac_path_GREP and select it if it is found.
 
3852
  # Check for GNU $ac_path_GREP
 
3853
case `"$ac_path_GREP" --version 2>&1` in
 
3854
*GNU*)
 
3855
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
3856
*)
 
3857
  ac_count=0
 
3858
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
3859
  while :
 
3860
  do
 
3861
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
3862
    mv "conftest.tmp" "conftest.in"
 
3863
    cp "conftest.in" "conftest.nl"
 
3864
    echo 'GREP' >> "conftest.nl"
 
3865
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
3866
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
3867
    ac_count=`expr $ac_count + 1`
 
3868
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
3869
      # Best one so far, save it but keep looking for a better one
 
3870
      ac_cv_path_GREP="$ac_path_GREP"
 
3871
      ac_path_GREP_max=$ac_count
 
3872
    fi
 
3873
    # 10*(2^10) chars as input seems more than enough
 
3874
    test $ac_count -gt 10 && break
 
3875
  done
 
3876
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
3877
esac
 
3878
 
 
3879
 
 
3880
    $ac_path_GREP_found && break 3
 
3881
  done
 
3882
done
 
3883
 
 
3884
done
 
3885
IFS=$as_save_IFS
 
3886
 
 
3887
 
 
3888
fi
 
3889
 
 
3890
GREP="$ac_cv_path_GREP"
 
3891
if test -z "$GREP"; then
 
3892
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
3893
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
3894
   { (exit 1); exit 1; }; }
 
3895
fi
 
3896
 
 
3897
else
 
3898
  ac_cv_path_GREP=$GREP
 
3899
fi
 
3900
 
 
3901
 
 
3902
fi
 
3903
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
 
3904
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
 
3905
 GREP="$ac_cv_path_GREP"
 
3906
 
 
3907
 
 
3908
{ echo "$as_me:$LINENO: checking for egrep" >&5
 
3909
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
 
3910
if test "${ac_cv_path_EGREP+set}" = set; then
 
3911
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3912
else
 
3913
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
3914
   then ac_cv_path_EGREP="$GREP -E"
 
3915
   else
 
3916
     # Extract the first word of "egrep" to use in msg output
 
3917
if test -z "$EGREP"; then
 
3918
set dummy egrep; ac_prog_name=$2
 
3919
if test "${ac_cv_path_EGREP+set}" = set; then
 
3920
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3921
else
 
3922
  ac_path_EGREP_found=false
 
3923
# Loop through the user's path and test for each of PROGNAME-LIST
 
3924
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3925
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
3926
do
 
3927
  IFS=$as_save_IFS
 
3928
  test -z "$as_dir" && as_dir=.
 
3929
  for ac_prog in egrep; do
 
3930
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3931
    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
3932
    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
3933
    # Check for GNU ac_path_EGREP and select it if it is found.
 
3934
  # Check for GNU $ac_path_EGREP
 
3935
case `"$ac_path_EGREP" --version 2>&1` in
 
3936
*GNU*)
 
3937
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
3938
*)
 
3939
  ac_count=0
 
3940
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
3941
  while :
 
3942
  do
 
3943
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
3944
    mv "conftest.tmp" "conftest.in"
 
3945
    cp "conftest.in" "conftest.nl"
 
3946
    echo 'EGREP' >> "conftest.nl"
 
3947
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
3948
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
3949
    ac_count=`expr $ac_count + 1`
 
3950
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
3951
      # Best one so far, save it but keep looking for a better one
 
3952
      ac_cv_path_EGREP="$ac_path_EGREP"
 
3953
      ac_path_EGREP_max=$ac_count
 
3954
    fi
 
3955
    # 10*(2^10) chars as input seems more than enough
 
3956
    test $ac_count -gt 10 && break
 
3957
  done
 
3958
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
3959
esac
 
3960
 
 
3961
 
 
3962
    $ac_path_EGREP_found && break 3
 
3963
  done
 
3964
done
 
3965
 
 
3966
done
 
3967
IFS=$as_save_IFS
 
3968
 
 
3969
 
 
3970
fi
 
3971
 
 
3972
EGREP="$ac_cv_path_EGREP"
 
3973
if test -z "$EGREP"; then
 
3974
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
3975
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
3976
   { (exit 1); exit 1; }; }
 
3977
fi
 
3978
 
 
3979
else
 
3980
  ac_cv_path_EGREP=$EGREP
 
3981
fi
 
3982
 
 
3983
 
 
3984
   fi
 
3985
fi
 
3986
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
 
3987
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
 
3988
 EGREP="$ac_cv_path_EGREP"
 
3989
 
 
3990
 
 
3991
 
 
3992
# Check whether --with-gnu-ld was given.
 
3993
if test "${with_gnu_ld+set}" = set; then
 
3994
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
3995
else
 
3996
  with_gnu_ld=no
 
3997
fi
 
3998
 
 
3999
ac_prog=ld
 
4000
if test "$GCC" = yes; then
 
4001
  # Check if gcc -print-prog-name=ld gives a path.
 
4002
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
4003
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
 
4004
  case $host in
 
4005
  *-*-mingw*)
 
4006
    # gcc leaves a trailing carriage return which upsets mingw
 
4007
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
4008
  *)
 
4009
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
4010
  esac
 
4011
  case $ac_prog in
 
4012
    # Accept absolute paths.
 
4013
    [\\/]* | ?:[\\/]*)
 
4014
      re_direlt='/[^/][^/]*/\.\./'
 
4015
      # Canonicalize the pathname of ld
 
4016
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
4017
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
4018
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
4019
      done
 
4020
      test -z "$LD" && LD="$ac_prog"
 
4021
      ;;
 
4022
  "")
 
4023
    # If it fails, then pretend we aren't using GCC.
 
4024
    ac_prog=ld
 
4025
    ;;
 
4026
  *)
 
4027
    # If it is relative, then search for the first ld in PATH.
 
4028
    with_gnu_ld=unknown
 
4029
    ;;
 
4030
  esac
 
4031
elif test "$with_gnu_ld" = yes; then
 
4032
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
 
4033
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
 
4034
else
 
4035
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
4036
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
 
4037
fi
 
4038
if test "${lt_cv_path_LD+set}" = set; then
 
4039
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4040
else
 
4041
  if test -z "$LD"; then
 
4042
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4043
  for ac_dir in $PATH; do
 
4044
    IFS="$lt_save_ifs"
 
4045
    test -z "$ac_dir" && ac_dir=.
 
4046
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
4047
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
4048
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
4049
      # but apparently some variants of GNU ld only accept -v.
 
4050
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
4051
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
4052
      *GNU* | *'with BFD'*)
 
4053
        test "$with_gnu_ld" != no && break
 
4054
        ;;
 
4055
      *)
 
4056
        test "$with_gnu_ld" != yes && break
 
4057
        ;;
 
4058
      esac
 
4059
    fi
 
4060
  done
 
4061
  IFS="$lt_save_ifs"
 
4062
else
 
4063
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
4064
fi
 
4065
fi
 
4066
 
 
4067
LD="$lt_cv_path_LD"
 
4068
if test -n "$LD"; then
 
4069
  { echo "$as_me:$LINENO: result: $LD" >&5
 
4070
echo "${ECHO_T}$LD" >&6; }
 
4071
else
 
4072
  { echo "$as_me:$LINENO: result: no" >&5
 
4073
echo "${ECHO_T}no" >&6; }
 
4074
fi
 
4075
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
4076
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
4077
   { (exit 1); exit 1; }; }
 
4078
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
4079
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
 
4080
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
4081
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4082
else
 
4083
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
4084
case `$LD -v 2>&1 </dev/null` in
 
4085
*GNU* | *'with BFD'*)
 
4086
  lt_cv_prog_gnu_ld=yes
 
4087
  ;;
 
4088
*)
 
4089
  lt_cv_prog_gnu_ld=no
 
4090
  ;;
 
4091
esac
 
4092
fi
 
4093
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
4094
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
 
4095
with_gnu_ld=$lt_cv_prog_gnu_ld
 
4096
 
 
4097
 
 
4098
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
4099
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
 
4100
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
4101
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4102
else
 
4103
  lt_cv_ld_reload_flag='-r'
 
4104
fi
 
4105
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
4106
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
 
4107
reload_flag=$lt_cv_ld_reload_flag
 
4108
case $reload_flag in
 
4109
"" | " "*) ;;
 
4110
*) reload_flag=" $reload_flag" ;;
 
4111
esac
 
4112
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4113
case $host_os in
 
4114
  darwin*)
 
4115
    if test "$GCC" = yes; then
 
4116
      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
 
4117
    else
 
4118
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4119
    fi
 
4120
    ;;
 
4121
esac
 
4122
 
 
4123
{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
4124
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
 
4125
if test "${lt_cv_path_NM+set}" = set; then
 
4126
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4127
else
 
4128
  if test -n "$NM"; then
 
4129
  # Let the user override the test.
 
4130
  lt_cv_path_NM="$NM"
 
4131
else
 
4132
  lt_nm_to_check="${ac_tool_prefix}nm"
 
4133
  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
 
4134
    lt_nm_to_check="$lt_nm_to_check nm"
 
4135
  fi
 
4136
  for lt_tmp_nm in $lt_nm_to_check; do
 
4137
    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4138
    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
 
4139
      IFS="$lt_save_ifs"
 
4140
      test -z "$ac_dir" && ac_dir=.
 
4141
      tmp_nm="$ac_dir/$lt_tmp_nm"
 
4142
      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
4143
        # Check to see if the nm accepts a BSD-compat flag.
 
4144
        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
4145
        #   nm: unknown option "B" ignored
 
4146
        # Tru64's nm complains that /dev/null is an invalid object file
 
4147
        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
4148
        */dev/null* | *'Invalid file or object type'*)
 
4149
          lt_cv_path_NM="$tmp_nm -B"
 
4150
          break
 
4151
          ;;
 
4152
        *)
 
4153
          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
4154
          */dev/null*)
 
4155
            lt_cv_path_NM="$tmp_nm -p"
 
4156
            break
 
4157
            ;;
 
4158
          *)
 
4159
            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
4160
            continue # so that we can try to find one that supports BSD flags
 
4161
            ;;
 
4162
          esac
 
4163
          ;;
 
4164
        esac
 
4165
      fi
 
4166
    done
 
4167
    IFS="$lt_save_ifs"
 
4168
  done
 
4169
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
4170
fi
 
4171
fi
 
4172
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
4173
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
 
4174
NM="$lt_cv_path_NM"
 
4175
 
 
4176
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
4177
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
 
4178
LN_S=$as_ln_s
 
4179
if test "$LN_S" = "ln -s"; then
 
4180
  { echo "$as_me:$LINENO: result: yes" >&5
 
4181
echo "${ECHO_T}yes" >&6; }
 
4182
else
 
4183
  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
4184
echo "${ECHO_T}no, using $LN_S" >&6; }
 
4185
fi
 
4186
 
 
4187
{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
 
4188
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
 
4189
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
4190
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4191
else
 
4192
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
4193
lt_cv_file_magic_test_file=
 
4194
lt_cv_deplibs_check_method='unknown'
 
4195
# Need to set the preceding variable on all platforms that support
 
4196
# interlibrary dependencies.
 
4197
# 'none' -- dependencies not supported.
 
4198
# `unknown' -- same as none, but documents that we really don't know.
 
4199
# 'pass_all' -- all dependencies passed with no checks.
 
4200
# 'test_compile' -- check by making test program.
 
4201
# 'file_magic [[regex]]' -- check by looking for files in library path
 
4202
# which responds to the $file_magic_cmd with a given extended regex.
 
4203
# If you have `file' or equivalent on your system and you're not sure
 
4204
# whether `pass_all' will *always* work, you probably want this one.
 
4205
 
 
4206
case $host_os in
 
4207
aix4* | aix5*)
 
4208
  lt_cv_deplibs_check_method=pass_all
 
4209
  ;;
 
4210
 
 
4211
beos*)
 
4212
  lt_cv_deplibs_check_method=pass_all
 
4213
  ;;
 
4214
 
 
4215
bsdi[45]*)
 
4216
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
4217
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
4218
  lt_cv_file_magic_test_file=/shlib/libc.so
 
4219
  ;;
 
4220
 
 
4221
cygwin*)
 
4222
  # func_win32_libid is a shell function defined in ltmain.sh
 
4223
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
4224
  lt_cv_file_magic_cmd='func_win32_libid'
 
4225
  ;;
 
4226
 
 
4227
mingw* | pw32*)
 
4228
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
4229
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
 
4230
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
4231
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
4232
  ;;
 
4233
 
 
4234
darwin* | rhapsody*)
 
4235
  lt_cv_deplibs_check_method=pass_all
 
4236
  ;;
 
4237
 
 
4238
freebsd* | kfreebsd*-gnu | dragonfly*)
 
4239
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
4240
    case $host_cpu in
 
4241
    i*86 )
 
4242
      # Not sure whether the presence of OpenBSD here was a mistake.
 
4243
      # Let's accept both of them until this is cleared up.
 
4244
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
4245
      lt_cv_file_magic_cmd=/usr/bin/file
 
4246
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
4247
      ;;
 
4248
    esac
 
4249
  else
 
4250
    lt_cv_deplibs_check_method=pass_all
 
4251
  fi
 
4252
  ;;
 
4253
 
 
4254
gnu*)
 
4255
  lt_cv_deplibs_check_method=pass_all
 
4256
  ;;
 
4257
 
 
4258
hpux10.20* | hpux11*)
 
4259
  lt_cv_file_magic_cmd=/usr/bin/file
 
4260
  case $host_cpu in
 
4261
  ia64*)
 
4262
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
4263
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
4264
    ;;
 
4265
  hppa*64*)
 
4266
    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]'
 
4267
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
4268
    ;;
 
4269
  *)
 
4270
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
4271
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
4272
    ;;
 
4273
  esac
 
4274
  ;;
 
4275
 
 
4276
interix3*)
 
4277
  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
 
4278
  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
 
4279
  ;;
 
4280
 
 
4281
irix5* | irix6* | nonstopux*)
 
4282
  case $LD in
 
4283
  *-32|*"-32 ") libmagic=32-bit;;
 
4284
  *-n32|*"-n32 ") libmagic=N32;;
 
4285
  *-64|*"-64 ") libmagic=64-bit;;
 
4286
  *) libmagic=never-match;;
 
4287
  esac
 
4288
  lt_cv_deplibs_check_method=pass_all
 
4289
  ;;
 
4290
 
 
4291
# This must be Linux ELF.
 
4292
linux*)
 
4293
  lt_cv_deplibs_check_method=pass_all
 
4294
  ;;
 
4295
 
 
4296
netbsd*)
 
4297
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
4298
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
4299
  else
 
4300
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
4301
  fi
 
4302
  ;;
 
4303
 
 
4304
newos6*)
 
4305
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
4306
  lt_cv_file_magic_cmd=/usr/bin/file
 
4307
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
4308
  ;;
 
4309
 
 
4310
nto-qnx*)
 
4311
  lt_cv_deplibs_check_method=unknown
 
4312
  ;;
 
4313
 
 
4314
openbsd*)
 
4315
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
4316
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
4317
  else
 
4318
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
4319
  fi
 
4320
  ;;
 
4321
 
 
4322
osf3* | osf4* | osf5*)
 
4323
  lt_cv_deplibs_check_method=pass_all
 
4324
  ;;
 
4325
 
 
4326
solaris*)
 
4327
  lt_cv_deplibs_check_method=pass_all
 
4328
  ;;
 
4329
 
 
4330
sysv4 | sysv4.3*)
 
4331
  case $host_vendor in
 
4332
  motorola)
 
4333
    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]'
 
4334
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
4335
    ;;
 
4336
  ncr)
 
4337
    lt_cv_deplibs_check_method=pass_all
 
4338
    ;;
 
4339
  sequent)
 
4340
    lt_cv_file_magic_cmd='/bin/file'
 
4341
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
4342
    ;;
 
4343
  sni)
 
4344
    lt_cv_file_magic_cmd='/bin/file'
 
4345
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
4346
    lt_cv_file_magic_test_file=/lib/libc.so
 
4347
    ;;
 
4348
  siemens)
 
4349
    lt_cv_deplibs_check_method=pass_all
 
4350
    ;;
 
4351
  pc)
 
4352
    lt_cv_deplibs_check_method=pass_all
 
4353
    ;;
 
4354
  esac
 
4355
  ;;
 
4356
 
 
4357
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
4358
  lt_cv_deplibs_check_method=pass_all
 
4359
  ;;
 
4360
esac
 
4361
 
 
4362
fi
 
4363
{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
4364
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
 
4365
file_magic_cmd=$lt_cv_file_magic_cmd
 
4366
deplibs_check_method=$lt_cv_deplibs_check_method
 
4367
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
4368
 
 
4369
 
 
4370
 
 
4371
 
 
4372
# If no C compiler was specified, use CC.
 
4373
LTCC=${LTCC-"$CC"}
 
4374
 
 
4375
# If no C compiler flags were specified, use CFLAGS.
 
4376
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
4377
 
 
4378
# Allow CC to be a program name with arguments.
 
4379
compiler=$CC
 
4380
 
 
4381
 
 
4382
# Check whether --enable-libtool-lock was given.
 
4383
if test "${enable_libtool_lock+set}" = set; then
 
4384
  enableval=$enable_libtool_lock;
 
4385
fi
 
4386
 
 
4387
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
4388
 
 
4389
# Some flags need to be propagated to the compiler or linker for good
 
4390
# libtool support.
 
4391
case $host in
 
4392
ia64-*-hpux*)
 
4393
  # Find out which ABI we are using.
 
4394
  echo 'int i;' > conftest.$ac_ext
 
4395
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4396
  (eval $ac_compile) 2>&5
 
4397
  ac_status=$?
 
4398
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4399
  (exit $ac_status); }; then
 
4400
    case `/usr/bin/file conftest.$ac_objext` in
 
4401
    *ELF-32*)
 
4402
      HPUX_IA64_MODE="32"
 
4403
      ;;
 
4404
    *ELF-64*)
 
4405
      HPUX_IA64_MODE="64"
 
4406
      ;;
 
4407
    esac
 
4408
  fi
 
4409
  rm -rf conftest*
 
4410
  ;;
 
4411
*-*-irix6*)
 
4412
  # Find out which ABI we are using.
 
4413
  echo '#line 4413 "configure"' > conftest.$ac_ext
 
4414
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4415
  (eval $ac_compile) 2>&5
 
4416
  ac_status=$?
 
4417
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4418
  (exit $ac_status); }; then
 
4419
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
4420
    case `/usr/bin/file conftest.$ac_objext` in
 
4421
    *32-bit*)
 
4422
      LD="${LD-ld} -melf32bsmip"
 
4423
      ;;
 
4424
    *N32*)
 
4425
      LD="${LD-ld} -melf32bmipn32"
 
4426
      ;;
 
4427
    *64-bit*)
 
4428
      LD="${LD-ld} -melf64bmip"
 
4429
      ;;
 
4430
    esac
 
4431
   else
 
4432
    case `/usr/bin/file conftest.$ac_objext` in
 
4433
    *32-bit*)
 
4434
      LD="${LD-ld} -32"
 
4435
      ;;
 
4436
    *N32*)
 
4437
      LD="${LD-ld} -n32"
 
4438
      ;;
 
4439
    *64-bit*)
 
4440
      LD="${LD-ld} -64"
 
4441
      ;;
 
4442
    esac
 
4443
   fi
 
4444
  fi
 
4445
  rm -rf conftest*
 
4446
  ;;
 
4447
 
 
4448
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
4449
  # Find out which ABI we are using.
 
4450
  echo 'int i;' > conftest.$ac_ext
 
4451
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4452
  (eval $ac_compile) 2>&5
 
4453
  ac_status=$?
 
4454
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4455
  (exit $ac_status); }; then
 
4456
    case `/usr/bin/file conftest.o` in
 
4457
    *32-bit*)
 
4458
      case $host in
 
4459
        x86_64-*linux*)
 
4460
          LD="${LD-ld} -m elf_i386"
 
4461
          ;;
 
4462
        ppc64-*linux*|powerpc64-*linux*)
 
4463
          LD="${LD-ld} -m elf32ppclinux"
 
4464
          ;;
 
4465
        s390x-*linux*)
 
4466
          LD="${LD-ld} -m elf_s390"
 
4467
          ;;
 
4468
        sparc64-*linux*)
 
4469
          LD="${LD-ld} -m elf32_sparc"
 
4470
          ;;
 
4471
      esac
 
4472
      ;;
 
4473
    *64-bit*)
 
4474
      case $host in
 
4475
        x86_64-*linux*)
 
4476
          LD="${LD-ld} -m elf_x86_64"
 
4477
          ;;
 
4478
        ppc*-*linux*|powerpc*-*linux*)
 
4479
          LD="${LD-ld} -m elf64ppc"
 
4480
          ;;
 
4481
        s390*-*linux*)
 
4482
          LD="${LD-ld} -m elf64_s390"
 
4483
          ;;
 
4484
        sparc*-*linux*)
 
4485
          LD="${LD-ld} -m elf64_sparc"
 
4486
          ;;
 
4487
      esac
 
4488
      ;;
 
4489
    esac
 
4490
  fi
 
4491
  rm -rf conftest*
 
4492
  ;;
 
4493
 
 
4494
*-*-sco3.2v5*)
 
4495
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
4496
  SAVE_CFLAGS="$CFLAGS"
 
4497
  CFLAGS="$CFLAGS -belf"
 
4498
  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
4499
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
 
4500
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
4501
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4502
else
 
4503
  ac_ext=c
 
4504
ac_cpp='$CPP $CPPFLAGS'
 
4505
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4506
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4507
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4508
 
 
4509
     cat >conftest.$ac_ext <<_ACEOF
 
4510
/* confdefs.h.  */
 
4511
_ACEOF
 
4512
cat confdefs.h >>conftest.$ac_ext
 
4513
cat >>conftest.$ac_ext <<_ACEOF
 
4514
/* end confdefs.h.  */
 
4515
 
 
4516
int
 
4517
main ()
 
4518
{
 
4519
 
 
4520
  ;
 
4521
  return 0;
 
4522
}
 
4523
_ACEOF
 
4524
rm -f conftest.$ac_objext conftest$ac_exeext
 
4525
if { (ac_try="$ac_link"
 
4526
case "(($ac_try" in
 
4527
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4528
  *) ac_try_echo=$ac_try;;
 
4529
esac
 
4530
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4531
  (eval "$ac_link") 2>conftest.er1
 
4532
  ac_status=$?
 
4533
  grep -v '^ *+' conftest.er1 >conftest.err
 
4534
  rm -f conftest.er1
 
4535
  cat conftest.err >&5
 
4536
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4537
  (exit $ac_status); } && {
 
4538
         test -z "$ac_c_werror_flag" ||
 
4539
         test ! -s conftest.err
 
4540
       } && test -s conftest$ac_exeext &&
 
4541
       $as_test_x conftest$ac_exeext; then
 
4542
  lt_cv_cc_needs_belf=yes
 
4543
else
 
4544
  echo "$as_me: failed program was:" >&5
 
4545
sed 's/^/| /' conftest.$ac_ext >&5
 
4546
 
 
4547
        lt_cv_cc_needs_belf=no
 
4548
fi
 
4549
 
 
4550
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
4551
      conftest$ac_exeext conftest.$ac_ext
 
4552
     ac_ext=c
 
4553
ac_cpp='$CPP $CPPFLAGS'
 
4554
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4555
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4556
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4557
 
 
4558
fi
 
4559
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
4560
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
 
4561
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
4562
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
4563
    CFLAGS="$SAVE_CFLAGS"
 
4564
  fi
 
4565
  ;;
 
4566
sparc*-*solaris*)
 
4567
  # Find out which ABI we are using.
 
4568
  echo 'int i;' > conftest.$ac_ext
 
4569
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4570
  (eval $ac_compile) 2>&5
 
4571
  ac_status=$?
 
4572
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4573
  (exit $ac_status); }; then
 
4574
    case `/usr/bin/file conftest.o` in
 
4575
    *64-bit*)
 
4576
      case $lt_cv_prog_gnu_ld in
 
4577
      yes*) LD="${LD-ld} -m elf64_sparc" ;;
 
4578
      *)    LD="${LD-ld} -64" ;;
 
4579
      esac
 
4580
      ;;
 
4581
    esac
 
4582
  fi
 
4583
  rm -rf conftest*
 
4584
  ;;
 
4585
 
 
4586
 
 
4587
esac
 
4588
 
 
4589
need_locks="$enable_libtool_lock"
 
4590
 
 
4591
 
 
4592
ac_ext=c
 
4593
ac_cpp='$CPP $CPPFLAGS'
 
4594
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4595
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4596
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4597
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
4598
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
 
4599
# On Suns, sometimes $CPP names a directory.
 
4600
if test -n "$CPP" && test -d "$CPP"; then
 
4601
  CPP=
 
4602
fi
 
4603
if test -z "$CPP"; then
 
4604
  if test "${ac_cv_prog_CPP+set}" = set; then
 
4605
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4606
else
 
4607
      # Double quotes because CPP needs to be expanded
 
4608
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
4609
    do
 
4610
      ac_preproc_ok=false
 
4611
for ac_c_preproc_warn_flag in '' yes
 
4612
do
 
4613
  # Use a header file that comes with gcc, so configuring glibc
 
4614
  # with a fresh cross-compiler works.
 
4615
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4616
  # <limits.h> exists even on freestanding compilers.
 
4617
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4618
  # not just through cpp. "Syntax error" is here to catch this case.
 
4619
  cat >conftest.$ac_ext <<_ACEOF
 
4620
/* confdefs.h.  */
 
4621
_ACEOF
 
4622
cat confdefs.h >>conftest.$ac_ext
 
4623
cat >>conftest.$ac_ext <<_ACEOF
 
4624
/* end confdefs.h.  */
 
4625
#ifdef __STDC__
 
4626
# include <limits.h>
 
4627
#else
 
4628
# include <assert.h>
 
4629
#endif
 
4630
                     Syntax error
 
4631
_ACEOF
 
4632
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4633
case "(($ac_try" in
 
4634
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4635
  *) ac_try_echo=$ac_try;;
 
4636
esac
 
4637
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4638
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4639
  ac_status=$?
 
4640
  grep -v '^ *+' conftest.er1 >conftest.err
 
4641
  rm -f conftest.er1
 
4642
  cat conftest.err >&5
 
4643
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4644
  (exit $ac_status); } >/dev/null && {
 
4645
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4646
         test ! -s conftest.err
 
4647
       }; then
 
4648
  :
 
4649
else
 
4650
  echo "$as_me: failed program was:" >&5
 
4651
sed 's/^/| /' conftest.$ac_ext >&5
 
4652
 
 
4653
  # Broken: fails on valid input.
 
4654
continue
 
4655
fi
 
4656
 
 
4657
rm -f conftest.err conftest.$ac_ext
 
4658
 
 
4659
  # OK, works on sane cases.  Now check whether nonexistent headers
 
4660
  # can be detected and how.
 
4661
  cat >conftest.$ac_ext <<_ACEOF
 
4662
/* confdefs.h.  */
 
4663
_ACEOF
 
4664
cat confdefs.h >>conftest.$ac_ext
 
4665
cat >>conftest.$ac_ext <<_ACEOF
 
4666
/* end confdefs.h.  */
 
4667
#include <ac_nonexistent.h>
 
4668
_ACEOF
 
4669
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4670
case "(($ac_try" in
 
4671
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4672
  *) ac_try_echo=$ac_try;;
 
4673
esac
 
4674
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4675
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4676
  ac_status=$?
 
4677
  grep -v '^ *+' conftest.er1 >conftest.err
 
4678
  rm -f conftest.er1
 
4679
  cat conftest.err >&5
 
4680
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4681
  (exit $ac_status); } >/dev/null && {
 
4682
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4683
         test ! -s conftest.err
 
4684
       }; then
 
4685
  # Broken: success on invalid input.
 
4686
continue
 
4687
else
 
4688
  echo "$as_me: failed program was:" >&5
 
4689
sed 's/^/| /' conftest.$ac_ext >&5
 
4690
 
 
4691
  # Passes both tests.
 
4692
ac_preproc_ok=:
 
4693
break
 
4694
fi
 
4695
 
 
4696
rm -f conftest.err conftest.$ac_ext
 
4697
 
 
4698
done
 
4699
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4700
rm -f conftest.err conftest.$ac_ext
 
4701
if $ac_preproc_ok; then
 
4702
  break
 
4703
fi
 
4704
 
 
4705
    done
 
4706
    ac_cv_prog_CPP=$CPP
 
4707
 
 
4708
fi
 
4709
  CPP=$ac_cv_prog_CPP
 
4710
else
 
4711
  ac_cv_prog_CPP=$CPP
 
4712
fi
 
4713
{ echo "$as_me:$LINENO: result: $CPP" >&5
 
4714
echo "${ECHO_T}$CPP" >&6; }
 
4715
ac_preproc_ok=false
 
4716
for ac_c_preproc_warn_flag in '' yes
 
4717
do
 
4718
  # Use a header file that comes with gcc, so configuring glibc
 
4719
  # with a fresh cross-compiler works.
 
4720
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4721
  # <limits.h> exists even on freestanding compilers.
 
4722
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4723
  # not just through cpp. "Syntax error" is here to catch this case.
 
4724
  cat >conftest.$ac_ext <<_ACEOF
 
4725
/* confdefs.h.  */
 
4726
_ACEOF
 
4727
cat confdefs.h >>conftest.$ac_ext
 
4728
cat >>conftest.$ac_ext <<_ACEOF
 
4729
/* end confdefs.h.  */
 
4730
#ifdef __STDC__
 
4731
# include <limits.h>
 
4732
#else
 
4733
# include <assert.h>
 
4734
#endif
 
4735
                     Syntax error
 
4736
_ACEOF
 
4737
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4738
case "(($ac_try" in
 
4739
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4740
  *) ac_try_echo=$ac_try;;
 
4741
esac
 
4742
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4743
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4744
  ac_status=$?
 
4745
  grep -v '^ *+' conftest.er1 >conftest.err
 
4746
  rm -f conftest.er1
 
4747
  cat conftest.err >&5
 
4748
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4749
  (exit $ac_status); } >/dev/null && {
 
4750
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4751
         test ! -s conftest.err
 
4752
       }; then
 
4753
  :
 
4754
else
 
4755
  echo "$as_me: failed program was:" >&5
 
4756
sed 's/^/| /' conftest.$ac_ext >&5
 
4757
 
 
4758
  # Broken: fails on valid input.
 
4759
continue
 
4760
fi
 
4761
 
 
4762
rm -f conftest.err conftest.$ac_ext
 
4763
 
 
4764
  # OK, works on sane cases.  Now check whether nonexistent headers
 
4765
  # can be detected and how.
 
4766
  cat >conftest.$ac_ext <<_ACEOF
 
4767
/* confdefs.h.  */
 
4768
_ACEOF
 
4769
cat confdefs.h >>conftest.$ac_ext
 
4770
cat >>conftest.$ac_ext <<_ACEOF
 
4771
/* end confdefs.h.  */
 
4772
#include <ac_nonexistent.h>
 
4773
_ACEOF
 
4774
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4775
case "(($ac_try" in
 
4776
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4777
  *) ac_try_echo=$ac_try;;
 
4778
esac
 
4779
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4780
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4781
  ac_status=$?
 
4782
  grep -v '^ *+' conftest.er1 >conftest.err
 
4783
  rm -f conftest.er1
 
4784
  cat conftest.err >&5
 
4785
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4786
  (exit $ac_status); } >/dev/null && {
 
4787
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4788
         test ! -s conftest.err
 
4789
       }; then
 
4790
  # Broken: success on invalid input.
 
4791
continue
 
4792
else
 
4793
  echo "$as_me: failed program was:" >&5
 
4794
sed 's/^/| /' conftest.$ac_ext >&5
 
4795
 
 
4796
  # Passes both tests.
 
4797
ac_preproc_ok=:
 
4798
break
 
4799
fi
 
4800
 
 
4801
rm -f conftest.err conftest.$ac_ext
 
4802
 
 
4803
done
 
4804
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4805
rm -f conftest.err conftest.$ac_ext
 
4806
if $ac_preproc_ok; then
 
4807
  :
 
4808
else
 
4809
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
4810
See \`config.log' for more details." >&5
 
4811
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
4812
See \`config.log' for more details." >&2;}
 
4813
   { (exit 1); exit 1; }; }
 
4814
fi
 
4815
 
 
4816
ac_ext=c
 
4817
ac_cpp='$CPP $CPPFLAGS'
 
4818
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4819
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4820
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4821
 
 
4822
 
 
4823
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
4824
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
 
4825
if test "${ac_cv_header_stdc+set}" = set; then
 
4826
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4827
else
 
4828
  cat >conftest.$ac_ext <<_ACEOF
 
4829
/* confdefs.h.  */
 
4830
_ACEOF
 
4831
cat confdefs.h >>conftest.$ac_ext
 
4832
cat >>conftest.$ac_ext <<_ACEOF
 
4833
/* end confdefs.h.  */
 
4834
#include <stdlib.h>
 
4835
#include <stdarg.h>
 
4836
#include <string.h>
 
4837
#include <float.h>
 
4838
 
 
4839
int
 
4840
main ()
 
4841
{
 
4842
 
 
4843
  ;
 
4844
  return 0;
 
4845
}
 
4846
_ACEOF
 
4847
rm -f conftest.$ac_objext
 
4848
if { (ac_try="$ac_compile"
 
4849
case "(($ac_try" in
 
4850
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4851
  *) ac_try_echo=$ac_try;;
 
4852
esac
 
4853
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4854
  (eval "$ac_compile") 2>conftest.er1
 
4855
  ac_status=$?
 
4856
  grep -v '^ *+' conftest.er1 >conftest.err
 
4857
  rm -f conftest.er1
 
4858
  cat conftest.err >&5
 
4859
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4860
  (exit $ac_status); } && {
 
4861
         test -z "$ac_c_werror_flag" ||
 
4862
         test ! -s conftest.err
 
4863
       } && test -s conftest.$ac_objext; then
 
4864
  ac_cv_header_stdc=yes
 
4865
else
 
4866
  echo "$as_me: failed program was:" >&5
 
4867
sed 's/^/| /' conftest.$ac_ext >&5
 
4868
 
 
4869
        ac_cv_header_stdc=no
 
4870
fi
 
4871
 
 
4872
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4873
 
 
4874
if test $ac_cv_header_stdc = yes; then
 
4875
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
4876
  cat >conftest.$ac_ext <<_ACEOF
 
4877
/* confdefs.h.  */
 
4878
_ACEOF
 
4879
cat confdefs.h >>conftest.$ac_ext
 
4880
cat >>conftest.$ac_ext <<_ACEOF
 
4881
/* end confdefs.h.  */
 
4882
#include <string.h>
 
4883
 
 
4884
_ACEOF
 
4885
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4886
  $EGREP "memchr" >/dev/null 2>&1; then
 
4887
  :
 
4888
else
 
4889
  ac_cv_header_stdc=no
 
4890
fi
 
4891
rm -f conftest*
 
4892
 
 
4893
fi
 
4894
 
 
4895
if test $ac_cv_header_stdc = yes; then
 
4896
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
4897
  cat >conftest.$ac_ext <<_ACEOF
 
4898
/* confdefs.h.  */
 
4899
_ACEOF
 
4900
cat confdefs.h >>conftest.$ac_ext
 
4901
cat >>conftest.$ac_ext <<_ACEOF
 
4902
/* end confdefs.h.  */
 
4903
#include <stdlib.h>
 
4904
 
 
4905
_ACEOF
 
4906
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4907
  $EGREP "free" >/dev/null 2>&1; then
 
4908
  :
 
4909
else
 
4910
  ac_cv_header_stdc=no
 
4911
fi
 
4912
rm -f conftest*
 
4913
 
 
4914
fi
 
4915
 
 
4916
if test $ac_cv_header_stdc = yes; then
 
4917
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
4918
  if test "$cross_compiling" = yes; then
 
4919
  :
 
4920
else
 
4921
  cat >conftest.$ac_ext <<_ACEOF
 
4922
/* confdefs.h.  */
 
4923
_ACEOF
 
4924
cat confdefs.h >>conftest.$ac_ext
 
4925
cat >>conftest.$ac_ext <<_ACEOF
 
4926
/* end confdefs.h.  */
 
4927
#include <ctype.h>
 
4928
#include <stdlib.h>
 
4929
#if ((' ' & 0x0FF) == 0x020)
 
4930
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
4931
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
4932
#else
 
4933
# define ISLOWER(c) \
 
4934
                   (('a' <= (c) && (c) <= 'i') \
 
4935
                     || ('j' <= (c) && (c) <= 'r') \
 
4936
                     || ('s' <= (c) && (c) <= 'z'))
 
4937
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
4938
#endif
 
4939
 
 
4940
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
4941
int
 
4942
main ()
 
4943
{
 
4944
  int i;
 
4945
  for (i = 0; i < 256; i++)
 
4946
    if (XOR (islower (i), ISLOWER (i))
 
4947
        || toupper (i) != TOUPPER (i))
 
4948
      return 2;
 
4949
  return 0;
 
4950
}
 
4951
_ACEOF
 
4952
rm -f conftest$ac_exeext
 
4953
if { (ac_try="$ac_link"
 
4954
case "(($ac_try" in
 
4955
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4956
  *) ac_try_echo=$ac_try;;
 
4957
esac
 
4958
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4959
  (eval "$ac_link") 2>&5
 
4960
  ac_status=$?
 
4961
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4962
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
4963
  { (case "(($ac_try" in
 
4964
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4965
  *) ac_try_echo=$ac_try;;
 
4966
esac
 
4967
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4968
  (eval "$ac_try") 2>&5
 
4969
  ac_status=$?
 
4970
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4971
  (exit $ac_status); }; }; then
 
4972
  :
 
4973
else
 
4974
  echo "$as_me: program exited with status $ac_status" >&5
 
4975
echo "$as_me: failed program was:" >&5
 
4976
sed 's/^/| /' conftest.$ac_ext >&5
 
4977
 
 
4978
( exit $ac_status )
 
4979
ac_cv_header_stdc=no
 
4980
fi
 
4981
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4982
fi
 
4983
 
 
4984
 
 
4985
fi
 
4986
fi
 
4987
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
4988
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
 
4989
if test $ac_cv_header_stdc = yes; then
 
4990
 
 
4991
cat >>confdefs.h <<\_ACEOF
 
4992
#define STDC_HEADERS 1
 
4993
_ACEOF
 
4994
 
 
4995
fi
 
4996
 
 
4997
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
4998
 
 
4999
 
 
5000
 
 
5001
 
 
5002
 
 
5003
 
 
5004
 
 
5005
 
 
5006
 
 
5007
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
5008
                  inttypes.h stdint.h unistd.h
 
5009
do
 
5010
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5011
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5012
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5013
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5014
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5015
else
 
5016
  cat >conftest.$ac_ext <<_ACEOF
 
5017
/* confdefs.h.  */
 
5018
_ACEOF
 
5019
cat confdefs.h >>conftest.$ac_ext
 
5020
cat >>conftest.$ac_ext <<_ACEOF
 
5021
/* end confdefs.h.  */
 
5022
$ac_includes_default
 
5023
 
 
5024
#include <$ac_header>
 
5025
_ACEOF
 
5026
rm -f conftest.$ac_objext
 
5027
if { (ac_try="$ac_compile"
 
5028
case "(($ac_try" in
 
5029
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5030
  *) ac_try_echo=$ac_try;;
 
5031
esac
 
5032
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5033
  (eval "$ac_compile") 2>conftest.er1
 
5034
  ac_status=$?
 
5035
  grep -v '^ *+' conftest.er1 >conftest.err
 
5036
  rm -f conftest.er1
 
5037
  cat conftest.err >&5
 
5038
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5039
  (exit $ac_status); } && {
 
5040
         test -z "$ac_c_werror_flag" ||
 
5041
         test ! -s conftest.err
 
5042
       } && test -s conftest.$ac_objext; then
 
5043
  eval "$as_ac_Header=yes"
 
5044
else
 
5045
  echo "$as_me: failed program was:" >&5
 
5046
sed 's/^/| /' conftest.$ac_ext >&5
 
5047
 
 
5048
        eval "$as_ac_Header=no"
 
5049
fi
 
5050
 
 
5051
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5052
fi
 
5053
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5054
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5055
echo "${ECHO_T}$ac_res" >&6; }
 
5056
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5057
  cat >>confdefs.h <<_ACEOF
 
5058
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5059
_ACEOF
 
5060
 
 
5061
fi
 
5062
 
 
5063
done
 
5064
 
 
5065
 
 
5066
 
 
5067
for ac_header in dlfcn.h
 
5068
do
 
5069
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5070
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5071
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5072
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5073
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5074
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5075
fi
 
5076
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5077
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5078
echo "${ECHO_T}$ac_res" >&6; }
 
5079
else
 
5080
  # Is the header compilable?
 
5081
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
5082
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
5083
cat >conftest.$ac_ext <<_ACEOF
 
5084
/* confdefs.h.  */
 
5085
_ACEOF
 
5086
cat confdefs.h >>conftest.$ac_ext
 
5087
cat >>conftest.$ac_ext <<_ACEOF
 
5088
/* end confdefs.h.  */
 
5089
$ac_includes_default
 
5090
#include <$ac_header>
 
5091
_ACEOF
 
5092
rm -f conftest.$ac_objext
 
5093
if { (ac_try="$ac_compile"
 
5094
case "(($ac_try" in
 
5095
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5096
  *) ac_try_echo=$ac_try;;
 
5097
esac
 
5098
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5099
  (eval "$ac_compile") 2>conftest.er1
 
5100
  ac_status=$?
 
5101
  grep -v '^ *+' conftest.er1 >conftest.err
 
5102
  rm -f conftest.er1
 
5103
  cat conftest.err >&5
 
5104
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5105
  (exit $ac_status); } && {
 
5106
         test -z "$ac_c_werror_flag" ||
 
5107
         test ! -s conftest.err
 
5108
       } && test -s conftest.$ac_objext; then
 
5109
  ac_header_compiler=yes
 
5110
else
 
5111
  echo "$as_me: failed program was:" >&5
 
5112
sed 's/^/| /' conftest.$ac_ext >&5
 
5113
 
 
5114
        ac_header_compiler=no
 
5115
fi
 
5116
 
 
5117
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5118
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
5119
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
5120
 
 
5121
# Is the header present?
 
5122
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
5123
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
5124
cat >conftest.$ac_ext <<_ACEOF
 
5125
/* confdefs.h.  */
 
5126
_ACEOF
 
5127
cat confdefs.h >>conftest.$ac_ext
 
5128
cat >>conftest.$ac_ext <<_ACEOF
 
5129
/* end confdefs.h.  */
 
5130
#include <$ac_header>
 
5131
_ACEOF
 
5132
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5133
case "(($ac_try" in
 
5134
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5135
  *) ac_try_echo=$ac_try;;
 
5136
esac
 
5137
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5138
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5139
  ac_status=$?
 
5140
  grep -v '^ *+' conftest.er1 >conftest.err
 
5141
  rm -f conftest.er1
 
5142
  cat conftest.err >&5
 
5143
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5144
  (exit $ac_status); } >/dev/null && {
 
5145
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
5146
         test ! -s conftest.err
 
5147
       }; then
 
5148
  ac_header_preproc=yes
 
5149
else
 
5150
  echo "$as_me: failed program was:" >&5
 
5151
sed 's/^/| /' conftest.$ac_ext >&5
 
5152
 
 
5153
  ac_header_preproc=no
 
5154
fi
 
5155
 
 
5156
rm -f conftest.err conftest.$ac_ext
 
5157
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
5158
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
5159
 
 
5160
# So?  What about this header?
 
5161
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
5162
  yes:no: )
 
5163
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
5164
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
5165
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
5166
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
5167
    ac_header_preproc=yes
 
5168
    ;;
 
5169
  no:yes:* )
 
5170
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
5171
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
5172
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
5173
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
5174
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
5175
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
5176
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
5177
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
5178
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
5179
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5180
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
5181
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
5182
    ( cat <<\_ASBOX
 
5183
## -------------------------------------------------- ##
 
5184
## Report this to http://thinkfinger.sourceforge.net/ ##
 
5185
## -------------------------------------------------- ##
 
5186
_ASBOX
 
5187
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
5188
    ;;
 
5189
esac
 
5190
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5191
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5192
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5193
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5194
else
 
5195
  eval "$as_ac_Header=\$ac_header_preproc"
 
5196
fi
 
5197
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5198
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5199
echo "${ECHO_T}$ac_res" >&6; }
 
5200
 
 
5201
fi
 
5202
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5203
  cat >>confdefs.h <<_ACEOF
 
5204
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5205
_ACEOF
 
5206
 
 
5207
fi
 
5208
 
 
5209
done
 
5210
 
 
5211
ac_ext=cpp
 
5212
ac_cpp='$CXXCPP $CPPFLAGS'
 
5213
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5214
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5215
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5216
if test -z "$CXX"; then
 
5217
  if test -n "$CCC"; then
 
5218
    CXX=$CCC
 
5219
  else
 
5220
    if test -n "$ac_tool_prefix"; then
 
5221
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
5222
  do
 
5223
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5224
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5225
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5226
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5227
if test "${ac_cv_prog_CXX+set}" = set; then
 
5228
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5229
else
 
5230
  if test -n "$CXX"; then
 
5231
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
5232
else
 
5233
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5234
for as_dir in $PATH
 
5235
do
 
5236
  IFS=$as_save_IFS
 
5237
  test -z "$as_dir" && as_dir=.
 
5238
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5239
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5240
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
5241
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5242
    break 2
 
5243
  fi
 
5244
done
 
5245
done
 
5246
IFS=$as_save_IFS
 
5247
 
 
5248
fi
 
5249
fi
 
5250
CXX=$ac_cv_prog_CXX
 
5251
if test -n "$CXX"; then
 
5252
  { echo "$as_me:$LINENO: result: $CXX" >&5
 
5253
echo "${ECHO_T}$CXX" >&6; }
 
5254
else
 
5255
  { echo "$as_me:$LINENO: result: no" >&5
 
5256
echo "${ECHO_T}no" >&6; }
 
5257
fi
 
5258
 
 
5259
 
 
5260
    test -n "$CXX" && break
 
5261
  done
 
5262
fi
 
5263
if test -z "$CXX"; then
 
5264
  ac_ct_CXX=$CXX
 
5265
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
5266
do
 
5267
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5268
set dummy $ac_prog; ac_word=$2
 
5269
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5270
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5271
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
5272
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5273
else
 
5274
  if test -n "$ac_ct_CXX"; then
 
5275
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
5276
else
 
5277
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5278
for as_dir in $PATH
 
5279
do
 
5280
  IFS=$as_save_IFS
 
5281
  test -z "$as_dir" && as_dir=.
 
5282
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5283
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5284
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
5285
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5286
    break 2
 
5287
  fi
 
5288
done
 
5289
done
 
5290
IFS=$as_save_IFS
 
5291
 
 
5292
fi
 
5293
fi
 
5294
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
5295
if test -n "$ac_ct_CXX"; then
 
5296
  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
5297
echo "${ECHO_T}$ac_ct_CXX" >&6; }
 
5298
else
 
5299
  { echo "$as_me:$LINENO: result: no" >&5
 
5300
echo "${ECHO_T}no" >&6; }
 
5301
fi
 
5302
 
 
5303
 
 
5304
  test -n "$ac_ct_CXX" && break
 
5305
done
 
5306
 
 
5307
  if test "x$ac_ct_CXX" = x; then
 
5308
    CXX="g++"
 
5309
  else
 
5310
    case $cross_compiling:$ac_tool_warned in
 
5311
yes:)
 
5312
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
5313
whose name does not start with the host triplet.  If you think this
 
5314
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
5315
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
5316
whose name does not start with the host triplet.  If you think this
 
5317
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
5318
ac_tool_warned=yes ;;
 
5319
esac
 
5320
    CXX=$ac_ct_CXX
 
5321
  fi
 
5322
fi
 
5323
 
 
5324
  fi
 
5325
fi
 
5326
# Provide some information about the compiler.
 
5327
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
 
5328
ac_compiler=`set X $ac_compile; echo $2`
 
5329
{ (ac_try="$ac_compiler --version >&5"
 
5330
case "(($ac_try" in
 
5331
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5332
  *) ac_try_echo=$ac_try;;
 
5333
esac
 
5334
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5335
  (eval "$ac_compiler --version >&5") 2>&5
 
5336
  ac_status=$?
 
5337
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5338
  (exit $ac_status); }
 
5339
{ (ac_try="$ac_compiler -v >&5"
 
5340
case "(($ac_try" in
 
5341
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5342
  *) ac_try_echo=$ac_try;;
 
5343
esac
 
5344
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5345
  (eval "$ac_compiler -v >&5") 2>&5
 
5346
  ac_status=$?
 
5347
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5348
  (exit $ac_status); }
 
5349
{ (ac_try="$ac_compiler -V >&5"
 
5350
case "(($ac_try" in
 
5351
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5352
  *) ac_try_echo=$ac_try;;
 
5353
esac
 
5354
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5355
  (eval "$ac_compiler -V >&5") 2>&5
 
5356
  ac_status=$?
 
5357
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5358
  (exit $ac_status); }
 
5359
 
 
5360
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
5361
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
 
5362
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
5363
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5364
else
 
5365
  cat >conftest.$ac_ext <<_ACEOF
 
5366
/* confdefs.h.  */
 
5367
_ACEOF
 
5368
cat confdefs.h >>conftest.$ac_ext
 
5369
cat >>conftest.$ac_ext <<_ACEOF
 
5370
/* end confdefs.h.  */
 
5371
 
 
5372
int
 
5373
main ()
 
5374
{
 
5375
#ifndef __GNUC__
 
5376
       choke me
 
5377
#endif
 
5378
 
 
5379
  ;
 
5380
  return 0;
 
5381
}
 
5382
_ACEOF
 
5383
rm -f conftest.$ac_objext
 
5384
if { (ac_try="$ac_compile"
 
5385
case "(($ac_try" in
 
5386
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5387
  *) ac_try_echo=$ac_try;;
 
5388
esac
 
5389
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5390
  (eval "$ac_compile") 2>conftest.er1
 
5391
  ac_status=$?
 
5392
  grep -v '^ *+' conftest.er1 >conftest.err
 
5393
  rm -f conftest.er1
 
5394
  cat conftest.err >&5
 
5395
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5396
  (exit $ac_status); } && {
 
5397
         test -z "$ac_cxx_werror_flag" ||
 
5398
         test ! -s conftest.err
 
5399
       } && test -s conftest.$ac_objext; then
 
5400
  ac_compiler_gnu=yes
 
5401
else
 
5402
  echo "$as_me: failed program was:" >&5
 
5403
sed 's/^/| /' conftest.$ac_ext >&5
 
5404
 
 
5405
        ac_compiler_gnu=no
 
5406
fi
 
5407
 
 
5408
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5409
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
5410
 
 
5411
fi
 
5412
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
5413
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
 
5414
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
5415
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
5416
ac_save_CXXFLAGS=$CXXFLAGS
 
5417
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
5418
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
 
5419
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
5420
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5421
else
 
5422
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
5423
   ac_cxx_werror_flag=yes
 
5424
   ac_cv_prog_cxx_g=no
 
5425
   CXXFLAGS="-g"
 
5426
   cat >conftest.$ac_ext <<_ACEOF
 
5427
/* confdefs.h.  */
 
5428
_ACEOF
 
5429
cat confdefs.h >>conftest.$ac_ext
 
5430
cat >>conftest.$ac_ext <<_ACEOF
 
5431
/* end confdefs.h.  */
 
5432
 
 
5433
int
 
5434
main ()
 
5435
{
 
5436
 
 
5437
  ;
 
5438
  return 0;
 
5439
}
 
5440
_ACEOF
 
5441
rm -f conftest.$ac_objext
 
5442
if { (ac_try="$ac_compile"
 
5443
case "(($ac_try" in
 
5444
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5445
  *) ac_try_echo=$ac_try;;
 
5446
esac
 
5447
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5448
  (eval "$ac_compile") 2>conftest.er1
 
5449
  ac_status=$?
 
5450
  grep -v '^ *+' conftest.er1 >conftest.err
 
5451
  rm -f conftest.er1
 
5452
  cat conftest.err >&5
 
5453
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5454
  (exit $ac_status); } && {
 
5455
         test -z "$ac_cxx_werror_flag" ||
 
5456
         test ! -s conftest.err
 
5457
       } && test -s conftest.$ac_objext; then
 
5458
  ac_cv_prog_cxx_g=yes
 
5459
else
 
5460
  echo "$as_me: failed program was:" >&5
 
5461
sed 's/^/| /' conftest.$ac_ext >&5
 
5462
 
 
5463
        CXXFLAGS=""
 
5464
      cat >conftest.$ac_ext <<_ACEOF
 
5465
/* confdefs.h.  */
 
5466
_ACEOF
 
5467
cat confdefs.h >>conftest.$ac_ext
 
5468
cat >>conftest.$ac_ext <<_ACEOF
 
5469
/* end confdefs.h.  */
 
5470
 
 
5471
int
 
5472
main ()
 
5473
{
 
5474
 
 
5475
  ;
 
5476
  return 0;
 
5477
}
 
5478
_ACEOF
 
5479
rm -f conftest.$ac_objext
 
5480
if { (ac_try="$ac_compile"
 
5481
case "(($ac_try" in
 
5482
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5483
  *) ac_try_echo=$ac_try;;
 
5484
esac
 
5485
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5486
  (eval "$ac_compile") 2>conftest.er1
 
5487
  ac_status=$?
 
5488
  grep -v '^ *+' conftest.er1 >conftest.err
 
5489
  rm -f conftest.er1
 
5490
  cat conftest.err >&5
 
5491
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5492
  (exit $ac_status); } && {
 
5493
         test -z "$ac_cxx_werror_flag" ||
 
5494
         test ! -s conftest.err
 
5495
       } && test -s conftest.$ac_objext; then
 
5496
  :
 
5497
else
 
5498
  echo "$as_me: failed program was:" >&5
 
5499
sed 's/^/| /' conftest.$ac_ext >&5
 
5500
 
 
5501
        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
5502
         CXXFLAGS="-g"
 
5503
         cat >conftest.$ac_ext <<_ACEOF
 
5504
/* confdefs.h.  */
 
5505
_ACEOF
 
5506
cat confdefs.h >>conftest.$ac_ext
 
5507
cat >>conftest.$ac_ext <<_ACEOF
 
5508
/* end confdefs.h.  */
 
5509
 
 
5510
int
 
5511
main ()
 
5512
{
 
5513
 
 
5514
  ;
 
5515
  return 0;
 
5516
}
 
5517
_ACEOF
 
5518
rm -f conftest.$ac_objext
 
5519
if { (ac_try="$ac_compile"
 
5520
case "(($ac_try" in
 
5521
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5522
  *) ac_try_echo=$ac_try;;
 
5523
esac
 
5524
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5525
  (eval "$ac_compile") 2>conftest.er1
 
5526
  ac_status=$?
 
5527
  grep -v '^ *+' conftest.er1 >conftest.err
 
5528
  rm -f conftest.er1
 
5529
  cat conftest.err >&5
 
5530
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5531
  (exit $ac_status); } && {
 
5532
         test -z "$ac_cxx_werror_flag" ||
 
5533
         test ! -s conftest.err
 
5534
       } && test -s conftest.$ac_objext; then
 
5535
  ac_cv_prog_cxx_g=yes
 
5536
else
 
5537
  echo "$as_me: failed program was:" >&5
 
5538
sed 's/^/| /' conftest.$ac_ext >&5
 
5539
 
 
5540
 
 
5541
fi
 
5542
 
 
5543
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5544
fi
 
5545
 
 
5546
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5547
fi
 
5548
 
 
5549
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5550
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
5551
fi
 
5552
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
5553
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
 
5554
if test "$ac_test_CXXFLAGS" = set; then
 
5555
  CXXFLAGS=$ac_save_CXXFLAGS
 
5556
elif test $ac_cv_prog_cxx_g = yes; then
 
5557
  if test "$GXX" = yes; then
 
5558
    CXXFLAGS="-g -O2"
 
5559
  else
 
5560
    CXXFLAGS="-g"
 
5561
  fi
 
5562
else
 
5563
  if test "$GXX" = yes; then
 
5564
    CXXFLAGS="-O2"
 
5565
  else
 
5566
    CXXFLAGS=
 
5567
  fi
 
5568
fi
 
5569
ac_ext=cpp
 
5570
ac_cpp='$CXXCPP $CPPFLAGS'
 
5571
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5572
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5573
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5574
 
 
5575
depcc="$CXX"  am_compiler_list=
 
5576
 
 
5577
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
5578
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
 
5579
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
5580
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5581
else
 
5582
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
5583
  # We make a subdir and do the tests there.  Otherwise we can end up
 
5584
  # making bogus files that we don't know about and never remove.  For
 
5585
  # instance it was reported that on HP-UX the gcc test will end up
 
5586
  # making a dummy file named `D' -- because `-MD' means `put the output
 
5587
  # in D'.
 
5588
  mkdir conftest.dir
 
5589
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
5590
  # using a relative directory.
 
5591
  cp "$am_depcomp" conftest.dir
 
5592
  cd conftest.dir
 
5593
  # We will build objects and dependencies in a subdirectory because
 
5594
  # it helps to detect inapplicable dependency modes.  For instance
 
5595
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
5596
  # side effect of compilation, but ICC will put the dependencies in
 
5597
  # the current directory while Tru64 will put them in the object
 
5598
  # directory.
 
5599
  mkdir sub
 
5600
 
 
5601
  am_cv_CXX_dependencies_compiler_type=none
 
5602
  if test "$am_compiler_list" = ""; then
 
5603
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
5604
  fi
 
5605
  for depmode in $am_compiler_list; do
 
5606
    # Setup a source with many dependencies, because some compilers
 
5607
    # like to wrap large dependency lists on column 80 (with \), and
 
5608
    # we should not choose a depcomp mode which is confused by this.
 
5609
    #
 
5610
    # We need to recreate these files for each test, as the compiler may
 
5611
    # overwrite some of them when testing with obscure command lines.
 
5612
    # This happens at least with the AIX C compiler.
 
5613
    : > sub/conftest.c
 
5614
    for i in 1 2 3 4 5 6; do
 
5615
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
5616
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
5617
      # Solaris 8's {/usr,}/bin/sh.
 
5618
      touch sub/conftst$i.h
 
5619
    done
 
5620
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
5621
 
 
5622
    case $depmode in
 
5623
    nosideeffect)
 
5624
      # after this tag, mechanisms are not by side-effect, so they'll
 
5625
      # only be used when explicitly requested
 
5626
      if test "x$enable_dependency_tracking" = xyes; then
 
5627
        continue
 
5628
      else
 
5629
        break
 
5630
      fi
 
5631
      ;;
 
5632
    none) break ;;
 
5633
    esac
 
5634
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
5635
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
5636
    # handle `-M -o', and we need to detect this.
 
5637
    if depmode=$depmode \
 
5638
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
5639
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
5640
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
5641
         >/dev/null 2>conftest.err &&
 
5642
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
5643
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
5644
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
5645
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
5646
      # icc doesn't choke on unknown options, it will just issue warnings
 
5647
      # or remarks (even with -Werror).  So we grep stderr for any message
 
5648
      # that says an option was ignored or not supported.
 
5649
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
5650
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
5651
      # The diagnosis changed in icc 8.0:
 
5652
      #   icc: Command line remark: option '-MP' not supported
 
5653
      if (grep 'ignoring option' conftest.err ||
 
5654
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
5655
        am_cv_CXX_dependencies_compiler_type=$depmode
 
5656
        break
 
5657
      fi
 
5658
    fi
 
5659
  done
 
5660
 
 
5661
  cd ..
 
5662
  rm -rf conftest.dir
 
5663
else
 
5664
  am_cv_CXX_dependencies_compiler_type=none
 
5665
fi
 
5666
 
 
5667
fi
 
5668
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
5669
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
 
5670
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
5671
 
 
5672
 if
 
5673
  test "x$enable_dependency_tracking" != xno \
 
5674
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
5675
  am__fastdepCXX_TRUE=
 
5676
  am__fastdepCXX_FALSE='#'
 
5677
else
 
5678
  am__fastdepCXX_TRUE='#'
 
5679
  am__fastdepCXX_FALSE=
 
5680
fi
 
5681
 
 
5682
 
 
5683
 
 
5684
 
 
5685
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
5686
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
5687
    (test "X$CXX" != "Xg++"))) ; then
 
5688
  ac_ext=cpp
 
5689
ac_cpp='$CXXCPP $CPPFLAGS'
 
5690
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5691
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5692
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5693
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
5694
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
 
5695
if test -z "$CXXCPP"; then
 
5696
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
5697
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5698
else
 
5699
      # Double quotes because CXXCPP needs to be expanded
 
5700
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
5701
    do
 
5702
      ac_preproc_ok=false
 
5703
for ac_cxx_preproc_warn_flag in '' yes
 
5704
do
 
5705
  # Use a header file that comes with gcc, so configuring glibc
 
5706
  # with a fresh cross-compiler works.
 
5707
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5708
  # <limits.h> exists even on freestanding compilers.
 
5709
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5710
  # not just through cpp. "Syntax error" is here to catch this case.
 
5711
  cat >conftest.$ac_ext <<_ACEOF
 
5712
/* confdefs.h.  */
 
5713
_ACEOF
 
5714
cat confdefs.h >>conftest.$ac_ext
 
5715
cat >>conftest.$ac_ext <<_ACEOF
 
5716
/* end confdefs.h.  */
 
5717
#ifdef __STDC__
 
5718
# include <limits.h>
 
5719
#else
 
5720
# include <assert.h>
 
5721
#endif
 
5722
                     Syntax error
 
5723
_ACEOF
 
5724
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5725
case "(($ac_try" in
 
5726
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5727
  *) ac_try_echo=$ac_try;;
 
5728
esac
 
5729
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5730
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5731
  ac_status=$?
 
5732
  grep -v '^ *+' conftest.er1 >conftest.err
 
5733
  rm -f conftest.er1
 
5734
  cat conftest.err >&5
 
5735
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5736
  (exit $ac_status); } >/dev/null && {
 
5737
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
5738
         test ! -s conftest.err
 
5739
       }; then
 
5740
  :
 
5741
else
 
5742
  echo "$as_me: failed program was:" >&5
 
5743
sed 's/^/| /' conftest.$ac_ext >&5
 
5744
 
 
5745
  # Broken: fails on valid input.
 
5746
continue
 
5747
fi
 
5748
 
 
5749
rm -f conftest.err conftest.$ac_ext
 
5750
 
 
5751
  # OK, works on sane cases.  Now check whether nonexistent headers
 
5752
  # can be detected and how.
 
5753
  cat >conftest.$ac_ext <<_ACEOF
 
5754
/* confdefs.h.  */
 
5755
_ACEOF
 
5756
cat confdefs.h >>conftest.$ac_ext
 
5757
cat >>conftest.$ac_ext <<_ACEOF
 
5758
/* end confdefs.h.  */
 
5759
#include <ac_nonexistent.h>
 
5760
_ACEOF
 
5761
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5762
case "(($ac_try" in
 
5763
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5764
  *) ac_try_echo=$ac_try;;
 
5765
esac
 
5766
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5767
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5768
  ac_status=$?
 
5769
  grep -v '^ *+' conftest.er1 >conftest.err
 
5770
  rm -f conftest.er1
 
5771
  cat conftest.err >&5
 
5772
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5773
  (exit $ac_status); } >/dev/null && {
 
5774
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
5775
         test ! -s conftest.err
 
5776
       }; then
 
5777
  # Broken: success on invalid input.
 
5778
continue
 
5779
else
 
5780
  echo "$as_me: failed program was:" >&5
 
5781
sed 's/^/| /' conftest.$ac_ext >&5
 
5782
 
 
5783
  # Passes both tests.
 
5784
ac_preproc_ok=:
 
5785
break
 
5786
fi
 
5787
 
 
5788
rm -f conftest.err conftest.$ac_ext
 
5789
 
 
5790
done
 
5791
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5792
rm -f conftest.err conftest.$ac_ext
 
5793
if $ac_preproc_ok; then
 
5794
  break
 
5795
fi
 
5796
 
 
5797
    done
 
5798
    ac_cv_prog_CXXCPP=$CXXCPP
 
5799
 
 
5800
fi
 
5801
  CXXCPP=$ac_cv_prog_CXXCPP
 
5802
else
 
5803
  ac_cv_prog_CXXCPP=$CXXCPP
 
5804
fi
 
5805
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
5806
echo "${ECHO_T}$CXXCPP" >&6; }
 
5807
ac_preproc_ok=false
 
5808
for ac_cxx_preproc_warn_flag in '' yes
 
5809
do
 
5810
  # Use a header file that comes with gcc, so configuring glibc
 
5811
  # with a fresh cross-compiler works.
 
5812
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5813
  # <limits.h> exists even on freestanding compilers.
 
5814
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5815
  # not just through cpp. "Syntax error" is here to catch this case.
 
5816
  cat >conftest.$ac_ext <<_ACEOF
 
5817
/* confdefs.h.  */
 
5818
_ACEOF
 
5819
cat confdefs.h >>conftest.$ac_ext
 
5820
cat >>conftest.$ac_ext <<_ACEOF
 
5821
/* end confdefs.h.  */
 
5822
#ifdef __STDC__
 
5823
# include <limits.h>
 
5824
#else
 
5825
# include <assert.h>
 
5826
#endif
 
5827
                     Syntax error
 
5828
_ACEOF
 
5829
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5830
case "(($ac_try" in
 
5831
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5832
  *) ac_try_echo=$ac_try;;
 
5833
esac
 
5834
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5835
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5836
  ac_status=$?
 
5837
  grep -v '^ *+' conftest.er1 >conftest.err
 
5838
  rm -f conftest.er1
 
5839
  cat conftest.err >&5
 
5840
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5841
  (exit $ac_status); } >/dev/null && {
 
5842
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
5843
         test ! -s conftest.err
 
5844
       }; then
 
5845
  :
 
5846
else
 
5847
  echo "$as_me: failed program was:" >&5
 
5848
sed 's/^/| /' conftest.$ac_ext >&5
 
5849
 
 
5850
  # Broken: fails on valid input.
 
5851
continue
 
5852
fi
 
5853
 
 
5854
rm -f conftest.err conftest.$ac_ext
 
5855
 
 
5856
  # OK, works on sane cases.  Now check whether nonexistent headers
 
5857
  # can be detected and how.
 
5858
  cat >conftest.$ac_ext <<_ACEOF
 
5859
/* confdefs.h.  */
 
5860
_ACEOF
 
5861
cat confdefs.h >>conftest.$ac_ext
 
5862
cat >>conftest.$ac_ext <<_ACEOF
 
5863
/* end confdefs.h.  */
 
5864
#include <ac_nonexistent.h>
 
5865
_ACEOF
 
5866
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5867
case "(($ac_try" in
 
5868
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5869
  *) ac_try_echo=$ac_try;;
 
5870
esac
 
5871
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5872
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5873
  ac_status=$?
 
5874
  grep -v '^ *+' conftest.er1 >conftest.err
 
5875
  rm -f conftest.er1
 
5876
  cat conftest.err >&5
 
5877
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5878
  (exit $ac_status); } >/dev/null && {
 
5879
         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
 
5880
         test ! -s conftest.err
 
5881
       }; then
 
5882
  # Broken: success on invalid input.
 
5883
continue
 
5884
else
 
5885
  echo "$as_me: failed program was:" >&5
 
5886
sed 's/^/| /' conftest.$ac_ext >&5
 
5887
 
 
5888
  # Passes both tests.
 
5889
ac_preproc_ok=:
 
5890
break
 
5891
fi
 
5892
 
 
5893
rm -f conftest.err conftest.$ac_ext
 
5894
 
 
5895
done
 
5896
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5897
rm -f conftest.err conftest.$ac_ext
 
5898
if $ac_preproc_ok; then
 
5899
  :
 
5900
else
 
5901
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
5902
See \`config.log' for more details." >&5
 
5903
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
5904
See \`config.log' for more details." >&2;}
 
5905
   { (exit 1); exit 1; }; }
 
5906
fi
 
5907
 
 
5908
ac_ext=cpp
 
5909
ac_cpp='$CXXCPP $CPPFLAGS'
 
5910
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5911
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5912
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5913
 
 
5914
fi
 
5915
 
 
5916
 
 
5917
ac_ext=f
 
5918
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
5919
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5920
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
5921
if test -n "$ac_tool_prefix"; then
 
5922
  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
 
5923
  do
 
5924
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5925
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5926
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5927
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5928
if test "${ac_cv_prog_F77+set}" = set; then
 
5929
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5930
else
 
5931
  if test -n "$F77"; then
 
5932
  ac_cv_prog_F77="$F77" # Let the user override the test.
 
5933
else
 
5934
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5935
for as_dir in $PATH
 
5936
do
 
5937
  IFS=$as_save_IFS
 
5938
  test -z "$as_dir" && as_dir=.
 
5939
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5940
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5941
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
 
5942
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5943
    break 2
 
5944
  fi
 
5945
done
 
5946
done
 
5947
IFS=$as_save_IFS
 
5948
 
 
5949
fi
 
5950
fi
 
5951
F77=$ac_cv_prog_F77
 
5952
if test -n "$F77"; then
 
5953
  { echo "$as_me:$LINENO: result: $F77" >&5
 
5954
echo "${ECHO_T}$F77" >&6; }
 
5955
else
 
5956
  { echo "$as_me:$LINENO: result: no" >&5
 
5957
echo "${ECHO_T}no" >&6; }
 
5958
fi
 
5959
 
 
5960
 
 
5961
    test -n "$F77" && break
 
5962
  done
 
5963
fi
 
5964
if test -z "$F77"; then
 
5965
  ac_ct_F77=$F77
 
5966
  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
 
5967
do
 
5968
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5969
set dummy $ac_prog; ac_word=$2
 
5970
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5971
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
5972
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
 
5973
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5974
else
 
5975
  if test -n "$ac_ct_F77"; then
 
5976
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
 
5977
else
 
5978
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5979
for as_dir in $PATH
 
5980
do
 
5981
  IFS=$as_save_IFS
 
5982
  test -z "$as_dir" && as_dir=.
 
5983
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5984
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
5985
    ac_cv_prog_ac_ct_F77="$ac_prog"
 
5986
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5987
    break 2
 
5988
  fi
 
5989
done
 
5990
done
 
5991
IFS=$as_save_IFS
 
5992
 
 
5993
fi
 
5994
fi
 
5995
ac_ct_F77=$ac_cv_prog_ac_ct_F77
 
5996
if test -n "$ac_ct_F77"; then
 
5997
  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
5998
echo "${ECHO_T}$ac_ct_F77" >&6; }
 
5999
else
 
6000
  { echo "$as_me:$LINENO: result: no" >&5
 
6001
echo "${ECHO_T}no" >&6; }
 
6002
fi
 
6003
 
 
6004
 
 
6005
  test -n "$ac_ct_F77" && break
 
6006
done
 
6007
 
 
6008
  if test "x$ac_ct_F77" = x; then
 
6009
    F77=""
 
6010
  else
 
6011
    case $cross_compiling:$ac_tool_warned in
 
6012
yes:)
 
6013
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
6014
whose name does not start with the host triplet.  If you think this
 
6015
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
6016
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
6017
whose name does not start with the host triplet.  If you think this
 
6018
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
6019
ac_tool_warned=yes ;;
 
6020
esac
 
6021
    F77=$ac_ct_F77
 
6022
  fi
 
6023
fi
 
6024
 
 
6025
 
 
6026
# Provide some information about the compiler.
 
6027
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
 
6028
ac_compiler=`set X $ac_compile; echo $2`
 
6029
{ (ac_try="$ac_compiler --version >&5"
 
6030
case "(($ac_try" in
 
6031
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6032
  *) ac_try_echo=$ac_try;;
 
6033
esac
 
6034
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6035
  (eval "$ac_compiler --version >&5") 2>&5
 
6036
  ac_status=$?
 
6037
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6038
  (exit $ac_status); }
 
6039
{ (ac_try="$ac_compiler -v >&5"
 
6040
case "(($ac_try" in
 
6041
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6042
  *) ac_try_echo=$ac_try;;
 
6043
esac
 
6044
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6045
  (eval "$ac_compiler -v >&5") 2>&5
 
6046
  ac_status=$?
 
6047
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6048
  (exit $ac_status); }
 
6049
{ (ac_try="$ac_compiler -V >&5"
 
6050
case "(($ac_try" in
 
6051
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6052
  *) ac_try_echo=$ac_try;;
 
6053
esac
 
6054
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6055
  (eval "$ac_compiler -V >&5") 2>&5
 
6056
  ac_status=$?
 
6057
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6058
  (exit $ac_status); }
 
6059
rm -f a.out
 
6060
 
 
6061
# If we don't use `.F' as extension, the preprocessor is not run on the
 
6062
# input file.  (Note that this only needs to work for GNU compilers.)
 
6063
ac_save_ext=$ac_ext
 
6064
ac_ext=F
 
6065
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
6066
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
 
6067
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
 
6068
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6069
else
 
6070
  cat >conftest.$ac_ext <<_ACEOF
 
6071
      program main
 
6072
#ifndef __GNUC__
 
6073
       choke me
 
6074
#endif
 
6075
 
 
6076
      end
 
6077
_ACEOF
 
6078
rm -f conftest.$ac_objext
 
6079
if { (ac_try="$ac_compile"
 
6080
case "(($ac_try" in
 
6081
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6082
  *) ac_try_echo=$ac_try;;
 
6083
esac
 
6084
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6085
  (eval "$ac_compile") 2>conftest.er1
 
6086
  ac_status=$?
 
6087
  grep -v '^ *+' conftest.er1 >conftest.err
 
6088
  rm -f conftest.er1
 
6089
  cat conftest.err >&5
 
6090
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6091
  (exit $ac_status); } && {
 
6092
         test -z "$ac_f77_werror_flag" ||
 
6093
         test ! -s conftest.err
 
6094
       } && test -s conftest.$ac_objext; then
 
6095
  ac_compiler_gnu=yes
 
6096
else
 
6097
  echo "$as_me: failed program was:" >&5
 
6098
sed 's/^/| /' conftest.$ac_ext >&5
 
6099
 
 
6100
        ac_compiler_gnu=no
 
6101
fi
 
6102
 
 
6103
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6104
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
 
6105
 
 
6106
fi
 
6107
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
6108
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
 
6109
ac_ext=$ac_save_ext
 
6110
ac_test_FFLAGS=${FFLAGS+set}
 
6111
ac_save_FFLAGS=$FFLAGS
 
6112
FFLAGS=
 
6113
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
6114
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
 
6115
if test "${ac_cv_prog_f77_g+set}" = set; then
 
6116
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6117
else
 
6118
  FFLAGS=-g
 
6119
cat >conftest.$ac_ext <<_ACEOF
 
6120
      program main
 
6121
 
 
6122
      end
 
6123
_ACEOF
 
6124
rm -f conftest.$ac_objext
 
6125
if { (ac_try="$ac_compile"
 
6126
case "(($ac_try" in
 
6127
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6128
  *) ac_try_echo=$ac_try;;
 
6129
esac
 
6130
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6131
  (eval "$ac_compile") 2>conftest.er1
 
6132
  ac_status=$?
 
6133
  grep -v '^ *+' conftest.er1 >conftest.err
 
6134
  rm -f conftest.er1
 
6135
  cat conftest.err >&5
 
6136
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6137
  (exit $ac_status); } && {
 
6138
         test -z "$ac_f77_werror_flag" ||
 
6139
         test ! -s conftest.err
 
6140
       } && test -s conftest.$ac_objext; then
 
6141
  ac_cv_prog_f77_g=yes
 
6142
else
 
6143
  echo "$as_me: failed program was:" >&5
 
6144
sed 's/^/| /' conftest.$ac_ext >&5
 
6145
 
 
6146
        ac_cv_prog_f77_g=no
 
6147
fi
 
6148
 
 
6149
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6150
 
 
6151
fi
 
6152
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
6153
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
 
6154
if test "$ac_test_FFLAGS" = set; then
 
6155
  FFLAGS=$ac_save_FFLAGS
 
6156
elif test $ac_cv_prog_f77_g = yes; then
 
6157
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
6158
    FFLAGS="-g -O2"
 
6159
  else
 
6160
    FFLAGS="-g"
 
6161
  fi
 
6162
else
 
6163
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
6164
    FFLAGS="-O2"
 
6165
  else
 
6166
    FFLAGS=
 
6167
  fi
 
6168
fi
 
6169
 
 
6170
G77=`test $ac_compiler_gnu = yes && echo yes`
 
6171
ac_ext=c
 
6172
ac_cpp='$CPP $CPPFLAGS'
 
6173
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6174
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6175
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6176
 
 
6177
 
 
6178
 
 
6179
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
6180
 
 
6181
# find the maximum length of command line arguments
 
6182
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
6183
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
 
6184
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
6185
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6186
else
 
6187
    i=0
 
6188
  teststring="ABCD"
 
6189
 
 
6190
  case $build_os in
 
6191
  msdosdjgpp*)
 
6192
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
6193
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
6194
    # during glob expansion).  Even if it were fixed, the result of this
 
6195
    # check would be larger than it should be.
 
6196
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
6197
    ;;
 
6198
 
 
6199
  gnu*)
 
6200
    # Under GNU Hurd, this test is not required because there is
 
6201
    # no limit to the length of command line arguments.
 
6202
    # Libtool will interpret -1 as no limit whatsoever
 
6203
    lt_cv_sys_max_cmd_len=-1;
 
6204
    ;;
 
6205
 
 
6206
  cygwin* | mingw*)
 
6207
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
6208
    # about 5 minutes as the teststring grows exponentially.
 
6209
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
6210
    # you end up with a "frozen" computer, even though with patience
 
6211
    # the test eventually succeeds (with a max line length of 256k).
 
6212
    # Instead, let's just punt: use the minimum linelength reported by
 
6213
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
6214
    lt_cv_sys_max_cmd_len=8192;
 
6215
    ;;
 
6216
 
 
6217
  amigaos*)
 
6218
    # On AmigaOS with pdksh, this test takes hours, literally.
 
6219
    # So we just punt and use a minimum line length of 8192.
 
6220
    lt_cv_sys_max_cmd_len=8192;
 
6221
    ;;
 
6222
 
 
6223
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
6224
    # This has been around since 386BSD, at least.  Likely further.
 
6225
    if test -x /sbin/sysctl; then
 
6226
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
6227
    elif test -x /usr/sbin/sysctl; then
 
6228
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
6229
    else
 
6230
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
6231
    fi
 
6232
    # And add a safety zone
 
6233
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
6234
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
6235
    ;;
 
6236
 
 
6237
  interix*)
 
6238
    # We know the value 262144 and hardcode it with a safety zone (like BSD)
 
6239
    lt_cv_sys_max_cmd_len=196608
 
6240
    ;;
 
6241
 
 
6242
  osf*)
 
6243
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
6244
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
6245
    # nice to cause kernel panics so lets avoid the loop below.
 
6246
    # First set a reasonable default.
 
6247
    lt_cv_sys_max_cmd_len=16384
 
6248
    #
 
6249
    if test -x /sbin/sysconfig; then
 
6250
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
6251
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
6252
      esac
 
6253
    fi
 
6254
    ;;
 
6255
  sco3.2v5*)
 
6256
    lt_cv_sys_max_cmd_len=102400
 
6257
    ;;
 
6258
  sysv5* | sco5v6* | sysv4.2uw2*)
 
6259
    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
 
6260
    if test -n "$kargmax"; then
 
6261
      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
 
6262
    else
 
6263
      lt_cv_sys_max_cmd_len=32768
 
6264
    fi
 
6265
    ;;
 
6266
  *)
 
6267
    # If test is not a shell built-in, we'll probably end up computing a
 
6268
    # maximum length that is only half of the actual maximum length, but
 
6269
    # we can't tell.
 
6270
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
6271
    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
6272
               = "XX$teststring") >/dev/null 2>&1 &&
 
6273
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
6274
            lt_cv_sys_max_cmd_len=$new_result &&
 
6275
            test $i != 17 # 1/2 MB should be enough
 
6276
    do
 
6277
      i=`expr $i + 1`
 
6278
      teststring=$teststring$teststring
 
6279
    done
 
6280
    teststring=
 
6281
    # Add a significant safety factor because C++ compilers can tack on massive
 
6282
    # amounts of additional arguments before passing them to the linker.
 
6283
    # It appears as though 1/2 is a usable value.
 
6284
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
6285
    ;;
 
6286
  esac
 
6287
 
 
6288
fi
 
6289
 
 
6290
if test -n $lt_cv_sys_max_cmd_len ; then
 
6291
  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
6292
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
 
6293
else
 
6294
  { echo "$as_me:$LINENO: result: none" >&5
 
6295
echo "${ECHO_T}none" >&6; }
 
6296
fi
 
6297
 
 
6298
 
 
6299
 
 
6300
 
 
6301
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
6302
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
6303
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
 
6304
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
6305
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6306
else
 
6307
 
 
6308
# These are sane defaults that work on at least a few old systems.
 
6309
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
6310
 
 
6311
# Character class describing NM global symbol codes.
 
6312
symcode='[BCDEGRST]'
 
6313
 
 
6314
# Regexp to match symbols that can be accessed directly from C.
 
6315
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
6316
 
 
6317
# Transform an extracted symbol line into a proper C declaration
 
6318
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
6319
 
 
6320
# Transform an extracted symbol line into symbol name and symbol address
 
6321
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'"
 
6322
 
 
6323
# Define system-specific variables.
 
6324
case $host_os in
 
6325
aix*)
 
6326
  symcode='[BCDT]'
 
6327
  ;;
 
6328
cygwin* | mingw* | pw32*)
 
6329
  symcode='[ABCDGISTW]'
 
6330
  ;;
 
6331
hpux*) # Its linker distinguishes data from code symbols
 
6332
  if test "$host_cpu" = ia64; then
 
6333
    symcode='[ABCDEGRST]'
 
6334
  fi
 
6335
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6336
  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'"
 
6337
  ;;
 
6338
linux*)
 
6339
  if test "$host_cpu" = ia64; then
 
6340
    symcode='[ABCDGIRSTW]'
 
6341
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6342
    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'"
 
6343
  fi
 
6344
  ;;
 
6345
irix* | nonstopux*)
 
6346
  symcode='[BCDEGRST]'
 
6347
  ;;
 
6348
osf*)
 
6349
  symcode='[BCDEGQRST]'
 
6350
  ;;
 
6351
solaris*)
 
6352
  symcode='[BDRT]'
 
6353
  ;;
 
6354
sco3.2v5*)
 
6355
  symcode='[DT]'
 
6356
  ;;
 
6357
sysv4.2uw2*)
 
6358
  symcode='[DT]'
 
6359
  ;;
 
6360
sysv5* | sco5v6* | unixware* | OpenUNIX*)
 
6361
  symcode='[ABDT]'
 
6362
  ;;
 
6363
sysv4)
 
6364
  symcode='[DFNSTU]'
 
6365
  ;;
 
6366
esac
 
6367
 
 
6368
# Handle CRLF in mingw tool chain
 
6369
opt_cr=
 
6370
case $build_os in
 
6371
mingw*)
 
6372
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
6373
  ;;
 
6374
esac
 
6375
 
 
6376
# If we're using GNU nm, then use its standard symbol codes.
 
6377
case `$NM -V 2>&1` in
 
6378
*GNU* | *'with BFD'*)
 
6379
  symcode='[ABCDGIRSTW]' ;;
 
6380
esac
 
6381
 
 
6382
# Try without a prefix undercore, then with it.
 
6383
for ac_symprfx in "" "_"; do
 
6384
 
 
6385
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
6386
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
6387
 
 
6388
  # Write the raw and C identifiers.
 
6389
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
6390
 
 
6391
  # Check to see that the pipe works correctly.
 
6392
  pipe_works=no
 
6393
 
 
6394
  rm -f conftest*
 
6395
  cat > conftest.$ac_ext <<EOF
 
6396
#ifdef __cplusplus
 
6397
extern "C" {
 
6398
#endif
 
6399
char nm_test_var;
 
6400
void nm_test_func(){}
 
6401
#ifdef __cplusplus
 
6402
}
 
6403
#endif
 
6404
int main(){nm_test_var='a';nm_test_func();return(0);}
 
6405
EOF
 
6406
 
 
6407
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6408
  (eval $ac_compile) 2>&5
 
6409
  ac_status=$?
 
6410
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6411
  (exit $ac_status); }; then
 
6412
    # Now try to grab the symbols.
 
6413
    nlist=conftest.nm
 
6414
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
6415
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
6416
  ac_status=$?
 
6417
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6418
  (exit $ac_status); } && test -s "$nlist"; then
 
6419
      # Try sorting and uniquifying the output.
 
6420
      if sort "$nlist" | uniq > "$nlist"T; then
 
6421
        mv -f "$nlist"T "$nlist"
 
6422
      else
 
6423
        rm -f "$nlist"T
 
6424
      fi
 
6425
 
 
6426
      # Make sure that we snagged all the symbols we need.
 
6427
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
6428
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
 
6429
          cat <<EOF > conftest.$ac_ext
 
6430
#ifdef __cplusplus
 
6431
extern "C" {
 
6432
#endif
 
6433
 
 
6434
EOF
 
6435
          # Now generate the symbol file.
 
6436
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 
6437
 
 
6438
          cat <<EOF >> conftest.$ac_ext
 
6439
#if defined (__STDC__) && __STDC__
 
6440
# define lt_ptr_t void *
 
6441
#else
 
6442
# define lt_ptr_t char *
 
6443
# define const
 
6444
#endif
 
6445
 
 
6446
/* The mapping between symbol names and symbols. */
 
6447
const struct {
 
6448
  const char *name;
 
6449
  lt_ptr_t address;
 
6450
}
 
6451
lt_preloaded_symbols[] =
 
6452
{
 
6453
EOF
 
6454
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 
6455
          cat <<\EOF >> conftest.$ac_ext
 
6456
  {0, (lt_ptr_t) 0}
 
6457
};
 
6458
 
 
6459
#ifdef __cplusplus
 
6460
}
 
6461
#endif
 
6462
EOF
 
6463
          # Now try linking the two files.
 
6464
          mv conftest.$ac_objext conftstm.$ac_objext
 
6465
          lt_save_LIBS="$LIBS"
 
6466
          lt_save_CFLAGS="$CFLAGS"
 
6467
          LIBS="conftstm.$ac_objext"
 
6468
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
6469
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6470
  (eval $ac_link) 2>&5
 
6471
  ac_status=$?
 
6472
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6473
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
 
6474
            pipe_works=yes
 
6475
          fi
 
6476
          LIBS="$lt_save_LIBS"
 
6477
          CFLAGS="$lt_save_CFLAGS"
 
6478
        else
 
6479
          echo "cannot find nm_test_func in $nlist" >&5
 
6480
        fi
 
6481
      else
 
6482
        echo "cannot find nm_test_var in $nlist" >&5
 
6483
      fi
 
6484
    else
 
6485
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
6486
    fi
 
6487
  else
 
6488
    echo "$progname: failed program was:" >&5
 
6489
    cat conftest.$ac_ext >&5
 
6490
  fi
 
6491
  rm -f conftest* conftst*
 
6492
 
 
6493
  # Do not use the global_symbol_pipe unless it works.
 
6494
  if test "$pipe_works" = yes; then
 
6495
    break
 
6496
  else
 
6497
    lt_cv_sys_global_symbol_pipe=
 
6498
  fi
 
6499
done
 
6500
 
 
6501
fi
 
6502
 
 
6503
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
6504
  lt_cv_sys_global_symbol_to_cdecl=
 
6505
fi
 
6506
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
6507
  { echo "$as_me:$LINENO: result: failed" >&5
 
6508
echo "${ECHO_T}failed" >&6; }
 
6509
else
 
6510
  { echo "$as_me:$LINENO: result: ok" >&5
 
6511
echo "${ECHO_T}ok" >&6; }
 
6512
fi
 
6513
 
 
6514
{ echo "$as_me:$LINENO: checking for objdir" >&5
 
6515
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
 
6516
if test "${lt_cv_objdir+set}" = set; then
 
6517
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6518
else
 
6519
  rm -f .libs 2>/dev/null
 
6520
mkdir .libs 2>/dev/null
 
6521
if test -d .libs; then
 
6522
  lt_cv_objdir=.libs
 
6523
else
 
6524
  # MS-DOS does not allow filenames that begin with a dot.
 
6525
  lt_cv_objdir=_libs
 
6526
fi
 
6527
rmdir .libs 2>/dev/null
 
6528
fi
 
6529
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
6530
echo "${ECHO_T}$lt_cv_objdir" >&6; }
 
6531
objdir=$lt_cv_objdir
 
6532
 
 
6533
 
 
6534
 
 
6535
 
 
6536
 
 
6537
case $host_os in
 
6538
aix3*)
 
6539
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
6540
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
6541
  # vanish in a puff of smoke.
 
6542
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
6543
    COLLECT_NAMES=
 
6544
    export COLLECT_NAMES
 
6545
  fi
 
6546
  ;;
 
6547
esac
 
6548
 
 
6549
# Sed substitution that helps us do robust quoting.  It backslashifies
 
6550
# metacharacters that are still active within double-quoted strings.
 
6551
Xsed='sed -e 1s/^X//'
 
6552
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
6553
 
 
6554
# Same as above, but do not quote variable references.
 
6555
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
6556
 
 
6557
# Sed substitution to delay expansion of an escaped shell variable in a
 
6558
# double_quote_subst'ed string.
 
6559
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
6560
 
 
6561
# Sed substitution to avoid accidental globbing in evaled expressions
 
6562
no_glob_subst='s/\*/\\\*/g'
 
6563
 
 
6564
# Constants:
 
6565
rm="rm -f"
 
6566
 
 
6567
# Global variables:
 
6568
default_ofile=libtool
 
6569
can_build_shared=yes
 
6570
 
 
6571
# All known linkers require a `.a' archive for static linking (except MSVC,
 
6572
# which needs '.lib').
 
6573
libext=a
 
6574
ltmain="$ac_aux_dir/ltmain.sh"
 
6575
ofile="$default_ofile"
 
6576
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
6577
 
 
6578
if test -n "$ac_tool_prefix"; then
 
6579
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
6580
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
6581
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6582
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6583
if test "${ac_cv_prog_AR+set}" = set; then
 
6584
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6585
else
 
6586
  if test -n "$AR"; then
 
6587
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
6588
else
 
6589
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6590
for as_dir in $PATH
 
6591
do
 
6592
  IFS=$as_save_IFS
 
6593
  test -z "$as_dir" && as_dir=.
 
6594
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6595
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6596
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
6597
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6598
    break 2
 
6599
  fi
 
6600
done
 
6601
done
 
6602
IFS=$as_save_IFS
 
6603
 
 
6604
fi
 
6605
fi
 
6606
AR=$ac_cv_prog_AR
 
6607
if test -n "$AR"; then
 
6608
  { echo "$as_me:$LINENO: result: $AR" >&5
 
6609
echo "${ECHO_T}$AR" >&6; }
 
6610
else
 
6611
  { echo "$as_me:$LINENO: result: no" >&5
 
6612
echo "${ECHO_T}no" >&6; }
 
6613
fi
 
6614
 
 
6615
 
 
6616
fi
 
6617
if test -z "$ac_cv_prog_AR"; then
 
6618
  ac_ct_AR=$AR
 
6619
  # Extract the first word of "ar", so it can be a program name with args.
 
6620
set dummy ar; ac_word=$2
 
6621
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6622
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6623
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
6624
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6625
else
 
6626
  if test -n "$ac_ct_AR"; then
 
6627
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
6628
else
 
6629
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6630
for as_dir in $PATH
 
6631
do
 
6632
  IFS=$as_save_IFS
 
6633
  test -z "$as_dir" && as_dir=.
 
6634
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6635
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6636
    ac_cv_prog_ac_ct_AR="ar"
 
6637
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6638
    break 2
 
6639
  fi
 
6640
done
 
6641
done
 
6642
IFS=$as_save_IFS
 
6643
 
 
6644
fi
 
6645
fi
 
6646
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
6647
if test -n "$ac_ct_AR"; then
 
6648
  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
6649
echo "${ECHO_T}$ac_ct_AR" >&6; }
 
6650
else
 
6651
  { echo "$as_me:$LINENO: result: no" >&5
 
6652
echo "${ECHO_T}no" >&6; }
 
6653
fi
 
6654
 
 
6655
  if test "x$ac_ct_AR" = x; then
 
6656
    AR="false"
 
6657
  else
 
6658
    case $cross_compiling:$ac_tool_warned in
 
6659
yes:)
 
6660
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
6661
whose name does not start with the host triplet.  If you think this
 
6662
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
6663
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
6664
whose name does not start with the host triplet.  If you think this
 
6665
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
6666
ac_tool_warned=yes ;;
 
6667
esac
 
6668
    AR=$ac_ct_AR
 
6669
  fi
 
6670
else
 
6671
  AR="$ac_cv_prog_AR"
 
6672
fi
 
6673
 
 
6674
if test -n "$ac_tool_prefix"; then
 
6675
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
6676
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
6677
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6678
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6679
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
6680
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6681
else
 
6682
  if test -n "$RANLIB"; then
 
6683
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
6684
else
 
6685
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6686
for as_dir in $PATH
 
6687
do
 
6688
  IFS=$as_save_IFS
 
6689
  test -z "$as_dir" && as_dir=.
 
6690
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6691
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6692
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
6693
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6694
    break 2
 
6695
  fi
 
6696
done
 
6697
done
 
6698
IFS=$as_save_IFS
 
6699
 
 
6700
fi
 
6701
fi
 
6702
RANLIB=$ac_cv_prog_RANLIB
 
6703
if test -n "$RANLIB"; then
 
6704
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
 
6705
echo "${ECHO_T}$RANLIB" >&6; }
 
6706
else
 
6707
  { echo "$as_me:$LINENO: result: no" >&5
 
6708
echo "${ECHO_T}no" >&6; }
 
6709
fi
 
6710
 
 
6711
 
 
6712
fi
 
6713
if test -z "$ac_cv_prog_RANLIB"; then
 
6714
  ac_ct_RANLIB=$RANLIB
 
6715
  # Extract the first word of "ranlib", so it can be a program name with args.
 
6716
set dummy ranlib; ac_word=$2
 
6717
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6718
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6719
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
6720
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6721
else
 
6722
  if test -n "$ac_ct_RANLIB"; then
 
6723
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
6724
else
 
6725
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6726
for as_dir in $PATH
 
6727
do
 
6728
  IFS=$as_save_IFS
 
6729
  test -z "$as_dir" && as_dir=.
 
6730
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6731
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6732
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
6733
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6734
    break 2
 
6735
  fi
 
6736
done
 
6737
done
 
6738
IFS=$as_save_IFS
 
6739
 
 
6740
fi
 
6741
fi
 
6742
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
6743
if test -n "$ac_ct_RANLIB"; then
 
6744
  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
6745
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
 
6746
else
 
6747
  { echo "$as_me:$LINENO: result: no" >&5
 
6748
echo "${ECHO_T}no" >&6; }
 
6749
fi
 
6750
 
 
6751
  if test "x$ac_ct_RANLIB" = x; then
 
6752
    RANLIB=":"
 
6753
  else
 
6754
    case $cross_compiling:$ac_tool_warned in
 
6755
yes:)
 
6756
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
6757
whose name does not start with the host triplet.  If you think this
 
6758
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
6759
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
6760
whose name does not start with the host triplet.  If you think this
 
6761
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
6762
ac_tool_warned=yes ;;
 
6763
esac
 
6764
    RANLIB=$ac_ct_RANLIB
 
6765
  fi
 
6766
else
 
6767
  RANLIB="$ac_cv_prog_RANLIB"
 
6768
fi
 
6769
 
 
6770
if test -n "$ac_tool_prefix"; then
 
6771
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
6772
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
6773
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6774
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6775
if test "${ac_cv_prog_STRIP+set}" = set; then
 
6776
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6777
else
 
6778
  if test -n "$STRIP"; then
 
6779
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
6780
else
 
6781
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6782
for as_dir in $PATH
 
6783
do
 
6784
  IFS=$as_save_IFS
 
6785
  test -z "$as_dir" && as_dir=.
 
6786
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6787
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6788
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
6789
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6790
    break 2
 
6791
  fi
 
6792
done
 
6793
done
 
6794
IFS=$as_save_IFS
 
6795
 
 
6796
fi
 
6797
fi
 
6798
STRIP=$ac_cv_prog_STRIP
 
6799
if test -n "$STRIP"; then
 
6800
  { echo "$as_me:$LINENO: result: $STRIP" >&5
 
6801
echo "${ECHO_T}$STRIP" >&6; }
 
6802
else
 
6803
  { echo "$as_me:$LINENO: result: no" >&5
 
6804
echo "${ECHO_T}no" >&6; }
 
6805
fi
 
6806
 
 
6807
 
 
6808
fi
 
6809
if test -z "$ac_cv_prog_STRIP"; then
 
6810
  ac_ct_STRIP=$STRIP
 
6811
  # Extract the first word of "strip", so it can be a program name with args.
 
6812
set dummy strip; ac_word=$2
 
6813
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6814
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
6815
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
6816
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6817
else
 
6818
  if test -n "$ac_ct_STRIP"; then
 
6819
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
6820
else
 
6821
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6822
for as_dir in $PATH
 
6823
do
 
6824
  IFS=$as_save_IFS
 
6825
  test -z "$as_dir" && as_dir=.
 
6826
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6827
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
6828
    ac_cv_prog_ac_ct_STRIP="strip"
 
6829
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6830
    break 2
 
6831
  fi
 
6832
done
 
6833
done
 
6834
IFS=$as_save_IFS
 
6835
 
 
6836
fi
 
6837
fi
 
6838
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
6839
if test -n "$ac_ct_STRIP"; then
 
6840
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
6841
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
 
6842
else
 
6843
  { echo "$as_me:$LINENO: result: no" >&5
 
6844
echo "${ECHO_T}no" >&6; }
 
6845
fi
 
6846
 
 
6847
  if test "x$ac_ct_STRIP" = x; then
 
6848
    STRIP=":"
 
6849
  else
 
6850
    case $cross_compiling:$ac_tool_warned in
 
6851
yes:)
 
6852
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
6853
whose name does not start with the host triplet.  If you think this
 
6854
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
6855
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
6856
whose name does not start with the host triplet.  If you think this
 
6857
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
6858
ac_tool_warned=yes ;;
 
6859
esac
 
6860
    STRIP=$ac_ct_STRIP
 
6861
  fi
 
6862
else
 
6863
  STRIP="$ac_cv_prog_STRIP"
 
6864
fi
 
6865
 
 
6866
 
 
6867
old_CC="$CC"
 
6868
old_CFLAGS="$CFLAGS"
 
6869
 
 
6870
# Set sane defaults for various variables
 
6871
test -z "$AR" && AR=ar
 
6872
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
6873
test -z "$AS" && AS=as
 
6874
test -z "$CC" && CC=cc
 
6875
test -z "$LTCC" && LTCC=$CC
 
6876
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
 
6877
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
6878
test -z "$LD" && LD=ld
 
6879
test -z "$LN_S" && LN_S="ln -s"
 
6880
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
6881
test -z "$NM" && NM=nm
 
6882
test -z "$SED" && SED=sed
 
6883
test -z "$OBJDUMP" && OBJDUMP=objdump
 
6884
test -z "$RANLIB" && RANLIB=:
 
6885
test -z "$STRIP" && STRIP=:
 
6886
test -z "$ac_objext" && ac_objext=o
 
6887
 
 
6888
# Determine commands to create old-style static archives.
 
6889
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
6890
old_postinstall_cmds='chmod 644 $oldlib'
 
6891
old_postuninstall_cmds=
 
6892
 
 
6893
if test -n "$RANLIB"; then
 
6894
  case $host_os in
 
6895
  openbsd*)
 
6896
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
 
6897
    ;;
 
6898
  *)
 
6899
    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
 
6900
    ;;
 
6901
  esac
 
6902
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
6903
fi
 
6904
 
 
6905
for cc_temp in $compiler""; do
 
6906
  case $cc_temp in
 
6907
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
6908
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
6909
    \-*) ;;
 
6910
    *) break;;
 
6911
  esac
 
6912
done
 
6913
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
6914
 
 
6915
 
 
6916
# Only perform the check for file, if the check method requires it
 
6917
case $deplibs_check_method in
 
6918
file_magic*)
 
6919
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
6920
    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
6921
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
 
6922
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
6923
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6924
else
 
6925
  case $MAGIC_CMD in
 
6926
[\\/*] |  ?:[\\/]*)
 
6927
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
6928
  ;;
 
6929
*)
 
6930
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
6931
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
6932
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
6933
  for ac_dir in $ac_dummy; do
 
6934
    IFS="$lt_save_ifs"
 
6935
    test -z "$ac_dir" && ac_dir=.
 
6936
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
6937
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
6938
      if test -n "$file_magic_test_file"; then
 
6939
        case $deplibs_check_method in
 
6940
        "file_magic "*)
 
6941
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
6942
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6943
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
6944
            $EGREP "$file_magic_regex" > /dev/null; then
 
6945
            :
 
6946
          else
 
6947
            cat <<EOF 1>&2
 
6948
 
 
6949
*** Warning: the command libtool uses to detect shared libraries,
 
6950
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
6951
*** The result is that libtool may fail to recognize shared libraries
 
6952
*** as such.  This will affect the creation of libtool libraries that
 
6953
*** depend on shared libraries, but programs linked with such libtool
 
6954
*** libraries will work regardless of this problem.  Nevertheless, you
 
6955
*** may want to report the problem to your system manager and/or to
 
6956
*** bug-libtool@gnu.org
 
6957
 
 
6958
EOF
 
6959
          fi ;;
 
6960
        esac
 
6961
      fi
 
6962
      break
 
6963
    fi
 
6964
  done
 
6965
  IFS="$lt_save_ifs"
 
6966
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
6967
  ;;
 
6968
esac
 
6969
fi
 
6970
 
 
6971
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6972
if test -n "$MAGIC_CMD"; then
 
6973
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
6974
echo "${ECHO_T}$MAGIC_CMD" >&6; }
 
6975
else
 
6976
  { echo "$as_me:$LINENO: result: no" >&5
 
6977
echo "${ECHO_T}no" >&6; }
 
6978
fi
 
6979
 
 
6980
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
6981
  if test -n "$ac_tool_prefix"; then
 
6982
    { echo "$as_me:$LINENO: checking for file" >&5
 
6983
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
 
6984
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
6985
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6986
else
 
6987
  case $MAGIC_CMD in
 
6988
[\\/*] |  ?:[\\/]*)
 
6989
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
6990
  ;;
 
6991
*)
 
6992
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
6993
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
6994
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
6995
  for ac_dir in $ac_dummy; do
 
6996
    IFS="$lt_save_ifs"
 
6997
    test -z "$ac_dir" && ac_dir=.
 
6998
    if test -f $ac_dir/file; then
 
6999
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
7000
      if test -n "$file_magic_test_file"; then
 
7001
        case $deplibs_check_method in
 
7002
        "file_magic "*)
 
7003
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
7004
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7005
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7006
            $EGREP "$file_magic_regex" > /dev/null; then
 
7007
            :
 
7008
          else
 
7009
            cat <<EOF 1>&2
 
7010
 
 
7011
*** Warning: the command libtool uses to detect shared libraries,
 
7012
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7013
*** The result is that libtool may fail to recognize shared libraries
 
7014
*** as such.  This will affect the creation of libtool libraries that
 
7015
*** depend on shared libraries, but programs linked with such libtool
 
7016
*** libraries will work regardless of this problem.  Nevertheless, you
 
7017
*** may want to report the problem to your system manager and/or to
 
7018
*** bug-libtool@gnu.org
 
7019
 
 
7020
EOF
 
7021
          fi ;;
 
7022
        esac
 
7023
      fi
 
7024
      break
 
7025
    fi
 
7026
  done
 
7027
  IFS="$lt_save_ifs"
 
7028
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7029
  ;;
 
7030
esac
 
7031
fi
 
7032
 
 
7033
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7034
if test -n "$MAGIC_CMD"; then
 
7035
  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
7036
echo "${ECHO_T}$MAGIC_CMD" >&6; }
 
7037
else
 
7038
  { echo "$as_me:$LINENO: result: no" >&5
 
7039
echo "${ECHO_T}no" >&6; }
 
7040
fi
 
7041
 
 
7042
  else
 
7043
    MAGIC_CMD=:
 
7044
  fi
 
7045
fi
 
7046
 
 
7047
  fi
 
7048
  ;;
 
7049
esac
 
7050
 
 
7051
enable_dlopen=no
 
7052
enable_win32_dll=no
 
7053
 
 
7054
# Check whether --enable-libtool-lock was given.
 
7055
if test "${enable_libtool_lock+set}" = set; then
 
7056
  enableval=$enable_libtool_lock;
 
7057
fi
 
7058
 
 
7059
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
7060
 
 
7061
 
 
7062
# Check whether --with-pic was given.
 
7063
if test "${with_pic+set}" = set; then
 
7064
  withval=$with_pic; pic_mode="$withval"
 
7065
else
 
7066
  pic_mode=default
 
7067
fi
 
7068
 
 
7069
test -z "$pic_mode" && pic_mode=default
 
7070
 
 
7071
# Use C for the default configuration in the libtool script
 
7072
tagname=
 
7073
lt_save_CC="$CC"
 
7074
ac_ext=c
 
7075
ac_cpp='$CPP $CPPFLAGS'
 
7076
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7077
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7078
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7079
 
 
7080
 
 
7081
# Source file extension for C test sources.
 
7082
ac_ext=c
 
7083
 
 
7084
# Object file extension for compiled C test sources.
 
7085
objext=o
 
7086
objext=$objext
 
7087
 
 
7088
# Code to be used in simple compile tests
 
7089
lt_simple_compile_test_code="int some_variable = 0;\n"
 
7090
 
 
7091
# Code to be used in simple link tests
 
7092
lt_simple_link_test_code='int main(){return(0);}\n'
 
7093
 
 
7094
 
 
7095
# If no C compiler was specified, use CC.
 
7096
LTCC=${LTCC-"$CC"}
 
7097
 
 
7098
# If no C compiler flags were specified, use CFLAGS.
 
7099
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
7100
 
 
7101
# Allow CC to be a program name with arguments.
 
7102
compiler=$CC
 
7103
 
 
7104
 
 
7105
# save warnings/boilerplate of simple test code
 
7106
ac_outfile=conftest.$ac_objext
 
7107
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
7108
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7109
_lt_compiler_boilerplate=`cat conftest.err`
 
7110
$rm conftest*
 
7111
 
 
7112
ac_outfile=conftest.$ac_objext
 
7113
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
7114
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
7115
_lt_linker_boilerplate=`cat conftest.err`
 
7116
$rm conftest*
 
7117
 
 
7118
 
 
7119
 
 
7120
lt_prog_compiler_no_builtin_flag=
 
7121
 
 
7122
if test "$GCC" = yes; then
 
7123
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
7124
 
 
7125
 
 
7126
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
7127
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
 
7128
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
7129
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7130
else
 
7131
  lt_cv_prog_compiler_rtti_exceptions=no
 
7132
  ac_outfile=conftest.$ac_objext
 
7133
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7134
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
7135
   # Insert the option either (1) after the last *FLAGS variable, or
 
7136
   # (2) before a word containing "conftest.", or (3) at the end.
 
7137
   # Note that $ac_compile itself does not contain backslashes and begins
 
7138
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7139
   # The option is referenced via a variable to avoid confusing sed.
 
7140
   lt_compile=`echo "$ac_compile" | $SED \
 
7141
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7142
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7143
   -e 's:$: $lt_compiler_flag:'`
 
7144
   (eval echo "\"\$as_me:7144: $lt_compile\"" >&5)
 
7145
   (eval "$lt_compile" 2>conftest.err)
 
7146
   ac_status=$?
 
7147
   cat conftest.err >&5
 
7148
   echo "$as_me:7148: \$? = $ac_status" >&5
 
7149
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
7150
     # The compiler can only warn and ignore the option if not recognized
 
7151
     # So say no if there are warnings other than the usual output.
 
7152
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
7153
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7154
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
7155
       lt_cv_prog_compiler_rtti_exceptions=yes
 
7156
     fi
 
7157
   fi
 
7158
   $rm conftest*
 
7159
 
 
7160
fi
 
7161
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
7162
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
7163
 
 
7164
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
7165
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
7166
else
 
7167
    :
 
7168
fi
 
7169
 
 
7170
fi
 
7171
 
 
7172
lt_prog_compiler_wl=
 
7173
lt_prog_compiler_pic=
 
7174
lt_prog_compiler_static=
 
7175
 
 
7176
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
7177
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
7178
 
 
7179
  if test "$GCC" = yes; then
 
7180
    lt_prog_compiler_wl='-Wl,'
 
7181
    lt_prog_compiler_static='-static'
 
7182
 
 
7183
    case $host_os in
 
7184
      aix*)
 
7185
      # All AIX code is PIC.
 
7186
      if test "$host_cpu" = ia64; then
 
7187
        # AIX 5 now supports IA64 processor
 
7188
        lt_prog_compiler_static='-Bstatic'
 
7189
      fi
 
7190
      ;;
 
7191
 
 
7192
    amigaos*)
 
7193
      # FIXME: we need at least 68020 code to build shared libraries, but
 
7194
      # adding the `-m68020' flag to GCC prevents building anything better,
 
7195
      # like `-m68040'.
 
7196
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
7197
      ;;
 
7198
 
 
7199
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
7200
      # PIC is the default for these OSes.
 
7201
      ;;
 
7202
 
 
7203
    mingw* | pw32* | os2*)
 
7204
      # This hack is so that the source file can tell whether it is being
 
7205
      # built for inclusion in a dll (and should export symbols for example).
 
7206
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
7207
      ;;
 
7208
 
 
7209
    darwin* | rhapsody*)
 
7210
      # PIC is the default on this platform
 
7211
      # Common symbols not allowed in MH_DYLIB files
 
7212
      lt_prog_compiler_pic='-fno-common'
 
7213
      ;;
 
7214
 
 
7215
    interix3*)
 
7216
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
7217
      # Instead, we relocate shared libraries at runtime.
 
7218
      ;;
 
7219
 
 
7220
    msdosdjgpp*)
 
7221
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
7222
      # on systems that don't support them.
 
7223
      lt_prog_compiler_can_build_shared=no
 
7224
      enable_shared=no
 
7225
      ;;
 
7226
 
 
7227
    sysv4*MP*)
 
7228
      if test -d /usr/nec; then
 
7229
        lt_prog_compiler_pic=-Kconform_pic
 
7230
      fi
 
7231
      ;;
 
7232
 
 
7233
    hpux*)
 
7234
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
7235
      # not for PA HP-UX.
 
7236
      case $host_cpu in
 
7237
      hppa*64*|ia64*)
 
7238
        # +Z the default
 
7239
        ;;
 
7240
      *)
 
7241
        lt_prog_compiler_pic='-fPIC'
 
7242
        ;;
 
7243
      esac
 
7244
      ;;
 
7245
 
 
7246
    *)
 
7247
      lt_prog_compiler_pic='-fPIC'
 
7248
      ;;
 
7249
    esac
 
7250
  else
 
7251
    # PORTME Check for flag to pass linker flags through the system compiler.
 
7252
    case $host_os in
 
7253
    aix*)
 
7254
      lt_prog_compiler_wl='-Wl,'
 
7255
      if test "$host_cpu" = ia64; then
 
7256
        # AIX 5 now supports IA64 processor
 
7257
        lt_prog_compiler_static='-Bstatic'
 
7258
      else
 
7259
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
7260
      fi
 
7261
      ;;
 
7262
      darwin*)
 
7263
        # PIC is the default on this platform
 
7264
        # Common symbols not allowed in MH_DYLIB files
 
7265
       case $cc_basename in
 
7266
         xlc*)
 
7267
         lt_prog_compiler_pic='-qnocommon'
 
7268
         lt_prog_compiler_wl='-Wl,'
 
7269
         ;;
 
7270
       esac
 
7271
       ;;
 
7272
 
 
7273
    mingw* | pw32* | os2*)
 
7274
      # This hack is so that the source file can tell whether it is being
 
7275
      # built for inclusion in a dll (and should export symbols for example).
 
7276
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
7277
      ;;
 
7278
 
 
7279
    hpux9* | hpux10* | hpux11*)
 
7280
      lt_prog_compiler_wl='-Wl,'
 
7281
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
7282
      # not for PA HP-UX.
 
7283
      case $host_cpu in
 
7284
      hppa*64*|ia64*)
 
7285
        # +Z the default
 
7286
        ;;
 
7287
      *)
 
7288
        lt_prog_compiler_pic='+Z'
 
7289
        ;;
 
7290
      esac
 
7291
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
7292
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
7293
      ;;
 
7294
 
 
7295
    irix5* | irix6* | nonstopux*)
 
7296
      lt_prog_compiler_wl='-Wl,'
 
7297
      # PIC (with -KPIC) is the default.
 
7298
      lt_prog_compiler_static='-non_shared'
 
7299
      ;;
 
7300
 
 
7301
    newsos6)
 
7302
      lt_prog_compiler_pic='-KPIC'
 
7303
      lt_prog_compiler_static='-Bstatic'
 
7304
      ;;
 
7305
 
 
7306
    linux*)
 
7307
      case $cc_basename in
 
7308
      icc* | ecc*)
 
7309
        lt_prog_compiler_wl='-Wl,'
 
7310
        lt_prog_compiler_pic='-KPIC'
 
7311
        lt_prog_compiler_static='-static'
 
7312
        ;;
 
7313
      pgcc* | pgf77* | pgf90* | pgf95*)
 
7314
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
7315
        # which looks to be a dead project)
 
7316
        lt_prog_compiler_wl='-Wl,'
 
7317
        lt_prog_compiler_pic='-fpic'
 
7318
        lt_prog_compiler_static='-Bstatic'
 
7319
        ;;
 
7320
      ccc*)
 
7321
        lt_prog_compiler_wl='-Wl,'
 
7322
        # All Alpha code is PIC.
 
7323
        lt_prog_compiler_static='-non_shared'
 
7324
        ;;
 
7325
      esac
 
7326
      ;;
 
7327
 
 
7328
    osf3* | osf4* | osf5*)
 
7329
      lt_prog_compiler_wl='-Wl,'
 
7330
      # All OSF/1 code is PIC.
 
7331
      lt_prog_compiler_static='-non_shared'
 
7332
      ;;
 
7333
 
 
7334
    solaris*)
 
7335
      lt_prog_compiler_pic='-KPIC'
 
7336
      lt_prog_compiler_static='-Bstatic'
 
7337
      case $cc_basename in
 
7338
      f77* | f90* | f95*)
 
7339
        lt_prog_compiler_wl='-Qoption ld ';;
 
7340
      *)
 
7341
        lt_prog_compiler_wl='-Wl,';;
 
7342
      esac
 
7343
      ;;
 
7344
 
 
7345
    sunos4*)
 
7346
      lt_prog_compiler_wl='-Qoption ld '
 
7347
      lt_prog_compiler_pic='-PIC'
 
7348
      lt_prog_compiler_static='-Bstatic'
 
7349
      ;;
 
7350
 
 
7351
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
7352
      lt_prog_compiler_wl='-Wl,'
 
7353
      lt_prog_compiler_pic='-KPIC'
 
7354
      lt_prog_compiler_static='-Bstatic'
 
7355
      ;;
 
7356
 
 
7357
    sysv4*MP*)
 
7358
      if test -d /usr/nec ;then
 
7359
        lt_prog_compiler_pic='-Kconform_pic'
 
7360
        lt_prog_compiler_static='-Bstatic'
 
7361
      fi
 
7362
      ;;
 
7363
 
 
7364
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
7365
      lt_prog_compiler_wl='-Wl,'
 
7366
      lt_prog_compiler_pic='-KPIC'
 
7367
      lt_prog_compiler_static='-Bstatic'
 
7368
      ;;
 
7369
 
 
7370
    unicos*)
 
7371
      lt_prog_compiler_wl='-Wl,'
 
7372
      lt_prog_compiler_can_build_shared=no
 
7373
      ;;
 
7374
 
 
7375
    uts4*)
 
7376
      lt_prog_compiler_pic='-pic'
 
7377
      lt_prog_compiler_static='-Bstatic'
 
7378
      ;;
 
7379
 
 
7380
    *)
 
7381
      lt_prog_compiler_can_build_shared=no
 
7382
      ;;
 
7383
    esac
 
7384
  fi
 
7385
 
 
7386
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
7387
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
 
7388
 
 
7389
#
 
7390
# Check to make sure the PIC flag actually works.
 
7391
#
 
7392
if test -n "$lt_prog_compiler_pic"; then
 
7393
 
 
7394
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
7395
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
 
7396
if test "${lt_prog_compiler_pic_works+set}" = set; then
 
7397
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7398
else
 
7399
  lt_prog_compiler_pic_works=no
 
7400
  ac_outfile=conftest.$ac_objext
 
7401
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7402
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
7403
   # Insert the option either (1) after the last *FLAGS variable, or
 
7404
   # (2) before a word containing "conftest.", or (3) at the end.
 
7405
   # Note that $ac_compile itself does not contain backslashes and begins
 
7406
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7407
   # The option is referenced via a variable to avoid confusing sed.
 
7408
   lt_compile=`echo "$ac_compile" | $SED \
 
7409
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7410
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7411
   -e 's:$: $lt_compiler_flag:'`
 
7412
   (eval echo "\"\$as_me:7412: $lt_compile\"" >&5)
 
7413
   (eval "$lt_compile" 2>conftest.err)
 
7414
   ac_status=$?
 
7415
   cat conftest.err >&5
 
7416
   echo "$as_me:7416: \$? = $ac_status" >&5
 
7417
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
7418
     # The compiler can only warn and ignore the option if not recognized
 
7419
     # So say no if there are warnings other than the usual output.
 
7420
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
7421
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7422
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
7423
       lt_prog_compiler_pic_works=yes
 
7424
     fi
 
7425
   fi
 
7426
   $rm conftest*
 
7427
 
 
7428
fi
 
7429
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
 
7430
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
 
7431
 
 
7432
if test x"$lt_prog_compiler_pic_works" = xyes; then
 
7433
    case $lt_prog_compiler_pic in
 
7434
     "" | " "*) ;;
 
7435
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
7436
     esac
 
7437
else
 
7438
    lt_prog_compiler_pic=
 
7439
     lt_prog_compiler_can_build_shared=no
 
7440
fi
 
7441
 
 
7442
fi
 
7443
case $host_os in
 
7444
  # For platforms which do not support PIC, -DPIC is meaningless:
 
7445
  *djgpp*)
 
7446
    lt_prog_compiler_pic=
 
7447
    ;;
 
7448
  *)
 
7449
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
7450
    ;;
 
7451
esac
 
7452
 
 
7453
#
 
7454
# Check to make sure the static flag actually works.
 
7455
#
 
7456
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
 
7457
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
7458
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
7459
if test "${lt_prog_compiler_static_works+set}" = set; then
 
7460
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7461
else
 
7462
  lt_prog_compiler_static_works=no
 
7463
   save_LDFLAGS="$LDFLAGS"
 
7464
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
7465
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
7466
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
7467
     # The linker can only warn and ignore the option if not recognized
 
7468
     # So say no if there are warnings
 
7469
     if test -s conftest.err; then
 
7470
       # Append any errors to the config.log.
 
7471
       cat conftest.err 1>&5
 
7472
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
7473
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
7474
       if diff conftest.exp conftest.er2 >/dev/null; then
 
7475
         lt_prog_compiler_static_works=yes
 
7476
       fi
 
7477
     else
 
7478
       lt_prog_compiler_static_works=yes
 
7479
     fi
 
7480
   fi
 
7481
   $rm conftest*
 
7482
   LDFLAGS="$save_LDFLAGS"
 
7483
 
 
7484
fi
 
7485
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
 
7486
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
 
7487
 
 
7488
if test x"$lt_prog_compiler_static_works" = xyes; then
 
7489
    :
 
7490
else
 
7491
    lt_prog_compiler_static=
 
7492
fi
 
7493
 
 
7494
 
 
7495
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
7496
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
7497
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
7498
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7499
else
 
7500
  lt_cv_prog_compiler_c_o=no
 
7501
   $rm -r conftest 2>/dev/null
 
7502
   mkdir conftest
 
7503
   cd conftest
 
7504
   mkdir out
 
7505
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7506
 
 
7507
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
7508
   # Insert the option either (1) after the last *FLAGS variable, or
 
7509
   # (2) before a word containing "conftest.", or (3) at the end.
 
7510
   # Note that $ac_compile itself does not contain backslashes and begins
 
7511
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7512
   lt_compile=`echo "$ac_compile" | $SED \
 
7513
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
7514
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7515
   -e 's:$: $lt_compiler_flag:'`
 
7516
   (eval echo "\"\$as_me:7516: $lt_compile\"" >&5)
 
7517
   (eval "$lt_compile" 2>out/conftest.err)
 
7518
   ac_status=$?
 
7519
   cat out/conftest.err >&5
 
7520
   echo "$as_me:7520: \$? = $ac_status" >&5
 
7521
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
7522
   then
 
7523
     # The compiler can only warn and ignore the option if not recognized
 
7524
     # So say no if there are warnings
 
7525
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
7526
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
7527
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
7528
       lt_cv_prog_compiler_c_o=yes
 
7529
     fi
 
7530
   fi
 
7531
   chmod u+w . 2>&5
 
7532
   $rm conftest*
 
7533
   # SGI C++ compiler will create directory out/ii_files/ for
 
7534
   # template instantiation
 
7535
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
7536
   $rm out/* && rmdir out
 
7537
   cd ..
 
7538
   rmdir conftest
 
7539
   $rm conftest*
 
7540
 
 
7541
fi
 
7542
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
7543
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
 
7544
 
 
7545
 
 
7546
hard_links="nottested"
 
7547
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
7548
  # do not overwrite the value of need_locks provided by the user
 
7549
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
7550
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
7551
  hard_links=yes
 
7552
  $rm conftest*
 
7553
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
7554
  touch conftest.a
 
7555
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
7556
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
7557
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
7558
echo "${ECHO_T}$hard_links" >&6; }
 
7559
  if test "$hard_links" = no; then
 
7560
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
7561
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
7562
    need_locks=warn
 
7563
  fi
 
7564
else
 
7565
  need_locks=no
 
7566
fi
 
7567
 
 
7568
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
7569
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
7570
 
 
7571
  runpath_var=
 
7572
  allow_undefined_flag=
 
7573
  enable_shared_with_static_runtimes=no
 
7574
  archive_cmds=
 
7575
  archive_expsym_cmds=
 
7576
  old_archive_From_new_cmds=
 
7577
  old_archive_from_expsyms_cmds=
 
7578
  export_dynamic_flag_spec=
 
7579
  whole_archive_flag_spec=
 
7580
  thread_safe_flag_spec=
 
7581
  hardcode_libdir_flag_spec=
 
7582
  hardcode_libdir_flag_spec_ld=
 
7583
  hardcode_libdir_separator=
 
7584
  hardcode_direct=no
 
7585
  hardcode_minus_L=no
 
7586
  hardcode_shlibpath_var=unsupported
 
7587
  link_all_deplibs=unknown
 
7588
  hardcode_automatic=no
 
7589
  module_cmds=
 
7590
  module_expsym_cmds=
 
7591
  always_export_symbols=no
 
7592
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
7593
  # include_expsyms should be a list of space-separated symbols to be *always*
 
7594
  # included in the symbol list
 
7595
  include_expsyms=
 
7596
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
7597
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
7598
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
7599
  # as well as any symbol that contains `d'.
 
7600
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 
7601
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
7602
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
7603
  # the symbol is explicitly referenced.  Since portable code cannot
 
7604
  # rely on this symbol name, it's probably fine to never include it in
 
7605
  # preloaded symbol tables.
 
7606
  extract_expsyms_cmds=
 
7607
  # Just being paranoid about ensuring that cc_basename is set.
 
7608
  for cc_temp in $compiler""; do
 
7609
  case $cc_temp in
 
7610
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
7611
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
7612
    \-*) ;;
 
7613
    *) break;;
 
7614
  esac
 
7615
done
 
7616
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
7617
 
 
7618
  case $host_os in
 
7619
  cygwin* | mingw* | pw32*)
 
7620
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
7621
    # When not using gcc, we currently assume that we are using
 
7622
    # Microsoft Visual C++.
 
7623
    if test "$GCC" != yes; then
 
7624
      with_gnu_ld=no
 
7625
    fi
 
7626
    ;;
 
7627
  interix*)
 
7628
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
7629
    with_gnu_ld=yes
 
7630
    ;;
 
7631
  openbsd*)
 
7632
    with_gnu_ld=no
 
7633
    ;;
 
7634
  esac
 
7635
 
 
7636
  ld_shlibs=yes
 
7637
  if test "$with_gnu_ld" = yes; then
 
7638
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
7639
    wlarc='${wl}'
 
7640
 
 
7641
    # Set some defaults for GNU ld with shared library support. These
 
7642
    # are reset later if shared libraries are not supported. Putting them
 
7643
    # here allows them to be overridden if necessary.
 
7644
    runpath_var=LD_RUN_PATH
 
7645
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
7646
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
7647
    # ancient GNU ld didn't support --whole-archive et. al.
 
7648
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
7649
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
7650
      else
 
7651
        whole_archive_flag_spec=
 
7652
    fi
 
7653
    supports_anon_versioning=no
 
7654
    case `$LD -v 2>/dev/null` in
 
7655
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
7656
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
7657
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
7658
      *\ 2.11.*) ;; # other 2.11 versions
 
7659
      *) supports_anon_versioning=yes ;;
 
7660
    esac
 
7661
 
 
7662
    # See if GNU ld supports shared libraries.
 
7663
    case $host_os in
 
7664
    aix3* | aix4* | aix5*)
 
7665
      # On AIX/PPC, the GNU linker is very broken
 
7666
      if test "$host_cpu" != ia64; then
 
7667
        ld_shlibs=no
 
7668
        cat <<EOF 1>&2
 
7669
 
 
7670
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
7671
*** to be unable to reliably create shared libraries on AIX.
 
7672
*** Therefore, libtool is disabling shared libraries support.  If you
 
7673
*** really care for shared libraries, you may want to modify your PATH
 
7674
*** so that a non-GNU linker is found, and then restart.
 
7675
 
 
7676
EOF
 
7677
      fi
 
7678
      ;;
 
7679
 
 
7680
    amigaos*)
 
7681
      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)'
 
7682
      hardcode_libdir_flag_spec='-L$libdir'
 
7683
      hardcode_minus_L=yes
 
7684
 
 
7685
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
7686
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
7687
      # to version 4, is to share data among multiple programs linked
 
7688
      # with the same dynamic library.  Since this doesn't match the
 
7689
      # behavior of shared libraries on other platforms, we can't use
 
7690
      # them.
 
7691
      ld_shlibs=no
 
7692
      ;;
 
7693
 
 
7694
    beos*)
 
7695
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7696
        allow_undefined_flag=unsupported
 
7697
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
7698
        # support --undefined.  This deserves some investigation.  FIXME
 
7699
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7700
      else
 
7701
        ld_shlibs=no
 
7702
      fi
 
7703
      ;;
 
7704
 
 
7705
    cygwin* | mingw* | pw32*)
 
7706
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
7707
      # as there is no search path for DLLs.
 
7708
      hardcode_libdir_flag_spec='-L$libdir'
 
7709
      allow_undefined_flag=unsupported
 
7710
      always_export_symbols=no
 
7711
      enable_shared_with_static_runtimes=yes
 
7712
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
7713
 
 
7714
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
7715
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
7716
        # If the export-symbols file already is a .def file (1st line
 
7717
        # is EXPORTS), use it as is; otherwise, prepend...
 
7718
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
7719
          cp $export_symbols $output_objdir/$soname.def;
 
7720
        else
 
7721
          echo EXPORTS > $output_objdir/$soname.def;
 
7722
          cat $export_symbols >> $output_objdir/$soname.def;
 
7723
        fi~
 
7724
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
7725
      else
 
7726
        ld_shlibs=no
 
7727
      fi
 
7728
      ;;
 
7729
 
 
7730
    interix3*)
 
7731
      hardcode_direct=no
 
7732
      hardcode_shlibpath_var=no
 
7733
      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
7734
      export_dynamic_flag_spec='${wl}-E'
 
7735
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
7736
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
7737
      # default) and relocated if they conflict, which is a slow very memory
 
7738
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
7739
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
7740
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
7741
      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
 
7742
      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'
 
7743
      ;;
 
7744
 
 
7745
    linux*)
 
7746
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7747
        tmp_addflag=
 
7748
        case $cc_basename,$host_cpu in
 
7749
        pgcc*)                          # Portland Group C compiler
 
7750
          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'
 
7751
          tmp_addflag=' $pic_flag'
 
7752
          ;;
 
7753
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
7754
          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'
 
7755
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
7756
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
7757
          tmp_addflag=' -i_dynamic' ;;
 
7758
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
7759
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
7760
        ifc* | ifort*)                  # Intel Fortran compiler
 
7761
          tmp_addflag=' -nofor_main' ;;
 
7762
        esac
 
7763
        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7764
 
 
7765
        if test $supports_anon_versioning = yes; then
 
7766
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
7767
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
7768
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
7769
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
7770
        fi
 
7771
      else
 
7772
        ld_shlibs=no
 
7773
      fi
 
7774
      ;;
 
7775
 
 
7776
    netbsd*)
 
7777
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
7778
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
7779
        wlarc=
 
7780
      else
 
7781
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7782
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7783
      fi
 
7784
      ;;
 
7785
 
 
7786
    solaris*)
 
7787
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
7788
        ld_shlibs=no
 
7789
        cat <<EOF 1>&2
 
7790
 
 
7791
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
7792
*** create shared libraries on Solaris systems.  Therefore, libtool
 
7793
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
7794
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
7795
*** your PATH or compiler configuration so that the native linker is
 
7796
*** used, and then restart.
 
7797
 
 
7798
EOF
 
7799
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7800
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7801
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7802
      else
 
7803
        ld_shlibs=no
 
7804
      fi
 
7805
      ;;
 
7806
 
 
7807
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
7808
      case `$LD -v 2>&1` in
 
7809
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
7810
        ld_shlibs=no
 
7811
        cat <<_LT_EOF 1>&2
 
7812
 
 
7813
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
7814
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
7815
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
7816
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
7817
*** your PATH or compiler configuration so that the native linker is
 
7818
*** used, and then restart.
 
7819
 
 
7820
_LT_EOF
 
7821
        ;;
 
7822
        *)
 
7823
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7824
            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
7825
            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
7826
            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
7827
          else
 
7828
            ld_shlibs=no
 
7829
          fi
 
7830
        ;;
 
7831
      esac
 
7832
      ;;
 
7833
 
 
7834
    sunos4*)
 
7835
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7836
      wlarc=
 
7837
      hardcode_direct=yes
 
7838
      hardcode_shlibpath_var=no
 
7839
      ;;
 
7840
 
 
7841
    *)
 
7842
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7843
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7844
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7845
      else
 
7846
        ld_shlibs=no
 
7847
      fi
 
7848
      ;;
 
7849
    esac
 
7850
 
 
7851
    if test "$ld_shlibs" = no; then
 
7852
      runpath_var=
 
7853
      hardcode_libdir_flag_spec=
 
7854
      export_dynamic_flag_spec=
 
7855
      whole_archive_flag_spec=
 
7856
    fi
 
7857
  else
 
7858
    # PORTME fill in a description of your system's linker (not GNU ld)
 
7859
    case $host_os in
 
7860
    aix3*)
 
7861
      allow_undefined_flag=unsupported
 
7862
      always_export_symbols=yes
 
7863
      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'
 
7864
      # Note: this linker hardcodes the directories in LIBPATH if there
 
7865
      # are no directories specified by -L.
 
7866
      hardcode_minus_L=yes
 
7867
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
7868
        # Neither direct hardcoding nor static linking is supported with a
 
7869
        # broken collect2.
 
7870
        hardcode_direct=unsupported
 
7871
      fi
 
7872
      ;;
 
7873
 
 
7874
    aix4* | aix5*)
 
7875
      if test "$host_cpu" = ia64; then
 
7876
        # On IA64, the linker does run time linking by default, so we don't
 
7877
        # have to do anything special.
 
7878
        aix_use_runtimelinking=no
 
7879
        exp_sym_flag='-Bexport'
 
7880
        no_entry_flag=""
 
7881
      else
 
7882
        # If we're using GNU nm, then we don't want the "-C" option.
 
7883
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
7884
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
7885
          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'
 
7886
        else
 
7887
          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'
 
7888
        fi
 
7889
        aix_use_runtimelinking=no
 
7890
 
 
7891
        # Test if we are trying to use run time linking or normal
 
7892
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
7893
        # need to do runtime linking.
 
7894
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
7895
          for ld_flag in $LDFLAGS; do
 
7896
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
7897
            aix_use_runtimelinking=yes
 
7898
            break
 
7899
          fi
 
7900
          done
 
7901
          ;;
 
7902
        esac
 
7903
 
 
7904
        exp_sym_flag='-bexport'
 
7905
        no_entry_flag='-bnoentry'
 
7906
      fi
 
7907
 
 
7908
      # When large executables or shared objects are built, AIX ld can
 
7909
      # have problems creating the table of contents.  If linking a library
 
7910
      # or program results in "error TOC overflow" add -mminimal-toc to
 
7911
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
7912
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
7913
 
 
7914
      archive_cmds=''
 
7915
      hardcode_direct=yes
 
7916
      hardcode_libdir_separator=':'
 
7917
      link_all_deplibs=yes
 
7918
 
 
7919
      if test "$GCC" = yes; then
 
7920
        case $host_os in aix4.[012]|aix4.[012].*)
 
7921
        # We only want to do this on AIX 4.2 and lower, the check
 
7922
        # below for broken collect2 doesn't work under 4.3+
 
7923
          collect2name=`${CC} -print-prog-name=collect2`
 
7924
          if test -f "$collect2name" && \
 
7925
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
7926
          then
 
7927
          # We have reworked collect2
 
7928
          hardcode_direct=yes
 
7929
          else
 
7930
          # We have old collect2
 
7931
          hardcode_direct=unsupported
 
7932
          # It fails to find uninstalled libraries when the uninstalled
 
7933
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
7934
          # to unsupported forces relinking
 
7935
          hardcode_minus_L=yes
 
7936
          hardcode_libdir_flag_spec='-L$libdir'
 
7937
          hardcode_libdir_separator=
 
7938
          fi
 
7939
          ;;
 
7940
        esac
 
7941
        shared_flag='-shared'
 
7942
        if test "$aix_use_runtimelinking" = yes; then
 
7943
          shared_flag="$shared_flag "'${wl}-G'
 
7944
        fi
 
7945
      else
 
7946
        # not using gcc
 
7947
        if test "$host_cpu" = ia64; then
 
7948
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
7949
        # chokes on -Wl,-G. The following line is correct:
 
7950
          shared_flag='-G'
 
7951
        else
 
7952
          if test "$aix_use_runtimelinking" = yes; then
 
7953
            shared_flag='${wl}-G'
 
7954
          else
 
7955
            shared_flag='${wl}-bM:SRE'
 
7956
          fi
 
7957
        fi
 
7958
      fi
 
7959
 
 
7960
      # It seems that -bexpall does not export symbols beginning with
 
7961
      # underscore (_), so it is better to generate a list of symbols to export.
 
7962
      always_export_symbols=yes
 
7963
      if test "$aix_use_runtimelinking" = yes; then
 
7964
        # Warning - without using the other runtime loading flags (-brtl),
 
7965
        # -berok will link without error, but may produce a broken library.
 
7966
        allow_undefined_flag='-berok'
 
7967
       # Determine the default libpath from the value encoded in an empty executable.
 
7968
       cat >conftest.$ac_ext <<_ACEOF
 
7969
/* confdefs.h.  */
 
7970
_ACEOF
 
7971
cat confdefs.h >>conftest.$ac_ext
 
7972
cat >>conftest.$ac_ext <<_ACEOF
 
7973
/* end confdefs.h.  */
 
7974
 
 
7975
int
 
7976
main ()
 
7977
{
 
7978
 
 
7979
  ;
 
7980
  return 0;
 
7981
}
 
7982
_ACEOF
 
7983
rm -f conftest.$ac_objext conftest$ac_exeext
 
7984
if { (ac_try="$ac_link"
 
7985
case "(($ac_try" in
 
7986
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7987
  *) ac_try_echo=$ac_try;;
 
7988
esac
 
7989
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7990
  (eval "$ac_link") 2>conftest.er1
 
7991
  ac_status=$?
 
7992
  grep -v '^ *+' conftest.er1 >conftest.err
 
7993
  rm -f conftest.er1
 
7994
  cat conftest.err >&5
 
7995
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7996
  (exit $ac_status); } && {
 
7997
         test -z "$ac_c_werror_flag" ||
 
7998
         test ! -s conftest.err
 
7999
       } && test -s conftest$ac_exeext &&
 
8000
       $as_test_x conftest$ac_exeext; then
 
8001
 
 
8002
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
8003
}'`
 
8004
# Check for a 64-bit object if we didn't find anything.
 
8005
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
8006
}'`; fi
 
8007
else
 
8008
  echo "$as_me: failed program was:" >&5
 
8009
sed 's/^/| /' conftest.$ac_ext >&5
 
8010
 
 
8011
 
 
8012
fi
 
8013
 
 
8014
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8015
      conftest$ac_exeext conftest.$ac_ext
 
8016
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
8017
 
 
8018
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8019
        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"
 
8020
       else
 
8021
        if test "$host_cpu" = ia64; then
 
8022
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
8023
          allow_undefined_flag="-z nodefs"
 
8024
          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"
 
8025
        else
 
8026
         # Determine the default libpath from the value encoded in an empty executable.
 
8027
         cat >conftest.$ac_ext <<_ACEOF
 
8028
/* confdefs.h.  */
 
8029
_ACEOF
 
8030
cat confdefs.h >>conftest.$ac_ext
 
8031
cat >>conftest.$ac_ext <<_ACEOF
 
8032
/* end confdefs.h.  */
 
8033
 
 
8034
int
 
8035
main ()
 
8036
{
 
8037
 
 
8038
  ;
 
8039
  return 0;
 
8040
}
 
8041
_ACEOF
 
8042
rm -f conftest.$ac_objext conftest$ac_exeext
 
8043
if { (ac_try="$ac_link"
 
8044
case "(($ac_try" in
 
8045
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8046
  *) ac_try_echo=$ac_try;;
 
8047
esac
 
8048
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8049
  (eval "$ac_link") 2>conftest.er1
 
8050
  ac_status=$?
 
8051
  grep -v '^ *+' conftest.er1 >conftest.err
 
8052
  rm -f conftest.er1
 
8053
  cat conftest.err >&5
 
8054
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8055
  (exit $ac_status); } && {
 
8056
         test -z "$ac_c_werror_flag" ||
 
8057
         test ! -s conftest.err
 
8058
       } && test -s conftest$ac_exeext &&
 
8059
       $as_test_x conftest$ac_exeext; then
 
8060
 
 
8061
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
8062
}'`
 
8063
# Check for a 64-bit object if we didn't find anything.
 
8064
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
8065
}'`; fi
 
8066
else
 
8067
  echo "$as_me: failed program was:" >&5
 
8068
sed 's/^/| /' conftest.$ac_ext >&5
 
8069
 
 
8070
 
 
8071
fi
 
8072
 
 
8073
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8074
      conftest$ac_exeext conftest.$ac_ext
 
8075
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
8076
 
 
8077
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8078
          # Warning - without using the other run time loading flags,
 
8079
          # -berok will link without error, but may produce a broken library.
 
8080
          no_undefined_flag=' ${wl}-bernotok'
 
8081
          allow_undefined_flag=' ${wl}-berok'
 
8082
          # Exported symbols can be pulled into shared objects from archives
 
8083
          whole_archive_flag_spec='$convenience'
 
8084
          archive_cmds_need_lc=yes
 
8085
          # This is similar to how AIX traditionally builds its shared libraries.
 
8086
          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'
 
8087
        fi
 
8088
      fi
 
8089
      ;;
 
8090
 
 
8091
    amigaos*)
 
8092
      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)'
 
8093
      hardcode_libdir_flag_spec='-L$libdir'
 
8094
      hardcode_minus_L=yes
 
8095
      # see comment about different semantics on the GNU ld section
 
8096
      ld_shlibs=no
 
8097
      ;;
 
8098
 
 
8099
    bsdi[45]*)
 
8100
      export_dynamic_flag_spec=-rdynamic
 
8101
      ;;
 
8102
 
 
8103
    cygwin* | mingw* | pw32*)
 
8104
      # When not using gcc, we currently assume that we are using
 
8105
      # Microsoft Visual C++.
 
8106
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
8107
      # no search path for DLLs.
 
8108
      hardcode_libdir_flag_spec=' '
 
8109
      allow_undefined_flag=unsupported
 
8110
      # Tell ltmain to make .lib files, not .a files.
 
8111
      libext=lib
 
8112
      # Tell ltmain to make .dll files, not .so files.
 
8113
      shrext_cmds=".dll"
 
8114
      # FIXME: Setting linknames here is a bad hack.
 
8115
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
8116
      # The linker will automatically build a .lib file if we build a DLL.
 
8117
      old_archive_From_new_cmds='true'
 
8118
      # FIXME: Should let the user specify the lib program.
 
8119
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
8120
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
8121
      enable_shared_with_static_runtimes=yes
 
8122
      ;;
 
8123
 
 
8124
    darwin* | rhapsody*)
 
8125
      case $host_os in
 
8126
        rhapsody* | darwin1.[012])
 
8127
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
 
8128
         ;;
 
8129
       *) # Darwin 1.3 on
 
8130
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
8131
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
8132
         else
 
8133
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
8134
             10.[012])
 
8135
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
8136
               ;;
 
8137
             10.*)
 
8138
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
 
8139
               ;;
 
8140
           esac
 
8141
         fi
 
8142
         ;;
 
8143
      esac
 
8144
      archive_cmds_need_lc=no
 
8145
      hardcode_direct=no
 
8146
      hardcode_automatic=yes
 
8147
      hardcode_shlibpath_var=unsupported
 
8148
      whole_archive_flag_spec=''
 
8149
      link_all_deplibs=yes
 
8150
    if test "$GCC" = yes ; then
 
8151
        output_verbose_link_cmd='echo'
 
8152
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
8153
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
8154
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
8155
      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
8156
      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}'
 
8157
    else
 
8158
      case $cc_basename in
 
8159
        xlc*)
 
8160
         output_verbose_link_cmd='echo'
 
8161
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
8162
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
8163
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
8164
         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
8165
          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}'
 
8166
          ;;
 
8167
       *)
 
8168
         ld_shlibs=no
 
8169
          ;;
 
8170
      esac
 
8171
    fi
 
8172
      ;;
 
8173
 
 
8174
    dgux*)
 
8175
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8176
      hardcode_libdir_flag_spec='-L$libdir'
 
8177
      hardcode_shlibpath_var=no
 
8178
      ;;
 
8179
 
 
8180
    freebsd1*)
 
8181
      ld_shlibs=no
 
8182
      ;;
 
8183
 
 
8184
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
8185
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
8186
    # does not break anything, and helps significantly (at the cost of a little
 
8187
    # extra space).
 
8188
    freebsd2.2*)
 
8189
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
8190
      hardcode_libdir_flag_spec='-R$libdir'
 
8191
      hardcode_direct=yes
 
8192
      hardcode_shlibpath_var=no
 
8193
      ;;
 
8194
 
 
8195
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
8196
    freebsd2*)
 
8197
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8198
      hardcode_direct=yes
 
8199
      hardcode_minus_L=yes
 
8200
      hardcode_shlibpath_var=no
 
8201
      ;;
 
8202
 
 
8203
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
8204
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
8205
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
8206
      hardcode_libdir_flag_spec='-R$libdir'
 
8207
      hardcode_direct=yes
 
8208
      hardcode_shlibpath_var=no
 
8209
      ;;
 
8210
 
 
8211
    hpux9*)
 
8212
      if test "$GCC" = yes; then
 
8213
        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'
 
8214
      else
 
8215
        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'
 
8216
      fi
 
8217
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8218
      hardcode_libdir_separator=:
 
8219
      hardcode_direct=yes
 
8220
 
 
8221
      # hardcode_minus_L: Not really in the search PATH,
 
8222
      # but as the default location of the library.
 
8223
      hardcode_minus_L=yes
 
8224
      export_dynamic_flag_spec='${wl}-E'
 
8225
      ;;
 
8226
 
 
8227
    hpux10*)
 
8228
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
8229
        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8230
      else
 
8231
        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
8232
      fi
 
8233
      if test "$with_gnu_ld" = no; then
 
8234
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8235
        hardcode_libdir_separator=:
 
8236
 
 
8237
        hardcode_direct=yes
 
8238
        export_dynamic_flag_spec='${wl}-E'
 
8239
 
 
8240
        # hardcode_minus_L: Not really in the search PATH,
 
8241
        # but as the default location of the library.
 
8242
        hardcode_minus_L=yes
 
8243
      fi
 
8244
      ;;
 
8245
 
 
8246
    hpux11*)
 
8247
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
8248
        case $host_cpu in
 
8249
        hppa*64*)
 
8250
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8251
          ;;
 
8252
        ia64*)
 
8253
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
8254
          ;;
 
8255
        *)
 
8256
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8257
          ;;
 
8258
        esac
 
8259
      else
 
8260
        case $host_cpu in
 
8261
        hppa*64*)
 
8262
          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8263
          ;;
 
8264
        ia64*)
 
8265
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
8266
          ;;
 
8267
        *)
 
8268
          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8269
          ;;
 
8270
        esac
 
8271
      fi
 
8272
      if test "$with_gnu_ld" = no; then
 
8273
        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8274
        hardcode_libdir_separator=:
 
8275
 
 
8276
        case $host_cpu in
 
8277
        hppa*64*|ia64*)
 
8278
          hardcode_libdir_flag_spec_ld='+b $libdir'
 
8279
          hardcode_direct=no
 
8280
          hardcode_shlibpath_var=no
 
8281
          ;;
 
8282
        *)
 
8283
          hardcode_direct=yes
 
8284
          export_dynamic_flag_spec='${wl}-E'
 
8285
 
 
8286
          # hardcode_minus_L: Not really in the search PATH,
 
8287
          # but as the default location of the library.
 
8288
          hardcode_minus_L=yes
 
8289
          ;;
 
8290
        esac
 
8291
      fi
 
8292
      ;;
 
8293
 
 
8294
    irix5* | irix6* | nonstopux*)
 
8295
      if test "$GCC" = yes; then
 
8296
        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'
 
8297
      else
 
8298
        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'
 
8299
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
8300
      fi
 
8301
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8302
      hardcode_libdir_separator=:
 
8303
      link_all_deplibs=yes
 
8304
      ;;
 
8305
 
 
8306
    netbsd*)
 
8307
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
8308
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
8309
      else
 
8310
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
8311
      fi
 
8312
      hardcode_libdir_flag_spec='-R$libdir'
 
8313
      hardcode_direct=yes
 
8314
      hardcode_shlibpath_var=no
 
8315
      ;;
 
8316
 
 
8317
    newsos6)
 
8318
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8319
      hardcode_direct=yes
 
8320
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8321
      hardcode_libdir_separator=:
 
8322
      hardcode_shlibpath_var=no
 
8323
      ;;
 
8324
 
 
8325
    openbsd*)
 
8326
      hardcode_direct=yes
 
8327
      hardcode_shlibpath_var=no
 
8328
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
8329
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
8330
        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
8331
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8332
        export_dynamic_flag_spec='${wl}-E'
 
8333
      else
 
8334
       case $host_os in
 
8335
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
8336
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8337
           hardcode_libdir_flag_spec='-R$libdir'
 
8338
           ;;
 
8339
         *)
 
8340
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
8341
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8342
           ;;
 
8343
       esac
 
8344
      fi
 
8345
      ;;
 
8346
 
 
8347
    os2*)
 
8348
      hardcode_libdir_flag_spec='-L$libdir'
 
8349
      hardcode_minus_L=yes
 
8350
      allow_undefined_flag=unsupported
 
8351
      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'
 
8352
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
8353
      ;;
 
8354
 
 
8355
    osf3*)
 
8356
      if test "$GCC" = yes; then
 
8357
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
8358
        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'
 
8359
      else
 
8360
        allow_undefined_flag=' -expect_unresolved \*'
 
8361
        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'
 
8362
      fi
 
8363
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8364
      hardcode_libdir_separator=:
 
8365
      ;;
 
8366
 
 
8367
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
8368
      if test "$GCC" = yes; then
 
8369
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
8370
        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'
 
8371
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8372
      else
 
8373
        allow_undefined_flag=' -expect_unresolved \*'
 
8374
        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'
 
8375
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
8376
        $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'
 
8377
 
 
8378
        # Both c and cxx compiler support -rpath directly
 
8379
        hardcode_libdir_flag_spec='-rpath $libdir'
 
8380
      fi
 
8381
      hardcode_libdir_separator=:
 
8382
      ;;
 
8383
 
 
8384
    solaris*)
 
8385
      no_undefined_flag=' -z text'
 
8386
      if test "$GCC" = yes; then
 
8387
        wlarc='${wl}'
 
8388
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8389
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
8390
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
8391
      else
 
8392
        wlarc=''
 
8393
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8394
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
8395
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
8396
      fi
 
8397
      hardcode_libdir_flag_spec='-R$libdir'
 
8398
      hardcode_shlibpath_var=no
 
8399
      case $host_os in
 
8400
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
8401
      *)
 
8402
        # The compiler driver will combine linker options so we
 
8403
        # cannot just pass the convience library names through
 
8404
        # without $wl, iff we do not link with $LD.
 
8405
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
8406
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
8407
        case $wlarc in
 
8408
        '')
 
8409
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
8410
        *)
 
8411
          whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
8412
        esac ;;
 
8413
      esac
 
8414
      link_all_deplibs=yes
 
8415
      ;;
 
8416
 
 
8417
    sunos4*)
 
8418
      if test "x$host_vendor" = xsequent; then
 
8419
        # Use $CC to link under sequent, because it throws in some extra .o
 
8420
        # files that make .init and .fini sections work.
 
8421
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
8422
      else
 
8423
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
8424
      fi
 
8425
      hardcode_libdir_flag_spec='-L$libdir'
 
8426
      hardcode_direct=yes
 
8427
      hardcode_minus_L=yes
 
8428
      hardcode_shlibpath_var=no
 
8429
      ;;
 
8430
 
 
8431
    sysv4)
 
8432
      case $host_vendor in
 
8433
        sni)
 
8434
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8435
          hardcode_direct=yes # is this really true???
 
8436
        ;;
 
8437
        siemens)
 
8438
          ## LD is ld it makes a PLAMLIB
 
8439
          ## CC just makes a GrossModule.
 
8440
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
8441
          reload_cmds='$CC -r -o $output$reload_objs'
 
8442
          hardcode_direct=no
 
8443
        ;;
 
8444
        motorola)
 
8445
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8446
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
8447
        ;;
 
8448
      esac
 
8449
      runpath_var='LD_RUN_PATH'
 
8450
      hardcode_shlibpath_var=no
 
8451
      ;;
 
8452
 
 
8453
    sysv4.3*)
 
8454
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8455
      hardcode_shlibpath_var=no
 
8456
      export_dynamic_flag_spec='-Bexport'
 
8457
      ;;
 
8458
 
 
8459
    sysv4*MP*)
 
8460
      if test -d /usr/nec; then
 
8461
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8462
        hardcode_shlibpath_var=no
 
8463
        runpath_var=LD_RUN_PATH
 
8464
        hardcode_runpath_var=yes
 
8465
        ld_shlibs=yes
 
8466
      fi
 
8467
      ;;
 
8468
 
 
8469
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
8470
      no_undefined_flag='${wl}-z,text'
 
8471
      archive_cmds_need_lc=no
 
8472
      hardcode_shlibpath_var=no
 
8473
      runpath_var='LD_RUN_PATH'
 
8474
 
 
8475
      if test "$GCC" = yes; then
 
8476
        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8477
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8478
      else
 
8479
        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8480
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8481
      fi
 
8482
      ;;
 
8483
 
 
8484
    sysv5* | sco3.2v5* | sco5v6*)
 
8485
      # Note: We can NOT use -z defs as we might desire, because we do not
 
8486
      # link with -lc, and that would cause any symbols used from libc to
 
8487
      # always be unresolved, which means just about no library would
 
8488
      # ever link correctly.  If we're not using GNU ld we use -z text
 
8489
      # though, which does catch some bad symbols but isn't as heavy-handed
 
8490
      # as -z defs.
 
8491
      no_undefined_flag='${wl}-z,text'
 
8492
      allow_undefined_flag='${wl}-z,nodefs'
 
8493
      archive_cmds_need_lc=no
 
8494
      hardcode_shlibpath_var=no
 
8495
      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
8496
      hardcode_libdir_separator=':'
 
8497
      link_all_deplibs=yes
 
8498
      export_dynamic_flag_spec='${wl}-Bexport'
 
8499
      runpath_var='LD_RUN_PATH'
 
8500
 
 
8501
      if test "$GCC" = yes; then
 
8502
        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8503
        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8504
      else
 
8505
        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8506
        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8507
      fi
 
8508
      ;;
 
8509
 
 
8510
    uts4*)
 
8511
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8512
      hardcode_libdir_flag_spec='-L$libdir'
 
8513
      hardcode_shlibpath_var=no
 
8514
      ;;
 
8515
 
 
8516
    *)
 
8517
      ld_shlibs=no
 
8518
      ;;
 
8519
    esac
 
8520
  fi
 
8521
 
 
8522
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
8523
echo "${ECHO_T}$ld_shlibs" >&6; }
 
8524
test "$ld_shlibs" = no && can_build_shared=no
 
8525
 
 
8526
#
 
8527
# Do we need to explicitly link libc?
 
8528
#
 
8529
case "x$archive_cmds_need_lc" in
 
8530
x|xyes)
 
8531
  # Assume -lc should be added
 
8532
  archive_cmds_need_lc=yes
 
8533
 
 
8534
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
8535
    case $archive_cmds in
 
8536
    *'~'*)
 
8537
      # FIXME: we may have to deal with multi-command sequences.
 
8538
      ;;
 
8539
    '$CC '*)
 
8540
      # Test whether the compiler implicitly links with -lc since on some
 
8541
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
8542
      # to ld, don't add -lc before -lgcc.
 
8543
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
8544
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
8545
      $rm conftest*
 
8546
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8547
 
 
8548
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8549
  (eval $ac_compile) 2>&5
 
8550
  ac_status=$?
 
8551
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8552
  (exit $ac_status); } 2>conftest.err; then
 
8553
        soname=conftest
 
8554
        lib=conftest
 
8555
        libobjs=conftest.$ac_objext
 
8556
        deplibs=
 
8557
        wl=$lt_prog_compiler_wl
 
8558
        pic_flag=$lt_prog_compiler_pic
 
8559
        compiler_flags=-v
 
8560
        linker_flags=-v
 
8561
        verstring=
 
8562
        output_objdir=.
 
8563
        libname=conftest
 
8564
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
8565
        allow_undefined_flag=
 
8566
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
8567
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
8568
  ac_status=$?
 
8569
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8570
  (exit $ac_status); }
 
8571
        then
 
8572
          archive_cmds_need_lc=no
 
8573
        else
 
8574
          archive_cmds_need_lc=yes
 
8575
        fi
 
8576
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
8577
      else
 
8578
        cat conftest.err 1>&5
 
8579
      fi
 
8580
      $rm conftest*
 
8581
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
8582
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
 
8583
      ;;
 
8584
    esac
 
8585
  fi
 
8586
  ;;
 
8587
esac
 
8588
 
 
8589
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
8590
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
8591
library_names_spec=
 
8592
libname_spec='lib$name'
 
8593
soname_spec=
 
8594
shrext_cmds=".so"
 
8595
postinstall_cmds=
 
8596
postuninstall_cmds=
 
8597
finish_cmds=
 
8598
finish_eval=
 
8599
shlibpath_var=
 
8600
shlibpath_overrides_runpath=unknown
 
8601
version_type=none
 
8602
dynamic_linker="$host_os ld.so"
 
8603
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
8604
if test "$GCC" = yes; then
 
8605
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
8606
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
8607
    # if the path contains ";" then we assume it to be the separator
 
8608
    # otherwise default to the standard path separator (i.e. ":") - it is
 
8609
    # assumed that no part of a normal pathname contains ";" but that should
 
8610
    # okay in the real world where ";" in dirpaths is itself problematic.
 
8611
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
8612
  else
 
8613
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
8614
  fi
 
8615
else
 
8616
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
8617
fi
 
8618
need_lib_prefix=unknown
 
8619
hardcode_into_libs=no
 
8620
 
 
8621
# when you set need_version to no, make sure it does not cause -set_version
 
8622
# flags to be left without arguments
 
8623
need_version=unknown
 
8624
 
 
8625
case $host_os in
 
8626
aix3*)
 
8627
  version_type=linux
 
8628
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
8629
  shlibpath_var=LIBPATH
 
8630
 
 
8631
  # AIX 3 has no versioning support, so we append a major version to the name.
 
8632
  soname_spec='${libname}${release}${shared_ext}$major'
 
8633
  ;;
 
8634
 
 
8635
aix4* | aix5*)
 
8636
  version_type=linux
 
8637
  need_lib_prefix=no
 
8638
  need_version=no
 
8639
  hardcode_into_libs=yes
 
8640
  if test "$host_cpu" = ia64; then
 
8641
    # AIX 5 supports IA64
 
8642
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
8643
    shlibpath_var=LD_LIBRARY_PATH
 
8644
  else
 
8645
    # With GCC up to 2.95.x, collect2 would create an import file
 
8646
    # for dependence libraries.  The import file would start with
 
8647
    # the line `#! .'.  This would cause the generated library to
 
8648
    # depend on `.', always an invalid library.  This was fixed in
 
8649
    # development snapshots of GCC prior to 3.0.
 
8650
    case $host_os in
 
8651
      aix4 | aix4.[01] | aix4.[01].*)
 
8652
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
8653
           echo ' yes '
 
8654
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
8655
        :
 
8656
      else
 
8657
        can_build_shared=no
 
8658
      fi
 
8659
      ;;
 
8660
    esac
 
8661
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
8662
    # soname into executable. Probably we can add versioning support to
 
8663
    # collect2, so additional links can be useful in future.
 
8664
    if test "$aix_use_runtimelinking" = yes; then
 
8665
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
8666
      # instead of lib<name>.a to let people know that these are not
 
8667
      # typical AIX shared libraries.
 
8668
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8669
    else
 
8670
      # We preserve .a as extension for shared libraries through AIX4.2
 
8671
      # and later when we are not doing run time linking.
 
8672
      library_names_spec='${libname}${release}.a $libname.a'
 
8673
      soname_spec='${libname}${release}${shared_ext}$major'
 
8674
    fi
 
8675
    shlibpath_var=LIBPATH
 
8676
  fi
 
8677
  ;;
 
8678
 
 
8679
amigaos*)
 
8680
  library_names_spec='$libname.ixlibrary $libname.a'
 
8681
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
8682
  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'
 
8683
  ;;
 
8684
 
 
8685
beos*)
 
8686
  library_names_spec='${libname}${shared_ext}'
 
8687
  dynamic_linker="$host_os ld.so"
 
8688
  shlibpath_var=LIBRARY_PATH
 
8689
  ;;
 
8690
 
 
8691
bsdi[45]*)
 
8692
  version_type=linux
 
8693
  need_version=no
 
8694
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8695
  soname_spec='${libname}${release}${shared_ext}$major'
 
8696
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
8697
  shlibpath_var=LD_LIBRARY_PATH
 
8698
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
8699
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
8700
  # the default ld.so.conf also contains /usr/contrib/lib and
 
8701
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
8702
  # libtool to hard-code these into programs
 
8703
  ;;
 
8704
 
 
8705
cygwin* | mingw* | pw32*)
 
8706
  version_type=windows
 
8707
  shrext_cmds=".dll"
 
8708
  need_version=no
 
8709
  need_lib_prefix=no
 
8710
 
 
8711
  case $GCC,$host_os in
 
8712
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
8713
    library_names_spec='$libname.dll.a'
 
8714
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
8715
    postinstall_cmds='base_file=`basename \${file}`~
 
8716
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
8717
      dldir=$destdir/`dirname \$dlpath`~
 
8718
      test -d \$dldir || mkdir -p \$dldir~
 
8719
      $install_prog $dir/$dlname \$dldir/$dlname~
 
8720
      chmod a+x \$dldir/$dlname'
 
8721
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
8722
      dlpath=$dir/\$dldll~
 
8723
       $rm \$dlpath'
 
8724
    shlibpath_overrides_runpath=yes
 
8725
 
 
8726
    case $host_os in
 
8727
    cygwin*)
 
8728
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
8729
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
8730
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
8731
      ;;
 
8732
    mingw*)
 
8733
      # MinGW DLLs use traditional 'lib' prefix
 
8734
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
8735
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
8736
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
8737
        # It is most probably a Windows format PATH printed by
 
8738
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
8739
        # path with ; separators, and with drive letters. We can handle the
 
8740
        # drive letters (cygwin fileutils understands them), so leave them,
 
8741
        # especially as we might pass files found there to a mingw objdump,
 
8742
        # which wouldn't understand a cygwinified path. Ahh.
 
8743
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
8744
      else
 
8745
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
8746
      fi
 
8747
      ;;
 
8748
    pw32*)
 
8749
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
8750
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
8751
      ;;
 
8752
    esac
 
8753
    ;;
 
8754
 
 
8755
  *)
 
8756
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
8757
    ;;
 
8758
  esac
 
8759
  dynamic_linker='Win32 ld.exe'
 
8760
  # FIXME: first we should search . and the directory the executable is in
 
8761
  shlibpath_var=PATH
 
8762
  ;;
 
8763
 
 
8764
darwin* | rhapsody*)
 
8765
  dynamic_linker="$host_os dyld"
 
8766
  version_type=darwin
 
8767
  need_lib_prefix=no
 
8768
  need_version=no
 
8769
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
8770
  soname_spec='${libname}${release}${major}$shared_ext'
 
8771
  shlibpath_overrides_runpath=yes
 
8772
  shlibpath_var=DYLD_LIBRARY_PATH
 
8773
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
8774
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
8775
  if test "$GCC" = yes; then
 
8776
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
8777
  else
 
8778
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
8779
  fi
 
8780
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
8781
  ;;
 
8782
 
 
8783
dgux*)
 
8784
  version_type=linux
 
8785
  need_lib_prefix=no
 
8786
  need_version=no
 
8787
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
8788
  soname_spec='${libname}${release}${shared_ext}$major'
 
8789
  shlibpath_var=LD_LIBRARY_PATH
 
8790
  ;;
 
8791
 
 
8792
freebsd1*)
 
8793
  dynamic_linker=no
 
8794
  ;;
 
8795
 
 
8796
kfreebsd*-gnu)
 
8797
  version_type=linux
 
8798
  need_lib_prefix=no
 
8799
  need_version=no
 
8800
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8801
  soname_spec='${libname}${release}${shared_ext}$major'
 
8802
  shlibpath_var=LD_LIBRARY_PATH
 
8803
  shlibpath_overrides_runpath=no
 
8804
  hardcode_into_libs=yes
 
8805
  dynamic_linker='GNU ld.so'
 
8806
  ;;
 
8807
 
 
8808
freebsd* | dragonfly*)
 
8809
  # DragonFly does not have aout.  When/if they implement a new
 
8810
  # versioning mechanism, adjust this.
 
8811
  if test -x /usr/bin/objformat; then
 
8812
    objformat=`/usr/bin/objformat`
 
8813
  else
 
8814
    case $host_os in
 
8815
    freebsd[123]*) objformat=aout ;;
 
8816
    *) objformat=elf ;;
 
8817
    esac
 
8818
  fi
 
8819
  version_type=freebsd-$objformat
 
8820
  case $version_type in
 
8821
    freebsd-elf*)
 
8822
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
8823
      need_version=no
 
8824
      need_lib_prefix=no
 
8825
      ;;
 
8826
    freebsd-*)
 
8827
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
8828
      need_version=yes
 
8829
      ;;
 
8830
  esac
 
8831
  shlibpath_var=LD_LIBRARY_PATH
 
8832
  case $host_os in
 
8833
  freebsd2*)
 
8834
    shlibpath_overrides_runpath=yes
 
8835
    ;;
 
8836
  freebsd3.[01]* | freebsdelf3.[01]*)
 
8837
    shlibpath_overrides_runpath=yes
 
8838
    hardcode_into_libs=yes
 
8839
    ;;
 
8840
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
8841
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
8842
    shlibpath_overrides_runpath=no
 
8843
    hardcode_into_libs=yes
 
8844
    ;;
 
8845
  freebsd*) # from 4.6 on
 
8846
    shlibpath_overrides_runpath=yes
 
8847
    hardcode_into_libs=yes
 
8848
    ;;
 
8849
  esac
 
8850
  ;;
 
8851
 
 
8852
gnu*)
 
8853
  version_type=linux
 
8854
  need_lib_prefix=no
 
8855
  need_version=no
 
8856
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
8857
  soname_spec='${libname}${release}${shared_ext}$major'
 
8858
  shlibpath_var=LD_LIBRARY_PATH
 
8859
  hardcode_into_libs=yes
 
8860
  ;;
 
8861
 
 
8862
hpux9* | hpux10* | hpux11*)
 
8863
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
8864
  # link against other versions.
 
8865
  version_type=sunos
 
8866
  need_lib_prefix=no
 
8867
  need_version=no
 
8868
  case $host_cpu in
 
8869
  ia64*)
 
8870
    shrext_cmds='.so'
 
8871
    hardcode_into_libs=yes
 
8872
    dynamic_linker="$host_os dld.so"
 
8873
    shlibpath_var=LD_LIBRARY_PATH
 
8874
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
8875
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8876
    soname_spec='${libname}${release}${shared_ext}$major'
 
8877
    if test "X$HPUX_IA64_MODE" = X32; then
 
8878
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
8879
    else
 
8880
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
8881
    fi
 
8882
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
8883
    ;;
 
8884
   hppa*64*)
 
8885
     shrext_cmds='.sl'
 
8886
     hardcode_into_libs=yes
 
8887
     dynamic_linker="$host_os dld.sl"
 
8888
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
8889
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
8890
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8891
     soname_spec='${libname}${release}${shared_ext}$major'
 
8892
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
8893
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
8894
     ;;
 
8895
   *)
 
8896
    shrext_cmds='.sl'
 
8897
    dynamic_linker="$host_os dld.sl"
 
8898
    shlibpath_var=SHLIB_PATH
 
8899
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
8900
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8901
    soname_spec='${libname}${release}${shared_ext}$major'
 
8902
    ;;
 
8903
  esac
 
8904
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
8905
  postinstall_cmds='chmod 555 $lib'
 
8906
  ;;
 
8907
 
 
8908
interix3*)
 
8909
  version_type=linux
 
8910
  need_lib_prefix=no
 
8911
  need_version=no
 
8912
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8913
  soname_spec='${libname}${release}${shared_ext}$major'
 
8914
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
8915
  shlibpath_var=LD_LIBRARY_PATH
 
8916
  shlibpath_overrides_runpath=no
 
8917
  hardcode_into_libs=yes
 
8918
  ;;
 
8919
 
 
8920
irix5* | irix6* | nonstopux*)
 
8921
  case $host_os in
 
8922
    nonstopux*) version_type=nonstopux ;;
 
8923
    *)
 
8924
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
8925
                version_type=linux
 
8926
        else
 
8927
                version_type=irix
 
8928
        fi ;;
 
8929
  esac
 
8930
  need_lib_prefix=no
 
8931
  need_version=no
 
8932
  soname_spec='${libname}${release}${shared_ext}$major'
 
8933
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
8934
  case $host_os in
 
8935
  irix5* | nonstopux*)
 
8936
    libsuff= shlibsuff=
 
8937
    ;;
 
8938
  *)
 
8939
    case $LD in # libtool.m4 will add one of these switches to LD
 
8940
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
8941
      libsuff= shlibsuff= libmagic=32-bit;;
 
8942
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
8943
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
8944
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
8945
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
8946
    *) libsuff= shlibsuff= libmagic=never-match;;
 
8947
    esac
 
8948
    ;;
 
8949
  esac
 
8950
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
8951
  shlibpath_overrides_runpath=no
 
8952
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
8953
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
8954
  hardcode_into_libs=yes
 
8955
  ;;
 
8956
 
 
8957
# No shared lib support for Linux oldld, aout, or coff.
 
8958
linux*oldld* | linux*aout* | linux*coff*)
 
8959
  dynamic_linker=no
 
8960
  ;;
 
8961
 
 
8962
# This must be Linux ELF.
 
8963
linux*)
 
8964
  version_type=linux
 
8965
  need_lib_prefix=no
 
8966
  need_version=no
 
8967
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8968
  soname_spec='${libname}${release}${shared_ext}$major'
 
8969
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
8970
  shlibpath_var=LD_LIBRARY_PATH
 
8971
  shlibpath_overrides_runpath=no
 
8972
  # This implies no fast_install, which is unacceptable.
 
8973
  # Some rework will be needed to allow for fast_install
 
8974
  # before this can be enabled.
 
8975
  hardcode_into_libs=yes
 
8976
 
 
8977
  # Append ld.so.conf contents to the search path
 
8978
  if test -f /etc/ld.so.conf; then
 
8979
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
8980
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
8981
  fi
 
8982
 
 
8983
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
8984
  # powerpc, because MkLinux only supported shared libraries with the
 
8985
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
8986
  # most powerpc-linux boxes support dynamic linking these days and
 
8987
  # people can always --disable-shared, the test was removed, and we
 
8988
  # assume the GNU/Linux dynamic linker is in use.
 
8989
  dynamic_linker='GNU/Linux ld.so'
 
8990
  ;;
 
8991
 
 
8992
knetbsd*-gnu)
 
8993
  version_type=linux
 
8994
  need_lib_prefix=no
 
8995
  need_version=no
 
8996
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8997
  soname_spec='${libname}${release}${shared_ext}$major'
 
8998
  shlibpath_var=LD_LIBRARY_PATH
 
8999
  shlibpath_overrides_runpath=no
 
9000
  hardcode_into_libs=yes
 
9001
  dynamic_linker='GNU ld.so'
 
9002
  ;;
 
9003
 
 
9004
netbsd*)
 
9005
  version_type=sunos
 
9006
  need_lib_prefix=no
 
9007
  need_version=no
 
9008
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
9009
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9010
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
9011
    dynamic_linker='NetBSD (a.out) ld.so'
 
9012
  else
 
9013
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9014
    soname_spec='${libname}${release}${shared_ext}$major'
 
9015
    dynamic_linker='NetBSD ld.elf_so'
 
9016
  fi
 
9017
  shlibpath_var=LD_LIBRARY_PATH
 
9018
  shlibpath_overrides_runpath=yes
 
9019
  hardcode_into_libs=yes
 
9020
  ;;
 
9021
 
 
9022
newsos6)
 
9023
  version_type=linux
 
9024
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9025
  shlibpath_var=LD_LIBRARY_PATH
 
9026
  shlibpath_overrides_runpath=yes
 
9027
  ;;
 
9028
 
 
9029
nto-qnx*)
 
9030
  version_type=linux
 
9031
  need_lib_prefix=no
 
9032
  need_version=no
 
9033
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9034
  soname_spec='${libname}${release}${shared_ext}$major'
 
9035
  shlibpath_var=LD_LIBRARY_PATH
 
9036
  shlibpath_overrides_runpath=yes
 
9037
  ;;
 
9038
 
 
9039
openbsd*)
 
9040
  version_type=sunos
 
9041
  sys_lib_dlsearch_path_spec="/usr/lib"
 
9042
  need_lib_prefix=no
 
9043
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
9044
  case $host_os in
 
9045
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
9046
    *)                         need_version=no  ;;
 
9047
  esac
 
9048
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9049
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
9050
  shlibpath_var=LD_LIBRARY_PATH
 
9051
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9052
    case $host_os in
 
9053
      openbsd2.[89] | openbsd2.[89].*)
 
9054
        shlibpath_overrides_runpath=no
 
9055
        ;;
 
9056
      *)
 
9057
        shlibpath_overrides_runpath=yes
 
9058
        ;;
 
9059
      esac
 
9060
  else
 
9061
    shlibpath_overrides_runpath=yes
 
9062
  fi
 
9063
  ;;
 
9064
 
 
9065
os2*)
 
9066
  libname_spec='$name'
 
9067
  shrext_cmds=".dll"
 
9068
  need_lib_prefix=no
 
9069
  library_names_spec='$libname${shared_ext} $libname.a'
 
9070
  dynamic_linker='OS/2 ld.exe'
 
9071
  shlibpath_var=LIBPATH
 
9072
  ;;
 
9073
 
 
9074
osf3* | osf4* | osf5*)
 
9075
  version_type=osf
 
9076
  need_lib_prefix=no
 
9077
  need_version=no
 
9078
  soname_spec='${libname}${release}${shared_ext}$major'
 
9079
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9080
  shlibpath_var=LD_LIBRARY_PATH
 
9081
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
9082
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
9083
  ;;
 
9084
 
 
9085
solaris*)
 
9086
  version_type=linux
 
9087
  need_lib_prefix=no
 
9088
  need_version=no
 
9089
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9090
  soname_spec='${libname}${release}${shared_ext}$major'
 
9091
  shlibpath_var=LD_LIBRARY_PATH
 
9092
  shlibpath_overrides_runpath=yes
 
9093
  hardcode_into_libs=yes
 
9094
  # ldd complains unless libraries are executable
 
9095
  postinstall_cmds='chmod +x $lib'
 
9096
  ;;
 
9097
 
 
9098
sunos4*)
 
9099
  version_type=sunos
 
9100
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9101
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
9102
  shlibpath_var=LD_LIBRARY_PATH
 
9103
  shlibpath_overrides_runpath=yes
 
9104
  if test "$with_gnu_ld" = yes; then
 
9105
    need_lib_prefix=no
 
9106
  fi
 
9107
  need_version=yes
 
9108
  ;;
 
9109
 
 
9110
sysv4 | sysv4.3*)
 
9111
  version_type=linux
 
9112
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9113
  soname_spec='${libname}${release}${shared_ext}$major'
 
9114
  shlibpath_var=LD_LIBRARY_PATH
 
9115
  case $host_vendor in
 
9116
    sni)
 
9117
      shlibpath_overrides_runpath=no
 
9118
      need_lib_prefix=no
 
9119
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
9120
      runpath_var=LD_RUN_PATH
 
9121
      ;;
 
9122
    siemens)
 
9123
      need_lib_prefix=no
 
9124
      ;;
 
9125
    motorola)
 
9126
      need_lib_prefix=no
 
9127
      need_version=no
 
9128
      shlibpath_overrides_runpath=no
 
9129
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
9130
      ;;
 
9131
  esac
 
9132
  ;;
 
9133
 
 
9134
sysv4*MP*)
 
9135
  if test -d /usr/nec ;then
 
9136
    version_type=linux
 
9137
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
9138
    soname_spec='$libname${shared_ext}.$major'
 
9139
    shlibpath_var=LD_LIBRARY_PATH
 
9140
  fi
 
9141
  ;;
 
9142
 
 
9143
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
9144
  version_type=freebsd-elf
 
9145
  need_lib_prefix=no
 
9146
  need_version=no
 
9147
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9148
  soname_spec='${libname}${release}${shared_ext}$major'
 
9149
  shlibpath_var=LD_LIBRARY_PATH
 
9150
  hardcode_into_libs=yes
 
9151
  if test "$with_gnu_ld" = yes; then
 
9152
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
9153
    shlibpath_overrides_runpath=no
 
9154
  else
 
9155
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
9156
    shlibpath_overrides_runpath=yes
 
9157
    case $host_os in
 
9158
      sco3.2v5*)
 
9159
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
9160
        ;;
 
9161
    esac
 
9162
  fi
 
9163
  sys_lib_dlsearch_path_spec='/usr/lib'
 
9164
  ;;
 
9165
 
 
9166
uts4*)
 
9167
  version_type=linux
 
9168
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9169
  soname_spec='${libname}${release}${shared_ext}$major'
 
9170
  shlibpath_var=LD_LIBRARY_PATH
 
9171
  ;;
 
9172
 
 
9173
*)
 
9174
  dynamic_linker=no
 
9175
  ;;
 
9176
esac
 
9177
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
9178
echo "${ECHO_T}$dynamic_linker" >&6; }
 
9179
test "$dynamic_linker" = no && can_build_shared=no
 
9180
 
 
9181
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
9182
if test "$GCC" = yes; then
 
9183
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
9184
fi
 
9185
 
 
9186
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
9187
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
9188
hardcode_action=
 
9189
if test -n "$hardcode_libdir_flag_spec" || \
 
9190
   test -n "$runpath_var" || \
 
9191
   test "X$hardcode_automatic" = "Xyes" ; then
 
9192
 
 
9193
  # We can hardcode non-existant directories.
 
9194
  if test "$hardcode_direct" != no &&
 
9195
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
9196
     # have to relink, otherwise we might link with an installed library
 
9197
     # when we should be linking with a yet-to-be-installed one
 
9198
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
9199
     test "$hardcode_minus_L" != no; then
 
9200
    # Linking always hardcodes the temporary library directory.
 
9201
    hardcode_action=relink
 
9202
  else
 
9203
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
9204
    hardcode_action=immediate
 
9205
  fi
 
9206
else
 
9207
  # We cannot hardcode anything, or else we can only hardcode existing
 
9208
  # directories.
 
9209
  hardcode_action=unsupported
 
9210
fi
 
9211
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
9212
echo "${ECHO_T}$hardcode_action" >&6; }
 
9213
 
 
9214
if test "$hardcode_action" = relink; then
 
9215
  # Fast installation is not supported
 
9216
  enable_fast_install=no
 
9217
elif test "$shlibpath_overrides_runpath" = yes ||
 
9218
     test "$enable_shared" = no; then
 
9219
  # Fast installation is not necessary
 
9220
  enable_fast_install=needless
 
9221
fi
 
9222
 
 
9223
striplib=
 
9224
old_striplib=
 
9225
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
9226
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
 
9227
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
9228
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
9229
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
9230
  { echo "$as_me:$LINENO: result: yes" >&5
 
9231
echo "${ECHO_T}yes" >&6; }
 
9232
else
 
9233
# FIXME - insert some real tests, host_os isn't really good enough
 
9234
  case $host_os in
 
9235
   darwin*)
 
9236
       if test -n "$STRIP" ; then
 
9237
         striplib="$STRIP -x"
 
9238
         { echo "$as_me:$LINENO: result: yes" >&5
 
9239
echo "${ECHO_T}yes" >&6; }
 
9240
       else
 
9241
  { echo "$as_me:$LINENO: result: no" >&5
 
9242
echo "${ECHO_T}no" >&6; }
 
9243
fi
 
9244
       ;;
 
9245
   *)
 
9246
  { echo "$as_me:$LINENO: result: no" >&5
 
9247
echo "${ECHO_T}no" >&6; }
 
9248
    ;;
 
9249
  esac
 
9250
fi
 
9251
 
 
9252
if test "x$enable_dlopen" != xyes; then
 
9253
  enable_dlopen=unknown
 
9254
  enable_dlopen_self=unknown
 
9255
  enable_dlopen_self_static=unknown
 
9256
else
 
9257
  lt_cv_dlopen=no
 
9258
  lt_cv_dlopen_libs=
 
9259
 
 
9260
  case $host_os in
 
9261
  beos*)
 
9262
    lt_cv_dlopen="load_add_on"
 
9263
    lt_cv_dlopen_libs=
 
9264
    lt_cv_dlopen_self=yes
 
9265
    ;;
 
9266
 
 
9267
  mingw* | pw32*)
 
9268
    lt_cv_dlopen="LoadLibrary"
 
9269
    lt_cv_dlopen_libs=
 
9270
   ;;
 
9271
 
 
9272
  cygwin*)
 
9273
    lt_cv_dlopen="dlopen"
 
9274
    lt_cv_dlopen_libs=
 
9275
   ;;
 
9276
 
 
9277
  darwin*)
 
9278
  # if libdl is installed we need to link against it
 
9279
    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
9280
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
 
9281
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
9282
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9283
else
 
9284
  ac_check_lib_save_LIBS=$LIBS
 
9285
LIBS="-ldl  $LIBS"
 
9286
cat >conftest.$ac_ext <<_ACEOF
 
9287
/* confdefs.h.  */
 
9288
_ACEOF
 
9289
cat confdefs.h >>conftest.$ac_ext
 
9290
cat >>conftest.$ac_ext <<_ACEOF
 
9291
/* end confdefs.h.  */
 
9292
 
 
9293
/* Override any GCC internal prototype to avoid an error.
 
9294
   Use char because int might match the return type of a GCC
 
9295
   builtin and then its argument prototype would still apply.  */
 
9296
#ifdef __cplusplus
 
9297
extern "C"
 
9298
#endif
 
9299
char dlopen ();
 
9300
int
 
9301
main ()
 
9302
{
 
9303
return dlopen ();
 
9304
  ;
 
9305
  return 0;
 
9306
}
 
9307
_ACEOF
 
9308
rm -f conftest.$ac_objext conftest$ac_exeext
 
9309
if { (ac_try="$ac_link"
 
9310
case "(($ac_try" in
 
9311
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9312
  *) ac_try_echo=$ac_try;;
 
9313
esac
 
9314
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9315
  (eval "$ac_link") 2>conftest.er1
 
9316
  ac_status=$?
 
9317
  grep -v '^ *+' conftest.er1 >conftest.err
 
9318
  rm -f conftest.er1
 
9319
  cat conftest.err >&5
 
9320
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9321
  (exit $ac_status); } && {
 
9322
         test -z "$ac_c_werror_flag" ||
 
9323
         test ! -s conftest.err
 
9324
       } && test -s conftest$ac_exeext &&
 
9325
       $as_test_x conftest$ac_exeext; then
 
9326
  ac_cv_lib_dl_dlopen=yes
 
9327
else
 
9328
  echo "$as_me: failed program was:" >&5
 
9329
sed 's/^/| /' conftest.$ac_ext >&5
 
9330
 
 
9331
        ac_cv_lib_dl_dlopen=no
 
9332
fi
 
9333
 
 
9334
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9335
      conftest$ac_exeext conftest.$ac_ext
 
9336
LIBS=$ac_check_lib_save_LIBS
 
9337
fi
 
9338
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
9339
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
 
9340
if test $ac_cv_lib_dl_dlopen = yes; then
 
9341
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
9342
else
 
9343
 
 
9344
    lt_cv_dlopen="dyld"
 
9345
    lt_cv_dlopen_libs=
 
9346
    lt_cv_dlopen_self=yes
 
9347
 
 
9348
fi
 
9349
 
 
9350
   ;;
 
9351
 
 
9352
  *)
 
9353
    { echo "$as_me:$LINENO: checking for shl_load" >&5
 
9354
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
 
9355
if test "${ac_cv_func_shl_load+set}" = set; then
 
9356
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9357
else
 
9358
  cat >conftest.$ac_ext <<_ACEOF
 
9359
/* confdefs.h.  */
 
9360
_ACEOF
 
9361
cat confdefs.h >>conftest.$ac_ext
 
9362
cat >>conftest.$ac_ext <<_ACEOF
 
9363
/* end confdefs.h.  */
 
9364
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
9365
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
9366
#define shl_load innocuous_shl_load
 
9367
 
 
9368
/* System header to define __stub macros and hopefully few prototypes,
 
9369
    which can conflict with char shl_load (); below.
 
9370
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
9371
    <limits.h> exists even on freestanding compilers.  */
 
9372
 
 
9373
#ifdef __STDC__
 
9374
# include <limits.h>
 
9375
#else
 
9376
# include <assert.h>
 
9377
#endif
 
9378
 
 
9379
#undef shl_load
 
9380
 
 
9381
/* Override any GCC internal prototype to avoid an error.
 
9382
   Use char because int might match the return type of a GCC
 
9383
   builtin and then its argument prototype would still apply.  */
 
9384
#ifdef __cplusplus
 
9385
extern "C"
 
9386
#endif
 
9387
char shl_load ();
 
9388
/* The GNU C library defines this for functions which it implements
 
9389
    to always fail with ENOSYS.  Some functions are actually named
 
9390
    something starting with __ and the normal name is an alias.  */
 
9391
#if defined __stub_shl_load || defined __stub___shl_load
 
9392
choke me
 
9393
#endif
 
9394
 
 
9395
int
 
9396
main ()
 
9397
{
 
9398
return shl_load ();
 
9399
  ;
 
9400
  return 0;
 
9401
}
 
9402
_ACEOF
 
9403
rm -f conftest.$ac_objext conftest$ac_exeext
 
9404
if { (ac_try="$ac_link"
 
9405
case "(($ac_try" in
 
9406
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9407
  *) ac_try_echo=$ac_try;;
 
9408
esac
 
9409
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9410
  (eval "$ac_link") 2>conftest.er1
 
9411
  ac_status=$?
 
9412
  grep -v '^ *+' conftest.er1 >conftest.err
 
9413
  rm -f conftest.er1
 
9414
  cat conftest.err >&5
 
9415
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9416
  (exit $ac_status); } && {
 
9417
         test -z "$ac_c_werror_flag" ||
 
9418
         test ! -s conftest.err
 
9419
       } && test -s conftest$ac_exeext &&
 
9420
       $as_test_x conftest$ac_exeext; then
 
9421
  ac_cv_func_shl_load=yes
 
9422
else
 
9423
  echo "$as_me: failed program was:" >&5
 
9424
sed 's/^/| /' conftest.$ac_ext >&5
 
9425
 
 
9426
        ac_cv_func_shl_load=no
 
9427
fi
 
9428
 
 
9429
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9430
      conftest$ac_exeext conftest.$ac_ext
 
9431
fi
 
9432
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
9433
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
 
9434
if test $ac_cv_func_shl_load = yes; then
 
9435
  lt_cv_dlopen="shl_load"
 
9436
else
 
9437
  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
9438
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
 
9439
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
9440
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9441
else
 
9442
  ac_check_lib_save_LIBS=$LIBS
 
9443
LIBS="-ldld  $LIBS"
 
9444
cat >conftest.$ac_ext <<_ACEOF
 
9445
/* confdefs.h.  */
 
9446
_ACEOF
 
9447
cat confdefs.h >>conftest.$ac_ext
 
9448
cat >>conftest.$ac_ext <<_ACEOF
 
9449
/* end confdefs.h.  */
 
9450
 
 
9451
/* Override any GCC internal prototype to avoid an error.
 
9452
   Use char because int might match the return type of a GCC
 
9453
   builtin and then its argument prototype would still apply.  */
 
9454
#ifdef __cplusplus
 
9455
extern "C"
 
9456
#endif
 
9457
char shl_load ();
 
9458
int
 
9459
main ()
 
9460
{
 
9461
return shl_load ();
 
9462
  ;
 
9463
  return 0;
 
9464
}
 
9465
_ACEOF
 
9466
rm -f conftest.$ac_objext conftest$ac_exeext
 
9467
if { (ac_try="$ac_link"
 
9468
case "(($ac_try" in
 
9469
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9470
  *) ac_try_echo=$ac_try;;
 
9471
esac
 
9472
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9473
  (eval "$ac_link") 2>conftest.er1
 
9474
  ac_status=$?
 
9475
  grep -v '^ *+' conftest.er1 >conftest.err
 
9476
  rm -f conftest.er1
 
9477
  cat conftest.err >&5
 
9478
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9479
  (exit $ac_status); } && {
 
9480
         test -z "$ac_c_werror_flag" ||
 
9481
         test ! -s conftest.err
 
9482
       } && test -s conftest$ac_exeext &&
 
9483
       $as_test_x conftest$ac_exeext; then
 
9484
  ac_cv_lib_dld_shl_load=yes
 
9485
else
 
9486
  echo "$as_me: failed program was:" >&5
 
9487
sed 's/^/| /' conftest.$ac_ext >&5
 
9488
 
 
9489
        ac_cv_lib_dld_shl_load=no
 
9490
fi
 
9491
 
 
9492
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9493
      conftest$ac_exeext conftest.$ac_ext
 
9494
LIBS=$ac_check_lib_save_LIBS
 
9495
fi
 
9496
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
9497
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
 
9498
if test $ac_cv_lib_dld_shl_load = yes; then
 
9499
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
9500
else
 
9501
  { echo "$as_me:$LINENO: checking for dlopen" >&5
 
9502
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
 
9503
if test "${ac_cv_func_dlopen+set}" = set; then
 
9504
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9505
else
 
9506
  cat >conftest.$ac_ext <<_ACEOF
 
9507
/* confdefs.h.  */
 
9508
_ACEOF
 
9509
cat confdefs.h >>conftest.$ac_ext
 
9510
cat >>conftest.$ac_ext <<_ACEOF
 
9511
/* end confdefs.h.  */
 
9512
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
9513
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
9514
#define dlopen innocuous_dlopen
 
9515
 
 
9516
/* System header to define __stub macros and hopefully few prototypes,
 
9517
    which can conflict with char dlopen (); below.
 
9518
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
9519
    <limits.h> exists even on freestanding compilers.  */
 
9520
 
 
9521
#ifdef __STDC__
 
9522
# include <limits.h>
 
9523
#else
 
9524
# include <assert.h>
 
9525
#endif
 
9526
 
 
9527
#undef dlopen
 
9528
 
 
9529
/* Override any GCC internal prototype to avoid an error.
 
9530
   Use char because int might match the return type of a GCC
 
9531
   builtin and then its argument prototype would still apply.  */
 
9532
#ifdef __cplusplus
 
9533
extern "C"
 
9534
#endif
 
9535
char dlopen ();
 
9536
/* The GNU C library defines this for functions which it implements
 
9537
    to always fail with ENOSYS.  Some functions are actually named
 
9538
    something starting with __ and the normal name is an alias.  */
 
9539
#if defined __stub_dlopen || defined __stub___dlopen
 
9540
choke me
 
9541
#endif
 
9542
 
 
9543
int
 
9544
main ()
 
9545
{
 
9546
return dlopen ();
 
9547
  ;
 
9548
  return 0;
 
9549
}
 
9550
_ACEOF
 
9551
rm -f conftest.$ac_objext conftest$ac_exeext
 
9552
if { (ac_try="$ac_link"
 
9553
case "(($ac_try" in
 
9554
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9555
  *) ac_try_echo=$ac_try;;
 
9556
esac
 
9557
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9558
  (eval "$ac_link") 2>conftest.er1
 
9559
  ac_status=$?
 
9560
  grep -v '^ *+' conftest.er1 >conftest.err
 
9561
  rm -f conftest.er1
 
9562
  cat conftest.err >&5
 
9563
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9564
  (exit $ac_status); } && {
 
9565
         test -z "$ac_c_werror_flag" ||
 
9566
         test ! -s conftest.err
 
9567
       } && test -s conftest$ac_exeext &&
 
9568
       $as_test_x conftest$ac_exeext; then
 
9569
  ac_cv_func_dlopen=yes
 
9570
else
 
9571
  echo "$as_me: failed program was:" >&5
 
9572
sed 's/^/| /' conftest.$ac_ext >&5
 
9573
 
 
9574
        ac_cv_func_dlopen=no
 
9575
fi
 
9576
 
 
9577
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9578
      conftest$ac_exeext conftest.$ac_ext
 
9579
fi
 
9580
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
9581
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
 
9582
if test $ac_cv_func_dlopen = yes; then
 
9583
  lt_cv_dlopen="dlopen"
 
9584
else
 
9585
  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
9586
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
 
9587
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
9588
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9589
else
 
9590
  ac_check_lib_save_LIBS=$LIBS
 
9591
LIBS="-ldl  $LIBS"
 
9592
cat >conftest.$ac_ext <<_ACEOF
 
9593
/* confdefs.h.  */
 
9594
_ACEOF
 
9595
cat confdefs.h >>conftest.$ac_ext
 
9596
cat >>conftest.$ac_ext <<_ACEOF
 
9597
/* end confdefs.h.  */
 
9598
 
 
9599
/* Override any GCC internal prototype to avoid an error.
 
9600
   Use char because int might match the return type of a GCC
 
9601
   builtin and then its argument prototype would still apply.  */
 
9602
#ifdef __cplusplus
 
9603
extern "C"
 
9604
#endif
 
9605
char dlopen ();
 
9606
int
 
9607
main ()
 
9608
{
 
9609
return dlopen ();
 
9610
  ;
 
9611
  return 0;
 
9612
}
 
9613
_ACEOF
 
9614
rm -f conftest.$ac_objext conftest$ac_exeext
 
9615
if { (ac_try="$ac_link"
 
9616
case "(($ac_try" in
 
9617
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9618
  *) ac_try_echo=$ac_try;;
 
9619
esac
 
9620
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9621
  (eval "$ac_link") 2>conftest.er1
 
9622
  ac_status=$?
 
9623
  grep -v '^ *+' conftest.er1 >conftest.err
 
9624
  rm -f conftest.er1
 
9625
  cat conftest.err >&5
 
9626
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9627
  (exit $ac_status); } && {
 
9628
         test -z "$ac_c_werror_flag" ||
 
9629
         test ! -s conftest.err
 
9630
       } && test -s conftest$ac_exeext &&
 
9631
       $as_test_x conftest$ac_exeext; then
 
9632
  ac_cv_lib_dl_dlopen=yes
 
9633
else
 
9634
  echo "$as_me: failed program was:" >&5
 
9635
sed 's/^/| /' conftest.$ac_ext >&5
 
9636
 
 
9637
        ac_cv_lib_dl_dlopen=no
 
9638
fi
 
9639
 
 
9640
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9641
      conftest$ac_exeext conftest.$ac_ext
 
9642
LIBS=$ac_check_lib_save_LIBS
 
9643
fi
 
9644
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
9645
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
 
9646
if test $ac_cv_lib_dl_dlopen = yes; then
 
9647
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
9648
else
 
9649
  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
9650
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
 
9651
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
9652
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9653
else
 
9654
  ac_check_lib_save_LIBS=$LIBS
 
9655
LIBS="-lsvld  $LIBS"
 
9656
cat >conftest.$ac_ext <<_ACEOF
 
9657
/* confdefs.h.  */
 
9658
_ACEOF
 
9659
cat confdefs.h >>conftest.$ac_ext
 
9660
cat >>conftest.$ac_ext <<_ACEOF
 
9661
/* end confdefs.h.  */
 
9662
 
 
9663
/* Override any GCC internal prototype to avoid an error.
 
9664
   Use char because int might match the return type of a GCC
 
9665
   builtin and then its argument prototype would still apply.  */
 
9666
#ifdef __cplusplus
 
9667
extern "C"
 
9668
#endif
 
9669
char dlopen ();
 
9670
int
 
9671
main ()
 
9672
{
 
9673
return dlopen ();
 
9674
  ;
 
9675
  return 0;
 
9676
}
 
9677
_ACEOF
 
9678
rm -f conftest.$ac_objext conftest$ac_exeext
 
9679
if { (ac_try="$ac_link"
 
9680
case "(($ac_try" in
 
9681
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9682
  *) ac_try_echo=$ac_try;;
 
9683
esac
 
9684
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9685
  (eval "$ac_link") 2>conftest.er1
 
9686
  ac_status=$?
 
9687
  grep -v '^ *+' conftest.er1 >conftest.err
 
9688
  rm -f conftest.er1
 
9689
  cat conftest.err >&5
 
9690
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9691
  (exit $ac_status); } && {
 
9692
         test -z "$ac_c_werror_flag" ||
 
9693
         test ! -s conftest.err
 
9694
       } && test -s conftest$ac_exeext &&
 
9695
       $as_test_x conftest$ac_exeext; then
 
9696
  ac_cv_lib_svld_dlopen=yes
 
9697
else
 
9698
  echo "$as_me: failed program was:" >&5
 
9699
sed 's/^/| /' conftest.$ac_ext >&5
 
9700
 
 
9701
        ac_cv_lib_svld_dlopen=no
 
9702
fi
 
9703
 
 
9704
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9705
      conftest$ac_exeext conftest.$ac_ext
 
9706
LIBS=$ac_check_lib_save_LIBS
 
9707
fi
 
9708
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
9709
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
 
9710
if test $ac_cv_lib_svld_dlopen = yes; then
 
9711
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
9712
else
 
9713
  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
9714
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
 
9715
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
9716
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9717
else
 
9718
  ac_check_lib_save_LIBS=$LIBS
 
9719
LIBS="-ldld  $LIBS"
 
9720
cat >conftest.$ac_ext <<_ACEOF
 
9721
/* confdefs.h.  */
 
9722
_ACEOF
 
9723
cat confdefs.h >>conftest.$ac_ext
 
9724
cat >>conftest.$ac_ext <<_ACEOF
 
9725
/* end confdefs.h.  */
 
9726
 
 
9727
/* Override any GCC internal prototype to avoid an error.
 
9728
   Use char because int might match the return type of a GCC
 
9729
   builtin and then its argument prototype would still apply.  */
 
9730
#ifdef __cplusplus
 
9731
extern "C"
 
9732
#endif
 
9733
char dld_link ();
 
9734
int
 
9735
main ()
 
9736
{
 
9737
return dld_link ();
 
9738
  ;
 
9739
  return 0;
 
9740
}
 
9741
_ACEOF
 
9742
rm -f conftest.$ac_objext conftest$ac_exeext
 
9743
if { (ac_try="$ac_link"
 
9744
case "(($ac_try" in
 
9745
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9746
  *) ac_try_echo=$ac_try;;
 
9747
esac
 
9748
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9749
  (eval "$ac_link") 2>conftest.er1
 
9750
  ac_status=$?
 
9751
  grep -v '^ *+' conftest.er1 >conftest.err
 
9752
  rm -f conftest.er1
 
9753
  cat conftest.err >&5
 
9754
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9755
  (exit $ac_status); } && {
 
9756
         test -z "$ac_c_werror_flag" ||
 
9757
         test ! -s conftest.err
 
9758
       } && test -s conftest$ac_exeext &&
 
9759
       $as_test_x conftest$ac_exeext; then
 
9760
  ac_cv_lib_dld_dld_link=yes
 
9761
else
 
9762
  echo "$as_me: failed program was:" >&5
 
9763
sed 's/^/| /' conftest.$ac_ext >&5
 
9764
 
 
9765
        ac_cv_lib_dld_dld_link=no
 
9766
fi
 
9767
 
 
9768
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9769
      conftest$ac_exeext conftest.$ac_ext
 
9770
LIBS=$ac_check_lib_save_LIBS
 
9771
fi
 
9772
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
9773
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
 
9774
if test $ac_cv_lib_dld_dld_link = yes; then
 
9775
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
9776
fi
 
9777
 
 
9778
 
 
9779
fi
 
9780
 
 
9781
 
 
9782
fi
 
9783
 
 
9784
 
 
9785
fi
 
9786
 
 
9787
 
 
9788
fi
 
9789
 
 
9790
 
 
9791
fi
 
9792
 
 
9793
    ;;
 
9794
  esac
 
9795
 
 
9796
  if test "x$lt_cv_dlopen" != xno; then
 
9797
    enable_dlopen=yes
 
9798
  else
 
9799
    enable_dlopen=no
 
9800
  fi
 
9801
 
 
9802
  case $lt_cv_dlopen in
 
9803
  dlopen)
 
9804
    save_CPPFLAGS="$CPPFLAGS"
 
9805
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
9806
 
 
9807
    save_LDFLAGS="$LDFLAGS"
 
9808
    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
9809
 
 
9810
    save_LIBS="$LIBS"
 
9811
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
9812
 
 
9813
    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
9814
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
 
9815
if test "${lt_cv_dlopen_self+set}" = set; then
 
9816
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9817
else
 
9818
          if test "$cross_compiling" = yes; then :
 
9819
  lt_cv_dlopen_self=cross
 
9820
else
 
9821
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
9822
  lt_status=$lt_dlunknown
 
9823
  cat > conftest.$ac_ext <<EOF
 
9824
#line 9824 "configure"
 
9825
#include "confdefs.h"
 
9826
 
 
9827
#if HAVE_DLFCN_H
 
9828
#include <dlfcn.h>
 
9829
#endif
 
9830
 
 
9831
#include <stdio.h>
 
9832
 
 
9833
#ifdef RTLD_GLOBAL
 
9834
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
9835
#else
 
9836
#  ifdef DL_GLOBAL
 
9837
#    define LT_DLGLOBAL         DL_GLOBAL
 
9838
#  else
 
9839
#    define LT_DLGLOBAL         0
 
9840
#  endif
 
9841
#endif
 
9842
 
 
9843
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
9844
   find out it does not work in some platform. */
 
9845
#ifndef LT_DLLAZY_OR_NOW
 
9846
#  ifdef RTLD_LAZY
 
9847
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
9848
#  else
 
9849
#    ifdef DL_LAZY
 
9850
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
9851
#    else
 
9852
#      ifdef RTLD_NOW
 
9853
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
9854
#      else
 
9855
#        ifdef DL_NOW
 
9856
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
9857
#        else
 
9858
#          define LT_DLLAZY_OR_NOW      0
 
9859
#        endif
 
9860
#      endif
 
9861
#    endif
 
9862
#  endif
 
9863
#endif
 
9864
 
 
9865
#ifdef __cplusplus
 
9866
extern "C" void exit (int);
 
9867
#endif
 
9868
 
 
9869
void fnord() { int i=42;}
 
9870
int main ()
 
9871
{
 
9872
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
9873
  int status = $lt_dlunknown;
 
9874
 
 
9875
  if (self)
 
9876
    {
 
9877
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
9878
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
9879
      /* dlclose (self); */
 
9880
    }
 
9881
  else
 
9882
    puts (dlerror ());
 
9883
 
 
9884
    exit (status);
 
9885
}
 
9886
EOF
 
9887
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9888
  (eval $ac_link) 2>&5
 
9889
  ac_status=$?
 
9890
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9891
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
9892
    (./conftest; exit; ) >&5 2>/dev/null
 
9893
    lt_status=$?
 
9894
    case x$lt_status in
 
9895
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
9896
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
9897
      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
 
9898
    esac
 
9899
  else :
 
9900
    # compilation failed
 
9901
    lt_cv_dlopen_self=no
 
9902
  fi
 
9903
fi
 
9904
rm -fr conftest*
 
9905
 
 
9906
 
 
9907
fi
 
9908
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
9909
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
 
9910
 
 
9911
    if test "x$lt_cv_dlopen_self" = xyes; then
 
9912
      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
 
9913
      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
9914
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
 
9915
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
9916
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9917
else
 
9918
          if test "$cross_compiling" = yes; then :
 
9919
  lt_cv_dlopen_self_static=cross
 
9920
else
 
9921
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
9922
  lt_status=$lt_dlunknown
 
9923
  cat > conftest.$ac_ext <<EOF
 
9924
#line 9924 "configure"
 
9925
#include "confdefs.h"
 
9926
 
 
9927
#if HAVE_DLFCN_H
 
9928
#include <dlfcn.h>
 
9929
#endif
 
9930
 
 
9931
#include <stdio.h>
 
9932
 
 
9933
#ifdef RTLD_GLOBAL
 
9934
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
9935
#else
 
9936
#  ifdef DL_GLOBAL
 
9937
#    define LT_DLGLOBAL         DL_GLOBAL
 
9938
#  else
 
9939
#    define LT_DLGLOBAL         0
 
9940
#  endif
 
9941
#endif
 
9942
 
 
9943
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
9944
   find out it does not work in some platform. */
 
9945
#ifndef LT_DLLAZY_OR_NOW
 
9946
#  ifdef RTLD_LAZY
 
9947
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
9948
#  else
 
9949
#    ifdef DL_LAZY
 
9950
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
9951
#    else
 
9952
#      ifdef RTLD_NOW
 
9953
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
9954
#      else
 
9955
#        ifdef DL_NOW
 
9956
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
9957
#        else
 
9958
#          define LT_DLLAZY_OR_NOW      0
 
9959
#        endif
 
9960
#      endif
 
9961
#    endif
 
9962
#  endif
 
9963
#endif
 
9964
 
 
9965
#ifdef __cplusplus
 
9966
extern "C" void exit (int);
 
9967
#endif
 
9968
 
 
9969
void fnord() { int i=42;}
 
9970
int main ()
 
9971
{
 
9972
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
9973
  int status = $lt_dlunknown;
 
9974
 
 
9975
  if (self)
 
9976
    {
 
9977
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
9978
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
9979
      /* dlclose (self); */
 
9980
    }
 
9981
  else
 
9982
    puts (dlerror ());
 
9983
 
 
9984
    exit (status);
 
9985
}
 
9986
EOF
 
9987
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9988
  (eval $ac_link) 2>&5
 
9989
  ac_status=$?
 
9990
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9991
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
9992
    (./conftest; exit; ) >&5 2>/dev/null
 
9993
    lt_status=$?
 
9994
    case x$lt_status in
 
9995
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
9996
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
9997
      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
 
9998
    esac
 
9999
  else :
 
10000
    # compilation failed
 
10001
    lt_cv_dlopen_self_static=no
 
10002
  fi
 
10003
fi
 
10004
rm -fr conftest*
 
10005
 
 
10006
 
 
10007
fi
 
10008
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
10009
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
 
10010
    fi
 
10011
 
 
10012
    CPPFLAGS="$save_CPPFLAGS"
 
10013
    LDFLAGS="$save_LDFLAGS"
 
10014
    LIBS="$save_LIBS"
 
10015
    ;;
 
10016
  esac
 
10017
 
 
10018
  case $lt_cv_dlopen_self in
 
10019
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
10020
  *) enable_dlopen_self=unknown ;;
 
10021
  esac
 
10022
 
 
10023
  case $lt_cv_dlopen_self_static in
 
10024
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
10025
  *) enable_dlopen_self_static=unknown ;;
 
10026
  esac
 
10027
fi
 
10028
 
 
10029
 
 
10030
# Report which library types will actually be built
 
10031
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
10032
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
 
10033
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
10034
echo "${ECHO_T}$can_build_shared" >&6; }
 
10035
 
 
10036
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
10037
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
 
10038
test "$can_build_shared" = "no" && enable_shared=no
 
10039
 
 
10040
# On AIX, shared libraries and static libraries use the same namespace, and
 
10041
# are all built from PIC.
 
10042
case $host_os in
 
10043
aix3*)
 
10044
  test "$enable_shared" = yes && enable_static=no
 
10045
  if test -n "$RANLIB"; then
 
10046
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
10047
    postinstall_cmds='$RANLIB $lib'
 
10048
  fi
 
10049
  ;;
 
10050
 
 
10051
aix4* | aix5*)
 
10052
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
10053
    test "$enable_shared" = yes && enable_static=no
 
10054
  fi
 
10055
    ;;
 
10056
esac
 
10057
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
 
10058
echo "${ECHO_T}$enable_shared" >&6; }
 
10059
 
 
10060
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
10061
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
 
10062
# Make sure either enable_shared or enable_static is yes.
 
10063
test "$enable_shared" = yes || enable_static=yes
 
10064
{ echo "$as_me:$LINENO: result: $enable_static" >&5
 
10065
echo "${ECHO_T}$enable_static" >&6; }
 
10066
 
 
10067
# The else clause should only fire when bootstrapping the
 
10068
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
10069
# with your package, and you will get complaints that there are
 
10070
# no rules to generate ltmain.sh.
 
10071
if test -f "$ltmain"; then
 
10072
  # See if we are running on zsh, and set the options which allow our commands through
 
10073
  # without removal of \ escapes.
 
10074
  if test -n "${ZSH_VERSION+set}" ; then
 
10075
    setopt NO_GLOB_SUBST
 
10076
  fi
 
10077
  # Now quote all the things that may contain metacharacters while being
 
10078
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
10079
  # variables and quote the copies for generation of the libtool script.
 
10080
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
10081
    SED SHELL STRIP \
 
10082
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
10083
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
10084
    deplibs_check_method reload_flag reload_cmds need_locks \
 
10085
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
10086
    lt_cv_sys_global_symbol_to_c_name_address \
 
10087
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
10088
    old_postinstall_cmds old_postuninstall_cmds \
 
10089
    compiler \
 
10090
    CC \
 
10091
    LD \
 
10092
    lt_prog_compiler_wl \
 
10093
    lt_prog_compiler_pic \
 
10094
    lt_prog_compiler_static \
 
10095
    lt_prog_compiler_no_builtin_flag \
 
10096
    export_dynamic_flag_spec \
 
10097
    thread_safe_flag_spec \
 
10098
    whole_archive_flag_spec \
 
10099
    enable_shared_with_static_runtimes \
 
10100
    old_archive_cmds \
 
10101
    old_archive_from_new_cmds \
 
10102
    predep_objects \
 
10103
    postdep_objects \
 
10104
    predeps \
 
10105
    postdeps \
 
10106
    compiler_lib_search_path \
 
10107
    archive_cmds \
 
10108
    archive_expsym_cmds \
 
10109
    postinstall_cmds \
 
10110
    postuninstall_cmds \
 
10111
    old_archive_from_expsyms_cmds \
 
10112
    allow_undefined_flag \
 
10113
    no_undefined_flag \
 
10114
    export_symbols_cmds \
 
10115
    hardcode_libdir_flag_spec \
 
10116
    hardcode_libdir_flag_spec_ld \
 
10117
    hardcode_libdir_separator \
 
10118
    hardcode_automatic \
 
10119
    module_cmds \
 
10120
    module_expsym_cmds \
 
10121
    lt_cv_prog_compiler_c_o \
 
10122
    exclude_expsyms \
 
10123
    include_expsyms; do
 
10124
 
 
10125
    case $var in
 
10126
    old_archive_cmds | \
 
10127
    old_archive_from_new_cmds | \
 
10128
    archive_cmds | \
 
10129
    archive_expsym_cmds | \
 
10130
    module_cmds | \
 
10131
    module_expsym_cmds | \
 
10132
    old_archive_from_expsyms_cmds | \
 
10133
    export_symbols_cmds | \
 
10134
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
10135
    postinstall_cmds | postuninstall_cmds | \
 
10136
    old_postinstall_cmds | old_postuninstall_cmds | \
 
10137
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
10138
      # Double-quote double-evaled strings.
 
10139
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
10140
      ;;
 
10141
    *)
 
10142
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
10143
      ;;
 
10144
    esac
 
10145
  done
 
10146
 
 
10147
  case $lt_echo in
 
10148
  *'\$0 --fallback-echo"')
 
10149
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
10150
    ;;
 
10151
  esac
 
10152
 
 
10153
cfgfile="${ofile}T"
 
10154
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
10155
  $rm -f "$cfgfile"
 
10156
  { echo "$as_me:$LINENO: creating $ofile" >&5
 
10157
echo "$as_me: creating $ofile" >&6;}
 
10158
 
 
10159
  cat <<__EOF__ >> "$cfgfile"
 
10160
#! $SHELL
 
10161
 
 
10162
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
10163
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
10164
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
10165
#
 
10166
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
10167
# Free Software Foundation, Inc.
 
10168
#
 
10169
# This file is part of GNU Libtool:
 
10170
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
10171
#
 
10172
# This program is free software; you can redistribute it and/or modify
 
10173
# it under the terms of the GNU General Public License as published by
 
10174
# the Free Software Foundation; either version 2 of the License, or
 
10175
# (at your option) any later version.
 
10176
#
 
10177
# This program is distributed in the hope that it will be useful, but
 
10178
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
10179
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
10180
# General Public License for more details.
 
10181
#
 
10182
# You should have received a copy of the GNU General Public License
 
10183
# along with this program; if not, write to the Free Software
 
10184
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
10185
#
 
10186
# As a special exception to the GNU General Public License, if you
 
10187
# distribute this file as part of a program that contains a
 
10188
# configuration script generated by Autoconf, you may include it under
 
10189
# the same distribution terms that you use for the rest of that program.
 
10190
 
 
10191
# A sed program that does not truncate output.
 
10192
SED=$lt_SED
 
10193
 
 
10194
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
10195
Xsed="$SED -e 1s/^X//"
 
10196
 
 
10197
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
10198
# if CDPATH is set.
 
10199
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
10200
 
 
10201
# The names of the tagged configurations supported by this script.
 
10202
available_tags=
 
10203
 
 
10204
# ### BEGIN LIBTOOL CONFIG
 
10205
 
 
10206
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
10207
 
 
10208
# Shell to use when invoking shell scripts.
 
10209
SHELL=$lt_SHELL
 
10210
 
 
10211
# Whether or not to build shared libraries.
 
10212
build_libtool_libs=$enable_shared
 
10213
 
 
10214
# Whether or not to build static libraries.
 
10215
build_old_libs=$enable_static
 
10216
 
 
10217
# Whether or not to add -lc for building shared libraries.
 
10218
build_libtool_need_lc=$archive_cmds_need_lc
 
10219
 
 
10220
# Whether or not to disallow shared libs when runtime libs are static
 
10221
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
10222
 
 
10223
# Whether or not to optimize for fast installation.
 
10224
fast_install=$enable_fast_install
 
10225
 
 
10226
# The host system.
 
10227
host_alias=$host_alias
 
10228
host=$host
 
10229
host_os=$host_os
 
10230
 
 
10231
# The build system.
 
10232
build_alias=$build_alias
 
10233
build=$build
 
10234
build_os=$build_os
 
10235
 
 
10236
# An echo program that does not interpret backslashes.
 
10237
echo=$lt_echo
 
10238
 
 
10239
# The archiver.
 
10240
AR=$lt_AR
 
10241
AR_FLAGS=$lt_AR_FLAGS
 
10242
 
 
10243
# A C compiler.
 
10244
LTCC=$lt_LTCC
 
10245
 
 
10246
# LTCC compiler flags.
 
10247
LTCFLAGS=$lt_LTCFLAGS
 
10248
 
 
10249
# A language-specific compiler.
 
10250
CC=$lt_compiler
 
10251
 
 
10252
# Is the compiler the GNU C compiler?
 
10253
with_gcc=$GCC
 
10254
 
 
10255
# An ERE matcher.
 
10256
EGREP=$lt_EGREP
 
10257
 
 
10258
# The linker used to build libraries.
 
10259
LD=$lt_LD
 
10260
 
 
10261
# Whether we need hard or soft links.
 
10262
LN_S=$lt_LN_S
 
10263
 
 
10264
# A BSD-compatible nm program.
 
10265
NM=$lt_NM
 
10266
 
 
10267
# A symbol stripping program
 
10268
STRIP=$lt_STRIP
 
10269
 
 
10270
# Used to examine libraries when file_magic_cmd begins "file"
 
10271
MAGIC_CMD=$MAGIC_CMD
 
10272
 
 
10273
# Used on cygwin: DLL creation program.
 
10274
DLLTOOL="$DLLTOOL"
 
10275
 
 
10276
# Used on cygwin: object dumper.
 
10277
OBJDUMP="$OBJDUMP"
 
10278
 
 
10279
# Used on cygwin: assembler.
 
10280
AS="$AS"
 
10281
 
 
10282
# The name of the directory that contains temporary libtool files.
 
10283
objdir=$objdir
 
10284
 
 
10285
# How to create reloadable object files.
 
10286
reload_flag=$lt_reload_flag
 
10287
reload_cmds=$lt_reload_cmds
 
10288
 
 
10289
# How to pass a linker flag through the compiler.
 
10290
wl=$lt_lt_prog_compiler_wl
 
10291
 
 
10292
# Object file suffix (normally "o").
 
10293
objext="$ac_objext"
 
10294
 
 
10295
# Old archive suffix (normally "a").
 
10296
libext="$libext"
 
10297
 
 
10298
# Shared library suffix (normally ".so").
 
10299
shrext_cmds='$shrext_cmds'
 
10300
 
 
10301
# Executable file suffix (normally "").
 
10302
exeext="$exeext"
 
10303
 
 
10304
# Additional compiler flags for building library objects.
 
10305
pic_flag=$lt_lt_prog_compiler_pic
 
10306
pic_mode=$pic_mode
 
10307
 
 
10308
# What is the maximum length of a command?
 
10309
max_cmd_len=$lt_cv_sys_max_cmd_len
 
10310
 
 
10311
# Does compiler simultaneously support -c and -o options?
 
10312
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
10313
 
 
10314
# Must we lock files when doing compilation?
 
10315
need_locks=$lt_need_locks
 
10316
 
 
10317
# Do we need the lib prefix for modules?
 
10318
need_lib_prefix=$need_lib_prefix
 
10319
 
 
10320
# Do we need a version for libraries?
 
10321
need_version=$need_version
 
10322
 
 
10323
# Whether dlopen is supported.
 
10324
dlopen_support=$enable_dlopen
 
10325
 
 
10326
# Whether dlopen of programs is supported.
 
10327
dlopen_self=$enable_dlopen_self
 
10328
 
 
10329
# Whether dlopen of statically linked programs is supported.
 
10330
dlopen_self_static=$enable_dlopen_self_static
 
10331
 
 
10332
# Compiler flag to prevent dynamic linking.
 
10333
link_static_flag=$lt_lt_prog_compiler_static
 
10334
 
 
10335
# Compiler flag to turn off builtin functions.
 
10336
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
10337
 
 
10338
# Compiler flag to allow reflexive dlopens.
 
10339
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
10340
 
 
10341
# Compiler flag to generate shared objects directly from archives.
 
10342
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
10343
 
 
10344
# Compiler flag to generate thread-safe objects.
 
10345
thread_safe_flag_spec=$lt_thread_safe_flag_spec
 
10346
 
 
10347
# Library versioning type.
 
10348
version_type=$version_type
 
10349
 
 
10350
# Format of library name prefix.
 
10351
libname_spec=$lt_libname_spec
 
10352
 
 
10353
# List of archive names.  First name is the real one, the rest are links.
 
10354
# The last name is the one that the linker finds with -lNAME.
 
10355
library_names_spec=$lt_library_names_spec
 
10356
 
 
10357
# The coded name of the library, if different from the real name.
 
10358
soname_spec=$lt_soname_spec
 
10359
 
 
10360
# Commands used to build and install an old-style archive.
 
10361
RANLIB=$lt_RANLIB
 
10362
old_archive_cmds=$lt_old_archive_cmds
 
10363
old_postinstall_cmds=$lt_old_postinstall_cmds
 
10364
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
10365
 
 
10366
# Create an old-style archive from a shared archive.
 
10367
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
10368
 
 
10369
# Create a temporary old-style archive to link instead of a shared archive.
 
10370
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
10371
 
 
10372
# Commands used to build and install a shared archive.
 
10373
archive_cmds=$lt_archive_cmds
 
10374
archive_expsym_cmds=$lt_archive_expsym_cmds
 
10375
postinstall_cmds=$lt_postinstall_cmds
 
10376
postuninstall_cmds=$lt_postuninstall_cmds
 
10377
 
 
10378
# Commands used to build a loadable module (assumed same as above if empty)
 
10379
module_cmds=$lt_module_cmds
 
10380
module_expsym_cmds=$lt_module_expsym_cmds
 
10381
 
 
10382
# Commands to strip libraries.
 
10383
old_striplib=$lt_old_striplib
 
10384
striplib=$lt_striplib
 
10385
 
 
10386
# Dependencies to place before the objects being linked to create a
 
10387
# shared library.
 
10388
predep_objects=$lt_predep_objects
 
10389
 
 
10390
# Dependencies to place after the objects being linked to create a
 
10391
# shared library.
 
10392
postdep_objects=$lt_postdep_objects
 
10393
 
 
10394
# Dependencies to place before the objects being linked to create a
 
10395
# shared library.
 
10396
predeps=$lt_predeps
 
10397
 
 
10398
# Dependencies to place after the objects being linked to create a
 
10399
# shared library.
 
10400
postdeps=$lt_postdeps
 
10401
 
 
10402
# The library search path used internally by the compiler when linking
 
10403
# a shared library.
 
10404
compiler_lib_search_path=$lt_compiler_lib_search_path
 
10405
 
 
10406
# Method to check whether dependent libraries are shared objects.
 
10407
deplibs_check_method=$lt_deplibs_check_method
 
10408
 
 
10409
# Command to use when deplibs_check_method == file_magic.
 
10410
file_magic_cmd=$lt_file_magic_cmd
 
10411
 
 
10412
# Flag that allows shared libraries with undefined symbols to be built.
 
10413
allow_undefined_flag=$lt_allow_undefined_flag
 
10414
 
 
10415
# Flag that forces no undefined symbols.
 
10416
no_undefined_flag=$lt_no_undefined_flag
 
10417
 
 
10418
# Commands used to finish a libtool library installation in a directory.
 
10419
finish_cmds=$lt_finish_cmds
 
10420
 
 
10421
# Same as above, but a single script fragment to be evaled but not shown.
 
10422
finish_eval=$lt_finish_eval
 
10423
 
 
10424
# Take the output of nm and produce a listing of raw symbols and C names.
 
10425
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
10426
 
 
10427
# Transform the output of nm in a proper C declaration
 
10428
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
10429
 
 
10430
# Transform the output of nm in a C name address pair
 
10431
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
10432
 
 
10433
# This is the shared library runtime path variable.
 
10434
runpath_var=$runpath_var
 
10435
 
 
10436
# This is the shared library path variable.
 
10437
shlibpath_var=$shlibpath_var
 
10438
 
 
10439
# Is shlibpath searched before the hard-coded library search path?
 
10440
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
10441
 
 
10442
# How to hardcode a shared library path into an executable.
 
10443
hardcode_action=$hardcode_action
 
10444
 
 
10445
# Whether we should hardcode library paths into libraries.
 
10446
hardcode_into_libs=$hardcode_into_libs
 
10447
 
 
10448
# Flag to hardcode \$libdir into a binary during linking.
 
10449
# This must work even if \$libdir does not exist.
 
10450
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
10451
 
 
10452
# If ld is used when linking, flag to hardcode \$libdir into
 
10453
# a binary during linking. This must work even if \$libdir does
 
10454
# not exist.
 
10455
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
10456
 
 
10457
# Whether we need a single -rpath flag with a separated argument.
 
10458
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
10459
 
 
10460
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
10461
# resulting binary.
 
10462
hardcode_direct=$hardcode_direct
 
10463
 
 
10464
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
10465
# resulting binary.
 
10466
hardcode_minus_L=$hardcode_minus_L
 
10467
 
 
10468
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
10469
# the resulting binary.
 
10470
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
10471
 
 
10472
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
10473
# and all subsequent libraries and executables linked against it.
 
10474
hardcode_automatic=$hardcode_automatic
 
10475
 
 
10476
# Variables whose values should be saved in libtool wrapper scripts and
 
10477
# restored at relink time.
 
10478
variables_saved_for_relink="$variables_saved_for_relink"
 
10479
 
 
10480
# Whether libtool must link a program against all its dependency libraries.
 
10481
link_all_deplibs=$link_all_deplibs
 
10482
 
 
10483
# Compile-time system search path for libraries
 
10484
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
10485
 
 
10486
# Run-time system search path for libraries
 
10487
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
10488
 
 
10489
# Fix the shell variable \$srcfile for the compiler.
 
10490
fix_srcfile_path="$fix_srcfile_path"
 
10491
 
 
10492
# Set to yes if exported symbols are required.
 
10493
always_export_symbols=$always_export_symbols
 
10494
 
 
10495
# The commands to list exported symbols.
 
10496
export_symbols_cmds=$lt_export_symbols_cmds
 
10497
 
 
10498
# The commands to extract the exported symbol list from a shared archive.
 
10499
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
10500
 
 
10501
# Symbols that should not be listed in the preloaded symbols.
 
10502
exclude_expsyms=$lt_exclude_expsyms
 
10503
 
 
10504
# Symbols that must always be exported.
 
10505
include_expsyms=$lt_include_expsyms
 
10506
 
 
10507
# ### END LIBTOOL CONFIG
 
10508
 
 
10509
__EOF__
 
10510
 
 
10511
 
 
10512
  case $host_os in
 
10513
  aix3*)
 
10514
    cat <<\EOF >> "$cfgfile"
 
10515
 
 
10516
# AIX sometimes has problems with the GCC collect2 program.  For some
 
10517
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
10518
# vanish in a puff of smoke.
 
10519
if test "X${COLLECT_NAMES+set}" != Xset; then
 
10520
  COLLECT_NAMES=
 
10521
  export COLLECT_NAMES
 
10522
fi
 
10523
EOF
 
10524
    ;;
 
10525
  esac
 
10526
 
 
10527
  # We use sed instead of cat because bash on DJGPP gets confused if
 
10528
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
10529
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
10530
  # is reportedly fixed, but why not run on old versions too?
 
10531
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 
10532
 
 
10533
  mv -f "$cfgfile" "$ofile" || \
 
10534
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
10535
  chmod +x "$ofile"
 
10536
 
 
10537
else
 
10538
  # If there is no Makefile yet, we rely on a make rule to execute
 
10539
  # `config.status --recheck' to rerun these tests and create the
 
10540
  # libtool script then.
 
10541
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
10542
  if test -f "$ltmain_in"; then
 
10543
    test -f Makefile && make "$ltmain"
 
10544
  fi
 
10545
fi
 
10546
 
 
10547
 
 
10548
ac_ext=c
 
10549
ac_cpp='$CPP $CPPFLAGS'
 
10550
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
10551
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
10552
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
10553
 
 
10554
CC="$lt_save_CC"
 
10555
 
 
10556
 
 
10557
# Check whether --with-tags was given.
 
10558
if test "${with_tags+set}" = set; then
 
10559
  withval=$with_tags; tagnames="$withval"
 
10560
fi
 
10561
 
 
10562
 
 
10563
if test -f "$ltmain" && test -n "$tagnames"; then
 
10564
  if test ! -f "${ofile}"; then
 
10565
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
 
10566
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
 
10567
  fi
 
10568
 
 
10569
  if test -z "$LTCC"; then
 
10570
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
10571
    if test -z "$LTCC"; then
 
10572
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
 
10573
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
 
10574
    else
 
10575
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
 
10576
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
 
10577
    fi
 
10578
  fi
 
10579
  if test -z "$LTCFLAGS"; then
 
10580
    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
 
10581
  fi
 
10582
 
 
10583
  # Extract list of available tagged configurations in $ofile.
 
10584
  # Note that this assumes the entire list is on one line.
 
10585
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
10586
 
 
10587
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
10588
  for tagname in $tagnames; do
 
10589
    IFS="$lt_save_ifs"
 
10590
    # Check whether tagname contains only valid characters
 
10591
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
 
10592
    "") ;;
 
10593
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
 
10594
echo "$as_me: error: invalid tag name: $tagname" >&2;}
 
10595
   { (exit 1); exit 1; }; }
 
10596
        ;;
 
10597
    esac
 
10598
 
 
10599
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
10600
    then
 
10601
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
 
10602
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
 
10603
   { (exit 1); exit 1; }; }
 
10604
    fi
 
10605
 
 
10606
    # Update the list of available tags.
 
10607
    if test -n "$tagname"; then
 
10608
      echo appending configuration tag \"$tagname\" to $ofile
 
10609
 
 
10610
      case $tagname in
 
10611
      CXX)
 
10612
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
10613
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
10614
            (test "X$CXX" != "Xg++"))) ; then
 
10615
          ac_ext=cpp
 
10616
ac_cpp='$CXXCPP $CPPFLAGS'
 
10617
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
10618
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
10619
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
10620
 
 
10621
 
 
10622
 
 
10623
 
 
10624
archive_cmds_need_lc_CXX=no
 
10625
allow_undefined_flag_CXX=
 
10626
always_export_symbols_CXX=no
 
10627
archive_expsym_cmds_CXX=
 
10628
export_dynamic_flag_spec_CXX=
 
10629
hardcode_direct_CXX=no
 
10630
hardcode_libdir_flag_spec_CXX=
 
10631
hardcode_libdir_flag_spec_ld_CXX=
 
10632
hardcode_libdir_separator_CXX=
 
10633
hardcode_minus_L_CXX=no
 
10634
hardcode_shlibpath_var_CXX=unsupported
 
10635
hardcode_automatic_CXX=no
 
10636
module_cmds_CXX=
 
10637
module_expsym_cmds_CXX=
 
10638
link_all_deplibs_CXX=unknown
 
10639
old_archive_cmds_CXX=$old_archive_cmds
 
10640
no_undefined_flag_CXX=
 
10641
whole_archive_flag_spec_CXX=
 
10642
enable_shared_with_static_runtimes_CXX=no
 
10643
 
 
10644
# Dependencies to place before and after the object being linked:
 
10645
predep_objects_CXX=
 
10646
postdep_objects_CXX=
 
10647
predeps_CXX=
 
10648
postdeps_CXX=
 
10649
compiler_lib_search_path_CXX=
 
10650
 
 
10651
# Source file extension for C++ test sources.
 
10652
ac_ext=cpp
 
10653
 
 
10654
# Object file extension for compiled C++ test sources.
 
10655
objext=o
 
10656
objext_CXX=$objext
 
10657
 
 
10658
# Code to be used in simple compile tests
 
10659
lt_simple_compile_test_code="int some_variable = 0;\n"
 
10660
 
 
10661
# Code to be used in simple link tests
 
10662
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
 
10663
 
 
10664
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
10665
 
 
10666
# If no C compiler was specified, use CC.
 
10667
LTCC=${LTCC-"$CC"}
 
10668
 
 
10669
# If no C compiler flags were specified, use CFLAGS.
 
10670
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
10671
 
 
10672
# Allow CC to be a program name with arguments.
 
10673
compiler=$CC
 
10674
 
 
10675
 
 
10676
# save warnings/boilerplate of simple test code
 
10677
ac_outfile=conftest.$ac_objext
 
10678
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
10679
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
10680
_lt_compiler_boilerplate=`cat conftest.err`
 
10681
$rm conftest*
 
10682
 
 
10683
ac_outfile=conftest.$ac_objext
 
10684
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
10685
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
10686
_lt_linker_boilerplate=`cat conftest.err`
 
10687
$rm conftest*
 
10688
 
 
10689
 
 
10690
# Allow CC to be a program name with arguments.
 
10691
lt_save_CC=$CC
 
10692
lt_save_LD=$LD
 
10693
lt_save_GCC=$GCC
 
10694
GCC=$GXX
 
10695
lt_save_with_gnu_ld=$with_gnu_ld
 
10696
lt_save_path_LD=$lt_cv_path_LD
 
10697
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
10698
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
10699
else
 
10700
  $as_unset lt_cv_prog_gnu_ld
 
10701
fi
 
10702
if test -n "${lt_cv_path_LDCXX+set}"; then
 
10703
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
10704
else
 
10705
  $as_unset lt_cv_path_LD
 
10706
fi
 
10707
test -z "${LDCXX+set}" || LD=$LDCXX
 
10708
CC=${CXX-"c++"}
 
10709
compiler=$CC
 
10710
compiler_CXX=$CC
 
10711
for cc_temp in $compiler""; do
 
10712
  case $cc_temp in
 
10713
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
10714
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
10715
    \-*) ;;
 
10716
    *) break;;
 
10717
  esac
 
10718
done
 
10719
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
10720
 
 
10721
 
 
10722
# We don't want -fno-exception wen compiling C++ code, so set the
 
10723
# no_builtin_flag separately
 
10724
if test "$GXX" = yes; then
 
10725
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
10726
else
 
10727
  lt_prog_compiler_no_builtin_flag_CXX=
 
10728
fi
 
10729
 
 
10730
if test "$GXX" = yes; then
 
10731
  # Set up default GNU C++ configuration
 
10732
 
 
10733
 
 
10734
# Check whether --with-gnu-ld was given.
 
10735
if test "${with_gnu_ld+set}" = set; then
 
10736
  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
 
10737
else
 
10738
  with_gnu_ld=no
 
10739
fi
 
10740
 
 
10741
ac_prog=ld
 
10742
if test "$GCC" = yes; then
 
10743
  # Check if gcc -print-prog-name=ld gives a path.
 
10744
  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
10745
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
 
10746
  case $host in
 
10747
  *-*-mingw*)
 
10748
    # gcc leaves a trailing carriage return which upsets mingw
 
10749
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
10750
  *)
 
10751
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
10752
  esac
 
10753
  case $ac_prog in
 
10754
    # Accept absolute paths.
 
10755
    [\\/]* | ?:[\\/]*)
 
10756
      re_direlt='/[^/][^/]*/\.\./'
 
10757
      # Canonicalize the pathname of ld
 
10758
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
10759
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
10760
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
10761
      done
 
10762
      test -z "$LD" && LD="$ac_prog"
 
10763
      ;;
 
10764
  "")
 
10765
    # If it fails, then pretend we aren't using GCC.
 
10766
    ac_prog=ld
 
10767
    ;;
 
10768
  *)
 
10769
    # If it is relative, then search for the first ld in PATH.
 
10770
    with_gnu_ld=unknown
 
10771
    ;;
 
10772
  esac
 
10773
elif test "$with_gnu_ld" = yes; then
 
10774
  { echo "$as_me:$LINENO: checking for GNU ld" >&5
 
10775
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
 
10776
else
 
10777
  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
10778
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
 
10779
fi
 
10780
if test "${lt_cv_path_LD+set}" = set; then
 
10781
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10782
else
 
10783
  if test -z "$LD"; then
 
10784
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
10785
  for ac_dir in $PATH; do
 
10786
    IFS="$lt_save_ifs"
 
10787
    test -z "$ac_dir" && ac_dir=.
 
10788
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
10789
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
10790
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
10791
      # but apparently some variants of GNU ld only accept -v.
 
10792
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
10793
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
10794
      *GNU* | *'with BFD'*)
 
10795
        test "$with_gnu_ld" != no && break
 
10796
        ;;
 
10797
      *)
 
10798
        test "$with_gnu_ld" != yes && break
 
10799
        ;;
 
10800
      esac
 
10801
    fi
 
10802
  done
 
10803
  IFS="$lt_save_ifs"
 
10804
else
 
10805
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
10806
fi
 
10807
fi
 
10808
 
 
10809
LD="$lt_cv_path_LD"
 
10810
if test -n "$LD"; then
 
10811
  { echo "$as_me:$LINENO: result: $LD" >&5
 
10812
echo "${ECHO_T}$LD" >&6; }
 
10813
else
 
10814
  { echo "$as_me:$LINENO: result: no" >&5
 
10815
echo "${ECHO_T}no" >&6; }
 
10816
fi
 
10817
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
10818
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
10819
   { (exit 1); exit 1; }; }
 
10820
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
10821
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
 
10822
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
10823
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10824
else
 
10825
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
10826
case `$LD -v 2>&1 </dev/null` in
 
10827
*GNU* | *'with BFD'*)
 
10828
  lt_cv_prog_gnu_ld=yes
 
10829
  ;;
 
10830
*)
 
10831
  lt_cv_prog_gnu_ld=no
 
10832
  ;;
 
10833
esac
 
10834
fi
 
10835
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
10836
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
 
10837
with_gnu_ld=$lt_cv_prog_gnu_ld
 
10838
 
 
10839
 
 
10840
 
 
10841
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
10842
  # archiving commands below assume that GNU ld is being used.
 
10843
  if test "$with_gnu_ld" = yes; then
 
10844
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10845
    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'
 
10846
 
 
10847
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
10848
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
10849
 
 
10850
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
10851
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
10852
    #     investigate it a little bit more. (MM)
 
10853
    wlarc='${wl}'
 
10854
 
 
10855
    # ancient GNU ld didn't support --whole-archive et. al.
 
10856
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
10857
        grep 'no-whole-archive' > /dev/null; then
 
10858
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
10859
    else
 
10860
      whole_archive_flag_spec_CXX=
 
10861
    fi
 
10862
  else
 
10863
    with_gnu_ld=no
 
10864
    wlarc=
 
10865
 
 
10866
    # A generic and very simple default shared library creation
 
10867
    # command for GNU C++ for the case where it uses the native
 
10868
    # linker, instead of GNU ld.  If possible, this setting should
 
10869
    # overridden to take advantage of the native linker features on
 
10870
    # the platform it is being used on.
 
10871
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
10872
  fi
 
10873
 
 
10874
  # Commands to make compiler produce verbose output that lists
 
10875
  # what "hidden" libraries, object files and flags are used when
 
10876
  # linking a shared library.
 
10877
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
10878
 
 
10879
else
 
10880
  GXX=no
 
10881
  with_gnu_ld=no
 
10882
  wlarc=
 
10883
fi
 
10884
 
 
10885
# PORTME: fill in a description of your system's C++ link characteristics
 
10886
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
10887
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
10888
ld_shlibs_CXX=yes
 
10889
case $host_os in
 
10890
  aix3*)
 
10891
    # FIXME: insert proper C++ library support
 
10892
    ld_shlibs_CXX=no
 
10893
    ;;
 
10894
  aix4* | aix5*)
 
10895
    if test "$host_cpu" = ia64; then
 
10896
      # On IA64, the linker does run time linking by default, so we don't
 
10897
      # have to do anything special.
 
10898
      aix_use_runtimelinking=no
 
10899
      exp_sym_flag='-Bexport'
 
10900
      no_entry_flag=""
 
10901
    else
 
10902
      aix_use_runtimelinking=no
 
10903
 
 
10904
      # Test if we are trying to use run time linking or normal
 
10905
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
10906
      # need to do runtime linking.
 
10907
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
10908
        for ld_flag in $LDFLAGS; do
 
10909
          case $ld_flag in
 
10910
          *-brtl*)
 
10911
            aix_use_runtimelinking=yes
 
10912
            break
 
10913
            ;;
 
10914
          esac
 
10915
        done
 
10916
        ;;
 
10917
      esac
 
10918
 
 
10919
      exp_sym_flag='-bexport'
 
10920
      no_entry_flag='-bnoentry'
 
10921
    fi
 
10922
 
 
10923
    # When large executables or shared objects are built, AIX ld can
 
10924
    # have problems creating the table of contents.  If linking a library
 
10925
    # or program results in "error TOC overflow" add -mminimal-toc to
 
10926
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
10927
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
10928
 
 
10929
    archive_cmds_CXX=''
 
10930
    hardcode_direct_CXX=yes
 
10931
    hardcode_libdir_separator_CXX=':'
 
10932
    link_all_deplibs_CXX=yes
 
10933
 
 
10934
    if test "$GXX" = yes; then
 
10935
      case $host_os in aix4.[012]|aix4.[012].*)
 
10936
      # We only want to do this on AIX 4.2 and lower, the check
 
10937
      # below for broken collect2 doesn't work under 4.3+
 
10938
        collect2name=`${CC} -print-prog-name=collect2`
 
10939
        if test -f "$collect2name" && \
 
10940
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
10941
        then
 
10942
          # We have reworked collect2
 
10943
          hardcode_direct_CXX=yes
 
10944
        else
 
10945
          # We have old collect2
 
10946
          hardcode_direct_CXX=unsupported
 
10947
          # It fails to find uninstalled libraries when the uninstalled
 
10948
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
10949
          # to unsupported forces relinking
 
10950
          hardcode_minus_L_CXX=yes
 
10951
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
10952
          hardcode_libdir_separator_CXX=
 
10953
        fi
 
10954
        ;;
 
10955
      esac
 
10956
      shared_flag='-shared'
 
10957
      if test "$aix_use_runtimelinking" = yes; then
 
10958
        shared_flag="$shared_flag "'${wl}-G'
 
10959
      fi
 
10960
    else
 
10961
      # not using gcc
 
10962
      if test "$host_cpu" = ia64; then
 
10963
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
10964
        # chokes on -Wl,-G. The following line is correct:
 
10965
        shared_flag='-G'
 
10966
      else
 
10967
        if test "$aix_use_runtimelinking" = yes; then
 
10968
          shared_flag='${wl}-G'
 
10969
        else
 
10970
          shared_flag='${wl}-bM:SRE'
 
10971
        fi
 
10972
      fi
 
10973
    fi
 
10974
 
 
10975
    # It seems that -bexpall does not export symbols beginning with
 
10976
    # underscore (_), so it is better to generate a list of symbols to export.
 
10977
    always_export_symbols_CXX=yes
 
10978
    if test "$aix_use_runtimelinking" = yes; then
 
10979
      # Warning - without using the other runtime loading flags (-brtl),
 
10980
      # -berok will link without error, but may produce a broken library.
 
10981
      allow_undefined_flag_CXX='-berok'
 
10982
      # Determine the default libpath from the value encoded in an empty executable.
 
10983
      cat >conftest.$ac_ext <<_ACEOF
 
10984
/* confdefs.h.  */
 
10985
_ACEOF
 
10986
cat confdefs.h >>conftest.$ac_ext
 
10987
cat >>conftest.$ac_ext <<_ACEOF
 
10988
/* end confdefs.h.  */
 
10989
 
 
10990
int
 
10991
main ()
 
10992
{
 
10993
 
 
10994
  ;
 
10995
  return 0;
 
10996
}
 
10997
_ACEOF
 
10998
rm -f conftest.$ac_objext conftest$ac_exeext
 
10999
if { (ac_try="$ac_link"
 
11000
case "(($ac_try" in
 
11001
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11002
  *) ac_try_echo=$ac_try;;
 
11003
esac
 
11004
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11005
  (eval "$ac_link") 2>conftest.er1
 
11006
  ac_status=$?
 
11007
  grep -v '^ *+' conftest.er1 >conftest.err
 
11008
  rm -f conftest.er1
 
11009
  cat conftest.err >&5
 
11010
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11011
  (exit $ac_status); } && {
 
11012
         test -z "$ac_cxx_werror_flag" ||
 
11013
         test ! -s conftest.err
 
11014
       } && test -s conftest$ac_exeext &&
 
11015
       $as_test_x conftest$ac_exeext; then
 
11016
 
 
11017
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
11018
}'`
 
11019
# Check for a 64-bit object if we didn't find anything.
 
11020
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
11021
}'`; fi
 
11022
else
 
11023
  echo "$as_me: failed program was:" >&5
 
11024
sed 's/^/| /' conftest.$ac_ext >&5
 
11025
 
 
11026
 
 
11027
fi
 
11028
 
 
11029
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11030
      conftest$ac_exeext conftest.$ac_ext
 
11031
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
11032
 
 
11033
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
11034
 
 
11035
      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"
 
11036
     else
 
11037
      if test "$host_cpu" = ia64; then
 
11038
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
11039
        allow_undefined_flag_CXX="-z nodefs"
 
11040
        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"
 
11041
      else
 
11042
        # Determine the default libpath from the value encoded in an empty executable.
 
11043
        cat >conftest.$ac_ext <<_ACEOF
 
11044
/* confdefs.h.  */
 
11045
_ACEOF
 
11046
cat confdefs.h >>conftest.$ac_ext
 
11047
cat >>conftest.$ac_ext <<_ACEOF
 
11048
/* end confdefs.h.  */
 
11049
 
 
11050
int
 
11051
main ()
 
11052
{
 
11053
 
 
11054
  ;
 
11055
  return 0;
 
11056
}
 
11057
_ACEOF
 
11058
rm -f conftest.$ac_objext conftest$ac_exeext
 
11059
if { (ac_try="$ac_link"
 
11060
case "(($ac_try" in
 
11061
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
11062
  *) ac_try_echo=$ac_try;;
 
11063
esac
 
11064
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
11065
  (eval "$ac_link") 2>conftest.er1
 
11066
  ac_status=$?
 
11067
  grep -v '^ *+' conftest.er1 >conftest.err
 
11068
  rm -f conftest.er1
 
11069
  cat conftest.err >&5
 
11070
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11071
  (exit $ac_status); } && {
 
11072
         test -z "$ac_cxx_werror_flag" ||
 
11073
         test ! -s conftest.err
 
11074
       } && test -s conftest$ac_exeext &&
 
11075
       $as_test_x conftest$ac_exeext; then
 
11076
 
 
11077
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
11078
}'`
 
11079
# Check for a 64-bit object if we didn't find anything.
 
11080
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
11081
}'`; fi
 
11082
else
 
11083
  echo "$as_me: failed program was:" >&5
 
11084
sed 's/^/| /' conftest.$ac_ext >&5
 
11085
 
 
11086
 
 
11087
fi
 
11088
 
 
11089
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11090
      conftest$ac_exeext conftest.$ac_ext
 
11091
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
11092
 
 
11093
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
11094
        # Warning - without using the other run time loading flags,
 
11095
        # -berok will link without error, but may produce a broken library.
 
11096
        no_undefined_flag_CXX=' ${wl}-bernotok'
 
11097
        allow_undefined_flag_CXX=' ${wl}-berok'
 
11098
        # Exported symbols can be pulled into shared objects from archives
 
11099
        whole_archive_flag_spec_CXX='$convenience'
 
11100
        archive_cmds_need_lc_CXX=yes
 
11101
        # This is similar to how AIX traditionally builds its shared libraries.
 
11102
        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'
 
11103
      fi
 
11104
    fi
 
11105
    ;;
 
11106
 
 
11107
  beos*)
 
11108
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
11109
      allow_undefined_flag_CXX=unsupported
 
11110
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
11111
      # support --undefined.  This deserves some investigation.  FIXME
 
11112
      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11113
    else
 
11114
      ld_shlibs_CXX=no
 
11115
    fi
 
11116
    ;;
 
11117
 
 
11118
  chorus*)
 
11119
    case $cc_basename in
 
11120
      *)
 
11121
        # FIXME: insert proper C++ library support
 
11122
        ld_shlibs_CXX=no
 
11123
        ;;
 
11124
    esac
 
11125
    ;;
 
11126
 
 
11127
  cygwin* | mingw* | pw32*)
 
11128
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
11129
    # as there is no search path for DLLs.
 
11130
    hardcode_libdir_flag_spec_CXX='-L$libdir'
 
11131
    allow_undefined_flag_CXX=unsupported
 
11132
    always_export_symbols_CXX=no
 
11133
    enable_shared_with_static_runtimes_CXX=yes
 
11134
 
 
11135
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
11136
      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'
 
11137
      # If the export-symbols file already is a .def file (1st line
 
11138
      # is EXPORTS), use it as is; otherwise, prepend...
 
11139
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
11140
        cp $export_symbols $output_objdir/$soname.def;
 
11141
      else
 
11142
        echo EXPORTS > $output_objdir/$soname.def;
 
11143
        cat $export_symbols >> $output_objdir/$soname.def;
 
11144
      fi~
 
11145
      $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'
 
11146
    else
 
11147
      ld_shlibs_CXX=no
 
11148
    fi
 
11149
  ;;
 
11150
      darwin* | rhapsody*)
 
11151
        case $host_os in
 
11152
        rhapsody* | darwin1.[012])
 
11153
         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
 
11154
         ;;
 
11155
       *) # Darwin 1.3 on
 
11156
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
11157
           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
11158
         else
 
11159
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
11160
             10.[012])
 
11161
               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
11162
               ;;
 
11163
             10.*)
 
11164
               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
 
11165
               ;;
 
11166
           esac
 
11167
         fi
 
11168
         ;;
 
11169
        esac
 
11170
      archive_cmds_need_lc_CXX=no
 
11171
      hardcode_direct_CXX=no
 
11172
      hardcode_automatic_CXX=yes
 
11173
      hardcode_shlibpath_var_CXX=unsupported
 
11174
      whole_archive_flag_spec_CXX=''
 
11175
      link_all_deplibs_CXX=yes
 
11176
 
 
11177
    if test "$GXX" = yes ; then
 
11178
      lt_int_apple_cc_single_mod=no
 
11179
      output_verbose_link_cmd='echo'
 
11180
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
 
11181
       lt_int_apple_cc_single_mod=yes
 
11182
      fi
 
11183
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
11184
       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
11185
      else
 
11186
          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'
 
11187
        fi
 
11188
        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
11189
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
11190
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
11191
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
11192
          else
 
11193
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
11194
          fi
 
11195
            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}'
 
11196
      else
 
11197
      case $cc_basename in
 
11198
        xlc*)
 
11199
         output_verbose_link_cmd='echo'
 
11200
          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
11201
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
11202
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
11203
          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
11204
          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}'
 
11205
          ;;
 
11206
       *)
 
11207
         ld_shlibs_CXX=no
 
11208
          ;;
 
11209
      esac
 
11210
      fi
 
11211
        ;;
 
11212
 
 
11213
  dgux*)
 
11214
    case $cc_basename in
 
11215
      ec++*)
 
11216
        # FIXME: insert proper C++ library support
 
11217
        ld_shlibs_CXX=no
 
11218
        ;;
 
11219
      ghcx*)
 
11220
        # Green Hills C++ Compiler
 
11221
        # FIXME: insert proper C++ library support
 
11222
        ld_shlibs_CXX=no
 
11223
        ;;
 
11224
      *)
 
11225
        # FIXME: insert proper C++ library support
 
11226
        ld_shlibs_CXX=no
 
11227
        ;;
 
11228
    esac
 
11229
    ;;
 
11230
  freebsd[12]*)
 
11231
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
11232
    ld_shlibs_CXX=no
 
11233
    ;;
 
11234
  freebsd-elf*)
 
11235
    archive_cmds_need_lc_CXX=no
 
11236
    ;;
 
11237
  freebsd* | kfreebsd*-gnu | dragonfly*)
 
11238
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
11239
    # conventions
 
11240
    ld_shlibs_CXX=yes
 
11241
    ;;
 
11242
  gnu*)
 
11243
    ;;
 
11244
  hpux9*)
 
11245
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
11246
    hardcode_libdir_separator_CXX=:
 
11247
    export_dynamic_flag_spec_CXX='${wl}-E'
 
11248
    hardcode_direct_CXX=yes
 
11249
    hardcode_minus_L_CXX=yes # Not in the search PATH,
 
11250
                                # but as the default
 
11251
                                # location of the library.
 
11252
 
 
11253
    case $cc_basename in
 
11254
    CC*)
 
11255
      # FIXME: insert proper C++ library support
 
11256
      ld_shlibs_CXX=no
 
11257
      ;;
 
11258
    aCC*)
 
11259
      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'
 
11260
      # Commands to make compiler produce verbose output that lists
 
11261
      # what "hidden" libraries, object files and flags are used when
 
11262
      # linking a shared library.
 
11263
      #
 
11264
      # There doesn't appear to be a way to prevent this compiler from
 
11265
      # explicitly linking system object files so we need to strip them
 
11266
      # from the output so that they don't get included in the library
 
11267
      # dependencies.
 
11268
      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'
 
11269
      ;;
 
11270
    *)
 
11271
      if test "$GXX" = yes; then
 
11272
        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'
 
11273
      else
 
11274
        # FIXME: insert proper C++ library support
 
11275
        ld_shlibs_CXX=no
 
11276
      fi
 
11277
      ;;
 
11278
    esac
 
11279
    ;;
 
11280
  hpux10*|hpux11*)
 
11281
    if test $with_gnu_ld = no; then
 
11282
      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
11283
      hardcode_libdir_separator_CXX=:
 
11284
 
 
11285
      case $host_cpu in
 
11286
      hppa*64*|ia64*)
 
11287
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
 
11288
        ;;
 
11289
      *)
 
11290
        export_dynamic_flag_spec_CXX='${wl}-E'
 
11291
        ;;
 
11292
      esac
 
11293
    fi
 
11294
    case $host_cpu in
 
11295
    hppa*64*|ia64*)
 
11296
      hardcode_direct_CXX=no
 
11297
      hardcode_shlibpath_var_CXX=no
 
11298
      ;;
 
11299
    *)
 
11300
      hardcode_direct_CXX=yes
 
11301
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
11302
                                              # but as the default
 
11303
                                              # location of the library.
 
11304
      ;;
 
11305
    esac
 
11306
 
 
11307
    case $cc_basename in
 
11308
      CC*)
 
11309
        # FIXME: insert proper C++ library support
 
11310
        ld_shlibs_CXX=no
 
11311
        ;;
 
11312
      aCC*)
 
11313
        case $host_cpu in
 
11314
        hppa*64*)
 
11315
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11316
          ;;
 
11317
        ia64*)
 
11318
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11319
          ;;
 
11320
        *)
 
11321
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11322
          ;;
 
11323
        esac
 
11324
        # Commands to make compiler produce verbose output that lists
 
11325
        # what "hidden" libraries, object files and flags are used when
 
11326
        # linking a shared library.
 
11327
        #
 
11328
        # There doesn't appear to be a way to prevent this compiler from
 
11329
        # explicitly linking system object files so we need to strip them
 
11330
        # from the output so that they don't get included in the library
 
11331
        # dependencies.
 
11332
        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'
 
11333
        ;;
 
11334
      *)
 
11335
        if test "$GXX" = yes; then
 
11336
          if test $with_gnu_ld = no; then
 
11337
            case $host_cpu in
 
11338
            hppa*64*)
 
11339
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11340
              ;;
 
11341
            ia64*)
 
11342
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11343
              ;;
 
11344
            *)
 
11345
              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'
 
11346
              ;;
 
11347
            esac
 
11348
          fi
 
11349
        else
 
11350
          # FIXME: insert proper C++ library support
 
11351
          ld_shlibs_CXX=no
 
11352
        fi
 
11353
        ;;
 
11354
    esac
 
11355
    ;;
 
11356
  interix3*)
 
11357
    hardcode_direct_CXX=no
 
11358
    hardcode_shlibpath_var_CXX=no
 
11359
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11360
    export_dynamic_flag_spec_CXX='${wl}-E'
 
11361
    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
11362
    # Instead, shared libraries are loaded at an image base (0x10000000 by
 
11363
    # default) and relocated if they conflict, which is a slow very memory
 
11364
    # consuming and fragmenting process.  To avoid this, we pick a random,
 
11365
    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
11366
    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
11367
    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'
 
11368
    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'
 
11369
    ;;
 
11370
  irix5* | irix6*)
 
11371
    case $cc_basename in
 
11372
      CC*)
 
11373
        # SGI C++
 
11374
        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'
 
11375
 
 
11376
        # Archives containing C++ object files must be created using
 
11377
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
11378
        # necessary to make sure instantiated templates are included
 
11379
        # in the archive.
 
11380
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
11381
        ;;
 
11382
      *)
 
11383
        if test "$GXX" = yes; then
 
11384
          if test "$with_gnu_ld" = no; then
 
11385
            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'
 
11386
          else
 
11387
            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'
 
11388
          fi
 
11389
        fi
 
11390
        link_all_deplibs_CXX=yes
 
11391
        ;;
 
11392
    esac
 
11393
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11394
    hardcode_libdir_separator_CXX=:
 
11395
    ;;
 
11396
  linux*)
 
11397
    case $cc_basename in
 
11398
      KCC*)
 
11399
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
11400
 
 
11401
        # KCC will only create a shared library if the output file
 
11402
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
11403
        # to its proper name (with version) after linking.
 
11404
        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'
 
11405
        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'
 
11406
        # Commands to make compiler produce verbose output that lists
 
11407
        # what "hidden" libraries, object files and flags are used when
 
11408
        # linking a shared library.
 
11409
        #
 
11410
        # There doesn't appear to be a way to prevent this compiler from
 
11411
        # explicitly linking system object files so we need to strip them
 
11412
        # from the output so that they don't get included in the library
 
11413
        # dependencies.
 
11414
        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'
 
11415
 
 
11416
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
 
11417
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11418
 
 
11419
        # Archives containing C++ object files must be created using
 
11420
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
11421
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
11422
        ;;
 
11423
      icpc*)
 
11424
        # Intel C++
 
11425
        with_gnu_ld=yes
 
11426
        # version 8.0 and above of icpc choke on multiply defined symbols
 
11427
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
11428
        # earlier do not add the objects themselves.
 
11429
        case `$CC -V 2>&1` in
 
11430
        *"Version 7."*)
 
11431
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11432
          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'
 
11433
          ;;
 
11434
        *)  # Version 8.0 or newer
 
11435
          tmp_idyn=
 
11436
          case $host_cpu in
 
11437
            ia64*) tmp_idyn=' -i_dynamic';;
 
11438
          esac
 
11439
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11440
          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'
 
11441
          ;;
 
11442
        esac
 
11443
        archive_cmds_need_lc_CXX=no
 
11444
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11445
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11446
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
11447
        ;;
 
11448
      pgCC*)
 
11449
        # Portland Group C++ compiler
 
11450
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
11451
        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'
 
11452
 
 
11453
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
11454
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11455
        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'
 
11456
        ;;
 
11457
      cxx*)
 
11458
        # Compaq C++
 
11459
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11460
        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'
 
11461
 
 
11462
        runpath_var=LD_RUN_PATH
 
11463
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
11464
        hardcode_libdir_separator_CXX=:
 
11465
 
 
11466
        # Commands to make compiler produce verbose output that lists
 
11467
        # what "hidden" libraries, object files and flags are used when
 
11468
        # linking a shared library.
 
11469
        #
 
11470
        # There doesn't appear to be a way to prevent this compiler from
 
11471
        # explicitly linking system object files so we need to strip them
 
11472
        # from the output so that they don't get included in the library
 
11473
        # dependencies.
 
11474
        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'
 
11475
        ;;
 
11476
    esac
 
11477
    ;;
 
11478
  lynxos*)
 
11479
    # FIXME: insert proper C++ library support
 
11480
    ld_shlibs_CXX=no
 
11481
    ;;
 
11482
  m88k*)
 
11483
    # FIXME: insert proper C++ library support
 
11484
    ld_shlibs_CXX=no
 
11485
    ;;
 
11486
  mvs*)
 
11487
    case $cc_basename in
 
11488
      cxx*)
 
11489
        # FIXME: insert proper C++ library support
 
11490
        ld_shlibs_CXX=no
 
11491
        ;;
 
11492
      *)
 
11493
        # FIXME: insert proper C++ library support
 
11494
        ld_shlibs_CXX=no
 
11495
        ;;
 
11496
    esac
 
11497
    ;;
 
11498
  netbsd*)
 
11499
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
11500
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
11501
      wlarc=
 
11502
      hardcode_libdir_flag_spec_CXX='-R$libdir'
 
11503
      hardcode_direct_CXX=yes
 
11504
      hardcode_shlibpath_var_CXX=no
 
11505
    fi
 
11506
    # Workaround some broken pre-1.5 toolchains
 
11507
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
11508
    ;;
 
11509
  openbsd2*)
 
11510
    # C++ shared libraries are fairly broken
 
11511
    ld_shlibs_CXX=no
 
11512
    ;;
 
11513
  openbsd*)
 
11514
    hardcode_direct_CXX=yes
 
11515
    hardcode_shlibpath_var_CXX=no
 
11516
    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
11517
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11518
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
11519
      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
11520
      export_dynamic_flag_spec_CXX='${wl}-E'
 
11521
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
11522
    fi
 
11523
    output_verbose_link_cmd='echo'
 
11524
    ;;
 
11525
  osf3*)
 
11526
    case $cc_basename in
 
11527
      KCC*)
 
11528
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
11529
 
 
11530
        # KCC will only create a shared library if the output file
 
11531
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
11532
        # to its proper name (with version) after linking.
 
11533
        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'
 
11534
 
 
11535
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11536
        hardcode_libdir_separator_CXX=:
 
11537
 
 
11538
        # Archives containing C++ object files must be created using
 
11539
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
11540
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
11541
 
 
11542
        ;;
 
11543
      RCC*)
 
11544
        # Rational C++ 2.4.1
 
11545
        # FIXME: insert proper C++ library support
 
11546
        ld_shlibs_CXX=no
 
11547
        ;;
 
11548
      cxx*)
 
11549
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
11550
        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'
 
11551
 
 
11552
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11553
        hardcode_libdir_separator_CXX=:
 
11554
 
 
11555
        # Commands to make compiler produce verbose output that lists
 
11556
        # what "hidden" libraries, object files and flags are used when
 
11557
        # linking a shared library.
 
11558
        #
 
11559
        # There doesn't appear to be a way to prevent this compiler from
 
11560
        # explicitly linking system object files so we need to strip them
 
11561
        # from the output so that they don't get included in the library
 
11562
        # dependencies.
 
11563
        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'
 
11564
        ;;
 
11565
      *)
 
11566
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
11567
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
11568
          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'
 
11569
 
 
11570
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11571
          hardcode_libdir_separator_CXX=:
 
11572
 
 
11573
          # Commands to make compiler produce verbose output that lists
 
11574
          # what "hidden" libraries, object files and flags are used when
 
11575
          # linking a shared library.
 
11576
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
11577
 
 
11578
        else
 
11579
          # FIXME: insert proper C++ library support
 
11580
          ld_shlibs_CXX=no
 
11581
        fi
 
11582
        ;;
 
11583
    esac
 
11584
    ;;
 
11585
  osf4* | osf5*)
 
11586
    case $cc_basename in
 
11587
      KCC*)
 
11588
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
11589
 
 
11590
        # KCC will only create a shared library if the output file
 
11591
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
11592
        # to its proper name (with version) after linking.
 
11593
        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'
 
11594
 
 
11595
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11596
        hardcode_libdir_separator_CXX=:
 
11597
 
 
11598
        # Archives containing C++ object files must be created using
 
11599
        # the KAI C++ compiler.
 
11600
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
 
11601
        ;;
 
11602
      RCC*)
 
11603
        # Rational C++ 2.4.1
 
11604
        # FIXME: insert proper C++ library support
 
11605
        ld_shlibs_CXX=no
 
11606
        ;;
 
11607
      cxx*)
 
11608
        allow_undefined_flag_CXX=' -expect_unresolved \*'
 
11609
        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'
 
11610
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
11611
          echo "-hidden">> $lib.exp~
 
11612
          $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~
 
11613
          $rm $lib.exp'
 
11614
 
 
11615
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
11616
        hardcode_libdir_separator_CXX=:
 
11617
 
 
11618
        # Commands to make compiler produce verbose output that lists
 
11619
        # what "hidden" libraries, object files and flags are used when
 
11620
        # linking a shared library.
 
11621
        #
 
11622
        # There doesn't appear to be a way to prevent this compiler from
 
11623
        # explicitly linking system object files so we need to strip them
 
11624
        # from the output so that they don't get included in the library
 
11625
        # dependencies.
 
11626
        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'
 
11627
        ;;
 
11628
      *)
 
11629
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
11630
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
11631
         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'
 
11632
 
 
11633
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11634
          hardcode_libdir_separator_CXX=:
 
11635
 
 
11636
          # Commands to make compiler produce verbose output that lists
 
11637
          # what "hidden" libraries, object files and flags are used when
 
11638
          # linking a shared library.
 
11639
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
11640
 
 
11641
        else
 
11642
          # FIXME: insert proper C++ library support
 
11643
          ld_shlibs_CXX=no
 
11644
        fi
 
11645
        ;;
 
11646
    esac
 
11647
    ;;
 
11648
  psos*)
 
11649
    # FIXME: insert proper C++ library support
 
11650
    ld_shlibs_CXX=no
 
11651
    ;;
 
11652
  sunos4*)
 
11653
    case $cc_basename in
 
11654
      CC*)
 
11655
        # Sun C++ 4.x
 
11656
        # FIXME: insert proper C++ library support
 
11657
        ld_shlibs_CXX=no
 
11658
        ;;
 
11659
      lcc*)
 
11660
        # Lucid
 
11661
        # FIXME: insert proper C++ library support
 
11662
        ld_shlibs_CXX=no
 
11663
        ;;
 
11664
      *)
 
11665
        # FIXME: insert proper C++ library support
 
11666
        ld_shlibs_CXX=no
 
11667
        ;;
 
11668
    esac
 
11669
    ;;
 
11670
  solaris*)
 
11671
    case $cc_basename in
 
11672
      CC*)
 
11673
        # Sun C++ 4.2, 5.x and Centerline C++
 
11674
        archive_cmds_need_lc_CXX=yes
 
11675
        no_undefined_flag_CXX=' -zdefs'
 
11676
        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11677
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
11678
        $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'
 
11679
 
 
11680
        hardcode_libdir_flag_spec_CXX='-R$libdir'
 
11681
        hardcode_shlibpath_var_CXX=no
 
11682
        case $host_os in
 
11683
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
11684
          *)
 
11685
            # The C++ compiler is used as linker so we must use $wl
 
11686
            # flag to pass the commands to the underlying system
 
11687
            # linker. We must also pass each convience library through
 
11688
            # to the system linker between allextract/defaultextract.
 
11689
            # The C++ compiler will combine linker options so we
 
11690
            # cannot just pass the convience library names through
 
11691
            # without $wl.
 
11692
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
11693
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
 
11694
            ;;
 
11695
        esac
 
11696
        link_all_deplibs_CXX=yes
 
11697
 
 
11698
        output_verbose_link_cmd='echo'
 
11699
 
 
11700
        # Archives containing C++ object files must be created using
 
11701
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
11702
        # necessary to make sure instantiated templates are included
 
11703
        # in the archive.
 
11704
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
11705
        ;;
 
11706
      gcx*)
 
11707
        # Green Hills C++ Compiler
 
11708
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
11709
 
 
11710
        # The C++ compiler must be used to create the archive.
 
11711
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
11712
        ;;
 
11713
      *)
 
11714
        # GNU C++ compiler with Solaris linker
 
11715
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
11716
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
11717
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
11718
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
11719
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
11720
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
11721
 
 
11722
            # Commands to make compiler produce verbose output that lists
 
11723
            # what "hidden" libraries, object files and flags are used when
 
11724
            # linking a shared library.
 
11725
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
11726
          else
 
11727
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
11728
            # platform.
 
11729
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
11730
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
11731
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
11732
 
 
11733
            # Commands to make compiler produce verbose output that lists
 
11734
            # what "hidden" libraries, object files and flags are used when
 
11735
            # linking a shared library.
 
11736
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
11737
          fi
 
11738
 
 
11739
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
11740
        fi
 
11741
        ;;
 
11742
    esac
 
11743
    ;;
 
11744
  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
 
11745
    no_undefined_flag_CXX='${wl}-z,text'
 
11746
    archive_cmds_need_lc_CXX=no
 
11747
    hardcode_shlibpath_var_CXX=no
 
11748
    runpath_var='LD_RUN_PATH'
 
11749
 
 
11750
    case $cc_basename in
 
11751
      CC*)
 
11752
        archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11753
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11754
        ;;
 
11755
      *)
 
11756
        archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11757
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11758
        ;;
 
11759
    esac
 
11760
    ;;
 
11761
  sysv5* | sco3.2v5* | sco5v6*)
 
11762
    # Note: We can NOT use -z defs as we might desire, because we do not
 
11763
    # link with -lc, and that would cause any symbols used from libc to
 
11764
    # always be unresolved, which means just about no library would
 
11765
    # ever link correctly.  If we're not using GNU ld we use -z text
 
11766
    # though, which does catch some bad symbols but isn't as heavy-handed
 
11767
    # as -z defs.
 
11768
    # For security reasons, it is highly recommended that you always
 
11769
    # use absolute paths for naming shared libraries, and exclude the
 
11770
    # DT_RUNPATH tag from executables and libraries.  But doing so
 
11771
    # requires that you compile everything twice, which is a pain.
 
11772
    # So that behaviour is only enabled if SCOABSPATH is set to a
 
11773
    # non-empty value in the environment.  Most likely only useful for
 
11774
    # creating official distributions of packages.
 
11775
    # This is a hack until libtool officially supports absolute path
 
11776
    # names for shared libraries.
 
11777
    no_undefined_flag_CXX='${wl}-z,text'
 
11778
    allow_undefined_flag_CXX='${wl}-z,nodefs'
 
11779
    archive_cmds_need_lc_CXX=no
 
11780
    hardcode_shlibpath_var_CXX=no
 
11781
    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
11782
    hardcode_libdir_separator_CXX=':'
 
11783
    link_all_deplibs_CXX=yes
 
11784
    export_dynamic_flag_spec_CXX='${wl}-Bexport'
 
11785
    runpath_var='LD_RUN_PATH'
 
11786
 
 
11787
    case $cc_basename in
 
11788
      CC*)
 
11789
        archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11790
        archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11791
        ;;
 
11792
      *)
 
11793
        archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11794
        archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
11795
        ;;
 
11796
    esac
 
11797
    ;;
 
11798
  tandem*)
 
11799
    case $cc_basename in
 
11800
      NCC*)
 
11801
        # NonStop-UX NCC 3.20
 
11802
        # FIXME: insert proper C++ library support
 
11803
        ld_shlibs_CXX=no
 
11804
        ;;
 
11805
      *)
 
11806
        # FIXME: insert proper C++ library support
 
11807
        ld_shlibs_CXX=no
 
11808
        ;;
 
11809
    esac
 
11810
    ;;
 
11811
  vxworks*)
 
11812
    # FIXME: insert proper C++ library support
 
11813
    ld_shlibs_CXX=no
 
11814
    ;;
 
11815
  *)
 
11816
    # FIXME: insert proper C++ library support
 
11817
    ld_shlibs_CXX=no
 
11818
    ;;
 
11819
esac
 
11820
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
11821
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
 
11822
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
11823
 
 
11824
GCC_CXX="$GXX"
 
11825
LD_CXX="$LD"
 
11826
 
 
11827
 
 
11828
cat > conftest.$ac_ext <<EOF
 
11829
class Foo
 
11830
{
 
11831
public:
 
11832
  Foo (void) { a = 0; }
 
11833
private:
 
11834
  int a;
 
11835
};
 
11836
EOF
 
11837
 
 
11838
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11839
  (eval $ac_compile) 2>&5
 
11840
  ac_status=$?
 
11841
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11842
  (exit $ac_status); }; then
 
11843
  # Parse the compiler output and extract the necessary
 
11844
  # objects, libraries and library flags.
 
11845
 
 
11846
  # Sentinel used to keep track of whether or not we are before
 
11847
  # the conftest object file.
 
11848
  pre_test_object_deps_done=no
 
11849
 
 
11850
  # The `*' in the case matches for architectures that use `case' in
 
11851
  # $output_verbose_cmd can trigger glob expansion during the loop
 
11852
  # eval without this substitution.
 
11853
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
 
11854
 
 
11855
  for p in `eval $output_verbose_link_cmd`; do
 
11856
    case $p in
 
11857
 
 
11858
    -L* | -R* | -l*)
 
11859
       # Some compilers place space between "-{L,R}" and the path.
 
11860
       # Remove the space.
 
11861
       if test $p = "-L" \
 
11862
          || test $p = "-R"; then
 
11863
         prev=$p
 
11864
         continue
 
11865
       else
 
11866
         prev=
 
11867
       fi
 
11868
 
 
11869
       if test "$pre_test_object_deps_done" = no; then
 
11870
         case $p in
 
11871
         -L* | -R*)
 
11872
           # Internal compiler library paths should come after those
 
11873
           # provided the user.  The postdeps already come after the
 
11874
           # user supplied libs so there is no need to process them.
 
11875
           if test -z "$compiler_lib_search_path_CXX"; then
 
11876
             compiler_lib_search_path_CXX="${prev}${p}"
 
11877
           else
 
11878
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
11879
           fi
 
11880
           ;;
 
11881
         # The "-l" case would never come before the object being
 
11882
         # linked, so don't bother handling this case.
 
11883
         esac
 
11884
       else
 
11885
         if test -z "$postdeps_CXX"; then
 
11886
           postdeps_CXX="${prev}${p}"
 
11887
         else
 
11888
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
11889
         fi
 
11890
       fi
 
11891
       ;;
 
11892
 
 
11893
    *.$objext)
 
11894
       # This assumes that the test object file only shows up
 
11895
       # once in the compiler output.
 
11896
       if test "$p" = "conftest.$objext"; then
 
11897
         pre_test_object_deps_done=yes
 
11898
         continue
 
11899
       fi
 
11900
 
 
11901
       if test "$pre_test_object_deps_done" = no; then
 
11902
         if test -z "$predep_objects_CXX"; then
 
11903
           predep_objects_CXX="$p"
 
11904
         else
 
11905
           predep_objects_CXX="$predep_objects_CXX $p"
 
11906
         fi
 
11907
       else
 
11908
         if test -z "$postdep_objects_CXX"; then
 
11909
           postdep_objects_CXX="$p"
 
11910
         else
 
11911
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
11912
         fi
 
11913
       fi
 
11914
       ;;
 
11915
 
 
11916
    *) ;; # Ignore the rest.
 
11917
 
 
11918
    esac
 
11919
  done
 
11920
 
 
11921
  # Clean up.
 
11922
  rm -f a.out a.exe
 
11923
else
 
11924
  echo "libtool.m4: error: problem compiling CXX test program"
 
11925
fi
 
11926
 
 
11927
$rm -f confest.$objext
 
11928
 
 
11929
# PORTME: override above test on systems where it is broken
 
11930
case $host_os in
 
11931
interix3*)
 
11932
  # Interix 3.5 installs completely hosed .la files for C++, so rather than
 
11933
  # hack all around it, let's just trust "g++" to DTRT.
 
11934
  predep_objects_CXX=
 
11935
  postdep_objects_CXX=
 
11936
  postdeps_CXX=
 
11937
  ;;
 
11938
 
 
11939
solaris*)
 
11940
  case $cc_basename in
 
11941
  CC*)
 
11942
    # Adding this requires a known-good setup of shared libraries for
 
11943
    # Sun compiler versions before 5.6, else PIC objects from an old
 
11944
    # archive will be linked into the output, leading to subtle bugs.
 
11945
    postdeps_CXX='-lCstd -lCrun'
 
11946
    ;;
 
11947
  esac
 
11948
  ;;
 
11949
esac
 
11950
 
 
11951
 
 
11952
case " $postdeps_CXX " in
 
11953
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
11954
esac
 
11955
 
 
11956
lt_prog_compiler_wl_CXX=
 
11957
lt_prog_compiler_pic_CXX=
 
11958
lt_prog_compiler_static_CXX=
 
11959
 
 
11960
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
11961
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
11962
 
 
11963
  # C++ specific cases for pic, static, wl, etc.
 
11964
  if test "$GXX" = yes; then
 
11965
    lt_prog_compiler_wl_CXX='-Wl,'
 
11966
    lt_prog_compiler_static_CXX='-static'
 
11967
 
 
11968
    case $host_os in
 
11969
    aix*)
 
11970
      # All AIX code is PIC.
 
11971
      if test "$host_cpu" = ia64; then
 
11972
        # AIX 5 now supports IA64 processor
 
11973
        lt_prog_compiler_static_CXX='-Bstatic'
 
11974
      fi
 
11975
      ;;
 
11976
    amigaos*)
 
11977
      # FIXME: we need at least 68020 code to build shared libraries, but
 
11978
      # adding the `-m68020' flag to GCC prevents building anything better,
 
11979
      # like `-m68040'.
 
11980
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
11981
      ;;
 
11982
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
11983
      # PIC is the default for these OSes.
 
11984
      ;;
 
11985
    mingw* | os2* | pw32*)
 
11986
      # This hack is so that the source file can tell whether it is being
 
11987
      # built for inclusion in a dll (and should export symbols for example).
 
11988
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
11989
      ;;
 
11990
    darwin* | rhapsody*)
 
11991
      # PIC is the default on this platform
 
11992
      # Common symbols not allowed in MH_DYLIB files
 
11993
      lt_prog_compiler_pic_CXX='-fno-common'
 
11994
      ;;
 
11995
    *djgpp*)
 
11996
      # DJGPP does not support shared libraries at all
 
11997
      lt_prog_compiler_pic_CXX=
 
11998
      ;;
 
11999
    interix3*)
 
12000
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
12001
      # Instead, we relocate shared libraries at runtime.
 
12002
      ;;
 
12003
    sysv4*MP*)
 
12004
      if test -d /usr/nec; then
 
12005
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
12006
      fi
 
12007
      ;;
 
12008
    hpux*)
 
12009
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
12010
      # not for PA HP-UX.
 
12011
      case $host_cpu in
 
12012
      hppa*64*|ia64*)
 
12013
        ;;
 
12014
      *)
 
12015
        lt_prog_compiler_pic_CXX='-fPIC'
 
12016
        ;;
 
12017
      esac
 
12018
      ;;
 
12019
    *)
 
12020
      lt_prog_compiler_pic_CXX='-fPIC'
 
12021
      ;;
 
12022
    esac
 
12023
  else
 
12024
    case $host_os in
 
12025
      aix4* | aix5*)
 
12026
        # All AIX code is PIC.
 
12027
        if test "$host_cpu" = ia64; then
 
12028
          # AIX 5 now supports IA64 processor
 
12029
          lt_prog_compiler_static_CXX='-Bstatic'
 
12030
        else
 
12031
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
12032
        fi
 
12033
        ;;
 
12034
      chorus*)
 
12035
        case $cc_basename in
 
12036
        cxch68*)
 
12037
          # Green Hills C++ Compiler
 
12038
          # _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"
 
12039
          ;;
 
12040
        esac
 
12041
        ;;
 
12042
       darwin*)
 
12043
         # PIC is the default on this platform
 
12044
         # Common symbols not allowed in MH_DYLIB files
 
12045
         case $cc_basename in
 
12046
           xlc*)
 
12047
           lt_prog_compiler_pic_CXX='-qnocommon'
 
12048
           lt_prog_compiler_wl_CXX='-Wl,'
 
12049
           ;;
 
12050
         esac
 
12051
       ;;
 
12052
      dgux*)
 
12053
        case $cc_basename in
 
12054
          ec++*)
 
12055
            lt_prog_compiler_pic_CXX='-KPIC'
 
12056
            ;;
 
12057
          ghcx*)
 
12058
            # Green Hills C++ Compiler
 
12059
            lt_prog_compiler_pic_CXX='-pic'
 
12060
            ;;
 
12061
          *)
 
12062
            ;;
 
12063
        esac
 
12064
        ;;
 
12065
      freebsd* | kfreebsd*-gnu | dragonfly*)
 
12066
        # FreeBSD uses GNU C++
 
12067
        ;;
 
12068
      hpux9* | hpux10* | hpux11*)
 
12069
        case $cc_basename in
 
12070
          CC*)
 
12071
            lt_prog_compiler_wl_CXX='-Wl,'
 
12072
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
12073
            if test "$host_cpu" != ia64; then
 
12074
              lt_prog_compiler_pic_CXX='+Z'
 
12075
            fi
 
12076
            ;;
 
12077
          aCC*)
 
12078
            lt_prog_compiler_wl_CXX='-Wl,'
 
12079
            lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
 
12080
            case $host_cpu in
 
12081
            hppa*64*|ia64*)
 
12082
              # +Z the default
 
12083
              ;;
 
12084
            *)
 
12085
              lt_prog_compiler_pic_CXX='+Z'
 
12086
              ;;
 
12087
            esac
 
12088
            ;;
 
12089
          *)
 
12090
            ;;
 
12091
        esac
 
12092
        ;;
 
12093
      interix*)
 
12094
        # This is c89, which is MS Visual C++ (no shared libs)
 
12095
        # Anyone wants to do a port?
 
12096
        ;;
 
12097
      irix5* | irix6* | nonstopux*)
 
12098
        case $cc_basename in
 
12099
          CC*)
 
12100
            lt_prog_compiler_wl_CXX='-Wl,'
 
12101
            lt_prog_compiler_static_CXX='-non_shared'
 
12102
            # CC pic flag -KPIC is the default.
 
12103
            ;;
 
12104
          *)
 
12105
            ;;
 
12106
        esac
 
12107
        ;;
 
12108
      linux*)
 
12109
        case $cc_basename in
 
12110
          KCC*)
 
12111
            # KAI C++ Compiler
 
12112
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
12113
            lt_prog_compiler_pic_CXX='-fPIC'
 
12114
            ;;
 
12115
          icpc* | ecpc*)
 
12116
            # Intel C++
 
12117
            lt_prog_compiler_wl_CXX='-Wl,'
 
12118
            lt_prog_compiler_pic_CXX='-KPIC'
 
12119
            lt_prog_compiler_static_CXX='-static'
 
12120
            ;;
 
12121
          pgCC*)
 
12122
            # Portland Group C++ compiler.
 
12123
            lt_prog_compiler_wl_CXX='-Wl,'
 
12124
            lt_prog_compiler_pic_CXX='-fpic'
 
12125
            lt_prog_compiler_static_CXX='-Bstatic'
 
12126
            ;;
 
12127
          cxx*)
 
12128
            # Compaq C++
 
12129
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
12130
            # Linux and Compaq Tru64 Unix objects are PIC.
 
12131
            lt_prog_compiler_pic_CXX=
 
12132
            lt_prog_compiler_static_CXX='-non_shared'
 
12133
            ;;
 
12134
          *)
 
12135
            ;;
 
12136
        esac
 
12137
        ;;
 
12138
      lynxos*)
 
12139
        ;;
 
12140
      m88k*)
 
12141
        ;;
 
12142
      mvs*)
 
12143
        case $cc_basename in
 
12144
          cxx*)
 
12145
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
12146
            ;;
 
12147
          *)
 
12148
            ;;
 
12149
        esac
 
12150
        ;;
 
12151
      netbsd*)
 
12152
        ;;
 
12153
      osf3* | osf4* | osf5*)
 
12154
        case $cc_basename in
 
12155
          KCC*)
 
12156
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
12157
            ;;
 
12158
          RCC*)
 
12159
            # Rational C++ 2.4.1
 
12160
            lt_prog_compiler_pic_CXX='-pic'
 
12161
            ;;
 
12162
          cxx*)
 
12163
            # Digital/Compaq C++
 
12164
            lt_prog_compiler_wl_CXX='-Wl,'
 
12165
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
12166
            # Linux and Compaq Tru64 Unix objects are PIC.
 
12167
            lt_prog_compiler_pic_CXX=
 
12168
            lt_prog_compiler_static_CXX='-non_shared'
 
12169
            ;;
 
12170
          *)
 
12171
            ;;
 
12172
        esac
 
12173
        ;;
 
12174
      psos*)
 
12175
        ;;
 
12176
      solaris*)
 
12177
        case $cc_basename in
 
12178
          CC*)
 
12179
            # Sun C++ 4.2, 5.x and Centerline C++
 
12180
            lt_prog_compiler_pic_CXX='-KPIC'
 
12181
            lt_prog_compiler_static_CXX='-Bstatic'
 
12182
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
12183
            ;;
 
12184
          gcx*)
 
12185
            # Green Hills C++ Compiler
 
12186
            lt_prog_compiler_pic_CXX='-PIC'
 
12187
            ;;
 
12188
          *)
 
12189
            ;;
 
12190
        esac
 
12191
        ;;
 
12192
      sunos4*)
 
12193
        case $cc_basename in
 
12194
          CC*)
 
12195
            # Sun C++ 4.x
 
12196
            lt_prog_compiler_pic_CXX='-pic'
 
12197
            lt_prog_compiler_static_CXX='-Bstatic'
 
12198
            ;;
 
12199
          lcc*)
 
12200
            # Lucid
 
12201
            lt_prog_compiler_pic_CXX='-pic'
 
12202
            ;;
 
12203
          *)
 
12204
            ;;
 
12205
        esac
 
12206
        ;;
 
12207
      tandem*)
 
12208
        case $cc_basename in
 
12209
          NCC*)
 
12210
            # NonStop-UX NCC 3.20
 
12211
            lt_prog_compiler_pic_CXX='-KPIC'
 
12212
            ;;
 
12213
          *)
 
12214
            ;;
 
12215
        esac
 
12216
        ;;
 
12217
      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
12218
        case $cc_basename in
 
12219
          CC*)
 
12220
            lt_prog_compiler_wl_CXX='-Wl,'
 
12221
            lt_prog_compiler_pic_CXX='-KPIC'
 
12222
            lt_prog_compiler_static_CXX='-Bstatic'
 
12223
            ;;
 
12224
        esac
 
12225
        ;;
 
12226
      vxworks*)
 
12227
        ;;
 
12228
      *)
 
12229
        lt_prog_compiler_can_build_shared_CXX=no
 
12230
        ;;
 
12231
    esac
 
12232
  fi
 
12233
 
 
12234
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
12235
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
 
12236
 
 
12237
#
 
12238
# Check to make sure the PIC flag actually works.
 
12239
#
 
12240
if test -n "$lt_prog_compiler_pic_CXX"; then
 
12241
 
 
12242
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
12243
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
 
12244
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
 
12245
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12246
else
 
12247
  lt_prog_compiler_pic_works_CXX=no
 
12248
  ac_outfile=conftest.$ac_objext
 
12249
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12250
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
12251
   # Insert the option either (1) after the last *FLAGS variable, or
 
12252
   # (2) before a word containing "conftest.", or (3) at the end.
 
12253
   # Note that $ac_compile itself does not contain backslashes and begins
 
12254
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
12255
   # The option is referenced via a variable to avoid confusing sed.
 
12256
   lt_compile=`echo "$ac_compile" | $SED \
 
12257
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
12258
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
12259
   -e 's:$: $lt_compiler_flag:'`
 
12260
   (eval echo "\"\$as_me:12260: $lt_compile\"" >&5)
 
12261
   (eval "$lt_compile" 2>conftest.err)
 
12262
   ac_status=$?
 
12263
   cat conftest.err >&5
 
12264
   echo "$as_me:12264: \$? = $ac_status" >&5
 
12265
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
12266
     # The compiler can only warn and ignore the option if not recognized
 
12267
     # So say no if there are warnings other than the usual output.
 
12268
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
12269
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
12270
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
12271
       lt_prog_compiler_pic_works_CXX=yes
 
12272
     fi
 
12273
   fi
 
12274
   $rm conftest*
 
12275
 
 
12276
fi
 
12277
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
 
12278
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
 
12279
 
 
12280
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
 
12281
    case $lt_prog_compiler_pic_CXX in
 
12282
     "" | " "*) ;;
 
12283
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
12284
     esac
 
12285
else
 
12286
    lt_prog_compiler_pic_CXX=
 
12287
     lt_prog_compiler_can_build_shared_CXX=no
 
12288
fi
 
12289
 
 
12290
fi
 
12291
case $host_os in
 
12292
  # For platforms which do not support PIC, -DPIC is meaningless:
 
12293
  *djgpp*)
 
12294
    lt_prog_compiler_pic_CXX=
 
12295
    ;;
 
12296
  *)
 
12297
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
12298
    ;;
 
12299
esac
 
12300
 
 
12301
#
 
12302
# Check to make sure the static flag actually works.
 
12303
#
 
12304
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
 
12305
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
12306
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
12307
if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
 
12308
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12309
else
 
12310
  lt_prog_compiler_static_works_CXX=no
 
12311
   save_LDFLAGS="$LDFLAGS"
 
12312
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
12313
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
12314
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
12315
     # The linker can only warn and ignore the option if not recognized
 
12316
     # So say no if there are warnings
 
12317
     if test -s conftest.err; then
 
12318
       # Append any errors to the config.log.
 
12319
       cat conftest.err 1>&5
 
12320
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
12321
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
12322
       if diff conftest.exp conftest.er2 >/dev/null; then
 
12323
         lt_prog_compiler_static_works_CXX=yes
 
12324
       fi
 
12325
     else
 
12326
       lt_prog_compiler_static_works_CXX=yes
 
12327
     fi
 
12328
   fi
 
12329
   $rm conftest*
 
12330
   LDFLAGS="$save_LDFLAGS"
 
12331
 
 
12332
fi
 
12333
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
 
12334
echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
 
12335
 
 
12336
if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
 
12337
    :
 
12338
else
 
12339
    lt_prog_compiler_static_CXX=
 
12340
fi
 
12341
 
 
12342
 
 
12343
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
12344
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
12345
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
12346
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12347
else
 
12348
  lt_cv_prog_compiler_c_o_CXX=no
 
12349
   $rm -r conftest 2>/dev/null
 
12350
   mkdir conftest
 
12351
   cd conftest
 
12352
   mkdir out
 
12353
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12354
 
 
12355
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
12356
   # Insert the option either (1) after the last *FLAGS variable, or
 
12357
   # (2) before a word containing "conftest.", or (3) at the end.
 
12358
   # Note that $ac_compile itself does not contain backslashes and begins
 
12359
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
12360
   lt_compile=`echo "$ac_compile" | $SED \
 
12361
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
12362
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
12363
   -e 's:$: $lt_compiler_flag:'`
 
12364
   (eval echo "\"\$as_me:12364: $lt_compile\"" >&5)
 
12365
   (eval "$lt_compile" 2>out/conftest.err)
 
12366
   ac_status=$?
 
12367
   cat out/conftest.err >&5
 
12368
   echo "$as_me:12368: \$? = $ac_status" >&5
 
12369
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
12370
   then
 
12371
     # The compiler can only warn and ignore the option if not recognized
 
12372
     # So say no if there are warnings
 
12373
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
12374
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
12375
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
12376
       lt_cv_prog_compiler_c_o_CXX=yes
 
12377
     fi
 
12378
   fi
 
12379
   chmod u+w . 2>&5
 
12380
   $rm conftest*
 
12381
   # SGI C++ compiler will create directory out/ii_files/ for
 
12382
   # template instantiation
 
12383
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
12384
   $rm out/* && rmdir out
 
12385
   cd ..
 
12386
   rmdir conftest
 
12387
   $rm conftest*
 
12388
 
 
12389
fi
 
12390
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
12391
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
 
12392
 
 
12393
 
 
12394
hard_links="nottested"
 
12395
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
12396
  # do not overwrite the value of need_locks provided by the user
 
12397
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
12398
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
12399
  hard_links=yes
 
12400
  $rm conftest*
 
12401
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
12402
  touch conftest.a
 
12403
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
12404
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
12405
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
12406
echo "${ECHO_T}$hard_links" >&6; }
 
12407
  if test "$hard_links" = no; then
 
12408
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
12409
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
12410
    need_locks=warn
 
12411
  fi
 
12412
else
 
12413
  need_locks=no
 
12414
fi
 
12415
 
 
12416
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
12417
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
12418
 
 
12419
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
12420
  case $host_os in
 
12421
  aix4* | aix5*)
 
12422
    # If we're using GNU nm, then we don't want the "-C" option.
 
12423
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
12424
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
12425
      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'
 
12426
    else
 
12427
      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'
 
12428
    fi
 
12429
    ;;
 
12430
  pw32*)
 
12431
    export_symbols_cmds_CXX="$ltdll_cmds"
 
12432
  ;;
 
12433
  cygwin* | mingw*)
 
12434
    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'
 
12435
  ;;
 
12436
  *)
 
12437
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
12438
  ;;
 
12439
  esac
 
12440
 
 
12441
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
12442
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
 
12443
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
12444
 
 
12445
#
 
12446
# Do we need to explicitly link libc?
 
12447
#
 
12448
case "x$archive_cmds_need_lc_CXX" in
 
12449
x|xyes)
 
12450
  # Assume -lc should be added
 
12451
  archive_cmds_need_lc_CXX=yes
 
12452
 
 
12453
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
12454
    case $archive_cmds_CXX in
 
12455
    *'~'*)
 
12456
      # FIXME: we may have to deal with multi-command sequences.
 
12457
      ;;
 
12458
    '$CC '*)
 
12459
      # Test whether the compiler implicitly links with -lc since on some
 
12460
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
12461
      # to ld, don't add -lc before -lgcc.
 
12462
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
12463
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
12464
      $rm conftest*
 
12465
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12466
 
 
12467
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12468
  (eval $ac_compile) 2>&5
 
12469
  ac_status=$?
 
12470
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12471
  (exit $ac_status); } 2>conftest.err; then
 
12472
        soname=conftest
 
12473
        lib=conftest
 
12474
        libobjs=conftest.$ac_objext
 
12475
        deplibs=
 
12476
        wl=$lt_prog_compiler_wl_CXX
 
12477
        pic_flag=$lt_prog_compiler_pic_CXX
 
12478
        compiler_flags=-v
 
12479
        linker_flags=-v
 
12480
        verstring=
 
12481
        output_objdir=.
 
12482
        libname=conftest
 
12483
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
12484
        allow_undefined_flag_CXX=
 
12485
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
12486
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
12487
  ac_status=$?
 
12488
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12489
  (exit $ac_status); }
 
12490
        then
 
12491
          archive_cmds_need_lc_CXX=no
 
12492
        else
 
12493
          archive_cmds_need_lc_CXX=yes
 
12494
        fi
 
12495
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
12496
      else
 
12497
        cat conftest.err 1>&5
 
12498
      fi
 
12499
      $rm conftest*
 
12500
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
12501
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
 
12502
      ;;
 
12503
    esac
 
12504
  fi
 
12505
  ;;
 
12506
esac
 
12507
 
 
12508
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
12509
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
12510
library_names_spec=
 
12511
libname_spec='lib$name'
 
12512
soname_spec=
 
12513
shrext_cmds=".so"
 
12514
postinstall_cmds=
 
12515
postuninstall_cmds=
 
12516
finish_cmds=
 
12517
finish_eval=
 
12518
shlibpath_var=
 
12519
shlibpath_overrides_runpath=unknown
 
12520
version_type=none
 
12521
dynamic_linker="$host_os ld.so"
 
12522
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
12523
if test "$GCC" = yes; then
 
12524
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
12525
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
12526
    # if the path contains ";" then we assume it to be the separator
 
12527
    # otherwise default to the standard path separator (i.e. ":") - it is
 
12528
    # assumed that no part of a normal pathname contains ";" but that should
 
12529
    # okay in the real world where ";" in dirpaths is itself problematic.
 
12530
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
12531
  else
 
12532
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
12533
  fi
 
12534
else
 
12535
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
12536
fi
 
12537
need_lib_prefix=unknown
 
12538
hardcode_into_libs=no
 
12539
 
 
12540
# when you set need_version to no, make sure it does not cause -set_version
 
12541
# flags to be left without arguments
 
12542
need_version=unknown
 
12543
 
 
12544
case $host_os in
 
12545
aix3*)
 
12546
  version_type=linux
 
12547
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
12548
  shlibpath_var=LIBPATH
 
12549
 
 
12550
  # AIX 3 has no versioning support, so we append a major version to the name.
 
12551
  soname_spec='${libname}${release}${shared_ext}$major'
 
12552
  ;;
 
12553
 
 
12554
aix4* | aix5*)
 
12555
  version_type=linux
 
12556
  need_lib_prefix=no
 
12557
  need_version=no
 
12558
  hardcode_into_libs=yes
 
12559
  if test "$host_cpu" = ia64; then
 
12560
    # AIX 5 supports IA64
 
12561
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
12562
    shlibpath_var=LD_LIBRARY_PATH
 
12563
  else
 
12564
    # With GCC up to 2.95.x, collect2 would create an import file
 
12565
    # for dependence libraries.  The import file would start with
 
12566
    # the line `#! .'.  This would cause the generated library to
 
12567
    # depend on `.', always an invalid library.  This was fixed in
 
12568
    # development snapshots of GCC prior to 3.0.
 
12569
    case $host_os in
 
12570
      aix4 | aix4.[01] | aix4.[01].*)
 
12571
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
12572
           echo ' yes '
 
12573
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
12574
        :
 
12575
      else
 
12576
        can_build_shared=no
 
12577
      fi
 
12578
      ;;
 
12579
    esac
 
12580
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
12581
    # soname into executable. Probably we can add versioning support to
 
12582
    # collect2, so additional links can be useful in future.
 
12583
    if test "$aix_use_runtimelinking" = yes; then
 
12584
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
12585
      # instead of lib<name>.a to let people know that these are not
 
12586
      # typical AIX shared libraries.
 
12587
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12588
    else
 
12589
      # We preserve .a as extension for shared libraries through AIX4.2
 
12590
      # and later when we are not doing run time linking.
 
12591
      library_names_spec='${libname}${release}.a $libname.a'
 
12592
      soname_spec='${libname}${release}${shared_ext}$major'
 
12593
    fi
 
12594
    shlibpath_var=LIBPATH
 
12595
  fi
 
12596
  ;;
 
12597
 
 
12598
amigaos*)
 
12599
  library_names_spec='$libname.ixlibrary $libname.a'
 
12600
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
12601
  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'
 
12602
  ;;
 
12603
 
 
12604
beos*)
 
12605
  library_names_spec='${libname}${shared_ext}'
 
12606
  dynamic_linker="$host_os ld.so"
 
12607
  shlibpath_var=LIBRARY_PATH
 
12608
  ;;
 
12609
 
 
12610
bsdi[45]*)
 
12611
  version_type=linux
 
12612
  need_version=no
 
12613
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12614
  soname_spec='${libname}${release}${shared_ext}$major'
 
12615
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
12616
  shlibpath_var=LD_LIBRARY_PATH
 
12617
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
12618
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
12619
  # the default ld.so.conf also contains /usr/contrib/lib and
 
12620
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
12621
  # libtool to hard-code these into programs
 
12622
  ;;
 
12623
 
 
12624
cygwin* | mingw* | pw32*)
 
12625
  version_type=windows
 
12626
  shrext_cmds=".dll"
 
12627
  need_version=no
 
12628
  need_lib_prefix=no
 
12629
 
 
12630
  case $GCC,$host_os in
 
12631
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
12632
    library_names_spec='$libname.dll.a'
 
12633
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
12634
    postinstall_cmds='base_file=`basename \${file}`~
 
12635
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
12636
      dldir=$destdir/`dirname \$dlpath`~
 
12637
      test -d \$dldir || mkdir -p \$dldir~
 
12638
      $install_prog $dir/$dlname \$dldir/$dlname~
 
12639
      chmod a+x \$dldir/$dlname'
 
12640
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
12641
      dlpath=$dir/\$dldll~
 
12642
       $rm \$dlpath'
 
12643
    shlibpath_overrides_runpath=yes
 
12644
 
 
12645
    case $host_os in
 
12646
    cygwin*)
 
12647
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
12648
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
12649
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
12650
      ;;
 
12651
    mingw*)
 
12652
      # MinGW DLLs use traditional 'lib' prefix
 
12653
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
12654
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
12655
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
12656
        # It is most probably a Windows format PATH printed by
 
12657
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
12658
        # path with ; separators, and with drive letters. We can handle the
 
12659
        # drive letters (cygwin fileutils understands them), so leave them,
 
12660
        # especially as we might pass files found there to a mingw objdump,
 
12661
        # which wouldn't understand a cygwinified path. Ahh.
 
12662
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
12663
      else
 
12664
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
12665
      fi
 
12666
      ;;
 
12667
    pw32*)
 
12668
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
12669
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
12670
      ;;
 
12671
    esac
 
12672
    ;;
 
12673
 
 
12674
  *)
 
12675
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
12676
    ;;
 
12677
  esac
 
12678
  dynamic_linker='Win32 ld.exe'
 
12679
  # FIXME: first we should search . and the directory the executable is in
 
12680
  shlibpath_var=PATH
 
12681
  ;;
 
12682
 
 
12683
darwin* | rhapsody*)
 
12684
  dynamic_linker="$host_os dyld"
 
12685
  version_type=darwin
 
12686
  need_lib_prefix=no
 
12687
  need_version=no
 
12688
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
12689
  soname_spec='${libname}${release}${major}$shared_ext'
 
12690
  shlibpath_overrides_runpath=yes
 
12691
  shlibpath_var=DYLD_LIBRARY_PATH
 
12692
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
12693
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
12694
  if test "$GCC" = yes; then
 
12695
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
12696
  else
 
12697
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
12698
  fi
 
12699
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
12700
  ;;
 
12701
 
 
12702
dgux*)
 
12703
  version_type=linux
 
12704
  need_lib_prefix=no
 
12705
  need_version=no
 
12706
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
12707
  soname_spec='${libname}${release}${shared_ext}$major'
 
12708
  shlibpath_var=LD_LIBRARY_PATH
 
12709
  ;;
 
12710
 
 
12711
freebsd1*)
 
12712
  dynamic_linker=no
 
12713
  ;;
 
12714
 
 
12715
kfreebsd*-gnu)
 
12716
  version_type=linux
 
12717
  need_lib_prefix=no
 
12718
  need_version=no
 
12719
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12720
  soname_spec='${libname}${release}${shared_ext}$major'
 
12721
  shlibpath_var=LD_LIBRARY_PATH
 
12722
  shlibpath_overrides_runpath=no
 
12723
  hardcode_into_libs=yes
 
12724
  dynamic_linker='GNU ld.so'
 
12725
  ;;
 
12726
 
 
12727
freebsd* | dragonfly*)
 
12728
  # DragonFly does not have aout.  When/if they implement a new
 
12729
  # versioning mechanism, adjust this.
 
12730
  if test -x /usr/bin/objformat; then
 
12731
    objformat=`/usr/bin/objformat`
 
12732
  else
 
12733
    case $host_os in
 
12734
    freebsd[123]*) objformat=aout ;;
 
12735
    *) objformat=elf ;;
 
12736
    esac
 
12737
  fi
 
12738
  version_type=freebsd-$objformat
 
12739
  case $version_type in
 
12740
    freebsd-elf*)
 
12741
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
12742
      need_version=no
 
12743
      need_lib_prefix=no
 
12744
      ;;
 
12745
    freebsd-*)
 
12746
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
12747
      need_version=yes
 
12748
      ;;
 
12749
  esac
 
12750
  shlibpath_var=LD_LIBRARY_PATH
 
12751
  case $host_os in
 
12752
  freebsd2*)
 
12753
    shlibpath_overrides_runpath=yes
 
12754
    ;;
 
12755
  freebsd3.[01]* | freebsdelf3.[01]*)
 
12756
    shlibpath_overrides_runpath=yes
 
12757
    hardcode_into_libs=yes
 
12758
    ;;
 
12759
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
12760
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
12761
    shlibpath_overrides_runpath=no
 
12762
    hardcode_into_libs=yes
 
12763
    ;;
 
12764
  freebsd*) # from 4.6 on
 
12765
    shlibpath_overrides_runpath=yes
 
12766
    hardcode_into_libs=yes
 
12767
    ;;
 
12768
  esac
 
12769
  ;;
 
12770
 
 
12771
gnu*)
 
12772
  version_type=linux
 
12773
  need_lib_prefix=no
 
12774
  need_version=no
 
12775
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
12776
  soname_spec='${libname}${release}${shared_ext}$major'
 
12777
  shlibpath_var=LD_LIBRARY_PATH
 
12778
  hardcode_into_libs=yes
 
12779
  ;;
 
12780
 
 
12781
hpux9* | hpux10* | hpux11*)
 
12782
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
12783
  # link against other versions.
 
12784
  version_type=sunos
 
12785
  need_lib_prefix=no
 
12786
  need_version=no
 
12787
  case $host_cpu in
 
12788
  ia64*)
 
12789
    shrext_cmds='.so'
 
12790
    hardcode_into_libs=yes
 
12791
    dynamic_linker="$host_os dld.so"
 
12792
    shlibpath_var=LD_LIBRARY_PATH
 
12793
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
12794
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12795
    soname_spec='${libname}${release}${shared_ext}$major'
 
12796
    if test "X$HPUX_IA64_MODE" = X32; then
 
12797
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
12798
    else
 
12799
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
12800
    fi
 
12801
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
12802
    ;;
 
12803
   hppa*64*)
 
12804
     shrext_cmds='.sl'
 
12805
     hardcode_into_libs=yes
 
12806
     dynamic_linker="$host_os dld.sl"
 
12807
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
12808
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
12809
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12810
     soname_spec='${libname}${release}${shared_ext}$major'
 
12811
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
12812
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
12813
     ;;
 
12814
   *)
 
12815
    shrext_cmds='.sl'
 
12816
    dynamic_linker="$host_os dld.sl"
 
12817
    shlibpath_var=SHLIB_PATH
 
12818
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
12819
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12820
    soname_spec='${libname}${release}${shared_ext}$major'
 
12821
    ;;
 
12822
  esac
 
12823
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
12824
  postinstall_cmds='chmod 555 $lib'
 
12825
  ;;
 
12826
 
 
12827
interix3*)
 
12828
  version_type=linux
 
12829
  need_lib_prefix=no
 
12830
  need_version=no
 
12831
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12832
  soname_spec='${libname}${release}${shared_ext}$major'
 
12833
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
12834
  shlibpath_var=LD_LIBRARY_PATH
 
12835
  shlibpath_overrides_runpath=no
 
12836
  hardcode_into_libs=yes
 
12837
  ;;
 
12838
 
 
12839
irix5* | irix6* | nonstopux*)
 
12840
  case $host_os in
 
12841
    nonstopux*) version_type=nonstopux ;;
 
12842
    *)
 
12843
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
12844
                version_type=linux
 
12845
        else
 
12846
                version_type=irix
 
12847
        fi ;;
 
12848
  esac
 
12849
  need_lib_prefix=no
 
12850
  need_version=no
 
12851
  soname_spec='${libname}${release}${shared_ext}$major'
 
12852
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
12853
  case $host_os in
 
12854
  irix5* | nonstopux*)
 
12855
    libsuff= shlibsuff=
 
12856
    ;;
 
12857
  *)
 
12858
    case $LD in # libtool.m4 will add one of these switches to LD
 
12859
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
12860
      libsuff= shlibsuff= libmagic=32-bit;;
 
12861
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
12862
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
12863
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
12864
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
12865
    *) libsuff= shlibsuff= libmagic=never-match;;
 
12866
    esac
 
12867
    ;;
 
12868
  esac
 
12869
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
12870
  shlibpath_overrides_runpath=no
 
12871
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
12872
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
12873
  hardcode_into_libs=yes
 
12874
  ;;
 
12875
 
 
12876
# No shared lib support for Linux oldld, aout, or coff.
 
12877
linux*oldld* | linux*aout* | linux*coff*)
 
12878
  dynamic_linker=no
 
12879
  ;;
 
12880
 
 
12881
# This must be Linux ELF.
 
12882
linux*)
 
12883
  version_type=linux
 
12884
  need_lib_prefix=no
 
12885
  need_version=no
 
12886
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12887
  soname_spec='${libname}${release}${shared_ext}$major'
 
12888
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
12889
  shlibpath_var=LD_LIBRARY_PATH
 
12890
  shlibpath_overrides_runpath=no
 
12891
  # This implies no fast_install, which is unacceptable.
 
12892
  # Some rework will be needed to allow for fast_install
 
12893
  # before this can be enabled.
 
12894
  hardcode_into_libs=yes
 
12895
 
 
12896
  # Append ld.so.conf contents to the search path
 
12897
  if test -f /etc/ld.so.conf; then
 
12898
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
12899
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
12900
  fi
 
12901
 
 
12902
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
12903
  # powerpc, because MkLinux only supported shared libraries with the
 
12904
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
12905
  # most powerpc-linux boxes support dynamic linking these days and
 
12906
  # people can always --disable-shared, the test was removed, and we
 
12907
  # assume the GNU/Linux dynamic linker is in use.
 
12908
  dynamic_linker='GNU/Linux ld.so'
 
12909
  ;;
 
12910
 
 
12911
knetbsd*-gnu)
 
12912
  version_type=linux
 
12913
  need_lib_prefix=no
 
12914
  need_version=no
 
12915
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12916
  soname_spec='${libname}${release}${shared_ext}$major'
 
12917
  shlibpath_var=LD_LIBRARY_PATH
 
12918
  shlibpath_overrides_runpath=no
 
12919
  hardcode_into_libs=yes
 
12920
  dynamic_linker='GNU ld.so'
 
12921
  ;;
 
12922
 
 
12923
netbsd*)
 
12924
  version_type=sunos
 
12925
  need_lib_prefix=no
 
12926
  need_version=no
 
12927
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
12928
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
12929
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
12930
    dynamic_linker='NetBSD (a.out) ld.so'
 
12931
  else
 
12932
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12933
    soname_spec='${libname}${release}${shared_ext}$major'
 
12934
    dynamic_linker='NetBSD ld.elf_so'
 
12935
  fi
 
12936
  shlibpath_var=LD_LIBRARY_PATH
 
12937
  shlibpath_overrides_runpath=yes
 
12938
  hardcode_into_libs=yes
 
12939
  ;;
 
12940
 
 
12941
newsos6)
 
12942
  version_type=linux
 
12943
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12944
  shlibpath_var=LD_LIBRARY_PATH
 
12945
  shlibpath_overrides_runpath=yes
 
12946
  ;;
 
12947
 
 
12948
nto-qnx*)
 
12949
  version_type=linux
 
12950
  need_lib_prefix=no
 
12951
  need_version=no
 
12952
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12953
  soname_spec='${libname}${release}${shared_ext}$major'
 
12954
  shlibpath_var=LD_LIBRARY_PATH
 
12955
  shlibpath_overrides_runpath=yes
 
12956
  ;;
 
12957
 
 
12958
openbsd*)
 
12959
  version_type=sunos
 
12960
  sys_lib_dlsearch_path_spec="/usr/lib"
 
12961
  need_lib_prefix=no
 
12962
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
12963
  case $host_os in
 
12964
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
12965
    *)                         need_version=no  ;;
 
12966
  esac
 
12967
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
12968
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
12969
  shlibpath_var=LD_LIBRARY_PATH
 
12970
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
12971
    case $host_os in
 
12972
      openbsd2.[89] | openbsd2.[89].*)
 
12973
        shlibpath_overrides_runpath=no
 
12974
        ;;
 
12975
      *)
 
12976
        shlibpath_overrides_runpath=yes
 
12977
        ;;
 
12978
      esac
 
12979
  else
 
12980
    shlibpath_overrides_runpath=yes
 
12981
  fi
 
12982
  ;;
 
12983
 
 
12984
os2*)
 
12985
  libname_spec='$name'
 
12986
  shrext_cmds=".dll"
 
12987
  need_lib_prefix=no
 
12988
  library_names_spec='$libname${shared_ext} $libname.a'
 
12989
  dynamic_linker='OS/2 ld.exe'
 
12990
  shlibpath_var=LIBPATH
 
12991
  ;;
 
12992
 
 
12993
osf3* | osf4* | osf5*)
 
12994
  version_type=osf
 
12995
  need_lib_prefix=no
 
12996
  need_version=no
 
12997
  soname_spec='${libname}${release}${shared_ext}$major'
 
12998
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12999
  shlibpath_var=LD_LIBRARY_PATH
 
13000
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
13001
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
13002
  ;;
 
13003
 
 
13004
solaris*)
 
13005
  version_type=linux
 
13006
  need_lib_prefix=no
 
13007
  need_version=no
 
13008
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13009
  soname_spec='${libname}${release}${shared_ext}$major'
 
13010
  shlibpath_var=LD_LIBRARY_PATH
 
13011
  shlibpath_overrides_runpath=yes
 
13012
  hardcode_into_libs=yes
 
13013
  # ldd complains unless libraries are executable
 
13014
  postinstall_cmds='chmod +x $lib'
 
13015
  ;;
 
13016
 
 
13017
sunos4*)
 
13018
  version_type=sunos
 
13019
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13020
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
13021
  shlibpath_var=LD_LIBRARY_PATH
 
13022
  shlibpath_overrides_runpath=yes
 
13023
  if test "$with_gnu_ld" = yes; then
 
13024
    need_lib_prefix=no
 
13025
  fi
 
13026
  need_version=yes
 
13027
  ;;
 
13028
 
 
13029
sysv4 | sysv4.3*)
 
13030
  version_type=linux
 
13031
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13032
  soname_spec='${libname}${release}${shared_ext}$major'
 
13033
  shlibpath_var=LD_LIBRARY_PATH
 
13034
  case $host_vendor in
 
13035
    sni)
 
13036
      shlibpath_overrides_runpath=no
 
13037
      need_lib_prefix=no
 
13038
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
13039
      runpath_var=LD_RUN_PATH
 
13040
      ;;
 
13041
    siemens)
 
13042
      need_lib_prefix=no
 
13043
      ;;
 
13044
    motorola)
 
13045
      need_lib_prefix=no
 
13046
      need_version=no
 
13047
      shlibpath_overrides_runpath=no
 
13048
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
13049
      ;;
 
13050
  esac
 
13051
  ;;
 
13052
 
 
13053
sysv4*MP*)
 
13054
  if test -d /usr/nec ;then
 
13055
    version_type=linux
 
13056
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
13057
    soname_spec='$libname${shared_ext}.$major'
 
13058
    shlibpath_var=LD_LIBRARY_PATH
 
13059
  fi
 
13060
  ;;
 
13061
 
 
13062
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
13063
  version_type=freebsd-elf
 
13064
  need_lib_prefix=no
 
13065
  need_version=no
 
13066
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13067
  soname_spec='${libname}${release}${shared_ext}$major'
 
13068
  shlibpath_var=LD_LIBRARY_PATH
 
13069
  hardcode_into_libs=yes
 
13070
  if test "$with_gnu_ld" = yes; then
 
13071
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
13072
    shlibpath_overrides_runpath=no
 
13073
  else
 
13074
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
13075
    shlibpath_overrides_runpath=yes
 
13076
    case $host_os in
 
13077
      sco3.2v5*)
 
13078
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
13079
        ;;
 
13080
    esac
 
13081
  fi
 
13082
  sys_lib_dlsearch_path_spec='/usr/lib'
 
13083
  ;;
 
13084
 
 
13085
uts4*)
 
13086
  version_type=linux
 
13087
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13088
  soname_spec='${libname}${release}${shared_ext}$major'
 
13089
  shlibpath_var=LD_LIBRARY_PATH
 
13090
  ;;
 
13091
 
 
13092
*)
 
13093
  dynamic_linker=no
 
13094
  ;;
 
13095
esac
 
13096
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
13097
echo "${ECHO_T}$dynamic_linker" >&6; }
 
13098
test "$dynamic_linker" = no && can_build_shared=no
 
13099
 
 
13100
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
13101
if test "$GCC" = yes; then
 
13102
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
13103
fi
 
13104
 
 
13105
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
13106
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
13107
hardcode_action_CXX=
 
13108
if test -n "$hardcode_libdir_flag_spec_CXX" || \
 
13109
   test -n "$runpath_var_CXX" || \
 
13110
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
 
13111
 
 
13112
  # We can hardcode non-existant directories.
 
13113
  if test "$hardcode_direct_CXX" != no &&
 
13114
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
13115
     # have to relink, otherwise we might link with an installed library
 
13116
     # when we should be linking with a yet-to-be-installed one
 
13117
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
13118
     test "$hardcode_minus_L_CXX" != no; then
 
13119
    # Linking always hardcodes the temporary library directory.
 
13120
    hardcode_action_CXX=relink
 
13121
  else
 
13122
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
13123
    hardcode_action_CXX=immediate
 
13124
  fi
 
13125
else
 
13126
  # We cannot hardcode anything, or else we can only hardcode existing
 
13127
  # directories.
 
13128
  hardcode_action_CXX=unsupported
 
13129
fi
 
13130
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
13131
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
 
13132
 
 
13133
if test "$hardcode_action_CXX" = relink; then
 
13134
  # Fast installation is not supported
 
13135
  enable_fast_install=no
 
13136
elif test "$shlibpath_overrides_runpath" = yes ||
 
13137
     test "$enable_shared" = no; then
 
13138
  # Fast installation is not necessary
 
13139
  enable_fast_install=needless
 
13140
fi
 
13141
 
 
13142
 
 
13143
# The else clause should only fire when bootstrapping the
 
13144
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
13145
# with your package, and you will get complaints that there are
 
13146
# no rules to generate ltmain.sh.
 
13147
if test -f "$ltmain"; then
 
13148
  # See if we are running on zsh, and set the options which allow our commands through
 
13149
  # without removal of \ escapes.
 
13150
  if test -n "${ZSH_VERSION+set}" ; then
 
13151
    setopt NO_GLOB_SUBST
 
13152
  fi
 
13153
  # Now quote all the things that may contain metacharacters while being
 
13154
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
13155
  # variables and quote the copies for generation of the libtool script.
 
13156
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
13157
    SED SHELL STRIP \
 
13158
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
13159
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
13160
    deplibs_check_method reload_flag reload_cmds need_locks \
 
13161
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
13162
    lt_cv_sys_global_symbol_to_c_name_address \
 
13163
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
13164
    old_postinstall_cmds old_postuninstall_cmds \
 
13165
    compiler_CXX \
 
13166
    CC_CXX \
 
13167
    LD_CXX \
 
13168
    lt_prog_compiler_wl_CXX \
 
13169
    lt_prog_compiler_pic_CXX \
 
13170
    lt_prog_compiler_static_CXX \
 
13171
    lt_prog_compiler_no_builtin_flag_CXX \
 
13172
    export_dynamic_flag_spec_CXX \
 
13173
    thread_safe_flag_spec_CXX \
 
13174
    whole_archive_flag_spec_CXX \
 
13175
    enable_shared_with_static_runtimes_CXX \
 
13176
    old_archive_cmds_CXX \
 
13177
    old_archive_from_new_cmds_CXX \
 
13178
    predep_objects_CXX \
 
13179
    postdep_objects_CXX \
 
13180
    predeps_CXX \
 
13181
    postdeps_CXX \
 
13182
    compiler_lib_search_path_CXX \
 
13183
    archive_cmds_CXX \
 
13184
    archive_expsym_cmds_CXX \
 
13185
    postinstall_cmds_CXX \
 
13186
    postuninstall_cmds_CXX \
 
13187
    old_archive_from_expsyms_cmds_CXX \
 
13188
    allow_undefined_flag_CXX \
 
13189
    no_undefined_flag_CXX \
 
13190
    export_symbols_cmds_CXX \
 
13191
    hardcode_libdir_flag_spec_CXX \
 
13192
    hardcode_libdir_flag_spec_ld_CXX \
 
13193
    hardcode_libdir_separator_CXX \
 
13194
    hardcode_automatic_CXX \
 
13195
    module_cmds_CXX \
 
13196
    module_expsym_cmds_CXX \
 
13197
    lt_cv_prog_compiler_c_o_CXX \
 
13198
    exclude_expsyms_CXX \
 
13199
    include_expsyms_CXX; do
 
13200
 
 
13201
    case $var in
 
13202
    old_archive_cmds_CXX | \
 
13203
    old_archive_from_new_cmds_CXX | \
 
13204
    archive_cmds_CXX | \
 
13205
    archive_expsym_cmds_CXX | \
 
13206
    module_cmds_CXX | \
 
13207
    module_expsym_cmds_CXX | \
 
13208
    old_archive_from_expsyms_cmds_CXX | \
 
13209
    export_symbols_cmds_CXX | \
 
13210
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
13211
    postinstall_cmds | postuninstall_cmds | \
 
13212
    old_postinstall_cmds | old_postuninstall_cmds | \
 
13213
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
13214
      # Double-quote double-evaled strings.
 
13215
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
13216
      ;;
 
13217
    *)
 
13218
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
13219
      ;;
 
13220
    esac
 
13221
  done
 
13222
 
 
13223
  case $lt_echo in
 
13224
  *'\$0 --fallback-echo"')
 
13225
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
13226
    ;;
 
13227
  esac
 
13228
 
 
13229
cfgfile="$ofile"
 
13230
 
 
13231
  cat <<__EOF__ >> "$cfgfile"
 
13232
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
13233
 
 
13234
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
13235
 
 
13236
# Shell to use when invoking shell scripts.
 
13237
SHELL=$lt_SHELL
 
13238
 
 
13239
# Whether or not to build shared libraries.
 
13240
build_libtool_libs=$enable_shared
 
13241
 
 
13242
# Whether or not to build static libraries.
 
13243
build_old_libs=$enable_static
 
13244
 
 
13245
# Whether or not to add -lc for building shared libraries.
 
13246
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
13247
 
 
13248
# Whether or not to disallow shared libs when runtime libs are static
 
13249
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
13250
 
 
13251
# Whether or not to optimize for fast installation.
 
13252
fast_install=$enable_fast_install
 
13253
 
 
13254
# The host system.
 
13255
host_alias=$host_alias
 
13256
host=$host
 
13257
host_os=$host_os
 
13258
 
 
13259
# The build system.
 
13260
build_alias=$build_alias
 
13261
build=$build
 
13262
build_os=$build_os
 
13263
 
 
13264
# An echo program that does not interpret backslashes.
 
13265
echo=$lt_echo
 
13266
 
 
13267
# The archiver.
 
13268
AR=$lt_AR
 
13269
AR_FLAGS=$lt_AR_FLAGS
 
13270
 
 
13271
# A C compiler.
 
13272
LTCC=$lt_LTCC
 
13273
 
 
13274
# LTCC compiler flags.
 
13275
LTCFLAGS=$lt_LTCFLAGS
 
13276
 
 
13277
# A language-specific compiler.
 
13278
CC=$lt_compiler_CXX
 
13279
 
 
13280
# Is the compiler the GNU C compiler?
 
13281
with_gcc=$GCC_CXX
 
13282
 
 
13283
# An ERE matcher.
 
13284
EGREP=$lt_EGREP
 
13285
 
 
13286
# The linker used to build libraries.
 
13287
LD=$lt_LD_CXX
 
13288
 
 
13289
# Whether we need hard or soft links.
 
13290
LN_S=$lt_LN_S
 
13291
 
 
13292
# A BSD-compatible nm program.
 
13293
NM=$lt_NM
 
13294
 
 
13295
# A symbol stripping program
 
13296
STRIP=$lt_STRIP
 
13297
 
 
13298
# Used to examine libraries when file_magic_cmd begins "file"
 
13299
MAGIC_CMD=$MAGIC_CMD
 
13300
 
 
13301
# Used on cygwin: DLL creation program.
 
13302
DLLTOOL="$DLLTOOL"
 
13303
 
 
13304
# Used on cygwin: object dumper.
 
13305
OBJDUMP="$OBJDUMP"
 
13306
 
 
13307
# Used on cygwin: assembler.
 
13308
AS="$AS"
 
13309
 
 
13310
# The name of the directory that contains temporary libtool files.
 
13311
objdir=$objdir
 
13312
 
 
13313
# How to create reloadable object files.
 
13314
reload_flag=$lt_reload_flag
 
13315
reload_cmds=$lt_reload_cmds
 
13316
 
 
13317
# How to pass a linker flag through the compiler.
 
13318
wl=$lt_lt_prog_compiler_wl_CXX
 
13319
 
 
13320
# Object file suffix (normally "o").
 
13321
objext="$ac_objext"
 
13322
 
 
13323
# Old archive suffix (normally "a").
 
13324
libext="$libext"
 
13325
 
 
13326
# Shared library suffix (normally ".so").
 
13327
shrext_cmds='$shrext_cmds'
 
13328
 
 
13329
# Executable file suffix (normally "").
 
13330
exeext="$exeext"
 
13331
 
 
13332
# Additional compiler flags for building library objects.
 
13333
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
13334
pic_mode=$pic_mode
 
13335
 
 
13336
# What is the maximum length of a command?
 
13337
max_cmd_len=$lt_cv_sys_max_cmd_len
 
13338
 
 
13339
# Does compiler simultaneously support -c and -o options?
 
13340
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
13341
 
 
13342
# Must we lock files when doing compilation?
 
13343
need_locks=$lt_need_locks
 
13344
 
 
13345
# Do we need the lib prefix for modules?
 
13346
need_lib_prefix=$need_lib_prefix
 
13347
 
 
13348
# Do we need a version for libraries?
 
13349
need_version=$need_version
 
13350
 
 
13351
# Whether dlopen is supported.
 
13352
dlopen_support=$enable_dlopen
 
13353
 
 
13354
# Whether dlopen of programs is supported.
 
13355
dlopen_self=$enable_dlopen_self
 
13356
 
 
13357
# Whether dlopen of statically linked programs is supported.
 
13358
dlopen_self_static=$enable_dlopen_self_static
 
13359
 
 
13360
# Compiler flag to prevent dynamic linking.
 
13361
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
13362
 
 
13363
# Compiler flag to turn off builtin functions.
 
13364
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
13365
 
 
13366
# Compiler flag to allow reflexive dlopens.
 
13367
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
13368
 
 
13369
# Compiler flag to generate shared objects directly from archives.
 
13370
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
13371
 
 
13372
# Compiler flag to generate thread-safe objects.
 
13373
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
 
13374
 
 
13375
# Library versioning type.
 
13376
version_type=$version_type
 
13377
 
 
13378
# Format of library name prefix.
 
13379
libname_spec=$lt_libname_spec
 
13380
 
 
13381
# List of archive names.  First name is the real one, the rest are links.
 
13382
# The last name is the one that the linker finds with -lNAME.
 
13383
library_names_spec=$lt_library_names_spec
 
13384
 
 
13385
# The coded name of the library, if different from the real name.
 
13386
soname_spec=$lt_soname_spec
 
13387
 
 
13388
# Commands used to build and install an old-style archive.
 
13389
RANLIB=$lt_RANLIB
 
13390
old_archive_cmds=$lt_old_archive_cmds_CXX
 
13391
old_postinstall_cmds=$lt_old_postinstall_cmds
 
13392
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
13393
 
 
13394
# Create an old-style archive from a shared archive.
 
13395
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
13396
 
 
13397
# Create a temporary old-style archive to link instead of a shared archive.
 
13398
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
13399
 
 
13400
# Commands used to build and install a shared archive.
 
13401
archive_cmds=$lt_archive_cmds_CXX
 
13402
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
13403
postinstall_cmds=$lt_postinstall_cmds
 
13404
postuninstall_cmds=$lt_postuninstall_cmds
 
13405
 
 
13406
# Commands used to build a loadable module (assumed same as above if empty)
 
13407
module_cmds=$lt_module_cmds_CXX
 
13408
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
13409
 
 
13410
# Commands to strip libraries.
 
13411
old_striplib=$lt_old_striplib
 
13412
striplib=$lt_striplib
 
13413
 
 
13414
# Dependencies to place before the objects being linked to create a
 
13415
# shared library.
 
13416
predep_objects=$lt_predep_objects_CXX
 
13417
 
 
13418
# Dependencies to place after the objects being linked to create a
 
13419
# shared library.
 
13420
postdep_objects=$lt_postdep_objects_CXX
 
13421
 
 
13422
# Dependencies to place before the objects being linked to create a
 
13423
# shared library.
 
13424
predeps=$lt_predeps_CXX
 
13425
 
 
13426
# Dependencies to place after the objects being linked to create a
 
13427
# shared library.
 
13428
postdeps=$lt_postdeps_CXX
 
13429
 
 
13430
# The library search path used internally by the compiler when linking
 
13431
# a shared library.
 
13432
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
13433
 
 
13434
# Method to check whether dependent libraries are shared objects.
 
13435
deplibs_check_method=$lt_deplibs_check_method
 
13436
 
 
13437
# Command to use when deplibs_check_method == file_magic.
 
13438
file_magic_cmd=$lt_file_magic_cmd
 
13439
 
 
13440
# Flag that allows shared libraries with undefined symbols to be built.
 
13441
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
13442
 
 
13443
# Flag that forces no undefined symbols.
 
13444
no_undefined_flag=$lt_no_undefined_flag_CXX
 
13445
 
 
13446
# Commands used to finish a libtool library installation in a directory.
 
13447
finish_cmds=$lt_finish_cmds
 
13448
 
 
13449
# Same as above, but a single script fragment to be evaled but not shown.
 
13450
finish_eval=$lt_finish_eval
 
13451
 
 
13452
# Take the output of nm and produce a listing of raw symbols and C names.
 
13453
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
13454
 
 
13455
# Transform the output of nm in a proper C declaration
 
13456
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
13457
 
 
13458
# Transform the output of nm in a C name address pair
 
13459
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
13460
 
 
13461
# This is the shared library runtime path variable.
 
13462
runpath_var=$runpath_var
 
13463
 
 
13464
# This is the shared library path variable.
 
13465
shlibpath_var=$shlibpath_var
 
13466
 
 
13467
# Is shlibpath searched before the hard-coded library search path?
 
13468
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
13469
 
 
13470
# How to hardcode a shared library path into an executable.
 
13471
hardcode_action=$hardcode_action_CXX
 
13472
 
 
13473
# Whether we should hardcode library paths into libraries.
 
13474
hardcode_into_libs=$hardcode_into_libs
 
13475
 
 
13476
# Flag to hardcode \$libdir into a binary during linking.
 
13477
# This must work even if \$libdir does not exist.
 
13478
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
13479
 
 
13480
# If ld is used when linking, flag to hardcode \$libdir into
 
13481
# a binary during linking. This must work even if \$libdir does
 
13482
# not exist.
 
13483
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
13484
 
 
13485
# Whether we need a single -rpath flag with a separated argument.
 
13486
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
13487
 
 
13488
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
13489
# resulting binary.
 
13490
hardcode_direct=$hardcode_direct_CXX
 
13491
 
 
13492
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
13493
# resulting binary.
 
13494
hardcode_minus_L=$hardcode_minus_L_CXX
 
13495
 
 
13496
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
13497
# the resulting binary.
 
13498
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
13499
 
 
13500
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
13501
# and all subsequent libraries and executables linked against it.
 
13502
hardcode_automatic=$hardcode_automatic_CXX
 
13503
 
 
13504
# Variables whose values should be saved in libtool wrapper scripts and
 
13505
# restored at relink time.
 
13506
variables_saved_for_relink="$variables_saved_for_relink"
 
13507
 
 
13508
# Whether libtool must link a program against all its dependency libraries.
 
13509
link_all_deplibs=$link_all_deplibs_CXX
 
13510
 
 
13511
# Compile-time system search path for libraries
 
13512
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
13513
 
 
13514
# Run-time system search path for libraries
 
13515
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
13516
 
 
13517
# Fix the shell variable \$srcfile for the compiler.
 
13518
fix_srcfile_path="$fix_srcfile_path_CXX"
 
13519
 
 
13520
# Set to yes if exported symbols are required.
 
13521
always_export_symbols=$always_export_symbols_CXX
 
13522
 
 
13523
# The commands to list exported symbols.
 
13524
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
13525
 
 
13526
# The commands to extract the exported symbol list from a shared archive.
 
13527
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
13528
 
 
13529
# Symbols that should not be listed in the preloaded symbols.
 
13530
exclude_expsyms=$lt_exclude_expsyms_CXX
 
13531
 
 
13532
# Symbols that must always be exported.
 
13533
include_expsyms=$lt_include_expsyms_CXX
 
13534
 
 
13535
# ### END LIBTOOL TAG CONFIG: $tagname
 
13536
 
 
13537
__EOF__
 
13538
 
 
13539
 
 
13540
else
 
13541
  # If there is no Makefile yet, we rely on a make rule to execute
 
13542
  # `config.status --recheck' to rerun these tests and create the
 
13543
  # libtool script then.
 
13544
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
13545
  if test -f "$ltmain_in"; then
 
13546
    test -f Makefile && make "$ltmain"
 
13547
  fi
 
13548
fi
 
13549
 
 
13550
 
 
13551
ac_ext=c
 
13552
ac_cpp='$CPP $CPPFLAGS'
 
13553
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
13554
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13555
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
13556
 
 
13557
CC=$lt_save_CC
 
13558
LDCXX=$LD
 
13559
LD=$lt_save_LD
 
13560
GCC=$lt_save_GCC
 
13561
with_gnu_ldcxx=$with_gnu_ld
 
13562
with_gnu_ld=$lt_save_with_gnu_ld
 
13563
lt_cv_path_LDCXX=$lt_cv_path_LD
 
13564
lt_cv_path_LD=$lt_save_path_LD
 
13565
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
13566
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
13567
 
 
13568
        else
 
13569
          tagname=""
 
13570
        fi
 
13571
        ;;
 
13572
 
 
13573
      F77)
 
13574
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
13575
 
 
13576
ac_ext=f
 
13577
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
13578
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13579
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
13580
 
 
13581
 
 
13582
archive_cmds_need_lc_F77=no
 
13583
allow_undefined_flag_F77=
 
13584
always_export_symbols_F77=no
 
13585
archive_expsym_cmds_F77=
 
13586
export_dynamic_flag_spec_F77=
 
13587
hardcode_direct_F77=no
 
13588
hardcode_libdir_flag_spec_F77=
 
13589
hardcode_libdir_flag_spec_ld_F77=
 
13590
hardcode_libdir_separator_F77=
 
13591
hardcode_minus_L_F77=no
 
13592
hardcode_automatic_F77=no
 
13593
module_cmds_F77=
 
13594
module_expsym_cmds_F77=
 
13595
link_all_deplibs_F77=unknown
 
13596
old_archive_cmds_F77=$old_archive_cmds
 
13597
no_undefined_flag_F77=
 
13598
whole_archive_flag_spec_F77=
 
13599
enable_shared_with_static_runtimes_F77=no
 
13600
 
 
13601
# Source file extension for f77 test sources.
 
13602
ac_ext=f
 
13603
 
 
13604
# Object file extension for compiled f77 test sources.
 
13605
objext=o
 
13606
objext_F77=$objext
 
13607
 
 
13608
# Code to be used in simple compile tests
 
13609
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
13610
 
 
13611
# Code to be used in simple link tests
 
13612
lt_simple_link_test_code="      program t\n      end\n"
 
13613
 
 
13614
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
13615
 
 
13616
# If no C compiler was specified, use CC.
 
13617
LTCC=${LTCC-"$CC"}
 
13618
 
 
13619
# If no C compiler flags were specified, use CFLAGS.
 
13620
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
13621
 
 
13622
# Allow CC to be a program name with arguments.
 
13623
compiler=$CC
 
13624
 
 
13625
 
 
13626
# save warnings/boilerplate of simple test code
 
13627
ac_outfile=conftest.$ac_objext
 
13628
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
13629
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
13630
_lt_compiler_boilerplate=`cat conftest.err`
 
13631
$rm conftest*
 
13632
 
 
13633
ac_outfile=conftest.$ac_objext
 
13634
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
13635
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
13636
_lt_linker_boilerplate=`cat conftest.err`
 
13637
$rm conftest*
 
13638
 
 
13639
 
 
13640
# Allow CC to be a program name with arguments.
 
13641
lt_save_CC="$CC"
 
13642
CC=${F77-"f77"}
 
13643
compiler=$CC
 
13644
compiler_F77=$CC
 
13645
for cc_temp in $compiler""; do
 
13646
  case $cc_temp in
 
13647
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
13648
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
13649
    \-*) ;;
 
13650
    *) break;;
 
13651
  esac
 
13652
done
 
13653
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
13654
 
 
13655
 
 
13656
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
13657
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
 
13658
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
13659
echo "${ECHO_T}$can_build_shared" >&6; }
 
13660
 
 
13661
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
13662
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
 
13663
test "$can_build_shared" = "no" && enable_shared=no
 
13664
 
 
13665
# On AIX, shared libraries and static libraries use the same namespace, and
 
13666
# are all built from PIC.
 
13667
case $host_os in
 
13668
aix3*)
 
13669
  test "$enable_shared" = yes && enable_static=no
 
13670
  if test -n "$RANLIB"; then
 
13671
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
13672
    postinstall_cmds='$RANLIB $lib'
 
13673
  fi
 
13674
  ;;
 
13675
aix4* | aix5*)
 
13676
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
13677
    test "$enable_shared" = yes && enable_static=no
 
13678
  fi
 
13679
  ;;
 
13680
esac
 
13681
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
 
13682
echo "${ECHO_T}$enable_shared" >&6; }
 
13683
 
 
13684
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
13685
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
 
13686
# Make sure either enable_shared or enable_static is yes.
 
13687
test "$enable_shared" = yes || enable_static=yes
 
13688
{ echo "$as_me:$LINENO: result: $enable_static" >&5
 
13689
echo "${ECHO_T}$enable_static" >&6; }
 
13690
 
 
13691
GCC_F77="$G77"
 
13692
LD_F77="$LD"
 
13693
 
 
13694
lt_prog_compiler_wl_F77=
 
13695
lt_prog_compiler_pic_F77=
 
13696
lt_prog_compiler_static_F77=
 
13697
 
 
13698
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
13699
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
13700
 
 
13701
  if test "$GCC" = yes; then
 
13702
    lt_prog_compiler_wl_F77='-Wl,'
 
13703
    lt_prog_compiler_static_F77='-static'
 
13704
 
 
13705
    case $host_os in
 
13706
      aix*)
 
13707
      # All AIX code is PIC.
 
13708
      if test "$host_cpu" = ia64; then
 
13709
        # AIX 5 now supports IA64 processor
 
13710
        lt_prog_compiler_static_F77='-Bstatic'
 
13711
      fi
 
13712
      ;;
 
13713
 
 
13714
    amigaos*)
 
13715
      # FIXME: we need at least 68020 code to build shared libraries, but
 
13716
      # adding the `-m68020' flag to GCC prevents building anything better,
 
13717
      # like `-m68040'.
 
13718
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
 
13719
      ;;
 
13720
 
 
13721
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
13722
      # PIC is the default for these OSes.
 
13723
      ;;
 
13724
 
 
13725
    mingw* | pw32* | os2*)
 
13726
      # This hack is so that the source file can tell whether it is being
 
13727
      # built for inclusion in a dll (and should export symbols for example).
 
13728
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
13729
      ;;
 
13730
 
 
13731
    darwin* | rhapsody*)
 
13732
      # PIC is the default on this platform
 
13733
      # Common symbols not allowed in MH_DYLIB files
 
13734
      lt_prog_compiler_pic_F77='-fno-common'
 
13735
      ;;
 
13736
 
 
13737
    interix3*)
 
13738
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
13739
      # Instead, we relocate shared libraries at runtime.
 
13740
      ;;
 
13741
 
 
13742
    msdosdjgpp*)
 
13743
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
13744
      # on systems that don't support them.
 
13745
      lt_prog_compiler_can_build_shared_F77=no
 
13746
      enable_shared=no
 
13747
      ;;
 
13748
 
 
13749
    sysv4*MP*)
 
13750
      if test -d /usr/nec; then
 
13751
        lt_prog_compiler_pic_F77=-Kconform_pic
 
13752
      fi
 
13753
      ;;
 
13754
 
 
13755
    hpux*)
 
13756
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
13757
      # not for PA HP-UX.
 
13758
      case $host_cpu in
 
13759
      hppa*64*|ia64*)
 
13760
        # +Z the default
 
13761
        ;;
 
13762
      *)
 
13763
        lt_prog_compiler_pic_F77='-fPIC'
 
13764
        ;;
 
13765
      esac
 
13766
      ;;
 
13767
 
 
13768
    *)
 
13769
      lt_prog_compiler_pic_F77='-fPIC'
 
13770
      ;;
 
13771
    esac
 
13772
  else
 
13773
    # PORTME Check for flag to pass linker flags through the system compiler.
 
13774
    case $host_os in
 
13775
    aix*)
 
13776
      lt_prog_compiler_wl_F77='-Wl,'
 
13777
      if test "$host_cpu" = ia64; then
 
13778
        # AIX 5 now supports IA64 processor
 
13779
        lt_prog_compiler_static_F77='-Bstatic'
 
13780
      else
 
13781
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
 
13782
      fi
 
13783
      ;;
 
13784
      darwin*)
 
13785
        # PIC is the default on this platform
 
13786
        # Common symbols not allowed in MH_DYLIB files
 
13787
       case $cc_basename in
 
13788
         xlc*)
 
13789
         lt_prog_compiler_pic_F77='-qnocommon'
 
13790
         lt_prog_compiler_wl_F77='-Wl,'
 
13791
         ;;
 
13792
       esac
 
13793
       ;;
 
13794
 
 
13795
    mingw* | pw32* | os2*)
 
13796
      # This hack is so that the source file can tell whether it is being
 
13797
      # built for inclusion in a dll (and should export symbols for example).
 
13798
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
13799
      ;;
 
13800
 
 
13801
    hpux9* | hpux10* | hpux11*)
 
13802
      lt_prog_compiler_wl_F77='-Wl,'
 
13803
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
13804
      # not for PA HP-UX.
 
13805
      case $host_cpu in
 
13806
      hppa*64*|ia64*)
 
13807
        # +Z the default
 
13808
        ;;
 
13809
      *)
 
13810
        lt_prog_compiler_pic_F77='+Z'
 
13811
        ;;
 
13812
      esac
 
13813
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
13814
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
 
13815
      ;;
 
13816
 
 
13817
    irix5* | irix6* | nonstopux*)
 
13818
      lt_prog_compiler_wl_F77='-Wl,'
 
13819
      # PIC (with -KPIC) is the default.
 
13820
      lt_prog_compiler_static_F77='-non_shared'
 
13821
      ;;
 
13822
 
 
13823
    newsos6)
 
13824
      lt_prog_compiler_pic_F77='-KPIC'
 
13825
      lt_prog_compiler_static_F77='-Bstatic'
 
13826
      ;;
 
13827
 
 
13828
    linux*)
 
13829
      case $cc_basename in
 
13830
      icc* | ecc*)
 
13831
        lt_prog_compiler_wl_F77='-Wl,'
 
13832
        lt_prog_compiler_pic_F77='-KPIC'
 
13833
        lt_prog_compiler_static_F77='-static'
 
13834
        ;;
 
13835
      pgcc* | pgf77* | pgf90* | pgf95*)
 
13836
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
13837
        # which looks to be a dead project)
 
13838
        lt_prog_compiler_wl_F77='-Wl,'
 
13839
        lt_prog_compiler_pic_F77='-fpic'
 
13840
        lt_prog_compiler_static_F77='-Bstatic'
 
13841
        ;;
 
13842
      ccc*)
 
13843
        lt_prog_compiler_wl_F77='-Wl,'
 
13844
        # All Alpha code is PIC.
 
13845
        lt_prog_compiler_static_F77='-non_shared'
 
13846
        ;;
 
13847
      esac
 
13848
      ;;
 
13849
 
 
13850
    osf3* | osf4* | osf5*)
 
13851
      lt_prog_compiler_wl_F77='-Wl,'
 
13852
      # All OSF/1 code is PIC.
 
13853
      lt_prog_compiler_static_F77='-non_shared'
 
13854
      ;;
 
13855
 
 
13856
    solaris*)
 
13857
      lt_prog_compiler_pic_F77='-KPIC'
 
13858
      lt_prog_compiler_static_F77='-Bstatic'
 
13859
      case $cc_basename in
 
13860
      f77* | f90* | f95*)
 
13861
        lt_prog_compiler_wl_F77='-Qoption ld ';;
 
13862
      *)
 
13863
        lt_prog_compiler_wl_F77='-Wl,';;
 
13864
      esac
 
13865
      ;;
 
13866
 
 
13867
    sunos4*)
 
13868
      lt_prog_compiler_wl_F77='-Qoption ld '
 
13869
      lt_prog_compiler_pic_F77='-PIC'
 
13870
      lt_prog_compiler_static_F77='-Bstatic'
 
13871
      ;;
 
13872
 
 
13873
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
13874
      lt_prog_compiler_wl_F77='-Wl,'
 
13875
      lt_prog_compiler_pic_F77='-KPIC'
 
13876
      lt_prog_compiler_static_F77='-Bstatic'
 
13877
      ;;
 
13878
 
 
13879
    sysv4*MP*)
 
13880
      if test -d /usr/nec ;then
 
13881
        lt_prog_compiler_pic_F77='-Kconform_pic'
 
13882
        lt_prog_compiler_static_F77='-Bstatic'
 
13883
      fi
 
13884
      ;;
 
13885
 
 
13886
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
13887
      lt_prog_compiler_wl_F77='-Wl,'
 
13888
      lt_prog_compiler_pic_F77='-KPIC'
 
13889
      lt_prog_compiler_static_F77='-Bstatic'
 
13890
      ;;
 
13891
 
 
13892
    unicos*)
 
13893
      lt_prog_compiler_wl_F77='-Wl,'
 
13894
      lt_prog_compiler_can_build_shared_F77=no
 
13895
      ;;
 
13896
 
 
13897
    uts4*)
 
13898
      lt_prog_compiler_pic_F77='-pic'
 
13899
      lt_prog_compiler_static_F77='-Bstatic'
 
13900
      ;;
 
13901
 
 
13902
    *)
 
13903
      lt_prog_compiler_can_build_shared_F77=no
 
13904
      ;;
 
13905
    esac
 
13906
  fi
 
13907
 
 
13908
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
13909
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
 
13910
 
 
13911
#
 
13912
# Check to make sure the PIC flag actually works.
 
13913
#
 
13914
if test -n "$lt_prog_compiler_pic_F77"; then
 
13915
 
 
13916
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
13917
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
 
13918
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
 
13919
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13920
else
 
13921
  lt_prog_compiler_pic_works_F77=no
 
13922
  ac_outfile=conftest.$ac_objext
 
13923
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13924
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
 
13925
   # Insert the option either (1) after the last *FLAGS variable, or
 
13926
   # (2) before a word containing "conftest.", or (3) at the end.
 
13927
   # Note that $ac_compile itself does not contain backslashes and begins
 
13928
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13929
   # The option is referenced via a variable to avoid confusing sed.
 
13930
   lt_compile=`echo "$ac_compile" | $SED \
 
13931
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
13932
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13933
   -e 's:$: $lt_compiler_flag:'`
 
13934
   (eval echo "\"\$as_me:13934: $lt_compile\"" >&5)
 
13935
   (eval "$lt_compile" 2>conftest.err)
 
13936
   ac_status=$?
 
13937
   cat conftest.err >&5
 
13938
   echo "$as_me:13938: \$? = $ac_status" >&5
 
13939
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
13940
     # The compiler can only warn and ignore the option if not recognized
 
13941
     # So say no if there are warnings other than the usual output.
 
13942
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
13943
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
13944
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
13945
       lt_prog_compiler_pic_works_F77=yes
 
13946
     fi
 
13947
   fi
 
13948
   $rm conftest*
 
13949
 
 
13950
fi
 
13951
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
 
13952
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
 
13953
 
 
13954
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
 
13955
    case $lt_prog_compiler_pic_F77 in
 
13956
     "" | " "*) ;;
 
13957
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
 
13958
     esac
 
13959
else
 
13960
    lt_prog_compiler_pic_F77=
 
13961
     lt_prog_compiler_can_build_shared_F77=no
 
13962
fi
 
13963
 
 
13964
fi
 
13965
case $host_os in
 
13966
  # For platforms which do not support PIC, -DPIC is meaningless:
 
13967
  *djgpp*)
 
13968
    lt_prog_compiler_pic_F77=
 
13969
    ;;
 
13970
  *)
 
13971
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
 
13972
    ;;
 
13973
esac
 
13974
 
 
13975
#
 
13976
# Check to make sure the static flag actually works.
 
13977
#
 
13978
wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
 
13979
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
13980
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
13981
if test "${lt_prog_compiler_static_works_F77+set}" = set; then
 
13982
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13983
else
 
13984
  lt_prog_compiler_static_works_F77=no
 
13985
   save_LDFLAGS="$LDFLAGS"
 
13986
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
13987
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
13988
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
13989
     # The linker can only warn and ignore the option if not recognized
 
13990
     # So say no if there are warnings
 
13991
     if test -s conftest.err; then
 
13992
       # Append any errors to the config.log.
 
13993
       cat conftest.err 1>&5
 
13994
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
13995
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
13996
       if diff conftest.exp conftest.er2 >/dev/null; then
 
13997
         lt_prog_compiler_static_works_F77=yes
 
13998
       fi
 
13999
     else
 
14000
       lt_prog_compiler_static_works_F77=yes
 
14001
     fi
 
14002
   fi
 
14003
   $rm conftest*
 
14004
   LDFLAGS="$save_LDFLAGS"
 
14005
 
 
14006
fi
 
14007
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
 
14008
echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
 
14009
 
 
14010
if test x"$lt_prog_compiler_static_works_F77" = xyes; then
 
14011
    :
 
14012
else
 
14013
    lt_prog_compiler_static_F77=
 
14014
fi
 
14015
 
 
14016
 
 
14017
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
14018
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
14019
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
 
14020
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14021
else
 
14022
  lt_cv_prog_compiler_c_o_F77=no
 
14023
   $rm -r conftest 2>/dev/null
 
14024
   mkdir conftest
 
14025
   cd conftest
 
14026
   mkdir out
 
14027
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14028
 
 
14029
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
14030
   # Insert the option either (1) after the last *FLAGS variable, or
 
14031
   # (2) before a word containing "conftest.", or (3) at the end.
 
14032
   # Note that $ac_compile itself does not contain backslashes and begins
 
14033
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14034
   lt_compile=`echo "$ac_compile" | $SED \
 
14035
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
14036
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14037
   -e 's:$: $lt_compiler_flag:'`
 
14038
   (eval echo "\"\$as_me:14038: $lt_compile\"" >&5)
 
14039
   (eval "$lt_compile" 2>out/conftest.err)
 
14040
   ac_status=$?
 
14041
   cat out/conftest.err >&5
 
14042
   echo "$as_me:14042: \$? = $ac_status" >&5
 
14043
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
14044
   then
 
14045
     # The compiler can only warn and ignore the option if not recognized
 
14046
     # So say no if there are warnings
 
14047
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
14048
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
14049
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
14050
       lt_cv_prog_compiler_c_o_F77=yes
 
14051
     fi
 
14052
   fi
 
14053
   chmod u+w . 2>&5
 
14054
   $rm conftest*
 
14055
   # SGI C++ compiler will create directory out/ii_files/ for
 
14056
   # template instantiation
 
14057
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
14058
   $rm out/* && rmdir out
 
14059
   cd ..
 
14060
   rmdir conftest
 
14061
   $rm conftest*
 
14062
 
 
14063
fi
 
14064
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
14065
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
 
14066
 
 
14067
 
 
14068
hard_links="nottested"
 
14069
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
 
14070
  # do not overwrite the value of need_locks provided by the user
 
14071
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
14072
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
14073
  hard_links=yes
 
14074
  $rm conftest*
 
14075
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14076
  touch conftest.a
 
14077
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
14078
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14079
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
14080
echo "${ECHO_T}$hard_links" >&6; }
 
14081
  if test "$hard_links" = no; then
 
14082
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
14083
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
14084
    need_locks=warn
 
14085
  fi
 
14086
else
 
14087
  need_locks=no
 
14088
fi
 
14089
 
 
14090
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
14091
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
14092
 
 
14093
  runpath_var=
 
14094
  allow_undefined_flag_F77=
 
14095
  enable_shared_with_static_runtimes_F77=no
 
14096
  archive_cmds_F77=
 
14097
  archive_expsym_cmds_F77=
 
14098
  old_archive_From_new_cmds_F77=
 
14099
  old_archive_from_expsyms_cmds_F77=
 
14100
  export_dynamic_flag_spec_F77=
 
14101
  whole_archive_flag_spec_F77=
 
14102
  thread_safe_flag_spec_F77=
 
14103
  hardcode_libdir_flag_spec_F77=
 
14104
  hardcode_libdir_flag_spec_ld_F77=
 
14105
  hardcode_libdir_separator_F77=
 
14106
  hardcode_direct_F77=no
 
14107
  hardcode_minus_L_F77=no
 
14108
  hardcode_shlibpath_var_F77=unsupported
 
14109
  link_all_deplibs_F77=unknown
 
14110
  hardcode_automatic_F77=no
 
14111
  module_cmds_F77=
 
14112
  module_expsym_cmds_F77=
 
14113
  always_export_symbols_F77=no
 
14114
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
14115
  # include_expsyms should be a list of space-separated symbols to be *always*
 
14116
  # included in the symbol list
 
14117
  include_expsyms_F77=
 
14118
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
14119
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
14120
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
14121
  # as well as any symbol that contains `d'.
 
14122
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
 
14123
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
14124
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
14125
  # the symbol is explicitly referenced.  Since portable code cannot
 
14126
  # rely on this symbol name, it's probably fine to never include it in
 
14127
  # preloaded symbol tables.
 
14128
  extract_expsyms_cmds=
 
14129
  # Just being paranoid about ensuring that cc_basename is set.
 
14130
  for cc_temp in $compiler""; do
 
14131
  case $cc_temp in
 
14132
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
14133
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
14134
    \-*) ;;
 
14135
    *) break;;
 
14136
  esac
 
14137
done
 
14138
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
14139
 
 
14140
  case $host_os in
 
14141
  cygwin* | mingw* | pw32*)
 
14142
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
14143
    # When not using gcc, we currently assume that we are using
 
14144
    # Microsoft Visual C++.
 
14145
    if test "$GCC" != yes; then
 
14146
      with_gnu_ld=no
 
14147
    fi
 
14148
    ;;
 
14149
  interix*)
 
14150
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
14151
    with_gnu_ld=yes
 
14152
    ;;
 
14153
  openbsd*)
 
14154
    with_gnu_ld=no
 
14155
    ;;
 
14156
  esac
 
14157
 
 
14158
  ld_shlibs_F77=yes
 
14159
  if test "$with_gnu_ld" = yes; then
 
14160
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
14161
    wlarc='${wl}'
 
14162
 
 
14163
    # Set some defaults for GNU ld with shared library support. These
 
14164
    # are reset later if shared libraries are not supported. Putting them
 
14165
    # here allows them to be overridden if necessary.
 
14166
    runpath_var=LD_RUN_PATH
 
14167
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
14168
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
14169
    # ancient GNU ld didn't support --whole-archive et. al.
 
14170
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
14171
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
14172
      else
 
14173
        whole_archive_flag_spec_F77=
 
14174
    fi
 
14175
    supports_anon_versioning=no
 
14176
    case `$LD -v 2>/dev/null` in
 
14177
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
14178
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
14179
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
14180
      *\ 2.11.*) ;; # other 2.11 versions
 
14181
      *) supports_anon_versioning=yes ;;
 
14182
    esac
 
14183
 
 
14184
    # See if GNU ld supports shared libraries.
 
14185
    case $host_os in
 
14186
    aix3* | aix4* | aix5*)
 
14187
      # On AIX/PPC, the GNU linker is very broken
 
14188
      if test "$host_cpu" != ia64; then
 
14189
        ld_shlibs_F77=no
 
14190
        cat <<EOF 1>&2
 
14191
 
 
14192
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
14193
*** to be unable to reliably create shared libraries on AIX.
 
14194
*** Therefore, libtool is disabling shared libraries support.  If you
 
14195
*** really care for shared libraries, you may want to modify your PATH
 
14196
*** so that a non-GNU linker is found, and then restart.
 
14197
 
 
14198
EOF
 
14199
      fi
 
14200
      ;;
 
14201
 
 
14202
    amigaos*)
 
14203
      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)'
 
14204
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14205
      hardcode_minus_L_F77=yes
 
14206
 
 
14207
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
14208
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
14209
      # to version 4, is to share data among multiple programs linked
 
14210
      # with the same dynamic library.  Since this doesn't match the
 
14211
      # behavior of shared libraries on other platforms, we can't use
 
14212
      # them.
 
14213
      ld_shlibs_F77=no
 
14214
      ;;
 
14215
 
 
14216
    beos*)
 
14217
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14218
        allow_undefined_flag_F77=unsupported
 
14219
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
14220
        # support --undefined.  This deserves some investigation.  FIXME
 
14221
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14222
      else
 
14223
        ld_shlibs_F77=no
 
14224
      fi
 
14225
      ;;
 
14226
 
 
14227
    cygwin* | mingw* | pw32*)
 
14228
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
 
14229
      # as there is no search path for DLLs.
 
14230
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14231
      allow_undefined_flag_F77=unsupported
 
14232
      always_export_symbols_F77=no
 
14233
      enable_shared_with_static_runtimes_F77=yes
 
14234
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
14235
 
 
14236
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
14237
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
14238
        # If the export-symbols file already is a .def file (1st line
 
14239
        # is EXPORTS), use it as is; otherwise, prepend...
 
14240
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
14241
          cp $export_symbols $output_objdir/$soname.def;
 
14242
        else
 
14243
          echo EXPORTS > $output_objdir/$soname.def;
 
14244
          cat $export_symbols >> $output_objdir/$soname.def;
 
14245
        fi~
 
14246
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
14247
      else
 
14248
        ld_shlibs_F77=no
 
14249
      fi
 
14250
      ;;
 
14251
 
 
14252
    interix3*)
 
14253
      hardcode_direct_F77=no
 
14254
      hardcode_shlibpath_var_F77=no
 
14255
      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
14256
      export_dynamic_flag_spec_F77='${wl}-E'
 
14257
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
14258
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
14259
      # default) and relocated if they conflict, which is a slow very memory
 
14260
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
14261
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
14262
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
14263
      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'
 
14264
      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'
 
14265
      ;;
 
14266
 
 
14267
    linux*)
 
14268
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14269
        tmp_addflag=
 
14270
        case $cc_basename,$host_cpu in
 
14271
        pgcc*)                          # Portland Group C compiler
 
14272
          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'
 
14273
          tmp_addflag=' $pic_flag'
 
14274
          ;;
 
14275
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
14276
          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'
 
14277
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
14278
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
14279
          tmp_addflag=' -i_dynamic' ;;
 
14280
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
14281
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
14282
        ifc* | ifort*)                  # Intel Fortran compiler
 
14283
          tmp_addflag=' -nofor_main' ;;
 
14284
        esac
 
14285
        archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14286
 
 
14287
        if test $supports_anon_versioning = yes; then
 
14288
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
14289
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
14290
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
14291
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
14292
        fi
 
14293
      else
 
14294
        ld_shlibs_F77=no
 
14295
      fi
 
14296
      ;;
 
14297
 
 
14298
    netbsd*)
 
14299
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14300
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
14301
        wlarc=
 
14302
      else
 
14303
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14304
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14305
      fi
 
14306
      ;;
 
14307
 
 
14308
    solaris*)
 
14309
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
14310
        ld_shlibs_F77=no
 
14311
        cat <<EOF 1>&2
 
14312
 
 
14313
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
14314
*** create shared libraries on Solaris systems.  Therefore, libtool
 
14315
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
14316
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
14317
*** your PATH or compiler configuration so that the native linker is
 
14318
*** used, and then restart.
 
14319
 
 
14320
EOF
 
14321
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14322
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14323
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14324
      else
 
14325
        ld_shlibs_F77=no
 
14326
      fi
 
14327
      ;;
 
14328
 
 
14329
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
14330
      case `$LD -v 2>&1` in
 
14331
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
14332
        ld_shlibs_F77=no
 
14333
        cat <<_LT_EOF 1>&2
 
14334
 
 
14335
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
14336
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
14337
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
14338
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
14339
*** your PATH or compiler configuration so that the native linker is
 
14340
*** used, and then restart.
 
14341
 
 
14342
_LT_EOF
 
14343
        ;;
 
14344
        *)
 
14345
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14346
            hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
14347
            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
14348
            archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
14349
          else
 
14350
            ld_shlibs_F77=no
 
14351
          fi
 
14352
        ;;
 
14353
      esac
 
14354
      ;;
 
14355
 
 
14356
    sunos4*)
 
14357
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14358
      wlarc=
 
14359
      hardcode_direct_F77=yes
 
14360
      hardcode_shlibpath_var_F77=no
 
14361
      ;;
 
14362
 
 
14363
    *)
 
14364
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14365
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14366
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14367
      else
 
14368
        ld_shlibs_F77=no
 
14369
      fi
 
14370
      ;;
 
14371
    esac
 
14372
 
 
14373
    if test "$ld_shlibs_F77" = no; then
 
14374
      runpath_var=
 
14375
      hardcode_libdir_flag_spec_F77=
 
14376
      export_dynamic_flag_spec_F77=
 
14377
      whole_archive_flag_spec_F77=
 
14378
    fi
 
14379
  else
 
14380
    # PORTME fill in a description of your system's linker (not GNU ld)
 
14381
    case $host_os in
 
14382
    aix3*)
 
14383
      allow_undefined_flag_F77=unsupported
 
14384
      always_export_symbols_F77=yes
 
14385
      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'
 
14386
      # Note: this linker hardcodes the directories in LIBPATH if there
 
14387
      # are no directories specified by -L.
 
14388
      hardcode_minus_L_F77=yes
 
14389
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
14390
        # Neither direct hardcoding nor static linking is supported with a
 
14391
        # broken collect2.
 
14392
        hardcode_direct_F77=unsupported
 
14393
      fi
 
14394
      ;;
 
14395
 
 
14396
    aix4* | aix5*)
 
14397
      if test "$host_cpu" = ia64; then
 
14398
        # On IA64, the linker does run time linking by default, so we don't
 
14399
        # have to do anything special.
 
14400
        aix_use_runtimelinking=no
 
14401
        exp_sym_flag='-Bexport'
 
14402
        no_entry_flag=""
 
14403
      else
 
14404
        # If we're using GNU nm, then we don't want the "-C" option.
 
14405
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
14406
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
14407
          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'
 
14408
        else
 
14409
          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'
 
14410
        fi
 
14411
        aix_use_runtimelinking=no
 
14412
 
 
14413
        # Test if we are trying to use run time linking or normal
 
14414
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
14415
        # need to do runtime linking.
 
14416
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
14417
          for ld_flag in $LDFLAGS; do
 
14418
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
14419
            aix_use_runtimelinking=yes
 
14420
            break
 
14421
          fi
 
14422
          done
 
14423
          ;;
 
14424
        esac
 
14425
 
 
14426
        exp_sym_flag='-bexport'
 
14427
        no_entry_flag='-bnoentry'
 
14428
      fi
 
14429
 
 
14430
      # When large executables or shared objects are built, AIX ld can
 
14431
      # have problems creating the table of contents.  If linking a library
 
14432
      # or program results in "error TOC overflow" add -mminimal-toc to
 
14433
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
14434
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
14435
 
 
14436
      archive_cmds_F77=''
 
14437
      hardcode_direct_F77=yes
 
14438
      hardcode_libdir_separator_F77=':'
 
14439
      link_all_deplibs_F77=yes
 
14440
 
 
14441
      if test "$GCC" = yes; then
 
14442
        case $host_os in aix4.[012]|aix4.[012].*)
 
14443
        # We only want to do this on AIX 4.2 and lower, the check
 
14444
        # below for broken collect2 doesn't work under 4.3+
 
14445
          collect2name=`${CC} -print-prog-name=collect2`
 
14446
          if test -f "$collect2name" && \
 
14447
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
14448
          then
 
14449
          # We have reworked collect2
 
14450
          hardcode_direct_F77=yes
 
14451
          else
 
14452
          # We have old collect2
 
14453
          hardcode_direct_F77=unsupported
 
14454
          # It fails to find uninstalled libraries when the uninstalled
 
14455
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
14456
          # to unsupported forces relinking
 
14457
          hardcode_minus_L_F77=yes
 
14458
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
14459
          hardcode_libdir_separator_F77=
 
14460
          fi
 
14461
          ;;
 
14462
        esac
 
14463
        shared_flag='-shared'
 
14464
        if test "$aix_use_runtimelinking" = yes; then
 
14465
          shared_flag="$shared_flag "'${wl}-G'
 
14466
        fi
 
14467
      else
 
14468
        # not using gcc
 
14469
        if test "$host_cpu" = ia64; then
 
14470
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
14471
        # chokes on -Wl,-G. The following line is correct:
 
14472
          shared_flag='-G'
 
14473
        else
 
14474
          if test "$aix_use_runtimelinking" = yes; then
 
14475
            shared_flag='${wl}-G'
 
14476
          else
 
14477
            shared_flag='${wl}-bM:SRE'
 
14478
          fi
 
14479
        fi
 
14480
      fi
 
14481
 
 
14482
      # It seems that -bexpall does not export symbols beginning with
 
14483
      # underscore (_), so it is better to generate a list of symbols to export.
 
14484
      always_export_symbols_F77=yes
 
14485
      if test "$aix_use_runtimelinking" = yes; then
 
14486
        # Warning - without using the other runtime loading flags (-brtl),
 
14487
        # -berok will link without error, but may produce a broken library.
 
14488
        allow_undefined_flag_F77='-berok'
 
14489
       # Determine the default libpath from the value encoded in an empty executable.
 
14490
       cat >conftest.$ac_ext <<_ACEOF
 
14491
      program main
 
14492
 
 
14493
      end
 
14494
_ACEOF
 
14495
rm -f conftest.$ac_objext conftest$ac_exeext
 
14496
if { (ac_try="$ac_link"
 
14497
case "(($ac_try" in
 
14498
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14499
  *) ac_try_echo=$ac_try;;
 
14500
esac
 
14501
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14502
  (eval "$ac_link") 2>conftest.er1
 
14503
  ac_status=$?
 
14504
  grep -v '^ *+' conftest.er1 >conftest.err
 
14505
  rm -f conftest.er1
 
14506
  cat conftest.err >&5
 
14507
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14508
  (exit $ac_status); } && {
 
14509
         test -z "$ac_f77_werror_flag" ||
 
14510
         test ! -s conftest.err
 
14511
       } && test -s conftest$ac_exeext &&
 
14512
       $as_test_x conftest$ac_exeext; then
 
14513
 
 
14514
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
14515
}'`
 
14516
# Check for a 64-bit object if we didn't find anything.
 
14517
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
14518
}'`; fi
 
14519
else
 
14520
  echo "$as_me: failed program was:" >&5
 
14521
sed 's/^/| /' conftest.$ac_ext >&5
 
14522
 
 
14523
 
 
14524
fi
 
14525
 
 
14526
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
14527
      conftest$ac_exeext conftest.$ac_ext
 
14528
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
14529
 
 
14530
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
14531
        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"
 
14532
       else
 
14533
        if test "$host_cpu" = ia64; then
 
14534
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
 
14535
          allow_undefined_flag_F77="-z nodefs"
 
14536
          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"
 
14537
        else
 
14538
         # Determine the default libpath from the value encoded in an empty executable.
 
14539
         cat >conftest.$ac_ext <<_ACEOF
 
14540
      program main
 
14541
 
 
14542
      end
 
14543
_ACEOF
 
14544
rm -f conftest.$ac_objext conftest$ac_exeext
 
14545
if { (ac_try="$ac_link"
 
14546
case "(($ac_try" in
 
14547
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
14548
  *) ac_try_echo=$ac_try;;
 
14549
esac
 
14550
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
14551
  (eval "$ac_link") 2>conftest.er1
 
14552
  ac_status=$?
 
14553
  grep -v '^ *+' conftest.er1 >conftest.err
 
14554
  rm -f conftest.er1
 
14555
  cat conftest.err >&5
 
14556
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14557
  (exit $ac_status); } && {
 
14558
         test -z "$ac_f77_werror_flag" ||
 
14559
         test ! -s conftest.err
 
14560
       } && test -s conftest$ac_exeext &&
 
14561
       $as_test_x conftest$ac_exeext; then
 
14562
 
 
14563
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
14564
}'`
 
14565
# Check for a 64-bit object if we didn't find anything.
 
14566
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
14567
}'`; fi
 
14568
else
 
14569
  echo "$as_me: failed program was:" >&5
 
14570
sed 's/^/| /' conftest.$ac_ext >&5
 
14571
 
 
14572
 
 
14573
fi
 
14574
 
 
14575
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
14576
      conftest$ac_exeext conftest.$ac_ext
 
14577
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
14578
 
 
14579
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
14580
          # Warning - without using the other run time loading flags,
 
14581
          # -berok will link without error, but may produce a broken library.
 
14582
          no_undefined_flag_F77=' ${wl}-bernotok'
 
14583
          allow_undefined_flag_F77=' ${wl}-berok'
 
14584
          # Exported symbols can be pulled into shared objects from archives
 
14585
          whole_archive_flag_spec_F77='$convenience'
 
14586
          archive_cmds_need_lc_F77=yes
 
14587
          # This is similar to how AIX traditionally builds its shared libraries.
 
14588
          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'
 
14589
        fi
 
14590
      fi
 
14591
      ;;
 
14592
 
 
14593
    amigaos*)
 
14594
      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)'
 
14595
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14596
      hardcode_minus_L_F77=yes
 
14597
      # see comment about different semantics on the GNU ld section
 
14598
      ld_shlibs_F77=no
 
14599
      ;;
 
14600
 
 
14601
    bsdi[45]*)
 
14602
      export_dynamic_flag_spec_F77=-rdynamic
 
14603
      ;;
 
14604
 
 
14605
    cygwin* | mingw* | pw32*)
 
14606
      # When not using gcc, we currently assume that we are using
 
14607
      # Microsoft Visual C++.
 
14608
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
14609
      # no search path for DLLs.
 
14610
      hardcode_libdir_flag_spec_F77=' '
 
14611
      allow_undefined_flag_F77=unsupported
 
14612
      # Tell ltmain to make .lib files, not .a files.
 
14613
      libext=lib
 
14614
      # Tell ltmain to make .dll files, not .so files.
 
14615
      shrext_cmds=".dll"
 
14616
      # FIXME: Setting linknames here is a bad hack.
 
14617
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
14618
      # The linker will automatically build a .lib file if we build a DLL.
 
14619
      old_archive_From_new_cmds_F77='true'
 
14620
      # FIXME: Should let the user specify the lib program.
 
14621
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
14622
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
 
14623
      enable_shared_with_static_runtimes_F77=yes
 
14624
      ;;
 
14625
 
 
14626
    darwin* | rhapsody*)
 
14627
      case $host_os in
 
14628
        rhapsody* | darwin1.[012])
 
14629
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
 
14630
         ;;
 
14631
       *) # Darwin 1.3 on
 
14632
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
14633
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
14634
         else
 
14635
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
14636
             10.[012])
 
14637
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
14638
               ;;
 
14639
             10.*)
 
14640
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
 
14641
               ;;
 
14642
           esac
 
14643
         fi
 
14644
         ;;
 
14645
      esac
 
14646
      archive_cmds_need_lc_F77=no
 
14647
      hardcode_direct_F77=no
 
14648
      hardcode_automatic_F77=yes
 
14649
      hardcode_shlibpath_var_F77=unsupported
 
14650
      whole_archive_flag_spec_F77=''
 
14651
      link_all_deplibs_F77=yes
 
14652
    if test "$GCC" = yes ; then
 
14653
        output_verbose_link_cmd='echo'
 
14654
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
14655
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
14656
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
14657
      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
14658
      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}'
 
14659
    else
 
14660
      case $cc_basename in
 
14661
        xlc*)
 
14662
         output_verbose_link_cmd='echo'
 
14663
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
14664
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
14665
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
14666
         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
14667
          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}'
 
14668
          ;;
 
14669
       *)
 
14670
         ld_shlibs_F77=no
 
14671
          ;;
 
14672
      esac
 
14673
    fi
 
14674
      ;;
 
14675
 
 
14676
    dgux*)
 
14677
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14678
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14679
      hardcode_shlibpath_var_F77=no
 
14680
      ;;
 
14681
 
 
14682
    freebsd1*)
 
14683
      ld_shlibs_F77=no
 
14684
      ;;
 
14685
 
 
14686
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
14687
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
14688
    # does not break anything, and helps significantly (at the cost of a little
 
14689
    # extra space).
 
14690
    freebsd2.2*)
 
14691
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
14692
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14693
      hardcode_direct_F77=yes
 
14694
      hardcode_shlibpath_var_F77=no
 
14695
      ;;
 
14696
 
 
14697
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
14698
    freebsd2*)
 
14699
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14700
      hardcode_direct_F77=yes
 
14701
      hardcode_minus_L_F77=yes
 
14702
      hardcode_shlibpath_var_F77=no
 
14703
      ;;
 
14704
 
 
14705
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
14706
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
14707
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
14708
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14709
      hardcode_direct_F77=yes
 
14710
      hardcode_shlibpath_var_F77=no
 
14711
      ;;
 
14712
 
 
14713
    hpux9*)
 
14714
      if test "$GCC" = yes; then
 
14715
        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'
 
14716
      else
 
14717
        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'
 
14718
      fi
 
14719
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14720
      hardcode_libdir_separator_F77=:
 
14721
      hardcode_direct_F77=yes
 
14722
 
 
14723
      # hardcode_minus_L: Not really in the search PATH,
 
14724
      # but as the default location of the library.
 
14725
      hardcode_minus_L_F77=yes
 
14726
      export_dynamic_flag_spec_F77='${wl}-E'
 
14727
      ;;
 
14728
 
 
14729
    hpux10*)
 
14730
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
14731
        archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
14732
      else
 
14733
        archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
14734
      fi
 
14735
      if test "$with_gnu_ld" = no; then
 
14736
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14737
        hardcode_libdir_separator_F77=:
 
14738
 
 
14739
        hardcode_direct_F77=yes
 
14740
        export_dynamic_flag_spec_F77='${wl}-E'
 
14741
 
 
14742
        # hardcode_minus_L: Not really in the search PATH,
 
14743
        # but as the default location of the library.
 
14744
        hardcode_minus_L_F77=yes
 
14745
      fi
 
14746
      ;;
 
14747
 
 
14748
    hpux11*)
 
14749
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
14750
        case $host_cpu in
 
14751
        hppa*64*)
 
14752
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14753
          ;;
 
14754
        ia64*)
 
14755
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
14756
          ;;
 
14757
        *)
 
14758
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
14759
          ;;
 
14760
        esac
 
14761
      else
 
14762
        case $host_cpu in
 
14763
        hppa*64*)
 
14764
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14765
          ;;
 
14766
        ia64*)
 
14767
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
14768
          ;;
 
14769
        *)
 
14770
          archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
14771
          ;;
 
14772
        esac
 
14773
      fi
 
14774
      if test "$with_gnu_ld" = no; then
 
14775
        hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14776
        hardcode_libdir_separator_F77=:
 
14777
 
 
14778
        case $host_cpu in
 
14779
        hppa*64*|ia64*)
 
14780
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
 
14781
          hardcode_direct_F77=no
 
14782
          hardcode_shlibpath_var_F77=no
 
14783
          ;;
 
14784
        *)
 
14785
          hardcode_direct_F77=yes
 
14786
          export_dynamic_flag_spec_F77='${wl}-E'
 
14787
 
 
14788
          # hardcode_minus_L: Not really in the search PATH,
 
14789
          # but as the default location of the library.
 
14790
          hardcode_minus_L_F77=yes
 
14791
          ;;
 
14792
        esac
 
14793
      fi
 
14794
      ;;
 
14795
 
 
14796
    irix5* | irix6* | nonstopux*)
 
14797
      if test "$GCC" = yes; then
 
14798
        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'
 
14799
      else
 
14800
        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'
 
14801
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
 
14802
      fi
 
14803
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14804
      hardcode_libdir_separator_F77=:
 
14805
      link_all_deplibs_F77=yes
 
14806
      ;;
 
14807
 
 
14808
    netbsd*)
 
14809
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14810
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
14811
      else
 
14812
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
14813
      fi
 
14814
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14815
      hardcode_direct_F77=yes
 
14816
      hardcode_shlibpath_var_F77=no
 
14817
      ;;
 
14818
 
 
14819
    newsos6)
 
14820
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14821
      hardcode_direct_F77=yes
 
14822
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14823
      hardcode_libdir_separator_F77=:
 
14824
      hardcode_shlibpath_var_F77=no
 
14825
      ;;
 
14826
 
 
14827
    openbsd*)
 
14828
      hardcode_direct_F77=yes
 
14829
      hardcode_shlibpath_var_F77=no
 
14830
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
14831
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
14832
        archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
14833
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
14834
        export_dynamic_flag_spec_F77='${wl}-E'
 
14835
      else
 
14836
       case $host_os in
 
14837
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
14838
           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14839
           hardcode_libdir_flag_spec_F77='-R$libdir'
 
14840
           ;;
 
14841
         *)
 
14842
           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
14843
           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
14844
           ;;
 
14845
       esac
 
14846
      fi
 
14847
      ;;
 
14848
 
 
14849
    os2*)
 
14850
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14851
      hardcode_minus_L_F77=yes
 
14852
      allow_undefined_flag_F77=unsupported
 
14853
      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'
 
14854
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
14855
      ;;
 
14856
 
 
14857
    osf3*)
 
14858
      if test "$GCC" = yes; then
 
14859
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
14860
        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'
 
14861
      else
 
14862
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
14863
        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'
 
14864
      fi
 
14865
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14866
      hardcode_libdir_separator_F77=:
 
14867
      ;;
 
14868
 
 
14869
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
14870
      if test "$GCC" = yes; then
 
14871
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
14872
        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'
 
14873
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14874
      else
 
14875
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
14876
        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'
 
14877
        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~
 
14878
        $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'
 
14879
 
 
14880
        # Both c and cxx compiler support -rpath directly
 
14881
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
 
14882
      fi
 
14883
      hardcode_libdir_separator_F77=:
 
14884
      ;;
 
14885
 
 
14886
    solaris*)
 
14887
      no_undefined_flag_F77=' -z text'
 
14888
      if test "$GCC" = yes; then
 
14889
        wlarc='${wl}'
 
14890
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14891
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
14892
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
14893
      else
 
14894
        wlarc=''
 
14895
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14896
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
14897
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
14898
      fi
 
14899
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14900
      hardcode_shlibpath_var_F77=no
 
14901
      case $host_os in
 
14902
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
14903
      *)
 
14904
        # The compiler driver will combine linker options so we
 
14905
        # cannot just pass the convience library names through
 
14906
        # without $wl, iff we do not link with $LD.
 
14907
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
14908
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
14909
        case $wlarc in
 
14910
        '')
 
14911
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
14912
        *)
 
14913
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
14914
        esac ;;
 
14915
      esac
 
14916
      link_all_deplibs_F77=yes
 
14917
      ;;
 
14918
 
 
14919
    sunos4*)
 
14920
      if test "x$host_vendor" = xsequent; then
 
14921
        # Use $CC to link under sequent, because it throws in some extra .o
 
14922
        # files that make .init and .fini sections work.
 
14923
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
14924
      else
 
14925
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
14926
      fi
 
14927
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14928
      hardcode_direct_F77=yes
 
14929
      hardcode_minus_L_F77=yes
 
14930
      hardcode_shlibpath_var_F77=no
 
14931
      ;;
 
14932
 
 
14933
    sysv4)
 
14934
      case $host_vendor in
 
14935
        sni)
 
14936
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14937
          hardcode_direct_F77=yes # is this really true???
 
14938
        ;;
 
14939
        siemens)
 
14940
          ## LD is ld it makes a PLAMLIB
 
14941
          ## CC just makes a GrossModule.
 
14942
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
14943
          reload_cmds_F77='$CC -r -o $output$reload_objs'
 
14944
          hardcode_direct_F77=no
 
14945
        ;;
 
14946
        motorola)
 
14947
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14948
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
 
14949
        ;;
 
14950
      esac
 
14951
      runpath_var='LD_RUN_PATH'
 
14952
      hardcode_shlibpath_var_F77=no
 
14953
      ;;
 
14954
 
 
14955
    sysv4.3*)
 
14956
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14957
      hardcode_shlibpath_var_F77=no
 
14958
      export_dynamic_flag_spec_F77='-Bexport'
 
14959
      ;;
 
14960
 
 
14961
    sysv4*MP*)
 
14962
      if test -d /usr/nec; then
 
14963
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14964
        hardcode_shlibpath_var_F77=no
 
14965
        runpath_var=LD_RUN_PATH
 
14966
        hardcode_runpath_var=yes
 
14967
        ld_shlibs_F77=yes
 
14968
      fi
 
14969
      ;;
 
14970
 
 
14971
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
14972
      no_undefined_flag_F77='${wl}-z,text'
 
14973
      archive_cmds_need_lc_F77=no
 
14974
      hardcode_shlibpath_var_F77=no
 
14975
      runpath_var='LD_RUN_PATH'
 
14976
 
 
14977
      if test "$GCC" = yes; then
 
14978
        archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14979
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14980
      else
 
14981
        archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14982
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14983
      fi
 
14984
      ;;
 
14985
 
 
14986
    sysv5* | sco3.2v5* | sco5v6*)
 
14987
      # Note: We can NOT use -z defs as we might desire, because we do not
 
14988
      # link with -lc, and that would cause any symbols used from libc to
 
14989
      # always be unresolved, which means just about no library would
 
14990
      # ever link correctly.  If we're not using GNU ld we use -z text
 
14991
      # though, which does catch some bad symbols but isn't as heavy-handed
 
14992
      # as -z defs.
 
14993
      no_undefined_flag_F77='${wl}-z,text'
 
14994
      allow_undefined_flag_F77='${wl}-z,nodefs'
 
14995
      archive_cmds_need_lc_F77=no
 
14996
      hardcode_shlibpath_var_F77=no
 
14997
      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
14998
      hardcode_libdir_separator_F77=':'
 
14999
      link_all_deplibs_F77=yes
 
15000
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
15001
      runpath_var='LD_RUN_PATH'
 
15002
 
 
15003
      if test "$GCC" = yes; then
 
15004
        archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15005
        archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15006
      else
 
15007
        archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15008
        archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15009
      fi
 
15010
      ;;
 
15011
 
 
15012
    uts4*)
 
15013
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15014
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15015
      hardcode_shlibpath_var_F77=no
 
15016
      ;;
 
15017
 
 
15018
    *)
 
15019
      ld_shlibs_F77=no
 
15020
      ;;
 
15021
    esac
 
15022
  fi
 
15023
 
 
15024
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
15025
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
 
15026
test "$ld_shlibs_F77" = no && can_build_shared=no
 
15027
 
 
15028
#
 
15029
# Do we need to explicitly link libc?
 
15030
#
 
15031
case "x$archive_cmds_need_lc_F77" in
 
15032
x|xyes)
 
15033
  # Assume -lc should be added
 
15034
  archive_cmds_need_lc_F77=yes
 
15035
 
 
15036
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
15037
    case $archive_cmds_F77 in
 
15038
    *'~'*)
 
15039
      # FIXME: we may have to deal with multi-command sequences.
 
15040
      ;;
 
15041
    '$CC '*)
 
15042
      # Test whether the compiler implicitly links with -lc since on some
 
15043
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
15044
      # to ld, don't add -lc before -lgcc.
 
15045
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
15046
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
15047
      $rm conftest*
 
15048
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15049
 
 
15050
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15051
  (eval $ac_compile) 2>&5
 
15052
  ac_status=$?
 
15053
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15054
  (exit $ac_status); } 2>conftest.err; then
 
15055
        soname=conftest
 
15056
        lib=conftest
 
15057
        libobjs=conftest.$ac_objext
 
15058
        deplibs=
 
15059
        wl=$lt_prog_compiler_wl_F77
 
15060
        pic_flag=$lt_prog_compiler_pic_F77
 
15061
        compiler_flags=-v
 
15062
        linker_flags=-v
 
15063
        verstring=
 
15064
        output_objdir=.
 
15065
        libname=conftest
 
15066
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
 
15067
        allow_undefined_flag_F77=
 
15068
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
15069
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
15070
  ac_status=$?
 
15071
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15072
  (exit $ac_status); }
 
15073
        then
 
15074
          archive_cmds_need_lc_F77=no
 
15075
        else
 
15076
          archive_cmds_need_lc_F77=yes
 
15077
        fi
 
15078
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
 
15079
      else
 
15080
        cat conftest.err 1>&5
 
15081
      fi
 
15082
      $rm conftest*
 
15083
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
15084
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
 
15085
      ;;
 
15086
    esac
 
15087
  fi
 
15088
  ;;
 
15089
esac
 
15090
 
 
15091
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
15092
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
15093
library_names_spec=
 
15094
libname_spec='lib$name'
 
15095
soname_spec=
 
15096
shrext_cmds=".so"
 
15097
postinstall_cmds=
 
15098
postuninstall_cmds=
 
15099
finish_cmds=
 
15100
finish_eval=
 
15101
shlibpath_var=
 
15102
shlibpath_overrides_runpath=unknown
 
15103
version_type=none
 
15104
dynamic_linker="$host_os ld.so"
 
15105
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
15106
if test "$GCC" = yes; then
 
15107
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
15108
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
15109
    # if the path contains ";" then we assume it to be the separator
 
15110
    # otherwise default to the standard path separator (i.e. ":") - it is
 
15111
    # assumed that no part of a normal pathname contains ";" but that should
 
15112
    # okay in the real world where ";" in dirpaths is itself problematic.
 
15113
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
15114
  else
 
15115
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
15116
  fi
 
15117
else
 
15118
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
15119
fi
 
15120
need_lib_prefix=unknown
 
15121
hardcode_into_libs=no
 
15122
 
 
15123
# when you set need_version to no, make sure it does not cause -set_version
 
15124
# flags to be left without arguments
 
15125
need_version=unknown
 
15126
 
 
15127
case $host_os in
 
15128
aix3*)
 
15129
  version_type=linux
 
15130
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
15131
  shlibpath_var=LIBPATH
 
15132
 
 
15133
  # AIX 3 has no versioning support, so we append a major version to the name.
 
15134
  soname_spec='${libname}${release}${shared_ext}$major'
 
15135
  ;;
 
15136
 
 
15137
aix4* | aix5*)
 
15138
  version_type=linux
 
15139
  need_lib_prefix=no
 
15140
  need_version=no
 
15141
  hardcode_into_libs=yes
 
15142
  if test "$host_cpu" = ia64; then
 
15143
    # AIX 5 supports IA64
 
15144
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
15145
    shlibpath_var=LD_LIBRARY_PATH
 
15146
  else
 
15147
    # With GCC up to 2.95.x, collect2 would create an import file
 
15148
    # for dependence libraries.  The import file would start with
 
15149
    # the line `#! .'.  This would cause the generated library to
 
15150
    # depend on `.', always an invalid library.  This was fixed in
 
15151
    # development snapshots of GCC prior to 3.0.
 
15152
    case $host_os in
 
15153
      aix4 | aix4.[01] | aix4.[01].*)
 
15154
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
15155
           echo ' yes '
 
15156
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
15157
        :
 
15158
      else
 
15159
        can_build_shared=no
 
15160
      fi
 
15161
      ;;
 
15162
    esac
 
15163
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
15164
    # soname into executable. Probably we can add versioning support to
 
15165
    # collect2, so additional links can be useful in future.
 
15166
    if test "$aix_use_runtimelinking" = yes; then
 
15167
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
15168
      # instead of lib<name>.a to let people know that these are not
 
15169
      # typical AIX shared libraries.
 
15170
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15171
    else
 
15172
      # We preserve .a as extension for shared libraries through AIX4.2
 
15173
      # and later when we are not doing run time linking.
 
15174
      library_names_spec='${libname}${release}.a $libname.a'
 
15175
      soname_spec='${libname}${release}${shared_ext}$major'
 
15176
    fi
 
15177
    shlibpath_var=LIBPATH
 
15178
  fi
 
15179
  ;;
 
15180
 
 
15181
amigaos*)
 
15182
  library_names_spec='$libname.ixlibrary $libname.a'
 
15183
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
15184
  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'
 
15185
  ;;
 
15186
 
 
15187
beos*)
 
15188
  library_names_spec='${libname}${shared_ext}'
 
15189
  dynamic_linker="$host_os ld.so"
 
15190
  shlibpath_var=LIBRARY_PATH
 
15191
  ;;
 
15192
 
 
15193
bsdi[45]*)
 
15194
  version_type=linux
 
15195
  need_version=no
 
15196
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15197
  soname_spec='${libname}${release}${shared_ext}$major'
 
15198
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
15199
  shlibpath_var=LD_LIBRARY_PATH
 
15200
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
15201
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
15202
  # the default ld.so.conf also contains /usr/contrib/lib and
 
15203
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
15204
  # libtool to hard-code these into programs
 
15205
  ;;
 
15206
 
 
15207
cygwin* | mingw* | pw32*)
 
15208
  version_type=windows
 
15209
  shrext_cmds=".dll"
 
15210
  need_version=no
 
15211
  need_lib_prefix=no
 
15212
 
 
15213
  case $GCC,$host_os in
 
15214
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
15215
    library_names_spec='$libname.dll.a'
 
15216
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
15217
    postinstall_cmds='base_file=`basename \${file}`~
 
15218
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
15219
      dldir=$destdir/`dirname \$dlpath`~
 
15220
      test -d \$dldir || mkdir -p \$dldir~
 
15221
      $install_prog $dir/$dlname \$dldir/$dlname~
 
15222
      chmod a+x \$dldir/$dlname'
 
15223
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
15224
      dlpath=$dir/\$dldll~
 
15225
       $rm \$dlpath'
 
15226
    shlibpath_overrides_runpath=yes
 
15227
 
 
15228
    case $host_os in
 
15229
    cygwin*)
 
15230
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
15231
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15232
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
15233
      ;;
 
15234
    mingw*)
 
15235
      # MinGW DLLs use traditional 'lib' prefix
 
15236
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15237
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
15238
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
15239
        # It is most probably a Windows format PATH printed by
 
15240
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
15241
        # path with ; separators, and with drive letters. We can handle the
 
15242
        # drive letters (cygwin fileutils understands them), so leave them,
 
15243
        # especially as we might pass files found there to a mingw objdump,
 
15244
        # which wouldn't understand a cygwinified path. Ahh.
 
15245
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
15246
      else
 
15247
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
15248
      fi
 
15249
      ;;
 
15250
    pw32*)
 
15251
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
15252
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15253
      ;;
 
15254
    esac
 
15255
    ;;
 
15256
 
 
15257
  *)
 
15258
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
15259
    ;;
 
15260
  esac
 
15261
  dynamic_linker='Win32 ld.exe'
 
15262
  # FIXME: first we should search . and the directory the executable is in
 
15263
  shlibpath_var=PATH
 
15264
  ;;
 
15265
 
 
15266
darwin* | rhapsody*)
 
15267
  dynamic_linker="$host_os dyld"
 
15268
  version_type=darwin
 
15269
  need_lib_prefix=no
 
15270
  need_version=no
 
15271
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
15272
  soname_spec='${libname}${release}${major}$shared_ext'
 
15273
  shlibpath_overrides_runpath=yes
 
15274
  shlibpath_var=DYLD_LIBRARY_PATH
 
15275
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
15276
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
15277
  if test "$GCC" = yes; then
 
15278
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
15279
  else
 
15280
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
15281
  fi
 
15282
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
15283
  ;;
 
15284
 
 
15285
dgux*)
 
15286
  version_type=linux
 
15287
  need_lib_prefix=no
 
15288
  need_version=no
 
15289
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
15290
  soname_spec='${libname}${release}${shared_ext}$major'
 
15291
  shlibpath_var=LD_LIBRARY_PATH
 
15292
  ;;
 
15293
 
 
15294
freebsd1*)
 
15295
  dynamic_linker=no
 
15296
  ;;
 
15297
 
 
15298
kfreebsd*-gnu)
 
15299
  version_type=linux
 
15300
  need_lib_prefix=no
 
15301
  need_version=no
 
15302
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15303
  soname_spec='${libname}${release}${shared_ext}$major'
 
15304
  shlibpath_var=LD_LIBRARY_PATH
 
15305
  shlibpath_overrides_runpath=no
 
15306
  hardcode_into_libs=yes
 
15307
  dynamic_linker='GNU ld.so'
 
15308
  ;;
 
15309
 
 
15310
freebsd* | dragonfly*)
 
15311
  # DragonFly does not have aout.  When/if they implement a new
 
15312
  # versioning mechanism, adjust this.
 
15313
  if test -x /usr/bin/objformat; then
 
15314
    objformat=`/usr/bin/objformat`
 
15315
  else
 
15316
    case $host_os in
 
15317
    freebsd[123]*) objformat=aout ;;
 
15318
    *) objformat=elf ;;
 
15319
    esac
 
15320
  fi
 
15321
  version_type=freebsd-$objformat
 
15322
  case $version_type in
 
15323
    freebsd-elf*)
 
15324
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15325
      need_version=no
 
15326
      need_lib_prefix=no
 
15327
      ;;
 
15328
    freebsd-*)
 
15329
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
15330
      need_version=yes
 
15331
      ;;
 
15332
  esac
 
15333
  shlibpath_var=LD_LIBRARY_PATH
 
15334
  case $host_os in
 
15335
  freebsd2*)
 
15336
    shlibpath_overrides_runpath=yes
 
15337
    ;;
 
15338
  freebsd3.[01]* | freebsdelf3.[01]*)
 
15339
    shlibpath_overrides_runpath=yes
 
15340
    hardcode_into_libs=yes
 
15341
    ;;
 
15342
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
15343
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
15344
    shlibpath_overrides_runpath=no
 
15345
    hardcode_into_libs=yes
 
15346
    ;;
 
15347
  freebsd*) # from 4.6 on
 
15348
    shlibpath_overrides_runpath=yes
 
15349
    hardcode_into_libs=yes
 
15350
    ;;
 
15351
  esac
 
15352
  ;;
 
15353
 
 
15354
gnu*)
 
15355
  version_type=linux
 
15356
  need_lib_prefix=no
 
15357
  need_version=no
 
15358
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
15359
  soname_spec='${libname}${release}${shared_ext}$major'
 
15360
  shlibpath_var=LD_LIBRARY_PATH
 
15361
  hardcode_into_libs=yes
 
15362
  ;;
 
15363
 
 
15364
hpux9* | hpux10* | hpux11*)
 
15365
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
15366
  # link against other versions.
 
15367
  version_type=sunos
 
15368
  need_lib_prefix=no
 
15369
  need_version=no
 
15370
  case $host_cpu in
 
15371
  ia64*)
 
15372
    shrext_cmds='.so'
 
15373
    hardcode_into_libs=yes
 
15374
    dynamic_linker="$host_os dld.so"
 
15375
    shlibpath_var=LD_LIBRARY_PATH
 
15376
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
15377
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15378
    soname_spec='${libname}${release}${shared_ext}$major'
 
15379
    if test "X$HPUX_IA64_MODE" = X32; then
 
15380
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
15381
    else
 
15382
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
15383
    fi
 
15384
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
15385
    ;;
 
15386
   hppa*64*)
 
15387
     shrext_cmds='.sl'
 
15388
     hardcode_into_libs=yes
 
15389
     dynamic_linker="$host_os dld.sl"
 
15390
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
15391
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
15392
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15393
     soname_spec='${libname}${release}${shared_ext}$major'
 
15394
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
15395
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
15396
     ;;
 
15397
   *)
 
15398
    shrext_cmds='.sl'
 
15399
    dynamic_linker="$host_os dld.sl"
 
15400
    shlibpath_var=SHLIB_PATH
 
15401
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
15402
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15403
    soname_spec='${libname}${release}${shared_ext}$major'
 
15404
    ;;
 
15405
  esac
 
15406
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
15407
  postinstall_cmds='chmod 555 $lib'
 
15408
  ;;
 
15409
 
 
15410
interix3*)
 
15411
  version_type=linux
 
15412
  need_lib_prefix=no
 
15413
  need_version=no
 
15414
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15415
  soname_spec='${libname}${release}${shared_ext}$major'
 
15416
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
15417
  shlibpath_var=LD_LIBRARY_PATH
 
15418
  shlibpath_overrides_runpath=no
 
15419
  hardcode_into_libs=yes
 
15420
  ;;
 
15421
 
 
15422
irix5* | irix6* | nonstopux*)
 
15423
  case $host_os in
 
15424
    nonstopux*) version_type=nonstopux ;;
 
15425
    *)
 
15426
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
15427
                version_type=linux
 
15428
        else
 
15429
                version_type=irix
 
15430
        fi ;;
 
15431
  esac
 
15432
  need_lib_prefix=no
 
15433
  need_version=no
 
15434
  soname_spec='${libname}${release}${shared_ext}$major'
 
15435
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15436
  case $host_os in
 
15437
  irix5* | nonstopux*)
 
15438
    libsuff= shlibsuff=
 
15439
    ;;
 
15440
  *)
 
15441
    case $LD in # libtool.m4 will add one of these switches to LD
 
15442
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
15443
      libsuff= shlibsuff= libmagic=32-bit;;
 
15444
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
15445
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
15446
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
15447
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
15448
    *) libsuff= shlibsuff= libmagic=never-match;;
 
15449
    esac
 
15450
    ;;
 
15451
  esac
 
15452
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
15453
  shlibpath_overrides_runpath=no
 
15454
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
15455
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
15456
  hardcode_into_libs=yes
 
15457
  ;;
 
15458
 
 
15459
# No shared lib support for Linux oldld, aout, or coff.
 
15460
linux*oldld* | linux*aout* | linux*coff*)
 
15461
  dynamic_linker=no
 
15462
  ;;
 
15463
 
 
15464
# This must be Linux ELF.
 
15465
linux*)
 
15466
  version_type=linux
 
15467
  need_lib_prefix=no
 
15468
  need_version=no
 
15469
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15470
  soname_spec='${libname}${release}${shared_ext}$major'
 
15471
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
15472
  shlibpath_var=LD_LIBRARY_PATH
 
15473
  shlibpath_overrides_runpath=no
 
15474
  # This implies no fast_install, which is unacceptable.
 
15475
  # Some rework will be needed to allow for fast_install
 
15476
  # before this can be enabled.
 
15477
  hardcode_into_libs=yes
 
15478
 
 
15479
  # Append ld.so.conf contents to the search path
 
15480
  if test -f /etc/ld.so.conf; then
 
15481
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
15482
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
15483
  fi
 
15484
 
 
15485
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
15486
  # powerpc, because MkLinux only supported shared libraries with the
 
15487
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
15488
  # most powerpc-linux boxes support dynamic linking these days and
 
15489
  # people can always --disable-shared, the test was removed, and we
 
15490
  # assume the GNU/Linux dynamic linker is in use.
 
15491
  dynamic_linker='GNU/Linux ld.so'
 
15492
  ;;
 
15493
 
 
15494
knetbsd*-gnu)
 
15495
  version_type=linux
 
15496
  need_lib_prefix=no
 
15497
  need_version=no
 
15498
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15499
  soname_spec='${libname}${release}${shared_ext}$major'
 
15500
  shlibpath_var=LD_LIBRARY_PATH
 
15501
  shlibpath_overrides_runpath=no
 
15502
  hardcode_into_libs=yes
 
15503
  dynamic_linker='GNU ld.so'
 
15504
  ;;
 
15505
 
 
15506
netbsd*)
 
15507
  version_type=sunos
 
15508
  need_lib_prefix=no
 
15509
  need_version=no
 
15510
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15511
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15512
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
15513
    dynamic_linker='NetBSD (a.out) ld.so'
 
15514
  else
 
15515
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15516
    soname_spec='${libname}${release}${shared_ext}$major'
 
15517
    dynamic_linker='NetBSD ld.elf_so'
 
15518
  fi
 
15519
  shlibpath_var=LD_LIBRARY_PATH
 
15520
  shlibpath_overrides_runpath=yes
 
15521
  hardcode_into_libs=yes
 
15522
  ;;
 
15523
 
 
15524
newsos6)
 
15525
  version_type=linux
 
15526
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15527
  shlibpath_var=LD_LIBRARY_PATH
 
15528
  shlibpath_overrides_runpath=yes
 
15529
  ;;
 
15530
 
 
15531
nto-qnx*)
 
15532
  version_type=linux
 
15533
  need_lib_prefix=no
 
15534
  need_version=no
 
15535
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15536
  soname_spec='${libname}${release}${shared_ext}$major'
 
15537
  shlibpath_var=LD_LIBRARY_PATH
 
15538
  shlibpath_overrides_runpath=yes
 
15539
  ;;
 
15540
 
 
15541
openbsd*)
 
15542
  version_type=sunos
 
15543
  sys_lib_dlsearch_path_spec="/usr/lib"
 
15544
  need_lib_prefix=no
 
15545
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
15546
  case $host_os in
 
15547
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
15548
    *)                         need_version=no  ;;
 
15549
  esac
 
15550
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15551
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
15552
  shlibpath_var=LD_LIBRARY_PATH
 
15553
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
15554
    case $host_os in
 
15555
      openbsd2.[89] | openbsd2.[89].*)
 
15556
        shlibpath_overrides_runpath=no
 
15557
        ;;
 
15558
      *)
 
15559
        shlibpath_overrides_runpath=yes
 
15560
        ;;
 
15561
      esac
 
15562
  else
 
15563
    shlibpath_overrides_runpath=yes
 
15564
  fi
 
15565
  ;;
 
15566
 
 
15567
os2*)
 
15568
  libname_spec='$name'
 
15569
  shrext_cmds=".dll"
 
15570
  need_lib_prefix=no
 
15571
  library_names_spec='$libname${shared_ext} $libname.a'
 
15572
  dynamic_linker='OS/2 ld.exe'
 
15573
  shlibpath_var=LIBPATH
 
15574
  ;;
 
15575
 
 
15576
osf3* | osf4* | osf5*)
 
15577
  version_type=osf
 
15578
  need_lib_prefix=no
 
15579
  need_version=no
 
15580
  soname_spec='${libname}${release}${shared_ext}$major'
 
15581
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15582
  shlibpath_var=LD_LIBRARY_PATH
 
15583
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
15584
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
15585
  ;;
 
15586
 
 
15587
solaris*)
 
15588
  version_type=linux
 
15589
  need_lib_prefix=no
 
15590
  need_version=no
 
15591
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15592
  soname_spec='${libname}${release}${shared_ext}$major'
 
15593
  shlibpath_var=LD_LIBRARY_PATH
 
15594
  shlibpath_overrides_runpath=yes
 
15595
  hardcode_into_libs=yes
 
15596
  # ldd complains unless libraries are executable
 
15597
  postinstall_cmds='chmod +x $lib'
 
15598
  ;;
 
15599
 
 
15600
sunos4*)
 
15601
  version_type=sunos
 
15602
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15603
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
15604
  shlibpath_var=LD_LIBRARY_PATH
 
15605
  shlibpath_overrides_runpath=yes
 
15606
  if test "$with_gnu_ld" = yes; then
 
15607
    need_lib_prefix=no
 
15608
  fi
 
15609
  need_version=yes
 
15610
  ;;
 
15611
 
 
15612
sysv4 | sysv4.3*)
 
15613
  version_type=linux
 
15614
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15615
  soname_spec='${libname}${release}${shared_ext}$major'
 
15616
  shlibpath_var=LD_LIBRARY_PATH
 
15617
  case $host_vendor in
 
15618
    sni)
 
15619
      shlibpath_overrides_runpath=no
 
15620
      need_lib_prefix=no
 
15621
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
15622
      runpath_var=LD_RUN_PATH
 
15623
      ;;
 
15624
    siemens)
 
15625
      need_lib_prefix=no
 
15626
      ;;
 
15627
    motorola)
 
15628
      need_lib_prefix=no
 
15629
      need_version=no
 
15630
      shlibpath_overrides_runpath=no
 
15631
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
15632
      ;;
 
15633
  esac
 
15634
  ;;
 
15635
 
 
15636
sysv4*MP*)
 
15637
  if test -d /usr/nec ;then
 
15638
    version_type=linux
 
15639
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
15640
    soname_spec='$libname${shared_ext}.$major'
 
15641
    shlibpath_var=LD_LIBRARY_PATH
 
15642
  fi
 
15643
  ;;
 
15644
 
 
15645
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
15646
  version_type=freebsd-elf
 
15647
  need_lib_prefix=no
 
15648
  need_version=no
 
15649
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15650
  soname_spec='${libname}${release}${shared_ext}$major'
 
15651
  shlibpath_var=LD_LIBRARY_PATH
 
15652
  hardcode_into_libs=yes
 
15653
  if test "$with_gnu_ld" = yes; then
 
15654
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
15655
    shlibpath_overrides_runpath=no
 
15656
  else
 
15657
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
15658
    shlibpath_overrides_runpath=yes
 
15659
    case $host_os in
 
15660
      sco3.2v5*)
 
15661
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
15662
        ;;
 
15663
    esac
 
15664
  fi
 
15665
  sys_lib_dlsearch_path_spec='/usr/lib'
 
15666
  ;;
 
15667
 
 
15668
uts4*)
 
15669
  version_type=linux
 
15670
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15671
  soname_spec='${libname}${release}${shared_ext}$major'
 
15672
  shlibpath_var=LD_LIBRARY_PATH
 
15673
  ;;
 
15674
 
 
15675
*)
 
15676
  dynamic_linker=no
 
15677
  ;;
 
15678
esac
 
15679
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
15680
echo "${ECHO_T}$dynamic_linker" >&6; }
 
15681
test "$dynamic_linker" = no && can_build_shared=no
 
15682
 
 
15683
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
15684
if test "$GCC" = yes; then
 
15685
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
15686
fi
 
15687
 
 
15688
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
15689
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
15690
hardcode_action_F77=
 
15691
if test -n "$hardcode_libdir_flag_spec_F77" || \
 
15692
   test -n "$runpath_var_F77" || \
 
15693
   test "X$hardcode_automatic_F77" = "Xyes" ; then
 
15694
 
 
15695
  # We can hardcode non-existant directories.
 
15696
  if test "$hardcode_direct_F77" != no &&
 
15697
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
15698
     # have to relink, otherwise we might link with an installed library
 
15699
     # when we should be linking with a yet-to-be-installed one
 
15700
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
 
15701
     test "$hardcode_minus_L_F77" != no; then
 
15702
    # Linking always hardcodes the temporary library directory.
 
15703
    hardcode_action_F77=relink
 
15704
  else
 
15705
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
15706
    hardcode_action_F77=immediate
 
15707
  fi
 
15708
else
 
15709
  # We cannot hardcode anything, or else we can only hardcode existing
 
15710
  # directories.
 
15711
  hardcode_action_F77=unsupported
 
15712
fi
 
15713
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
15714
echo "${ECHO_T}$hardcode_action_F77" >&6; }
 
15715
 
 
15716
if test "$hardcode_action_F77" = relink; then
 
15717
  # Fast installation is not supported
 
15718
  enable_fast_install=no
 
15719
elif test "$shlibpath_overrides_runpath" = yes ||
 
15720
     test "$enable_shared" = no; then
 
15721
  # Fast installation is not necessary
 
15722
  enable_fast_install=needless
 
15723
fi
 
15724
 
 
15725
 
 
15726
# The else clause should only fire when bootstrapping the
 
15727
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
15728
# with your package, and you will get complaints that there are
 
15729
# no rules to generate ltmain.sh.
 
15730
if test -f "$ltmain"; then
 
15731
  # See if we are running on zsh, and set the options which allow our commands through
 
15732
  # without removal of \ escapes.
 
15733
  if test -n "${ZSH_VERSION+set}" ; then
 
15734
    setopt NO_GLOB_SUBST
 
15735
  fi
 
15736
  # Now quote all the things that may contain metacharacters while being
 
15737
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
15738
  # variables and quote the copies for generation of the libtool script.
 
15739
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
15740
    SED SHELL STRIP \
 
15741
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
15742
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
15743
    deplibs_check_method reload_flag reload_cmds need_locks \
 
15744
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
15745
    lt_cv_sys_global_symbol_to_c_name_address \
 
15746
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
15747
    old_postinstall_cmds old_postuninstall_cmds \
 
15748
    compiler_F77 \
 
15749
    CC_F77 \
 
15750
    LD_F77 \
 
15751
    lt_prog_compiler_wl_F77 \
 
15752
    lt_prog_compiler_pic_F77 \
 
15753
    lt_prog_compiler_static_F77 \
 
15754
    lt_prog_compiler_no_builtin_flag_F77 \
 
15755
    export_dynamic_flag_spec_F77 \
 
15756
    thread_safe_flag_spec_F77 \
 
15757
    whole_archive_flag_spec_F77 \
 
15758
    enable_shared_with_static_runtimes_F77 \
 
15759
    old_archive_cmds_F77 \
 
15760
    old_archive_from_new_cmds_F77 \
 
15761
    predep_objects_F77 \
 
15762
    postdep_objects_F77 \
 
15763
    predeps_F77 \
 
15764
    postdeps_F77 \
 
15765
    compiler_lib_search_path_F77 \
 
15766
    archive_cmds_F77 \
 
15767
    archive_expsym_cmds_F77 \
 
15768
    postinstall_cmds_F77 \
 
15769
    postuninstall_cmds_F77 \
 
15770
    old_archive_from_expsyms_cmds_F77 \
 
15771
    allow_undefined_flag_F77 \
 
15772
    no_undefined_flag_F77 \
 
15773
    export_symbols_cmds_F77 \
 
15774
    hardcode_libdir_flag_spec_F77 \
 
15775
    hardcode_libdir_flag_spec_ld_F77 \
 
15776
    hardcode_libdir_separator_F77 \
 
15777
    hardcode_automatic_F77 \
 
15778
    module_cmds_F77 \
 
15779
    module_expsym_cmds_F77 \
 
15780
    lt_cv_prog_compiler_c_o_F77 \
 
15781
    exclude_expsyms_F77 \
 
15782
    include_expsyms_F77; do
 
15783
 
 
15784
    case $var in
 
15785
    old_archive_cmds_F77 | \
 
15786
    old_archive_from_new_cmds_F77 | \
 
15787
    archive_cmds_F77 | \
 
15788
    archive_expsym_cmds_F77 | \
 
15789
    module_cmds_F77 | \
 
15790
    module_expsym_cmds_F77 | \
 
15791
    old_archive_from_expsyms_cmds_F77 | \
 
15792
    export_symbols_cmds_F77 | \
 
15793
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
15794
    postinstall_cmds | postuninstall_cmds | \
 
15795
    old_postinstall_cmds | old_postuninstall_cmds | \
 
15796
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
15797
      # Double-quote double-evaled strings.
 
15798
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
15799
      ;;
 
15800
    *)
 
15801
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
15802
      ;;
 
15803
    esac
 
15804
  done
 
15805
 
 
15806
  case $lt_echo in
 
15807
  *'\$0 --fallback-echo"')
 
15808
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
15809
    ;;
 
15810
  esac
 
15811
 
 
15812
cfgfile="$ofile"
 
15813
 
 
15814
  cat <<__EOF__ >> "$cfgfile"
 
15815
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
15816
 
 
15817
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
15818
 
 
15819
# Shell to use when invoking shell scripts.
 
15820
SHELL=$lt_SHELL
 
15821
 
 
15822
# Whether or not to build shared libraries.
 
15823
build_libtool_libs=$enable_shared
 
15824
 
 
15825
# Whether or not to build static libraries.
 
15826
build_old_libs=$enable_static
 
15827
 
 
15828
# Whether or not to add -lc for building shared libraries.
 
15829
build_libtool_need_lc=$archive_cmds_need_lc_F77
 
15830
 
 
15831
# Whether or not to disallow shared libs when runtime libs are static
 
15832
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
 
15833
 
 
15834
# Whether or not to optimize for fast installation.
 
15835
fast_install=$enable_fast_install
 
15836
 
 
15837
# The host system.
 
15838
host_alias=$host_alias
 
15839
host=$host
 
15840
host_os=$host_os
 
15841
 
 
15842
# The build system.
 
15843
build_alias=$build_alias
 
15844
build=$build
 
15845
build_os=$build_os
 
15846
 
 
15847
# An echo program that does not interpret backslashes.
 
15848
echo=$lt_echo
 
15849
 
 
15850
# The archiver.
 
15851
AR=$lt_AR
 
15852
AR_FLAGS=$lt_AR_FLAGS
 
15853
 
 
15854
# A C compiler.
 
15855
LTCC=$lt_LTCC
 
15856
 
 
15857
# LTCC compiler flags.
 
15858
LTCFLAGS=$lt_LTCFLAGS
 
15859
 
 
15860
# A language-specific compiler.
 
15861
CC=$lt_compiler_F77
 
15862
 
 
15863
# Is the compiler the GNU C compiler?
 
15864
with_gcc=$GCC_F77
 
15865
 
 
15866
# An ERE matcher.
 
15867
EGREP=$lt_EGREP
 
15868
 
 
15869
# The linker used to build libraries.
 
15870
LD=$lt_LD_F77
 
15871
 
 
15872
# Whether we need hard or soft links.
 
15873
LN_S=$lt_LN_S
 
15874
 
 
15875
# A BSD-compatible nm program.
 
15876
NM=$lt_NM
 
15877
 
 
15878
# A symbol stripping program
 
15879
STRIP=$lt_STRIP
 
15880
 
 
15881
# Used to examine libraries when file_magic_cmd begins "file"
 
15882
MAGIC_CMD=$MAGIC_CMD
 
15883
 
 
15884
# Used on cygwin: DLL creation program.
 
15885
DLLTOOL="$DLLTOOL"
 
15886
 
 
15887
# Used on cygwin: object dumper.
 
15888
OBJDUMP="$OBJDUMP"
 
15889
 
 
15890
# Used on cygwin: assembler.
 
15891
AS="$AS"
 
15892
 
 
15893
# The name of the directory that contains temporary libtool files.
 
15894
objdir=$objdir
 
15895
 
 
15896
# How to create reloadable object files.
 
15897
reload_flag=$lt_reload_flag
 
15898
reload_cmds=$lt_reload_cmds
 
15899
 
 
15900
# How to pass a linker flag through the compiler.
 
15901
wl=$lt_lt_prog_compiler_wl_F77
 
15902
 
 
15903
# Object file suffix (normally "o").
 
15904
objext="$ac_objext"
 
15905
 
 
15906
# Old archive suffix (normally "a").
 
15907
libext="$libext"
 
15908
 
 
15909
# Shared library suffix (normally ".so").
 
15910
shrext_cmds='$shrext_cmds'
 
15911
 
 
15912
# Executable file suffix (normally "").
 
15913
exeext="$exeext"
 
15914
 
 
15915
# Additional compiler flags for building library objects.
 
15916
pic_flag=$lt_lt_prog_compiler_pic_F77
 
15917
pic_mode=$pic_mode
 
15918
 
 
15919
# What is the maximum length of a command?
 
15920
max_cmd_len=$lt_cv_sys_max_cmd_len
 
15921
 
 
15922
# Does compiler simultaneously support -c and -o options?
 
15923
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
 
15924
 
 
15925
# Must we lock files when doing compilation?
 
15926
need_locks=$lt_need_locks
 
15927
 
 
15928
# Do we need the lib prefix for modules?
 
15929
need_lib_prefix=$need_lib_prefix
 
15930
 
 
15931
# Do we need a version for libraries?
 
15932
need_version=$need_version
 
15933
 
 
15934
# Whether dlopen is supported.
 
15935
dlopen_support=$enable_dlopen
 
15936
 
 
15937
# Whether dlopen of programs is supported.
 
15938
dlopen_self=$enable_dlopen_self
 
15939
 
 
15940
# Whether dlopen of statically linked programs is supported.
 
15941
dlopen_self_static=$enable_dlopen_self_static
 
15942
 
 
15943
# Compiler flag to prevent dynamic linking.
 
15944
link_static_flag=$lt_lt_prog_compiler_static_F77
 
15945
 
 
15946
# Compiler flag to turn off builtin functions.
 
15947
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
 
15948
 
 
15949
# Compiler flag to allow reflexive dlopens.
 
15950
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
 
15951
 
 
15952
# Compiler flag to generate shared objects directly from archives.
 
15953
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
 
15954
 
 
15955
# Compiler flag to generate thread-safe objects.
 
15956
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
 
15957
 
 
15958
# Library versioning type.
 
15959
version_type=$version_type
 
15960
 
 
15961
# Format of library name prefix.
 
15962
libname_spec=$lt_libname_spec
 
15963
 
 
15964
# List of archive names.  First name is the real one, the rest are links.
 
15965
# The last name is the one that the linker finds with -lNAME.
 
15966
library_names_spec=$lt_library_names_spec
 
15967
 
 
15968
# The coded name of the library, if different from the real name.
 
15969
soname_spec=$lt_soname_spec
 
15970
 
 
15971
# Commands used to build and install an old-style archive.
 
15972
RANLIB=$lt_RANLIB
 
15973
old_archive_cmds=$lt_old_archive_cmds_F77
 
15974
old_postinstall_cmds=$lt_old_postinstall_cmds
 
15975
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
15976
 
 
15977
# Create an old-style archive from a shared archive.
 
15978
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
 
15979
 
 
15980
# Create a temporary old-style archive to link instead of a shared archive.
 
15981
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
 
15982
 
 
15983
# Commands used to build and install a shared archive.
 
15984
archive_cmds=$lt_archive_cmds_F77
 
15985
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
 
15986
postinstall_cmds=$lt_postinstall_cmds
 
15987
postuninstall_cmds=$lt_postuninstall_cmds
 
15988
 
 
15989
# Commands used to build a loadable module (assumed same as above if empty)
 
15990
module_cmds=$lt_module_cmds_F77
 
15991
module_expsym_cmds=$lt_module_expsym_cmds_F77
 
15992
 
 
15993
# Commands to strip libraries.
 
15994
old_striplib=$lt_old_striplib
 
15995
striplib=$lt_striplib
 
15996
 
 
15997
# Dependencies to place before the objects being linked to create a
 
15998
# shared library.
 
15999
predep_objects=$lt_predep_objects_F77
 
16000
 
 
16001
# Dependencies to place after the objects being linked to create a
 
16002
# shared library.
 
16003
postdep_objects=$lt_postdep_objects_F77
 
16004
 
 
16005
# Dependencies to place before the objects being linked to create a
 
16006
# shared library.
 
16007
predeps=$lt_predeps_F77
 
16008
 
 
16009
# Dependencies to place after the objects being linked to create a
 
16010
# shared library.
 
16011
postdeps=$lt_postdeps_F77
 
16012
 
 
16013
# The library search path used internally by the compiler when linking
 
16014
# a shared library.
 
16015
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
 
16016
 
 
16017
# Method to check whether dependent libraries are shared objects.
 
16018
deplibs_check_method=$lt_deplibs_check_method
 
16019
 
 
16020
# Command to use when deplibs_check_method == file_magic.
 
16021
file_magic_cmd=$lt_file_magic_cmd
 
16022
 
 
16023
# Flag that allows shared libraries with undefined symbols to be built.
 
16024
allow_undefined_flag=$lt_allow_undefined_flag_F77
 
16025
 
 
16026
# Flag that forces no undefined symbols.
 
16027
no_undefined_flag=$lt_no_undefined_flag_F77
 
16028
 
 
16029
# Commands used to finish a libtool library installation in a directory.
 
16030
finish_cmds=$lt_finish_cmds
 
16031
 
 
16032
# Same as above, but a single script fragment to be evaled but not shown.
 
16033
finish_eval=$lt_finish_eval
 
16034
 
 
16035
# Take the output of nm and produce a listing of raw symbols and C names.
 
16036
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
16037
 
 
16038
# Transform the output of nm in a proper C declaration
 
16039
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
16040
 
 
16041
# Transform the output of nm in a C name address pair
 
16042
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
16043
 
 
16044
# This is the shared library runtime path variable.
 
16045
runpath_var=$runpath_var
 
16046
 
 
16047
# This is the shared library path variable.
 
16048
shlibpath_var=$shlibpath_var
 
16049
 
 
16050
# Is shlibpath searched before the hard-coded library search path?
 
16051
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
16052
 
 
16053
# How to hardcode a shared library path into an executable.
 
16054
hardcode_action=$hardcode_action_F77
 
16055
 
 
16056
# Whether we should hardcode library paths into libraries.
 
16057
hardcode_into_libs=$hardcode_into_libs
 
16058
 
 
16059
# Flag to hardcode \$libdir into a binary during linking.
 
16060
# This must work even if \$libdir does not exist.
 
16061
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
 
16062
 
 
16063
# If ld is used when linking, flag to hardcode \$libdir into
 
16064
# a binary during linking. This must work even if \$libdir does
 
16065
# not exist.
 
16066
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
 
16067
 
 
16068
# Whether we need a single -rpath flag with a separated argument.
 
16069
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
 
16070
 
 
16071
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
16072
# resulting binary.
 
16073
hardcode_direct=$hardcode_direct_F77
 
16074
 
 
16075
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
16076
# resulting binary.
 
16077
hardcode_minus_L=$hardcode_minus_L_F77
 
16078
 
 
16079
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
16080
# the resulting binary.
 
16081
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
 
16082
 
 
16083
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
16084
# and all subsequent libraries and executables linked against it.
 
16085
hardcode_automatic=$hardcode_automatic_F77
 
16086
 
 
16087
# Variables whose values should be saved in libtool wrapper scripts and
 
16088
# restored at relink time.
 
16089
variables_saved_for_relink="$variables_saved_for_relink"
 
16090
 
 
16091
# Whether libtool must link a program against all its dependency libraries.
 
16092
link_all_deplibs=$link_all_deplibs_F77
 
16093
 
 
16094
# Compile-time system search path for libraries
 
16095
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
16096
 
 
16097
# Run-time system search path for libraries
 
16098
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
16099
 
 
16100
# Fix the shell variable \$srcfile for the compiler.
 
16101
fix_srcfile_path="$fix_srcfile_path_F77"
 
16102
 
 
16103
# Set to yes if exported symbols are required.
 
16104
always_export_symbols=$always_export_symbols_F77
 
16105
 
 
16106
# The commands to list exported symbols.
 
16107
export_symbols_cmds=$lt_export_symbols_cmds_F77
 
16108
 
 
16109
# The commands to extract the exported symbol list from a shared archive.
 
16110
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
16111
 
 
16112
# Symbols that should not be listed in the preloaded symbols.
 
16113
exclude_expsyms=$lt_exclude_expsyms_F77
 
16114
 
 
16115
# Symbols that must always be exported.
 
16116
include_expsyms=$lt_include_expsyms_F77
 
16117
 
 
16118
# ### END LIBTOOL TAG CONFIG: $tagname
 
16119
 
 
16120
__EOF__
 
16121
 
 
16122
 
 
16123
else
 
16124
  # If there is no Makefile yet, we rely on a make rule to execute
 
16125
  # `config.status --recheck' to rerun these tests and create the
 
16126
  # libtool script then.
 
16127
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
16128
  if test -f "$ltmain_in"; then
 
16129
    test -f Makefile && make "$ltmain"
 
16130
  fi
 
16131
fi
 
16132
 
 
16133
 
 
16134
ac_ext=c
 
16135
ac_cpp='$CPP $CPPFLAGS'
 
16136
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
16137
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
16138
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
16139
 
 
16140
CC="$lt_save_CC"
 
16141
 
 
16142
        else
 
16143
          tagname=""
 
16144
        fi
 
16145
        ;;
 
16146
 
 
16147
      GCJ)
 
16148
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
16149
 
 
16150
 
 
16151
# Source file extension for Java test sources.
 
16152
ac_ext=java
 
16153
 
 
16154
# Object file extension for compiled Java test sources.
 
16155
objext=o
 
16156
objext_GCJ=$objext
 
16157
 
 
16158
# Code to be used in simple compile tests
 
16159
lt_simple_compile_test_code="class foo {}\n"
 
16160
 
 
16161
# Code to be used in simple link tests
 
16162
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
 
16163
 
 
16164
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
16165
 
 
16166
# If no C compiler was specified, use CC.
 
16167
LTCC=${LTCC-"$CC"}
 
16168
 
 
16169
# If no C compiler flags were specified, use CFLAGS.
 
16170
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
16171
 
 
16172
# Allow CC to be a program name with arguments.
 
16173
compiler=$CC
 
16174
 
 
16175
 
 
16176
# save warnings/boilerplate of simple test code
 
16177
ac_outfile=conftest.$ac_objext
 
16178
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
16179
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
16180
_lt_compiler_boilerplate=`cat conftest.err`
 
16181
$rm conftest*
 
16182
 
 
16183
ac_outfile=conftest.$ac_objext
 
16184
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
16185
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
16186
_lt_linker_boilerplate=`cat conftest.err`
 
16187
$rm conftest*
 
16188
 
 
16189
 
 
16190
# Allow CC to be a program name with arguments.
 
16191
lt_save_CC="$CC"
 
16192
CC=${GCJ-"gcj"}
 
16193
compiler=$CC
 
16194
compiler_GCJ=$CC
 
16195
for cc_temp in $compiler""; do
 
16196
  case $cc_temp in
 
16197
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
16198
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
16199
    \-*) ;;
 
16200
    *) break;;
 
16201
  esac
 
16202
done
 
16203
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
16204
 
 
16205
 
 
16206
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
16207
archive_cmds_need_lc_GCJ=no
 
16208
 
 
16209
old_archive_cmds_GCJ=$old_archive_cmds
 
16210
 
 
16211
 
 
16212
lt_prog_compiler_no_builtin_flag_GCJ=
 
16213
 
 
16214
if test "$GCC" = yes; then
 
16215
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
 
16216
 
 
16217
 
 
16218
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
16219
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
 
16220
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
16221
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16222
else
 
16223
  lt_cv_prog_compiler_rtti_exceptions=no
 
16224
  ac_outfile=conftest.$ac_objext
 
16225
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16226
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
16227
   # Insert the option either (1) after the last *FLAGS variable, or
 
16228
   # (2) before a word containing "conftest.", or (3) at the end.
 
16229
   # Note that $ac_compile itself does not contain backslashes and begins
 
16230
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16231
   # The option is referenced via a variable to avoid confusing sed.
 
16232
   lt_compile=`echo "$ac_compile" | $SED \
 
16233
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
16234
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16235
   -e 's:$: $lt_compiler_flag:'`
 
16236
   (eval echo "\"\$as_me:16236: $lt_compile\"" >&5)
 
16237
   (eval "$lt_compile" 2>conftest.err)
 
16238
   ac_status=$?
 
16239
   cat conftest.err >&5
 
16240
   echo "$as_me:16240: \$? = $ac_status" >&5
 
16241
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
16242
     # The compiler can only warn and ignore the option if not recognized
 
16243
     # So say no if there are warnings other than the usual output.
 
16244
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
16245
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
16246
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
16247
       lt_cv_prog_compiler_rtti_exceptions=yes
 
16248
     fi
 
16249
   fi
 
16250
   $rm conftest*
 
16251
 
 
16252
fi
 
16253
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
16254
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
 
16255
 
 
16256
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
16257
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
 
16258
else
 
16259
    :
 
16260
fi
 
16261
 
 
16262
fi
 
16263
 
 
16264
lt_prog_compiler_wl_GCJ=
 
16265
lt_prog_compiler_pic_GCJ=
 
16266
lt_prog_compiler_static_GCJ=
 
16267
 
 
16268
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
16269
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
 
16270
 
 
16271
  if test "$GCC" = yes; then
 
16272
    lt_prog_compiler_wl_GCJ='-Wl,'
 
16273
    lt_prog_compiler_static_GCJ='-static'
 
16274
 
 
16275
    case $host_os in
 
16276
      aix*)
 
16277
      # All AIX code is PIC.
 
16278
      if test "$host_cpu" = ia64; then
 
16279
        # AIX 5 now supports IA64 processor
 
16280
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16281
      fi
 
16282
      ;;
 
16283
 
 
16284
    amigaos*)
 
16285
      # FIXME: we need at least 68020 code to build shared libraries, but
 
16286
      # adding the `-m68020' flag to GCC prevents building anything better,
 
16287
      # like `-m68040'.
 
16288
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
 
16289
      ;;
 
16290
 
 
16291
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
16292
      # PIC is the default for these OSes.
 
16293
      ;;
 
16294
 
 
16295
    mingw* | pw32* | os2*)
 
16296
      # This hack is so that the source file can tell whether it is being
 
16297
      # built for inclusion in a dll (and should export symbols for example).
 
16298
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
16299
      ;;
 
16300
 
 
16301
    darwin* | rhapsody*)
 
16302
      # PIC is the default on this platform
 
16303
      # Common symbols not allowed in MH_DYLIB files
 
16304
      lt_prog_compiler_pic_GCJ='-fno-common'
 
16305
      ;;
 
16306
 
 
16307
    interix3*)
 
16308
      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
 
16309
      # Instead, we relocate shared libraries at runtime.
 
16310
      ;;
 
16311
 
 
16312
    msdosdjgpp*)
 
16313
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
16314
      # on systems that don't support them.
 
16315
      lt_prog_compiler_can_build_shared_GCJ=no
 
16316
      enable_shared=no
 
16317
      ;;
 
16318
 
 
16319
    sysv4*MP*)
 
16320
      if test -d /usr/nec; then
 
16321
        lt_prog_compiler_pic_GCJ=-Kconform_pic
 
16322
      fi
 
16323
      ;;
 
16324
 
 
16325
    hpux*)
 
16326
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
16327
      # not for PA HP-UX.
 
16328
      case $host_cpu in
 
16329
      hppa*64*|ia64*)
 
16330
        # +Z the default
 
16331
        ;;
 
16332
      *)
 
16333
        lt_prog_compiler_pic_GCJ='-fPIC'
 
16334
        ;;
 
16335
      esac
 
16336
      ;;
 
16337
 
 
16338
    *)
 
16339
      lt_prog_compiler_pic_GCJ='-fPIC'
 
16340
      ;;
 
16341
    esac
 
16342
  else
 
16343
    # PORTME Check for flag to pass linker flags through the system compiler.
 
16344
    case $host_os in
 
16345
    aix*)
 
16346
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16347
      if test "$host_cpu" = ia64; then
 
16348
        # AIX 5 now supports IA64 processor
 
16349
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16350
      else
 
16351
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
 
16352
      fi
 
16353
      ;;
 
16354
      darwin*)
 
16355
        # PIC is the default on this platform
 
16356
        # Common symbols not allowed in MH_DYLIB files
 
16357
       case $cc_basename in
 
16358
         xlc*)
 
16359
         lt_prog_compiler_pic_GCJ='-qnocommon'
 
16360
         lt_prog_compiler_wl_GCJ='-Wl,'
 
16361
         ;;
 
16362
       esac
 
16363
       ;;
 
16364
 
 
16365
    mingw* | pw32* | os2*)
 
16366
      # This hack is so that the source file can tell whether it is being
 
16367
      # built for inclusion in a dll (and should export symbols for example).
 
16368
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
16369
      ;;
 
16370
 
 
16371
    hpux9* | hpux10* | hpux11*)
 
16372
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16373
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
16374
      # not for PA HP-UX.
 
16375
      case $host_cpu in
 
16376
      hppa*64*|ia64*)
 
16377
        # +Z the default
 
16378
        ;;
 
16379
      *)
 
16380
        lt_prog_compiler_pic_GCJ='+Z'
 
16381
        ;;
 
16382
      esac
 
16383
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
16384
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
 
16385
      ;;
 
16386
 
 
16387
    irix5* | irix6* | nonstopux*)
 
16388
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16389
      # PIC (with -KPIC) is the default.
 
16390
      lt_prog_compiler_static_GCJ='-non_shared'
 
16391
      ;;
 
16392
 
 
16393
    newsos6)
 
16394
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16395
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16396
      ;;
 
16397
 
 
16398
    linux*)
 
16399
      case $cc_basename in
 
16400
      icc* | ecc*)
 
16401
        lt_prog_compiler_wl_GCJ='-Wl,'
 
16402
        lt_prog_compiler_pic_GCJ='-KPIC'
 
16403
        lt_prog_compiler_static_GCJ='-static'
 
16404
        ;;
 
16405
      pgcc* | pgf77* | pgf90* | pgf95*)
 
16406
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
16407
        # which looks to be a dead project)
 
16408
        lt_prog_compiler_wl_GCJ='-Wl,'
 
16409
        lt_prog_compiler_pic_GCJ='-fpic'
 
16410
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16411
        ;;
 
16412
      ccc*)
 
16413
        lt_prog_compiler_wl_GCJ='-Wl,'
 
16414
        # All Alpha code is PIC.
 
16415
        lt_prog_compiler_static_GCJ='-non_shared'
 
16416
        ;;
 
16417
      esac
 
16418
      ;;
 
16419
 
 
16420
    osf3* | osf4* | osf5*)
 
16421
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16422
      # All OSF/1 code is PIC.
 
16423
      lt_prog_compiler_static_GCJ='-non_shared'
 
16424
      ;;
 
16425
 
 
16426
    solaris*)
 
16427
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16428
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16429
      case $cc_basename in
 
16430
      f77* | f90* | f95*)
 
16431
        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
 
16432
      *)
 
16433
        lt_prog_compiler_wl_GCJ='-Wl,';;
 
16434
      esac
 
16435
      ;;
 
16436
 
 
16437
    sunos4*)
 
16438
      lt_prog_compiler_wl_GCJ='-Qoption ld '
 
16439
      lt_prog_compiler_pic_GCJ='-PIC'
 
16440
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16441
      ;;
 
16442
 
 
16443
    sysv4 | sysv4.2uw2* | sysv4.3*)
 
16444
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16445
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16446
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16447
      ;;
 
16448
 
 
16449
    sysv4*MP*)
 
16450
      if test -d /usr/nec ;then
 
16451
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
 
16452
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16453
      fi
 
16454
      ;;
 
16455
 
 
16456
    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
 
16457
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16458
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16459
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16460
      ;;
 
16461
 
 
16462
    unicos*)
 
16463
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16464
      lt_prog_compiler_can_build_shared_GCJ=no
 
16465
      ;;
 
16466
 
 
16467
    uts4*)
 
16468
      lt_prog_compiler_pic_GCJ='-pic'
 
16469
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16470
      ;;
 
16471
 
 
16472
    *)
 
16473
      lt_prog_compiler_can_build_shared_GCJ=no
 
16474
      ;;
 
16475
    esac
 
16476
  fi
 
16477
 
 
16478
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
16479
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
 
16480
 
 
16481
#
 
16482
# Check to make sure the PIC flag actually works.
 
16483
#
 
16484
if test -n "$lt_prog_compiler_pic_GCJ"; then
 
16485
 
 
16486
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
16487
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
 
16488
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
 
16489
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16490
else
 
16491
  lt_prog_compiler_pic_works_GCJ=no
 
16492
  ac_outfile=conftest.$ac_objext
 
16493
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16494
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
 
16495
   # Insert the option either (1) after the last *FLAGS variable, or
 
16496
   # (2) before a word containing "conftest.", or (3) at the end.
 
16497
   # Note that $ac_compile itself does not contain backslashes and begins
 
16498
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16499
   # The option is referenced via a variable to avoid confusing sed.
 
16500
   lt_compile=`echo "$ac_compile" | $SED \
 
16501
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
16502
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16503
   -e 's:$: $lt_compiler_flag:'`
 
16504
   (eval echo "\"\$as_me:16504: $lt_compile\"" >&5)
 
16505
   (eval "$lt_compile" 2>conftest.err)
 
16506
   ac_status=$?
 
16507
   cat conftest.err >&5
 
16508
   echo "$as_me:16508: \$? = $ac_status" >&5
 
16509
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
16510
     # The compiler can only warn and ignore the option if not recognized
 
16511
     # So say no if there are warnings other than the usual output.
 
16512
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
 
16513
     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
16514
     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
 
16515
       lt_prog_compiler_pic_works_GCJ=yes
 
16516
     fi
 
16517
   fi
 
16518
   $rm conftest*
 
16519
 
 
16520
fi
 
16521
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
 
16522
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
 
16523
 
 
16524
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
 
16525
    case $lt_prog_compiler_pic_GCJ in
 
16526
     "" | " "*) ;;
 
16527
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
 
16528
     esac
 
16529
else
 
16530
    lt_prog_compiler_pic_GCJ=
 
16531
     lt_prog_compiler_can_build_shared_GCJ=no
 
16532
fi
 
16533
 
 
16534
fi
 
16535
case $host_os in
 
16536
  # For platforms which do not support PIC, -DPIC is meaningless:
 
16537
  *djgpp*)
 
16538
    lt_prog_compiler_pic_GCJ=
 
16539
    ;;
 
16540
  *)
 
16541
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
 
16542
    ;;
 
16543
esac
 
16544
 
 
16545
#
 
16546
# Check to make sure the static flag actually works.
 
16547
#
 
16548
wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
 
16549
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
 
16550
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
 
16551
if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
 
16552
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16553
else
 
16554
  lt_prog_compiler_static_works_GCJ=no
 
16555
   save_LDFLAGS="$LDFLAGS"
 
16556
   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
 
16557
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
16558
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
16559
     # The linker can only warn and ignore the option if not recognized
 
16560
     # So say no if there are warnings
 
16561
     if test -s conftest.err; then
 
16562
       # Append any errors to the config.log.
 
16563
       cat conftest.err 1>&5
 
16564
       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
 
16565
       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
 
16566
       if diff conftest.exp conftest.er2 >/dev/null; then
 
16567
         lt_prog_compiler_static_works_GCJ=yes
 
16568
       fi
 
16569
     else
 
16570
       lt_prog_compiler_static_works_GCJ=yes
 
16571
     fi
 
16572
   fi
 
16573
   $rm conftest*
 
16574
   LDFLAGS="$save_LDFLAGS"
 
16575
 
 
16576
fi
 
16577
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
 
16578
echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
 
16579
 
 
16580
if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
 
16581
    :
 
16582
else
 
16583
    lt_prog_compiler_static_GCJ=
 
16584
fi
 
16585
 
 
16586
 
 
16587
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
16588
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
 
16589
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
 
16590
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16591
else
 
16592
  lt_cv_prog_compiler_c_o_GCJ=no
 
16593
   $rm -r conftest 2>/dev/null
 
16594
   mkdir conftest
 
16595
   cd conftest
 
16596
   mkdir out
 
16597
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16598
 
 
16599
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
16600
   # Insert the option either (1) after the last *FLAGS variable, or
 
16601
   # (2) before a word containing "conftest.", or (3) at the end.
 
16602
   # Note that $ac_compile itself does not contain backslashes and begins
 
16603
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16604
   lt_compile=`echo "$ac_compile" | $SED \
 
16605
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
16606
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16607
   -e 's:$: $lt_compiler_flag:'`
 
16608
   (eval echo "\"\$as_me:16608: $lt_compile\"" >&5)
 
16609
   (eval "$lt_compile" 2>out/conftest.err)
 
16610
   ac_status=$?
 
16611
   cat out/conftest.err >&5
 
16612
   echo "$as_me:16612: \$? = $ac_status" >&5
 
16613
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
16614
   then
 
16615
     # The compiler can only warn and ignore the option if not recognized
 
16616
     # So say no if there are warnings
 
16617
     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
 
16618
     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
 
16619
     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
16620
       lt_cv_prog_compiler_c_o_GCJ=yes
 
16621
     fi
 
16622
   fi
 
16623
   chmod u+w . 2>&5
 
16624
   $rm conftest*
 
16625
   # SGI C++ compiler will create directory out/ii_files/ for
 
16626
   # template instantiation
 
16627
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
16628
   $rm out/* && rmdir out
 
16629
   cd ..
 
16630
   rmdir conftest
 
16631
   $rm conftest*
 
16632
 
 
16633
fi
 
16634
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
16635
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
 
16636
 
 
16637
 
 
16638
hard_links="nottested"
 
16639
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
 
16640
  # do not overwrite the value of need_locks provided by the user
 
16641
  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
16642
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
 
16643
  hard_links=yes
 
16644
  $rm conftest*
 
16645
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
16646
  touch conftest.a
 
16647
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
16648
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
16649
  { echo "$as_me:$LINENO: result: $hard_links" >&5
 
16650
echo "${ECHO_T}$hard_links" >&6; }
 
16651
  if test "$hard_links" = no; then
 
16652
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
16653
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
16654
    need_locks=warn
 
16655
  fi
 
16656
else
 
16657
  need_locks=no
 
16658
fi
 
16659
 
 
16660
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
16661
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
 
16662
 
 
16663
  runpath_var=
 
16664
  allow_undefined_flag_GCJ=
 
16665
  enable_shared_with_static_runtimes_GCJ=no
 
16666
  archive_cmds_GCJ=
 
16667
  archive_expsym_cmds_GCJ=
 
16668
  old_archive_From_new_cmds_GCJ=
 
16669
  old_archive_from_expsyms_cmds_GCJ=
 
16670
  export_dynamic_flag_spec_GCJ=
 
16671
  whole_archive_flag_spec_GCJ=
 
16672
  thread_safe_flag_spec_GCJ=
 
16673
  hardcode_libdir_flag_spec_GCJ=
 
16674
  hardcode_libdir_flag_spec_ld_GCJ=
 
16675
  hardcode_libdir_separator_GCJ=
 
16676
  hardcode_direct_GCJ=no
 
16677
  hardcode_minus_L_GCJ=no
 
16678
  hardcode_shlibpath_var_GCJ=unsupported
 
16679
  link_all_deplibs_GCJ=unknown
 
16680
  hardcode_automatic_GCJ=no
 
16681
  module_cmds_GCJ=
 
16682
  module_expsym_cmds_GCJ=
 
16683
  always_export_symbols_GCJ=no
 
16684
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
16685
  # include_expsyms should be a list of space-separated symbols to be *always*
 
16686
  # included in the symbol list
 
16687
  include_expsyms_GCJ=
 
16688
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
16689
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
16690
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
16691
  # as well as any symbol that contains `d'.
 
16692
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
 
16693
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
16694
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
16695
  # the symbol is explicitly referenced.  Since portable code cannot
 
16696
  # rely on this symbol name, it's probably fine to never include it in
 
16697
  # preloaded symbol tables.
 
16698
  extract_expsyms_cmds=
 
16699
  # Just being paranoid about ensuring that cc_basename is set.
 
16700
  for cc_temp in $compiler""; do
 
16701
  case $cc_temp in
 
16702
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
16703
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
16704
    \-*) ;;
 
16705
    *) break;;
 
16706
  esac
 
16707
done
 
16708
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
16709
 
 
16710
  case $host_os in
 
16711
  cygwin* | mingw* | pw32*)
 
16712
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
16713
    # When not using gcc, we currently assume that we are using
 
16714
    # Microsoft Visual C++.
 
16715
    if test "$GCC" != yes; then
 
16716
      with_gnu_ld=no
 
16717
    fi
 
16718
    ;;
 
16719
  interix*)
 
16720
    # we just hope/assume this is gcc and not c89 (= MSVC++)
 
16721
    with_gnu_ld=yes
 
16722
    ;;
 
16723
  openbsd*)
 
16724
    with_gnu_ld=no
 
16725
    ;;
 
16726
  esac
 
16727
 
 
16728
  ld_shlibs_GCJ=yes
 
16729
  if test "$with_gnu_ld" = yes; then
 
16730
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
16731
    wlarc='${wl}'
 
16732
 
 
16733
    # Set some defaults for GNU ld with shared library support. These
 
16734
    # are reset later if shared libraries are not supported. Putting them
 
16735
    # here allows them to be overridden if necessary.
 
16736
    runpath_var=LD_RUN_PATH
 
16737
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
16738
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
16739
    # ancient GNU ld didn't support --whole-archive et. al.
 
16740
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
16741
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
16742
      else
 
16743
        whole_archive_flag_spec_GCJ=
 
16744
    fi
 
16745
    supports_anon_versioning=no
 
16746
    case `$LD -v 2>/dev/null` in
 
16747
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
16748
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
16749
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
16750
      *\ 2.11.*) ;; # other 2.11 versions
 
16751
      *) supports_anon_versioning=yes ;;
 
16752
    esac
 
16753
 
 
16754
    # See if GNU ld supports shared libraries.
 
16755
    case $host_os in
 
16756
    aix3* | aix4* | aix5*)
 
16757
      # On AIX/PPC, the GNU linker is very broken
 
16758
      if test "$host_cpu" != ia64; then
 
16759
        ld_shlibs_GCJ=no
 
16760
        cat <<EOF 1>&2
 
16761
 
 
16762
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
16763
*** to be unable to reliably create shared libraries on AIX.
 
16764
*** Therefore, libtool is disabling shared libraries support.  If you
 
16765
*** really care for shared libraries, you may want to modify your PATH
 
16766
*** so that a non-GNU linker is found, and then restart.
 
16767
 
 
16768
EOF
 
16769
      fi
 
16770
      ;;
 
16771
 
 
16772
    amigaos*)
 
16773
      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)'
 
16774
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16775
      hardcode_minus_L_GCJ=yes
 
16776
 
 
16777
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
16778
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
16779
      # to version 4, is to share data among multiple programs linked
 
16780
      # with the same dynamic library.  Since this doesn't match the
 
16781
      # behavior of shared libraries on other platforms, we can't use
 
16782
      # them.
 
16783
      ld_shlibs_GCJ=no
 
16784
      ;;
 
16785
 
 
16786
    beos*)
 
16787
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16788
        allow_undefined_flag_GCJ=unsupported
 
16789
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
16790
        # support --undefined.  This deserves some investigation.  FIXME
 
16791
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16792
      else
 
16793
        ld_shlibs_GCJ=no
 
16794
      fi
 
16795
      ;;
 
16796
 
 
16797
    cygwin* | mingw* | pw32*)
 
16798
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
 
16799
      # as there is no search path for DLLs.
 
16800
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16801
      allow_undefined_flag_GCJ=unsupported
 
16802
      always_export_symbols_GCJ=no
 
16803
      enable_shared_with_static_runtimes_GCJ=yes
 
16804
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
16805
 
 
16806
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
16807
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
16808
        # If the export-symbols file already is a .def file (1st line
 
16809
        # is EXPORTS), use it as is; otherwise, prepend...
 
16810
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
16811
          cp $export_symbols $output_objdir/$soname.def;
 
16812
        else
 
16813
          echo EXPORTS > $output_objdir/$soname.def;
 
16814
          cat $export_symbols >> $output_objdir/$soname.def;
 
16815
        fi~
 
16816
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
 
16817
      else
 
16818
        ld_shlibs_GCJ=no
 
16819
      fi
 
16820
      ;;
 
16821
 
 
16822
    interix3*)
 
16823
      hardcode_direct_GCJ=no
 
16824
      hardcode_shlibpath_var_GCJ=no
 
16825
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
16826
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
16827
      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
 
16828
      # Instead, shared libraries are loaded at an image base (0x10000000 by
 
16829
      # default) and relocated if they conflict, which is a slow very memory
 
16830
      # consuming and fragmenting process.  To avoid this, we pick a random,
 
16831
      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
 
16832
      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
 
16833
      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'
 
16834
      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'
 
16835
      ;;
 
16836
 
 
16837
    linux*)
 
16838
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16839
        tmp_addflag=
 
16840
        case $cc_basename,$host_cpu in
 
16841
        pgcc*)                          # Portland Group C compiler
 
16842
          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'
 
16843
          tmp_addflag=' $pic_flag'
 
16844
          ;;
 
16845
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
16846
          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'
 
16847
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
16848
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
16849
          tmp_addflag=' -i_dynamic' ;;
 
16850
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
16851
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
16852
        ifc* | ifort*)                  # Intel Fortran compiler
 
16853
          tmp_addflag=' -nofor_main' ;;
 
16854
        esac
 
16855
        archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16856
 
 
16857
        if test $supports_anon_versioning = yes; then
 
16858
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
16859
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
16860
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
16861
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
16862
        fi
 
16863
      else
 
16864
        ld_shlibs_GCJ=no
 
16865
      fi
 
16866
      ;;
 
16867
 
 
16868
    netbsd*)
 
16869
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16870
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
16871
        wlarc=
 
16872
      else
 
16873
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16874
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16875
      fi
 
16876
      ;;
 
16877
 
 
16878
    solaris*)
 
16879
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
16880
        ld_shlibs_GCJ=no
 
16881
        cat <<EOF 1>&2
 
16882
 
 
16883
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
16884
*** create shared libraries on Solaris systems.  Therefore, libtool
 
16885
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
16886
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
16887
*** your PATH or compiler configuration so that the native linker is
 
16888
*** used, and then restart.
 
16889
 
 
16890
EOF
 
16891
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16892
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16893
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16894
      else
 
16895
        ld_shlibs_GCJ=no
 
16896
      fi
 
16897
      ;;
 
16898
 
 
16899
    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
 
16900
      case `$LD -v 2>&1` in
 
16901
        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
 
16902
        ld_shlibs_GCJ=no
 
16903
        cat <<_LT_EOF 1>&2
 
16904
 
 
16905
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
 
16906
*** reliably create shared libraries on SCO systems.  Therefore, libtool
 
16907
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
16908
*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
 
16909
*** your PATH or compiler configuration so that the native linker is
 
16910
*** used, and then restart.
 
16911
 
 
16912
_LT_EOF
 
16913
        ;;
 
16914
        *)
 
16915
          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16916
            hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
 
16917
            archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
 
16918
            archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
 
16919
          else
 
16920
            ld_shlibs_GCJ=no
 
16921
          fi
 
16922
        ;;
 
16923
      esac
 
16924
      ;;
 
16925
 
 
16926
    sunos4*)
 
16927
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16928
      wlarc=
 
16929
      hardcode_direct_GCJ=yes
 
16930
      hardcode_shlibpath_var_GCJ=no
 
16931
      ;;
 
16932
 
 
16933
    *)
 
16934
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16935
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16936
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16937
      else
 
16938
        ld_shlibs_GCJ=no
 
16939
      fi
 
16940
      ;;
 
16941
    esac
 
16942
 
 
16943
    if test "$ld_shlibs_GCJ" = no; then
 
16944
      runpath_var=
 
16945
      hardcode_libdir_flag_spec_GCJ=
 
16946
      export_dynamic_flag_spec_GCJ=
 
16947
      whole_archive_flag_spec_GCJ=
 
16948
    fi
 
16949
  else
 
16950
    # PORTME fill in a description of your system's linker (not GNU ld)
 
16951
    case $host_os in
 
16952
    aix3*)
 
16953
      allow_undefined_flag_GCJ=unsupported
 
16954
      always_export_symbols_GCJ=yes
 
16955
      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'
 
16956
      # Note: this linker hardcodes the directories in LIBPATH if there
 
16957
      # are no directories specified by -L.
 
16958
      hardcode_minus_L_GCJ=yes
 
16959
      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
 
16960
        # Neither direct hardcoding nor static linking is supported with a
 
16961
        # broken collect2.
 
16962
        hardcode_direct_GCJ=unsupported
 
16963
      fi
 
16964
      ;;
 
16965
 
 
16966
    aix4* | aix5*)
 
16967
      if test "$host_cpu" = ia64; then
 
16968
        # On IA64, the linker does run time linking by default, so we don't
 
16969
        # have to do anything special.
 
16970
        aix_use_runtimelinking=no
 
16971
        exp_sym_flag='-Bexport'
 
16972
        no_entry_flag=""
 
16973
      else
 
16974
        # If we're using GNU nm, then we don't want the "-C" option.
 
16975
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
16976
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
16977
          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'
 
16978
        else
 
16979
          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'
 
16980
        fi
 
16981
        aix_use_runtimelinking=no
 
16982
 
 
16983
        # Test if we are trying to use run time linking or normal
 
16984
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
16985
        # need to do runtime linking.
 
16986
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
16987
          for ld_flag in $LDFLAGS; do
 
16988
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
16989
            aix_use_runtimelinking=yes
 
16990
            break
 
16991
          fi
 
16992
          done
 
16993
          ;;
 
16994
        esac
 
16995
 
 
16996
        exp_sym_flag='-bexport'
 
16997
        no_entry_flag='-bnoentry'
 
16998
      fi
 
16999
 
 
17000
      # When large executables or shared objects are built, AIX ld can
 
17001
      # have problems creating the table of contents.  If linking a library
 
17002
      # or program results in "error TOC overflow" add -mminimal-toc to
 
17003
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
17004
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
17005
 
 
17006
      archive_cmds_GCJ=''
 
17007
      hardcode_direct_GCJ=yes
 
17008
      hardcode_libdir_separator_GCJ=':'
 
17009
      link_all_deplibs_GCJ=yes
 
17010
 
 
17011
      if test "$GCC" = yes; then
 
17012
        case $host_os in aix4.[012]|aix4.[012].*)
 
17013
        # We only want to do this on AIX 4.2 and lower, the check
 
17014
        # below for broken collect2 doesn't work under 4.3+
 
17015
          collect2name=`${CC} -print-prog-name=collect2`
 
17016
          if test -f "$collect2name" && \
 
17017
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
17018
          then
 
17019
          # We have reworked collect2
 
17020
          hardcode_direct_GCJ=yes
 
17021
          else
 
17022
          # We have old collect2
 
17023
          hardcode_direct_GCJ=unsupported
 
17024
          # It fails to find uninstalled libraries when the uninstalled
 
17025
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
17026
          # to unsupported forces relinking
 
17027
          hardcode_minus_L_GCJ=yes
 
17028
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17029
          hardcode_libdir_separator_GCJ=
 
17030
          fi
 
17031
          ;;
 
17032
        esac
 
17033
        shared_flag='-shared'
 
17034
        if test "$aix_use_runtimelinking" = yes; then
 
17035
          shared_flag="$shared_flag "'${wl}-G'
 
17036
        fi
 
17037
      else
 
17038
        # not using gcc
 
17039
        if test "$host_cpu" = ia64; then
 
17040
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
17041
        # chokes on -Wl,-G. The following line is correct:
 
17042
          shared_flag='-G'
 
17043
        else
 
17044
          if test "$aix_use_runtimelinking" = yes; then
 
17045
            shared_flag='${wl}-G'
 
17046
          else
 
17047
            shared_flag='${wl}-bM:SRE'
 
17048
          fi
 
17049
        fi
 
17050
      fi
 
17051
 
 
17052
      # It seems that -bexpall does not export symbols beginning with
 
17053
      # underscore (_), so it is better to generate a list of symbols to export.
 
17054
      always_export_symbols_GCJ=yes
 
17055
      if test "$aix_use_runtimelinking" = yes; then
 
17056
        # Warning - without using the other runtime loading flags (-brtl),
 
17057
        # -berok will link without error, but may produce a broken library.
 
17058
        allow_undefined_flag_GCJ='-berok'
 
17059
       # Determine the default libpath from the value encoded in an empty executable.
 
17060
       cat >conftest.$ac_ext <<_ACEOF
 
17061
/* confdefs.h.  */
 
17062
_ACEOF
 
17063
cat confdefs.h >>conftest.$ac_ext
 
17064
cat >>conftest.$ac_ext <<_ACEOF
 
17065
/* end confdefs.h.  */
 
17066
 
 
17067
int
 
17068
main ()
 
17069
{
 
17070
 
 
17071
  ;
 
17072
  return 0;
 
17073
}
 
17074
_ACEOF
 
17075
rm -f conftest.$ac_objext conftest$ac_exeext
 
17076
if { (ac_try="$ac_link"
 
17077
case "(($ac_try" in
 
17078
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17079
  *) ac_try_echo=$ac_try;;
 
17080
esac
 
17081
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17082
  (eval "$ac_link") 2>conftest.er1
 
17083
  ac_status=$?
 
17084
  grep -v '^ *+' conftest.er1 >conftest.err
 
17085
  rm -f conftest.er1
 
17086
  cat conftest.err >&5
 
17087
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17088
  (exit $ac_status); } && {
 
17089
         test -z "$ac_c_werror_flag" ||
 
17090
         test ! -s conftest.err
 
17091
       } && test -s conftest$ac_exeext &&
 
17092
       $as_test_x conftest$ac_exeext; then
 
17093
 
 
17094
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
17095
}'`
 
17096
# Check for a 64-bit object if we didn't find anything.
 
17097
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
17098
}'`; fi
 
17099
else
 
17100
  echo "$as_me: failed program was:" >&5
 
17101
sed 's/^/| /' conftest.$ac_ext >&5
 
17102
 
 
17103
 
 
17104
fi
 
17105
 
 
17106
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17107
      conftest$ac_exeext conftest.$ac_ext
 
17108
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
17109
 
 
17110
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
17111
        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"
 
17112
       else
 
17113
        if test "$host_cpu" = ia64; then
 
17114
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
 
17115
          allow_undefined_flag_GCJ="-z nodefs"
 
17116
          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"
 
17117
        else
 
17118
         # Determine the default libpath from the value encoded in an empty executable.
 
17119
         cat >conftest.$ac_ext <<_ACEOF
 
17120
/* confdefs.h.  */
 
17121
_ACEOF
 
17122
cat confdefs.h >>conftest.$ac_ext
 
17123
cat >>conftest.$ac_ext <<_ACEOF
 
17124
/* end confdefs.h.  */
 
17125
 
 
17126
int
 
17127
main ()
 
17128
{
 
17129
 
 
17130
  ;
 
17131
  return 0;
 
17132
}
 
17133
_ACEOF
 
17134
rm -f conftest.$ac_objext conftest$ac_exeext
 
17135
if { (ac_try="$ac_link"
 
17136
case "(($ac_try" in
 
17137
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
17138
  *) ac_try_echo=$ac_try;;
 
17139
esac
 
17140
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
17141
  (eval "$ac_link") 2>conftest.er1
 
17142
  ac_status=$?
 
17143
  grep -v '^ *+' conftest.er1 >conftest.err
 
17144
  rm -f conftest.er1
 
17145
  cat conftest.err >&5
 
17146
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17147
  (exit $ac_status); } && {
 
17148
         test -z "$ac_c_werror_flag" ||
 
17149
         test ! -s conftest.err
 
17150
       } && test -s conftest$ac_exeext &&
 
17151
       $as_test_x conftest$ac_exeext; then
 
17152
 
 
17153
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
17154
}'`
 
17155
# Check for a 64-bit object if we didn't find anything.
 
17156
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
17157
}'`; fi
 
17158
else
 
17159
  echo "$as_me: failed program was:" >&5
 
17160
sed 's/^/| /' conftest.$ac_ext >&5
 
17161
 
 
17162
 
 
17163
fi
 
17164
 
 
17165
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
17166
      conftest$ac_exeext conftest.$ac_ext
 
17167
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
17168
 
 
17169
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
17170
          # Warning - without using the other run time loading flags,
 
17171
          # -berok will link without error, but may produce a broken library.
 
17172
          no_undefined_flag_GCJ=' ${wl}-bernotok'
 
17173
          allow_undefined_flag_GCJ=' ${wl}-berok'
 
17174
          # Exported symbols can be pulled into shared objects from archives
 
17175
          whole_archive_flag_spec_GCJ='$convenience'
 
17176
          archive_cmds_need_lc_GCJ=yes
 
17177
          # This is similar to how AIX traditionally builds its shared libraries.
 
17178
          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'
 
17179
        fi
 
17180
      fi
 
17181
      ;;
 
17182
 
 
17183
    amigaos*)
 
17184
      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)'
 
17185
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17186
      hardcode_minus_L_GCJ=yes
 
17187
      # see comment about different semantics on the GNU ld section
 
17188
      ld_shlibs_GCJ=no
 
17189
      ;;
 
17190
 
 
17191
    bsdi[45]*)
 
17192
      export_dynamic_flag_spec_GCJ=-rdynamic
 
17193
      ;;
 
17194
 
 
17195
    cygwin* | mingw* | pw32*)
 
17196
      # When not using gcc, we currently assume that we are using
 
17197
      # Microsoft Visual C++.
 
17198
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
17199
      # no search path for DLLs.
 
17200
      hardcode_libdir_flag_spec_GCJ=' '
 
17201
      allow_undefined_flag_GCJ=unsupported
 
17202
      # Tell ltmain to make .lib files, not .a files.
 
17203
      libext=lib
 
17204
      # Tell ltmain to make .dll files, not .so files.
 
17205
      shrext_cmds=".dll"
 
17206
      # FIXME: Setting linknames here is a bad hack.
 
17207
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
17208
      # The linker will automatically build a .lib file if we build a DLL.
 
17209
      old_archive_From_new_cmds_GCJ='true'
 
17210
      # FIXME: Should let the user specify the lib program.
 
17211
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
17212
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
 
17213
      enable_shared_with_static_runtimes_GCJ=yes
 
17214
      ;;
 
17215
 
 
17216
    darwin* | rhapsody*)
 
17217
      case $host_os in
 
17218
        rhapsody* | darwin1.[012])
 
17219
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
 
17220
         ;;
 
17221
       *) # Darwin 1.3 on
 
17222
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
17223
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
17224
         else
 
17225
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
17226
             10.[012])
 
17227
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
17228
               ;;
 
17229
             10.*)
 
17230
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
 
17231
               ;;
 
17232
           esac
 
17233
         fi
 
17234
         ;;
 
17235
      esac
 
17236
      archive_cmds_need_lc_GCJ=no
 
17237
      hardcode_direct_GCJ=no
 
17238
      hardcode_automatic_GCJ=yes
 
17239
      hardcode_shlibpath_var_GCJ=unsupported
 
17240
      whole_archive_flag_spec_GCJ=''
 
17241
      link_all_deplibs_GCJ=yes
 
17242
    if test "$GCC" = yes ; then
 
17243
        output_verbose_link_cmd='echo'
 
17244
        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
17245
      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
17246
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
17247
      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
17248
      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}'
 
17249
    else
 
17250
      case $cc_basename in
 
17251
        xlc*)
 
17252
         output_verbose_link_cmd='echo'
 
17253
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
17254
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
17255
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
17256
         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
17257
          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}'
 
17258
          ;;
 
17259
       *)
 
17260
         ld_shlibs_GCJ=no
 
17261
          ;;
 
17262
      esac
 
17263
    fi
 
17264
      ;;
 
17265
 
 
17266
    dgux*)
 
17267
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17268
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17269
      hardcode_shlibpath_var_GCJ=no
 
17270
      ;;
 
17271
 
 
17272
    freebsd1*)
 
17273
      ld_shlibs_GCJ=no
 
17274
      ;;
 
17275
 
 
17276
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
17277
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
17278
    # does not break anything, and helps significantly (at the cost of a little
 
17279
    # extra space).
 
17280
    freebsd2.2*)
 
17281
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
17282
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17283
      hardcode_direct_GCJ=yes
 
17284
      hardcode_shlibpath_var_GCJ=no
 
17285
      ;;
 
17286
 
 
17287
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
17288
    freebsd2*)
 
17289
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17290
      hardcode_direct_GCJ=yes
 
17291
      hardcode_minus_L_GCJ=yes
 
17292
      hardcode_shlibpath_var_GCJ=no
 
17293
      ;;
 
17294
 
 
17295
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
17296
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
17297
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
17298
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17299
      hardcode_direct_GCJ=yes
 
17300
      hardcode_shlibpath_var_GCJ=no
 
17301
      ;;
 
17302
 
 
17303
    hpux9*)
 
17304
      if test "$GCC" = yes; then
 
17305
        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'
 
17306
      else
 
17307
        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'
 
17308
      fi
 
17309
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17310
      hardcode_libdir_separator_GCJ=:
 
17311
      hardcode_direct_GCJ=yes
 
17312
 
 
17313
      # hardcode_minus_L: Not really in the search PATH,
 
17314
      # but as the default location of the library.
 
17315
      hardcode_minus_L_GCJ=yes
 
17316
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
17317
      ;;
 
17318
 
 
17319
    hpux10*)
 
17320
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
17321
        archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
17322
      else
 
17323
        archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
17324
      fi
 
17325
      if test "$with_gnu_ld" = no; then
 
17326
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17327
        hardcode_libdir_separator_GCJ=:
 
17328
 
 
17329
        hardcode_direct_GCJ=yes
 
17330
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
17331
 
 
17332
        # hardcode_minus_L: Not really in the search PATH,
 
17333
        # but as the default location of the library.
 
17334
        hardcode_minus_L_GCJ=yes
 
17335
      fi
 
17336
      ;;
 
17337
 
 
17338
    hpux11*)
 
17339
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
17340
        case $host_cpu in
 
17341
        hppa*64*)
 
17342
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17343
          ;;
 
17344
        ia64*)
 
17345
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
17346
          ;;
 
17347
        *)
 
17348
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
17349
          ;;
 
17350
        esac
 
17351
      else
 
17352
        case $host_cpu in
 
17353
        hppa*64*)
 
17354
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17355
          ;;
 
17356
        ia64*)
 
17357
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
 
17358
          ;;
 
17359
        *)
 
17360
          archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
17361
          ;;
 
17362
        esac
 
17363
      fi
 
17364
      if test "$with_gnu_ld" = no; then
 
17365
        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17366
        hardcode_libdir_separator_GCJ=:
 
17367
 
 
17368
        case $host_cpu in
 
17369
        hppa*64*|ia64*)
 
17370
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
 
17371
          hardcode_direct_GCJ=no
 
17372
          hardcode_shlibpath_var_GCJ=no
 
17373
          ;;
 
17374
        *)
 
17375
          hardcode_direct_GCJ=yes
 
17376
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
17377
 
 
17378
          # hardcode_minus_L: Not really in the search PATH,
 
17379
          # but as the default location of the library.
 
17380
          hardcode_minus_L_GCJ=yes
 
17381
          ;;
 
17382
        esac
 
17383
      fi
 
17384
      ;;
 
17385
 
 
17386
    irix5* | irix6* | nonstopux*)
 
17387
      if test "$GCC" = yes; then
 
17388
        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'
 
17389
      else
 
17390
        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'
 
17391
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
 
17392
      fi
 
17393
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17394
      hardcode_libdir_separator_GCJ=:
 
17395
      link_all_deplibs_GCJ=yes
 
17396
      ;;
 
17397
 
 
17398
    netbsd*)
 
17399
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17400
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
17401
      else
 
17402
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
17403
      fi
 
17404
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17405
      hardcode_direct_GCJ=yes
 
17406
      hardcode_shlibpath_var_GCJ=no
 
17407
      ;;
 
17408
 
 
17409
    newsos6)
 
17410
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17411
      hardcode_direct_GCJ=yes
 
17412
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17413
      hardcode_libdir_separator_GCJ=:
 
17414
      hardcode_shlibpath_var_GCJ=no
 
17415
      ;;
 
17416
 
 
17417
    openbsd*)
 
17418
      hardcode_direct_GCJ=yes
 
17419
      hardcode_shlibpath_var_GCJ=no
 
17420
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
17421
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
17422
        archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
17423
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17424
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
17425
      else
 
17426
       case $host_os in
 
17427
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
17428
           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17429
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17430
           ;;
 
17431
         *)
 
17432
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
17433
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17434
           ;;
 
17435
       esac
 
17436
      fi
 
17437
      ;;
 
17438
 
 
17439
    os2*)
 
17440
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17441
      hardcode_minus_L_GCJ=yes
 
17442
      allow_undefined_flag_GCJ=unsupported
 
17443
      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'
 
17444
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
17445
      ;;
 
17446
 
 
17447
    osf3*)
 
17448
      if test "$GCC" = yes; then
 
17449
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
17450
        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'
 
17451
      else
 
17452
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
17453
        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'
 
17454
      fi
 
17455
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17456
      hardcode_libdir_separator_GCJ=:
 
17457
      ;;
 
17458
 
 
17459
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
17460
      if test "$GCC" = yes; then
 
17461
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
17462
        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'
 
17463
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17464
      else
 
17465
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
17466
        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'
 
17467
        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~
 
17468
        $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'
 
17469
 
 
17470
        # Both c and cxx compiler support -rpath directly
 
17471
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
 
17472
      fi
 
17473
      hardcode_libdir_separator_GCJ=:
 
17474
      ;;
 
17475
 
 
17476
    solaris*)
 
17477
      no_undefined_flag_GCJ=' -z text'
 
17478
      if test "$GCC" = yes; then
 
17479
        wlarc='${wl}'
 
17480
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17481
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
17482
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
17483
      else
 
17484
        wlarc=''
 
17485
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17486
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
17487
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
17488
      fi
 
17489
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17490
      hardcode_shlibpath_var_GCJ=no
 
17491
      case $host_os in
 
17492
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
17493
      *)
 
17494
        # The compiler driver will combine linker options so we
 
17495
        # cannot just pass the convience library names through
 
17496
        # without $wl, iff we do not link with $LD.
 
17497
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
17498
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
17499
        case $wlarc in
 
17500
        '')
 
17501
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
17502
        *)
 
17503
          whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
17504
        esac ;;
 
17505
      esac
 
17506
      link_all_deplibs_GCJ=yes
 
17507
      ;;
 
17508
 
 
17509
    sunos4*)
 
17510
      if test "x$host_vendor" = xsequent; then
 
17511
        # Use $CC to link under sequent, because it throws in some extra .o
 
17512
        # files that make .init and .fini sections work.
 
17513
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
17514
      else
 
17515
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
17516
      fi
 
17517
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17518
      hardcode_direct_GCJ=yes
 
17519
      hardcode_minus_L_GCJ=yes
 
17520
      hardcode_shlibpath_var_GCJ=no
 
17521
      ;;
 
17522
 
 
17523
    sysv4)
 
17524
      case $host_vendor in
 
17525
        sni)
 
17526
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17527
          hardcode_direct_GCJ=yes # is this really true???
 
17528
        ;;
 
17529
        siemens)
 
17530
          ## LD is ld it makes a PLAMLIB
 
17531
          ## CC just makes a GrossModule.
 
17532
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
17533
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
 
17534
          hardcode_direct_GCJ=no
 
17535
        ;;
 
17536
        motorola)
 
17537
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17538
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
 
17539
        ;;
 
17540
      esac
 
17541
      runpath_var='LD_RUN_PATH'
 
17542
      hardcode_shlibpath_var_GCJ=no
 
17543
      ;;
 
17544
 
 
17545
    sysv4.3*)
 
17546
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17547
      hardcode_shlibpath_var_GCJ=no
 
17548
      export_dynamic_flag_spec_GCJ='-Bexport'
 
17549
      ;;
 
17550
 
 
17551
    sysv4*MP*)
 
17552
      if test -d /usr/nec; then
 
17553
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17554
        hardcode_shlibpath_var_GCJ=no
 
17555
        runpath_var=LD_RUN_PATH
 
17556
        hardcode_runpath_var=yes
 
17557
        ld_shlibs_GCJ=yes
 
17558
      fi
 
17559
      ;;
 
17560
 
 
17561
    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
 
17562
      no_undefined_flag_GCJ='${wl}-z,text'
 
17563
      archive_cmds_need_lc_GCJ=no
 
17564
      hardcode_shlibpath_var_GCJ=no
 
17565
      runpath_var='LD_RUN_PATH'
 
17566
 
 
17567
      if test "$GCC" = yes; then
 
17568
        archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17569
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17570
      else
 
17571
        archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17572
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17573
      fi
 
17574
      ;;
 
17575
 
 
17576
    sysv5* | sco3.2v5* | sco5v6*)
 
17577
      # Note: We can NOT use -z defs as we might desire, because we do not
 
17578
      # link with -lc, and that would cause any symbols used from libc to
 
17579
      # always be unresolved, which means just about no library would
 
17580
      # ever link correctly.  If we're not using GNU ld we use -z text
 
17581
      # though, which does catch some bad symbols but isn't as heavy-handed
 
17582
      # as -z defs.
 
17583
      no_undefined_flag_GCJ='${wl}-z,text'
 
17584
      allow_undefined_flag_GCJ='${wl}-z,nodefs'
 
17585
      archive_cmds_need_lc_GCJ=no
 
17586
      hardcode_shlibpath_var_GCJ=no
 
17587
      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
 
17588
      hardcode_libdir_separator_GCJ=':'
 
17589
      link_all_deplibs_GCJ=yes
 
17590
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
17591
      runpath_var='LD_RUN_PATH'
 
17592
 
 
17593
      if test "$GCC" = yes; then
 
17594
        archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17595
        archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17596
      else
 
17597
        archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17598
        archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17599
      fi
 
17600
      ;;
 
17601
 
 
17602
    uts4*)
 
17603
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17604
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17605
      hardcode_shlibpath_var_GCJ=no
 
17606
      ;;
 
17607
 
 
17608
    *)
 
17609
      ld_shlibs_GCJ=no
 
17610
      ;;
 
17611
    esac
 
17612
  fi
 
17613
 
 
17614
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
17615
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
 
17616
test "$ld_shlibs_GCJ" = no && can_build_shared=no
 
17617
 
 
17618
#
 
17619
# Do we need to explicitly link libc?
 
17620
#
 
17621
case "x$archive_cmds_need_lc_GCJ" in
 
17622
x|xyes)
 
17623
  # Assume -lc should be added
 
17624
  archive_cmds_need_lc_GCJ=yes
 
17625
 
 
17626
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
17627
    case $archive_cmds_GCJ in
 
17628
    *'~'*)
 
17629
      # FIXME: we may have to deal with multi-command sequences.
 
17630
      ;;
 
17631
    '$CC '*)
 
17632
      # Test whether the compiler implicitly links with -lc since on some
 
17633
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
17634
      # to ld, don't add -lc before -lgcc.
 
17635
      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
17636
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
 
17637
      $rm conftest*
 
17638
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17639
 
 
17640
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
17641
  (eval $ac_compile) 2>&5
 
17642
  ac_status=$?
 
17643
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17644
  (exit $ac_status); } 2>conftest.err; then
 
17645
        soname=conftest
 
17646
        lib=conftest
 
17647
        libobjs=conftest.$ac_objext
 
17648
        deplibs=
 
17649
        wl=$lt_prog_compiler_wl_GCJ
 
17650
        pic_flag=$lt_prog_compiler_pic_GCJ
 
17651
        compiler_flags=-v
 
17652
        linker_flags=-v
 
17653
        verstring=
 
17654
        output_objdir=.
 
17655
        libname=conftest
 
17656
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
 
17657
        allow_undefined_flag_GCJ=
 
17658
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
17659
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
17660
  ac_status=$?
 
17661
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17662
  (exit $ac_status); }
 
17663
        then
 
17664
          archive_cmds_need_lc_GCJ=no
 
17665
        else
 
17666
          archive_cmds_need_lc_GCJ=yes
 
17667
        fi
 
17668
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
 
17669
      else
 
17670
        cat conftest.err 1>&5
 
17671
      fi
 
17672
      $rm conftest*
 
17673
      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
17674
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
 
17675
      ;;
 
17676
    esac
 
17677
  fi
 
17678
  ;;
 
17679
esac
 
17680
 
 
17681
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
17682
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
 
17683
library_names_spec=
 
17684
libname_spec='lib$name'
 
17685
soname_spec=
 
17686
shrext_cmds=".so"
 
17687
postinstall_cmds=
 
17688
postuninstall_cmds=
 
17689
finish_cmds=
 
17690
finish_eval=
 
17691
shlibpath_var=
 
17692
shlibpath_overrides_runpath=unknown
 
17693
version_type=none
 
17694
dynamic_linker="$host_os ld.so"
 
17695
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
17696
if test "$GCC" = yes; then
 
17697
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
17698
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
17699
    # if the path contains ";" then we assume it to be the separator
 
17700
    # otherwise default to the standard path separator (i.e. ":") - it is
 
17701
    # assumed that no part of a normal pathname contains ";" but that should
 
17702
    # okay in the real world where ";" in dirpaths is itself problematic.
 
17703
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
17704
  else
 
17705
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
17706
  fi
 
17707
else
 
17708
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
17709
fi
 
17710
need_lib_prefix=unknown
 
17711
hardcode_into_libs=no
 
17712
 
 
17713
# when you set need_version to no, make sure it does not cause -set_version
 
17714
# flags to be left without arguments
 
17715
need_version=unknown
 
17716
 
 
17717
case $host_os in
 
17718
aix3*)
 
17719
  version_type=linux
 
17720
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
17721
  shlibpath_var=LIBPATH
 
17722
 
 
17723
  # AIX 3 has no versioning support, so we append a major version to the name.
 
17724
  soname_spec='${libname}${release}${shared_ext}$major'
 
17725
  ;;
 
17726
 
 
17727
aix4* | aix5*)
 
17728
  version_type=linux
 
17729
  need_lib_prefix=no
 
17730
  need_version=no
 
17731
  hardcode_into_libs=yes
 
17732
  if test "$host_cpu" = ia64; then
 
17733
    # AIX 5 supports IA64
 
17734
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
17735
    shlibpath_var=LD_LIBRARY_PATH
 
17736
  else
 
17737
    # With GCC up to 2.95.x, collect2 would create an import file
 
17738
    # for dependence libraries.  The import file would start with
 
17739
    # the line `#! .'.  This would cause the generated library to
 
17740
    # depend on `.', always an invalid library.  This was fixed in
 
17741
    # development snapshots of GCC prior to 3.0.
 
17742
    case $host_os in
 
17743
      aix4 | aix4.[01] | aix4.[01].*)
 
17744
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
17745
           echo ' yes '
 
17746
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
17747
        :
 
17748
      else
 
17749
        can_build_shared=no
 
17750
      fi
 
17751
      ;;
 
17752
    esac
 
17753
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
17754
    # soname into executable. Probably we can add versioning support to
 
17755
    # collect2, so additional links can be useful in future.
 
17756
    if test "$aix_use_runtimelinking" = yes; then
 
17757
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
17758
      # instead of lib<name>.a to let people know that these are not
 
17759
      # typical AIX shared libraries.
 
17760
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17761
    else
 
17762
      # We preserve .a as extension for shared libraries through AIX4.2
 
17763
      # and later when we are not doing run time linking.
 
17764
      library_names_spec='${libname}${release}.a $libname.a'
 
17765
      soname_spec='${libname}${release}${shared_ext}$major'
 
17766
    fi
 
17767
    shlibpath_var=LIBPATH
 
17768
  fi
 
17769
  ;;
 
17770
 
 
17771
amigaos*)
 
17772
  library_names_spec='$libname.ixlibrary $libname.a'
 
17773
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
17774
  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'
 
17775
  ;;
 
17776
 
 
17777
beos*)
 
17778
  library_names_spec='${libname}${shared_ext}'
 
17779
  dynamic_linker="$host_os ld.so"
 
17780
  shlibpath_var=LIBRARY_PATH
 
17781
  ;;
 
17782
 
 
17783
bsdi[45]*)
 
17784
  version_type=linux
 
17785
  need_version=no
 
17786
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17787
  soname_spec='${libname}${release}${shared_ext}$major'
 
17788
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
17789
  shlibpath_var=LD_LIBRARY_PATH
 
17790
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
17791
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
17792
  # the default ld.so.conf also contains /usr/contrib/lib and
 
17793
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
17794
  # libtool to hard-code these into programs
 
17795
  ;;
 
17796
 
 
17797
cygwin* | mingw* | pw32*)
 
17798
  version_type=windows
 
17799
  shrext_cmds=".dll"
 
17800
  need_version=no
 
17801
  need_lib_prefix=no
 
17802
 
 
17803
  case $GCC,$host_os in
 
17804
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
17805
    library_names_spec='$libname.dll.a'
 
17806
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
17807
    postinstall_cmds='base_file=`basename \${file}`~
 
17808
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
17809
      dldir=$destdir/`dirname \$dlpath`~
 
17810
      test -d \$dldir || mkdir -p \$dldir~
 
17811
      $install_prog $dir/$dlname \$dldir/$dlname~
 
17812
      chmod a+x \$dldir/$dlname'
 
17813
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
17814
      dlpath=$dir/\$dldll~
 
17815
       $rm \$dlpath'
 
17816
    shlibpath_overrides_runpath=yes
 
17817
 
 
17818
    case $host_os in
 
17819
    cygwin*)
 
17820
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
17821
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
17822
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
17823
      ;;
 
17824
    mingw*)
 
17825
      # MinGW DLLs use traditional 'lib' prefix
 
17826
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
17827
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
17828
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
17829
        # It is most probably a Windows format PATH printed by
 
17830
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
17831
        # path with ; separators, and with drive letters. We can handle the
 
17832
        # drive letters (cygwin fileutils understands them), so leave them,
 
17833
        # especially as we might pass files found there to a mingw objdump,
 
17834
        # which wouldn't understand a cygwinified path. Ahh.
 
17835
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
17836
      else
 
17837
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
17838
      fi
 
17839
      ;;
 
17840
    pw32*)
 
17841
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
17842
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
17843
      ;;
 
17844
    esac
 
17845
    ;;
 
17846
 
 
17847
  *)
 
17848
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
17849
    ;;
 
17850
  esac
 
17851
  dynamic_linker='Win32 ld.exe'
 
17852
  # FIXME: first we should search . and the directory the executable is in
 
17853
  shlibpath_var=PATH
 
17854
  ;;
 
17855
 
 
17856
darwin* | rhapsody*)
 
17857
  dynamic_linker="$host_os dyld"
 
17858
  version_type=darwin
 
17859
  need_lib_prefix=no
 
17860
  need_version=no
 
17861
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
17862
  soname_spec='${libname}${release}${major}$shared_ext'
 
17863
  shlibpath_overrides_runpath=yes
 
17864
  shlibpath_var=DYLD_LIBRARY_PATH
 
17865
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
17866
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
17867
  if test "$GCC" = yes; then
 
17868
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
17869
  else
 
17870
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
17871
  fi
 
17872
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
17873
  ;;
 
17874
 
 
17875
dgux*)
 
17876
  version_type=linux
 
17877
  need_lib_prefix=no
 
17878
  need_version=no
 
17879
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
17880
  soname_spec='${libname}${release}${shared_ext}$major'
 
17881
  shlibpath_var=LD_LIBRARY_PATH
 
17882
  ;;
 
17883
 
 
17884
freebsd1*)
 
17885
  dynamic_linker=no
 
17886
  ;;
 
17887
 
 
17888
kfreebsd*-gnu)
 
17889
  version_type=linux
 
17890
  need_lib_prefix=no
 
17891
  need_version=no
 
17892
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17893
  soname_spec='${libname}${release}${shared_ext}$major'
 
17894
  shlibpath_var=LD_LIBRARY_PATH
 
17895
  shlibpath_overrides_runpath=no
 
17896
  hardcode_into_libs=yes
 
17897
  dynamic_linker='GNU ld.so'
 
17898
  ;;
 
17899
 
 
17900
freebsd* | dragonfly*)
 
17901
  # DragonFly does not have aout.  When/if they implement a new
 
17902
  # versioning mechanism, adjust this.
 
17903
  if test -x /usr/bin/objformat; then
 
17904
    objformat=`/usr/bin/objformat`
 
17905
  else
 
17906
    case $host_os in
 
17907
    freebsd[123]*) objformat=aout ;;
 
17908
    *) objformat=elf ;;
 
17909
    esac
 
17910
  fi
 
17911
  version_type=freebsd-$objformat
 
17912
  case $version_type in
 
17913
    freebsd-elf*)
 
17914
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
17915
      need_version=no
 
17916
      need_lib_prefix=no
 
17917
      ;;
 
17918
    freebsd-*)
 
17919
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
17920
      need_version=yes
 
17921
      ;;
 
17922
  esac
 
17923
  shlibpath_var=LD_LIBRARY_PATH
 
17924
  case $host_os in
 
17925
  freebsd2*)
 
17926
    shlibpath_overrides_runpath=yes
 
17927
    ;;
 
17928
  freebsd3.[01]* | freebsdelf3.[01]*)
 
17929
    shlibpath_overrides_runpath=yes
 
17930
    hardcode_into_libs=yes
 
17931
    ;;
 
17932
  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
 
17933
  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
 
17934
    shlibpath_overrides_runpath=no
 
17935
    hardcode_into_libs=yes
 
17936
    ;;
 
17937
  freebsd*) # from 4.6 on
 
17938
    shlibpath_overrides_runpath=yes
 
17939
    hardcode_into_libs=yes
 
17940
    ;;
 
17941
  esac
 
17942
  ;;
 
17943
 
 
17944
gnu*)
 
17945
  version_type=linux
 
17946
  need_lib_prefix=no
 
17947
  need_version=no
 
17948
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
17949
  soname_spec='${libname}${release}${shared_ext}$major'
 
17950
  shlibpath_var=LD_LIBRARY_PATH
 
17951
  hardcode_into_libs=yes
 
17952
  ;;
 
17953
 
 
17954
hpux9* | hpux10* | hpux11*)
 
17955
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
17956
  # link against other versions.
 
17957
  version_type=sunos
 
17958
  need_lib_prefix=no
 
17959
  need_version=no
 
17960
  case $host_cpu in
 
17961
  ia64*)
 
17962
    shrext_cmds='.so'
 
17963
    hardcode_into_libs=yes
 
17964
    dynamic_linker="$host_os dld.so"
 
17965
    shlibpath_var=LD_LIBRARY_PATH
 
17966
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
17967
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17968
    soname_spec='${libname}${release}${shared_ext}$major'
 
17969
    if test "X$HPUX_IA64_MODE" = X32; then
 
17970
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
17971
    else
 
17972
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
17973
    fi
 
17974
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
17975
    ;;
 
17976
   hppa*64*)
 
17977
     shrext_cmds='.sl'
 
17978
     hardcode_into_libs=yes
 
17979
     dynamic_linker="$host_os dld.sl"
 
17980
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
17981
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
17982
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17983
     soname_spec='${libname}${release}${shared_ext}$major'
 
17984
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
17985
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
17986
     ;;
 
17987
   *)
 
17988
    shrext_cmds='.sl'
 
17989
    dynamic_linker="$host_os dld.sl"
 
17990
    shlibpath_var=SHLIB_PATH
 
17991
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
17992
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17993
    soname_spec='${libname}${release}${shared_ext}$major'
 
17994
    ;;
 
17995
  esac
 
17996
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
17997
  postinstall_cmds='chmod 555 $lib'
 
17998
  ;;
 
17999
 
 
18000
interix3*)
 
18001
  version_type=linux
 
18002
  need_lib_prefix=no
 
18003
  need_version=no
 
18004
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18005
  soname_spec='${libname}${release}${shared_ext}$major'
 
18006
  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
 
18007
  shlibpath_var=LD_LIBRARY_PATH
 
18008
  shlibpath_overrides_runpath=no
 
18009
  hardcode_into_libs=yes
 
18010
  ;;
 
18011
 
 
18012
irix5* | irix6* | nonstopux*)
 
18013
  case $host_os in
 
18014
    nonstopux*) version_type=nonstopux ;;
 
18015
    *)
 
18016
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
18017
                version_type=linux
 
18018
        else
 
18019
                version_type=irix
 
18020
        fi ;;
 
18021
  esac
 
18022
  need_lib_prefix=no
 
18023
  need_version=no
 
18024
  soname_spec='${libname}${release}${shared_ext}$major'
 
18025
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18026
  case $host_os in
 
18027
  irix5* | nonstopux*)
 
18028
    libsuff= shlibsuff=
 
18029
    ;;
 
18030
  *)
 
18031
    case $LD in # libtool.m4 will add one of these switches to LD
 
18032
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
18033
      libsuff= shlibsuff= libmagic=32-bit;;
 
18034
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
18035
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
18036
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
18037
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
18038
    *) libsuff= shlibsuff= libmagic=never-match;;
 
18039
    esac
 
18040
    ;;
 
18041
  esac
 
18042
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
18043
  shlibpath_overrides_runpath=no
 
18044
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
18045
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
18046
  hardcode_into_libs=yes
 
18047
  ;;
 
18048
 
 
18049
# No shared lib support for Linux oldld, aout, or coff.
 
18050
linux*oldld* | linux*aout* | linux*coff*)
 
18051
  dynamic_linker=no
 
18052
  ;;
 
18053
 
 
18054
# This must be Linux ELF.
 
18055
linux*)
 
18056
  version_type=linux
 
18057
  need_lib_prefix=no
 
18058
  need_version=no
 
18059
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18060
  soname_spec='${libname}${release}${shared_ext}$major'
 
18061
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
18062
  shlibpath_var=LD_LIBRARY_PATH
 
18063
  shlibpath_overrides_runpath=no
 
18064
  # This implies no fast_install, which is unacceptable.
 
18065
  # Some rework will be needed to allow for fast_install
 
18066
  # before this can be enabled.
 
18067
  hardcode_into_libs=yes
 
18068
 
 
18069
  # Append ld.so.conf contents to the search path
 
18070
  if test -f /etc/ld.so.conf; then
 
18071
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
18072
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
18073
  fi
 
18074
 
 
18075
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
18076
  # powerpc, because MkLinux only supported shared libraries with the
 
18077
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
18078
  # most powerpc-linux boxes support dynamic linking these days and
 
18079
  # people can always --disable-shared, the test was removed, and we
 
18080
  # assume the GNU/Linux dynamic linker is in use.
 
18081
  dynamic_linker='GNU/Linux ld.so'
 
18082
  ;;
 
18083
 
 
18084
knetbsd*-gnu)
 
18085
  version_type=linux
 
18086
  need_lib_prefix=no
 
18087
  need_version=no
 
18088
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18089
  soname_spec='${libname}${release}${shared_ext}$major'
 
18090
  shlibpath_var=LD_LIBRARY_PATH
 
18091
  shlibpath_overrides_runpath=no
 
18092
  hardcode_into_libs=yes
 
18093
  dynamic_linker='GNU ld.so'
 
18094
  ;;
 
18095
 
 
18096
netbsd*)
 
18097
  version_type=sunos
 
18098
  need_lib_prefix=no
 
18099
  need_version=no
 
18100
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
18101
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18102
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
18103
    dynamic_linker='NetBSD (a.out) ld.so'
 
18104
  else
 
18105
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18106
    soname_spec='${libname}${release}${shared_ext}$major'
 
18107
    dynamic_linker='NetBSD ld.elf_so'
 
18108
  fi
 
18109
  shlibpath_var=LD_LIBRARY_PATH
 
18110
  shlibpath_overrides_runpath=yes
 
18111
  hardcode_into_libs=yes
 
18112
  ;;
 
18113
 
 
18114
newsos6)
 
18115
  version_type=linux
 
18116
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18117
  shlibpath_var=LD_LIBRARY_PATH
 
18118
  shlibpath_overrides_runpath=yes
 
18119
  ;;
 
18120
 
 
18121
nto-qnx*)
 
18122
  version_type=linux
 
18123
  need_lib_prefix=no
 
18124
  need_version=no
 
18125
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18126
  soname_spec='${libname}${release}${shared_ext}$major'
 
18127
  shlibpath_var=LD_LIBRARY_PATH
 
18128
  shlibpath_overrides_runpath=yes
 
18129
  ;;
 
18130
 
 
18131
openbsd*)
 
18132
  version_type=sunos
 
18133
  sys_lib_dlsearch_path_spec="/usr/lib"
 
18134
  need_lib_prefix=no
 
18135
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
18136
  case $host_os in
 
18137
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
18138
    *)                         need_version=no  ;;
 
18139
  esac
 
18140
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18141
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
18142
  shlibpath_var=LD_LIBRARY_PATH
 
18143
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
18144
    case $host_os in
 
18145
      openbsd2.[89] | openbsd2.[89].*)
 
18146
        shlibpath_overrides_runpath=no
 
18147
        ;;
 
18148
      *)
 
18149
        shlibpath_overrides_runpath=yes
 
18150
        ;;
 
18151
      esac
 
18152
  else
 
18153
    shlibpath_overrides_runpath=yes
 
18154
  fi
 
18155
  ;;
 
18156
 
 
18157
os2*)
 
18158
  libname_spec='$name'
 
18159
  shrext_cmds=".dll"
 
18160
  need_lib_prefix=no
 
18161
  library_names_spec='$libname${shared_ext} $libname.a'
 
18162
  dynamic_linker='OS/2 ld.exe'
 
18163
  shlibpath_var=LIBPATH
 
18164
  ;;
 
18165
 
 
18166
osf3* | osf4* | osf5*)
 
18167
  version_type=osf
 
18168
  need_lib_prefix=no
 
18169
  need_version=no
 
18170
  soname_spec='${libname}${release}${shared_ext}$major'
 
18171
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18172
  shlibpath_var=LD_LIBRARY_PATH
 
18173
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
18174
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
18175
  ;;
 
18176
 
 
18177
solaris*)
 
18178
  version_type=linux
 
18179
  need_lib_prefix=no
 
18180
  need_version=no
 
18181
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18182
  soname_spec='${libname}${release}${shared_ext}$major'
 
18183
  shlibpath_var=LD_LIBRARY_PATH
 
18184
  shlibpath_overrides_runpath=yes
 
18185
  hardcode_into_libs=yes
 
18186
  # ldd complains unless libraries are executable
 
18187
  postinstall_cmds='chmod +x $lib'
 
18188
  ;;
 
18189
 
 
18190
sunos4*)
 
18191
  version_type=sunos
 
18192
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18193
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
18194
  shlibpath_var=LD_LIBRARY_PATH
 
18195
  shlibpath_overrides_runpath=yes
 
18196
  if test "$with_gnu_ld" = yes; then
 
18197
    need_lib_prefix=no
 
18198
  fi
 
18199
  need_version=yes
 
18200
  ;;
 
18201
 
 
18202
sysv4 | sysv4.3*)
 
18203
  version_type=linux
 
18204
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18205
  soname_spec='${libname}${release}${shared_ext}$major'
 
18206
  shlibpath_var=LD_LIBRARY_PATH
 
18207
  case $host_vendor in
 
18208
    sni)
 
18209
      shlibpath_overrides_runpath=no
 
18210
      need_lib_prefix=no
 
18211
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
18212
      runpath_var=LD_RUN_PATH
 
18213
      ;;
 
18214
    siemens)
 
18215
      need_lib_prefix=no
 
18216
      ;;
 
18217
    motorola)
 
18218
      need_lib_prefix=no
 
18219
      need_version=no
 
18220
      shlibpath_overrides_runpath=no
 
18221
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
18222
      ;;
 
18223
  esac
 
18224
  ;;
 
18225
 
 
18226
sysv4*MP*)
 
18227
  if test -d /usr/nec ;then
 
18228
    version_type=linux
 
18229
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
18230
    soname_spec='$libname${shared_ext}.$major'
 
18231
    shlibpath_var=LD_LIBRARY_PATH
 
18232
  fi
 
18233
  ;;
 
18234
 
 
18235
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
 
18236
  version_type=freebsd-elf
 
18237
  need_lib_prefix=no
 
18238
  need_version=no
 
18239
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
18240
  soname_spec='${libname}${release}${shared_ext}$major'
 
18241
  shlibpath_var=LD_LIBRARY_PATH
 
18242
  hardcode_into_libs=yes
 
18243
  if test "$with_gnu_ld" = yes; then
 
18244
    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
 
18245
    shlibpath_overrides_runpath=no
 
18246
  else
 
18247
    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
 
18248
    shlibpath_overrides_runpath=yes
 
18249
    case $host_os in
 
18250
      sco3.2v5*)
 
18251
        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
 
18252
        ;;
 
18253
    esac
 
18254
  fi
 
18255
  sys_lib_dlsearch_path_spec='/usr/lib'
 
18256
  ;;
 
18257
 
 
18258
uts4*)
 
18259
  version_type=linux
 
18260
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18261
  soname_spec='${libname}${release}${shared_ext}$major'
 
18262
  shlibpath_var=LD_LIBRARY_PATH
 
18263
  ;;
 
18264
 
 
18265
*)
 
18266
  dynamic_linker=no
 
18267
  ;;
 
18268
esac
 
18269
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
18270
echo "${ECHO_T}$dynamic_linker" >&6; }
 
18271
test "$dynamic_linker" = no && can_build_shared=no
 
18272
 
 
18273
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
18274
if test "$GCC" = yes; then
 
18275
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
18276
fi
 
18277
 
 
18278
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
18279
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
 
18280
hardcode_action_GCJ=
 
18281
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
 
18282
   test -n "$runpath_var_GCJ" || \
 
18283
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
 
18284
 
 
18285
  # We can hardcode non-existant directories.
 
18286
  if test "$hardcode_direct_GCJ" != no &&
 
18287
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
18288
     # have to relink, otherwise we might link with an installed library
 
18289
     # when we should be linking with a yet-to-be-installed one
 
18290
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
 
18291
     test "$hardcode_minus_L_GCJ" != no; then
 
18292
    # Linking always hardcodes the temporary library directory.
 
18293
    hardcode_action_GCJ=relink
 
18294
  else
 
18295
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
18296
    hardcode_action_GCJ=immediate
 
18297
  fi
 
18298
else
 
18299
  # We cannot hardcode anything, or else we can only hardcode existing
 
18300
  # directories.
 
18301
  hardcode_action_GCJ=unsupported
 
18302
fi
 
18303
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
18304
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
 
18305
 
 
18306
if test "$hardcode_action_GCJ" = relink; then
 
18307
  # Fast installation is not supported
 
18308
  enable_fast_install=no
 
18309
elif test "$shlibpath_overrides_runpath" = yes ||
 
18310
     test "$enable_shared" = no; then
 
18311
  # Fast installation is not necessary
 
18312
  enable_fast_install=needless
 
18313
fi
 
18314
 
 
18315
 
 
18316
# The else clause should only fire when bootstrapping the
 
18317
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
18318
# with your package, and you will get complaints that there are
 
18319
# no rules to generate ltmain.sh.
 
18320
if test -f "$ltmain"; then
 
18321
  # See if we are running on zsh, and set the options which allow our commands through
 
18322
  # without removal of \ escapes.
 
18323
  if test -n "${ZSH_VERSION+set}" ; then
 
18324
    setopt NO_GLOB_SUBST
 
18325
  fi
 
18326
  # Now quote all the things that may contain metacharacters while being
 
18327
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
18328
  # variables and quote the copies for generation of the libtool script.
 
18329
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
18330
    SED SHELL STRIP \
 
18331
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
18332
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
18333
    deplibs_check_method reload_flag reload_cmds need_locks \
 
18334
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
18335
    lt_cv_sys_global_symbol_to_c_name_address \
 
18336
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
18337
    old_postinstall_cmds old_postuninstall_cmds \
 
18338
    compiler_GCJ \
 
18339
    CC_GCJ \
 
18340
    LD_GCJ \
 
18341
    lt_prog_compiler_wl_GCJ \
 
18342
    lt_prog_compiler_pic_GCJ \
 
18343
    lt_prog_compiler_static_GCJ \
 
18344
    lt_prog_compiler_no_builtin_flag_GCJ \
 
18345
    export_dynamic_flag_spec_GCJ \
 
18346
    thread_safe_flag_spec_GCJ \
 
18347
    whole_archive_flag_spec_GCJ \
 
18348
    enable_shared_with_static_runtimes_GCJ \
 
18349
    old_archive_cmds_GCJ \
 
18350
    old_archive_from_new_cmds_GCJ \
 
18351
    predep_objects_GCJ \
 
18352
    postdep_objects_GCJ \
 
18353
    predeps_GCJ \
 
18354
    postdeps_GCJ \
 
18355
    compiler_lib_search_path_GCJ \
 
18356
    archive_cmds_GCJ \
 
18357
    archive_expsym_cmds_GCJ \
 
18358
    postinstall_cmds_GCJ \
 
18359
    postuninstall_cmds_GCJ \
 
18360
    old_archive_from_expsyms_cmds_GCJ \
 
18361
    allow_undefined_flag_GCJ \
 
18362
    no_undefined_flag_GCJ \
 
18363
    export_symbols_cmds_GCJ \
 
18364
    hardcode_libdir_flag_spec_GCJ \
 
18365
    hardcode_libdir_flag_spec_ld_GCJ \
 
18366
    hardcode_libdir_separator_GCJ \
 
18367
    hardcode_automatic_GCJ \
 
18368
    module_cmds_GCJ \
 
18369
    module_expsym_cmds_GCJ \
 
18370
    lt_cv_prog_compiler_c_o_GCJ \
 
18371
    exclude_expsyms_GCJ \
 
18372
    include_expsyms_GCJ; do
 
18373
 
 
18374
    case $var in
 
18375
    old_archive_cmds_GCJ | \
 
18376
    old_archive_from_new_cmds_GCJ | \
 
18377
    archive_cmds_GCJ | \
 
18378
    archive_expsym_cmds_GCJ | \
 
18379
    module_cmds_GCJ | \
 
18380
    module_expsym_cmds_GCJ | \
 
18381
    old_archive_from_expsyms_cmds_GCJ | \
 
18382
    export_symbols_cmds_GCJ | \
 
18383
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
18384
    postinstall_cmds | postuninstall_cmds | \
 
18385
    old_postinstall_cmds | old_postuninstall_cmds | \
 
18386
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
18387
      # Double-quote double-evaled strings.
 
18388
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
18389
      ;;
 
18390
    *)
 
18391
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
18392
      ;;
 
18393
    esac
 
18394
  done
 
18395
 
 
18396
  case $lt_echo in
 
18397
  *'\$0 --fallback-echo"')
 
18398
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
18399
    ;;
 
18400
  esac
 
18401
 
 
18402
cfgfile="$ofile"
 
18403
 
 
18404
  cat <<__EOF__ >> "$cfgfile"
 
18405
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
18406
 
 
18407
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
18408
 
 
18409
# Shell to use when invoking shell scripts.
 
18410
SHELL=$lt_SHELL
 
18411
 
 
18412
# Whether or not to build shared libraries.
 
18413
build_libtool_libs=$enable_shared
 
18414
 
 
18415
# Whether or not to build static libraries.
 
18416
build_old_libs=$enable_static
 
18417
 
 
18418
# Whether or not to add -lc for building shared libraries.
 
18419
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
 
18420
 
 
18421
# Whether or not to disallow shared libs when runtime libs are static
 
18422
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
 
18423
 
 
18424
# Whether or not to optimize for fast installation.
 
18425
fast_install=$enable_fast_install
 
18426
 
 
18427
# The host system.
 
18428
host_alias=$host_alias
 
18429
host=$host
 
18430
host_os=$host_os
 
18431
 
 
18432
# The build system.
 
18433
build_alias=$build_alias
 
18434
build=$build
 
18435
build_os=$build_os
 
18436
 
 
18437
# An echo program that does not interpret backslashes.
 
18438
echo=$lt_echo
 
18439
 
 
18440
# The archiver.
 
18441
AR=$lt_AR
 
18442
AR_FLAGS=$lt_AR_FLAGS
 
18443
 
 
18444
# A C compiler.
 
18445
LTCC=$lt_LTCC
 
18446
 
 
18447
# LTCC compiler flags.
 
18448
LTCFLAGS=$lt_LTCFLAGS
 
18449
 
 
18450
# A language-specific compiler.
 
18451
CC=$lt_compiler_GCJ
 
18452
 
 
18453
# Is the compiler the GNU C compiler?
 
18454
with_gcc=$GCC_GCJ
 
18455
 
 
18456
# An ERE matcher.
 
18457
EGREP=$lt_EGREP
 
18458
 
 
18459
# The linker used to build libraries.
 
18460
LD=$lt_LD_GCJ
 
18461
 
 
18462
# Whether we need hard or soft links.
 
18463
LN_S=$lt_LN_S
 
18464
 
 
18465
# A BSD-compatible nm program.
 
18466
NM=$lt_NM
 
18467
 
 
18468
# A symbol stripping program
 
18469
STRIP=$lt_STRIP
 
18470
 
 
18471
# Used to examine libraries when file_magic_cmd begins "file"
 
18472
MAGIC_CMD=$MAGIC_CMD
 
18473
 
 
18474
# Used on cygwin: DLL creation program.
 
18475
DLLTOOL="$DLLTOOL"
 
18476
 
 
18477
# Used on cygwin: object dumper.
 
18478
OBJDUMP="$OBJDUMP"
 
18479
 
 
18480
# Used on cygwin: assembler.
 
18481
AS="$AS"
 
18482
 
 
18483
# The name of the directory that contains temporary libtool files.
 
18484
objdir=$objdir
 
18485
 
 
18486
# How to create reloadable object files.
 
18487
reload_flag=$lt_reload_flag
 
18488
reload_cmds=$lt_reload_cmds
 
18489
 
 
18490
# How to pass a linker flag through the compiler.
 
18491
wl=$lt_lt_prog_compiler_wl_GCJ
 
18492
 
 
18493
# Object file suffix (normally "o").
 
18494
objext="$ac_objext"
 
18495
 
 
18496
# Old archive suffix (normally "a").
 
18497
libext="$libext"
 
18498
 
 
18499
# Shared library suffix (normally ".so").
 
18500
shrext_cmds='$shrext_cmds'
 
18501
 
 
18502
# Executable file suffix (normally "").
 
18503
exeext="$exeext"
 
18504
 
 
18505
# Additional compiler flags for building library objects.
 
18506
pic_flag=$lt_lt_prog_compiler_pic_GCJ
 
18507
pic_mode=$pic_mode
 
18508
 
 
18509
# What is the maximum length of a command?
 
18510
max_cmd_len=$lt_cv_sys_max_cmd_len
 
18511
 
 
18512
# Does compiler simultaneously support -c and -o options?
 
18513
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
 
18514
 
 
18515
# Must we lock files when doing compilation?
 
18516
need_locks=$lt_need_locks
 
18517
 
 
18518
# Do we need the lib prefix for modules?
 
18519
need_lib_prefix=$need_lib_prefix
 
18520
 
 
18521
# Do we need a version for libraries?
 
18522
need_version=$need_version
 
18523
 
 
18524
# Whether dlopen is supported.
 
18525
dlopen_support=$enable_dlopen
 
18526
 
 
18527
# Whether dlopen of programs is supported.
 
18528
dlopen_self=$enable_dlopen_self
 
18529
 
 
18530
# Whether dlopen of statically linked programs is supported.
 
18531
dlopen_self_static=$enable_dlopen_self_static
 
18532
 
 
18533
# Compiler flag to prevent dynamic linking.
 
18534
link_static_flag=$lt_lt_prog_compiler_static_GCJ
 
18535
 
 
18536
# Compiler flag to turn off builtin functions.
 
18537
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
 
18538
 
 
18539
# Compiler flag to allow reflexive dlopens.
 
18540
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
 
18541
 
 
18542
# Compiler flag to generate shared objects directly from archives.
 
18543
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
 
18544
 
 
18545
# Compiler flag to generate thread-safe objects.
 
18546
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
 
18547
 
 
18548
# Library versioning type.
 
18549
version_type=$version_type
 
18550
 
 
18551
# Format of library name prefix.
 
18552
libname_spec=$lt_libname_spec
 
18553
 
 
18554
# List of archive names.  First name is the real one, the rest are links.
 
18555
# The last name is the one that the linker finds with -lNAME.
 
18556
library_names_spec=$lt_library_names_spec
 
18557
 
 
18558
# The coded name of the library, if different from the real name.
 
18559
soname_spec=$lt_soname_spec
 
18560
 
 
18561
# Commands used to build and install an old-style archive.
 
18562
RANLIB=$lt_RANLIB
 
18563
old_archive_cmds=$lt_old_archive_cmds_GCJ
 
18564
old_postinstall_cmds=$lt_old_postinstall_cmds
 
18565
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
18566
 
 
18567
# Create an old-style archive from a shared archive.
 
18568
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
 
18569
 
 
18570
# Create a temporary old-style archive to link instead of a shared archive.
 
18571
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
 
18572
 
 
18573
# Commands used to build and install a shared archive.
 
18574
archive_cmds=$lt_archive_cmds_GCJ
 
18575
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
 
18576
postinstall_cmds=$lt_postinstall_cmds
 
18577
postuninstall_cmds=$lt_postuninstall_cmds
 
18578
 
 
18579
# Commands used to build a loadable module (assumed same as above if empty)
 
18580
module_cmds=$lt_module_cmds_GCJ
 
18581
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
 
18582
 
 
18583
# Commands to strip libraries.
 
18584
old_striplib=$lt_old_striplib
 
18585
striplib=$lt_striplib
 
18586
 
 
18587
# Dependencies to place before the objects being linked to create a
 
18588
# shared library.
 
18589
predep_objects=$lt_predep_objects_GCJ
 
18590
 
 
18591
# Dependencies to place after the objects being linked to create a
 
18592
# shared library.
 
18593
postdep_objects=$lt_postdep_objects_GCJ
 
18594
 
 
18595
# Dependencies to place before the objects being linked to create a
 
18596
# shared library.
 
18597
predeps=$lt_predeps_GCJ
 
18598
 
 
18599
# Dependencies to place after the objects being linked to create a
 
18600
# shared library.
 
18601
postdeps=$lt_postdeps_GCJ
 
18602
 
 
18603
# The library search path used internally by the compiler when linking
 
18604
# a shared library.
 
18605
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
 
18606
 
 
18607
# Method to check whether dependent libraries are shared objects.
 
18608
deplibs_check_method=$lt_deplibs_check_method
 
18609
 
 
18610
# Command to use when deplibs_check_method == file_magic.
 
18611
file_magic_cmd=$lt_file_magic_cmd
 
18612
 
 
18613
# Flag that allows shared libraries with undefined symbols to be built.
 
18614
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
 
18615
 
 
18616
# Flag that forces no undefined symbols.
 
18617
no_undefined_flag=$lt_no_undefined_flag_GCJ
 
18618
 
 
18619
# Commands used to finish a libtool library installation in a directory.
 
18620
finish_cmds=$lt_finish_cmds
 
18621
 
 
18622
# Same as above, but a single script fragment to be evaled but not shown.
 
18623
finish_eval=$lt_finish_eval
 
18624
 
 
18625
# Take the output of nm and produce a listing of raw symbols and C names.
 
18626
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
18627
 
 
18628
# Transform the output of nm in a proper C declaration
 
18629
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
18630
 
 
18631
# Transform the output of nm in a C name address pair
 
18632
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
18633
 
 
18634
# This is the shared library runtime path variable.
 
18635
runpath_var=$runpath_var
 
18636
 
 
18637
# This is the shared library path variable.
 
18638
shlibpath_var=$shlibpath_var
 
18639
 
 
18640
# Is shlibpath searched before the hard-coded library search path?
 
18641
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
18642
 
 
18643
# How to hardcode a shared library path into an executable.
 
18644
hardcode_action=$hardcode_action_GCJ
 
18645
 
 
18646
# Whether we should hardcode library paths into libraries.
 
18647
hardcode_into_libs=$hardcode_into_libs
 
18648
 
 
18649
# Flag to hardcode \$libdir into a binary during linking.
 
18650
# This must work even if \$libdir does not exist.
 
18651
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
 
18652
 
 
18653
# If ld is used when linking, flag to hardcode \$libdir into
 
18654
# a binary during linking. This must work even if \$libdir does
 
18655
# not exist.
 
18656
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
 
18657
 
 
18658
# Whether we need a single -rpath flag with a separated argument.
 
18659
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
 
18660
 
 
18661
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
18662
# resulting binary.
 
18663
hardcode_direct=$hardcode_direct_GCJ
 
18664
 
 
18665
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
18666
# resulting binary.
 
18667
hardcode_minus_L=$hardcode_minus_L_GCJ
 
18668
 
 
18669
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
18670
# the resulting binary.
 
18671
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
 
18672
 
 
18673
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
18674
# and all subsequent libraries and executables linked against it.
 
18675
hardcode_automatic=$hardcode_automatic_GCJ
 
18676
 
 
18677
# Variables whose values should be saved in libtool wrapper scripts and
 
18678
# restored at relink time.
 
18679
variables_saved_for_relink="$variables_saved_for_relink"
 
18680
 
 
18681
# Whether libtool must link a program against all its dependency libraries.
 
18682
link_all_deplibs=$link_all_deplibs_GCJ
 
18683
 
 
18684
# Compile-time system search path for libraries
 
18685
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
18686
 
 
18687
# Run-time system search path for libraries
 
18688
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
18689
 
 
18690
# Fix the shell variable \$srcfile for the compiler.
 
18691
fix_srcfile_path="$fix_srcfile_path_GCJ"
 
18692
 
 
18693
# Set to yes if exported symbols are required.
 
18694
always_export_symbols=$always_export_symbols_GCJ
 
18695
 
 
18696
# The commands to list exported symbols.
 
18697
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
 
18698
 
 
18699
# The commands to extract the exported symbol list from a shared archive.
 
18700
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
18701
 
 
18702
# Symbols that should not be listed in the preloaded symbols.
 
18703
exclude_expsyms=$lt_exclude_expsyms_GCJ
 
18704
 
 
18705
# Symbols that must always be exported.
 
18706
include_expsyms=$lt_include_expsyms_GCJ
 
18707
 
 
18708
# ### END LIBTOOL TAG CONFIG: $tagname
 
18709
 
 
18710
__EOF__
 
18711
 
 
18712
 
 
18713
else
 
18714
  # If there is no Makefile yet, we rely on a make rule to execute
 
18715
  # `config.status --recheck' to rerun these tests and create the
 
18716
  # libtool script then.
 
18717
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
18718
  if test -f "$ltmain_in"; then
 
18719
    test -f Makefile && make "$ltmain"
 
18720
  fi
 
18721
fi
 
18722
 
 
18723
 
 
18724
ac_ext=c
 
18725
ac_cpp='$CPP $CPPFLAGS'
 
18726
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
18727
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
18728
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
18729
 
 
18730
CC="$lt_save_CC"
 
18731
 
 
18732
        else
 
18733
          tagname=""
 
18734
        fi
 
18735
        ;;
 
18736
 
 
18737
      RC)
 
18738
 
 
18739
 
 
18740
# Source file extension for RC test sources.
 
18741
ac_ext=rc
 
18742
 
 
18743
# Object file extension for compiled RC test sources.
 
18744
objext=o
 
18745
objext_RC=$objext
 
18746
 
 
18747
# Code to be used in simple compile tests
 
18748
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
18749
 
 
18750
# Code to be used in simple link tests
 
18751
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
18752
 
 
18753
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
18754
 
 
18755
# If no C compiler was specified, use CC.
 
18756
LTCC=${LTCC-"$CC"}
 
18757
 
 
18758
# If no C compiler flags were specified, use CFLAGS.
 
18759
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
 
18760
 
 
18761
# Allow CC to be a program name with arguments.
 
18762
compiler=$CC
 
18763
 
 
18764
 
 
18765
# save warnings/boilerplate of simple test code
 
18766
ac_outfile=conftest.$ac_objext
 
18767
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
18768
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
18769
_lt_compiler_boilerplate=`cat conftest.err`
 
18770
$rm conftest*
 
18771
 
 
18772
ac_outfile=conftest.$ac_objext
 
18773
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
18774
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
 
18775
_lt_linker_boilerplate=`cat conftest.err`
 
18776
$rm conftest*
 
18777
 
 
18778
 
 
18779
# Allow CC to be a program name with arguments.
 
18780
lt_save_CC="$CC"
 
18781
CC=${RC-"windres"}
 
18782
compiler=$CC
 
18783
compiler_RC=$CC
 
18784
for cc_temp in $compiler""; do
 
18785
  case $cc_temp in
 
18786
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
18787
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
18788
    \-*) ;;
 
18789
    *) break;;
 
18790
  esac
 
18791
done
 
18792
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
18793
 
 
18794
lt_cv_prog_compiler_c_o_RC=yes
 
18795
 
 
18796
# The else clause should only fire when bootstrapping the
 
18797
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
18798
# with your package, and you will get complaints that there are
 
18799
# no rules to generate ltmain.sh.
 
18800
if test -f "$ltmain"; then
 
18801
  # See if we are running on zsh, and set the options which allow our commands through
 
18802
  # without removal of \ escapes.
 
18803
  if test -n "${ZSH_VERSION+set}" ; then
 
18804
    setopt NO_GLOB_SUBST
 
18805
  fi
 
18806
  # Now quote all the things that may contain metacharacters while being
 
18807
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
18808
  # variables and quote the copies for generation of the libtool script.
 
18809
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
 
18810
    SED SHELL STRIP \
 
18811
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
18812
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
18813
    deplibs_check_method reload_flag reload_cmds need_locks \
 
18814
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
18815
    lt_cv_sys_global_symbol_to_c_name_address \
 
18816
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
18817
    old_postinstall_cmds old_postuninstall_cmds \
 
18818
    compiler_RC \
 
18819
    CC_RC \
 
18820
    LD_RC \
 
18821
    lt_prog_compiler_wl_RC \
 
18822
    lt_prog_compiler_pic_RC \
 
18823
    lt_prog_compiler_static_RC \
 
18824
    lt_prog_compiler_no_builtin_flag_RC \
 
18825
    export_dynamic_flag_spec_RC \
 
18826
    thread_safe_flag_spec_RC \
 
18827
    whole_archive_flag_spec_RC \
 
18828
    enable_shared_with_static_runtimes_RC \
 
18829
    old_archive_cmds_RC \
 
18830
    old_archive_from_new_cmds_RC \
 
18831
    predep_objects_RC \
 
18832
    postdep_objects_RC \
 
18833
    predeps_RC \
 
18834
    postdeps_RC \
 
18835
    compiler_lib_search_path_RC \
 
18836
    archive_cmds_RC \
 
18837
    archive_expsym_cmds_RC \
 
18838
    postinstall_cmds_RC \
 
18839
    postuninstall_cmds_RC \
 
18840
    old_archive_from_expsyms_cmds_RC \
 
18841
    allow_undefined_flag_RC \
 
18842
    no_undefined_flag_RC \
 
18843
    export_symbols_cmds_RC \
 
18844
    hardcode_libdir_flag_spec_RC \
 
18845
    hardcode_libdir_flag_spec_ld_RC \
 
18846
    hardcode_libdir_separator_RC \
 
18847
    hardcode_automatic_RC \
 
18848
    module_cmds_RC \
 
18849
    module_expsym_cmds_RC \
 
18850
    lt_cv_prog_compiler_c_o_RC \
 
18851
    exclude_expsyms_RC \
 
18852
    include_expsyms_RC; do
 
18853
 
 
18854
    case $var in
 
18855
    old_archive_cmds_RC | \
 
18856
    old_archive_from_new_cmds_RC | \
 
18857
    archive_cmds_RC | \
 
18858
    archive_expsym_cmds_RC | \
 
18859
    module_cmds_RC | \
 
18860
    module_expsym_cmds_RC | \
 
18861
    old_archive_from_expsyms_cmds_RC | \
 
18862
    export_symbols_cmds_RC | \
 
18863
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
18864
    postinstall_cmds | postuninstall_cmds | \
 
18865
    old_postinstall_cmds | old_postuninstall_cmds | \
 
18866
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
18867
      # Double-quote double-evaled strings.
 
18868
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
18869
      ;;
 
18870
    *)
 
18871
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
18872
      ;;
 
18873
    esac
 
18874
  done
 
18875
 
 
18876
  case $lt_echo in
 
18877
  *'\$0 --fallback-echo"')
 
18878
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
18879
    ;;
 
18880
  esac
 
18881
 
 
18882
cfgfile="$ofile"
 
18883
 
 
18884
  cat <<__EOF__ >> "$cfgfile"
 
18885
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
18886
 
 
18887
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
18888
 
 
18889
# Shell to use when invoking shell scripts.
 
18890
SHELL=$lt_SHELL
 
18891
 
 
18892
# Whether or not to build shared libraries.
 
18893
build_libtool_libs=$enable_shared
 
18894
 
 
18895
# Whether or not to build static libraries.
 
18896
build_old_libs=$enable_static
 
18897
 
 
18898
# Whether or not to add -lc for building shared libraries.
 
18899
build_libtool_need_lc=$archive_cmds_need_lc_RC
 
18900
 
 
18901
# Whether or not to disallow shared libs when runtime libs are static
 
18902
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
 
18903
 
 
18904
# Whether or not to optimize for fast installation.
 
18905
fast_install=$enable_fast_install
 
18906
 
 
18907
# The host system.
 
18908
host_alias=$host_alias
 
18909
host=$host
 
18910
host_os=$host_os
 
18911
 
 
18912
# The build system.
 
18913
build_alias=$build_alias
 
18914
build=$build
 
18915
build_os=$build_os
 
18916
 
 
18917
# An echo program that does not interpret backslashes.
 
18918
echo=$lt_echo
 
18919
 
 
18920
# The archiver.
 
18921
AR=$lt_AR
 
18922
AR_FLAGS=$lt_AR_FLAGS
 
18923
 
 
18924
# A C compiler.
 
18925
LTCC=$lt_LTCC
 
18926
 
 
18927
# LTCC compiler flags.
 
18928
LTCFLAGS=$lt_LTCFLAGS
 
18929
 
 
18930
# A language-specific compiler.
 
18931
CC=$lt_compiler_RC
 
18932
 
 
18933
# Is the compiler the GNU C compiler?
 
18934
with_gcc=$GCC_RC
 
18935
 
 
18936
# An ERE matcher.
 
18937
EGREP=$lt_EGREP
 
18938
 
 
18939
# The linker used to build libraries.
 
18940
LD=$lt_LD_RC
 
18941
 
 
18942
# Whether we need hard or soft links.
 
18943
LN_S=$lt_LN_S
 
18944
 
 
18945
# A BSD-compatible nm program.
 
18946
NM=$lt_NM
 
18947
 
 
18948
# A symbol stripping program
 
18949
STRIP=$lt_STRIP
 
18950
 
 
18951
# Used to examine libraries when file_magic_cmd begins "file"
 
18952
MAGIC_CMD=$MAGIC_CMD
 
18953
 
 
18954
# Used on cygwin: DLL creation program.
 
18955
DLLTOOL="$DLLTOOL"
 
18956
 
 
18957
# Used on cygwin: object dumper.
 
18958
OBJDUMP="$OBJDUMP"
 
18959
 
 
18960
# Used on cygwin: assembler.
 
18961
AS="$AS"
 
18962
 
 
18963
# The name of the directory that contains temporary libtool files.
 
18964
objdir=$objdir
 
18965
 
 
18966
# How to create reloadable object files.
 
18967
reload_flag=$lt_reload_flag
 
18968
reload_cmds=$lt_reload_cmds
 
18969
 
 
18970
# How to pass a linker flag through the compiler.
 
18971
wl=$lt_lt_prog_compiler_wl_RC
 
18972
 
 
18973
# Object file suffix (normally "o").
 
18974
objext="$ac_objext"
 
18975
 
 
18976
# Old archive suffix (normally "a").
 
18977
libext="$libext"
 
18978
 
 
18979
# Shared library suffix (normally ".so").
 
18980
shrext_cmds='$shrext_cmds'
 
18981
 
 
18982
# Executable file suffix (normally "").
 
18983
exeext="$exeext"
 
18984
 
 
18985
# Additional compiler flags for building library objects.
 
18986
pic_flag=$lt_lt_prog_compiler_pic_RC
 
18987
pic_mode=$pic_mode
 
18988
 
 
18989
# What is the maximum length of a command?
 
18990
max_cmd_len=$lt_cv_sys_max_cmd_len
 
18991
 
 
18992
# Does compiler simultaneously support -c and -o options?
 
18993
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
 
18994
 
 
18995
# Must we lock files when doing compilation?
 
18996
need_locks=$lt_need_locks
 
18997
 
 
18998
# Do we need the lib prefix for modules?
 
18999
need_lib_prefix=$need_lib_prefix
 
19000
 
 
19001
# Do we need a version for libraries?
 
19002
need_version=$need_version
 
19003
 
 
19004
# Whether dlopen is supported.
 
19005
dlopen_support=$enable_dlopen
 
19006
 
 
19007
# Whether dlopen of programs is supported.
 
19008
dlopen_self=$enable_dlopen_self
 
19009
 
 
19010
# Whether dlopen of statically linked programs is supported.
 
19011
dlopen_self_static=$enable_dlopen_self_static
 
19012
 
 
19013
# Compiler flag to prevent dynamic linking.
 
19014
link_static_flag=$lt_lt_prog_compiler_static_RC
 
19015
 
 
19016
# Compiler flag to turn off builtin functions.
 
19017
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
 
19018
 
 
19019
# Compiler flag to allow reflexive dlopens.
 
19020
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
 
19021
 
 
19022
# Compiler flag to generate shared objects directly from archives.
 
19023
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
 
19024
 
 
19025
# Compiler flag to generate thread-safe objects.
 
19026
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
 
19027
 
 
19028
# Library versioning type.
 
19029
version_type=$version_type
 
19030
 
 
19031
# Format of library name prefix.
 
19032
libname_spec=$lt_libname_spec
 
19033
 
 
19034
# List of archive names.  First name is the real one, the rest are links.
 
19035
# The last name is the one that the linker finds with -lNAME.
 
19036
library_names_spec=$lt_library_names_spec
 
19037
 
 
19038
# The coded name of the library, if different from the real name.
 
19039
soname_spec=$lt_soname_spec
 
19040
 
 
19041
# Commands used to build and install an old-style archive.
 
19042
RANLIB=$lt_RANLIB
 
19043
old_archive_cmds=$lt_old_archive_cmds_RC
 
19044
old_postinstall_cmds=$lt_old_postinstall_cmds
 
19045
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
19046
 
 
19047
# Create an old-style archive from a shared archive.
 
19048
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
 
19049
 
 
19050
# Create a temporary old-style archive to link instead of a shared archive.
 
19051
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
 
19052
 
 
19053
# Commands used to build and install a shared archive.
 
19054
archive_cmds=$lt_archive_cmds_RC
 
19055
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
 
19056
postinstall_cmds=$lt_postinstall_cmds
 
19057
postuninstall_cmds=$lt_postuninstall_cmds
 
19058
 
 
19059
# Commands used to build a loadable module (assumed same as above if empty)
 
19060
module_cmds=$lt_module_cmds_RC
 
19061
module_expsym_cmds=$lt_module_expsym_cmds_RC
 
19062
 
 
19063
# Commands to strip libraries.
 
19064
old_striplib=$lt_old_striplib
 
19065
striplib=$lt_striplib
 
19066
 
 
19067
# Dependencies to place before the objects being linked to create a
 
19068
# shared library.
 
19069
predep_objects=$lt_predep_objects_RC
 
19070
 
 
19071
# Dependencies to place after the objects being linked to create a
 
19072
# shared library.
 
19073
postdep_objects=$lt_postdep_objects_RC
 
19074
 
 
19075
# Dependencies to place before the objects being linked to create a
 
19076
# shared library.
 
19077
predeps=$lt_predeps_RC
 
19078
 
 
19079
# Dependencies to place after the objects being linked to create a
 
19080
# shared library.
 
19081
postdeps=$lt_postdeps_RC
 
19082
 
 
19083
# The library search path used internally by the compiler when linking
 
19084
# a shared library.
 
19085
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
 
19086
 
 
19087
# Method to check whether dependent libraries are shared objects.
 
19088
deplibs_check_method=$lt_deplibs_check_method
 
19089
 
 
19090
# Command to use when deplibs_check_method == file_magic.
 
19091
file_magic_cmd=$lt_file_magic_cmd
 
19092
 
 
19093
# Flag that allows shared libraries with undefined symbols to be built.
 
19094
allow_undefined_flag=$lt_allow_undefined_flag_RC
 
19095
 
 
19096
# Flag that forces no undefined symbols.
 
19097
no_undefined_flag=$lt_no_undefined_flag_RC
 
19098
 
 
19099
# Commands used to finish a libtool library installation in a directory.
 
19100
finish_cmds=$lt_finish_cmds
 
19101
 
 
19102
# Same as above, but a single script fragment to be evaled but not shown.
 
19103
finish_eval=$lt_finish_eval
 
19104
 
 
19105
# Take the output of nm and produce a listing of raw symbols and C names.
 
19106
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
19107
 
 
19108
# Transform the output of nm in a proper C declaration
 
19109
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
19110
 
 
19111
# Transform the output of nm in a C name address pair
 
19112
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
19113
 
 
19114
# This is the shared library runtime path variable.
 
19115
runpath_var=$runpath_var
 
19116
 
 
19117
# This is the shared library path variable.
 
19118
shlibpath_var=$shlibpath_var
 
19119
 
 
19120
# Is shlibpath searched before the hard-coded library search path?
 
19121
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
19122
 
 
19123
# How to hardcode a shared library path into an executable.
 
19124
hardcode_action=$hardcode_action_RC
 
19125
 
 
19126
# Whether we should hardcode library paths into libraries.
 
19127
hardcode_into_libs=$hardcode_into_libs
 
19128
 
 
19129
# Flag to hardcode \$libdir into a binary during linking.
 
19130
# This must work even if \$libdir does not exist.
 
19131
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
 
19132
 
 
19133
# If ld is used when linking, flag to hardcode \$libdir into
 
19134
# a binary during linking. This must work even if \$libdir does
 
19135
# not exist.
 
19136
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
 
19137
 
 
19138
# Whether we need a single -rpath flag with a separated argument.
 
19139
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
 
19140
 
 
19141
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
19142
# resulting binary.
 
19143
hardcode_direct=$hardcode_direct_RC
 
19144
 
 
19145
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
19146
# resulting binary.
 
19147
hardcode_minus_L=$hardcode_minus_L_RC
 
19148
 
 
19149
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
19150
# the resulting binary.
 
19151
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
 
19152
 
 
19153
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
19154
# and all subsequent libraries and executables linked against it.
 
19155
hardcode_automatic=$hardcode_automatic_RC
 
19156
 
 
19157
# Variables whose values should be saved in libtool wrapper scripts and
 
19158
# restored at relink time.
 
19159
variables_saved_for_relink="$variables_saved_for_relink"
 
19160
 
 
19161
# Whether libtool must link a program against all its dependency libraries.
 
19162
link_all_deplibs=$link_all_deplibs_RC
 
19163
 
 
19164
# Compile-time system search path for libraries
 
19165
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
19166
 
 
19167
# Run-time system search path for libraries
 
19168
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
19169
 
 
19170
# Fix the shell variable \$srcfile for the compiler.
 
19171
fix_srcfile_path="$fix_srcfile_path_RC"
 
19172
 
 
19173
# Set to yes if exported symbols are required.
 
19174
always_export_symbols=$always_export_symbols_RC
 
19175
 
 
19176
# The commands to list exported symbols.
 
19177
export_symbols_cmds=$lt_export_symbols_cmds_RC
 
19178
 
 
19179
# The commands to extract the exported symbol list from a shared archive.
 
19180
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
19181
 
 
19182
# Symbols that should not be listed in the preloaded symbols.
 
19183
exclude_expsyms=$lt_exclude_expsyms_RC
 
19184
 
 
19185
# Symbols that must always be exported.
 
19186
include_expsyms=$lt_include_expsyms_RC
 
19187
 
 
19188
# ### END LIBTOOL TAG CONFIG: $tagname
 
19189
 
 
19190
__EOF__
 
19191
 
 
19192
 
 
19193
else
 
19194
  # If there is no Makefile yet, we rely on a make rule to execute
 
19195
  # `config.status --recheck' to rerun these tests and create the
 
19196
  # libtool script then.
 
19197
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
19198
  if test -f "$ltmain_in"; then
 
19199
    test -f Makefile && make "$ltmain"
 
19200
  fi
 
19201
fi
 
19202
 
 
19203
 
 
19204
ac_ext=c
 
19205
ac_cpp='$CPP $CPPFLAGS'
 
19206
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19207
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19208
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19209
 
 
19210
CC="$lt_save_CC"
 
19211
 
 
19212
        ;;
 
19213
 
 
19214
      *)
 
19215
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
 
19216
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
 
19217
   { (exit 1); exit 1; }; }
 
19218
        ;;
 
19219
      esac
 
19220
 
 
19221
      # Append the new tag name to the list of available tags.
 
19222
      if test -n "$tagname" ; then
 
19223
      available_tags="$available_tags $tagname"
 
19224
    fi
 
19225
    fi
 
19226
  done
 
19227
  IFS="$lt_save_ifs"
 
19228
 
 
19229
  # Now substitute the updated list of available tags.
 
19230
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
19231
    mv "${ofile}T" "$ofile"
 
19232
    chmod +x "$ofile"
 
19233
  else
 
19234
    rm -f "${ofile}T"
 
19235
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
 
19236
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
 
19237
   { (exit 1); exit 1; }; }
 
19238
  fi
 
19239
fi
 
19240
 
 
19241
 
 
19242
 
 
19243
# This can be used to rebuild libtool when needed
 
19244
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
19245
 
 
19246
# Always use our own libtool.
 
19247
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
19248
 
 
19249
# Prevent multiple expansion
 
19250
 
 
19251
 
 
19252
 
 
19253
 
 
19254
 
 
19255
 
 
19256
 
 
19257
 
 
19258
 
 
19259
 
 
19260
 
 
19261
 
 
19262
 
 
19263
 
 
19264
 
 
19265
 
 
19266
 
 
19267
 
 
19268
 
 
19269
 
 
19270
if test "x$CC" != xcc; then
 
19271
  { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
 
19272
echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
 
19273
else
 
19274
  { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
 
19275
echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
 
19276
fi
 
19277
set dummy $CC; ac_cc=`echo $2 |
 
19278
                      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
 
19279
if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
 
19280
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19281
else
 
19282
  cat >conftest.$ac_ext <<_ACEOF
 
19283
/* confdefs.h.  */
 
19284
_ACEOF
 
19285
cat confdefs.h >>conftest.$ac_ext
 
19286
cat >>conftest.$ac_ext <<_ACEOF
 
19287
/* end confdefs.h.  */
 
19288
 
 
19289
int
 
19290
main ()
 
19291
{
 
19292
 
 
19293
  ;
 
19294
  return 0;
 
19295
}
 
19296
_ACEOF
 
19297
# Make sure it works both with $CC and with simple cc.
 
19298
# We do the test twice because some compilers refuse to overwrite an
 
19299
# existing .o file with -o, though they will create one.
 
19300
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
 
19301
rm -f conftest2.*
 
19302
if { (case "(($ac_try" in
 
19303
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19304
  *) ac_try_echo=$ac_try;;
 
19305
esac
 
19306
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19307
  (eval "$ac_try") 2>&5
 
19308
  ac_status=$?
 
19309
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19310
  (exit $ac_status); } &&
 
19311
   test -f conftest2.$ac_objext && { (case "(($ac_try" in
 
19312
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19313
  *) ac_try_echo=$ac_try;;
 
19314
esac
 
19315
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19316
  (eval "$ac_try") 2>&5
 
19317
  ac_status=$?
 
19318
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19319
  (exit $ac_status); };
 
19320
then
 
19321
  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
 
19322
  if test "x$CC" != xcc; then
 
19323
    # Test first that cc exists at all.
 
19324
    if { ac_try='cc -c conftest.$ac_ext >&5'
 
19325
  { (case "(($ac_try" in
 
19326
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19327
  *) ac_try_echo=$ac_try;;
 
19328
esac
 
19329
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19330
  (eval "$ac_try") 2>&5
 
19331
  ac_status=$?
 
19332
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19333
  (exit $ac_status); }; }; then
 
19334
      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
 
19335
      rm -f conftest2.*
 
19336
      if { (case "(($ac_try" in
 
19337
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19338
  *) ac_try_echo=$ac_try;;
 
19339
esac
 
19340
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19341
  (eval "$ac_try") 2>&5
 
19342
  ac_status=$?
 
19343
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19344
  (exit $ac_status); } &&
 
19345
         test -f conftest2.$ac_objext && { (case "(($ac_try" in
 
19346
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19347
  *) ac_try_echo=$ac_try;;
 
19348
esac
 
19349
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19350
  (eval "$ac_try") 2>&5
 
19351
  ac_status=$?
 
19352
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19353
  (exit $ac_status); };
 
19354
      then
 
19355
        # cc works too.
 
19356
        :
 
19357
      else
 
19358
        # cc exists but doesn't like -o.
 
19359
        eval ac_cv_prog_cc_${ac_cc}_c_o=no
 
19360
      fi
 
19361
    fi
 
19362
  fi
 
19363
else
 
19364
  eval ac_cv_prog_cc_${ac_cc}_c_o=no
 
19365
fi
 
19366
rm -f core conftest*
 
19367
 
 
19368
fi
 
19369
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
 
19370
  { echo "$as_me:$LINENO: result: yes" >&5
 
19371
echo "${ECHO_T}yes" >&6; }
 
19372
else
 
19373
  { echo "$as_me:$LINENO: result: no" >&5
 
19374
echo "${ECHO_T}no" >&6; }
 
19375
 
 
19376
cat >>confdefs.h <<\_ACEOF
 
19377
#define NO_MINUS_C_MINUS_O 1
 
19378
_ACEOF
 
19379
 
 
19380
fi
 
19381
 
 
19382
# FIXME: we rely on the cache variable name because
 
19383
# there is no other way.
 
19384
set dummy $CC
 
19385
ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
 
19386
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
 
19387
   # Losing compiler, so override with the script.
 
19388
   # FIXME: It is wrong to rewrite CC.
 
19389
   # But if we don't then we get into trouble of one sort or another.
 
19390
   # A longer-term fix would be to have automake use am__CC in this case,
 
19391
   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
 
19392
   CC="$am_aux_dir/compile $CC"
 
19393
fi
 
19394
 
 
19395
 
 
19396
 
 
19397
# Checks for header files.
 
19398
 
 
19399
 
 
19400
 
 
19401
 
 
19402
 
 
19403
 
 
19404
 
 
19405
for ac_header in errno.h stdio.h stdlib.h string.h syslog.h unistd.h usb.h
 
19406
do
 
19407
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
19408
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
19409
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
19410
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
19411
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
19412
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19413
fi
 
19414
ac_res=`eval echo '${'$as_ac_Header'}'`
 
19415
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
19416
echo "${ECHO_T}$ac_res" >&6; }
 
19417
else
 
19418
  # Is the header compilable?
 
19419
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
19420
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
19421
cat >conftest.$ac_ext <<_ACEOF
 
19422
/* confdefs.h.  */
 
19423
_ACEOF
 
19424
cat confdefs.h >>conftest.$ac_ext
 
19425
cat >>conftest.$ac_ext <<_ACEOF
 
19426
/* end confdefs.h.  */
 
19427
$ac_includes_default
 
19428
#include <$ac_header>
 
19429
_ACEOF
 
19430
rm -f conftest.$ac_objext
 
19431
if { (ac_try="$ac_compile"
 
19432
case "(($ac_try" in
 
19433
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19434
  *) ac_try_echo=$ac_try;;
 
19435
esac
 
19436
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19437
  (eval "$ac_compile") 2>conftest.er1
 
19438
  ac_status=$?
 
19439
  grep -v '^ *+' conftest.er1 >conftest.err
 
19440
  rm -f conftest.er1
 
19441
  cat conftest.err >&5
 
19442
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19443
  (exit $ac_status); } && {
 
19444
         test -z "$ac_c_werror_flag" ||
 
19445
         test ! -s conftest.err
 
19446
       } && test -s conftest.$ac_objext; then
 
19447
  ac_header_compiler=yes
 
19448
else
 
19449
  echo "$as_me: failed program was:" >&5
 
19450
sed 's/^/| /' conftest.$ac_ext >&5
 
19451
 
 
19452
        ac_header_compiler=no
 
19453
fi
 
19454
 
 
19455
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19456
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
19457
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
19458
 
 
19459
# Is the header present?
 
19460
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
19461
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
19462
cat >conftest.$ac_ext <<_ACEOF
 
19463
/* confdefs.h.  */
 
19464
_ACEOF
 
19465
cat confdefs.h >>conftest.$ac_ext
 
19466
cat >>conftest.$ac_ext <<_ACEOF
 
19467
/* end confdefs.h.  */
 
19468
#include <$ac_header>
 
19469
_ACEOF
 
19470
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
19471
case "(($ac_try" in
 
19472
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19473
  *) ac_try_echo=$ac_try;;
 
19474
esac
 
19475
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19476
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
19477
  ac_status=$?
 
19478
  grep -v '^ *+' conftest.er1 >conftest.err
 
19479
  rm -f conftest.er1
 
19480
  cat conftest.err >&5
 
19481
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19482
  (exit $ac_status); } >/dev/null && {
 
19483
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
19484
         test ! -s conftest.err
 
19485
       }; then
 
19486
  ac_header_preproc=yes
 
19487
else
 
19488
  echo "$as_me: failed program was:" >&5
 
19489
sed 's/^/| /' conftest.$ac_ext >&5
 
19490
 
 
19491
  ac_header_preproc=no
 
19492
fi
 
19493
 
 
19494
rm -f conftest.err conftest.$ac_ext
 
19495
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
19496
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
19497
 
 
19498
# So?  What about this header?
 
19499
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
19500
  yes:no: )
 
19501
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
19502
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
19503
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
19504
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
19505
    ac_header_preproc=yes
 
19506
    ;;
 
19507
  no:yes:* )
 
19508
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
19509
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
19510
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
19511
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
19512
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
19513
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
19514
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
19515
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
19516
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
19517
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
19518
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
19519
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
19520
    ( cat <<\_ASBOX
 
19521
## -------------------------------------------------- ##
 
19522
## Report this to http://thinkfinger.sourceforge.net/ ##
 
19523
## -------------------------------------------------- ##
 
19524
_ASBOX
 
19525
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
19526
    ;;
 
19527
esac
 
19528
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
19529
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
19530
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
19531
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19532
else
 
19533
  eval "$as_ac_Header=\$ac_header_preproc"
 
19534
fi
 
19535
ac_res=`eval echo '${'$as_ac_Header'}'`
 
19536
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
19537
echo "${ECHO_T}$ac_res" >&6; }
 
19538
 
 
19539
fi
 
19540
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
19541
  cat >>confdefs.h <<_ACEOF
 
19542
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
19543
_ACEOF
 
19544
 
 
19545
fi
 
19546
 
 
19547
done
 
19548
 
 
19549
 
 
19550
# AC_ARG_ENABLE USB_DEBUG
 
19551
{ echo "$as_me:$LINENO: checking whether to build with USB hooks for debugging" >&5
 
19552
echo $ECHO_N "checking whether to build with USB hooks for debugging... $ECHO_C" >&6; }
 
19553
# Check whether --enable-usb-debug was given.
 
19554
if test "${enable_usb_debug+set}" = set; then
 
19555
  enableval=$enable_usb_debug; enable_usb_debug=$enableval
 
19556
else
 
19557
  enable_usb_debug=no
 
19558
fi
 
19559
 
 
19560
{ echo "$as_me:$LINENO: result: $enable_usb_debug" >&5
 
19561
echo "${ECHO_T}$enable_usb_debug" >&6; }
 
19562
 
 
19563
if test "x$enable_usb_debug" = "xyes"; then
 
19564
 
 
19565
cat >>confdefs.h <<_ACEOF
 
19566
#define USB_DEBUG 1
 
19567
_ACEOF
 
19568
 
 
19569
fi
 
19570
 
 
19571
# AC_ARG_ENABLE PAM
 
19572
{ echo "$as_me:$LINENO: checking whether to build the pluggable authentication module (PAM)" >&5
 
19573
echo $ECHO_N "checking whether to build the pluggable authentication module (PAM)... $ECHO_C" >&6; }
 
19574
# Check whether --enable-pam was given.
 
19575
if test "${enable_pam+set}" = set; then
 
19576
  enableval=$enable_pam; enable_pam=$enableval
 
19577
else
 
19578
  enable_pam=yes
 
19579
fi
 
19580
 
 
19581
{ echo "$as_me:$LINENO: result: $enable_pam" >&5
 
19582
echo "${ECHO_T}$enable_pam" >&6; }
 
19583
 
 
19584
if test "x$enable_pam" != "xno"; then
 
19585
 
 
19586
 
 
19587
for ac_header in security/pam_appl.h security/pam_modules.h
 
19588
do
 
19589
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
19590
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
19591
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
19592
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
19593
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
19594
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19595
fi
 
19596
ac_res=`eval echo '${'$as_ac_Header'}'`
 
19597
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
19598
echo "${ECHO_T}$ac_res" >&6; }
 
19599
else
 
19600
  # Is the header compilable?
 
19601
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
19602
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
19603
cat >conftest.$ac_ext <<_ACEOF
 
19604
/* confdefs.h.  */
 
19605
_ACEOF
 
19606
cat confdefs.h >>conftest.$ac_ext
 
19607
cat >>conftest.$ac_ext <<_ACEOF
 
19608
/* end confdefs.h.  */
 
19609
$ac_includes_default
 
19610
#include <$ac_header>
 
19611
_ACEOF
 
19612
rm -f conftest.$ac_objext
 
19613
if { (ac_try="$ac_compile"
 
19614
case "(($ac_try" in
 
19615
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19616
  *) ac_try_echo=$ac_try;;
 
19617
esac
 
19618
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19619
  (eval "$ac_compile") 2>conftest.er1
 
19620
  ac_status=$?
 
19621
  grep -v '^ *+' conftest.er1 >conftest.err
 
19622
  rm -f conftest.er1
 
19623
  cat conftest.err >&5
 
19624
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19625
  (exit $ac_status); } && {
 
19626
         test -z "$ac_c_werror_flag" ||
 
19627
         test ! -s conftest.err
 
19628
       } && test -s conftest.$ac_objext; then
 
19629
  ac_header_compiler=yes
 
19630
else
 
19631
  echo "$as_me: failed program was:" >&5
 
19632
sed 's/^/| /' conftest.$ac_ext >&5
 
19633
 
 
19634
        ac_header_compiler=no
 
19635
fi
 
19636
 
 
19637
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19638
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
19639
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
19640
 
 
19641
# Is the header present?
 
19642
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
19643
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
19644
cat >conftest.$ac_ext <<_ACEOF
 
19645
/* confdefs.h.  */
 
19646
_ACEOF
 
19647
cat confdefs.h >>conftest.$ac_ext
 
19648
cat >>conftest.$ac_ext <<_ACEOF
 
19649
/* end confdefs.h.  */
 
19650
#include <$ac_header>
 
19651
_ACEOF
 
19652
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
19653
case "(($ac_try" in
 
19654
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19655
  *) ac_try_echo=$ac_try;;
 
19656
esac
 
19657
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19658
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
19659
  ac_status=$?
 
19660
  grep -v '^ *+' conftest.er1 >conftest.err
 
19661
  rm -f conftest.er1
 
19662
  cat conftest.err >&5
 
19663
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19664
  (exit $ac_status); } >/dev/null && {
 
19665
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
19666
         test ! -s conftest.err
 
19667
       }; then
 
19668
  ac_header_preproc=yes
 
19669
else
 
19670
  echo "$as_me: failed program was:" >&5
 
19671
sed 's/^/| /' conftest.$ac_ext >&5
 
19672
 
 
19673
  ac_header_preproc=no
 
19674
fi
 
19675
 
 
19676
rm -f conftest.err conftest.$ac_ext
 
19677
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
19678
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
19679
 
 
19680
# So?  What about this header?
 
19681
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
19682
  yes:no: )
 
19683
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
19684
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
19685
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
19686
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
19687
    ac_header_preproc=yes
 
19688
    ;;
 
19689
  no:yes:* )
 
19690
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
19691
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
19692
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
19693
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
19694
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
19695
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
19696
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
19697
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
19698
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
19699
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
19700
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
19701
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
19702
    ( cat <<\_ASBOX
 
19703
## -------------------------------------------------- ##
 
19704
## Report this to http://thinkfinger.sourceforge.net/ ##
 
19705
## -------------------------------------------------- ##
 
19706
_ASBOX
 
19707
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
19708
    ;;
 
19709
esac
 
19710
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
19711
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
19712
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
19713
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19714
else
 
19715
  eval "$as_ac_Header=\$ac_header_preproc"
 
19716
fi
 
19717
ac_res=`eval echo '${'$as_ac_Header'}'`
 
19718
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
19719
echo "${ECHO_T}$ac_res" >&6; }
 
19720
 
 
19721
fi
 
19722
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
19723
  cat >>confdefs.h <<_ACEOF
 
19724
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
19725
_ACEOF
 
19726
 
 
19727
else
 
19728
  { { echo "$as_me:$LINENO: error: PAM header files not found" >&5
 
19729
echo "$as_me: error: PAM header files not found" >&2;}
 
19730
   { (exit 1); exit 1; }; }
 
19731
fi
 
19732
 
 
19733
done
 
19734
 
 
19735
        { echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
 
19736
echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6; }
 
19737
if test "${ac_cv_lib_pam_pam_start+set}" = set; then
 
19738
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19739
else
 
19740
  ac_check_lib_save_LIBS=$LIBS
 
19741
LIBS="-lpam  $LIBS"
 
19742
cat >conftest.$ac_ext <<_ACEOF
 
19743
/* confdefs.h.  */
 
19744
_ACEOF
 
19745
cat confdefs.h >>conftest.$ac_ext
 
19746
cat >>conftest.$ac_ext <<_ACEOF
 
19747
/* end confdefs.h.  */
 
19748
 
 
19749
/* Override any GCC internal prototype to avoid an error.
 
19750
   Use char because int might match the return type of a GCC
 
19751
   builtin and then its argument prototype would still apply.  */
 
19752
#ifdef __cplusplus
 
19753
extern "C"
 
19754
#endif
 
19755
char pam_start ();
 
19756
int
 
19757
main ()
 
19758
{
 
19759
return pam_start ();
 
19760
  ;
 
19761
  return 0;
 
19762
}
 
19763
_ACEOF
 
19764
rm -f conftest.$ac_objext conftest$ac_exeext
 
19765
if { (ac_try="$ac_link"
 
19766
case "(($ac_try" in
 
19767
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19768
  *) ac_try_echo=$ac_try;;
 
19769
esac
 
19770
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19771
  (eval "$ac_link") 2>conftest.er1
 
19772
  ac_status=$?
 
19773
  grep -v '^ *+' conftest.er1 >conftest.err
 
19774
  rm -f conftest.er1
 
19775
  cat conftest.err >&5
 
19776
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19777
  (exit $ac_status); } && {
 
19778
         test -z "$ac_c_werror_flag" ||
 
19779
         test ! -s conftest.err
 
19780
       } && test -s conftest$ac_exeext &&
 
19781
       $as_test_x conftest$ac_exeext; then
 
19782
  ac_cv_lib_pam_pam_start=yes
 
19783
else
 
19784
  echo "$as_me: failed program was:" >&5
 
19785
sed 's/^/| /' conftest.$ac_ext >&5
 
19786
 
 
19787
        ac_cv_lib_pam_pam_start=no
 
19788
fi
 
19789
 
 
19790
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
19791
      conftest$ac_exeext conftest.$ac_ext
 
19792
LIBS=$ac_check_lib_save_LIBS
 
19793
fi
 
19794
{ echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
 
19795
echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6; }
 
19796
if test $ac_cv_lib_pam_pam_start = yes; then
 
19797
  PAM_LIBS="-lpam"
 
19798
else
 
19799
  { { echo "$as_me:$LINENO: error: libpam missing" >&5
 
19800
echo "$as_me: error: libpam missing" >&2;}
 
19801
   { (exit 1); exit 1; }; }
 
19802
fi
 
19803
 
 
19804
 
 
19805
cat >>confdefs.h <<\_ACEOF
 
19806
#define BUILD_PAM 1
 
19807
_ACEOF
 
19808
 
 
19809
 
 
19810
{ echo "$as_me:$LINENO: checking for pam_prompt in -lpam" >&5
 
19811
echo $ECHO_N "checking for pam_prompt in -lpam... $ECHO_C" >&6; }
 
19812
if test "${ac_cv_lib_pam_pam_prompt+set}" = set; then
 
19813
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19814
else
 
19815
  ac_check_lib_save_LIBS=$LIBS
 
19816
LIBS="-lpam  $LIBS"
 
19817
cat >conftest.$ac_ext <<_ACEOF
 
19818
/* confdefs.h.  */
 
19819
_ACEOF
 
19820
cat confdefs.h >>conftest.$ac_ext
 
19821
cat >>conftest.$ac_ext <<_ACEOF
 
19822
/* end confdefs.h.  */
 
19823
 
 
19824
/* Override any GCC internal prototype to avoid an error.
 
19825
   Use char because int might match the return type of a GCC
 
19826
   builtin and then its argument prototype would still apply.  */
 
19827
#ifdef __cplusplus
 
19828
extern "C"
 
19829
#endif
 
19830
char pam_prompt ();
 
19831
int
 
19832
main ()
 
19833
{
 
19834
return pam_prompt ();
 
19835
  ;
 
19836
  return 0;
 
19837
}
 
19838
_ACEOF
 
19839
rm -f conftest.$ac_objext conftest$ac_exeext
 
19840
if { (ac_try="$ac_link"
 
19841
case "(($ac_try" in
 
19842
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19843
  *) ac_try_echo=$ac_try;;
 
19844
esac
 
19845
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19846
  (eval "$ac_link") 2>conftest.er1
 
19847
  ac_status=$?
 
19848
  grep -v '^ *+' conftest.er1 >conftest.err
 
19849
  rm -f conftest.er1
 
19850
  cat conftest.err >&5
 
19851
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19852
  (exit $ac_status); } && {
 
19853
         test -z "$ac_c_werror_flag" ||
 
19854
         test ! -s conftest.err
 
19855
       } && test -s conftest$ac_exeext &&
 
19856
       $as_test_x conftest$ac_exeext; then
 
19857
  ac_cv_lib_pam_pam_prompt=yes
 
19858
else
 
19859
  echo "$as_me: failed program was:" >&5
 
19860
sed 's/^/| /' conftest.$ac_ext >&5
 
19861
 
 
19862
        ac_cv_lib_pam_pam_prompt=no
 
19863
fi
 
19864
 
 
19865
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
19866
      conftest$ac_exeext conftest.$ac_ext
 
19867
LIBS=$ac_check_lib_save_LIBS
 
19868
fi
 
19869
{ echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_prompt" >&5
 
19870
echo "${ECHO_T}$ac_cv_lib_pam_pam_prompt" >&6; }
 
19871
if test $ac_cv_lib_pam_pam_prompt = yes; then
 
19872
  cat >>confdefs.h <<_ACEOF
 
19873
#define HAVE_LIBPAM 1
 
19874
_ACEOF
 
19875
 
 
19876
  LIBS="-lpam $LIBS"
 
19877
 
 
19878
else
 
19879
  HAVE_OLD_PAM=yes
 
19880
 
 
19881
cat >>confdefs.h <<\_ACEOF
 
19882
#define HAVE_OLD_PAM 1
 
19883
_ACEOF
 
19884
 
 
19885
fi
 
19886
 
 
19887
 
 
19888
        # Check for Linux input and uinput headers
 
19889
        if test "${ac_cv_header_linux_input_h+set}" = set; then
 
19890
  { echo "$as_me:$LINENO: checking for linux/input.h" >&5
 
19891
echo $ECHO_N "checking for linux/input.h... $ECHO_C" >&6; }
 
19892
if test "${ac_cv_header_linux_input_h+set}" = set; then
 
19893
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19894
fi
 
19895
{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_input_h" >&5
 
19896
echo "${ECHO_T}$ac_cv_header_linux_input_h" >&6; }
 
19897
else
 
19898
  # Is the header compilable?
 
19899
{ echo "$as_me:$LINENO: checking linux/input.h usability" >&5
 
19900
echo $ECHO_N "checking linux/input.h usability... $ECHO_C" >&6; }
 
19901
cat >conftest.$ac_ext <<_ACEOF
 
19902
/* confdefs.h.  */
 
19903
_ACEOF
 
19904
cat confdefs.h >>conftest.$ac_ext
 
19905
cat >>conftest.$ac_ext <<_ACEOF
 
19906
/* end confdefs.h.  */
 
19907
$ac_includes_default
 
19908
#include <linux/input.h>
 
19909
_ACEOF
 
19910
rm -f conftest.$ac_objext
 
19911
if { (ac_try="$ac_compile"
 
19912
case "(($ac_try" in
 
19913
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19914
  *) ac_try_echo=$ac_try;;
 
19915
esac
 
19916
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19917
  (eval "$ac_compile") 2>conftest.er1
 
19918
  ac_status=$?
 
19919
  grep -v '^ *+' conftest.er1 >conftest.err
 
19920
  rm -f conftest.er1
 
19921
  cat conftest.err >&5
 
19922
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19923
  (exit $ac_status); } && {
 
19924
         test -z "$ac_c_werror_flag" ||
 
19925
         test ! -s conftest.err
 
19926
       } && test -s conftest.$ac_objext; then
 
19927
  ac_header_compiler=yes
 
19928
else
 
19929
  echo "$as_me: failed program was:" >&5
 
19930
sed 's/^/| /' conftest.$ac_ext >&5
 
19931
 
 
19932
        ac_header_compiler=no
 
19933
fi
 
19934
 
 
19935
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
19936
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
19937
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
19938
 
 
19939
# Is the header present?
 
19940
{ echo "$as_me:$LINENO: checking linux/input.h presence" >&5
 
19941
echo $ECHO_N "checking linux/input.h presence... $ECHO_C" >&6; }
 
19942
cat >conftest.$ac_ext <<_ACEOF
 
19943
/* confdefs.h.  */
 
19944
_ACEOF
 
19945
cat confdefs.h >>conftest.$ac_ext
 
19946
cat >>conftest.$ac_ext <<_ACEOF
 
19947
/* end confdefs.h.  */
 
19948
#include <linux/input.h>
 
19949
_ACEOF
 
19950
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
19951
case "(($ac_try" in
 
19952
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
19953
  *) ac_try_echo=$ac_try;;
 
19954
esac
 
19955
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
19956
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
19957
  ac_status=$?
 
19958
  grep -v '^ *+' conftest.er1 >conftest.err
 
19959
  rm -f conftest.er1
 
19960
  cat conftest.err >&5
 
19961
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19962
  (exit $ac_status); } >/dev/null && {
 
19963
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
19964
         test ! -s conftest.err
 
19965
       }; then
 
19966
  ac_header_preproc=yes
 
19967
else
 
19968
  echo "$as_me: failed program was:" >&5
 
19969
sed 's/^/| /' conftest.$ac_ext >&5
 
19970
 
 
19971
  ac_header_preproc=no
 
19972
fi
 
19973
 
 
19974
rm -f conftest.err conftest.$ac_ext
 
19975
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
19976
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
19977
 
 
19978
# So?  What about this header?
 
19979
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
19980
  yes:no: )
 
19981
    { echo "$as_me:$LINENO: WARNING: linux/input.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
19982
echo "$as_me: WARNING: linux/input.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
19983
    { echo "$as_me:$LINENO: WARNING: linux/input.h: proceeding with the compiler's result" >&5
 
19984
echo "$as_me: WARNING: linux/input.h: proceeding with the compiler's result" >&2;}
 
19985
    ac_header_preproc=yes
 
19986
    ;;
 
19987
  no:yes:* )
 
19988
    { echo "$as_me:$LINENO: WARNING: linux/input.h: present but cannot be compiled" >&5
 
19989
echo "$as_me: WARNING: linux/input.h: present but cannot be compiled" >&2;}
 
19990
    { echo "$as_me:$LINENO: WARNING: linux/input.h:     check for missing prerequisite headers?" >&5
 
19991
echo "$as_me: WARNING: linux/input.h:     check for missing prerequisite headers?" >&2;}
 
19992
    { echo "$as_me:$LINENO: WARNING: linux/input.h: see the Autoconf documentation" >&5
 
19993
echo "$as_me: WARNING: linux/input.h: see the Autoconf documentation" >&2;}
 
19994
    { echo "$as_me:$LINENO: WARNING: linux/input.h:     section \"Present But Cannot Be Compiled\"" >&5
 
19995
echo "$as_me: WARNING: linux/input.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
19996
    { echo "$as_me:$LINENO: WARNING: linux/input.h: proceeding with the preprocessor's result" >&5
 
19997
echo "$as_me: WARNING: linux/input.h: proceeding with the preprocessor's result" >&2;}
 
19998
    { echo "$as_me:$LINENO: WARNING: linux/input.h: in the future, the compiler will take precedence" >&5
 
19999
echo "$as_me: WARNING: linux/input.h: in the future, the compiler will take precedence" >&2;}
 
20000
    ( cat <<\_ASBOX
 
20001
## -------------------------------------------------- ##
 
20002
## Report this to http://thinkfinger.sourceforge.net/ ##
 
20003
## -------------------------------------------------- ##
 
20004
_ASBOX
 
20005
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
20006
    ;;
 
20007
esac
 
20008
{ echo "$as_me:$LINENO: checking for linux/input.h" >&5
 
20009
echo $ECHO_N "checking for linux/input.h... $ECHO_C" >&6; }
 
20010
if test "${ac_cv_header_linux_input_h+set}" = set; then
 
20011
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20012
else
 
20013
  ac_cv_header_linux_input_h=$ac_header_preproc
 
20014
fi
 
20015
{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_input_h" >&5
 
20016
echo "${ECHO_T}$ac_cv_header_linux_input_h" >&6; }
 
20017
 
 
20018
fi
 
20019
if test $ac_cv_header_linux_input_h = yes; then
 
20020
  HAVE_LINUX_INPUT=1
 
20021
fi
 
20022
 
 
20023
 
 
20024
        if test "$HAVE_LINUX_INPUT" = "1"; then
 
20025
                { echo "$as_me:$LINENO: checking for linux/uinput.h" >&5
 
20026
echo $ECHO_N "checking for linux/uinput.h... $ECHO_C" >&6; }
 
20027
if test "${ac_cv_header_linux_uinput_h+set}" = set; then
 
20028
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20029
else
 
20030
  cat >conftest.$ac_ext <<_ACEOF
 
20031
/* confdefs.h.  */
 
20032
_ACEOF
 
20033
cat confdefs.h >>conftest.$ac_ext
 
20034
cat >>conftest.$ac_ext <<_ACEOF
 
20035
/* end confdefs.h.  */
 
20036
#include <linux/input.h>
 
20037
 
 
20038
#include <linux/uinput.h>
 
20039
_ACEOF
 
20040
rm -f conftest.$ac_objext
 
20041
if { (ac_try="$ac_compile"
 
20042
case "(($ac_try" in
 
20043
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20044
  *) ac_try_echo=$ac_try;;
 
20045
esac
 
20046
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20047
  (eval "$ac_compile") 2>conftest.er1
 
20048
  ac_status=$?
 
20049
  grep -v '^ *+' conftest.er1 >conftest.err
 
20050
  rm -f conftest.er1
 
20051
  cat conftest.err >&5
 
20052
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20053
  (exit $ac_status); } && {
 
20054
         test -z "$ac_c_werror_flag" ||
 
20055
         test ! -s conftest.err
 
20056
       } && test -s conftest.$ac_objext; then
 
20057
  ac_cv_header_linux_uinput_h=yes
 
20058
else
 
20059
  echo "$as_me: failed program was:" >&5
 
20060
sed 's/^/| /' conftest.$ac_ext >&5
 
20061
 
 
20062
        ac_cv_header_linux_uinput_h=no
 
20063
fi
 
20064
 
 
20065
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
20066
fi
 
20067
{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_uinput_h" >&5
 
20068
echo "${ECHO_T}$ac_cv_header_linux_uinput_h" >&6; }
 
20069
if test $ac_cv_header_linux_uinput_h = yes; then
 
20070
  HAVE_LINUX_UINPUT=1
 
20071
fi
 
20072
 
 
20073
 
 
20074
        else
 
20075
                { { echo "$as_me:$LINENO: error: \"Required header file not found.\"" >&5
 
20076
echo "$as_me: error: \"Required header file not found.\"" >&2;}
 
20077
   { (exit 1); exit 1; }; }
 
20078
        fi
 
20079
 
 
20080
        if test "$HAVE_LINUX_UINPUT" != "1"; then
 
20081
                { { echo "$as_me:$LINENO: error: \"Required header file not found.\"" >&5
 
20082
echo "$as_me: error: \"Required header file not found.\"" >&2;}
 
20083
   { (exit 1); exit 1; }; }
 
20084
        fi
 
20085
fi
 
20086
 
 
20087
# AC_ARG_ENABLE SECUREDIR
 
20088
# Check whether --enable-securedir was given.
 
20089
if test "${enable_securedir+set}" = set; then
 
20090
  enableval=$enable_securedir;
 
20091
fi
 
20092
 
 
20093
 
 
20094
# AC_ARG_ENABLE_BIR_DIR
 
20095
# Check whether --enable-birdir was given.
 
20096
if test "${enable_birdir+set}" = set; then
 
20097
  enableval=$enable_birdir;
 
20098
fi
 
20099
 
 
20100
 
 
20101
# Check for pthread
 
20102
{ echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
 
20103
echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
 
20104
if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
 
20105
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20106
else
 
20107
  ac_check_lib_save_LIBS=$LIBS
 
20108
LIBS="-lpthread  $LIBS"
 
20109
cat >conftest.$ac_ext <<_ACEOF
 
20110
/* confdefs.h.  */
 
20111
_ACEOF
 
20112
cat confdefs.h >>conftest.$ac_ext
 
20113
cat >>conftest.$ac_ext <<_ACEOF
 
20114
/* end confdefs.h.  */
 
20115
 
 
20116
/* Override any GCC internal prototype to avoid an error.
 
20117
   Use char because int might match the return type of a GCC
 
20118
   builtin and then its argument prototype would still apply.  */
 
20119
#ifdef __cplusplus
 
20120
extern "C"
 
20121
#endif
 
20122
char pthread_create ();
 
20123
int
 
20124
main ()
 
20125
{
 
20126
return pthread_create ();
 
20127
  ;
 
20128
  return 0;
 
20129
}
 
20130
_ACEOF
 
20131
rm -f conftest.$ac_objext conftest$ac_exeext
 
20132
if { (ac_try="$ac_link"
 
20133
case "(($ac_try" in
 
20134
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
20135
  *) ac_try_echo=$ac_try;;
 
20136
esac
 
20137
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
20138
  (eval "$ac_link") 2>conftest.er1
 
20139
  ac_status=$?
 
20140
  grep -v '^ *+' conftest.er1 >conftest.err
 
20141
  rm -f conftest.er1
 
20142
  cat conftest.err >&5
 
20143
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20144
  (exit $ac_status); } && {
 
20145
         test -z "$ac_c_werror_flag" ||
 
20146
         test ! -s conftest.err
 
20147
       } && test -s conftest$ac_exeext &&
 
20148
       $as_test_x conftest$ac_exeext; then
 
20149
  ac_cv_lib_pthread_pthread_create=yes
 
20150
else
 
20151
  echo "$as_me: failed program was:" >&5
 
20152
sed 's/^/| /' conftest.$ac_ext >&5
 
20153
 
 
20154
        ac_cv_lib_pthread_pthread_create=no
 
20155
fi
 
20156
 
 
20157
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
20158
      conftest$ac_exeext conftest.$ac_ext
 
20159
LIBS=$ac_check_lib_save_LIBS
 
20160
fi
 
20161
{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
 
20162
echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
 
20163
if test $ac_cv_lib_pthread_pthread_create = yes; then
 
20164
  PTHREAD_LIBS="-lpthread"
 
20165
else
 
20166
  { { echo "$as_me:$LINENO: error: libpthread missing" >&5
 
20167
echo "$as_me: error: libpthread missing" >&2;}
 
20168
   { (exit 1); exit 1; }; }
 
20169
fi
 
20170
 
 
20171
 
 
20172
# Check for libusb using pkg-config
 
20173
 
 
20174
 
 
20175
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
 
20176
        if test -n "$ac_tool_prefix"; then
 
20177
  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
 
20178
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
 
20179
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
20180
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
20181
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
 
20182
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20183
else
 
20184
  case $PKG_CONFIG in
 
20185
  [\\/]* | ?:[\\/]*)
 
20186
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
20187
  ;;
 
20188
  *)
 
20189
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20190
for as_dir in $PATH
 
20191
do
 
20192
  IFS=$as_save_IFS
 
20193
  test -z "$as_dir" && as_dir=.
 
20194
  for ac_exec_ext in '' $ac_executable_extensions; do
 
20195
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
20196
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
20197
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
20198
    break 2
 
20199
  fi
 
20200
done
 
20201
done
 
20202
IFS=$as_save_IFS
 
20203
 
 
20204
  ;;
 
20205
esac
 
20206
fi
 
20207
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
20208
if test -n "$PKG_CONFIG"; then
 
20209
  { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 
20210
echo "${ECHO_T}$PKG_CONFIG" >&6; }
 
20211
else
 
20212
  { echo "$as_me:$LINENO: result: no" >&5
 
20213
echo "${ECHO_T}no" >&6; }
 
20214
fi
 
20215
 
 
20216
 
 
20217
fi
 
20218
if test -z "$ac_cv_path_PKG_CONFIG"; then
 
20219
  ac_pt_PKG_CONFIG=$PKG_CONFIG
 
20220
  # Extract the first word of "pkg-config", so it can be a program name with args.
 
20221
set dummy pkg-config; ac_word=$2
 
20222
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
20223
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
20224
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
 
20225
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20226
else
 
20227
  case $ac_pt_PKG_CONFIG in
 
20228
  [\\/]* | ?:[\\/]*)
 
20229
  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
 
20230
  ;;
 
20231
  *)
 
20232
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20233
for as_dir in $PATH
 
20234
do
 
20235
  IFS=$as_save_IFS
 
20236
  test -z "$as_dir" && as_dir=.
 
20237
  for ac_exec_ext in '' $ac_executable_extensions; do
 
20238
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
20239
    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
20240
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
20241
    break 2
 
20242
  fi
 
20243
done
 
20244
done
 
20245
IFS=$as_save_IFS
 
20246
 
 
20247
  ;;
 
20248
esac
 
20249
fi
 
20250
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
 
20251
if test -n "$ac_pt_PKG_CONFIG"; then
 
20252
  { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
 
20253
echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
 
20254
else
 
20255
  { echo "$as_me:$LINENO: result: no" >&5
 
20256
echo "${ECHO_T}no" >&6; }
 
20257
fi
 
20258
 
 
20259
  if test "x$ac_pt_PKG_CONFIG" = x; then
 
20260
    PKG_CONFIG=""
 
20261
  else
 
20262
    case $cross_compiling:$ac_tool_warned in
 
20263
yes:)
 
20264
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
20265
whose name does not start with the host triplet.  If you think this
 
20266
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
20267
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
20268
whose name does not start with the host triplet.  If you think this
 
20269
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
20270
ac_tool_warned=yes ;;
 
20271
esac
 
20272
    PKG_CONFIG=$ac_pt_PKG_CONFIG
 
20273
  fi
 
20274
else
 
20275
  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
 
20276
fi
 
20277
 
 
20278
fi
 
20279
if test -n "$PKG_CONFIG"; then
 
20280
        _pkg_min_version=0.9.0
 
20281
        { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
 
20282
echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
 
20283
        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
 
20284
                { echo "$as_me:$LINENO: result: yes" >&5
 
20285
echo "${ECHO_T}yes" >&6; }
 
20286
        else
 
20287
                { echo "$as_me:$LINENO: result: no" >&5
 
20288
echo "${ECHO_T}no" >&6; }
 
20289
                PKG_CONFIG=""
 
20290
        fi
 
20291
 
 
20292
fi
 
20293
 
 
20294
pkg_failed=no
 
20295
{ echo "$as_me:$LINENO: checking for USB" >&5
 
20296
echo $ECHO_N "checking for USB... $ECHO_C" >&6; }
 
20297
 
 
20298
if test -n "$PKG_CONFIG"; then
 
20299
    if test -n "$USB_CFLAGS"; then
 
20300
        pkg_cv_USB_CFLAGS="$USB_CFLAGS"
 
20301
    else
 
20302
        if test -n "$PKG_CONFIG" && \
 
20303
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libusb >= 0.1.11\"") >&5
 
20304
  ($PKG_CONFIG --exists --print-errors "libusb >= 0.1.11") 2>&5
 
20305
  ac_status=$?
 
20306
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20307
  (exit $ac_status); }; then
 
20308
  pkg_cv_USB_CFLAGS=`$PKG_CONFIG --cflags "libusb >= 0.1.11" 2>/dev/null`
 
20309
else
 
20310
  pkg_failed=yes
 
20311
fi
 
20312
    fi
 
20313
else
 
20314
        pkg_failed=untried
 
20315
fi
 
20316
if test -n "$PKG_CONFIG"; then
 
20317
    if test -n "$USB_LIBS"; then
 
20318
        pkg_cv_USB_LIBS="$USB_LIBS"
 
20319
    else
 
20320
        if test -n "$PKG_CONFIG" && \
 
20321
    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libusb >= 0.1.11\"") >&5
 
20322
  ($PKG_CONFIG --exists --print-errors "libusb >= 0.1.11") 2>&5
 
20323
  ac_status=$?
 
20324
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20325
  (exit $ac_status); }; then
 
20326
  pkg_cv_USB_LIBS=`$PKG_CONFIG --libs "libusb >= 0.1.11" 2>/dev/null`
 
20327
else
 
20328
  pkg_failed=yes
 
20329
fi
 
20330
    fi
 
20331
else
 
20332
        pkg_failed=untried
 
20333
fi
 
20334
 
 
20335
 
 
20336
 
 
20337
if test $pkg_failed = yes; then
 
20338
 
 
20339
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
 
20340
        _pkg_short_errors_supported=yes
 
20341
else
 
20342
        _pkg_short_errors_supported=no
 
20343
fi
 
20344
        if test $_pkg_short_errors_supported = yes; then
 
20345
                USB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libusb >= 0.1.11"`
 
20346
        else
 
20347
                USB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libusb >= 0.1.11"`
 
20348
        fi
 
20349
        # Put the nasty error message in config.log where it belongs
 
20350
        echo "$USB_PKG_ERRORS" >&5
 
20351
 
 
20352
        { { echo "$as_me:$LINENO: error: libusb missing" >&5
 
20353
echo "$as_me: error: libusb missing" >&2;}
 
20354
   { (exit 1); exit 1; }; }
 
20355
elif test $pkg_failed = untried; then
 
20356
        { { echo "$as_me:$LINENO: error: libusb missing" >&5
 
20357
echo "$as_me: error: libusb missing" >&2;}
 
20358
   { (exit 1); exit 1; }; }
 
20359
else
 
20360
        USB_CFLAGS=$pkg_cv_USB_CFLAGS
 
20361
        USB_LIBS=$pkg_cv_USB_LIBS
 
20362
        { echo "$as_me:$LINENO: result: yes" >&5
 
20363
echo "${ECHO_T}yes" >&6; }
 
20364
        usb_found=yes
 
20365
fi
 
20366
 
 
20367
# Check for Doxygen
 
20368
# Extract the first word of "doxygen", so it can be a program name with args.
 
20369
set dummy doxygen; ac_word=$2
 
20370
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
20371
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
20372
if test "${ac_cv_prog_DOXYGEN+set}" = set; then
 
20373
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20374
else
 
20375
  if test -n "$DOXYGEN"; then
 
20376
  ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
 
20377
else
 
20378
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20379
for as_dir in $PATH
 
20380
do
 
20381
  IFS=$as_save_IFS
 
20382
  test -z "$as_dir" && as_dir=.
 
20383
  for ac_exec_ext in '' $ac_executable_extensions; do
 
20384
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
20385
    ac_cv_prog_DOXYGEN="doxygen"
 
20386
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
20387
    break 2
 
20388
  fi
 
20389
done
 
20390
done
 
20391
IFS=$as_save_IFS
 
20392
 
 
20393
fi
 
20394
fi
 
20395
DOXYGEN=$ac_cv_prog_DOXYGEN
 
20396
if test -n "$DOXYGEN"; then
 
20397
  { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
 
20398
echo "${ECHO_T}$DOXYGEN" >&6; }
 
20399
else
 
20400
  { echo "$as_me:$LINENO: result: no" >&5
 
20401
echo "${ECHO_T}no" >&6; }
 
20402
fi
 
20403
 
 
20404
 
 
20405
 
 
20406
# Find out prefix
 
20407
PREFIX=
 
20408
if test "x$prefix" = "xNONE" ; then
 
20409
        PREFIX=$ac_default_prefix
 
20410
else
 
20411
        PREFIX=$prefix
 
20412
fi
 
20413
prefix=$PREFIX
 
20414
 
 
20415
# Find out exec_prefix
 
20416
EXEC_PREFIX=
 
20417
if test "x$exec_prefix" = xNONE ; then
 
20418
        EXEC_PREFIX=$prefix
 
20419
else
 
20420
        EXEC_PREFIX=$exec_prefix
 
20421
fi
 
20422
exec_prefix=$EXEC_PREFIX
 
20423
 
 
20424
# AC_SUBST PREFIX, LIBDIR, BINDIR, SBINDIR, MANDIR, SECUREDIR and BIRDIR
 
20425
PREFIX_TMP="$prefix"
 
20426
PREFIX=`eval echo $PREFIX_TMP`
 
20427
 
 
20428
 
 
20429
LIBDIR_TMP="$libdir"
 
20430
LIBDIR=`eval echo $LIBDIR_TMP`
 
20431
 
 
20432
 
 
20433
BINDIR_TMP="$bindir"
 
20434
BINDIR=`eval echo $BINDIR_TMP`
 
20435
 
 
20436
 
 
20437
SBINDIR_TMP="$sbindir"
 
20438
SBINDIR=`eval echo $SBINDIR_TMP`
 
20439
 
 
20440
 
 
20441
if ! test -z "$with_securedir" ; then
 
20442
        SECUREDIR_TMP="$with_securedir"
 
20443
else
 
20444
        SECUREDIR_TMP=$LIBDIR/security
 
20445
fi
 
20446
SECUREDIR=`eval echo $SECUREDIR_TMP`
 
20447
 
 
20448
 
 
20449
if ! test -z "$with_birdir" ; then
 
20450
        BIRDIR_TMP="$with_birdir"
 
20451
else
 
20452
        BIRDIR_TMP=$sysconfdir/pam_thinkfinger
 
20453
fi
 
20454
BIRDIR=`eval echo $BIRDIR_TMP`
 
20455
 
 
20456
 
 
20457
if ! test -z "$mandir" ; then
 
20458
        MANDIR_TMP=`eval echo "$mandir"`
 
20459
else
 
20460
        MANDIR_TMP=`eval echo $datadir/man`
 
20461
fi
 
20462
MANDIR=`eval echo \"$MANDIR_TMP\"`
 
20463
 
 
20464
 
 
20465
# AC_DEFINE PAM_BIRDIR
 
20466
 
 
20467
cat >>confdefs.h <<_ACEOF
 
20468
#define PAM_BIRDIR "${BIRDIR}"
 
20469
_ACEOF
 
20470
 
 
20471
 
 
20472
# AC_SUBST CFLAGS
 
20473
CFLAGS="$CFLAGS -Wall"
 
20474
CFLAGS="$CFLAGS -fno-common"
 
20475
CFLAGS="$CFLAGS -fPIC"
 
20476
CFLAGS="$CFLAGS -Wchar-subscripts"
 
20477
CFLAGS="$CFLAGS -Wmissing-declarations"
 
20478
CFLAGS="$CFLAGS -Wmissing-prototypes"
 
20479
CFLAGS="$CFLAGS -Wnested-externs"
 
20480
CFLAGS="$CFLAGS -Wpointer-arith"
 
20481
CFLAGS="$CFLAGS -Wcast-align"
 
20482
CFLAGS="$CFLAGS -Wsign-compare"
 
20483
CFLAGS="$CFLAGS -Wdeclaration-after-statement"
 
20484
 
 
20485
 
 
20486
# AC_SUBST USB_LIBS
 
20487
 
 
20488
 
 
20489
# AC_SUBST PAM_LIBS
 
20490
 
 
20491
 
 
20492
# AC_SUBST_PTHREAD_LIBS
 
20493
 
 
20494
 
 
20495
# AM_CONDITIONAL
 
20496
 if test "x$enable_pam" = "xyes"; then
 
20497
  BUILD_PAM_TRUE=
 
20498
  BUILD_PAM_FALSE='#'
 
20499
else
 
20500
  BUILD_PAM_TRUE='#'
 
20501
  BUILD_PAM_FALSE=
 
20502
fi
 
20503
 
 
20504
 if test "x$HAVE_OLD_PAM" = "xyes"; then
 
20505
  HAVE_OLD_PAM_TRUE=
 
20506
  HAVE_OLD_PAM_FALSE='#'
 
20507
else
 
20508
  HAVE_OLD_PAM_TRUE='#'
 
20509
  HAVE_OLD_PAM_FALSE=
 
20510
fi
 
20511
 
 
20512
 
 
20513
# AC_CONFIG_FILES
 
20514
ac_config_files="$ac_config_files Makefile README INSTALL docs/Makefile docs/autodocs/Makefile libthinkfinger/Makefile libthinkfinger/libthinkfinger.pc pam/Makefile tf-tool/Makefile"
 
20515
 
 
20516
 
 
20517
# Configuration
 
20518
echo "
 
20519
 $PACKAGE_NAME $VERSION
 
20520
 =================
 
20521
 
 
20522
 + prefix:              ${PREFIX}
 
20523
 + libdir:              ${LIBDIR}
 
20524
 + bindir:              ${BINDIR}
 
20525
 + sbindir:             ${SBINDIR}
 
20526
 + mandir:              ${MANDIR}
 
20527
 
 
20528
 + cflags:              ${CFLAGS}
 
20529
 + libusb:              ${USB_LIBS}
 
20530
 
 
20531
 Debugging
 
20532
 =========
 
20533
 
 
20534
 + enable USB hooks:    $enable_usb_debug
 
20535
 
 
20536
"
 
20537
 
 
20538
if test  "x$enable_pam" = "xyes" ; then
 
20539
echo " Build PAM module:        $enable_pam
 
20540
 
 
20541
 + libpam:              ${PAM_LIBS}
 
20542
 + libpthread:          ${PTHREAD_LIBS}
 
20543
 + securedir:           ${SECUREDIR}
 
20544
 + birdir:              ${BIRDIR}
 
20545
"
 
20546
fi
 
20547
 
 
20548
# AC_OUTPUT
 
20549
cat >confcache <<\_ACEOF
 
20550
# This file is a shell script that caches the results of configure
 
20551
# tests run on this system so they can be shared between configure
 
20552
# scripts and configure runs, see configure's option --config-cache.
 
20553
# It is not useful on other systems.  If it contains results you don't
 
20554
# want to keep, you may remove or edit it.
 
20555
#
 
20556
# config.status only pays attention to the cache file if you give it
 
20557
# the --recheck option to rerun configure.
 
20558
#
 
20559
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
20560
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
20561
# following values.
 
20562
 
 
20563
_ACEOF
 
20564
 
 
20565
# The following way of writing the cache mishandles newlines in values,
 
20566
# but we know of no workaround that is simple, portable, and efficient.
 
20567
# So, we kill variables containing newlines.
 
20568
# Ultrix sh set writes to stderr and can't be redirected directly,
 
20569
# and sets the high bit in the cache file unless we assign to the vars.
 
20570
(
 
20571
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
20572
    eval ac_val=\$$ac_var
 
20573
    case $ac_val in #(
 
20574
    *${as_nl}*)
 
20575
      case $ac_var in #(
 
20576
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 
20577
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
20578
      esac
 
20579
      case $ac_var in #(
 
20580
      _ | IFS | as_nl) ;; #(
 
20581
      *) $as_unset $ac_var ;;
 
20582
      esac ;;
 
20583
    esac
 
20584
  done
 
20585
 
 
20586
  (set) 2>&1 |
 
20587
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
20588
    *${as_nl}ac_space=\ *)
 
20589
      # `set' does not quote correctly, so add quotes (double-quote
 
20590
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
20591
      sed -n \
 
20592
        "s/'/'\\\\''/g;
 
20593
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
20594
      ;; #(
 
20595
    *)
 
20596
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
20597
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
20598
      ;;
 
20599
    esac |
 
20600
    sort
 
20601
) |
 
20602
  sed '
 
20603
     /^ac_cv_env_/b end
 
20604
     t clear
 
20605
     :clear
 
20606
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
20607
     t end
 
20608
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
20609
     :end' >>confcache
 
20610
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
20611
  if test -w "$cache_file"; then
 
20612
    test "x$cache_file" != "x/dev/null" &&
 
20613
      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
 
20614
echo "$as_me: updating cache $cache_file" >&6;}
 
20615
    cat confcache >$cache_file
 
20616
  else
 
20617
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
 
20618
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
20619
  fi
 
20620
fi
 
20621
rm -f confcache
 
20622
 
 
20623
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
20624
# Let make expand exec_prefix.
 
20625
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
20626
 
 
20627
DEFS=-DHAVE_CONFIG_H
 
20628
 
 
20629
ac_libobjs=
 
20630
ac_ltlibobjs=
 
20631
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
20632
  # 1. Remove the extension, and $U if already installed.
 
20633
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
20634
  ac_i=`echo "$ac_i" | sed "$ac_script"`
 
20635
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
20636
  #    will be set to the directory where LIBOBJS objects are built.
 
20637
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
20638
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
 
20639
done
 
20640
LIBOBJS=$ac_libobjs
 
20641
 
 
20642
LTLIBOBJS=$ac_ltlibobjs
 
20643
 
 
20644
 
 
20645
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
20646
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
20647
Usually this means the macro was only invoked conditionally." >&5
 
20648
echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
20649
Usually this means the macro was only invoked conditionally." >&2;}
 
20650
   { (exit 1); exit 1; }; }
 
20651
fi
 
20652
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
20653
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
20654
Usually this means the macro was only invoked conditionally." >&5
 
20655
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
20656
Usually this means the macro was only invoked conditionally." >&2;}
 
20657
   { (exit 1); exit 1; }; }
 
20658
fi
 
20659
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
20660
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
20661
Usually this means the macro was only invoked conditionally." >&5
 
20662
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
20663
Usually this means the macro was only invoked conditionally." >&2;}
 
20664
   { (exit 1); exit 1; }; }
 
20665
fi
 
20666
if test -z "${BUILD_PAM_TRUE}" && test -z "${BUILD_PAM_FALSE}"; then
 
20667
  { { echo "$as_me:$LINENO: error: conditional \"BUILD_PAM\" was never defined.
 
20668
Usually this means the macro was only invoked conditionally." >&5
 
20669
echo "$as_me: error: conditional \"BUILD_PAM\" was never defined.
 
20670
Usually this means the macro was only invoked conditionally." >&2;}
 
20671
   { (exit 1); exit 1; }; }
 
20672
fi
 
20673
if test -z "${HAVE_OLD_PAM_TRUE}" && test -z "${HAVE_OLD_PAM_FALSE}"; then
 
20674
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_OLD_PAM\" was never defined.
 
20675
Usually this means the macro was only invoked conditionally." >&5
 
20676
echo "$as_me: error: conditional \"HAVE_OLD_PAM\" was never defined.
 
20677
Usually this means the macro was only invoked conditionally." >&2;}
 
20678
   { (exit 1); exit 1; }; }
 
20679
fi
 
20680
 
 
20681
: ${CONFIG_STATUS=./config.status}
 
20682
ac_clean_files_save=$ac_clean_files
 
20683
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
20684
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
20685
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
20686
cat >$CONFIG_STATUS <<_ACEOF
 
20687
#! $SHELL
 
20688
# Generated by $as_me.
 
20689
# Run this file to recreate the current configuration.
 
20690
# Compiler output produced by configure, useful for debugging
 
20691
# configure, is in config.log if it exists.
 
20692
 
 
20693
debug=false
 
20694
ac_cs_recheck=false
 
20695
ac_cs_silent=false
 
20696
SHELL=\${CONFIG_SHELL-$SHELL}
 
20697
_ACEOF
 
20698
 
 
20699
cat >>$CONFIG_STATUS <<\_ACEOF
 
20700
## --------------------- ##
 
20701
## M4sh Initialization.  ##
 
20702
## --------------------- ##
 
20703
 
 
20704
# Be more Bourne compatible
 
20705
DUALCASE=1; export DUALCASE # for MKS sh
 
20706
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
20707
  emulate sh
 
20708
  NULLCMD=:
 
20709
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
20710
  # is contrary to our usage.  Disable this feature.
 
20711
  alias -g '${1+"$@"}'='"$@"'
 
20712
  setopt NO_GLOB_SUBST
 
20713
else
 
20714
  case `(set -o) 2>/dev/null` in
 
20715
  *posix*) set -o posix ;;
 
20716
esac
 
20717
 
 
20718
fi
 
20719
 
 
20720
 
 
20721
 
 
20722
 
 
20723
# PATH needs CR
 
20724
# Avoid depending upon Character Ranges.
 
20725
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
20726
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
20727
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
20728
as_cr_digits='0123456789'
 
20729
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
20730
 
 
20731
# The user is always right.
 
20732
if test "${PATH_SEPARATOR+set}" != set; then
 
20733
  echo "#! /bin/sh" >conf$$.sh
 
20734
  echo  "exit 0"   >>conf$$.sh
 
20735
  chmod +x conf$$.sh
 
20736
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
20737
    PATH_SEPARATOR=';'
 
20738
  else
 
20739
    PATH_SEPARATOR=:
 
20740
  fi
 
20741
  rm -f conf$$.sh
 
20742
fi
 
20743
 
 
20744
# Support unset when possible.
 
20745
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
20746
  as_unset=unset
 
20747
else
 
20748
  as_unset=false
 
20749
fi
 
20750
 
 
20751
 
 
20752
# IFS
 
20753
# We need space, tab and new line, in precisely that order.  Quoting is
 
20754
# there to prevent editors from complaining about space-tab.
 
20755
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
20756
# splitting by setting IFS to empty value.)
 
20757
as_nl='
 
20758
'
 
20759
IFS=" ""        $as_nl"
 
20760
 
 
20761
# Find who we are.  Look in the path if we contain no directory separator.
 
20762
case $0 in
 
20763
  *[\\/]* ) as_myself=$0 ;;
 
20764
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20765
for as_dir in $PATH
 
20766
do
 
20767
  IFS=$as_save_IFS
 
20768
  test -z "$as_dir" && as_dir=.
 
20769
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
20770
done
 
20771
IFS=$as_save_IFS
 
20772
 
 
20773
     ;;
 
20774
esac
 
20775
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
20776
# in which case we are not to be found in the path.
 
20777
if test "x$as_myself" = x; then
 
20778
  as_myself=$0
 
20779
fi
 
20780
if test ! -f "$as_myself"; then
 
20781
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
20782
  { (exit 1); exit 1; }
 
20783
fi
 
20784
 
 
20785
# Work around bugs in pre-3.0 UWIN ksh.
 
20786
for as_var in ENV MAIL MAILPATH
 
20787
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
20788
done
 
20789
PS1='$ '
 
20790
PS2='> '
 
20791
PS4='+ '
 
20792
 
 
20793
# NLS nuisances.
 
20794
for as_var in \
 
20795
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
20796
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
20797
  LC_TELEPHONE LC_TIME
 
20798
do
 
20799
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
20800
    eval $as_var=C; export $as_var
 
20801
  else
 
20802
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
20803
  fi
 
20804
done
 
20805
 
 
20806
# Required to use basename.
 
20807
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
20808
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
20809
  as_expr=expr
 
20810
else
 
20811
  as_expr=false
 
20812
fi
 
20813
 
 
20814
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
20815
  as_basename=basename
 
20816
else
 
20817
  as_basename=false
 
20818
fi
 
20819
 
 
20820
 
 
20821
# Name of the executable.
 
20822
as_me=`$as_basename -- "$0" ||
 
20823
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
20824
         X"$0" : 'X\(//\)$' \| \
 
20825
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
20826
echo X/"$0" |
 
20827
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
20828
            s//\1/
 
20829
            q
 
20830
          }
 
20831
          /^X\/\(\/\/\)$/{
 
20832
            s//\1/
 
20833
            q
 
20834
          }
 
20835
          /^X\/\(\/\).*/{
 
20836
            s//\1/
 
20837
            q
 
20838
          }
 
20839
          s/.*/./; q'`
 
20840
 
 
20841
# CDPATH.
 
20842
$as_unset CDPATH
 
20843
 
 
20844
 
 
20845
 
 
20846
  as_lineno_1=$LINENO
 
20847
  as_lineno_2=$LINENO
 
20848
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
20849
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
20850
 
 
20851
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
20852
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
20853
  # line-number line after each line using $LINENO; the second 'sed'
 
20854
  # does the real work.  The second script uses 'N' to pair each
 
20855
  # line-number line with the line containing $LINENO, and appends
 
20856
  # trailing '-' during substitution so that $LINENO is not a special
 
20857
  # case at line end.
 
20858
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
20859
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
20860
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
20861
  sed -n '
 
20862
    p
 
20863
    /[$]LINENO/=
 
20864
  ' <$as_myself |
 
20865
    sed '
 
20866
      s/[$]LINENO.*/&-/
 
20867
      t lineno
 
20868
      b
 
20869
      :lineno
 
20870
      N
 
20871
      :loop
 
20872
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
20873
      t loop
 
20874
      s/-\n.*//
 
20875
    ' >$as_me.lineno &&
 
20876
  chmod +x "$as_me.lineno" ||
 
20877
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
20878
   { (exit 1); exit 1; }; }
 
20879
 
 
20880
  # Don't try to exec as it changes $[0], causing all sort of problems
 
20881
  # (the dirname of $[0] is not the place where we might find the
 
20882
  # original and so on.  Autoconf is especially sensitive to this).
 
20883
  . "./$as_me.lineno"
 
20884
  # Exit status is that of the last command.
 
20885
  exit
 
20886
}
 
20887
 
 
20888
 
 
20889
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
20890
  as_dirname=dirname
 
20891
else
 
20892
  as_dirname=false
 
20893
fi
 
20894
 
 
20895
ECHO_C= ECHO_N= ECHO_T=
 
20896
case `echo -n x` in
 
20897
-n*)
 
20898
  case `echo 'x\c'` in
 
20899
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
20900
  *)   ECHO_C='\c';;
 
20901
  esac;;
 
20902
*)
 
20903
  ECHO_N='-n';;
 
20904
esac
 
20905
 
 
20906
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
20907
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
20908
  as_expr=expr
 
20909
else
 
20910
  as_expr=false
 
20911
fi
 
20912
 
 
20913
rm -f conf$$ conf$$.exe conf$$.file
 
20914
if test -d conf$$.dir; then
 
20915
  rm -f conf$$.dir/conf$$.file
 
20916
else
 
20917
  rm -f conf$$.dir
 
20918
  mkdir conf$$.dir
 
20919
fi
 
20920
echo >conf$$.file
 
20921
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
20922
  as_ln_s='ln -s'
 
20923
  # ... but there are two gotchas:
 
20924
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
20925
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
20926
  # In both cases, we have to default to `cp -p'.
 
20927
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
20928
    as_ln_s='cp -p'
 
20929
elif ln conf$$.file conf$$ 2>/dev/null; then
 
20930
  as_ln_s=ln
 
20931
else
 
20932
  as_ln_s='cp -p'
 
20933
fi
 
20934
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
20935
rmdir conf$$.dir 2>/dev/null
 
20936
 
 
20937
if mkdir -p . 2>/dev/null; then
 
20938
  as_mkdir_p=:
 
20939
else
 
20940
  test -d ./-p && rmdir ./-p
 
20941
  as_mkdir_p=false
 
20942
fi
 
20943
 
 
20944
if test -x / >/dev/null 2>&1; then
 
20945
  as_test_x='test -x'
 
20946
else
 
20947
  if ls -dL / >/dev/null 2>&1; then
 
20948
    as_ls_L_option=L
 
20949
  else
 
20950
    as_ls_L_option=
 
20951
  fi
 
20952
  as_test_x='
 
20953
    eval sh -c '\''
 
20954
      if test -d "$1"; then
 
20955
        test -d "$1/.";
 
20956
      else
 
20957
        case $1 in
 
20958
        -*)set "./$1";;
 
20959
        esac;
 
20960
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
20961
        ???[sx]*):;;*)false;;esac;fi
 
20962
    '\'' sh
 
20963
  '
 
20964
fi
 
20965
as_executable_p=$as_test_x
 
20966
 
 
20967
# Sed expression to map a string onto a valid CPP name.
 
20968
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
20969
 
 
20970
# Sed expression to map a string onto a valid variable name.
 
20971
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
20972
 
 
20973
 
 
20974
exec 6>&1
 
20975
 
 
20976
# Save the log message, to keep $[0] and so on meaningful, and to
 
20977
# report actual input values of CONFIG_FILES etc. instead of their
 
20978
# values after options handling.
 
20979
ac_log="
 
20980
This file was extended by ThinkFinger $as_me 0.3, which was
 
20981
generated by GNU Autoconf 2.61.  Invocation command line was
 
20982
 
 
20983
  CONFIG_FILES    = $CONFIG_FILES
 
20984
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
20985
  CONFIG_LINKS    = $CONFIG_LINKS
 
20986
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
20987
  $ $0 $@
 
20988
 
 
20989
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
20990
"
 
20991
 
 
20992
_ACEOF
 
20993
 
 
20994
cat >>$CONFIG_STATUS <<_ACEOF
 
20995
# Files that config.status was made for.
 
20996
config_files="$ac_config_files"
 
20997
config_headers="$ac_config_headers"
 
20998
config_commands="$ac_config_commands"
 
20999
 
 
21000
_ACEOF
 
21001
 
 
21002
cat >>$CONFIG_STATUS <<\_ACEOF
 
21003
ac_cs_usage="\
 
21004
\`$as_me' instantiates files from templates according to the
 
21005
current configuration.
 
21006
 
 
21007
Usage: $0 [OPTIONS] [FILE]...
 
21008
 
 
21009
  -h, --help       print this help, then exit
 
21010
  -V, --version    print version number and configuration settings, then exit
 
21011
  -q, --quiet      do not print progress messages
 
21012
  -d, --debug      don't remove temporary files
 
21013
      --recheck    update $as_me by reconfiguring in the same conditions
 
21014
  --file=FILE[:TEMPLATE]
 
21015
                   instantiate the configuration file FILE
 
21016
  --header=FILE[:TEMPLATE]
 
21017
                   instantiate the configuration header FILE
 
21018
 
 
21019
Configuration files:
 
21020
$config_files
 
21021
 
 
21022
Configuration headers:
 
21023
$config_headers
 
21024
 
 
21025
Configuration commands:
 
21026
$config_commands
 
21027
 
 
21028
Report bugs to <bug-autoconf@gnu.org>."
 
21029
 
 
21030
_ACEOF
 
21031
cat >>$CONFIG_STATUS <<_ACEOF
 
21032
ac_cs_version="\\
 
21033
ThinkFinger config.status 0.3
 
21034
configured by $0, generated by GNU Autoconf 2.61,
 
21035
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
 
21036
 
 
21037
Copyright (C) 2006 Free Software Foundation, Inc.
 
21038
This config.status script is free software; the Free Software Foundation
 
21039
gives unlimited permission to copy, distribute and modify it."
 
21040
 
 
21041
ac_pwd='$ac_pwd'
 
21042
srcdir='$srcdir'
 
21043
INSTALL='$INSTALL'
 
21044
MKDIR_P='$MKDIR_P'
 
21045
_ACEOF
 
21046
 
 
21047
cat >>$CONFIG_STATUS <<\_ACEOF
 
21048
# If no file are specified by the user, then we need to provide default
 
21049
# value.  By we need to know if files were specified by the user.
 
21050
ac_need_defaults=:
 
21051
while test $# != 0
 
21052
do
 
21053
  case $1 in
 
21054
  --*=*)
 
21055
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
21056
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
21057
    ac_shift=:
 
21058
    ;;
 
21059
  *)
 
21060
    ac_option=$1
 
21061
    ac_optarg=$2
 
21062
    ac_shift=shift
 
21063
    ;;
 
21064
  esac
 
21065
 
 
21066
  case $ac_option in
 
21067
  # Handling of the options.
 
21068
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
21069
    ac_cs_recheck=: ;;
 
21070
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
21071
    echo "$ac_cs_version"; exit ;;
 
21072
  --debug | --debu | --deb | --de | --d | -d )
 
21073
    debug=: ;;
 
21074
  --file | --fil | --fi | --f )
 
21075
    $ac_shift
 
21076
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
21077
    ac_need_defaults=false;;
 
21078
  --header | --heade | --head | --hea )
 
21079
    $ac_shift
 
21080
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
21081
    ac_need_defaults=false;;
 
21082
  --he | --h)
 
21083
    # Conflict between --help and --header
 
21084
    { echo "$as_me: error: ambiguous option: $1
 
21085
Try \`$0 --help' for more information." >&2
 
21086
   { (exit 1); exit 1; }; };;
 
21087
  --help | --hel | -h )
 
21088
    echo "$ac_cs_usage"; exit ;;
 
21089
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
21090
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
21091
    ac_cs_silent=: ;;
 
21092
 
 
21093
  # This is an error.
 
21094
  -*) { echo "$as_me: error: unrecognized option: $1
 
21095
Try \`$0 --help' for more information." >&2
 
21096
   { (exit 1); exit 1; }; } ;;
 
21097
 
 
21098
  *) ac_config_targets="$ac_config_targets $1"
 
21099
     ac_need_defaults=false ;;
 
21100
 
 
21101
  esac
 
21102
  shift
 
21103
done
 
21104
 
 
21105
ac_configure_extra_args=
 
21106
 
 
21107
if $ac_cs_silent; then
 
21108
  exec 6>/dev/null
 
21109
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
21110
fi
 
21111
 
 
21112
_ACEOF
 
21113
cat >>$CONFIG_STATUS <<_ACEOF
 
21114
if \$ac_cs_recheck; then
 
21115
  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
21116
  CONFIG_SHELL=$SHELL
 
21117
  export CONFIG_SHELL
 
21118
  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
21119
fi
 
21120
 
 
21121
_ACEOF
 
21122
cat >>$CONFIG_STATUS <<\_ACEOF
 
21123
exec 5>>config.log
 
21124
{
 
21125
  echo
 
21126
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
21127
## Running $as_me. ##
 
21128
_ASBOX
 
21129
  echo "$ac_log"
 
21130
} >&5
 
21131
 
 
21132
_ACEOF
 
21133
cat >>$CONFIG_STATUS <<_ACEOF
 
21134
#
 
21135
# INIT-COMMANDS
 
21136
#
 
21137
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
21138
 
 
21139
_ACEOF
 
21140
 
 
21141
cat >>$CONFIG_STATUS <<\_ACEOF
 
21142
 
 
21143
# Handling of arguments.
 
21144
for ac_config_target in $ac_config_targets
 
21145
do
 
21146
  case $ac_config_target in
 
21147
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
21148
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
21149
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
21150
    "README") CONFIG_FILES="$CONFIG_FILES README" ;;
 
21151
    "INSTALL") CONFIG_FILES="$CONFIG_FILES INSTALL" ;;
 
21152
    "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
 
21153
    "docs/autodocs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/autodocs/Makefile" ;;
 
21154
    "libthinkfinger/Makefile") CONFIG_FILES="$CONFIG_FILES libthinkfinger/Makefile" ;;
 
21155
    "libthinkfinger/libthinkfinger.pc") CONFIG_FILES="$CONFIG_FILES libthinkfinger/libthinkfinger.pc" ;;
 
21156
    "pam/Makefile") CONFIG_FILES="$CONFIG_FILES pam/Makefile" ;;
 
21157
    "tf-tool/Makefile") CONFIG_FILES="$CONFIG_FILES tf-tool/Makefile" ;;
 
21158
 
 
21159
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
21160
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
21161
   { (exit 1); exit 1; }; };;
 
21162
  esac
 
21163
done
 
21164
 
 
21165
 
 
21166
# If the user did not use the arguments to specify the items to instantiate,
 
21167
# then the envvar interface is used.  Set only those that are not.
 
21168
# We use the long form for the default assignment because of an extremely
 
21169
# bizarre bug on SunOS 4.1.3.
 
21170
if $ac_need_defaults; then
 
21171
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
21172
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
21173
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
21174
fi
 
21175
 
 
21176
# Have a temporary directory for convenience.  Make it in the build tree
 
21177
# simply because there is no reason against having it here, and in addition,
 
21178
# creating and moving files from /tmp can sometimes cause problems.
 
21179
# Hook for its removal unless debugging.
 
21180
# Note that there is a small window in which the directory will not be cleaned:
 
21181
# after its creation but before its name has been assigned to `$tmp'.
 
21182
$debug ||
 
21183
{
 
21184
  tmp=
 
21185
  trap 'exit_status=$?
 
21186
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 
21187
' 0
 
21188
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
21189
}
 
21190
# Create a (secure) tmp directory for tmp files.
 
21191
 
 
21192
{
 
21193
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
21194
  test -n "$tmp" && test -d "$tmp"
 
21195
}  ||
 
21196
{
 
21197
  tmp=./conf$$-$RANDOM
 
21198
  (umask 077 && mkdir "$tmp")
 
21199
} ||
 
21200
{
 
21201
   echo "$me: cannot create a temporary directory in ." >&2
 
21202
   { (exit 1); exit 1; }
 
21203
}
 
21204
 
 
21205
#
 
21206
# Set up the sed scripts for CONFIG_FILES section.
 
21207
#
 
21208
 
 
21209
# No need to generate the scripts if there are no CONFIG_FILES.
 
21210
# This happens for instance when ./config.status config.h
 
21211
if test -n "$CONFIG_FILES"; then
 
21212
 
 
21213
_ACEOF
 
21214
 
 
21215
 
 
21216
 
 
21217
ac_delim='%!_!# '
 
21218
for ac_last_try in false false false false false :; do
 
21219
  cat >conf$$subs.sed <<_ACEOF
 
21220
SHELL!$SHELL$ac_delim
 
21221
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
 
21222
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
 
21223
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
 
21224
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
 
21225
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
 
21226
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
 
21227
exec_prefix!$exec_prefix$ac_delim
 
21228
prefix!$prefix$ac_delim
 
21229
program_transform_name!$program_transform_name$ac_delim
 
21230
bindir!$bindir$ac_delim
 
21231
sbindir!$sbindir$ac_delim
 
21232
libexecdir!$libexecdir$ac_delim
 
21233
datarootdir!$datarootdir$ac_delim
 
21234
datadir!$datadir$ac_delim
 
21235
sysconfdir!$sysconfdir$ac_delim
 
21236
sharedstatedir!$sharedstatedir$ac_delim
 
21237
localstatedir!$localstatedir$ac_delim
 
21238
includedir!$includedir$ac_delim
 
21239
oldincludedir!$oldincludedir$ac_delim
 
21240
docdir!$docdir$ac_delim
 
21241
infodir!$infodir$ac_delim
 
21242
htmldir!$htmldir$ac_delim
 
21243
dvidir!$dvidir$ac_delim
 
21244
pdfdir!$pdfdir$ac_delim
 
21245
psdir!$psdir$ac_delim
 
21246
libdir!$libdir$ac_delim
 
21247
localedir!$localedir$ac_delim
 
21248
mandir!$mandir$ac_delim
 
21249
DEFS!$DEFS$ac_delim
 
21250
ECHO_C!$ECHO_C$ac_delim
 
21251
ECHO_N!$ECHO_N$ac_delim
 
21252
ECHO_T!$ECHO_T$ac_delim
 
21253
LIBS!$LIBS$ac_delim
 
21254
build_alias!$build_alias$ac_delim
 
21255
host_alias!$host_alias$ac_delim
 
21256
target_alias!$target_alias$ac_delim
 
21257
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
 
21258
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
 
21259
INSTALL_DATA!$INSTALL_DATA$ac_delim
 
21260
am__isrc!$am__isrc$ac_delim
 
21261
CYGPATH_W!$CYGPATH_W$ac_delim
 
21262
PACKAGE!$PACKAGE$ac_delim
 
21263
VERSION!$VERSION$ac_delim
 
21264
ACLOCAL!$ACLOCAL$ac_delim
 
21265
AUTOCONF!$AUTOCONF$ac_delim
 
21266
AUTOMAKE!$AUTOMAKE$ac_delim
 
21267
AUTOHEADER!$AUTOHEADER$ac_delim
 
21268
MAKEINFO!$MAKEINFO$ac_delim
 
21269
install_sh!$install_sh$ac_delim
 
21270
STRIP!$STRIP$ac_delim
 
21271
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
 
21272
mkdir_p!$mkdir_p$ac_delim
 
21273
AWK!$AWK$ac_delim
 
21274
SET_MAKE!$SET_MAKE$ac_delim
 
21275
am__leading_dot!$am__leading_dot$ac_delim
 
21276
AMTAR!$AMTAR$ac_delim
 
21277
am__tar!$am__tar$ac_delim
 
21278
am__untar!$am__untar$ac_delim
 
21279
CC!$CC$ac_delim
 
21280
CFLAGS!$CFLAGS$ac_delim
 
21281
LDFLAGS!$LDFLAGS$ac_delim
 
21282
CPPFLAGS!$CPPFLAGS$ac_delim
 
21283
ac_ct_CC!$ac_ct_CC$ac_delim
 
21284
EXEEXT!$EXEEXT$ac_delim
 
21285
OBJEXT!$OBJEXT$ac_delim
 
21286
DEPDIR!$DEPDIR$ac_delim
 
21287
am__include!$am__include$ac_delim
 
21288
am__quote!$am__quote$ac_delim
 
21289
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
 
21290
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
 
21291
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
 
21292
CCDEPMODE!$CCDEPMODE$ac_delim
 
21293
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
 
21294
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
 
21295
build!$build$ac_delim
 
21296
build_cpu!$build_cpu$ac_delim
 
21297
build_vendor!$build_vendor$ac_delim
 
21298
build_os!$build_os$ac_delim
 
21299
host!$host$ac_delim
 
21300
host_cpu!$host_cpu$ac_delim
 
21301
host_vendor!$host_vendor$ac_delim
 
21302
host_os!$host_os$ac_delim
 
21303
GREP!$GREP$ac_delim
 
21304
EGREP!$EGREP$ac_delim
 
21305
LN_S!$LN_S$ac_delim
 
21306
ECHO!$ECHO$ac_delim
 
21307
AR!$AR$ac_delim
 
21308
RANLIB!$RANLIB$ac_delim
 
21309
CPP!$CPP$ac_delim
 
21310
CXX!$CXX$ac_delim
 
21311
CXXFLAGS!$CXXFLAGS$ac_delim
 
21312
ac_ct_CXX!$ac_ct_CXX$ac_delim
 
21313
CXXDEPMODE!$CXXDEPMODE$ac_delim
 
21314
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
 
21315
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
 
21316
CXXCPP!$CXXCPP$ac_delim
 
21317
_ACEOF
 
21318
 
 
21319
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
 
21320
    break
 
21321
  elif $ac_last_try; then
 
21322
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
21323
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
21324
   { (exit 1); exit 1; }; }
 
21325
  else
 
21326
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
21327
  fi
 
21328
done
 
21329
 
 
21330
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
21331
if test -n "$ac_eof"; then
 
21332
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
21333
  ac_eof=`expr $ac_eof + 1`
 
21334
fi
 
21335
 
 
21336
cat >>$CONFIG_STATUS <<_ACEOF
 
21337
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
 
21338
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
21339
_ACEOF
 
21340
sed '
 
21341
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
21342
s/^/s,@/; s/!/@,|#_!!_#|/
 
21343
:n
 
21344
t n
 
21345
s/'"$ac_delim"'$/,g/; t
 
21346
s/$/\\/; p
 
21347
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
21348
' >>$CONFIG_STATUS <conf$$subs.sed
 
21349
rm -f conf$$subs.sed
 
21350
cat >>$CONFIG_STATUS <<_ACEOF
 
21351
CEOF$ac_eof
 
21352
_ACEOF
 
21353
 
 
21354
 
 
21355
ac_delim='%!_!# '
 
21356
for ac_last_try in false false false false false :; do
 
21357
  cat >conf$$subs.sed <<_ACEOF
 
21358
F77!$F77$ac_delim
 
21359
FFLAGS!$FFLAGS$ac_delim
 
21360
ac_ct_F77!$ac_ct_F77$ac_delim
 
21361
LIBTOOL!$LIBTOOL$ac_delim
 
21362
PKG_CONFIG!$PKG_CONFIG$ac_delim
 
21363
USB_CFLAGS!$USB_CFLAGS$ac_delim
 
21364
USB_LIBS!$USB_LIBS$ac_delim
 
21365
DOXYGEN!$DOXYGEN$ac_delim
 
21366
PREFIX!$PREFIX$ac_delim
 
21367
LIBDIR!$LIBDIR$ac_delim
 
21368
BINDIR!$BINDIR$ac_delim
 
21369
SBINDIR!$SBINDIR$ac_delim
 
21370
SECUREDIR!$SECUREDIR$ac_delim
 
21371
BIRDIR!$BIRDIR$ac_delim
 
21372
MANDIR!$MANDIR$ac_delim
 
21373
PAM_LIBS!$PAM_LIBS$ac_delim
 
21374
PTHREAD_LIBS!$PTHREAD_LIBS$ac_delim
 
21375
BUILD_PAM_TRUE!$BUILD_PAM_TRUE$ac_delim
 
21376
BUILD_PAM_FALSE!$BUILD_PAM_FALSE$ac_delim
 
21377
HAVE_OLD_PAM_TRUE!$HAVE_OLD_PAM_TRUE$ac_delim
 
21378
HAVE_OLD_PAM_FALSE!$HAVE_OLD_PAM_FALSE$ac_delim
 
21379
LIBOBJS!$LIBOBJS$ac_delim
 
21380
LTLIBOBJS!$LTLIBOBJS$ac_delim
 
21381
_ACEOF
 
21382
 
 
21383
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 23; then
 
21384
    break
 
21385
  elif $ac_last_try; then
 
21386
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
21387
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
21388
   { (exit 1); exit 1; }; }
 
21389
  else
 
21390
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
21391
  fi
 
21392
done
 
21393
 
 
21394
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
21395
if test -n "$ac_eof"; then
 
21396
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
21397
  ac_eof=`expr $ac_eof + 1`
 
21398
fi
 
21399
 
 
21400
cat >>$CONFIG_STATUS <<_ACEOF
 
21401
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
 
21402
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
 
21403
_ACEOF
 
21404
sed '
 
21405
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
21406
s/^/s,@/; s/!/@,|#_!!_#|/
 
21407
:n
 
21408
t n
 
21409
s/'"$ac_delim"'$/,g/; t
 
21410
s/$/\\/; p
 
21411
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
21412
' >>$CONFIG_STATUS <conf$$subs.sed
 
21413
rm -f conf$$subs.sed
 
21414
cat >>$CONFIG_STATUS <<_ACEOF
 
21415
:end
 
21416
s/|#_!!_#|//g
 
21417
CEOF$ac_eof
 
21418
_ACEOF
 
21419
 
 
21420
 
 
21421
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
21422
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
21423
# trailing colons and then remove the whole line if VPATH becomes empty
 
21424
# (actually we leave an empty line to preserve line numbers).
 
21425
if test "x$srcdir" = x.; then
 
21426
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
21427
s/:*\$(srcdir):*/:/
 
21428
s/:*\${srcdir}:*/:/
 
21429
s/:*@srcdir@:*/:/
 
21430
s/^\([^=]*=[     ]*\):*/\1/
 
21431
s/:*$//
 
21432
s/^[^=]*=[       ]*$//
 
21433
}'
 
21434
fi
 
21435
 
 
21436
cat >>$CONFIG_STATUS <<\_ACEOF
 
21437
fi # test -n "$CONFIG_FILES"
 
21438
 
 
21439
 
 
21440
for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
 
21441
do
 
21442
  case $ac_tag in
 
21443
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
21444
  esac
 
21445
  case $ac_mode$ac_tag in
 
21446
  :[FHL]*:*);;
 
21447
  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
 
21448
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
 
21449
   { (exit 1); exit 1; }; };;
 
21450
  :[FH]-) ac_tag=-:-;;
 
21451
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
21452
  esac
 
21453
  ac_save_IFS=$IFS
 
21454
  IFS=:
 
21455
  set x $ac_tag
 
21456
  IFS=$ac_save_IFS
 
21457
  shift
 
21458
  ac_file=$1
 
21459
  shift
 
21460
 
 
21461
  case $ac_mode in
 
21462
  :L) ac_source=$1;;
 
21463
  :[FH])
 
21464
    ac_file_inputs=
 
21465
    for ac_f
 
21466
    do
 
21467
      case $ac_f in
 
21468
      -) ac_f="$tmp/stdin";;
 
21469
      *) # Look for the file first in the build tree, then in the source tree
 
21470
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
21471
         # because $ac_f cannot contain `:'.
 
21472
         test -f "$ac_f" ||
 
21473
           case $ac_f in
 
21474
           [\\/$]*) false;;
 
21475
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
21476
           esac ||
 
21477
           { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
 
21478
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
 
21479
   { (exit 1); exit 1; }; };;
 
21480
      esac
 
21481
      ac_file_inputs="$ac_file_inputs $ac_f"
 
21482
    done
 
21483
 
 
21484
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
21485
    # use $as_me), people would be surprised to read:
 
21486
    #    /* config.h.  Generated by config.status.  */
 
21487
    configure_input="Generated from "`IFS=:
 
21488
          echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
 
21489
    if test x"$ac_file" != x-; then
 
21490
      configure_input="$ac_file.  $configure_input"
 
21491
      { echo "$as_me:$LINENO: creating $ac_file" >&5
 
21492
echo "$as_me: creating $ac_file" >&6;}
 
21493
    fi
 
21494
 
 
21495
    case $ac_tag in
 
21496
    *:-:* | *:-) cat >"$tmp/stdin";;
 
21497
    esac
 
21498
    ;;
 
21499
  esac
 
21500
 
 
21501
  ac_dir=`$as_dirname -- "$ac_file" ||
 
21502
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21503
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
21504
         X"$ac_file" : 'X\(//\)$' \| \
 
21505
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
21506
echo X"$ac_file" |
 
21507
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
21508
            s//\1/
 
21509
            q
 
21510
          }
 
21511
          /^X\(\/\/\)[^/].*/{
 
21512
            s//\1/
 
21513
            q
 
21514
          }
 
21515
          /^X\(\/\/\)$/{
 
21516
            s//\1/
 
21517
            q
 
21518
          }
 
21519
          /^X\(\/\).*/{
 
21520
            s//\1/
 
21521
            q
 
21522
          }
 
21523
          s/.*/./; q'`
 
21524
  { as_dir="$ac_dir"
 
21525
  case $as_dir in #(
 
21526
  -*) as_dir=./$as_dir;;
 
21527
  esac
 
21528
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
21529
    as_dirs=
 
21530
    while :; do
 
21531
      case $as_dir in #(
 
21532
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 
21533
      *) as_qdir=$as_dir;;
 
21534
      esac
 
21535
      as_dirs="'$as_qdir' $as_dirs"
 
21536
      as_dir=`$as_dirname -- "$as_dir" ||
 
21537
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21538
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
21539
         X"$as_dir" : 'X\(//\)$' \| \
 
21540
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
21541
echo X"$as_dir" |
 
21542
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
21543
            s//\1/
 
21544
            q
 
21545
          }
 
21546
          /^X\(\/\/\)[^/].*/{
 
21547
            s//\1/
 
21548
            q
 
21549
          }
 
21550
          /^X\(\/\/\)$/{
 
21551
            s//\1/
 
21552
            q
 
21553
          }
 
21554
          /^X\(\/\).*/{
 
21555
            s//\1/
 
21556
            q
 
21557
          }
 
21558
          s/.*/./; q'`
 
21559
      test -d "$as_dir" && break
 
21560
    done
 
21561
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
21562
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
21563
echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
21564
   { (exit 1); exit 1; }; }; }
 
21565
  ac_builddir=.
 
21566
 
 
21567
case "$ac_dir" in
 
21568
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
21569
*)
 
21570
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
21571
  # A ".." for each directory in $ac_dir_suffix.
 
21572
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
21573
  case $ac_top_builddir_sub in
 
21574
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
21575
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
21576
  esac ;;
 
21577
esac
 
21578
ac_abs_top_builddir=$ac_pwd
 
21579
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
21580
# for backward compatibility:
 
21581
ac_top_builddir=$ac_top_build_prefix
 
21582
 
 
21583
case $srcdir in
 
21584
  .)  # We are building in place.
 
21585
    ac_srcdir=.
 
21586
    ac_top_srcdir=$ac_top_builddir_sub
 
21587
    ac_abs_top_srcdir=$ac_pwd ;;
 
21588
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
21589
    ac_srcdir=$srcdir$ac_dir_suffix;
 
21590
    ac_top_srcdir=$srcdir
 
21591
    ac_abs_top_srcdir=$srcdir ;;
 
21592
  *) # Relative name.
 
21593
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
21594
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
21595
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
21596
esac
 
21597
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
21598
 
 
21599
 
 
21600
  case $ac_mode in
 
21601
  :F)
 
21602
  #
 
21603
  # CONFIG_FILE
 
21604
  #
 
21605
 
 
21606
  case $INSTALL in
 
21607
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
21608
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
21609
  esac
 
21610
  ac_MKDIR_P=$MKDIR_P
 
21611
  case $MKDIR_P in
 
21612
  [\\/$]* | ?:[\\/]* ) ;;
 
21613
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
 
21614
  esac
 
21615
_ACEOF
 
21616
 
 
21617
cat >>$CONFIG_STATUS <<\_ACEOF
 
21618
# If the template does not know about datarootdir, expand it.
 
21619
# FIXME: This hack should be removed a few years after 2.60.
 
21620
ac_datarootdir_hack=; ac_datarootdir_seen=
 
21621
 
 
21622
case `sed -n '/datarootdir/ {
 
21623
  p
 
21624
  q
 
21625
}
 
21626
/@datadir@/p
 
21627
/@docdir@/p
 
21628
/@infodir@/p
 
21629
/@localedir@/p
 
21630
/@mandir@/p
 
21631
' $ac_file_inputs` in
 
21632
*datarootdir*) ac_datarootdir_seen=yes;;
 
21633
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
21634
  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
21635
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
21636
_ACEOF
 
21637
cat >>$CONFIG_STATUS <<_ACEOF
 
21638
  ac_datarootdir_hack='
 
21639
  s&@datadir@&$datadir&g
 
21640
  s&@docdir@&$docdir&g
 
21641
  s&@infodir@&$infodir&g
 
21642
  s&@localedir@&$localedir&g
 
21643
  s&@mandir@&$mandir&g
 
21644
    s&\\\${datarootdir}&$datarootdir&g' ;;
 
21645
esac
 
21646
_ACEOF
 
21647
 
 
21648
# Neutralize VPATH when `$srcdir' = `.'.
 
21649
# Shell code in configure.ac might set extrasub.
 
21650
# FIXME: do we really want to maintain this feature?
 
21651
cat >>$CONFIG_STATUS <<_ACEOF
 
21652
  sed "$ac_vpsub
 
21653
$extrasub
 
21654
_ACEOF
 
21655
cat >>$CONFIG_STATUS <<\_ACEOF
 
21656
:t
 
21657
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
21658
s&@configure_input@&$configure_input&;t t
 
21659
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
21660
s&@srcdir@&$ac_srcdir&;t t
 
21661
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
21662
s&@top_srcdir@&$ac_top_srcdir&;t t
 
21663
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
21664
s&@builddir@&$ac_builddir&;t t
 
21665
s&@abs_builddir@&$ac_abs_builddir&;t t
 
21666
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
21667
s&@INSTALL@&$ac_INSTALL&;t t
 
21668
s&@MKDIR_P@&$ac_MKDIR_P&;t t
 
21669
$ac_datarootdir_hack
 
21670
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
 
21671
 
 
21672
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
21673
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 
21674
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 
21675
  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
21676
which seems to be undefined.  Please make sure it is defined." >&5
 
21677
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
21678
which seems to be undefined.  Please make sure it is defined." >&2;}
 
21679
 
 
21680
  rm -f "$tmp/stdin"
 
21681
  case $ac_file in
 
21682
  -) cat "$tmp/out"; rm -f "$tmp/out";;
 
21683
  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
 
21684
  esac
 
21685
 ;;
 
21686
  :H)
 
21687
  #
 
21688
  # CONFIG_HEADER
 
21689
  #
 
21690
_ACEOF
 
21691
 
 
21692
# Transform confdefs.h into a sed script `conftest.defines', that
 
21693
# substitutes the proper values into config.h.in to produce config.h.
 
21694
rm -f conftest.defines conftest.tail
 
21695
# First, append a space to every undef/define line, to ease matching.
 
21696
echo 's/$/ /' >conftest.defines
 
21697
# Then, protect against being on the right side of a sed subst, or in
 
21698
# an unquoted here document, in config.status.  If some macros were
 
21699
# called several times there might be several #defines for the same
 
21700
# symbol, which is useless.  But do not sort them, since the last
 
21701
# AC_DEFINE must be honored.
 
21702
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
21703
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
 
21704
# NAME is the cpp macro being defined, VALUE is the value it is being given.
 
21705
# PARAMS is the parameter list in the macro definition--in most cases, it's
 
21706
# just an empty string.
 
21707
ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
 
21708
ac_dB='\\)[      (].*,\\1define\\2'
 
21709
ac_dC=' '
 
21710
ac_dD=' ,'
 
21711
 
 
21712
uniq confdefs.h |
 
21713
  sed -n '
 
21714
        t rset
 
21715
        :rset
 
21716
        s/^[     ]*#[    ]*define[       ][      ]*//
 
21717
        t ok
 
21718
        d
 
21719
        :ok
 
21720
        s/[\\&,]/\\&/g
 
21721
        s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
 
21722
        s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
 
21723
  ' >>conftest.defines
 
21724
 
 
21725
# Remove the space that was appended to ease matching.
 
21726
# Then replace #undef with comments.  This is necessary, for
 
21727
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
21728
# on some systems where configure will not decide to define it.
 
21729
# (The regexp can be short, since the line contains either #define or #undef.)
 
21730
echo 's/ $//
 
21731
s,^[     #]*u.*,/* & */,' >>conftest.defines
 
21732
 
 
21733
# Break up conftest.defines:
 
21734
ac_max_sed_lines=50
 
21735
 
 
21736
# First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
 
21737
# Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
 
21738
# Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
 
21739
# et cetera.
 
21740
ac_in='$ac_file_inputs'
 
21741
ac_out='"$tmp/out1"'
 
21742
ac_nxt='"$tmp/out2"'
 
21743
 
 
21744
while :
 
21745
do
 
21746
  # Write a here document:
 
21747
    cat >>$CONFIG_STATUS <<_ACEOF
 
21748
    # First, check the format of the line:
 
21749
    cat >"\$tmp/defines.sed" <<\\CEOF
 
21750
/^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
 
21751
/^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
 
21752
b
 
21753
:def
 
21754
_ACEOF
 
21755
  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
 
21756
  echo 'CEOF
 
21757
    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
 
21758
  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
 
21759
  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
 
21760
  grep . conftest.tail >/dev/null || break
 
21761
  rm -f conftest.defines
 
21762
  mv conftest.tail conftest.defines
 
21763
done
 
21764
rm -f conftest.defines conftest.tail
 
21765
 
 
21766
echo "ac_result=$ac_in" >>$CONFIG_STATUS
 
21767
cat >>$CONFIG_STATUS <<\_ACEOF
 
21768
  if test x"$ac_file" != x-; then
 
21769
    echo "/* $configure_input  */" >"$tmp/config.h"
 
21770
    cat "$ac_result" >>"$tmp/config.h"
 
21771
    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
 
21772
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
21773
echo "$as_me: $ac_file is unchanged" >&6;}
 
21774
    else
 
21775
      rm -f $ac_file
 
21776
      mv "$tmp/config.h" $ac_file
 
21777
    fi
 
21778
  else
 
21779
    echo "/* $configure_input  */"
 
21780
    cat "$ac_result"
 
21781
  fi
 
21782
  rm -f "$tmp/out12"
 
21783
# Compute $ac_file's index in $config_headers.
 
21784
_am_stamp_count=1
 
21785
for _am_header in $config_headers :; do
 
21786
  case $_am_header in
 
21787
    $ac_file | $ac_file:* )
 
21788
      break ;;
 
21789
    * )
 
21790
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
21791
  esac
 
21792
done
 
21793
echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
 
21794
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21795
         X$ac_file : 'X\(//\)[^/]' \| \
 
21796
         X$ac_file : 'X\(//\)$' \| \
 
21797
         X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
 
21798
echo X$ac_file |
 
21799
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
21800
            s//\1/
 
21801
            q
 
21802
          }
 
21803
          /^X\(\/\/\)[^/].*/{
 
21804
            s//\1/
 
21805
            q
 
21806
          }
 
21807
          /^X\(\/\/\)$/{
 
21808
            s//\1/
 
21809
            q
 
21810
          }
 
21811
          /^X\(\/\).*/{
 
21812
            s//\1/
 
21813
            q
 
21814
          }
 
21815
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
21816
 ;;
 
21817
 
 
21818
  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
 
21819
echo "$as_me: executing $ac_file commands" >&6;}
 
21820
 ;;
 
21821
  esac
 
21822
 
 
21823
 
 
21824
  case $ac_file$ac_mode in
 
21825
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
21826
  # Strip MF so we end up with the name of the file.
 
21827
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
21828
  # Check whether this is an Automake generated Makefile or not.
 
21829
  # We used to match only the files named `Makefile.in', but
 
21830
  # some people rename them; so instead we look at the file content.
 
21831
  # Grep'ing the first line is not enough: some people post-process
 
21832
  # each Makefile.in and add a new line on top of each file to say so.
 
21833
  # Grep'ing the whole file is not good either: AIX grep has a line
 
21834
  # limit of 2048, but all sed's we know have understand at least 4000.
 
21835
  if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
 
21836
    dirpart=`$as_dirname -- "$mf" ||
 
21837
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21838
         X"$mf" : 'X\(//\)[^/]' \| \
 
21839
         X"$mf" : 'X\(//\)$' \| \
 
21840
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 
21841
echo X"$mf" |
 
21842
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
21843
            s//\1/
 
21844
            q
 
21845
          }
 
21846
          /^X\(\/\/\)[^/].*/{
 
21847
            s//\1/
 
21848
            q
 
21849
          }
 
21850
          /^X\(\/\/\)$/{
 
21851
            s//\1/
 
21852
            q
 
21853
          }
 
21854
          /^X\(\/\).*/{
 
21855
            s//\1/
 
21856
            q
 
21857
          }
 
21858
          s/.*/./; q'`
 
21859
  else
 
21860
    continue
 
21861
  fi
 
21862
  # Extract the definition of DEPDIR, am__include, and am__quote
 
21863
  # from the Makefile without running `make'.
 
21864
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
21865
  test -z "$DEPDIR" && continue
 
21866
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
21867
  test -z "am__include" && continue
 
21868
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
21869
  # When using ansi2knr, U may be empty or an underscore; expand it
 
21870
  U=`sed -n 's/^U = //p' < "$mf"`
 
21871
  # Find all dependency output files, they are included files with
 
21872
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
21873
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
21874
  # expansion.
 
21875
  for file in `sed -n "
 
21876
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
21877
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
21878
    # Make sure the directory exists.
 
21879
    test -f "$dirpart/$file" && continue
 
21880
    fdir=`$as_dirname -- "$file" ||
 
21881
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21882
         X"$file" : 'X\(//\)[^/]' \| \
 
21883
         X"$file" : 'X\(//\)$' \| \
 
21884
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 
21885
echo X"$file" |
 
21886
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
21887
            s//\1/
 
21888
            q
 
21889
          }
 
21890
          /^X\(\/\/\)[^/].*/{
 
21891
            s//\1/
 
21892
            q
 
21893
          }
 
21894
          /^X\(\/\/\)$/{
 
21895
            s//\1/
 
21896
            q
 
21897
          }
 
21898
          /^X\(\/\).*/{
 
21899
            s//\1/
 
21900
            q
 
21901
          }
 
21902
          s/.*/./; q'`
 
21903
    { as_dir=$dirpart/$fdir
 
21904
  case $as_dir in #(
 
21905
  -*) as_dir=./$as_dir;;
 
21906
  esac
 
21907
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
21908
    as_dirs=
 
21909
    while :; do
 
21910
      case $as_dir in #(
 
21911
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 
21912
      *) as_qdir=$as_dir;;
 
21913
      esac
 
21914
      as_dirs="'$as_qdir' $as_dirs"
 
21915
      as_dir=`$as_dirname -- "$as_dir" ||
 
21916
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
21917
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
21918
         X"$as_dir" : 'X\(//\)$' \| \
 
21919
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
21920
echo X"$as_dir" |
 
21921
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
21922
            s//\1/
 
21923
            q
 
21924
          }
 
21925
          /^X\(\/\/\)[^/].*/{
 
21926
            s//\1/
 
21927
            q
 
21928
          }
 
21929
          /^X\(\/\/\)$/{
 
21930
            s//\1/
 
21931
            q
 
21932
          }
 
21933
          /^X\(\/\).*/{
 
21934
            s//\1/
 
21935
            q
 
21936
          }
 
21937
          s/.*/./; q'`
 
21938
      test -d "$as_dir" && break
 
21939
    done
 
21940
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
21941
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
21942
echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
21943
   { (exit 1); exit 1; }; }; }
 
21944
    # echo "creating $dirpart/$file"
 
21945
    echo '# dummy' > "$dirpart/$file"
 
21946
  done
 
21947
done
 
21948
 ;;
 
21949
 
 
21950
  esac
 
21951
done # for ac_tag
 
21952
 
 
21953
 
 
21954
{ (exit 0); exit 0; }
 
21955
_ACEOF
 
21956
chmod +x $CONFIG_STATUS
 
21957
ac_clean_files=$ac_clean_files_save
 
21958
 
 
21959
 
 
21960
# configure is writing to config.log, and then calls config.status.
 
21961
# config.status does its own redirection, appending to config.log.
 
21962
# Unfortunately, on DOS this fails, as config.log is still kept open
 
21963
# by configure, so config.status won't be able to write to it; its
 
21964
# output is simply discarded.  So we exec the FD to /dev/null,
 
21965
# effectively closing config.log, so it can be properly (re)opened and
 
21966
# appended to by config.status.  When coming back to configure, we
 
21967
# need to make the FD available again.
 
21968
if test "$no_create" != yes; then
 
21969
  ac_cs_success=:
 
21970
  ac_config_status_args=
 
21971
  test "$silent" = yes &&
 
21972
    ac_config_status_args="$ac_config_status_args --quiet"
 
21973
  exec 5>/dev/null
 
21974
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
21975
  exec 5>>config.log
 
21976
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
21977
  # would make configure fail if this is the last instruction.
 
21978
  $ac_cs_success || { (exit 1); exit 1; }
 
21979
fi
 
21980