~ubuntu-branches/ubuntu/jaunty/trousers/jaunty

« back to all changes in this revision

Viewing changes to autom4te.cache/output.0

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2008-01-23 22:03:00 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080123220300-fhtqja3c0oq0gp6z
Tags: 0.3.1-4
* Added patch from Aaron M. Ucko <ucko@debian.org> to allow trousers to
  build successfully on amd64, and presumably also other 64-bit
  architectures (Closes: #457400).
* Including udev rule for /dev/tpm from William Lima
  <wlima.amadeus@gmail.com> as suggested by David Smith <dds@google.com>
  (Closes: #459682).
* Added lintian overrides.

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.59 for trousers 0.2.9.1.
4
 
@%:@
5
 
@%:@ Report bugs to <trousers-tech@lists.sf.net>.
6
 
@%:@ 
7
 
@%:@ Copyright (C) 2003 Free Software Foundation, Inc.
8
 
@%:@ This configure script is free software; the Free Software Foundation
9
 
@%:@ gives unlimited permission to copy, distribute and modify it.
10
 
## --------------------- ##
11
 
## M4sh Initialization.  ##
12
 
## --------------------- ##
13
 
 
14
 
# Be Bourne compatible
15
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16
 
  emulate sh
17
 
  NULLCMD=:
18
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19
 
  # is contrary to our usage.  Disable this feature.
20
 
  alias -g '${1+"$@"}'='"$@"'
21
 
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22
 
  set -o posix
23
 
fi
24
 
DUALCASE=1; export DUALCASE # for MKS sh
25
 
 
26
 
# Support unset when possible.
27
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28
 
  as_unset=unset
29
 
else
30
 
  as_unset=false
31
 
fi
32
 
 
33
 
 
34
 
# Work around bugs in pre-3.0 UWIN ksh.
35
 
$as_unset ENV MAIL MAILPATH
36
 
PS1='$ '
37
 
PS2='> '
38
 
PS4='+ '
39
 
 
40
 
# NLS nuisances.
41
 
for as_var in \
42
 
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43
 
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44
 
  LC_TELEPHONE LC_TIME
45
 
do
46
 
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47
 
    eval $as_var=C; export $as_var
48
 
  else
49
 
    $as_unset $as_var
50
 
  fi
51
 
done
52
 
 
53
 
# Required to use basename.
54
 
if expr a : '\(a\)' >/dev/null 2>&1; then
55
 
  as_expr=expr
56
 
else
57
 
  as_expr=false
58
 
fi
59
 
 
60
 
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61
 
  as_basename=basename
62
 
else
63
 
  as_basename=false
64
 
fi
65
 
 
66
 
 
67
 
# Name of the executable.
68
 
as_me=`$as_basename "$0" ||
69
 
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70
 
         X"$0" : 'X\(//\)$' \| \
71
 
         X"$0" : 'X\(/\)$' \| \
72
 
         .     : '\(.\)' 2>/dev/null ||
73
 
echo X/"$0" |
74
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75
 
          /^X\/\(\/\/\)$/{ s//\1/; q; }
76
 
          /^X\/\(\/\).*/{ s//\1/; q; }
77
 
          s/.*/./; q'`
78
 
 
79
 
 
80
 
# PATH needs CR, and LINENO needs CR and PATH.
81
 
# Avoid depending upon Character Ranges.
82
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85
 
as_cr_digits='0123456789'
86
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
87
 
 
88
 
# The user is always right.
89
 
if test "${PATH_SEPARATOR+set}" != set; then
90
 
  echo "#! /bin/sh" >conf$$.sh
91
 
  echo  "exit 0"   >>conf$$.sh
92
 
  chmod +x conf$$.sh
93
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94
 
    PATH_SEPARATOR=';'
95
 
  else
96
 
    PATH_SEPARATOR=:
97
 
  fi
98
 
  rm -f conf$$.sh
99
 
fi
100
 
 
101
 
 
102
 
  as_lineno_1=$LINENO
103
 
  as_lineno_2=$LINENO
104
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
106
 
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107
 
  # Find who we are.  Look in the path if we contain no path at all
108
 
  # relative or not.
109
 
  case $0 in
110
 
    *[\\/]* ) as_myself=$0 ;;
111
 
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112
 
for as_dir in $PATH
113
 
do
114
 
  IFS=$as_save_IFS
115
 
  test -z "$as_dir" && as_dir=.
116
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117
 
done
118
 
 
119
 
       ;;
120
 
  esac
121
 
  # We did not find ourselves, most probably we were run as `sh COMMAND'
122
 
  # in which case we are not to be found in the path.
123
 
  if test "x$as_myself" = x; then
124
 
    as_myself=$0
125
 
  fi
126
 
  if test ! -f "$as_myself"; then
127
 
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128
 
   { (exit 1); exit 1; }; }
129
 
  fi
130
 
  case $CONFIG_SHELL in
131
 
  '')
132
 
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133
 
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134
 
do
135
 
  IFS=$as_save_IFS
136
 
  test -z "$as_dir" && as_dir=.
137
 
  for as_base in sh bash ksh sh5; do
138
 
         case $as_dir in
139
 
         /*)
140
 
           if ("$as_dir/$as_base" -c '
141
 
  as_lineno_1=$LINENO
142
 
  as_lineno_2=$LINENO
143
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
145
 
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146
 
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147
 
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148
 
             CONFIG_SHELL=$as_dir/$as_base
149
 
             export CONFIG_SHELL
150
 
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151
 
           fi;;
152
 
         esac
153
 
       done
154
 
done
155
 
;;
156
 
  esac
157
 
 
158
 
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159
 
  # uniformly replaced by the line number.  The first 'sed' inserts a
160
 
  # line-number line before each line; the second 'sed' does the real
161
 
  # work.  The second script uses 'N' to pair each line-number line
162
 
  # with the numbered line, and appends trailing '-' during
163
 
  # substitution so that $LINENO is not a special case at line end.
164
 
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165
 
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166
 
  sed '=' <$as_myself |
167
 
    sed '
168
 
      N
169
 
      s,$,-,
170
 
      : loop
171
 
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172
 
      t loop
173
 
      s,-$,,
174
 
      s,^['$as_cr_digits']*\n,,
175
 
    ' >$as_me.lineno &&
176
 
  chmod +x $as_me.lineno ||
177
 
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178
 
   { (exit 1); exit 1; }; }
179
 
 
180
 
  # Don't try to exec as it changes $[0], causing all sort of problems
181
 
  # (the dirname of $[0] is not the place where we might find the
182
 
  # original and so on.  Autoconf is especially sensible to this).
183
 
  . ./$as_me.lineno
184
 
  # Exit status is that of the last command.
185
 
  exit
186
 
}
187
 
 
188
 
 
189
 
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190
 
  *c*,-n*) ECHO_N= ECHO_C='
191
 
' ECHO_T='      ' ;;
192
 
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193
 
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194
 
esac
195
 
 
196
 
if expr a : '\(a\)' >/dev/null 2>&1; then
197
 
  as_expr=expr
198
 
else
199
 
  as_expr=false
200
 
fi
201
 
 
202
 
rm -f conf$$ conf$$.exe conf$$.file
203
 
echo >conf$$.file
204
 
if ln -s conf$$.file conf$$ 2>/dev/null; then
205
 
  # We could just check for DJGPP; but this test a) works b) is more generic
206
 
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207
 
  if test -f conf$$.exe; then
208
 
    # Don't use ln at all; we don't have any links
209
 
    as_ln_s='cp -p'
210
 
  else
211
 
    as_ln_s='ln -s'
212
 
  fi
213
 
elif ln conf$$.file conf$$ 2>/dev/null; then
214
 
  as_ln_s=ln
215
 
else
216
 
  as_ln_s='cp -p'
217
 
fi
218
 
rm -f conf$$ conf$$.exe conf$$.file
219
 
 
220
 
if mkdir -p . 2>/dev/null; then
221
 
  as_mkdir_p=:
222
 
else
223
 
  test -d ./-p && rmdir ./-p
224
 
  as_mkdir_p=false
225
 
fi
226
 
 
227
 
as_executable_p="test -f"
228
 
 
229
 
# Sed expression to map a string onto a valid CPP name.
230
 
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
 
 
232
 
# Sed expression to map a string onto a valid variable name.
233
 
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
 
 
235
 
 
236
 
# IFS
237
 
# We need space, tab and new line, in precisely that order.
238
 
as_nl='
239
 
'
240
 
IFS="   $as_nl"
241
 
 
242
 
# CDPATH.
243
 
$as_unset CDPATH
244
 
 
245
 
 
246
 
 
247
 
# Check that we are running under the correct shell.
248
 
SHELL=${CONFIG_SHELL-/bin/sh}
249
 
 
250
 
case X$ECHO in
251
 
X*--fallback-echo)
252
 
  # Remove one level of quotation (which was required for Make).
253
 
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254
 
  ;;
255
 
esac
256
 
 
257
 
echo=${ECHO-echo}
258
 
if test "X$1" = X--no-reexec; then
259
 
  # Discard the --no-reexec flag, and continue.
260
 
  shift
261
 
elif test "X$1" = X--fallback-echo; then
262
 
  # Avoid inline document here, it may be left over
263
 
  :
264
 
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265
 
  # Yippee, $echo works!
266
 
  :
267
 
else
268
 
  # Restart under the correct shell.
269
 
  exec $SHELL "$0" --no-reexec ${1+"$@"}
270
 
fi
271
 
 
272
 
if test "X$1" = X--fallback-echo; then
273
 
  # used as fallback echo
274
 
  shift
275
 
  cat <<EOF
276
 
$*
277
 
EOF
278
 
  exit 0
279
 
fi
280
 
 
281
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
282
 
# if CDPATH is set.
283
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
284
 
 
285
 
if test -z "$ECHO"; then
286
 
if test "X${echo_test_string+set}" != Xset; then
287
 
# find a string as large as possible, as long as the shell can cope with it
288
 
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289
 
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290
 
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291
 
       echo_test_string="`eval $cmd`" &&
292
 
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293
 
    then
294
 
      break
295
 
    fi
296
 
  done
297
 
fi
298
 
 
299
 
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300
 
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301
 
   test "X$echo_testing_string" = "X$echo_test_string"; then
302
 
  :
303
 
else
304
 
  # The Solaris, AIX, and Digital Unix default echo programs unquote
305
 
  # backslashes.  This makes it impossible to quote backslashes using
306
 
  #   echo "$something" | sed 's/\\/\\\\/g'
307
 
  #
308
 
  # So, first we look for a working echo in the user's PATH.
309
 
 
310
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311
 
  for dir in $PATH /usr/ucb; do
312
 
    IFS="$lt_save_ifs"
313
 
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314
 
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315
 
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
317
 
      echo="$dir/echo"
318
 
      break
319
 
    fi
320
 
  done
321
 
  IFS="$lt_save_ifs"
322
 
 
323
 
  if test "X$echo" = Xecho; then
324
 
    # We didn't find a better echo, so look for alternatives.
325
 
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326
 
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327
 
       test "X$echo_testing_string" = "X$echo_test_string"; then
328
 
      # This shell has a builtin print -r that does the trick.
329
 
      echo='print -r'
330
 
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331
 
         test "X$CONFIG_SHELL" != X/bin/ksh; then
332
 
      # If we have ksh, try running configure again with it.
333
 
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334
 
      export ORIGINAL_CONFIG_SHELL
335
 
      CONFIG_SHELL=/bin/ksh
336
 
      export CONFIG_SHELL
337
 
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338
 
    else
339
 
      # Try using printf.
340
 
      echo='printf %s\n'
341
 
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342
 
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343
 
         test "X$echo_testing_string" = "X$echo_test_string"; then
344
 
        # Cool, printf works
345
 
        :
346
 
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347
 
           test "X$echo_testing_string" = 'X\t' &&
348
 
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
350
 
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351
 
        export CONFIG_SHELL
352
 
        SHELL="$CONFIG_SHELL"
353
 
        export SHELL
354
 
        echo="$CONFIG_SHELL $0 --fallback-echo"
355
 
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356
 
           test "X$echo_testing_string" = 'X\t' &&
357
 
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358
 
           test "X$echo_testing_string" = "X$echo_test_string"; then
359
 
        echo="$CONFIG_SHELL $0 --fallback-echo"
360
 
      else
361
 
        # maybe with a smaller string...
362
 
        prev=:
363
 
 
364
 
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365
 
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366
 
          then
367
 
            break
368
 
          fi
369
 
          prev="$cmd"
370
 
        done
371
 
 
372
 
        if test "$prev" != 'sed 50q "$0"'; then
373
 
          echo_test_string=`eval $prev`
374
 
          export echo_test_string
375
 
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376
 
        else
377
 
          # Oops.  We lost completely, so just stick with echo.
378
 
          echo=echo
379
 
        fi
380
 
      fi
381
 
    fi
382
 
  fi
383
 
fi
384
 
fi
385
 
 
386
 
# Copy echo and quote the copy suitably for passing to libtool from
387
 
# the Makefile, instead of quoting the original, which is used later.
388
 
ECHO=$echo
389
 
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390
 
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391
 
fi
392
 
 
393
 
 
394
 
 
395
 
 
396
 
tagnames=${tagnames+${tagnames},}CXX
397
 
 
398
 
tagnames=${tagnames+${tagnames},}F77
399
 
 
400
 
# Name of the host.
401
 
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402
 
# so uname gets run too.
403
 
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
 
 
405
 
exec 6>&1
406
 
 
407
 
#
408
 
# Initializations.
409
 
#
410
 
ac_default_prefix=/usr/local
411
 
ac_config_libobj_dir=.
412
 
cross_compiling=no
413
 
subdirs=
414
 
MFLAGS=
415
 
MAKEFLAGS=
416
 
SHELL=${CONFIG_SHELL-/bin/sh}
417
 
 
418
 
# Maximum number of lines to put in a shell here document.
419
 
# This variable seems obsolete.  It should probably be removed, and
420
 
# only ac_max_sed_lines should be used.
421
 
: ${ac_max_here_lines=38}
422
 
 
423
 
# Identity of this package.
424
 
PACKAGE_NAME='trousers'
425
 
PACKAGE_TARNAME='trousers'
426
 
PACKAGE_VERSION='0.2.9.1'
427
 
PACKAGE_STRING='trousers 0.2.9.1'
428
 
PACKAGE_BUGREPORT='trousers-tech@lists.sf.net'
429
 
 
430
 
# Factoring default headers for most tests.
431
 
ac_includes_default="\
432
 
#include <stdio.h>
433
 
#if HAVE_SYS_TYPES_H
434
 
# include <sys/types.h>
435
 
#endif
436
 
#if HAVE_SYS_STAT_H
437
 
# include <sys/stat.h>
438
 
#endif
439
 
#if STDC_HEADERS
440
 
# include <stdlib.h>
441
 
# include <stddef.h>
442
 
#else
443
 
# if HAVE_STDLIB_H
444
 
#  include <stdlib.h>
445
 
# endif
446
 
#endif
447
 
#if HAVE_STRING_H
448
 
# if !STDC_HEADERS && HAVE_MEMORY_H
449
 
#  include <memory.h>
450
 
# endif
451
 
# include <string.h>
452
 
#endif
453
 
#if HAVE_STRINGS_H
454
 
# include <strings.h>
455
 
#endif
456
 
#if HAVE_INTTYPES_H
457
 
# include <inttypes.h>
458
 
#else
459
 
# if HAVE_STDINT_H
460
 
#  include <stdint.h>
461
 
# endif
462
 
#endif
463
 
#if HAVE_UNISTD_H
464
 
# include <unistd.h>
465
 
#endif"
466
 
 
467
 
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar OPENSSL_LIB_DIR CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CRYPTO_PACKAGE HAVE_GTK_TRUE HAVE_GTK_FALSE PKG_CONFIG GTK_CFLAGS GTK_LIBS EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL TCSD_DEFAULT_PORT LIB@&t@OBJS LTLIBOBJS'
468
 
ac_subst_files=''
469
 
 
470
 
# Initialize some variables set by options.
471
 
ac_init_help=
472
 
ac_init_version=false
473
 
# The variables have the same names as the options, with
474
 
# dashes changed to underlines.
475
 
cache_file=/dev/null
476
 
exec_prefix=NONE
477
 
no_create=
478
 
no_recursion=
479
 
prefix=NONE
480
 
program_prefix=NONE
481
 
program_suffix=NONE
482
 
program_transform_name=s,x,x,
483
 
silent=
484
 
site=
485
 
srcdir=
486
 
verbose=
487
 
x_includes=NONE
488
 
x_libraries=NONE
489
 
 
490
 
# Installation directory options.
491
 
# These are left unexpanded so users can "make install exec_prefix=/foo"
492
 
# and all the variables that are supposed to be based on exec_prefix
493
 
# by default will actually change.
494
 
# Use braces instead of parens because sh, perl, etc. also accept them.
495
 
bindir='${exec_prefix}/bin'
496
 
sbindir='${exec_prefix}/sbin'
497
 
libexecdir='${exec_prefix}/libexec'
498
 
datadir='${prefix}/share'
499
 
sysconfdir='${prefix}/etc'
500
 
sharedstatedir='${prefix}/com'
501
 
localstatedir='${prefix}/var'
502
 
libdir='${exec_prefix}/lib'
503
 
includedir='${prefix}/include'
504
 
oldincludedir='/usr/include'
505
 
infodir='${prefix}/info'
506
 
mandir='${prefix}/man'
507
 
 
508
 
ac_prev=
509
 
for ac_option
510
 
do
511
 
  # If the previous option needs an argument, assign it.
512
 
  if test -n "$ac_prev"; then
513
 
    eval "$ac_prev=\$ac_option"
514
 
    ac_prev=
515
 
    continue
516
 
  fi
517
 
 
518
 
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519
 
 
520
 
  # Accept the important Cygnus configure options, so we can diagnose typos.
521
 
 
522
 
  case $ac_option in
523
 
 
524
 
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
525
 
    ac_prev=bindir ;;
526
 
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
527
 
    bindir=$ac_optarg ;;
528
 
 
529
 
  -build | --build | --buil | --bui | --bu)
530
 
    ac_prev=build_alias ;;
531
 
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532
 
    build_alias=$ac_optarg ;;
533
 
 
534
 
  -cache-file | --cache-file | --cache-fil | --cache-fi \
535
 
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536
 
    ac_prev=cache_file ;;
537
 
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538
 
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539
 
    cache_file=$ac_optarg ;;
540
 
 
541
 
  --config-cache | -C)
542
 
    cache_file=config.cache ;;
543
 
 
544
 
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545
 
    ac_prev=datadir ;;
546
 
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547
 
  | --da=*)
548
 
    datadir=$ac_optarg ;;
549
 
 
550
 
  -disable-* | --disable-*)
551
 
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552
 
    # Reject names that are not valid shell variable names.
553
 
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554
 
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555
 
   { (exit 1); exit 1; }; }
556
 
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557
 
    eval "enable_$ac_feature=no" ;;
558
 
 
559
 
  -enable-* | --enable-*)
560
 
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561
 
    # Reject names that are not valid shell variable names.
562
 
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563
 
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564
 
   { (exit 1); exit 1; }; }
565
 
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566
 
    case $ac_option in
567
 
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
568
 
      *) ac_optarg=yes ;;
569
 
    esac
570
 
    eval "enable_$ac_feature='$ac_optarg'" ;;
571
 
 
572
 
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573
 
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574
 
  | --exec | --exe | --ex)
575
 
    ac_prev=exec_prefix ;;
576
 
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577
 
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578
 
  | --exec=* | --exe=* | --ex=*)
579
 
    exec_prefix=$ac_optarg ;;
580
 
 
581
 
  -gas | --gas | --ga | --g)
582
 
    # Obsolete; use --with-gas.
583
 
    with_gas=yes ;;
584
 
 
585
 
  -help | --help | --hel | --he | -h)
586
 
    ac_init_help=long ;;
587
 
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588
 
    ac_init_help=recursive ;;
589
 
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590
 
    ac_init_help=short ;;
591
 
 
592
 
  -host | --host | --hos | --ho)
593
 
    ac_prev=host_alias ;;
594
 
  -host=* | --host=* | --hos=* | --ho=*)
595
 
    host_alias=$ac_optarg ;;
596
 
 
597
 
  -includedir | --includedir | --includedi | --included | --include \
598
 
  | --includ | --inclu | --incl | --inc)
599
 
    ac_prev=includedir ;;
600
 
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601
 
  | --includ=* | --inclu=* | --incl=* | --inc=*)
602
 
    includedir=$ac_optarg ;;
603
 
 
604
 
  -infodir | --infodir | --infodi | --infod | --info | --inf)
605
 
    ac_prev=infodir ;;
606
 
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607
 
    infodir=$ac_optarg ;;
608
 
 
609
 
  -libdir | --libdir | --libdi | --libd)
610
 
    ac_prev=libdir ;;
611
 
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
612
 
    libdir=$ac_optarg ;;
613
 
 
614
 
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615
 
  | --libexe | --libex | --libe)
616
 
    ac_prev=libexecdir ;;
617
 
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618
 
  | --libexe=* | --libex=* | --libe=*)
619
 
    libexecdir=$ac_optarg ;;
620
 
 
621
 
  -localstatedir | --localstatedir | --localstatedi | --localstated \
622
 
  | --localstate | --localstat | --localsta | --localst \
623
 
  | --locals | --local | --loca | --loc | --lo)
624
 
    ac_prev=localstatedir ;;
625
 
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626
 
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627
 
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628
 
    localstatedir=$ac_optarg ;;
629
 
 
630
 
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631
 
    ac_prev=mandir ;;
632
 
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
633
 
    mandir=$ac_optarg ;;
634
 
 
635
 
  -nfp | --nfp | --nf)
636
 
    # Obsolete; use --without-fp.
637
 
    with_fp=no ;;
638
 
 
639
 
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640
 
  | --no-cr | --no-c | -n)
641
 
    no_create=yes ;;
642
 
 
643
 
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644
 
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
645
 
    no_recursion=yes ;;
646
 
 
647
 
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648
 
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649
 
  | --oldin | --oldi | --old | --ol | --o)
650
 
    ac_prev=oldincludedir ;;
651
 
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652
 
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653
 
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654
 
    oldincludedir=$ac_optarg ;;
655
 
 
656
 
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657
 
    ac_prev=prefix ;;
658
 
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
659
 
    prefix=$ac_optarg ;;
660
 
 
661
 
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
662
 
  | --program-pre | --program-pr | --program-p)
663
 
    ac_prev=program_prefix ;;
664
 
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
665
 
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666
 
    program_prefix=$ac_optarg ;;
667
 
 
668
 
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
669
 
  | --program-suf | --program-su | --program-s)
670
 
    ac_prev=program_suffix ;;
671
 
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
672
 
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673
 
    program_suffix=$ac_optarg ;;
674
 
 
675
 
  -program-transform-name | --program-transform-name \
676
 
  | --program-transform-nam | --program-transform-na \
677
 
  | --program-transform-n | --program-transform- \
678
 
  | --program-transform | --program-transfor \
679
 
  | --program-transfo | --program-transf \
680
 
  | --program-trans | --program-tran \
681
 
  | --progr-tra | --program-tr | --program-t)
682
 
    ac_prev=program_transform_name ;;
683
 
  -program-transform-name=* | --program-transform-name=* \
684
 
  | --program-transform-nam=* | --program-transform-na=* \
685
 
  | --program-transform-n=* | --program-transform-=* \
686
 
  | --program-transform=* | --program-transfor=* \
687
 
  | --program-transfo=* | --program-transf=* \
688
 
  | --program-trans=* | --program-tran=* \
689
 
  | --progr-tra=* | --program-tr=* | --program-t=*)
690
 
    program_transform_name=$ac_optarg ;;
691
 
 
692
 
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693
 
  | -silent | --silent | --silen | --sile | --sil)
694
 
    silent=yes ;;
695
 
 
696
 
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697
 
    ac_prev=sbindir ;;
698
 
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699
 
  | --sbi=* | --sb=*)
700
 
    sbindir=$ac_optarg ;;
701
 
 
702
 
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
703
 
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704
 
  | --sharedst | --shareds | --shared | --share | --shar \
705
 
  | --sha | --sh)
706
 
    ac_prev=sharedstatedir ;;
707
 
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708
 
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709
 
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710
 
  | --sha=* | --sh=*)
711
 
    sharedstatedir=$ac_optarg ;;
712
 
 
713
 
  -site | --site | --sit)
714
 
    ac_prev=site ;;
715
 
  -site=* | --site=* | --sit=*)
716
 
    site=$ac_optarg ;;
717
 
 
718
 
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719
 
    ac_prev=srcdir ;;
720
 
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
721
 
    srcdir=$ac_optarg ;;
722
 
 
723
 
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724
 
  | --syscon | --sysco | --sysc | --sys | --sy)
725
 
    ac_prev=sysconfdir ;;
726
 
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727
 
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728
 
    sysconfdir=$ac_optarg ;;
729
 
 
730
 
  -target | --target | --targe | --targ | --tar | --ta | --t)
731
 
    ac_prev=target_alias ;;
732
 
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733
 
    target_alias=$ac_optarg ;;
734
 
 
735
 
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
736
 
    verbose=yes ;;
737
 
 
738
 
  -version | --version | --versio | --versi | --vers | -V)
739
 
    ac_init_version=: ;;
740
 
 
741
 
  -with-* | --with-*)
742
 
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743
 
    # Reject names that are not valid shell variable names.
744
 
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745
 
      { echo "$as_me: error: invalid package name: $ac_package" >&2
746
 
   { (exit 1); exit 1; }; }
747
 
    ac_package=`echo $ac_package| sed 's/-/_/g'`
748
 
    case $ac_option in
749
 
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
750
 
      *) ac_optarg=yes ;;
751
 
    esac
752
 
    eval "with_$ac_package='$ac_optarg'" ;;
753
 
 
754
 
  -without-* | --without-*)
755
 
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756
 
    # Reject names that are not valid shell variable names.
757
 
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758
 
      { echo "$as_me: error: invalid package name: $ac_package" >&2
759
 
   { (exit 1); exit 1; }; }
760
 
    ac_package=`echo $ac_package | sed 's/-/_/g'`
761
 
    eval "with_$ac_package=no" ;;
762
 
 
763
 
  --x)
764
 
    # Obsolete; use --with-x.
765
 
    with_x=yes ;;
766
 
 
767
 
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768
 
  | --x-incl | --x-inc | --x-in | --x-i)
769
 
    ac_prev=x_includes ;;
770
 
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771
 
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772
 
    x_includes=$ac_optarg ;;
773
 
 
774
 
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
775
 
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776
 
    ac_prev=x_libraries ;;
777
 
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778
 
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779
 
    x_libraries=$ac_optarg ;;
780
 
 
781
 
  -*) { echo "$as_me: error: unrecognized option: $ac_option
782
 
Try \`$0 --help' for more information." >&2
783
 
   { (exit 1); exit 1; }; }
784
 
    ;;
785
 
 
786
 
  *=*)
787
 
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788
 
    # Reject names that are not valid shell variable names.
789
 
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790
 
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791
 
   { (exit 1); exit 1; }; }
792
 
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793
 
    eval "$ac_envvar='$ac_optarg'"
794
 
    export $ac_envvar ;;
795
 
 
796
 
  *)
797
 
    # FIXME: should be removed in autoconf 3.0.
798
 
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799
 
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800
 
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801
 
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
802
 
    ;;
803
 
 
804
 
  esac
805
 
done
806
 
 
807
 
if test -n "$ac_prev"; then
808
 
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809
 
  { echo "$as_me: error: missing argument to $ac_option" >&2
810
 
   { (exit 1); exit 1; }; }
811
 
fi
812
 
 
813
 
# Be sure to have absolute paths.
814
 
for ac_var in exec_prefix prefix
815
 
do
816
 
  eval ac_val=$`echo $ac_var`
817
 
  case $ac_val in
818
 
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819
 
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820
 
   { (exit 1); exit 1; }; };;
821
 
  esac
822
 
done
823
 
 
824
 
# Be sure to have absolute paths.
825
 
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826
 
              localstatedir libdir includedir oldincludedir infodir mandir
827
 
do
828
 
  eval ac_val=$`echo $ac_var`
829
 
  case $ac_val in
830
 
    [\\/$]* | ?:[\\/]* ) ;;
831
 
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832
 
   { (exit 1); exit 1; }; };;
833
 
  esac
834
 
done
835
 
 
836
 
# There might be people who depend on the old broken behavior: `$host'
837
 
# used to hold the argument of --host etc.
838
 
# FIXME: To remove some day.
839
 
build=$build_alias
840
 
host=$host_alias
841
 
target=$target_alias
842
 
 
843
 
# FIXME: To remove some day.
844
 
if test "x$host_alias" != x; then
845
 
  if test "x$build_alias" = x; then
846
 
    cross_compiling=maybe
847
 
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848
 
    If a cross compiler is detected then cross compile mode will be used." >&2
849
 
  elif test "x$build_alias" != "x$host_alias"; then
850
 
    cross_compiling=yes
851
 
  fi
852
 
fi
853
 
 
854
 
ac_tool_prefix=
855
 
test -n "$host_alias" && ac_tool_prefix=$host_alias-
856
 
 
857
 
test "$silent" = yes && exec 6>/dev/null
858
 
 
859
 
 
860
 
# Find the source files, if location was not specified.
861
 
if test -z "$srcdir"; then
862
 
  ac_srcdir_defaulted=yes
863
 
  # Try the directory containing this script, then its parent.
864
 
  ac_confdir=`(dirname "$0") 2>/dev/null ||
865
 
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866
 
         X"$0" : 'X\(//\)[^/]' \| \
867
 
         X"$0" : 'X\(//\)$' \| \
868
 
         X"$0" : 'X\(/\)' \| \
869
 
         .     : '\(.\)' 2>/dev/null ||
870
 
echo X"$0" |
871
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873
 
          /^X\(\/\/\)$/{ s//\1/; q; }
874
 
          /^X\(\/\).*/{ s//\1/; q; }
875
 
          s/.*/./; q'`
876
 
  srcdir=$ac_confdir
877
 
  if test ! -r $srcdir/$ac_unique_file; then
878
 
    srcdir=..
879
 
  fi
880
 
else
881
 
  ac_srcdir_defaulted=no
882
 
fi
883
 
if test ! -r $srcdir/$ac_unique_file; then
884
 
  if test "$ac_srcdir_defaulted" = yes; then
885
 
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886
 
   { (exit 1); exit 1; }; }
887
 
  else
888
 
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889
 
   { (exit 1); exit 1; }; }
890
 
  fi
891
 
fi
892
 
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893
 
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894
 
   { (exit 1); exit 1; }; }
895
 
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896
 
ac_env_build_alias_set=${build_alias+set}
897
 
ac_env_build_alias_value=$build_alias
898
 
ac_cv_env_build_alias_set=${build_alias+set}
899
 
ac_cv_env_build_alias_value=$build_alias
900
 
ac_env_host_alias_set=${host_alias+set}
901
 
ac_env_host_alias_value=$host_alias
902
 
ac_cv_env_host_alias_set=${host_alias+set}
903
 
ac_cv_env_host_alias_value=$host_alias
904
 
ac_env_target_alias_set=${target_alias+set}
905
 
ac_env_target_alias_value=$target_alias
906
 
ac_cv_env_target_alias_set=${target_alias+set}
907
 
ac_cv_env_target_alias_value=$target_alias
908
 
ac_env_CC_set=${CC+set}
909
 
ac_env_CC_value=$CC
910
 
ac_cv_env_CC_set=${CC+set}
911
 
ac_cv_env_CC_value=$CC
912
 
ac_env_CFLAGS_set=${CFLAGS+set}
913
 
ac_env_CFLAGS_value=$CFLAGS
914
 
ac_cv_env_CFLAGS_set=${CFLAGS+set}
915
 
ac_cv_env_CFLAGS_value=$CFLAGS
916
 
ac_env_LDFLAGS_set=${LDFLAGS+set}
917
 
ac_env_LDFLAGS_value=$LDFLAGS
918
 
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919
 
ac_cv_env_LDFLAGS_value=$LDFLAGS
920
 
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921
 
ac_env_CPPFLAGS_value=$CPPFLAGS
922
 
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923
 
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924
 
ac_env_CPP_set=${CPP+set}
925
 
ac_env_CPP_value=$CPP
926
 
ac_cv_env_CPP_set=${CPP+set}
927
 
ac_cv_env_CPP_value=$CPP
928
 
ac_env_CXX_set=${CXX+set}
929
 
ac_env_CXX_value=$CXX
930
 
ac_cv_env_CXX_set=${CXX+set}
931
 
ac_cv_env_CXX_value=$CXX
932
 
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933
 
ac_env_CXXFLAGS_value=$CXXFLAGS
934
 
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935
 
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936
 
ac_env_CXXCPP_set=${CXXCPP+set}
937
 
ac_env_CXXCPP_value=$CXXCPP
938
 
ac_cv_env_CXXCPP_set=${CXXCPP+set}
939
 
ac_cv_env_CXXCPP_value=$CXXCPP
940
 
ac_env_F77_set=${F77+set}
941
 
ac_env_F77_value=$F77
942
 
ac_cv_env_F77_set=${F77+set}
943
 
ac_cv_env_F77_value=$F77
944
 
ac_env_FFLAGS_set=${FFLAGS+set}
945
 
ac_env_FFLAGS_value=$FFLAGS
946
 
ac_cv_env_FFLAGS_set=${FFLAGS+set}
947
 
ac_cv_env_FFLAGS_value=$FFLAGS
948
 
 
949
 
#
950
 
# Report the --help message.
951
 
#
952
 
if test "$ac_init_help" = "long"; then
953
 
  # Omit some internal or obsolete options to make the list less imposing.
954
 
  # This message is too long to be a string in the A/UX 3.1 sh.
955
 
  cat <<_ACEOF
956
 
\`configure' configures trousers 0.2.9.1 to adapt to many kinds of systems.
957
 
 
958
 
Usage: $0 [OPTION]... [VAR=VALUE]...
959
 
 
960
 
To assign environment variables (e.g., CC, CFLAGS...), specify them as
961
 
VAR=VALUE.  See below for descriptions of some of the useful variables.
962
 
 
963
 
Defaults for the options are specified in brackets.
964
 
 
965
 
Configuration:
966
 
  -h, --help              display this help and exit
967
 
      --help=short        display options specific to this package
968
 
      --help=recursive    display the short help of all the included packages
969
 
  -V, --version           display version information and exit
970
 
  -q, --quiet, --silent   do not print \`checking...' messages
971
 
      --cache-file=FILE   cache test results in FILE [disabled]
972
 
  -C, --config-cache      alias for \`--cache-file=config.cache'
973
 
  -n, --no-create         do not create output files
974
 
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
975
 
 
976
 
_ACEOF
977
 
 
978
 
  cat <<_ACEOF
979
 
Installation directories:
980
 
  --prefix=PREFIX         install architecture-independent files in PREFIX
981
 
                          [$ac_default_prefix]
982
 
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
983
 
                          [PREFIX]
984
 
 
985
 
By default, \`make install' will install all the files in
986
 
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
987
 
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988
 
for instance \`--prefix=\$HOME'.
989
 
 
990
 
For better control, use the options below.
991
 
 
992
 
Fine tuning of the installation directories:
993
 
  --bindir=DIR           user executables [EPREFIX/bin]
994
 
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
995
 
  --libexecdir=DIR       program executables [EPREFIX/libexec]
996
 
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
997
 
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
998
 
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
999
 
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1000
 
  --libdir=DIR           object code libraries [EPREFIX/lib]
1001
 
  --includedir=DIR       C header files [PREFIX/include]
1002
 
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1003
 
  --infodir=DIR          info documentation [PREFIX/info]
1004
 
  --mandir=DIR           man documentation [PREFIX/man]
1005
 
_ACEOF
1006
 
 
1007
 
  cat <<\_ACEOF
1008
 
 
1009
 
Program names:
1010
 
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1011
 
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1012
 
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1013
 
 
1014
 
System types:
1015
 
  --build=BUILD     configure for building on BUILD [guessed]
1016
 
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1017
 
  --target=TARGET   configure for building compilers for TARGET [HOST]
1018
 
_ACEOF
1019
 
fi
1020
 
 
1021
 
if test -n "$ac_init_help"; then
1022
 
  case $ac_init_help in
1023
 
     short | recursive ) echo "Configuration of trousers 0.2.9.1:";;
1024
 
   esac
1025
 
  cat <<\_ACEOF
1026
 
 
1027
 
Optional Features:
1028
 
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1029
 
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1030
 
  --enable-debug          turn on all trousers debugging flags
1031
 
                          default, is, off
1032
 
  --disable-dependency-tracking  speeds up one-time build
1033
 
  --enable-dependency-tracking   do not reject slow dependency extractors
1034
 
  --enable-gcov           turn on gcov code coverage flags [default=off]
1035
 
  --enable-gprof          enable profiling with gprof [default=off]
1036
 
  --enable-policy-copying enable copying the default policy when a new working
1037
 
                          object is created (not spec compliant) [default=off]
1038
 
  --enable-strict-spec-compliance 
1039
 
                          build TrouSerS as strictly spec compliant
1040
 
                          [default=off]
1041
 
  --enable-static@<:@=PKGS@:>@ 
1042
 
                          build static libraries @<:@default=no@:>@
1043
 
  --enable-shared@<:@=PKGS@:>@ 
1044
 
                          build shared libraries @<:@default=yes@:>@
1045
 
  --enable-fast-install@<:@=PKGS@:>@ 
1046
 
                          optimize for fast installation @<:@default=yes@:>@
1047
 
  --disable-libtool-lock  avoid locking (might break parallel builds)
1048
 
 
1049
 
Optional Packages:
1050
 
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1051
 
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1052
 
  --with-openssl=PATH     Location of openssl libs/includes
1053
 
  --with-gui              type of gui popup (gtk/none) [default=gtk]
1054
 
  --with-gnu-ld           assume the C compiler uses GNU ld @<:@default=no@:>@
1055
 
  --with-pic              try to use only PIC/non-PIC objects @<:@default=use
1056
 
                          both@:>@
1057
 
  --with-tags@<:@=TAGS@:>@ 
1058
 
                          include additional configurations @<:@automatic@:>@
1059
 
 
1060
 
Some influential environment variables:
1061
 
  CC          C compiler command
1062
 
  CFLAGS      C compiler flags
1063
 
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1064
 
              nonstandard directory <lib dir>
1065
 
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1066
 
              headers in a nonstandard directory <include dir>
1067
 
  CPP         C preprocessor
1068
 
  CXX         C++ compiler command
1069
 
  CXXFLAGS    C++ compiler flags
1070
 
  CXXCPP      C++ preprocessor
1071
 
  F77         Fortran 77 compiler command
1072
 
  FFLAGS      Fortran 77 compiler flags
1073
 
 
1074
 
Use these variables to override the choices made by `configure' or to help
1075
 
it to find libraries and programs with nonstandard names/locations.
1076
 
 
1077
 
Report bugs to <trousers-tech@lists.sf.net>.
1078
 
_ACEOF
1079
 
fi
1080
 
 
1081
 
if test "$ac_init_help" = "recursive"; then
1082
 
  # If there are subdirs, report their specific --help.
1083
 
  ac_popdir=`pwd`
1084
 
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1085
 
    test -d $ac_dir || continue
1086
 
    ac_builddir=.
1087
 
 
1088
 
if test "$ac_dir" != .; then
1089
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1090
 
  # A "../" for each directory in $ac_dir_suffix.
1091
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1092
 
else
1093
 
  ac_dir_suffix= ac_top_builddir=
1094
 
fi
1095
 
 
1096
 
case $srcdir in
1097
 
  .)  # No --srcdir option.  We are building in place.
1098
 
    ac_srcdir=.
1099
 
    if test -z "$ac_top_builddir"; then
1100
 
       ac_top_srcdir=.
1101
 
    else
1102
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1103
 
    fi ;;
1104
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
1105
 
    ac_srcdir=$srcdir$ac_dir_suffix;
1106
 
    ac_top_srcdir=$srcdir ;;
1107
 
  *) # Relative path.
1108
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1109
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1110
 
esac
1111
 
 
1112
 
# Do not use `cd foo && pwd` to compute absolute paths, because
1113
 
# the directories may not exist.
1114
 
case `pwd` in
1115
 
.) ac_abs_builddir="$ac_dir";;
1116
 
*)
1117
 
  case "$ac_dir" in
1118
 
  .) ac_abs_builddir=`pwd`;;
1119
 
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1120
 
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1121
 
  esac;;
1122
 
esac
1123
 
case $ac_abs_builddir in
1124
 
.) ac_abs_top_builddir=${ac_top_builddir}.;;
1125
 
*)
1126
 
  case ${ac_top_builddir}. in
1127
 
  .) ac_abs_top_builddir=$ac_abs_builddir;;
1128
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1129
 
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1130
 
  esac;;
1131
 
esac
1132
 
case $ac_abs_builddir in
1133
 
.) ac_abs_srcdir=$ac_srcdir;;
1134
 
*)
1135
 
  case $ac_srcdir in
1136
 
  .) ac_abs_srcdir=$ac_abs_builddir;;
1137
 
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1138
 
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1139
 
  esac;;
1140
 
esac
1141
 
case $ac_abs_builddir in
1142
 
.) ac_abs_top_srcdir=$ac_top_srcdir;;
1143
 
*)
1144
 
  case $ac_top_srcdir in
1145
 
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1146
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1147
 
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1148
 
  esac;;
1149
 
esac
1150
 
 
1151
 
    cd $ac_dir
1152
 
    # Check for guested configure; otherwise get Cygnus style configure.
1153
 
    if test -f $ac_srcdir/configure.gnu; then
1154
 
      echo
1155
 
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1156
 
    elif test -f $ac_srcdir/configure; then
1157
 
      echo
1158
 
      $SHELL $ac_srcdir/configure  --help=recursive
1159
 
    elif test -f $ac_srcdir/configure.ac ||
1160
 
           test -f $ac_srcdir/configure.in; then
1161
 
      echo
1162
 
      $ac_configure --help
1163
 
    else
1164
 
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1165
 
    fi
1166
 
    cd $ac_popdir
1167
 
  done
1168
 
fi
1169
 
 
1170
 
test -n "$ac_init_help" && exit 0
1171
 
if $ac_init_version; then
1172
 
  cat <<\_ACEOF
1173
 
trousers configure 0.2.9.1
1174
 
generated by GNU Autoconf 2.59
1175
 
 
1176
 
Copyright (C) 2003 Free Software Foundation, Inc.
1177
 
This configure script is free software; the Free Software Foundation
1178
 
gives unlimited permission to copy, distribute and modify it.
1179
 
_ACEOF
1180
 
  exit 0
1181
 
fi
1182
 
exec 5>config.log
1183
 
cat >&5 <<_ACEOF
1184
 
This file contains any messages produced by compilers while
1185
 
running configure, to aid debugging if configure makes a mistake.
1186
 
 
1187
 
It was created by trousers $as_me 0.2.9.1, which was
1188
 
generated by GNU Autoconf 2.59.  Invocation command line was
1189
 
 
1190
 
  $ $0 $@
1191
 
 
1192
 
_ACEOF
1193
 
{
1194
 
cat <<_ASUNAME
1195
 
@%:@@%:@ --------- @%:@@%:@
1196
 
@%:@@%:@ Platform. @%:@@%:@
1197
 
@%:@@%:@ --------- @%:@@%:@
1198
 
 
1199
 
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1200
 
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1201
 
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1202
 
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1203
 
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1204
 
 
1205
 
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1206
 
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1207
 
 
1208
 
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1209
 
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1210
 
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1211
 
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1212
 
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1213
 
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1214
 
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1215
 
 
1216
 
_ASUNAME
1217
 
 
1218
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1219
 
for as_dir in $PATH
1220
 
do
1221
 
  IFS=$as_save_IFS
1222
 
  test -z "$as_dir" && as_dir=.
1223
 
  echo "PATH: $as_dir"
1224
 
done
1225
 
 
1226
 
} >&5
1227
 
 
1228
 
cat >&5 <<_ACEOF
1229
 
 
1230
 
 
1231
 
@%:@@%:@ ----------- @%:@@%:@
1232
 
@%:@@%:@ Core tests. @%:@@%:@
1233
 
@%:@@%:@ ----------- @%:@@%:@
1234
 
 
1235
 
_ACEOF
1236
 
 
1237
 
 
1238
 
# Keep a trace of the command line.
1239
 
# Strip out --no-create and --no-recursion so they do not pile up.
1240
 
# Strip out --silent because we don't want to record it for future runs.
1241
 
# Also quote any args containing shell meta-characters.
1242
 
# Make two passes to allow for proper duplicate-argument suppression.
1243
 
ac_configure_args=
1244
 
ac_configure_args0=
1245
 
ac_configure_args1=
1246
 
ac_sep=
1247
 
ac_must_keep_next=false
1248
 
for ac_pass in 1 2
1249
 
do
1250
 
  for ac_arg
1251
 
  do
1252
 
    case $ac_arg in
1253
 
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1254
 
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1255
 
    | -silent | --silent | --silen | --sile | --sil)
1256
 
      continue ;;
1257
 
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1258
 
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1259
 
    esac
1260
 
    case $ac_pass in
1261
 
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1262
 
    2)
1263
 
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1264
 
      if test $ac_must_keep_next = true; then
1265
 
        ac_must_keep_next=false # Got value, back to normal.
1266
 
      else
1267
 
        case $ac_arg in
1268
 
          *=* | --config-cache | -C | -disable-* | --disable-* \
1269
 
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1270
 
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1271
 
          | -with-* | --with-* | -without-* | --without-* | --x)
1272
 
            case "$ac_configure_args0 " in
1273
 
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1274
 
            esac
1275
 
            ;;
1276
 
          -* ) ac_must_keep_next=true ;;
1277
 
        esac
1278
 
      fi
1279
 
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1280
 
      # Get rid of the leading space.
1281
 
      ac_sep=" "
1282
 
      ;;
1283
 
    esac
1284
 
  done
1285
 
done
1286
 
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1287
 
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1288
 
 
1289
 
# When interrupted or exit'd, cleanup temporary files, and complete
1290
 
# config.log.  We remove comments because anyway the quotes in there
1291
 
# would cause problems or look ugly.
1292
 
# WARNING: Be sure not to use single quotes in there, as some shells,
1293
 
# such as our DU 5.0 friend, will then `close' the trap.
1294
 
trap 'exit_status=$?
1295
 
  # Save into config.log some information that might help in debugging.
1296
 
  {
1297
 
    echo
1298
 
 
1299
 
    cat <<\_ASBOX
1300
 
@%:@@%:@ ---------------- @%:@@%:@
1301
 
@%:@@%:@ Cache variables. @%:@@%:@
1302
 
@%:@@%:@ ---------------- @%:@@%:@
1303
 
_ASBOX
1304
 
    echo
1305
 
    # The following way of writing the cache mishandles newlines in values,
1306
 
{
1307
 
  (set) 2>&1 |
1308
 
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1309
 
    *ac_space=\ *)
1310
 
      sed -n \
1311
 
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1312
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1313
 
      ;;
1314
 
    *)
1315
 
      sed -n \
1316
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1317
 
      ;;
1318
 
    esac;
1319
 
}
1320
 
    echo
1321
 
 
1322
 
    cat <<\_ASBOX
1323
 
@%:@@%:@ ----------------- @%:@@%:@
1324
 
@%:@@%:@ Output variables. @%:@@%:@
1325
 
@%:@@%:@ ----------------- @%:@@%:@
1326
 
_ASBOX
1327
 
    echo
1328
 
    for ac_var in $ac_subst_vars
1329
 
    do
1330
 
      eval ac_val=$`echo $ac_var`
1331
 
      echo "$ac_var='"'"'$ac_val'"'"'"
1332
 
    done | sort
1333
 
    echo
1334
 
 
1335
 
    if test -n "$ac_subst_files"; then
1336
 
      cat <<\_ASBOX
1337
 
@%:@@%:@ ------------- @%:@@%:@
1338
 
@%:@@%:@ Output files. @%:@@%:@
1339
 
@%:@@%:@ ------------- @%:@@%:@
1340
 
_ASBOX
1341
 
      echo
1342
 
      for ac_var in $ac_subst_files
1343
 
      do
1344
 
        eval ac_val=$`echo $ac_var`
1345
 
        echo "$ac_var='"'"'$ac_val'"'"'"
1346
 
      done | sort
1347
 
      echo
1348
 
    fi
1349
 
 
1350
 
    if test -s confdefs.h; then
1351
 
      cat <<\_ASBOX
1352
 
@%:@@%:@ ----------- @%:@@%:@
1353
 
@%:@@%:@ confdefs.h. @%:@@%:@
1354
 
@%:@@%:@ ----------- @%:@@%:@
1355
 
_ASBOX
1356
 
      echo
1357
 
      sed "/^$/d" confdefs.h | sort
1358
 
      echo
1359
 
    fi
1360
 
    test "$ac_signal" != 0 &&
1361
 
      echo "$as_me: caught signal $ac_signal"
1362
 
    echo "$as_me: exit $exit_status"
1363
 
  } >&5
1364
 
  rm -f core *.core &&
1365
 
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1366
 
    exit $exit_status
1367
 
     ' 0
1368
 
for ac_signal in 1 2 13 15; do
1369
 
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1370
 
done
1371
 
ac_signal=0
1372
 
 
1373
 
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1374
 
rm -rf conftest* confdefs.h
1375
 
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1376
 
echo >confdefs.h
1377
 
 
1378
 
# Predefined preprocessor variables.
1379
 
 
1380
 
cat >>confdefs.h <<_ACEOF
1381
 
@%:@define PACKAGE_NAME "$PACKAGE_NAME"
1382
 
_ACEOF
1383
 
 
1384
 
 
1385
 
cat >>confdefs.h <<_ACEOF
1386
 
@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1387
 
_ACEOF
1388
 
 
1389
 
 
1390
 
cat >>confdefs.h <<_ACEOF
1391
 
@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1392
 
_ACEOF
1393
 
 
1394
 
 
1395
 
cat >>confdefs.h <<_ACEOF
1396
 
@%:@define PACKAGE_STRING "$PACKAGE_STRING"
1397
 
_ACEOF
1398
 
 
1399
 
 
1400
 
cat >>confdefs.h <<_ACEOF
1401
 
@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1402
 
_ACEOF
1403
 
 
1404
 
 
1405
 
# Let the site file select an alternate cache file if it wants to.
1406
 
# Prefer explicitly selected file to automatically selected ones.
1407
 
if test -z "$CONFIG_SITE"; then
1408
 
  if test "x$prefix" != xNONE; then
1409
 
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1410
 
  else
1411
 
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1412
 
  fi
1413
 
fi
1414
 
for ac_site_file in $CONFIG_SITE; do
1415
 
  if test -r "$ac_site_file"; then
1416
 
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1417
 
echo "$as_me: loading site script $ac_site_file" >&6;}
1418
 
    sed 's/^/| /' "$ac_site_file" >&5
1419
 
    . "$ac_site_file"
1420
 
  fi
1421
 
done
1422
 
 
1423
 
if test -r "$cache_file"; then
1424
 
  # Some versions of bash will fail to source /dev/null (special
1425
 
  # files actually), so we avoid doing that.
1426
 
  if test -f "$cache_file"; then
1427
 
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1428
 
echo "$as_me: loading cache $cache_file" >&6;}
1429
 
    case $cache_file in
1430
 
      [\\/]* | ?:[\\/]* ) . $cache_file;;
1431
 
      *)                      . ./$cache_file;;
1432
 
    esac
1433
 
  fi
1434
 
else
1435
 
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1436
 
echo "$as_me: creating cache $cache_file" >&6;}
1437
 
  >$cache_file
1438
 
fi
1439
 
 
1440
 
# Check that the precious variables saved in the cache have kept the same
1441
 
# value.
1442
 
ac_cache_corrupted=false
1443
 
for ac_var in `(set) 2>&1 |
1444
 
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1445
 
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1446
 
  eval ac_new_set=\$ac_env_${ac_var}_set
1447
 
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1448
 
  eval ac_new_val="\$ac_env_${ac_var}_value"
1449
 
  case $ac_old_set,$ac_new_set in
1450
 
    set,)
1451
 
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1452
 
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1453
 
      ac_cache_corrupted=: ;;
1454
 
    ,set)
1455
 
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1456
 
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1457
 
      ac_cache_corrupted=: ;;
1458
 
    ,);;
1459
 
    *)
1460
 
      if test "x$ac_old_val" != "x$ac_new_val"; then
1461
 
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1462
 
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1463
 
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1464
 
echo "$as_me:   former value:  $ac_old_val" >&2;}
1465
 
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1466
 
echo "$as_me:   current value: $ac_new_val" >&2;}
1467
 
        ac_cache_corrupted=:
1468
 
      fi;;
1469
 
  esac
1470
 
  # Pass precious variables to config.status.
1471
 
  if test "$ac_new_set" = set; then
1472
 
    case $ac_new_val in
1473
 
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1474
 
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1475
 
    *) ac_arg=$ac_var=$ac_new_val ;;
1476
 
    esac
1477
 
    case " $ac_configure_args " in
1478
 
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1479
 
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1480
 
    esac
1481
 
  fi
1482
 
done
1483
 
if $ac_cache_corrupted; then
1484
 
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1485
 
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1486
 
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1487
 
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1488
 
   { (exit 1); exit 1; }; }
1489
 
fi
1490
 
 
1491
 
ac_ext=c
1492
 
ac_cpp='$CPP $CPPFLAGS'
1493
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1494
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1495
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1496
 
 
1497
 
 
1498
 
 
1499
 
 
1500
 
 
1501
 
 
1502
 
 
1503
 
 
1504
 
 
1505
 
 
1506
 
 
1507
 
 
1508
 
 
1509
 
 
1510
 
 
1511
 
 
1512
 
 
1513
 
 
1514
 
 
1515
 
 
1516
 
 
1517
 
 
1518
 
 
1519
 
 
1520
 
 
1521
 
 
1522
 
 
1523
 
 
1524
 
TSS_VER_MAJOR=0
1525
 
TSS_VER_MINOR=2
1526
 
 
1527
 
# compute $target
1528
 
ac_aux_dir=
1529
 
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1530
 
  if test -f $ac_dir/install-sh; then
1531
 
    ac_aux_dir=$ac_dir
1532
 
    ac_install_sh="$ac_aux_dir/install-sh -c"
1533
 
    break
1534
 
  elif test -f $ac_dir/install.sh; then
1535
 
    ac_aux_dir=$ac_dir
1536
 
    ac_install_sh="$ac_aux_dir/install.sh -c"
1537
 
    break
1538
 
  elif test -f $ac_dir/shtool; then
1539
 
    ac_aux_dir=$ac_dir
1540
 
    ac_install_sh="$ac_aux_dir/shtool install -c"
1541
 
    break
1542
 
  fi
1543
 
done
1544
 
if test -z "$ac_aux_dir"; then
1545
 
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1546
 
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1547
 
   { (exit 1); exit 1; }; }
1548
 
fi
1549
 
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1550
 
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1551
 
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1552
 
 
1553
 
# Make sure we can run config.sub.
1554
 
$ac_config_sub sun4 >/dev/null 2>&1 ||
1555
 
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1556
 
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1557
 
   { (exit 1); exit 1; }; }
1558
 
 
1559
 
echo "$as_me:$LINENO: checking build system type" >&5
1560
 
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1561
 
if test "${ac_cv_build+set}" = set; then
1562
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1563
 
else
1564
 
  ac_cv_build_alias=$build_alias
1565
 
test -z "$ac_cv_build_alias" &&
1566
 
  ac_cv_build_alias=`$ac_config_guess`
1567
 
test -z "$ac_cv_build_alias" &&
1568
 
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1569
 
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1570
 
   { (exit 1); exit 1; }; }
1571
 
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1572
 
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1573
 
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1574
 
   { (exit 1); exit 1; }; }
1575
 
 
1576
 
fi
1577
 
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1578
 
echo "${ECHO_T}$ac_cv_build" >&6
1579
 
build=$ac_cv_build
1580
 
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1581
 
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1582
 
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1583
 
 
1584
 
 
1585
 
echo "$as_me:$LINENO: checking host system type" >&5
1586
 
echo $ECHO_N "checking host system type... $ECHO_C" >&6
1587
 
if test "${ac_cv_host+set}" = set; then
1588
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1589
 
else
1590
 
  ac_cv_host_alias=$host_alias
1591
 
test -z "$ac_cv_host_alias" &&
1592
 
  ac_cv_host_alias=$ac_cv_build_alias
1593
 
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1594
 
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1595
 
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1596
 
   { (exit 1); exit 1; }; }
1597
 
 
1598
 
fi
1599
 
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1600
 
echo "${ECHO_T}$ac_cv_host" >&6
1601
 
host=$ac_cv_host
1602
 
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1603
 
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1604
 
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1605
 
 
1606
 
 
1607
 
echo "$as_me:$LINENO: checking target system type" >&5
1608
 
echo $ECHO_N "checking target system type... $ECHO_C" >&6
1609
 
if test "${ac_cv_target+set}" = set; then
1610
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1611
 
else
1612
 
  ac_cv_target_alias=$target_alias
1613
 
test "x$ac_cv_target_alias" = "x" &&
1614
 
  ac_cv_target_alias=$ac_cv_host_alias
1615
 
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1616
 
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1617
 
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1618
 
   { (exit 1); exit 1; }; }
1619
 
 
1620
 
fi
1621
 
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1622
 
echo "${ECHO_T}$ac_cv_target" >&6
1623
 
target=$ac_cv_target
1624
 
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1625
 
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1626
 
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1627
 
 
1628
 
 
1629
 
# The aliases save the names the user supplied, while $host etc.
1630
 
# will get canonicalized.
1631
 
test -n "$target_alias" &&
1632
 
  test "$program_prefix$program_suffix$program_transform_name" = \
1633
 
    NONENONEs,x,x, &&
1634
 
  program_prefix=${target_alias}-
1635
 
am__api_version="1.9"
1636
 
# Find a good install program.  We prefer a C program (faster),
1637
 
# so one script is as good as another.  But avoid the broken or
1638
 
# incompatible versions:
1639
 
# SysV /etc/install, /usr/sbin/install
1640
 
# SunOS /usr/etc/install
1641
 
# IRIX /sbin/install
1642
 
# AIX /bin/install
1643
 
# AmigaOS /C/install, which installs bootblocks on floppy discs
1644
 
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1645
 
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1646
 
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1647
 
# OS/2's system install, which has a completely different semantic
1648
 
# ./install, which can be erroneously created by make from ./install.sh.
1649
 
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1650
 
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1651
 
if test -z "$INSTALL"; then
1652
 
if test "${ac_cv_path_install+set}" = set; then
1653
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1654
 
else
1655
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1656
 
for as_dir in $PATH
1657
 
do
1658
 
  IFS=$as_save_IFS
1659
 
  test -z "$as_dir" && as_dir=.
1660
 
  # Account for people who put trailing slashes in PATH elements.
1661
 
case $as_dir/ in
1662
 
  ./ | .// | /cC/* | \
1663
 
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1664
 
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1665
 
  /usr/ucb/* ) ;;
1666
 
  *)
1667
 
    # OSF1 and SCO ODT 3.0 have their own names for install.
1668
 
    # Don't use installbsd from OSF since it installs stuff as root
1669
 
    # by default.
1670
 
    for ac_prog in ginstall scoinst install; do
1671
 
      for ac_exec_ext in '' $ac_executable_extensions; do
1672
 
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1673
 
          if test $ac_prog = install &&
1674
 
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1675
 
            # AIX install.  It has an incompatible calling convention.
1676
 
            :
1677
 
          elif test $ac_prog = install &&
1678
 
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1679
 
            # program-specific install script used by HP pwplus--don't use.
1680
 
            :
1681
 
          else
1682
 
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1683
 
            break 3
1684
 
          fi
1685
 
        fi
1686
 
      done
1687
 
    done
1688
 
    ;;
1689
 
esac
1690
 
done
1691
 
 
1692
 
 
1693
 
fi
1694
 
  if test "${ac_cv_path_install+set}" = set; then
1695
 
    INSTALL=$ac_cv_path_install
1696
 
  else
1697
 
    # As a last resort, use the slow shell script.  We don't cache a
1698
 
    # path for INSTALL within a source directory, because that will
1699
 
    # break other packages using the cache if that directory is
1700
 
    # removed, or if the path is relative.
1701
 
    INSTALL=$ac_install_sh
1702
 
  fi
1703
 
fi
1704
 
echo "$as_me:$LINENO: result: $INSTALL" >&5
1705
 
echo "${ECHO_T}$INSTALL" >&6
1706
 
 
1707
 
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1708
 
# It thinks the first close brace ends the variable substitution.
1709
 
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1710
 
 
1711
 
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1712
 
 
1713
 
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1714
 
 
1715
 
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1716
 
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1717
 
# Just in case
1718
 
sleep 1
1719
 
echo timestamp > conftest.file
1720
 
# Do `set' in a subshell so we don't clobber the current shell's
1721
 
# arguments.  Must try -L first in case configure is actually a
1722
 
# symlink; some systems play weird games with the mod time of symlinks
1723
 
# (eg FreeBSD returns the mod time of the symlink's containing
1724
 
# directory).
1725
 
if (
1726
 
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1727
 
   if test "$*" = "X"; then
1728
 
      # -L didn't work.
1729
 
      set X `ls -t $srcdir/configure conftest.file`
1730
 
   fi
1731
 
   rm -f conftest.file
1732
 
   if test "$*" != "X $srcdir/configure conftest.file" \
1733
 
      && test "$*" != "X conftest.file $srcdir/configure"; then
1734
 
 
1735
 
      # If neither matched, then we have a broken ls.  This can happen
1736
 
      # if, for instance, CONFIG_SHELL is bash and it inherits a
1737
 
      # broken ls alias from the environment.  This has actually
1738
 
      # happened.  Such a system could not be considered "sane".
1739
 
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1740
 
alias in your environment" >&5
1741
 
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1742
 
alias in your environment" >&2;}
1743
 
   { (exit 1); exit 1; }; }
1744
 
   fi
1745
 
 
1746
 
   test "$2" = conftest.file
1747
 
   )
1748
 
then
1749
 
   # Ok.
1750
 
   :
1751
 
else
1752
 
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1753
 
Check your system clock" >&5
1754
 
echo "$as_me: error: newly created file is older than distributed files!
1755
 
Check your system clock" >&2;}
1756
 
   { (exit 1); exit 1; }; }
1757
 
fi
1758
 
echo "$as_me:$LINENO: result: yes" >&5
1759
 
echo "${ECHO_T}yes" >&6
1760
 
test "$program_prefix" != NONE &&
1761
 
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1762
 
# Use a double $ so make ignores it.
1763
 
test "$program_suffix" != NONE &&
1764
 
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1765
 
# Double any \ or $.  echo might interpret backslashes.
1766
 
# By default was `s,x,x', remove it if useless.
1767
 
cat <<\_ACEOF >conftest.sed
1768
 
s/[\\$]/&&/g;s/;s,x,x,$//
1769
 
_ACEOF
1770
 
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1771
 
rm conftest.sed
1772
 
 
1773
 
# expand $ac_aux_dir to an absolute path
1774
 
am_aux_dir=`cd $ac_aux_dir && pwd`
1775
 
 
1776
 
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1777
 
# Use eval to expand $SHELL
1778
 
if eval "$MISSING --run true"; then
1779
 
  am_missing_run="$MISSING --run "
1780
 
else
1781
 
  am_missing_run=
1782
 
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1783
 
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1784
 
fi
1785
 
 
1786
 
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1787
 
  # We used to keeping the `.' as first argument, in order to
1788
 
  # allow $(mkdir_p) to be used without argument.  As in
1789
 
  #   $(mkdir_p) $(somedir)
1790
 
  # where $(somedir) is conditionally defined.  However this is wrong
1791
 
  # for two reasons:
1792
 
  #  1. if the package is installed by a user who cannot write `.'
1793
 
  #     make install will fail,
1794
 
  #  2. the above comment should most certainly read
1795
 
  #     $(mkdir_p) $(DESTDIR)$(somedir)
1796
 
  #     so it does not work when $(somedir) is undefined and
1797
 
  #     $(DESTDIR) is not.
1798
 
  #  To support the latter case, we have to write
1799
 
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1800
 
  #  so the `.' trick is pointless.
1801
 
  mkdir_p='mkdir -p --'
1802
 
else
1803
 
  # On NextStep and OpenStep, the `mkdir' command does not
1804
 
  # recognize any option.  It will interpret all options as
1805
 
  # directories to create, and then abort because `.' already
1806
 
  # exists.
1807
 
  for d in ./-p ./--version;
1808
 
  do
1809
 
    test -d $d && rmdir $d
1810
 
  done
1811
 
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1812
 
  if test -f "$ac_aux_dir/mkinstalldirs"; then
1813
 
    mkdir_p='$(mkinstalldirs)'
1814
 
  else
1815
 
    mkdir_p='$(install_sh) -d'
1816
 
  fi
1817
 
fi
1818
 
 
1819
 
for ac_prog in gawk mawk nawk awk
1820
 
do
1821
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1822
 
set dummy $ac_prog; ac_word=$2
1823
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1824
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1825
 
if test "${ac_cv_prog_AWK+set}" = set; then
1826
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1827
 
else
1828
 
  if test -n "$AWK"; then
1829
 
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1830
 
else
1831
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1832
 
for as_dir in $PATH
1833
 
do
1834
 
  IFS=$as_save_IFS
1835
 
  test -z "$as_dir" && as_dir=.
1836
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1837
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1838
 
    ac_cv_prog_AWK="$ac_prog"
1839
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1840
 
    break 2
1841
 
  fi
1842
 
done
1843
 
done
1844
 
 
1845
 
fi
1846
 
fi
1847
 
AWK=$ac_cv_prog_AWK
1848
 
if test -n "$AWK"; then
1849
 
  echo "$as_me:$LINENO: result: $AWK" >&5
1850
 
echo "${ECHO_T}$AWK" >&6
1851
 
else
1852
 
  echo "$as_me:$LINENO: result: no" >&5
1853
 
echo "${ECHO_T}no" >&6
1854
 
fi
1855
 
 
1856
 
  test -n "$AWK" && break
1857
 
done
1858
 
 
1859
 
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1860
 
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1861
 
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1862
 
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1863
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1864
 
else
1865
 
  cat >conftest.make <<\_ACEOF
1866
 
all:
1867
 
        @echo 'ac_maketemp="$(MAKE)"'
1868
 
_ACEOF
1869
 
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1870
 
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1871
 
if test -n "$ac_maketemp"; then
1872
 
  eval ac_cv_prog_make_${ac_make}_set=yes
1873
 
else
1874
 
  eval ac_cv_prog_make_${ac_make}_set=no
1875
 
fi
1876
 
rm -f conftest.make
1877
 
fi
1878
 
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1879
 
  echo "$as_me:$LINENO: result: yes" >&5
1880
 
echo "${ECHO_T}yes" >&6
1881
 
  SET_MAKE=
1882
 
else
1883
 
  echo "$as_me:$LINENO: result: no" >&5
1884
 
echo "${ECHO_T}no" >&6
1885
 
  SET_MAKE="MAKE=${MAKE-make}"
1886
 
fi
1887
 
 
1888
 
rm -rf .tst 2>/dev/null
1889
 
mkdir .tst 2>/dev/null
1890
 
if test -d .tst; then
1891
 
  am__leading_dot=.
1892
 
else
1893
 
  am__leading_dot=_
1894
 
fi
1895
 
rmdir .tst 2>/dev/null
1896
 
 
1897
 
# test to see if srcdir already configured
1898
 
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1899
 
   test -f $srcdir/config.status; then
1900
 
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1901
 
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1902
 
   { (exit 1); exit 1; }; }
1903
 
fi
1904
 
 
1905
 
# test whether we have cygpath
1906
 
if test -z "$CYGPATH_W"; then
1907
 
  if (cygpath --version) >/dev/null 2>/dev/null; then
1908
 
    CYGPATH_W='cygpath -w'
1909
 
  else
1910
 
    CYGPATH_W=echo
1911
 
  fi
1912
 
fi
1913
 
 
1914
 
 
1915
 
# Define the identity of the package.
1916
 
 PACKAGE='trousers'
1917
 
 VERSION='0.2.9.1'
1918
 
 
1919
 
 
1920
 
cat >>confdefs.h <<_ACEOF
1921
 
@%:@define PACKAGE "$PACKAGE"
1922
 
_ACEOF
1923
 
 
1924
 
 
1925
 
cat >>confdefs.h <<_ACEOF
1926
 
@%:@define VERSION "$VERSION"
1927
 
_ACEOF
1928
 
 
1929
 
# Some tools Automake needs.
1930
 
 
1931
 
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1932
 
 
1933
 
 
1934
 
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1935
 
 
1936
 
 
1937
 
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1938
 
 
1939
 
 
1940
 
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1941
 
 
1942
 
 
1943
 
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1944
 
 
1945
 
install_sh=${install_sh-"$am_aux_dir/install-sh"}
1946
 
 
1947
 
# Installed binaries are usually stripped using `strip' when the user
1948
 
# run `make install-strip'.  However `strip' might not be the right
1949
 
# tool to use in cross-compilation environments, therefore Automake
1950
 
# will honor the `STRIP' environment variable to overrule this program.
1951
 
if test "$cross_compiling" != no; then
1952
 
  if test -n "$ac_tool_prefix"; then
1953
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1954
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
1955
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1956
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1957
 
if test "${ac_cv_prog_STRIP+set}" = set; then
1958
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1959
 
else
1960
 
  if test -n "$STRIP"; then
1961
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1962
 
else
1963
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1964
 
for as_dir in $PATH
1965
 
do
1966
 
  IFS=$as_save_IFS
1967
 
  test -z "$as_dir" && as_dir=.
1968
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1969
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1970
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1971
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1972
 
    break 2
1973
 
  fi
1974
 
done
1975
 
done
1976
 
 
1977
 
fi
1978
 
fi
1979
 
STRIP=$ac_cv_prog_STRIP
1980
 
if test -n "$STRIP"; then
1981
 
  echo "$as_me:$LINENO: result: $STRIP" >&5
1982
 
echo "${ECHO_T}$STRIP" >&6
1983
 
else
1984
 
  echo "$as_me:$LINENO: result: no" >&5
1985
 
echo "${ECHO_T}no" >&6
1986
 
fi
1987
 
 
1988
 
fi
1989
 
if test -z "$ac_cv_prog_STRIP"; then
1990
 
  ac_ct_STRIP=$STRIP
1991
 
  # Extract the first word of "strip", so it can be a program name with args.
1992
 
set dummy strip; ac_word=$2
1993
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1994
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1995
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1996
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1997
 
else
1998
 
  if test -n "$ac_ct_STRIP"; then
1999
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2000
 
else
2001
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2002
 
for as_dir in $PATH
2003
 
do
2004
 
  IFS=$as_save_IFS
2005
 
  test -z "$as_dir" && as_dir=.
2006
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2007
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2008
 
    ac_cv_prog_ac_ct_STRIP="strip"
2009
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2010
 
    break 2
2011
 
  fi
2012
 
done
2013
 
done
2014
 
 
2015
 
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2016
 
fi
2017
 
fi
2018
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2019
 
if test -n "$ac_ct_STRIP"; then
2020
 
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2021
 
echo "${ECHO_T}$ac_ct_STRIP" >&6
2022
 
else
2023
 
  echo "$as_me:$LINENO: result: no" >&5
2024
 
echo "${ECHO_T}no" >&6
2025
 
fi
2026
 
 
2027
 
  STRIP=$ac_ct_STRIP
2028
 
else
2029
 
  STRIP="$ac_cv_prog_STRIP"
2030
 
fi
2031
 
 
2032
 
fi
2033
 
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2034
 
 
2035
 
# We need awk for the "check" target.  The system "awk" is bad on
2036
 
# some platforms.
2037
 
# Always define AMTAR for backward compatibility.
2038
 
 
2039
 
AMTAR=${AMTAR-"${am_missing_run}tar"}
2040
 
 
2041
 
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2042
 
 
2043
 
 
2044
 
 
2045
 
 
2046
 
 
2047
 
 
2048
 
# Debugging support
2049
 
# Check whether --enable-debug or --disable-debug was given.
2050
 
if test "${enable_debug+set}" = set; then
2051
 
  enableval="$enable_debug"
2052
 
  enable_debug="yes"
2053
 
                 echo "$as_me:$LINENO: result: *** Enabling debugging at user request ***" >&5
2054
 
echo "${ECHO_T}*** Enabling debugging at user request ***" >&6
2055
 
fi; 
2056
 
 
2057
 
# If the user has not set CFLAGS, do something appropriate
2058
 
test_CFLAGS=${CFLAGS+set}
2059
 
if test "$test_CFLAGS" != set; then
2060
 
        if test "x$enable_debug" == "xyes"; then
2061
 
                CFLAGS="-O0 -g -DTSS_DEBUG -Wreturn-type"
2062
 
#               CFLAGS="-O0 -g -DTSS_DEBUG -Wreturn-type -DTCSD_SINGLE_THREAD_DEBUG"
2063
 
        else
2064
 
                CFLAGS="-O2"
2065
 
        fi
2066
 
fi
2067
 
 
2068
 
# Arch specific stuff
2069
 
case $target in
2070
 
        *ppc64* | *powerpc64* | *x86_64*)
2071
 
                CFLAGS="$CFLAGS -m64"
2072
 
                ;;
2073
 
        *)
2074
 
                ;;
2075
 
esac
2076
 
 
2077
 
# Non-standard OpenSSL (for 64bit platforms)
2078
 
echo "$as_me:$LINENO: checking Non-standard OpenSSL" >&5
2079
 
echo $ECHO_N "checking Non-standard OpenSSL... $ECHO_C" >&6
2080
 
 
2081
 
# Check whether --with-openssl or --without-openssl was given.
2082
 
if test "${with_openssl+set}" = set; then
2083
 
  withval="$with_openssl"
2084
 
  OPENSSL_INCLUDE_DIR="$withval/include"
2085
 
         OPENSSL_LIB_DIR="$withval/lib"
2086
 
         if [ ! -d $OPENSSL_INCLUDE_DIR -o ! -d $OPENSSL_LIB_DIR ]; then
2087
 
                { { echo "$as_me:$LINENO: error: $OPENSSL_INCLUDE_DIR or $OPENSSL_LIB_DIR doen't exist!" >&5
2088
 
echo "$as_me: error: $OPENSSL_INCLUDE_DIR or $OPENSSL_LIB_DIR doen't exist!" >&2;}
2089
 
   { (exit 1); exit 1; }; }
2090
 
         else
2091
 
                echo "$as_me:$LINENO: result: yes" >&5
2092
 
echo "${ECHO_T}yes" >&6
2093
 
                CFLAGS="$CFLAGS -L$OPENSSL_LIB_DIR -I$OPENSSL_INCLUDE_DIR"
2094
 
                
2095
 
         fi
2096
 
else
2097
 
  echo "$as_me:$LINENO: result: no" >&5
2098
 
echo "${ECHO_T}no" >&6
2099
 
           
2100
 
fi; 
2101
 
 
2102
 
# The tspi Makefile will look for trspi/crypto/@CRYPTO_PACKAGE@/crypto.c
2103
 
# Future crypto packages can go in their own subdir of trspi/crypto
2104
 
# and a check for them should be made here
2105
 
DEPDIR="${am__leading_dot}deps"
2106
 
 
2107
 
          ac_config_commands="$ac_config_commands depfiles"
2108
 
 
2109
 
 
2110
 
am_make=${MAKE-make}
2111
 
cat > confinc << 'END'
2112
 
am__doit:
2113
 
        @echo done
2114
 
.PHONY: am__doit
2115
 
END
2116
 
# If we don't find an include directive, just comment out the code.
2117
 
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2118
 
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2119
 
am__include="#"
2120
 
am__quote=
2121
 
_am_result=none
2122
 
# First try GNU make style include.
2123
 
echo "include confinc" > confmf
2124
 
# We grep out `Entering directory' and `Leaving directory'
2125
 
# messages which can occur if `w' ends up in MAKEFLAGS.
2126
 
# In particular we don't look at `^make:' because GNU make might
2127
 
# be invoked under some other name (usually "gmake"), in which
2128
 
# case it prints its new name instead of `make'.
2129
 
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2130
 
   am__include=include
2131
 
   am__quote=
2132
 
   _am_result=GNU
2133
 
fi
2134
 
# Now try BSD make style include.
2135
 
if test "$am__include" = "#"; then
2136
 
   echo '.include "confinc"' > confmf
2137
 
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2138
 
      am__include=.include
2139
 
      am__quote="\""
2140
 
      _am_result=BSD
2141
 
   fi
2142
 
fi
2143
 
 
2144
 
 
2145
 
echo "$as_me:$LINENO: result: $_am_result" >&5
2146
 
echo "${ECHO_T}$_am_result" >&6
2147
 
rm -f confinc confmf
2148
 
 
2149
 
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2150
 
if test "${enable_dependency_tracking+set}" = set; then
2151
 
  enableval="$enable_dependency_tracking"
2152
 
  
2153
 
fi; 
2154
 
if test "x$enable_dependency_tracking" != xno; then
2155
 
  am_depcomp="$ac_aux_dir/depcomp"
2156
 
  AMDEPBACKSLASH='\'
2157
 
fi
2158
 
 
2159
 
 
2160
 
if test "x$enable_dependency_tracking" != xno; then
2161
 
  AMDEP_TRUE=
2162
 
  AMDEP_FALSE='#'
2163
 
else
2164
 
  AMDEP_TRUE='#'
2165
 
  AMDEP_FALSE=
2166
 
fi
2167
 
 
2168
 
 
2169
 
 
2170
 
ac_ext=c
2171
 
ac_cpp='$CPP $CPPFLAGS'
2172
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2173
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2174
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2175
 
if test -n "$ac_tool_prefix"; then
2176
 
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2177
 
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2178
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2179
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2180
 
if test "${ac_cv_prog_CC+set}" = set; then
2181
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2182
 
else
2183
 
  if test -n "$CC"; then
2184
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
2185
 
else
2186
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2187
 
for as_dir in $PATH
2188
 
do
2189
 
  IFS=$as_save_IFS
2190
 
  test -z "$as_dir" && as_dir=.
2191
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2192
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2193
 
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2194
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2195
 
    break 2
2196
 
  fi
2197
 
done
2198
 
done
2199
 
 
2200
 
fi
2201
 
fi
2202
 
CC=$ac_cv_prog_CC
2203
 
if test -n "$CC"; then
2204
 
  echo "$as_me:$LINENO: result: $CC" >&5
2205
 
echo "${ECHO_T}$CC" >&6
2206
 
else
2207
 
  echo "$as_me:$LINENO: result: no" >&5
2208
 
echo "${ECHO_T}no" >&6
2209
 
fi
2210
 
 
2211
 
fi
2212
 
if test -z "$ac_cv_prog_CC"; then
2213
 
  ac_ct_CC=$CC
2214
 
  # Extract the first word of "gcc", so it can be a program name with args.
2215
 
set dummy gcc; ac_word=$2
2216
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2217
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2218
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2219
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2220
 
else
2221
 
  if test -n "$ac_ct_CC"; then
2222
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2223
 
else
2224
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2225
 
for as_dir in $PATH
2226
 
do
2227
 
  IFS=$as_save_IFS
2228
 
  test -z "$as_dir" && as_dir=.
2229
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2230
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2231
 
    ac_cv_prog_ac_ct_CC="gcc"
2232
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2233
 
    break 2
2234
 
  fi
2235
 
done
2236
 
done
2237
 
 
2238
 
fi
2239
 
fi
2240
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2241
 
if test -n "$ac_ct_CC"; then
2242
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2243
 
echo "${ECHO_T}$ac_ct_CC" >&6
2244
 
else
2245
 
  echo "$as_me:$LINENO: result: no" >&5
2246
 
echo "${ECHO_T}no" >&6
2247
 
fi
2248
 
 
2249
 
  CC=$ac_ct_CC
2250
 
else
2251
 
  CC="$ac_cv_prog_CC"
2252
 
fi
2253
 
 
2254
 
if test -z "$CC"; then
2255
 
  if test -n "$ac_tool_prefix"; then
2256
 
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2257
 
set dummy ${ac_tool_prefix}cc; ac_word=$2
2258
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2259
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2260
 
if test "${ac_cv_prog_CC+set}" = set; then
2261
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2262
 
else
2263
 
  if test -n "$CC"; then
2264
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
2265
 
else
2266
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2267
 
for as_dir in $PATH
2268
 
do
2269
 
  IFS=$as_save_IFS
2270
 
  test -z "$as_dir" && as_dir=.
2271
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2272
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2273
 
    ac_cv_prog_CC="${ac_tool_prefix}cc"
2274
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2275
 
    break 2
2276
 
  fi
2277
 
done
2278
 
done
2279
 
 
2280
 
fi
2281
 
fi
2282
 
CC=$ac_cv_prog_CC
2283
 
if test -n "$CC"; then
2284
 
  echo "$as_me:$LINENO: result: $CC" >&5
2285
 
echo "${ECHO_T}$CC" >&6
2286
 
else
2287
 
  echo "$as_me:$LINENO: result: no" >&5
2288
 
echo "${ECHO_T}no" >&6
2289
 
fi
2290
 
 
2291
 
fi
2292
 
if test -z "$ac_cv_prog_CC"; then
2293
 
  ac_ct_CC=$CC
2294
 
  # Extract the first word of "cc", so it can be a program name with args.
2295
 
set dummy cc; ac_word=$2
2296
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2297
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2298
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2299
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2300
 
else
2301
 
  if test -n "$ac_ct_CC"; then
2302
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2303
 
else
2304
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2305
 
for as_dir in $PATH
2306
 
do
2307
 
  IFS=$as_save_IFS
2308
 
  test -z "$as_dir" && as_dir=.
2309
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2310
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2311
 
    ac_cv_prog_ac_ct_CC="cc"
2312
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2313
 
    break 2
2314
 
  fi
2315
 
done
2316
 
done
2317
 
 
2318
 
fi
2319
 
fi
2320
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2321
 
if test -n "$ac_ct_CC"; then
2322
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2323
 
echo "${ECHO_T}$ac_ct_CC" >&6
2324
 
else
2325
 
  echo "$as_me:$LINENO: result: no" >&5
2326
 
echo "${ECHO_T}no" >&6
2327
 
fi
2328
 
 
2329
 
  CC=$ac_ct_CC
2330
 
else
2331
 
  CC="$ac_cv_prog_CC"
2332
 
fi
2333
 
 
2334
 
fi
2335
 
if test -z "$CC"; then
2336
 
  # Extract the first word of "cc", so it can be a program name with args.
2337
 
set dummy cc; ac_word=$2
2338
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2339
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2340
 
if test "${ac_cv_prog_CC+set}" = set; then
2341
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2342
 
else
2343
 
  if test -n "$CC"; then
2344
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
2345
 
else
2346
 
  ac_prog_rejected=no
2347
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2348
 
for as_dir in $PATH
2349
 
do
2350
 
  IFS=$as_save_IFS
2351
 
  test -z "$as_dir" && as_dir=.
2352
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2353
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2354
 
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2355
 
       ac_prog_rejected=yes
2356
 
       continue
2357
 
     fi
2358
 
    ac_cv_prog_CC="cc"
2359
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2360
 
    break 2
2361
 
  fi
2362
 
done
2363
 
done
2364
 
 
2365
 
if test $ac_prog_rejected = yes; then
2366
 
  # We found a bogon in the path, so make sure we never use it.
2367
 
  set dummy $ac_cv_prog_CC
2368
 
  shift
2369
 
  if test $@%:@ != 0; then
2370
 
    # We chose a different compiler from the bogus one.
2371
 
    # However, it has the same basename, so the bogon will be chosen
2372
 
    # first if we set CC to just the basename; use the full file name.
2373
 
    shift
2374
 
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2375
 
  fi
2376
 
fi
2377
 
fi
2378
 
fi
2379
 
CC=$ac_cv_prog_CC
2380
 
if test -n "$CC"; then
2381
 
  echo "$as_me:$LINENO: result: $CC" >&5
2382
 
echo "${ECHO_T}$CC" >&6
2383
 
else
2384
 
  echo "$as_me:$LINENO: result: no" >&5
2385
 
echo "${ECHO_T}no" >&6
2386
 
fi
2387
 
 
2388
 
fi
2389
 
if test -z "$CC"; then
2390
 
  if test -n "$ac_tool_prefix"; then
2391
 
  for ac_prog in cl
2392
 
  do
2393
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2394
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2395
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2396
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2397
 
if test "${ac_cv_prog_CC+set}" = set; then
2398
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2399
 
else
2400
 
  if test -n "$CC"; then
2401
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
2402
 
else
2403
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2404
 
for as_dir in $PATH
2405
 
do
2406
 
  IFS=$as_save_IFS
2407
 
  test -z "$as_dir" && as_dir=.
2408
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2409
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2410
 
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2411
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2412
 
    break 2
2413
 
  fi
2414
 
done
2415
 
done
2416
 
 
2417
 
fi
2418
 
fi
2419
 
CC=$ac_cv_prog_CC
2420
 
if test -n "$CC"; then
2421
 
  echo "$as_me:$LINENO: result: $CC" >&5
2422
 
echo "${ECHO_T}$CC" >&6
2423
 
else
2424
 
  echo "$as_me:$LINENO: result: no" >&5
2425
 
echo "${ECHO_T}no" >&6
2426
 
fi
2427
 
 
2428
 
    test -n "$CC" && break
2429
 
  done
2430
 
fi
2431
 
if test -z "$CC"; then
2432
 
  ac_ct_CC=$CC
2433
 
  for ac_prog in cl
2434
 
do
2435
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2436
 
set dummy $ac_prog; ac_word=$2
2437
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2438
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2439
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2440
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2441
 
else
2442
 
  if test -n "$ac_ct_CC"; then
2443
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2444
 
else
2445
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446
 
for as_dir in $PATH
2447
 
do
2448
 
  IFS=$as_save_IFS
2449
 
  test -z "$as_dir" && as_dir=.
2450
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2451
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2452
 
    ac_cv_prog_ac_ct_CC="$ac_prog"
2453
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2454
 
    break 2
2455
 
  fi
2456
 
done
2457
 
done
2458
 
 
2459
 
fi
2460
 
fi
2461
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2462
 
if test -n "$ac_ct_CC"; then
2463
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2464
 
echo "${ECHO_T}$ac_ct_CC" >&6
2465
 
else
2466
 
  echo "$as_me:$LINENO: result: no" >&5
2467
 
echo "${ECHO_T}no" >&6
2468
 
fi
2469
 
 
2470
 
  test -n "$ac_ct_CC" && break
2471
 
done
2472
 
 
2473
 
  CC=$ac_ct_CC
2474
 
fi
2475
 
 
2476
 
fi
2477
 
 
2478
 
 
2479
 
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2480
 
See \`config.log' for more details." >&5
2481
 
echo "$as_me: error: no acceptable C compiler found in \$PATH
2482
 
See \`config.log' for more details." >&2;}
2483
 
   { (exit 1); exit 1; }; }
2484
 
 
2485
 
# Provide some information about the compiler.
2486
 
echo "$as_me:$LINENO:" \
2487
 
     "checking for C compiler version" >&5
2488
 
ac_compiler=`set X $ac_compile; echo $2`
2489
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2490
 
  (eval $ac_compiler --version </dev/null >&5) 2>&5
2491
 
  ac_status=$?
2492
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493
 
  (exit $ac_status); }
2494
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2495
 
  (eval $ac_compiler -v </dev/null >&5) 2>&5
2496
 
  ac_status=$?
2497
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498
 
  (exit $ac_status); }
2499
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2500
 
  (eval $ac_compiler -V </dev/null >&5) 2>&5
2501
 
  ac_status=$?
2502
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503
 
  (exit $ac_status); }
2504
 
 
2505
 
cat >conftest.$ac_ext <<_ACEOF
2506
 
/* confdefs.h.  */
2507
 
_ACEOF
2508
 
cat confdefs.h >>conftest.$ac_ext
2509
 
cat >>conftest.$ac_ext <<_ACEOF
2510
 
/* end confdefs.h.  */
2511
 
 
2512
 
int
2513
 
main ()
2514
 
{
2515
 
 
2516
 
  ;
2517
 
  return 0;
2518
 
}
2519
 
_ACEOF
2520
 
ac_clean_files_save=$ac_clean_files
2521
 
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2522
 
# Try to create an executable without -o first, disregard a.out.
2523
 
# It will help us diagnose broken compilers, and finding out an intuition
2524
 
# of exeext.
2525
 
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2526
 
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2527
 
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2528
 
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2529
 
  (eval $ac_link_default) 2>&5
2530
 
  ac_status=$?
2531
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532
 
  (exit $ac_status); }; then
2533
 
  # Find the output, starting from the most likely.  This scheme is
2534
 
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2535
 
# resort.
2536
 
 
2537
 
# Be careful to initialize this variable, since it used to be cached.
2538
 
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2539
 
ac_cv_exeext=
2540
 
# b.out is created by i960 compilers.
2541
 
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2542
 
do
2543
 
  test -f "$ac_file" || continue
2544
 
  case $ac_file in
2545
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2546
 
        ;;
2547
 
    conftest.$ac_ext )
2548
 
        # This is the source file.
2549
 
        ;;
2550
 
    [ab].out )
2551
 
        # We found the default executable, but exeext='' is most
2552
 
        # certainly right.
2553
 
        break;;
2554
 
    *.* )
2555
 
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2556
 
        # FIXME: I believe we export ac_cv_exeext for Libtool,
2557
 
        # but it would be cool to find out if it's true.  Does anybody
2558
 
        # maintain Libtool? --akim.
2559
 
        export ac_cv_exeext
2560
 
        break;;
2561
 
    * )
2562
 
        break;;
2563
 
  esac
2564
 
done
2565
 
else
2566
 
  echo "$as_me: failed program was:" >&5
2567
 
sed 's/^/| /' conftest.$ac_ext >&5
2568
 
 
2569
 
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2570
 
See \`config.log' for more details." >&5
2571
 
echo "$as_me: error: C compiler cannot create executables
2572
 
See \`config.log' for more details." >&2;}
2573
 
   { (exit 77); exit 77; }; }
2574
 
fi
2575
 
 
2576
 
ac_exeext=$ac_cv_exeext
2577
 
echo "$as_me:$LINENO: result: $ac_file" >&5
2578
 
echo "${ECHO_T}$ac_file" >&6
2579
 
 
2580
 
# Check the compiler produces executables we can run.  If not, either
2581
 
# the compiler is broken, or we cross compile.
2582
 
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2583
 
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2584
 
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2585
 
# If not cross compiling, check that we can run a simple program.
2586
 
if test "$cross_compiling" != yes; then
2587
 
  if { ac_try='./$ac_file'
2588
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2589
 
  (eval $ac_try) 2>&5
2590
 
  ac_status=$?
2591
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592
 
  (exit $ac_status); }; }; then
2593
 
    cross_compiling=no
2594
 
  else
2595
 
    if test "$cross_compiling" = maybe; then
2596
 
        cross_compiling=yes
2597
 
    else
2598
 
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2599
 
If you meant to cross compile, use \`--host'.
2600
 
See \`config.log' for more details." >&5
2601
 
echo "$as_me: error: cannot run C compiled programs.
2602
 
If you meant to cross compile, use \`--host'.
2603
 
See \`config.log' for more details." >&2;}
2604
 
   { (exit 1); exit 1; }; }
2605
 
    fi
2606
 
  fi
2607
 
fi
2608
 
echo "$as_me:$LINENO: result: yes" >&5
2609
 
echo "${ECHO_T}yes" >&6
2610
 
 
2611
 
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2612
 
ac_clean_files=$ac_clean_files_save
2613
 
# Check the compiler produces executables we can run.  If not, either
2614
 
# the compiler is broken, or we cross compile.
2615
 
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2616
 
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2617
 
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2618
 
echo "${ECHO_T}$cross_compiling" >&6
2619
 
 
2620
 
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2621
 
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2622
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2623
 
  (eval $ac_link) 2>&5
2624
 
  ac_status=$?
2625
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626
 
  (exit $ac_status); }; then
2627
 
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2628
 
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2629
 
# work properly (i.e., refer to `conftest.exe'), while it won't with
2630
 
# `rm'.
2631
 
for ac_file in conftest.exe conftest conftest.*; do
2632
 
  test -f "$ac_file" || continue
2633
 
  case $ac_file in
2634
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2635
 
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2636
 
          export ac_cv_exeext
2637
 
          break;;
2638
 
    * ) break;;
2639
 
  esac
2640
 
done
2641
 
else
2642
 
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2643
 
See \`config.log' for more details." >&5
2644
 
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2645
 
See \`config.log' for more details." >&2;}
2646
 
   { (exit 1); exit 1; }; }
2647
 
fi
2648
 
 
2649
 
rm -f conftest$ac_cv_exeext
2650
 
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2651
 
echo "${ECHO_T}$ac_cv_exeext" >&6
2652
 
 
2653
 
rm -f conftest.$ac_ext
2654
 
EXEEXT=$ac_cv_exeext
2655
 
ac_exeext=$EXEEXT
2656
 
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2657
 
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2658
 
if test "${ac_cv_objext+set}" = set; then
2659
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2660
 
else
2661
 
  cat >conftest.$ac_ext <<_ACEOF
2662
 
/* confdefs.h.  */
2663
 
_ACEOF
2664
 
cat confdefs.h >>conftest.$ac_ext
2665
 
cat >>conftest.$ac_ext <<_ACEOF
2666
 
/* end confdefs.h.  */
2667
 
 
2668
 
int
2669
 
main ()
2670
 
{
2671
 
 
2672
 
  ;
2673
 
  return 0;
2674
 
}
2675
 
_ACEOF
2676
 
rm -f conftest.o conftest.obj
2677
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2678
 
  (eval $ac_compile) 2>&5
2679
 
  ac_status=$?
2680
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681
 
  (exit $ac_status); }; then
2682
 
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2683
 
  case $ac_file in
2684
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2685
 
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2686
 
       break;;
2687
 
  esac
2688
 
done
2689
 
else
2690
 
  echo "$as_me: failed program was:" >&5
2691
 
sed 's/^/| /' conftest.$ac_ext >&5
2692
 
 
2693
 
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2694
 
See \`config.log' for more details." >&5
2695
 
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2696
 
See \`config.log' for more details." >&2;}
2697
 
   { (exit 1); exit 1; }; }
2698
 
fi
2699
 
 
2700
 
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2701
 
fi
2702
 
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2703
 
echo "${ECHO_T}$ac_cv_objext" >&6
2704
 
OBJEXT=$ac_cv_objext
2705
 
ac_objext=$OBJEXT
2706
 
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2707
 
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2708
 
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2709
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2710
 
else
2711
 
  cat >conftest.$ac_ext <<_ACEOF
2712
 
/* confdefs.h.  */
2713
 
_ACEOF
2714
 
cat confdefs.h >>conftest.$ac_ext
2715
 
cat >>conftest.$ac_ext <<_ACEOF
2716
 
/* end confdefs.h.  */
2717
 
 
2718
 
int
2719
 
main ()
2720
 
{
2721
 
#ifndef __GNUC__
2722
 
       choke me
2723
 
#endif
2724
 
 
2725
 
  ;
2726
 
  return 0;
2727
 
}
2728
 
_ACEOF
2729
 
rm -f conftest.$ac_objext
2730
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2731
 
  (eval $ac_compile) 2>conftest.er1
2732
 
  ac_status=$?
2733
 
  grep -v '^ *+' conftest.er1 >conftest.err
2734
 
  rm -f conftest.er1
2735
 
  cat conftest.err >&5
2736
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737
 
  (exit $ac_status); } &&
2738
 
         { ac_try='test -z "$ac_c_werror_flag"
2739
 
                         || test ! -s conftest.err'
2740
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2741
 
  (eval $ac_try) 2>&5
2742
 
  ac_status=$?
2743
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744
 
  (exit $ac_status); }; } &&
2745
 
         { ac_try='test -s conftest.$ac_objext'
2746
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2747
 
  (eval $ac_try) 2>&5
2748
 
  ac_status=$?
2749
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750
 
  (exit $ac_status); }; }; then
2751
 
  ac_compiler_gnu=yes
2752
 
else
2753
 
  echo "$as_me: failed program was:" >&5
2754
 
sed 's/^/| /' conftest.$ac_ext >&5
2755
 
 
2756
 
ac_compiler_gnu=no
2757
 
fi
2758
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2759
 
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2760
 
 
2761
 
fi
2762
 
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2763
 
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2764
 
GCC=`test $ac_compiler_gnu = yes && echo yes`
2765
 
ac_test_CFLAGS=${CFLAGS+set}
2766
 
ac_save_CFLAGS=$CFLAGS
2767
 
CFLAGS="-g"
2768
 
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2769
 
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2770
 
if test "${ac_cv_prog_cc_g+set}" = set; then
2771
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2772
 
else
2773
 
  cat >conftest.$ac_ext <<_ACEOF
2774
 
/* confdefs.h.  */
2775
 
_ACEOF
2776
 
cat confdefs.h >>conftest.$ac_ext
2777
 
cat >>conftest.$ac_ext <<_ACEOF
2778
 
/* end confdefs.h.  */
2779
 
 
2780
 
int
2781
 
main ()
2782
 
{
2783
 
 
2784
 
  ;
2785
 
  return 0;
2786
 
}
2787
 
_ACEOF
2788
 
rm -f conftest.$ac_objext
2789
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2790
 
  (eval $ac_compile) 2>conftest.er1
2791
 
  ac_status=$?
2792
 
  grep -v '^ *+' conftest.er1 >conftest.err
2793
 
  rm -f conftest.er1
2794
 
  cat conftest.err >&5
2795
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796
 
  (exit $ac_status); } &&
2797
 
         { ac_try='test -z "$ac_c_werror_flag"
2798
 
                         || test ! -s conftest.err'
2799
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2800
 
  (eval $ac_try) 2>&5
2801
 
  ac_status=$?
2802
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803
 
  (exit $ac_status); }; } &&
2804
 
         { ac_try='test -s conftest.$ac_objext'
2805
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2806
 
  (eval $ac_try) 2>&5
2807
 
  ac_status=$?
2808
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809
 
  (exit $ac_status); }; }; then
2810
 
  ac_cv_prog_cc_g=yes
2811
 
else
2812
 
  echo "$as_me: failed program was:" >&5
2813
 
sed 's/^/| /' conftest.$ac_ext >&5
2814
 
 
2815
 
ac_cv_prog_cc_g=no
2816
 
fi
2817
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2818
 
fi
2819
 
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2820
 
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2821
 
if test "$ac_test_CFLAGS" = set; then
2822
 
  CFLAGS=$ac_save_CFLAGS
2823
 
elif test $ac_cv_prog_cc_g = yes; then
2824
 
  if test "$GCC" = yes; then
2825
 
    CFLAGS="-g -O2"
2826
 
  else
2827
 
    CFLAGS="-g"
2828
 
  fi
2829
 
else
2830
 
  if test "$GCC" = yes; then
2831
 
    CFLAGS="-O2"
2832
 
  else
2833
 
    CFLAGS=
2834
 
  fi
2835
 
fi
2836
 
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2837
 
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2838
 
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2839
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2840
 
else
2841
 
  ac_cv_prog_cc_stdc=no
2842
 
ac_save_CC=$CC
2843
 
cat >conftest.$ac_ext <<_ACEOF
2844
 
/* confdefs.h.  */
2845
 
_ACEOF
2846
 
cat confdefs.h >>conftest.$ac_ext
2847
 
cat >>conftest.$ac_ext <<_ACEOF
2848
 
/* end confdefs.h.  */
2849
 
#include <stdarg.h>
2850
 
#include <stdio.h>
2851
 
#include <sys/types.h>
2852
 
#include <sys/stat.h>
2853
 
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2854
 
struct buf { int x; };
2855
 
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2856
 
static char *e (p, i)
2857
 
     char **p;
2858
 
     int i;
2859
 
{
2860
 
  return p[i];
2861
 
}
2862
 
static char *f (char * (*g) (char **, int), char **p, ...)
2863
 
{
2864
 
  char *s;
2865
 
  va_list v;
2866
 
  va_start (v,p);
2867
 
  s = g (p, va_arg (v,int));
2868
 
  va_end (v);
2869
 
  return s;
2870
 
}
2871
 
 
2872
 
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2873
 
   function prototypes and stuff, but not '\xHH' hex character constants.
2874
 
   These don't provoke an error unfortunately, instead are silently treated
2875
 
   as 'x'.  The following induces an error, until -std1 is added to get
2876
 
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2877
 
   array size at least.  It's necessary to write '\x00'==0 to get something
2878
 
   that's true only with -std1.  */
2879
 
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2880
 
 
2881
 
int test (int i, double x);
2882
 
struct s1 {int (*f) (int a);};
2883
 
struct s2 {int (*f) (double a);};
2884
 
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2885
 
int argc;
2886
 
char **argv;
2887
 
int
2888
 
main ()
2889
 
{
2890
 
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2891
 
  ;
2892
 
  return 0;
2893
 
}
2894
 
_ACEOF
2895
 
# Don't try gcc -ansi; that turns off useful extensions and
2896
 
# breaks some systems' header files.
2897
 
# AIX                   -qlanglvl=ansi
2898
 
# Ultrix and OSF/1      -std1
2899
 
# HP-UX 10.20 and later -Ae
2900
 
# HP-UX older versions  -Aa -D_HPUX_SOURCE
2901
 
# SVR4                  -Xc -D__EXTENSIONS__
2902
 
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2903
 
do
2904
 
  CC="$ac_save_CC $ac_arg"
2905
 
  rm -f conftest.$ac_objext
2906
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2907
 
  (eval $ac_compile) 2>conftest.er1
2908
 
  ac_status=$?
2909
 
  grep -v '^ *+' conftest.er1 >conftest.err
2910
 
  rm -f conftest.er1
2911
 
  cat conftest.err >&5
2912
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913
 
  (exit $ac_status); } &&
2914
 
         { ac_try='test -z "$ac_c_werror_flag"
2915
 
                         || test ! -s conftest.err'
2916
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2917
 
  (eval $ac_try) 2>&5
2918
 
  ac_status=$?
2919
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920
 
  (exit $ac_status); }; } &&
2921
 
         { ac_try='test -s conftest.$ac_objext'
2922
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2923
 
  (eval $ac_try) 2>&5
2924
 
  ac_status=$?
2925
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926
 
  (exit $ac_status); }; }; then
2927
 
  ac_cv_prog_cc_stdc=$ac_arg
2928
 
break
2929
 
else
2930
 
  echo "$as_me: failed program was:" >&5
2931
 
sed 's/^/| /' conftest.$ac_ext >&5
2932
 
 
2933
 
fi
2934
 
rm -f conftest.err conftest.$ac_objext 
2935
 
done
2936
 
rm -f conftest.$ac_ext conftest.$ac_objext
2937
 
CC=$ac_save_CC
2938
 
 
2939
 
fi
2940
 
 
2941
 
case "x$ac_cv_prog_cc_stdc" in
2942
 
  x|xno)
2943
 
    echo "$as_me:$LINENO: result: none needed" >&5
2944
 
echo "${ECHO_T}none needed" >&6 ;;
2945
 
  *)
2946
 
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2947
 
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2948
 
    CC="$CC $ac_cv_prog_cc_stdc" ;;
2949
 
esac
2950
 
 
2951
 
# Some people use a C++ compiler to compile C.  Since we use `exit',
2952
 
# in C++ we need to declare it.  In case someone uses the same compiler
2953
 
# for both compiling C and C++ we need to have the C++ compiler decide
2954
 
# the declaration of exit, since it's the most demanding environment.
2955
 
cat >conftest.$ac_ext <<_ACEOF
2956
 
@%:@ifndef __cplusplus
2957
 
  choke me
2958
 
@%:@endif
2959
 
_ACEOF
2960
 
rm -f conftest.$ac_objext
2961
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2962
 
  (eval $ac_compile) 2>conftest.er1
2963
 
  ac_status=$?
2964
 
  grep -v '^ *+' conftest.er1 >conftest.err
2965
 
  rm -f conftest.er1
2966
 
  cat conftest.err >&5
2967
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968
 
  (exit $ac_status); } &&
2969
 
         { ac_try='test -z "$ac_c_werror_flag"
2970
 
                         || test ! -s conftest.err'
2971
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2972
 
  (eval $ac_try) 2>&5
2973
 
  ac_status=$?
2974
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975
 
  (exit $ac_status); }; } &&
2976
 
         { ac_try='test -s conftest.$ac_objext'
2977
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2978
 
  (eval $ac_try) 2>&5
2979
 
  ac_status=$?
2980
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981
 
  (exit $ac_status); }; }; then
2982
 
  for ac_declaration in \
2983
 
   '' \
2984
 
   'extern "C" void std::exit (int) throw (); using std::exit;' \
2985
 
   'extern "C" void std::exit (int); using std::exit;' \
2986
 
   'extern "C" void exit (int) throw ();' \
2987
 
   'extern "C" void exit (int);' \
2988
 
   'void exit (int);'
2989
 
do
2990
 
  cat >conftest.$ac_ext <<_ACEOF
2991
 
/* confdefs.h.  */
2992
 
_ACEOF
2993
 
cat confdefs.h >>conftest.$ac_ext
2994
 
cat >>conftest.$ac_ext <<_ACEOF
2995
 
/* end confdefs.h.  */
2996
 
$ac_declaration
2997
 
@%:@include <stdlib.h>
2998
 
int
2999
 
main ()
3000
 
{
3001
 
exit (42);
3002
 
  ;
3003
 
  return 0;
3004
 
}
3005
 
_ACEOF
3006
 
rm -f conftest.$ac_objext
3007
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3008
 
  (eval $ac_compile) 2>conftest.er1
3009
 
  ac_status=$?
3010
 
  grep -v '^ *+' conftest.er1 >conftest.err
3011
 
  rm -f conftest.er1
3012
 
  cat conftest.err >&5
3013
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014
 
  (exit $ac_status); } &&
3015
 
         { ac_try='test -z "$ac_c_werror_flag"
3016
 
                         || test ! -s conftest.err'
3017
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3018
 
  (eval $ac_try) 2>&5
3019
 
  ac_status=$?
3020
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021
 
  (exit $ac_status); }; } &&
3022
 
         { ac_try='test -s conftest.$ac_objext'
3023
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3024
 
  (eval $ac_try) 2>&5
3025
 
  ac_status=$?
3026
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027
 
  (exit $ac_status); }; }; then
3028
 
  :
3029
 
else
3030
 
  echo "$as_me: failed program was:" >&5
3031
 
sed 's/^/| /' conftest.$ac_ext >&5
3032
 
 
3033
 
continue
3034
 
fi
3035
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3036
 
  cat >conftest.$ac_ext <<_ACEOF
3037
 
/* confdefs.h.  */
3038
 
_ACEOF
3039
 
cat confdefs.h >>conftest.$ac_ext
3040
 
cat >>conftest.$ac_ext <<_ACEOF
3041
 
/* end confdefs.h.  */
3042
 
$ac_declaration
3043
 
int
3044
 
main ()
3045
 
{
3046
 
exit (42);
3047
 
  ;
3048
 
  return 0;
3049
 
}
3050
 
_ACEOF
3051
 
rm -f conftest.$ac_objext
3052
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3053
 
  (eval $ac_compile) 2>conftest.er1
3054
 
  ac_status=$?
3055
 
  grep -v '^ *+' conftest.er1 >conftest.err
3056
 
  rm -f conftest.er1
3057
 
  cat conftest.err >&5
3058
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059
 
  (exit $ac_status); } &&
3060
 
         { ac_try='test -z "$ac_c_werror_flag"
3061
 
                         || test ! -s conftest.err'
3062
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3063
 
  (eval $ac_try) 2>&5
3064
 
  ac_status=$?
3065
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066
 
  (exit $ac_status); }; } &&
3067
 
         { ac_try='test -s conftest.$ac_objext'
3068
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3069
 
  (eval $ac_try) 2>&5
3070
 
  ac_status=$?
3071
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072
 
  (exit $ac_status); }; }; then
3073
 
  break
3074
 
else
3075
 
  echo "$as_me: failed program was:" >&5
3076
 
sed 's/^/| /' conftest.$ac_ext >&5
3077
 
 
3078
 
fi
3079
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3080
 
done
3081
 
rm -f conftest*
3082
 
if test -n "$ac_declaration"; then
3083
 
  echo '#ifdef __cplusplus' >>confdefs.h
3084
 
  echo $ac_declaration      >>confdefs.h
3085
 
  echo '#endif'             >>confdefs.h
3086
 
fi
3087
 
 
3088
 
else
3089
 
  echo "$as_me: failed program was:" >&5
3090
 
sed 's/^/| /' conftest.$ac_ext >&5
3091
 
 
3092
 
fi
3093
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3094
 
ac_ext=c
3095
 
ac_cpp='$CPP $CPPFLAGS'
3096
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3097
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3098
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3099
 
 
3100
 
depcc="$CC"   am_compiler_list=
3101
 
 
3102
 
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3103
 
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3104
 
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3105
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3106
 
else
3107
 
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3108
 
  # We make a subdir and do the tests there.  Otherwise we can end up
3109
 
  # making bogus files that we don't know about and never remove.  For
3110
 
  # instance it was reported that on HP-UX the gcc test will end up
3111
 
  # making a dummy file named `D' -- because `-MD' means `put the output
3112
 
  # in D'.
3113
 
  mkdir conftest.dir
3114
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
3115
 
  # using a relative directory.
3116
 
  cp "$am_depcomp" conftest.dir
3117
 
  cd conftest.dir
3118
 
  # We will build objects and dependencies in a subdirectory because
3119
 
  # it helps to detect inapplicable dependency modes.  For instance
3120
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
3121
 
  # side effect of compilation, but ICC will put the dependencies in
3122
 
  # the current directory while Tru64 will put them in the object
3123
 
  # directory.
3124
 
  mkdir sub
3125
 
 
3126
 
  am_cv_CC_dependencies_compiler_type=none
3127
 
  if test "$am_compiler_list" = ""; then
3128
 
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3129
 
  fi
3130
 
  for depmode in $am_compiler_list; do
3131
 
    # Setup a source with many dependencies, because some compilers
3132
 
    # like to wrap large dependency lists on column 80 (with \), and
3133
 
    # we should not choose a depcomp mode which is confused by this.
3134
 
    #
3135
 
    # We need to recreate these files for each test, as the compiler may
3136
 
    # overwrite some of them when testing with obscure command lines.
3137
 
    # This happens at least with the AIX C compiler.
3138
 
    : > sub/conftest.c
3139
 
    for i in 1 2 3 4 5 6; do
3140
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3141
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3142
 
      # Solaris 8's {/usr,}/bin/sh.
3143
 
      touch sub/conftst$i.h
3144
 
    done
3145
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3146
 
 
3147
 
    case $depmode in
3148
 
    nosideeffect)
3149
 
      # after this tag, mechanisms are not by side-effect, so they'll
3150
 
      # only be used when explicitly requested
3151
 
      if test "x$enable_dependency_tracking" = xyes; then
3152
 
        continue
3153
 
      else
3154
 
        break
3155
 
      fi
3156
 
      ;;
3157
 
    none) break ;;
3158
 
    esac
3159
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3160
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
3161
 
    # handle `-M -o', and we need to detect this.
3162
 
    if depmode=$depmode \
3163
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3164
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3165
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3166
 
         >/dev/null 2>conftest.err &&
3167
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3168
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3169
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3170
 
      # icc doesn't choke on unknown options, it will just issue warnings
3171
 
      # or remarks (even with -Werror).  So we grep stderr for any message
3172
 
      # that says an option was ignored or not supported.
3173
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
3174
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
3175
 
      # The diagnosis changed in icc 8.0:
3176
 
      #   icc: Command line remark: option '-MP' not supported
3177
 
      if (grep 'ignoring option' conftest.err ||
3178
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3179
 
        am_cv_CC_dependencies_compiler_type=$depmode
3180
 
        break
3181
 
      fi
3182
 
    fi
3183
 
  done
3184
 
 
3185
 
  cd ..
3186
 
  rm -rf conftest.dir
3187
 
else
3188
 
  am_cv_CC_dependencies_compiler_type=none
3189
 
fi
3190
 
 
3191
 
fi
3192
 
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3193
 
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3194
 
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3195
 
 
3196
 
 
3197
 
 
3198
 
if 
3199
 
  test "x$enable_dependency_tracking" != xno \
3200
 
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3201
 
  am__fastdepCC_TRUE=
3202
 
  am__fastdepCC_FALSE='#'
3203
 
else
3204
 
  am__fastdepCC_TRUE='#'
3205
 
  am__fastdepCC_FALSE=
3206
 
fi
3207
 
 
3208
 
 
3209
 
 
3210
 
echo "$as_me:$LINENO: checking for EVP_DigestUpdate in -lcrypto" >&5
3211
 
echo $ECHO_N "checking for EVP_DigestUpdate in -lcrypto... $ECHO_C" >&6
3212
 
if test "${ac_cv_lib_crypto_EVP_DigestUpdate+set}" = set; then
3213
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3214
 
else
3215
 
  ac_check_lib_save_LIBS=$LIBS
3216
 
LIBS="-lcrypto  $LIBS"
3217
 
cat >conftest.$ac_ext <<_ACEOF
3218
 
/* confdefs.h.  */
3219
 
_ACEOF
3220
 
cat confdefs.h >>conftest.$ac_ext
3221
 
cat >>conftest.$ac_ext <<_ACEOF
3222
 
/* end confdefs.h.  */
3223
 
 
3224
 
/* Override any gcc2 internal prototype to avoid an error.  */
3225
 
#ifdef __cplusplus
3226
 
extern "C"
3227
 
#endif
3228
 
/* We use char because int might match the return type of a gcc2
3229
 
   builtin and then its argument prototype would still apply.  */
3230
 
char EVP_DigestUpdate ();
3231
 
int
3232
 
main ()
3233
 
{
3234
 
EVP_DigestUpdate ();
3235
 
  ;
3236
 
  return 0;
3237
 
}
3238
 
_ACEOF
3239
 
rm -f conftest.$ac_objext conftest$ac_exeext
3240
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3241
 
  (eval $ac_link) 2>conftest.er1
3242
 
  ac_status=$?
3243
 
  grep -v '^ *+' conftest.er1 >conftest.err
3244
 
  rm -f conftest.er1
3245
 
  cat conftest.err >&5
3246
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247
 
  (exit $ac_status); } &&
3248
 
         { ac_try='test -z "$ac_c_werror_flag"
3249
 
                         || test ! -s conftest.err'
3250
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3251
 
  (eval $ac_try) 2>&5
3252
 
  ac_status=$?
3253
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254
 
  (exit $ac_status); }; } &&
3255
 
         { ac_try='test -s conftest$ac_exeext'
3256
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3257
 
  (eval $ac_try) 2>&5
3258
 
  ac_status=$?
3259
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260
 
  (exit $ac_status); }; }; then
3261
 
  ac_cv_lib_crypto_EVP_DigestUpdate=yes
3262
 
else
3263
 
  echo "$as_me: failed program was:" >&5
3264
 
sed 's/^/| /' conftest.$ac_ext >&5
3265
 
 
3266
 
ac_cv_lib_crypto_EVP_DigestUpdate=no
3267
 
fi
3268
 
rm -f conftest.err conftest.$ac_objext \
3269
 
      conftest$ac_exeext conftest.$ac_ext
3270
 
LIBS=$ac_check_lib_save_LIBS
3271
 
fi
3272
 
echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_EVP_DigestUpdate" >&5
3273
 
echo "${ECHO_T}$ac_cv_lib_crypto_EVP_DigestUpdate" >&6
3274
 
if test $ac_cv_lib_crypto_EVP_DigestUpdate = yes; then
3275
 
  CRYPTO_PACKAGE='openssl'
3276
 
else
3277
 
  { { echo "$as_me:$LINENO: error: openssl is currently the only supported crypto library for trousers. Please install openssl from http://www.openssl.org or the -devel package from your distro" >&5
3278
 
echo "$as_me: error: openssl is currently the only supported crypto library for trousers. Please install openssl from http://www.openssl.org or the -devel package from your distro" >&2;}
3279
 
   { (exit 1); exit 1; }; }
3280
 
fi
3281
 
 
3282
 
 
3283
 
 
3284
 
# Check whether --enable-gcov or --disable-gcov was given.
3285
 
if test "${enable_gcov+set}" = set; then
3286
 
  enableval="$enable_gcov"
3287
 
  CFLAGS="$CFLAGS -ftest-coverage -fprofile-arcs"
3288
 
                 echo "$as_me:$LINENO: result: *** Enabling gcov at user request ***" >&5
3289
 
echo "${ECHO_T}*** Enabling gcov at user request ***" >&6
3290
 
fi; 
3291
 
 
3292
 
# profiling support
3293
 
# Check whether --enable-gprof or --disable-gprof was given.
3294
 
if test "${enable_gprof+set}" = set; then
3295
 
  enableval="$enable_gprof"
3296
 
  CFLAGS="$CFLAGS -pg"
3297
 
                 echo "$as_me:$LINENO: result: *** Enabling profiling at user request ***" >&5
3298
 
echo "${ECHO_T}*** Enabling profiling at user request ***" >&6
3299
 
fi; 
3300
 
 
3301
 
COPY_POLICIES=0
3302
 
# strict spec compliance
3303
 
# Check whether --enable-policy-copying or --disable-policy-copying was given.
3304
 
if test "${enable_policy_copying+set}" = set; then
3305
 
  enableval="$enable_policy_copying"
3306
 
  CFLAGS="$CFLAGS -DTSS_COPY_POLICY_OBJECTS"
3307
 
                 COPY_POLICIES=1
3308
 
                 echo "$as_me:$LINENO: result: *** Enabling spec compliance at user request ***" >&5
3309
 
echo "${ECHO_T}*** Enabling spec compliance at user request ***" >&6
3310
 
fi; 
3311
 
 
3312
 
SPEC_COMP=0
3313
 
# strict spec compliance
3314
 
# Check whether --enable-strict-spec-compliance or --disable-strict-spec-compliance was given.
3315
 
if test "${enable_strict_spec_compliance+set}" = set; then
3316
 
  enableval="$enable_strict_spec_compliance"
3317
 
  if test $COPY_POLICIES -eq 1; then { { echo "$as_me:$LINENO: error: Policy copying cannot be enabled in strict spec compliance mode" >&5
3318
 
echo "$as_me: error: Policy copying cannot be enabled in strict spec compliance mode" >&2;}
3319
 
   { (exit 1); exit 1; }; } fi
3320
 
                 CFLAGS="$CFLAGS -DTSS_SPEC_COMPLIANCE"
3321
 
                 SPEC_COMP=1
3322
 
                 echo "$as_me:$LINENO: result: *** Enabling spec compliance at user request ***" >&5
3323
 
echo "${ECHO_T}*** Enabling spec compliance at user request ***" >&6
3324
 
fi; 
3325
 
 
3326
 
GUI=gtk
3327
 
 
3328
 
# Check whether --with-gui or --without-gui was given.
3329
 
if test "${with_gui+set}" = set; then
3330
 
  withval="$with_gui"
3331
 
  GUI=$withval
3332
 
fi; 
3333
 
 
3334
 
if test "x$GUI" == "xgtk"; then
3335
 
        # section imported from Glade compile
3336
 
        pkg_modules="gtk+-2.0 >= 2.0.0"
3337
 
        
3338
 
  succeeded=no
3339
 
 
3340
 
  if test -z "$PKG_CONFIG"; then
3341
 
    # Extract the first word of "pkg-config", so it can be a program name with args.
3342
 
set dummy pkg-config; ac_word=$2
3343
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
3344
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3345
 
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3346
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3347
 
else
3348
 
  case $PKG_CONFIG in
3349
 
  [\\/]* | ?:[\\/]*)
3350
 
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3351
 
  ;;
3352
 
  *)
3353
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3354
 
for as_dir in $PATH
3355
 
do
3356
 
  IFS=$as_save_IFS
3357
 
  test -z "$as_dir" && as_dir=.
3358
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3359
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3360
 
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3361
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3362
 
    break 2
3363
 
  fi
3364
 
done
3365
 
done
3366
 
 
3367
 
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
3368
 
  ;;
3369
 
esac
3370
 
fi
3371
 
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3372
 
 
3373
 
if test -n "$PKG_CONFIG"; then
3374
 
  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
3375
 
echo "${ECHO_T}$PKG_CONFIG" >&6
3376
 
else
3377
 
  echo "$as_me:$LINENO: result: no" >&5
3378
 
echo "${ECHO_T}no" >&6
3379
 
fi
3380
 
 
3381
 
  fi
3382
 
 
3383
 
  if test "$PKG_CONFIG" = "no" ; then
3384
 
     echo "*** The pkg-config script could not be found. Make sure it is"
3385
 
     echo "*** in your path, or set the PKG_CONFIG environment variable"
3386
 
     echo "*** to the full path to pkg-config."
3387
 
     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
3388
 
  else
3389
 
     PKG_CONFIG_MIN_VERSION=0.9.0
3390
 
     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
3391
 
        echo "$as_me:$LINENO: checking for $pkg_modules" >&5
3392
 
echo $ECHO_N "checking for $pkg_modules... $ECHO_C" >&6
3393
 
 
3394
 
        if $PKG_CONFIG --exists "$pkg_modules" ; then
3395
 
            echo "$as_me:$LINENO: result: yes" >&5
3396
 
echo "${ECHO_T}yes" >&6
3397
 
            succeeded=yes
3398
 
 
3399
 
            echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
3400
 
echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
3401
 
            GTK_CFLAGS=`$PKG_CONFIG --cflags "$pkg_modules"`
3402
 
            echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
3403
 
echo "${ECHO_T}$GTK_CFLAGS" >&6
3404
 
 
3405
 
            echo "$as_me:$LINENO: checking GTK_LIBS" >&5
3406
 
echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
3407
 
            GTK_LIBS=`$PKG_CONFIG --libs "$pkg_modules"`
3408
 
            echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
3409
 
echo "${ECHO_T}$GTK_LIBS" >&6
3410
 
        else
3411
 
            GTK_CFLAGS=""
3412
 
            GTK_LIBS=""
3413
 
            ## If we have a custom action on failure, don't print errors, but 
3414
 
            ## do set a variable so people can do so.
3415
 
            GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_modules"`
3416
 
            
3417
 
        fi
3418
 
 
3419
 
        
3420
 
        
3421
 
     else
3422
 
        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
3423
 
        echo "*** See http://www.freedesktop.org/software/pkgconfig"
3424
 
     fi
3425
 
  fi
3426
 
 
3427
 
  if test $succeeded = yes; then
3428
 
      
3429
 
 
3430
 
if true; then
3431
 
  HAVE_GTK_TRUE=
3432
 
  HAVE_GTK_FALSE='#'
3433
 
else
3434
 
  HAVE_GTK_TRUE='#'
3435
 
  HAVE_GTK_FALSE=
3436
 
fi
3437
 
 
3438
 
  else
3439
 
      
3440
 
 
3441
 
if false; then
3442
 
  HAVE_GTK_TRUE=
3443
 
  HAVE_GTK_FALSE='#'
3444
 
else
3445
 
  HAVE_GTK_TRUE='#'
3446
 
  HAVE_GTK_FALSE=
3447
 
fi
3448
 
 
3449
 
                          { { echo "$as_me:$LINENO: error: GTK libs are currently the only supported GUI library for trousers. Please install the gtk2-devel package for your distro." >&5
3450
 
echo "$as_me: error: GTK libs are currently the only supported GUI library for trousers. Please install the gtk2-devel package for your distro." >&2;}
3451
 
   { (exit 1); exit 1; }; } 
3452
 
  fi
3453
 
 
3454
 
        
3455
 
        
3456
 
elif test "x$GUI" == "xnone"; then
3457
 
        if test $SPEC_COMP -eq 1; then
3458
 
                { { echo "$as_me:$LINENO: error: Popups must be enabled in strict spec compliance mode" >&5
3459
 
echo "$as_me: error: Popups must be enabled in strict spec compliance mode" >&2;}
3460
 
   { (exit 1); exit 1; }; }
3461
 
        fi
3462
 
        echo "$as_me:$LINENO: result: *** Disabling GUI popups at user request ***" >&5
3463
 
echo "${ECHO_T}*** Disabling GUI popups at user request ***" >&6
3464
 
        echo "$as_me:$LINENO: result: *** WARNING: This may break apps! ***" >&5
3465
 
echo "${ECHO_T}*** WARNING: This may break apps! ***" >&6
3466
 
        CFLAGS="$CFLAGS -DTSS_NO_GUI"
3467
 
         
3468
 
 
3469
 
if false; then
3470
 
  HAVE_GTK_TRUE=
3471
 
  HAVE_GTK_FALSE='#'
3472
 
else
3473
 
  HAVE_GTK_TRUE='#'
3474
 
  HAVE_GTK_FALSE=
3475
 
fi
3476
 
 
3477
 
else
3478
 
        { { echo "$as_me:$LINENO: error: \"gtk\" and \"none\" are the only supported gui options for trousers" >&5
3479
 
echo "$as_me: error: \"gtk\" and \"none\" are the only supported gui options for trousers" >&2;}
3480
 
   { (exit 1); exit 1; }; }
3481
 
fi
3482
 
 
3483
 
#GETTEXT_PACKAGE=trousers
3484
 
#AC_SUBST(GETTEXT_PACKAGE)
3485
 
#AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE")
3486
 
 
3487
 
#ALL_LINGUAS=""
3488
 
#AM_GLIB_GNU_GETTEXT
3489
 
 
3490
 
# end Glade section
3491
 
 
3492
 
 
3493
 
# Check whether --enable-static or --disable-static was given.
3494
 
if test "${enable_static+set}" = set; then
3495
 
  enableval="$enable_static"
3496
 
  p=${PACKAGE-default}
3497
 
    case $enableval in
3498
 
    yes) enable_static=yes ;;
3499
 
    no) enable_static=no ;;
3500
 
    *)
3501
 
     enable_static=no
3502
 
      # Look at the argument we got.  We use all the common list separators.
3503
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3504
 
      for pkg in $enableval; do
3505
 
        IFS="$lt_save_ifs"
3506
 
        if test "X$pkg" = "X$p"; then
3507
 
          enable_static=yes
3508
 
        fi
3509
 
      done
3510
 
      IFS="$lt_save_ifs"
3511
 
      ;;
3512
 
    esac
3513
 
else
3514
 
  enable_static=no
3515
 
fi; 
3516
 
 
3517
 
 
3518
 
ac_ext=c
3519
 
ac_cpp='$CPP $CPPFLAGS'
3520
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3521
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3522
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3523
 
if test -n "$ac_tool_prefix"; then
3524
 
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3525
 
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3526
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
3527
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3528
 
if test "${ac_cv_prog_CC+set}" = set; then
3529
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3530
 
else
3531
 
  if test -n "$CC"; then
3532
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
3533
 
else
3534
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3535
 
for as_dir in $PATH
3536
 
do
3537
 
  IFS=$as_save_IFS
3538
 
  test -z "$as_dir" && as_dir=.
3539
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3540
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3541
 
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3542
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3543
 
    break 2
3544
 
  fi
3545
 
done
3546
 
done
3547
 
 
3548
 
fi
3549
 
fi
3550
 
CC=$ac_cv_prog_CC
3551
 
if test -n "$CC"; then
3552
 
  echo "$as_me:$LINENO: result: $CC" >&5
3553
 
echo "${ECHO_T}$CC" >&6
3554
 
else
3555
 
  echo "$as_me:$LINENO: result: no" >&5
3556
 
echo "${ECHO_T}no" >&6
3557
 
fi
3558
 
 
3559
 
fi
3560
 
if test -z "$ac_cv_prog_CC"; then
3561
 
  ac_ct_CC=$CC
3562
 
  # Extract the first word of "gcc", so it can be a program name with args.
3563
 
set dummy gcc; ac_word=$2
3564
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
3565
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3566
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3567
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3568
 
else
3569
 
  if test -n "$ac_ct_CC"; then
3570
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3571
 
else
3572
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3573
 
for as_dir in $PATH
3574
 
do
3575
 
  IFS=$as_save_IFS
3576
 
  test -z "$as_dir" && as_dir=.
3577
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3578
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3579
 
    ac_cv_prog_ac_ct_CC="gcc"
3580
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3581
 
    break 2
3582
 
  fi
3583
 
done
3584
 
done
3585
 
 
3586
 
fi
3587
 
fi
3588
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3589
 
if test -n "$ac_ct_CC"; then
3590
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3591
 
echo "${ECHO_T}$ac_ct_CC" >&6
3592
 
else
3593
 
  echo "$as_me:$LINENO: result: no" >&5
3594
 
echo "${ECHO_T}no" >&6
3595
 
fi
3596
 
 
3597
 
  CC=$ac_ct_CC
3598
 
else
3599
 
  CC="$ac_cv_prog_CC"
3600
 
fi
3601
 
 
3602
 
if test -z "$CC"; then
3603
 
  if test -n "$ac_tool_prefix"; then
3604
 
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3605
 
set dummy ${ac_tool_prefix}cc; ac_word=$2
3606
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
3607
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3608
 
if test "${ac_cv_prog_CC+set}" = set; then
3609
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3610
 
else
3611
 
  if test -n "$CC"; then
3612
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
3613
 
else
3614
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3615
 
for as_dir in $PATH
3616
 
do
3617
 
  IFS=$as_save_IFS
3618
 
  test -z "$as_dir" && as_dir=.
3619
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3620
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3621
 
    ac_cv_prog_CC="${ac_tool_prefix}cc"
3622
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3623
 
    break 2
3624
 
  fi
3625
 
done
3626
 
done
3627
 
 
3628
 
fi
3629
 
fi
3630
 
CC=$ac_cv_prog_CC
3631
 
if test -n "$CC"; then
3632
 
  echo "$as_me:$LINENO: result: $CC" >&5
3633
 
echo "${ECHO_T}$CC" >&6
3634
 
else
3635
 
  echo "$as_me:$LINENO: result: no" >&5
3636
 
echo "${ECHO_T}no" >&6
3637
 
fi
3638
 
 
3639
 
fi
3640
 
if test -z "$ac_cv_prog_CC"; then
3641
 
  ac_ct_CC=$CC
3642
 
  # Extract the first word of "cc", so it can be a program name with args.
3643
 
set dummy cc; ac_word=$2
3644
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
3645
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3646
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3647
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3648
 
else
3649
 
  if test -n "$ac_ct_CC"; then
3650
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3651
 
else
3652
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3653
 
for as_dir in $PATH
3654
 
do
3655
 
  IFS=$as_save_IFS
3656
 
  test -z "$as_dir" && as_dir=.
3657
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3658
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3659
 
    ac_cv_prog_ac_ct_CC="cc"
3660
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3661
 
    break 2
3662
 
  fi
3663
 
done
3664
 
done
3665
 
 
3666
 
fi
3667
 
fi
3668
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3669
 
if test -n "$ac_ct_CC"; then
3670
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3671
 
echo "${ECHO_T}$ac_ct_CC" >&6
3672
 
else
3673
 
  echo "$as_me:$LINENO: result: no" >&5
3674
 
echo "${ECHO_T}no" >&6
3675
 
fi
3676
 
 
3677
 
  CC=$ac_ct_CC
3678
 
else
3679
 
  CC="$ac_cv_prog_CC"
3680
 
fi
3681
 
 
3682
 
fi
3683
 
if test -z "$CC"; then
3684
 
  # Extract the first word of "cc", so it can be a program name with args.
3685
 
set dummy cc; ac_word=$2
3686
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
3687
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3688
 
if test "${ac_cv_prog_CC+set}" = set; then
3689
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3690
 
else
3691
 
  if test -n "$CC"; then
3692
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
3693
 
else
3694
 
  ac_prog_rejected=no
3695
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3696
 
for as_dir in $PATH
3697
 
do
3698
 
  IFS=$as_save_IFS
3699
 
  test -z "$as_dir" && as_dir=.
3700
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3701
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3702
 
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3703
 
       ac_prog_rejected=yes
3704
 
       continue
3705
 
     fi
3706
 
    ac_cv_prog_CC="cc"
3707
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3708
 
    break 2
3709
 
  fi
3710
 
done
3711
 
done
3712
 
 
3713
 
if test $ac_prog_rejected = yes; then
3714
 
  # We found a bogon in the path, so make sure we never use it.
3715
 
  set dummy $ac_cv_prog_CC
3716
 
  shift
3717
 
  if test $@%:@ != 0; then
3718
 
    # We chose a different compiler from the bogus one.
3719
 
    # However, it has the same basename, so the bogon will be chosen
3720
 
    # first if we set CC to just the basename; use the full file name.
3721
 
    shift
3722
 
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3723
 
  fi
3724
 
fi
3725
 
fi
3726
 
fi
3727
 
CC=$ac_cv_prog_CC
3728
 
if test -n "$CC"; then
3729
 
  echo "$as_me:$LINENO: result: $CC" >&5
3730
 
echo "${ECHO_T}$CC" >&6
3731
 
else
3732
 
  echo "$as_me:$LINENO: result: no" >&5
3733
 
echo "${ECHO_T}no" >&6
3734
 
fi
3735
 
 
3736
 
fi
3737
 
if test -z "$CC"; then
3738
 
  if test -n "$ac_tool_prefix"; then
3739
 
  for ac_prog in cl
3740
 
  do
3741
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3742
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3743
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
3744
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3745
 
if test "${ac_cv_prog_CC+set}" = set; then
3746
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3747
 
else
3748
 
  if test -n "$CC"; then
3749
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
3750
 
else
3751
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3752
 
for as_dir in $PATH
3753
 
do
3754
 
  IFS=$as_save_IFS
3755
 
  test -z "$as_dir" && as_dir=.
3756
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3757
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3758
 
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3759
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3760
 
    break 2
3761
 
  fi
3762
 
done
3763
 
done
3764
 
 
3765
 
fi
3766
 
fi
3767
 
CC=$ac_cv_prog_CC
3768
 
if test -n "$CC"; then
3769
 
  echo "$as_me:$LINENO: result: $CC" >&5
3770
 
echo "${ECHO_T}$CC" >&6
3771
 
else
3772
 
  echo "$as_me:$LINENO: result: no" >&5
3773
 
echo "${ECHO_T}no" >&6
3774
 
fi
3775
 
 
3776
 
    test -n "$CC" && break
3777
 
  done
3778
 
fi
3779
 
if test -z "$CC"; then
3780
 
  ac_ct_CC=$CC
3781
 
  for ac_prog in cl
3782
 
do
3783
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3784
 
set dummy $ac_prog; ac_word=$2
3785
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
3786
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3787
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3788
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3789
 
else
3790
 
  if test -n "$ac_ct_CC"; then
3791
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3792
 
else
3793
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3794
 
for as_dir in $PATH
3795
 
do
3796
 
  IFS=$as_save_IFS
3797
 
  test -z "$as_dir" && as_dir=.
3798
 
  for ac_exec_ext in '' $ac_executable_extensions; do
3799
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3800
 
    ac_cv_prog_ac_ct_CC="$ac_prog"
3801
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3802
 
    break 2
3803
 
  fi
3804
 
done
3805
 
done
3806
 
 
3807
 
fi
3808
 
fi
3809
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3810
 
if test -n "$ac_ct_CC"; then
3811
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3812
 
echo "${ECHO_T}$ac_ct_CC" >&6
3813
 
else
3814
 
  echo "$as_me:$LINENO: result: no" >&5
3815
 
echo "${ECHO_T}no" >&6
3816
 
fi
3817
 
 
3818
 
  test -n "$ac_ct_CC" && break
3819
 
done
3820
 
 
3821
 
  CC=$ac_ct_CC
3822
 
fi
3823
 
 
3824
 
fi
3825
 
 
3826
 
 
3827
 
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3828
 
See \`config.log' for more details." >&5
3829
 
echo "$as_me: error: no acceptable C compiler found in \$PATH
3830
 
See \`config.log' for more details." >&2;}
3831
 
   { (exit 1); exit 1; }; }
3832
 
 
3833
 
# Provide some information about the compiler.
3834
 
echo "$as_me:$LINENO:" \
3835
 
     "checking for C compiler version" >&5
3836
 
ac_compiler=`set X $ac_compile; echo $2`
3837
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3838
 
  (eval $ac_compiler --version </dev/null >&5) 2>&5
3839
 
  ac_status=$?
3840
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841
 
  (exit $ac_status); }
3842
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3843
 
  (eval $ac_compiler -v </dev/null >&5) 2>&5
3844
 
  ac_status=$?
3845
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846
 
  (exit $ac_status); }
3847
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3848
 
  (eval $ac_compiler -V </dev/null >&5) 2>&5
3849
 
  ac_status=$?
3850
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851
 
  (exit $ac_status); }
3852
 
 
3853
 
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3854
 
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3855
 
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3856
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3857
 
else
3858
 
  cat >conftest.$ac_ext <<_ACEOF
3859
 
/* confdefs.h.  */
3860
 
_ACEOF
3861
 
cat confdefs.h >>conftest.$ac_ext
3862
 
cat >>conftest.$ac_ext <<_ACEOF
3863
 
/* end confdefs.h.  */
3864
 
 
3865
 
int
3866
 
main ()
3867
 
{
3868
 
#ifndef __GNUC__
3869
 
       choke me
3870
 
#endif
3871
 
 
3872
 
  ;
3873
 
  return 0;
3874
 
}
3875
 
_ACEOF
3876
 
rm -f conftest.$ac_objext
3877
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3878
 
  (eval $ac_compile) 2>conftest.er1
3879
 
  ac_status=$?
3880
 
  grep -v '^ *+' conftest.er1 >conftest.err
3881
 
  rm -f conftest.er1
3882
 
  cat conftest.err >&5
3883
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884
 
  (exit $ac_status); } &&
3885
 
         { ac_try='test -z "$ac_c_werror_flag"
3886
 
                         || test ! -s conftest.err'
3887
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3888
 
  (eval $ac_try) 2>&5
3889
 
  ac_status=$?
3890
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891
 
  (exit $ac_status); }; } &&
3892
 
         { ac_try='test -s conftest.$ac_objext'
3893
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3894
 
  (eval $ac_try) 2>&5
3895
 
  ac_status=$?
3896
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897
 
  (exit $ac_status); }; }; then
3898
 
  ac_compiler_gnu=yes
3899
 
else
3900
 
  echo "$as_me: failed program was:" >&5
3901
 
sed 's/^/| /' conftest.$ac_ext >&5
3902
 
 
3903
 
ac_compiler_gnu=no
3904
 
fi
3905
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3906
 
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3907
 
 
3908
 
fi
3909
 
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3910
 
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3911
 
GCC=`test $ac_compiler_gnu = yes && echo yes`
3912
 
ac_test_CFLAGS=${CFLAGS+set}
3913
 
ac_save_CFLAGS=$CFLAGS
3914
 
CFLAGS="-g"
3915
 
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3916
 
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3917
 
if test "${ac_cv_prog_cc_g+set}" = set; then
3918
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3919
 
else
3920
 
  cat >conftest.$ac_ext <<_ACEOF
3921
 
/* confdefs.h.  */
3922
 
_ACEOF
3923
 
cat confdefs.h >>conftest.$ac_ext
3924
 
cat >>conftest.$ac_ext <<_ACEOF
3925
 
/* end confdefs.h.  */
3926
 
 
3927
 
int
3928
 
main ()
3929
 
{
3930
 
 
3931
 
  ;
3932
 
  return 0;
3933
 
}
3934
 
_ACEOF
3935
 
rm -f conftest.$ac_objext
3936
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3937
 
  (eval $ac_compile) 2>conftest.er1
3938
 
  ac_status=$?
3939
 
  grep -v '^ *+' conftest.er1 >conftest.err
3940
 
  rm -f conftest.er1
3941
 
  cat conftest.err >&5
3942
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943
 
  (exit $ac_status); } &&
3944
 
         { ac_try='test -z "$ac_c_werror_flag"
3945
 
                         || test ! -s conftest.err'
3946
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3947
 
  (eval $ac_try) 2>&5
3948
 
  ac_status=$?
3949
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950
 
  (exit $ac_status); }; } &&
3951
 
         { ac_try='test -s conftest.$ac_objext'
3952
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3953
 
  (eval $ac_try) 2>&5
3954
 
  ac_status=$?
3955
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956
 
  (exit $ac_status); }; }; then
3957
 
  ac_cv_prog_cc_g=yes
3958
 
else
3959
 
  echo "$as_me: failed program was:" >&5
3960
 
sed 's/^/| /' conftest.$ac_ext >&5
3961
 
 
3962
 
ac_cv_prog_cc_g=no
3963
 
fi
3964
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3965
 
fi
3966
 
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3967
 
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3968
 
if test "$ac_test_CFLAGS" = set; then
3969
 
  CFLAGS=$ac_save_CFLAGS
3970
 
elif test $ac_cv_prog_cc_g = yes; then
3971
 
  if test "$GCC" = yes; then
3972
 
    CFLAGS="-g -O2"
3973
 
  else
3974
 
    CFLAGS="-g"
3975
 
  fi
3976
 
else
3977
 
  if test "$GCC" = yes; then
3978
 
    CFLAGS="-O2"
3979
 
  else
3980
 
    CFLAGS=
3981
 
  fi
3982
 
fi
3983
 
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3984
 
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3985
 
if test "${ac_cv_prog_cc_stdc+set}" = set; then
3986
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3987
 
else
3988
 
  ac_cv_prog_cc_stdc=no
3989
 
ac_save_CC=$CC
3990
 
cat >conftest.$ac_ext <<_ACEOF
3991
 
/* confdefs.h.  */
3992
 
_ACEOF
3993
 
cat confdefs.h >>conftest.$ac_ext
3994
 
cat >>conftest.$ac_ext <<_ACEOF
3995
 
/* end confdefs.h.  */
3996
 
#include <stdarg.h>
3997
 
#include <stdio.h>
3998
 
#include <sys/types.h>
3999
 
#include <sys/stat.h>
4000
 
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4001
 
struct buf { int x; };
4002
 
FILE * (*rcsopen) (struct buf *, struct stat *, int);
4003
 
static char *e (p, i)
4004
 
     char **p;
4005
 
     int i;
4006
 
{
4007
 
  return p[i];
4008
 
}
4009
 
static char *f (char * (*g) (char **, int), char **p, ...)
4010
 
{
4011
 
  char *s;
4012
 
  va_list v;
4013
 
  va_start (v,p);
4014
 
  s = g (p, va_arg (v,int));
4015
 
  va_end (v);
4016
 
  return s;
4017
 
}
4018
 
 
4019
 
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4020
 
   function prototypes and stuff, but not '\xHH' hex character constants.
4021
 
   These don't provoke an error unfortunately, instead are silently treated
4022
 
   as 'x'.  The following induces an error, until -std1 is added to get
4023
 
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4024
 
   array size at least.  It's necessary to write '\x00'==0 to get something
4025
 
   that's true only with -std1.  */
4026
 
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4027
 
 
4028
 
int test (int i, double x);
4029
 
struct s1 {int (*f) (int a);};
4030
 
struct s2 {int (*f) (double a);};
4031
 
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4032
 
int argc;
4033
 
char **argv;
4034
 
int
4035
 
main ()
4036
 
{
4037
 
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4038
 
  ;
4039
 
  return 0;
4040
 
}
4041
 
_ACEOF
4042
 
# Don't try gcc -ansi; that turns off useful extensions and
4043
 
# breaks some systems' header files.
4044
 
# AIX                   -qlanglvl=ansi
4045
 
# Ultrix and OSF/1      -std1
4046
 
# HP-UX 10.20 and later -Ae
4047
 
# HP-UX older versions  -Aa -D_HPUX_SOURCE
4048
 
# SVR4                  -Xc -D__EXTENSIONS__
4049
 
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4050
 
do
4051
 
  CC="$ac_save_CC $ac_arg"
4052
 
  rm -f conftest.$ac_objext
4053
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4054
 
  (eval $ac_compile) 2>conftest.er1
4055
 
  ac_status=$?
4056
 
  grep -v '^ *+' conftest.er1 >conftest.err
4057
 
  rm -f conftest.er1
4058
 
  cat conftest.err >&5
4059
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060
 
  (exit $ac_status); } &&
4061
 
         { ac_try='test -z "$ac_c_werror_flag"
4062
 
                         || test ! -s conftest.err'
4063
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4064
 
  (eval $ac_try) 2>&5
4065
 
  ac_status=$?
4066
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067
 
  (exit $ac_status); }; } &&
4068
 
         { ac_try='test -s conftest.$ac_objext'
4069
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4070
 
  (eval $ac_try) 2>&5
4071
 
  ac_status=$?
4072
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073
 
  (exit $ac_status); }; }; then
4074
 
  ac_cv_prog_cc_stdc=$ac_arg
4075
 
break
4076
 
else
4077
 
  echo "$as_me: failed program was:" >&5
4078
 
sed 's/^/| /' conftest.$ac_ext >&5
4079
 
 
4080
 
fi
4081
 
rm -f conftest.err conftest.$ac_objext 
4082
 
done
4083
 
rm -f conftest.$ac_ext conftest.$ac_objext
4084
 
CC=$ac_save_CC
4085
 
 
4086
 
fi
4087
 
 
4088
 
case "x$ac_cv_prog_cc_stdc" in
4089
 
  x|xno)
4090
 
    echo "$as_me:$LINENO: result: none needed" >&5
4091
 
echo "${ECHO_T}none needed" >&6 ;;
4092
 
  *)
4093
 
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4094
 
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4095
 
    CC="$CC $ac_cv_prog_cc_stdc" ;;
4096
 
esac
4097
 
 
4098
 
# Some people use a C++ compiler to compile C.  Since we use `exit',
4099
 
# in C++ we need to declare it.  In case someone uses the same compiler
4100
 
# for both compiling C and C++ we need to have the C++ compiler decide
4101
 
# the declaration of exit, since it's the most demanding environment.
4102
 
cat >conftest.$ac_ext <<_ACEOF
4103
 
@%:@ifndef __cplusplus
4104
 
  choke me
4105
 
@%:@endif
4106
 
_ACEOF
4107
 
rm -f conftest.$ac_objext
4108
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4109
 
  (eval $ac_compile) 2>conftest.er1
4110
 
  ac_status=$?
4111
 
  grep -v '^ *+' conftest.er1 >conftest.err
4112
 
  rm -f conftest.er1
4113
 
  cat conftest.err >&5
4114
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115
 
  (exit $ac_status); } &&
4116
 
         { ac_try='test -z "$ac_c_werror_flag"
4117
 
                         || test ! -s conftest.err'
4118
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4119
 
  (eval $ac_try) 2>&5
4120
 
  ac_status=$?
4121
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122
 
  (exit $ac_status); }; } &&
4123
 
         { ac_try='test -s conftest.$ac_objext'
4124
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4125
 
  (eval $ac_try) 2>&5
4126
 
  ac_status=$?
4127
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128
 
  (exit $ac_status); }; }; then
4129
 
  for ac_declaration in \
4130
 
   '' \
4131
 
   'extern "C" void std::exit (int) throw (); using std::exit;' \
4132
 
   'extern "C" void std::exit (int); using std::exit;' \
4133
 
   'extern "C" void exit (int) throw ();' \
4134
 
   'extern "C" void exit (int);' \
4135
 
   'void exit (int);'
4136
 
do
4137
 
  cat >conftest.$ac_ext <<_ACEOF
4138
 
/* confdefs.h.  */
4139
 
_ACEOF
4140
 
cat confdefs.h >>conftest.$ac_ext
4141
 
cat >>conftest.$ac_ext <<_ACEOF
4142
 
/* end confdefs.h.  */
4143
 
$ac_declaration
4144
 
@%:@include <stdlib.h>
4145
 
int
4146
 
main ()
4147
 
{
4148
 
exit (42);
4149
 
  ;
4150
 
  return 0;
4151
 
}
4152
 
_ACEOF
4153
 
rm -f conftest.$ac_objext
4154
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4155
 
  (eval $ac_compile) 2>conftest.er1
4156
 
  ac_status=$?
4157
 
  grep -v '^ *+' conftest.er1 >conftest.err
4158
 
  rm -f conftest.er1
4159
 
  cat conftest.err >&5
4160
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161
 
  (exit $ac_status); } &&
4162
 
         { ac_try='test -z "$ac_c_werror_flag"
4163
 
                         || test ! -s conftest.err'
4164
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4165
 
  (eval $ac_try) 2>&5
4166
 
  ac_status=$?
4167
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168
 
  (exit $ac_status); }; } &&
4169
 
         { ac_try='test -s conftest.$ac_objext'
4170
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4171
 
  (eval $ac_try) 2>&5
4172
 
  ac_status=$?
4173
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174
 
  (exit $ac_status); }; }; then
4175
 
  :
4176
 
else
4177
 
  echo "$as_me: failed program was:" >&5
4178
 
sed 's/^/| /' conftest.$ac_ext >&5
4179
 
 
4180
 
continue
4181
 
fi
4182
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4183
 
  cat >conftest.$ac_ext <<_ACEOF
4184
 
/* confdefs.h.  */
4185
 
_ACEOF
4186
 
cat confdefs.h >>conftest.$ac_ext
4187
 
cat >>conftest.$ac_ext <<_ACEOF
4188
 
/* end confdefs.h.  */
4189
 
$ac_declaration
4190
 
int
4191
 
main ()
4192
 
{
4193
 
exit (42);
4194
 
  ;
4195
 
  return 0;
4196
 
}
4197
 
_ACEOF
4198
 
rm -f conftest.$ac_objext
4199
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4200
 
  (eval $ac_compile) 2>conftest.er1
4201
 
  ac_status=$?
4202
 
  grep -v '^ *+' conftest.er1 >conftest.err
4203
 
  rm -f conftest.er1
4204
 
  cat conftest.err >&5
4205
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206
 
  (exit $ac_status); } &&
4207
 
         { ac_try='test -z "$ac_c_werror_flag"
4208
 
                         || test ! -s conftest.err'
4209
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4210
 
  (eval $ac_try) 2>&5
4211
 
  ac_status=$?
4212
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213
 
  (exit $ac_status); }; } &&
4214
 
         { ac_try='test -s conftest.$ac_objext'
4215
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4216
 
  (eval $ac_try) 2>&5
4217
 
  ac_status=$?
4218
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219
 
  (exit $ac_status); }; }; then
4220
 
  break
4221
 
else
4222
 
  echo "$as_me: failed program was:" >&5
4223
 
sed 's/^/| /' conftest.$ac_ext >&5
4224
 
 
4225
 
fi
4226
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4227
 
done
4228
 
rm -f conftest*
4229
 
if test -n "$ac_declaration"; then
4230
 
  echo '#ifdef __cplusplus' >>confdefs.h
4231
 
  echo $ac_declaration      >>confdefs.h
4232
 
  echo '#endif'             >>confdefs.h
4233
 
fi
4234
 
 
4235
 
else
4236
 
  echo "$as_me: failed program was:" >&5
4237
 
sed 's/^/| /' conftest.$ac_ext >&5
4238
 
 
4239
 
fi
4240
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4241
 
ac_ext=c
4242
 
ac_cpp='$CPP $CPPFLAGS'
4243
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4244
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4245
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4246
 
 
4247
 
depcc="$CC"   am_compiler_list=
4248
 
 
4249
 
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4250
 
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4251
 
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4252
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4253
 
else
4254
 
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4255
 
  # We make a subdir and do the tests there.  Otherwise we can end up
4256
 
  # making bogus files that we don't know about and never remove.  For
4257
 
  # instance it was reported that on HP-UX the gcc test will end up
4258
 
  # making a dummy file named `D' -- because `-MD' means `put the output
4259
 
  # in D'.
4260
 
  mkdir conftest.dir
4261
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
4262
 
  # using a relative directory.
4263
 
  cp "$am_depcomp" conftest.dir
4264
 
  cd conftest.dir
4265
 
  # We will build objects and dependencies in a subdirectory because
4266
 
  # it helps to detect inapplicable dependency modes.  For instance
4267
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
4268
 
  # side effect of compilation, but ICC will put the dependencies in
4269
 
  # the current directory while Tru64 will put them in the object
4270
 
  # directory.
4271
 
  mkdir sub
4272
 
 
4273
 
  am_cv_CC_dependencies_compiler_type=none
4274
 
  if test "$am_compiler_list" = ""; then
4275
 
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4276
 
  fi
4277
 
  for depmode in $am_compiler_list; do
4278
 
    # Setup a source with many dependencies, because some compilers
4279
 
    # like to wrap large dependency lists on column 80 (with \), and
4280
 
    # we should not choose a depcomp mode which is confused by this.
4281
 
    #
4282
 
    # We need to recreate these files for each test, as the compiler may
4283
 
    # overwrite some of them when testing with obscure command lines.
4284
 
    # This happens at least with the AIX C compiler.
4285
 
    : > sub/conftest.c
4286
 
    for i in 1 2 3 4 5 6; do
4287
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4288
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4289
 
      # Solaris 8's {/usr,}/bin/sh.
4290
 
      touch sub/conftst$i.h
4291
 
    done
4292
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4293
 
 
4294
 
    case $depmode in
4295
 
    nosideeffect)
4296
 
      # after this tag, mechanisms are not by side-effect, so they'll
4297
 
      # only be used when explicitly requested
4298
 
      if test "x$enable_dependency_tracking" = xyes; then
4299
 
        continue
4300
 
      else
4301
 
        break
4302
 
      fi
4303
 
      ;;
4304
 
    none) break ;;
4305
 
    esac
4306
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4307
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
4308
 
    # handle `-M -o', and we need to detect this.
4309
 
    if depmode=$depmode \
4310
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4311
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4312
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4313
 
         >/dev/null 2>conftest.err &&
4314
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4315
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4316
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4317
 
      # icc doesn't choke on unknown options, it will just issue warnings
4318
 
      # or remarks (even with -Werror).  So we grep stderr for any message
4319
 
      # that says an option was ignored or not supported.
4320
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
4321
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
4322
 
      # The diagnosis changed in icc 8.0:
4323
 
      #   icc: Command line remark: option '-MP' not supported
4324
 
      if (grep 'ignoring option' conftest.err ||
4325
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4326
 
        am_cv_CC_dependencies_compiler_type=$depmode
4327
 
        break
4328
 
      fi
4329
 
    fi
4330
 
  done
4331
 
 
4332
 
  cd ..
4333
 
  rm -rf conftest.dir
4334
 
else
4335
 
  am_cv_CC_dependencies_compiler_type=none
4336
 
fi
4337
 
 
4338
 
fi
4339
 
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4340
 
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4341
 
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4342
 
 
4343
 
 
4344
 
 
4345
 
if 
4346
 
  test "x$enable_dependency_tracking" != xno \
4347
 
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4348
 
  am__fastdepCC_TRUE=
4349
 
  am__fastdepCC_FALSE='#'
4350
 
else
4351
 
  am__fastdepCC_TRUE='#'
4352
 
  am__fastdepCC_FALSE=
4353
 
fi
4354
 
 
4355
 
 
4356
 
# Check whether --enable-shared or --disable-shared was given.
4357
 
if test "${enable_shared+set}" = set; then
4358
 
  enableval="$enable_shared"
4359
 
  p=${PACKAGE-default}
4360
 
    case $enableval in
4361
 
    yes) enable_shared=yes ;;
4362
 
    no) enable_shared=no ;;
4363
 
    *)
4364
 
      enable_shared=no
4365
 
      # Look at the argument we got.  We use all the common list separators.
4366
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4367
 
      for pkg in $enableval; do
4368
 
        IFS="$lt_save_ifs"
4369
 
        if test "X$pkg" = "X$p"; then
4370
 
          enable_shared=yes
4371
 
        fi
4372
 
      done
4373
 
      IFS="$lt_save_ifs"
4374
 
      ;;
4375
 
    esac
4376
 
else
4377
 
  enable_shared=yes
4378
 
fi; 
4379
 
 
4380
 
# Check whether --enable-fast-install or --disable-fast-install was given.
4381
 
if test "${enable_fast_install+set}" = set; then
4382
 
  enableval="$enable_fast_install"
4383
 
  p=${PACKAGE-default}
4384
 
    case $enableval in
4385
 
    yes) enable_fast_install=yes ;;
4386
 
    no) enable_fast_install=no ;;
4387
 
    *)
4388
 
      enable_fast_install=no
4389
 
      # Look at the argument we got.  We use all the common list separators.
4390
 
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4391
 
      for pkg in $enableval; do
4392
 
        IFS="$lt_save_ifs"
4393
 
        if test "X$pkg" = "X$p"; then
4394
 
          enable_fast_install=yes
4395
 
        fi
4396
 
      done
4397
 
      IFS="$lt_save_ifs"
4398
 
      ;;
4399
 
    esac
4400
 
else
4401
 
  enable_fast_install=yes
4402
 
fi; 
4403
 
 
4404
 
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4405
 
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4406
 
if test "${lt_cv_path_SED+set}" = set; then
4407
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4408
 
else
4409
 
  # Loop through the user's path and test for sed and gsed.
4410
 
# Then use that list of sed's as ones to test for truncation.
4411
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412
 
for as_dir in $PATH
4413
 
do
4414
 
  IFS=$as_save_IFS
4415
 
  test -z "$as_dir" && as_dir=.
4416
 
  for lt_ac_prog in sed gsed; do
4417
 
    for ac_exec_ext in '' $ac_executable_extensions; do
4418
 
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4419
 
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4420
 
      fi
4421
 
    done
4422
 
  done
4423
 
done
4424
 
lt_ac_max=0
4425
 
lt_ac_count=0
4426
 
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4427
 
# along with /bin/sed that truncates output.
4428
 
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4429
 
  test ! -f $lt_ac_sed && continue
4430
 
  cat /dev/null > conftest.in
4431
 
  lt_ac_count=0
4432
 
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4433
 
  # Check for GNU sed and select it if it is found.
4434
 
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4435
 
    lt_cv_path_SED=$lt_ac_sed
4436
 
    break
4437
 
  fi
4438
 
  while true; do
4439
 
    cat conftest.in conftest.in >conftest.tmp
4440
 
    mv conftest.tmp conftest.in
4441
 
    cp conftest.in conftest.nl
4442
 
    echo >>conftest.nl
4443
 
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4444
 
    cmp -s conftest.out conftest.nl || break
4445
 
    # 10000 chars as input seems more than enough
4446
 
    test $lt_ac_count -gt 10 && break
4447
 
    lt_ac_count=`expr $lt_ac_count + 1`
4448
 
    if test $lt_ac_count -gt $lt_ac_max; then
4449
 
      lt_ac_max=$lt_ac_count
4450
 
      lt_cv_path_SED=$lt_ac_sed
4451
 
    fi
4452
 
  done
4453
 
done
4454
 
 
4455
 
fi
4456
 
 
4457
 
SED=$lt_cv_path_SED
4458
 
echo "$as_me:$LINENO: result: $SED" >&5
4459
 
echo "${ECHO_T}$SED" >&6
4460
 
 
4461
 
echo "$as_me:$LINENO: checking for egrep" >&5
4462
 
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4463
 
if test "${ac_cv_prog_egrep+set}" = set; then
4464
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4465
 
else
4466
 
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4467
 
    then ac_cv_prog_egrep='grep -E'
4468
 
    else ac_cv_prog_egrep='egrep'
4469
 
    fi
4470
 
fi
4471
 
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4472
 
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4473
 
 EGREP=$ac_cv_prog_egrep
4474
 
 
4475
 
 
4476
 
 
4477
 
# Check whether --with-gnu-ld or --without-gnu-ld was given.
4478
 
if test "${with_gnu_ld+set}" = set; then
4479
 
  withval="$with_gnu_ld"
4480
 
  test "$withval" = no || with_gnu_ld=yes
4481
 
else
4482
 
  with_gnu_ld=no
4483
 
fi; 
4484
 
ac_prog=ld
4485
 
if test "$GCC" = yes; then
4486
 
  # Check if gcc -print-prog-name=ld gives a path.
4487
 
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4488
 
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4489
 
  case $host in
4490
 
  *-*-mingw*)
4491
 
    # gcc leaves a trailing carriage return which upsets mingw
4492
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4493
 
  *)
4494
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4495
 
  esac
4496
 
  case $ac_prog in
4497
 
    # Accept absolute paths.
4498
 
    [\\/]* | ?:[\\/]*)
4499
 
      re_direlt='/[^/][^/]*/\.\./'
4500
 
      # Canonicalize the pathname of ld
4501
 
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4502
 
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4503
 
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4504
 
      done
4505
 
      test -z "$LD" && LD="$ac_prog"
4506
 
      ;;
4507
 
  "")
4508
 
    # If it fails, then pretend we aren't using GCC.
4509
 
    ac_prog=ld
4510
 
    ;;
4511
 
  *)
4512
 
    # If it is relative, then search for the first ld in PATH.
4513
 
    with_gnu_ld=unknown
4514
 
    ;;
4515
 
  esac
4516
 
elif test "$with_gnu_ld" = yes; then
4517
 
  echo "$as_me:$LINENO: checking for GNU ld" >&5
4518
 
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4519
 
else
4520
 
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4521
 
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4522
 
fi
4523
 
if test "${lt_cv_path_LD+set}" = set; then
4524
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4525
 
else
4526
 
  if test -z "$LD"; then
4527
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4528
 
  for ac_dir in $PATH; do
4529
 
    IFS="$lt_save_ifs"
4530
 
    test -z "$ac_dir" && ac_dir=.
4531
 
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4532
 
      lt_cv_path_LD="$ac_dir/$ac_prog"
4533
 
      # Check to see if the program is GNU ld.  I'd rather use --version,
4534
 
      # but apparently some GNU ld's only accept -v.
4535
 
      # Break only if it was the GNU/non-GNU ld that we prefer.
4536
 
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4537
 
      *GNU* | *'with BFD'*)
4538
 
        test "$with_gnu_ld" != no && break
4539
 
        ;;
4540
 
      *)
4541
 
        test "$with_gnu_ld" != yes && break
4542
 
        ;;
4543
 
      esac
4544
 
    fi
4545
 
  done
4546
 
  IFS="$lt_save_ifs"
4547
 
else
4548
 
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4549
 
fi
4550
 
fi
4551
 
 
4552
 
LD="$lt_cv_path_LD"
4553
 
if test -n "$LD"; then
4554
 
  echo "$as_me:$LINENO: result: $LD" >&5
4555
 
echo "${ECHO_T}$LD" >&6
4556
 
else
4557
 
  echo "$as_me:$LINENO: result: no" >&5
4558
 
echo "${ECHO_T}no" >&6
4559
 
fi
4560
 
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4561
 
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4562
 
   { (exit 1); exit 1; }; }
4563
 
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4564
 
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4565
 
if test "${lt_cv_prog_gnu_ld+set}" = set; then
4566
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4567
 
else
4568
 
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4569
 
case `$LD -v 2>&1 </dev/null` in
4570
 
*GNU* | *'with BFD'*)
4571
 
  lt_cv_prog_gnu_ld=yes
4572
 
  ;;
4573
 
*)
4574
 
  lt_cv_prog_gnu_ld=no
4575
 
  ;;
4576
 
esac
4577
 
fi
4578
 
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4579
 
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4580
 
with_gnu_ld=$lt_cv_prog_gnu_ld
4581
 
 
4582
 
 
4583
 
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4584
 
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4585
 
if test "${lt_cv_ld_reload_flag+set}" = set; then
4586
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4587
 
else
4588
 
  lt_cv_ld_reload_flag='-r'
4589
 
fi
4590
 
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4591
 
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4592
 
reload_flag=$lt_cv_ld_reload_flag
4593
 
case $reload_flag in
4594
 
"" | " "*) ;;
4595
 
*) reload_flag=" $reload_flag" ;;
4596
 
esac
4597
 
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4598
 
case $host_os in
4599
 
  darwin*)
4600
 
    if test "$GCC" = yes; then
4601
 
      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
4602
 
    else
4603
 
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4604
 
    fi
4605
 
    ;;
4606
 
esac
4607
 
 
4608
 
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4609
 
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4610
 
if test "${lt_cv_path_NM+set}" = set; then
4611
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4612
 
else
4613
 
  if test -n "$NM"; then
4614
 
  # Let the user override the test.
4615
 
  lt_cv_path_NM="$NM"
4616
 
else
4617
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4618
 
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4619
 
    IFS="$lt_save_ifs"
4620
 
    test -z "$ac_dir" && ac_dir=.
4621
 
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4622
 
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4623
 
      # Check to see if the nm accepts a BSD-compat flag.
4624
 
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4625
 
      #   nm: unknown option "B" ignored
4626
 
      # Tru64's nm complains that /dev/null is an invalid object file
4627
 
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4628
 
      */dev/null* | *'Invalid file or object type'*)
4629
 
        lt_cv_path_NM="$tmp_nm -B"
4630
 
        break
4631
 
        ;;
4632
 
      *)
4633
 
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4634
 
        */dev/null*)
4635
 
          lt_cv_path_NM="$tmp_nm -p"
4636
 
          break
4637
 
          ;;
4638
 
        *)
4639
 
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4640
 
          continue # so that we can try to find one that supports BSD flags
4641
 
          ;;
4642
 
        esac
4643
 
      esac
4644
 
    fi
4645
 
  done
4646
 
  IFS="$lt_save_ifs"
4647
 
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4648
 
fi
4649
 
fi
4650
 
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4651
 
echo "${ECHO_T}$lt_cv_path_NM" >&6
4652
 
NM="$lt_cv_path_NM"
4653
 
 
4654
 
echo "$as_me:$LINENO: checking whether ln -s works" >&5
4655
 
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4656
 
LN_S=$as_ln_s
4657
 
if test "$LN_S" = "ln -s"; then
4658
 
  echo "$as_me:$LINENO: result: yes" >&5
4659
 
echo "${ECHO_T}yes" >&6
4660
 
else
4661
 
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4662
 
echo "${ECHO_T}no, using $LN_S" >&6
4663
 
fi
4664
 
 
4665
 
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4666
 
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4667
 
if test "${lt_cv_deplibs_check_method+set}" = set; then
4668
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4669
 
else
4670
 
  lt_cv_file_magic_cmd='$MAGIC_CMD'
4671
 
lt_cv_file_magic_test_file=
4672
 
lt_cv_deplibs_check_method='unknown'
4673
 
# Need to set the preceding variable on all platforms that support
4674
 
# interlibrary dependencies.
4675
 
# 'none' -- dependencies not supported.
4676
 
# `unknown' -- same as none, but documents that we really don't know.
4677
 
# 'pass_all' -- all dependencies passed with no checks.
4678
 
# 'test_compile' -- check by making test program.
4679
 
# 'file_magic [[regex]]' -- check by looking for files in library path
4680
 
# which responds to the $file_magic_cmd with a given extended regex.
4681
 
# If you have `file' or equivalent on your system and you're not sure
4682
 
# whether `pass_all' will *always* work, you probably want this one.
4683
 
 
4684
 
case $host_os in
4685
 
aix4* | aix5*)
4686
 
  lt_cv_deplibs_check_method=pass_all
4687
 
  ;;
4688
 
 
4689
 
beos*)
4690
 
  lt_cv_deplibs_check_method=pass_all
4691
 
  ;;
4692
 
 
4693
 
bsdi[45]*)
4694
 
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4695
 
  lt_cv_file_magic_cmd='/usr/bin/file -L'
4696
 
  lt_cv_file_magic_test_file=/shlib/libc.so
4697
 
  ;;
4698
 
 
4699
 
cygwin*)
4700
 
  # func_win32_libid is a shell function defined in ltmain.sh
4701
 
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4702
 
  lt_cv_file_magic_cmd='func_win32_libid'
4703
 
  ;;
4704
 
 
4705
 
mingw* | pw32*)
4706
 
  # Base MSYS/MinGW do not provide the 'file' command needed by
4707
 
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4708
 
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4709
 
  lt_cv_file_magic_cmd='$OBJDUMP -f'
4710
 
  ;;
4711
 
 
4712
 
darwin* | rhapsody*)
4713
 
  lt_cv_deplibs_check_method=pass_all
4714
 
  ;;
4715
 
 
4716
 
freebsd* | kfreebsd*-gnu | dragonfly*)
4717
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4718
 
    case $host_cpu in
4719
 
    i*86 )
4720
 
      # Not sure whether the presence of OpenBSD here was a mistake.
4721
 
      # Let's accept both of them until this is cleared up.
4722
 
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4723
 
      lt_cv_file_magic_cmd=/usr/bin/file
4724
 
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4725
 
      ;;
4726
 
    esac
4727
 
  else
4728
 
    lt_cv_deplibs_check_method=pass_all
4729
 
  fi
4730
 
  ;;
4731
 
 
4732
 
gnu*)
4733
 
  lt_cv_deplibs_check_method=pass_all
4734
 
  ;;
4735
 
 
4736
 
hpux10.20* | hpux11*)
4737
 
  lt_cv_file_magic_cmd=/usr/bin/file
4738
 
  case "$host_cpu" in
4739
 
  ia64*)
4740
 
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4741
 
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4742
 
    ;;
4743
 
  hppa*64*)
4744
 
    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]'
4745
 
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4746
 
    ;;
4747
 
  *)
4748
 
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4749
 
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4750
 
    ;;
4751
 
  esac
4752
 
  ;;
4753
 
 
4754
 
irix5* | irix6* | nonstopux*)
4755
 
  case $LD in
4756
 
  *-32|*"-32 ") libmagic=32-bit;;
4757
 
  *-n32|*"-n32 ") libmagic=N32;;
4758
 
  *-64|*"-64 ") libmagic=64-bit;;
4759
 
  *) libmagic=never-match;;
4760
 
  esac
4761
 
  lt_cv_deplibs_check_method=pass_all
4762
 
  ;;
4763
 
 
4764
 
# This must be Linux ELF.
4765
 
linux*)
4766
 
  lt_cv_deplibs_check_method=pass_all
4767
 
  ;;
4768
 
 
4769
 
netbsd*)
4770
 
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4771
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4772
 
  else
4773
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4774
 
  fi
4775
 
  ;;
4776
 
 
4777
 
newos6*)
4778
 
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4779
 
  lt_cv_file_magic_cmd=/usr/bin/file
4780
 
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4781
 
  ;;
4782
 
 
4783
 
nto-qnx*)
4784
 
  lt_cv_deplibs_check_method=unknown
4785
 
  ;;
4786
 
 
4787
 
openbsd*)
4788
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4789
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4790
 
  else
4791
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4792
 
  fi
4793
 
  ;;
4794
 
 
4795
 
osf3* | osf4* | osf5*)
4796
 
  lt_cv_deplibs_check_method=pass_all
4797
 
  ;;
4798
 
 
4799
 
sco3.2v5*)
4800
 
  lt_cv_deplibs_check_method=pass_all
4801
 
  ;;
4802
 
 
4803
 
solaris*)
4804
 
  lt_cv_deplibs_check_method=pass_all
4805
 
  ;;
4806
 
 
4807
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4808
 
  case $host_vendor in
4809
 
  motorola)
4810
 
    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]'
4811
 
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4812
 
    ;;
4813
 
  ncr)
4814
 
    lt_cv_deplibs_check_method=pass_all
4815
 
    ;;
4816
 
  sequent)
4817
 
    lt_cv_file_magic_cmd='/bin/file'
4818
 
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4819
 
    ;;
4820
 
  sni)
4821
 
    lt_cv_file_magic_cmd='/bin/file'
4822
 
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4823
 
    lt_cv_file_magic_test_file=/lib/libc.so
4824
 
    ;;
4825
 
  siemens)
4826
 
    lt_cv_deplibs_check_method=pass_all
4827
 
    ;;
4828
 
  esac
4829
 
  ;;
4830
 
 
4831
 
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4832
 
  lt_cv_deplibs_check_method=pass_all
4833
 
  ;;
4834
 
esac
4835
 
 
4836
 
fi
4837
 
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4838
 
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4839
 
file_magic_cmd=$lt_cv_file_magic_cmd
4840
 
deplibs_check_method=$lt_cv_deplibs_check_method
4841
 
test -z "$deplibs_check_method" && deplibs_check_method=unknown
4842
 
 
4843
 
 
4844
 
 
4845
 
 
4846
 
# If no C compiler was specified, use CC.
4847
 
LTCC=${LTCC-"$CC"}
4848
 
 
4849
 
# Allow CC to be a program name with arguments.
4850
 
compiler=$CC
4851
 
 
4852
 
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4853
 
if test "${enable_libtool_lock+set}" = set; then
4854
 
  enableval="$enable_libtool_lock"
4855
 
  
4856
 
fi; 
4857
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4858
 
 
4859
 
# Some flags need to be propagated to the compiler or linker for good
4860
 
# libtool support.
4861
 
case $host in
4862
 
ia64-*-hpux*)
4863
 
  # Find out which ABI we are using.
4864
 
  echo 'int i;' > conftest.$ac_ext
4865
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4866
 
  (eval $ac_compile) 2>&5
4867
 
  ac_status=$?
4868
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869
 
  (exit $ac_status); }; then
4870
 
    case `/usr/bin/file conftest.$ac_objext` in
4871
 
    *ELF-32*)
4872
 
      HPUX_IA64_MODE="32"
4873
 
      ;;
4874
 
    *ELF-64*)
4875
 
      HPUX_IA64_MODE="64"
4876
 
      ;;
4877
 
    esac
4878
 
  fi
4879
 
  rm -rf conftest*
4880
 
  ;;
4881
 
*-*-irix6*)
4882
 
  # Find out which ABI we are using.
4883
 
  echo '#line __oline__ "configure"' > conftest.$ac_ext
4884
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4885
 
  (eval $ac_compile) 2>&5
4886
 
  ac_status=$?
4887
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888
 
  (exit $ac_status); }; then
4889
 
   if test "$lt_cv_prog_gnu_ld" = yes; then
4890
 
    case `/usr/bin/file conftest.$ac_objext` in
4891
 
    *32-bit*)
4892
 
      LD="${LD-ld} -melf32bsmip"
4893
 
      ;;
4894
 
    *N32*)
4895
 
      LD="${LD-ld} -melf32bmipn32"
4896
 
      ;;
4897
 
    *64-bit*)
4898
 
      LD="${LD-ld} -melf64bmip"
4899
 
      ;;
4900
 
    esac
4901
 
   else
4902
 
    case `/usr/bin/file conftest.$ac_objext` in
4903
 
    *32-bit*)
4904
 
      LD="${LD-ld} -32"
4905
 
      ;;
4906
 
    *N32*)
4907
 
      LD="${LD-ld} -n32"
4908
 
      ;;
4909
 
    *64-bit*)
4910
 
      LD="${LD-ld} -64"
4911
 
      ;;
4912
 
    esac
4913
 
   fi
4914
 
  fi
4915
 
  rm -rf conftest*
4916
 
  ;;
4917
 
 
4918
 
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4919
 
  # Find out which ABI we are using.
4920
 
  echo 'int i;' > conftest.$ac_ext
4921
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4922
 
  (eval $ac_compile) 2>&5
4923
 
  ac_status=$?
4924
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925
 
  (exit $ac_status); }; then
4926
 
    case "`/usr/bin/file conftest.o`" in
4927
 
    *32-bit*)
4928
 
      case $host in
4929
 
        x86_64-*linux*)
4930
 
          LD="${LD-ld} -m elf_i386"
4931
 
          ;;
4932
 
        ppc64-*linux*|powerpc64-*linux*)
4933
 
          LD="${LD-ld} -m elf32ppclinux"
4934
 
          ;;
4935
 
        s390x-*linux*)
4936
 
          LD="${LD-ld} -m elf_s390"
4937
 
          ;;
4938
 
        sparc64-*linux*)
4939
 
          LD="${LD-ld} -m elf32_sparc"
4940
 
          ;;
4941
 
      esac
4942
 
      ;;
4943
 
    *64-bit*)
4944
 
      case $host in
4945
 
        x86_64-*linux*)
4946
 
          LD="${LD-ld} -m elf_x86_64"
4947
 
          ;;
4948
 
        ppc*-*linux*|powerpc*-*linux*)
4949
 
          LD="${LD-ld} -m elf64ppc"
4950
 
          ;;
4951
 
        s390*-*linux*)
4952
 
          LD="${LD-ld} -m elf64_s390"
4953
 
          ;;
4954
 
        sparc*-*linux*)
4955
 
          LD="${LD-ld} -m elf64_sparc"
4956
 
          ;;
4957
 
      esac
4958
 
      ;;
4959
 
    esac
4960
 
  fi
4961
 
  rm -rf conftest*
4962
 
  ;;
4963
 
 
4964
 
*-*-sco3.2v5*)
4965
 
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4966
 
  SAVE_CFLAGS="$CFLAGS"
4967
 
  CFLAGS="$CFLAGS -belf"
4968
 
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4969
 
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4970
 
if test "${lt_cv_cc_needs_belf+set}" = set; then
4971
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4972
 
else
4973
 
  ac_ext=c
4974
 
ac_cpp='$CPP $CPPFLAGS'
4975
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4976
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4977
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4978
 
 
4979
 
     cat >conftest.$ac_ext <<_ACEOF
4980
 
/* confdefs.h.  */
4981
 
_ACEOF
4982
 
cat confdefs.h >>conftest.$ac_ext
4983
 
cat >>conftest.$ac_ext <<_ACEOF
4984
 
/* end confdefs.h.  */
4985
 
 
4986
 
int
4987
 
main ()
4988
 
{
4989
 
 
4990
 
  ;
4991
 
  return 0;
4992
 
}
4993
 
_ACEOF
4994
 
rm -f conftest.$ac_objext conftest$ac_exeext
4995
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4996
 
  (eval $ac_link) 2>conftest.er1
4997
 
  ac_status=$?
4998
 
  grep -v '^ *+' conftest.er1 >conftest.err
4999
 
  rm -f conftest.er1
5000
 
  cat conftest.err >&5
5001
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002
 
  (exit $ac_status); } &&
5003
 
         { ac_try='test -z "$ac_c_werror_flag"
5004
 
                         || test ! -s conftest.err'
5005
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5006
 
  (eval $ac_try) 2>&5
5007
 
  ac_status=$?
5008
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009
 
  (exit $ac_status); }; } &&
5010
 
         { ac_try='test -s conftest$ac_exeext'
5011
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5012
 
  (eval $ac_try) 2>&5
5013
 
  ac_status=$?
5014
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015
 
  (exit $ac_status); }; }; then
5016
 
  lt_cv_cc_needs_belf=yes
5017
 
else
5018
 
  echo "$as_me: failed program was:" >&5
5019
 
sed 's/^/| /' conftest.$ac_ext >&5
5020
 
 
5021
 
lt_cv_cc_needs_belf=no
5022
 
fi
5023
 
rm -f conftest.err conftest.$ac_objext \
5024
 
      conftest$ac_exeext conftest.$ac_ext
5025
 
     ac_ext=c
5026
 
ac_cpp='$CPP $CPPFLAGS'
5027
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5028
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5029
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5030
 
 
5031
 
fi
5032
 
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5033
 
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5034
 
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5035
 
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5036
 
    CFLAGS="$SAVE_CFLAGS"
5037
 
  fi
5038
 
  ;;
5039
 
 
5040
 
esac
5041
 
 
5042
 
need_locks="$enable_libtool_lock"
5043
 
 
5044
 
 
5045
 
ac_ext=c
5046
 
ac_cpp='$CPP $CPPFLAGS'
5047
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5048
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5049
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5050
 
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5051
 
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5052
 
# On Suns, sometimes $CPP names a directory.
5053
 
if test -n "$CPP" && test -d "$CPP"; then
5054
 
  CPP=
5055
 
fi
5056
 
if test -z "$CPP"; then
5057
 
  if test "${ac_cv_prog_CPP+set}" = set; then
5058
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5059
 
else
5060
 
      # Double quotes because CPP needs to be expanded
5061
 
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5062
 
    do
5063
 
      ac_preproc_ok=false
5064
 
for ac_c_preproc_warn_flag in '' yes
5065
 
do
5066
 
  # Use a header file that comes with gcc, so configuring glibc
5067
 
  # with a fresh cross-compiler works.
5068
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5069
 
  # <limits.h> exists even on freestanding compilers.
5070
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
5071
 
  # not just through cpp. "Syntax error" is here to catch this case.
5072
 
  cat >conftest.$ac_ext <<_ACEOF
5073
 
/* confdefs.h.  */
5074
 
_ACEOF
5075
 
cat confdefs.h >>conftest.$ac_ext
5076
 
cat >>conftest.$ac_ext <<_ACEOF
5077
 
/* end confdefs.h.  */
5078
 
@%:@ifdef __STDC__
5079
 
@%:@ include <limits.h>
5080
 
@%:@else
5081
 
@%:@ include <assert.h>
5082
 
@%:@endif
5083
 
                     Syntax error
5084
 
_ACEOF
5085
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5086
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5087
 
  ac_status=$?
5088
 
  grep -v '^ *+' conftest.er1 >conftest.err
5089
 
  rm -f conftest.er1
5090
 
  cat conftest.err >&5
5091
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092
 
  (exit $ac_status); } >/dev/null; then
5093
 
  if test -s conftest.err; then
5094
 
    ac_cpp_err=$ac_c_preproc_warn_flag
5095
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5096
 
  else
5097
 
    ac_cpp_err=
5098
 
  fi
5099
 
else
5100
 
  ac_cpp_err=yes
5101
 
fi
5102
 
if test -z "$ac_cpp_err"; then
5103
 
  :
5104
 
else
5105
 
  echo "$as_me: failed program was:" >&5
5106
 
sed 's/^/| /' conftest.$ac_ext >&5
5107
 
 
5108
 
  # Broken: fails on valid input.
5109
 
continue
5110
 
fi
5111
 
rm -f conftest.err conftest.$ac_ext
5112
 
 
5113
 
  # OK, works on sane cases.  Now check whether non-existent headers
5114
 
  # can be detected and how.
5115
 
  cat >conftest.$ac_ext <<_ACEOF
5116
 
/* confdefs.h.  */
5117
 
_ACEOF
5118
 
cat confdefs.h >>conftest.$ac_ext
5119
 
cat >>conftest.$ac_ext <<_ACEOF
5120
 
/* end confdefs.h.  */
5121
 
@%:@include <ac_nonexistent.h>
5122
 
_ACEOF
5123
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5124
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5125
 
  ac_status=$?
5126
 
  grep -v '^ *+' conftest.er1 >conftest.err
5127
 
  rm -f conftest.er1
5128
 
  cat conftest.err >&5
5129
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130
 
  (exit $ac_status); } >/dev/null; then
5131
 
  if test -s conftest.err; then
5132
 
    ac_cpp_err=$ac_c_preproc_warn_flag
5133
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5134
 
  else
5135
 
    ac_cpp_err=
5136
 
  fi
5137
 
else
5138
 
  ac_cpp_err=yes
5139
 
fi
5140
 
if test -z "$ac_cpp_err"; then
5141
 
  # Broken: success on invalid input.
5142
 
continue
5143
 
else
5144
 
  echo "$as_me: failed program was:" >&5
5145
 
sed 's/^/| /' conftest.$ac_ext >&5
5146
 
 
5147
 
  # Passes both tests.
5148
 
ac_preproc_ok=:
5149
 
break
5150
 
fi
5151
 
rm -f conftest.err conftest.$ac_ext
5152
 
 
5153
 
done
5154
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5155
 
rm -f conftest.err conftest.$ac_ext
5156
 
if $ac_preproc_ok; then
5157
 
  break
5158
 
fi
5159
 
 
5160
 
    done
5161
 
    ac_cv_prog_CPP=$CPP
5162
 
  
5163
 
fi
5164
 
  CPP=$ac_cv_prog_CPP
5165
 
else
5166
 
  ac_cv_prog_CPP=$CPP
5167
 
fi
5168
 
echo "$as_me:$LINENO: result: $CPP" >&5
5169
 
echo "${ECHO_T}$CPP" >&6
5170
 
ac_preproc_ok=false
5171
 
for ac_c_preproc_warn_flag in '' yes
5172
 
do
5173
 
  # Use a header file that comes with gcc, so configuring glibc
5174
 
  # with a fresh cross-compiler works.
5175
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5176
 
  # <limits.h> exists even on freestanding compilers.
5177
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
5178
 
  # not just through cpp. "Syntax error" is here to catch this case.
5179
 
  cat >conftest.$ac_ext <<_ACEOF
5180
 
/* confdefs.h.  */
5181
 
_ACEOF
5182
 
cat confdefs.h >>conftest.$ac_ext
5183
 
cat >>conftest.$ac_ext <<_ACEOF
5184
 
/* end confdefs.h.  */
5185
 
@%:@ifdef __STDC__
5186
 
@%:@ include <limits.h>
5187
 
@%:@else
5188
 
@%:@ include <assert.h>
5189
 
@%:@endif
5190
 
                     Syntax error
5191
 
_ACEOF
5192
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5193
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5194
 
  ac_status=$?
5195
 
  grep -v '^ *+' conftest.er1 >conftest.err
5196
 
  rm -f conftest.er1
5197
 
  cat conftest.err >&5
5198
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199
 
  (exit $ac_status); } >/dev/null; then
5200
 
  if test -s conftest.err; then
5201
 
    ac_cpp_err=$ac_c_preproc_warn_flag
5202
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5203
 
  else
5204
 
    ac_cpp_err=
5205
 
  fi
5206
 
else
5207
 
  ac_cpp_err=yes
5208
 
fi
5209
 
if test -z "$ac_cpp_err"; then
5210
 
  :
5211
 
else
5212
 
  echo "$as_me: failed program was:" >&5
5213
 
sed 's/^/| /' conftest.$ac_ext >&5
5214
 
 
5215
 
  # Broken: fails on valid input.
5216
 
continue
5217
 
fi
5218
 
rm -f conftest.err conftest.$ac_ext
5219
 
 
5220
 
  # OK, works on sane cases.  Now check whether non-existent headers
5221
 
  # can be detected and how.
5222
 
  cat >conftest.$ac_ext <<_ACEOF
5223
 
/* confdefs.h.  */
5224
 
_ACEOF
5225
 
cat confdefs.h >>conftest.$ac_ext
5226
 
cat >>conftest.$ac_ext <<_ACEOF
5227
 
/* end confdefs.h.  */
5228
 
@%:@include <ac_nonexistent.h>
5229
 
_ACEOF
5230
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5231
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5232
 
  ac_status=$?
5233
 
  grep -v '^ *+' conftest.er1 >conftest.err
5234
 
  rm -f conftest.er1
5235
 
  cat conftest.err >&5
5236
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237
 
  (exit $ac_status); } >/dev/null; then
5238
 
  if test -s conftest.err; then
5239
 
    ac_cpp_err=$ac_c_preproc_warn_flag
5240
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5241
 
  else
5242
 
    ac_cpp_err=
5243
 
  fi
5244
 
else
5245
 
  ac_cpp_err=yes
5246
 
fi
5247
 
if test -z "$ac_cpp_err"; then
5248
 
  # Broken: success on invalid input.
5249
 
continue
5250
 
else
5251
 
  echo "$as_me: failed program was:" >&5
5252
 
sed 's/^/| /' conftest.$ac_ext >&5
5253
 
 
5254
 
  # Passes both tests.
5255
 
ac_preproc_ok=:
5256
 
break
5257
 
fi
5258
 
rm -f conftest.err conftest.$ac_ext
5259
 
 
5260
 
done
5261
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5262
 
rm -f conftest.err conftest.$ac_ext
5263
 
if $ac_preproc_ok; then
5264
 
  :
5265
 
else
5266
 
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5267
 
See \`config.log' for more details." >&5
5268
 
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5269
 
See \`config.log' for more details." >&2;}
5270
 
   { (exit 1); exit 1; }; }
5271
 
fi
5272
 
 
5273
 
ac_ext=c
5274
 
ac_cpp='$CPP $CPPFLAGS'
5275
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5276
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5277
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5278
 
 
5279
 
 
5280
 
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5281
 
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5282
 
if test "${ac_cv_header_stdc+set}" = set; then
5283
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5284
 
else
5285
 
  cat >conftest.$ac_ext <<_ACEOF
5286
 
/* confdefs.h.  */
5287
 
_ACEOF
5288
 
cat confdefs.h >>conftest.$ac_ext
5289
 
cat >>conftest.$ac_ext <<_ACEOF
5290
 
/* end confdefs.h.  */
5291
 
#include <stdlib.h>
5292
 
#include <stdarg.h>
5293
 
#include <string.h>
5294
 
#include <float.h>
5295
 
 
5296
 
int
5297
 
main ()
5298
 
{
5299
 
 
5300
 
  ;
5301
 
  return 0;
5302
 
}
5303
 
_ACEOF
5304
 
rm -f conftest.$ac_objext
5305
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5306
 
  (eval $ac_compile) 2>conftest.er1
5307
 
  ac_status=$?
5308
 
  grep -v '^ *+' conftest.er1 >conftest.err
5309
 
  rm -f conftest.er1
5310
 
  cat conftest.err >&5
5311
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312
 
  (exit $ac_status); } &&
5313
 
         { ac_try='test -z "$ac_c_werror_flag"
5314
 
                         || test ! -s conftest.err'
5315
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5316
 
  (eval $ac_try) 2>&5
5317
 
  ac_status=$?
5318
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5319
 
  (exit $ac_status); }; } &&
5320
 
         { ac_try='test -s conftest.$ac_objext'
5321
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5322
 
  (eval $ac_try) 2>&5
5323
 
  ac_status=$?
5324
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325
 
  (exit $ac_status); }; }; then
5326
 
  ac_cv_header_stdc=yes
5327
 
else
5328
 
  echo "$as_me: failed program was:" >&5
5329
 
sed 's/^/| /' conftest.$ac_ext >&5
5330
 
 
5331
 
ac_cv_header_stdc=no
5332
 
fi
5333
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5334
 
 
5335
 
if test $ac_cv_header_stdc = yes; then
5336
 
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5337
 
  cat >conftest.$ac_ext <<_ACEOF
5338
 
/* confdefs.h.  */
5339
 
_ACEOF
5340
 
cat confdefs.h >>conftest.$ac_ext
5341
 
cat >>conftest.$ac_ext <<_ACEOF
5342
 
/* end confdefs.h.  */
5343
 
#include <string.h>
5344
 
 
5345
 
_ACEOF
5346
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5347
 
  $EGREP "memchr" >/dev/null 2>&1; then
5348
 
  :
5349
 
else
5350
 
  ac_cv_header_stdc=no
5351
 
fi
5352
 
rm -f conftest*
5353
 
 
5354
 
fi
5355
 
 
5356
 
if test $ac_cv_header_stdc = yes; then
5357
 
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5358
 
  cat >conftest.$ac_ext <<_ACEOF
5359
 
/* confdefs.h.  */
5360
 
_ACEOF
5361
 
cat confdefs.h >>conftest.$ac_ext
5362
 
cat >>conftest.$ac_ext <<_ACEOF
5363
 
/* end confdefs.h.  */
5364
 
#include <stdlib.h>
5365
 
 
5366
 
_ACEOF
5367
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5368
 
  $EGREP "free" >/dev/null 2>&1; then
5369
 
  :
5370
 
else
5371
 
  ac_cv_header_stdc=no
5372
 
fi
5373
 
rm -f conftest*
5374
 
 
5375
 
fi
5376
 
 
5377
 
if test $ac_cv_header_stdc = yes; then
5378
 
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5379
 
  if test "$cross_compiling" = yes; then
5380
 
  :
5381
 
else
5382
 
  cat >conftest.$ac_ext <<_ACEOF
5383
 
/* confdefs.h.  */
5384
 
_ACEOF
5385
 
cat confdefs.h >>conftest.$ac_ext
5386
 
cat >>conftest.$ac_ext <<_ACEOF
5387
 
/* end confdefs.h.  */
5388
 
#include <ctype.h>
5389
 
#if ((' ' & 0x0FF) == 0x020)
5390
 
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5391
 
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5392
 
#else
5393
 
# define ISLOWER(c) \
5394
 
                   (('a' <= (c) && (c) <= 'i') \
5395
 
                     || ('j' <= (c) && (c) <= 'r') \
5396
 
                     || ('s' <= (c) && (c) <= 'z'))
5397
 
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5398
 
#endif
5399
 
 
5400
 
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5401
 
int
5402
 
main ()
5403
 
{
5404
 
  int i;
5405
 
  for (i = 0; i < 256; i++)
5406
 
    if (XOR (islower (i), ISLOWER (i))
5407
 
        || toupper (i) != TOUPPER (i))
5408
 
      exit(2);
5409
 
  exit (0);
5410
 
}
5411
 
_ACEOF
5412
 
rm -f conftest$ac_exeext
5413
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5414
 
  (eval $ac_link) 2>&5
5415
 
  ac_status=$?
5416
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5418
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5419
 
  (eval $ac_try) 2>&5
5420
 
  ac_status=$?
5421
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422
 
  (exit $ac_status); }; }; then
5423
 
  :
5424
 
else
5425
 
  echo "$as_me: program exited with status $ac_status" >&5
5426
 
echo "$as_me: failed program was:" >&5
5427
 
sed 's/^/| /' conftest.$ac_ext >&5
5428
 
 
5429
 
( exit $ac_status )
5430
 
ac_cv_header_stdc=no
5431
 
fi
5432
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5433
 
fi
5434
 
fi
5435
 
fi
5436
 
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5437
 
echo "${ECHO_T}$ac_cv_header_stdc" >&6
5438
 
if test $ac_cv_header_stdc = yes; then
5439
 
  
5440
 
cat >>confdefs.h <<\_ACEOF
5441
 
@%:@define STDC_HEADERS 1
5442
 
_ACEOF
5443
 
 
5444
 
fi
5445
 
 
5446
 
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5447
 
 
5448
 
 
5449
 
 
5450
 
 
5451
 
 
5452
 
 
5453
 
 
5454
 
 
5455
 
 
5456
 
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5457
 
                  inttypes.h stdint.h unistd.h
5458
 
do
5459
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5460
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
5461
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5462
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5463
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5464
 
else
5465
 
  cat >conftest.$ac_ext <<_ACEOF
5466
 
/* confdefs.h.  */
5467
 
_ACEOF
5468
 
cat confdefs.h >>conftest.$ac_ext
5469
 
cat >>conftest.$ac_ext <<_ACEOF
5470
 
/* end confdefs.h.  */
5471
 
$ac_includes_default
5472
 
 
5473
 
@%:@include <$ac_header>
5474
 
_ACEOF
5475
 
rm -f conftest.$ac_objext
5476
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5477
 
  (eval $ac_compile) 2>conftest.er1
5478
 
  ac_status=$?
5479
 
  grep -v '^ *+' conftest.er1 >conftest.err
5480
 
  rm -f conftest.er1
5481
 
  cat conftest.err >&5
5482
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483
 
  (exit $ac_status); } &&
5484
 
         { ac_try='test -z "$ac_c_werror_flag"
5485
 
                         || test ! -s conftest.err'
5486
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5487
 
  (eval $ac_try) 2>&5
5488
 
  ac_status=$?
5489
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490
 
  (exit $ac_status); }; } &&
5491
 
         { ac_try='test -s conftest.$ac_objext'
5492
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5493
 
  (eval $ac_try) 2>&5
5494
 
  ac_status=$?
5495
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496
 
  (exit $ac_status); }; }; then
5497
 
  eval "$as_ac_Header=yes"
5498
 
else
5499
 
  echo "$as_me: failed program was:" >&5
5500
 
sed 's/^/| /' conftest.$ac_ext >&5
5501
 
 
5502
 
eval "$as_ac_Header=no"
5503
 
fi
5504
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5505
 
fi
5506
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5507
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5508
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5509
 
  cat >>confdefs.h <<_ACEOF
5510
 
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5511
 
_ACEOF
5512
 
 
5513
 
fi
5514
 
 
5515
 
done
5516
 
 
5517
 
 
5518
 
 
5519
 
for ac_header in dlfcn.h
5520
 
do
5521
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5522
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5523
 
  echo "$as_me:$LINENO: checking for $ac_header" >&5
5524
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5525
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5526
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5527
 
fi
5528
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5529
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5530
 
else
5531
 
  # Is the header compilable?
5532
 
echo "$as_me:$LINENO: checking $ac_header usability" >&5
5533
 
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5534
 
cat >conftest.$ac_ext <<_ACEOF
5535
 
/* confdefs.h.  */
5536
 
_ACEOF
5537
 
cat confdefs.h >>conftest.$ac_ext
5538
 
cat >>conftest.$ac_ext <<_ACEOF
5539
 
/* end confdefs.h.  */
5540
 
$ac_includes_default
5541
 
@%:@include <$ac_header>
5542
 
_ACEOF
5543
 
rm -f conftest.$ac_objext
5544
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5545
 
  (eval $ac_compile) 2>conftest.er1
5546
 
  ac_status=$?
5547
 
  grep -v '^ *+' conftest.er1 >conftest.err
5548
 
  rm -f conftest.er1
5549
 
  cat conftest.err >&5
5550
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551
 
  (exit $ac_status); } &&
5552
 
         { ac_try='test -z "$ac_c_werror_flag"
5553
 
                         || test ! -s conftest.err'
5554
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5555
 
  (eval $ac_try) 2>&5
5556
 
  ac_status=$?
5557
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558
 
  (exit $ac_status); }; } &&
5559
 
         { ac_try='test -s conftest.$ac_objext'
5560
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5561
 
  (eval $ac_try) 2>&5
5562
 
  ac_status=$?
5563
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564
 
  (exit $ac_status); }; }; then
5565
 
  ac_header_compiler=yes
5566
 
else
5567
 
  echo "$as_me: failed program was:" >&5
5568
 
sed 's/^/| /' conftest.$ac_ext >&5
5569
 
 
5570
 
ac_header_compiler=no
5571
 
fi
5572
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5573
 
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5574
 
echo "${ECHO_T}$ac_header_compiler" >&6
5575
 
 
5576
 
# Is the header present?
5577
 
echo "$as_me:$LINENO: checking $ac_header presence" >&5
5578
 
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5579
 
cat >conftest.$ac_ext <<_ACEOF
5580
 
/* confdefs.h.  */
5581
 
_ACEOF
5582
 
cat confdefs.h >>conftest.$ac_ext
5583
 
cat >>conftest.$ac_ext <<_ACEOF
5584
 
/* end confdefs.h.  */
5585
 
@%:@include <$ac_header>
5586
 
_ACEOF
5587
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5588
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5589
 
  ac_status=$?
5590
 
  grep -v '^ *+' conftest.er1 >conftest.err
5591
 
  rm -f conftest.er1
5592
 
  cat conftest.err >&5
5593
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594
 
  (exit $ac_status); } >/dev/null; then
5595
 
  if test -s conftest.err; then
5596
 
    ac_cpp_err=$ac_c_preproc_warn_flag
5597
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5598
 
  else
5599
 
    ac_cpp_err=
5600
 
  fi
5601
 
else
5602
 
  ac_cpp_err=yes
5603
 
fi
5604
 
if test -z "$ac_cpp_err"; then
5605
 
  ac_header_preproc=yes
5606
 
else
5607
 
  echo "$as_me: failed program was:" >&5
5608
 
sed 's/^/| /' conftest.$ac_ext >&5
5609
 
 
5610
 
  ac_header_preproc=no
5611
 
fi
5612
 
rm -f conftest.err conftest.$ac_ext
5613
 
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5614
 
echo "${ECHO_T}$ac_header_preproc" >&6
5615
 
 
5616
 
# So?  What about this header?
5617
 
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5618
 
  yes:no: )
5619
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5620
 
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5621
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5622
 
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5623
 
    ac_header_preproc=yes
5624
 
    ;;
5625
 
  no:yes:* )
5626
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5627
 
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5628
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5629
 
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5630
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5631
 
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5632
 
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5633
 
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5634
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5635
 
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5636
 
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5637
 
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5638
 
    (
5639
 
      cat <<\_ASBOX
5640
 
@%:@@%:@ ----------------------------------------- @%:@@%:@
5641
 
@%:@@%:@ Report this to trousers-tech@lists.sf.net @%:@@%:@
5642
 
@%:@@%:@ ----------------------------------------- @%:@@%:@
5643
 
_ASBOX
5644
 
    ) |
5645
 
      sed "s/^/$as_me: WARNING:     /" >&2
5646
 
    ;;
5647
 
esac
5648
 
echo "$as_me:$LINENO: checking for $ac_header" >&5
5649
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5650
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5651
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5652
 
else
5653
 
  eval "$as_ac_Header=\$ac_header_preproc"
5654
 
fi
5655
 
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5656
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5657
 
 
5658
 
fi
5659
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5660
 
  cat >>confdefs.h <<_ACEOF
5661
 
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5662
 
_ACEOF
5663
 
 
5664
 
fi
5665
 
 
5666
 
done
5667
 
 
5668
 
ac_ext=cc
5669
 
ac_cpp='$CXXCPP $CPPFLAGS'
5670
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5671
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5672
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5673
 
if test -n "$ac_tool_prefix"; then
5674
 
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5675
 
  do
5676
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5677
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5678
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5679
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5680
 
if test "${ac_cv_prog_CXX+set}" = set; then
5681
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5682
 
else
5683
 
  if test -n "$CXX"; then
5684
 
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5685
 
else
5686
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5687
 
for as_dir in $PATH
5688
 
do
5689
 
  IFS=$as_save_IFS
5690
 
  test -z "$as_dir" && as_dir=.
5691
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5692
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5693
 
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5694
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5695
 
    break 2
5696
 
  fi
5697
 
done
5698
 
done
5699
 
 
5700
 
fi
5701
 
fi
5702
 
CXX=$ac_cv_prog_CXX
5703
 
if test -n "$CXX"; then
5704
 
  echo "$as_me:$LINENO: result: $CXX" >&5
5705
 
echo "${ECHO_T}$CXX" >&6
5706
 
else
5707
 
  echo "$as_me:$LINENO: result: no" >&5
5708
 
echo "${ECHO_T}no" >&6
5709
 
fi
5710
 
 
5711
 
    test -n "$CXX" && break
5712
 
  done
5713
 
fi
5714
 
if test -z "$CXX"; then
5715
 
  ac_ct_CXX=$CXX
5716
 
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5717
 
do
5718
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
5719
 
set dummy $ac_prog; ac_word=$2
5720
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
5721
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5722
 
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5723
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5724
 
else
5725
 
  if test -n "$ac_ct_CXX"; then
5726
 
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5727
 
else
5728
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5729
 
for as_dir in $PATH
5730
 
do
5731
 
  IFS=$as_save_IFS
5732
 
  test -z "$as_dir" && as_dir=.
5733
 
  for ac_exec_ext in '' $ac_executable_extensions; do
5734
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5735
 
    ac_cv_prog_ac_ct_CXX="$ac_prog"
5736
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5737
 
    break 2
5738
 
  fi
5739
 
done
5740
 
done
5741
 
 
5742
 
fi
5743
 
fi
5744
 
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5745
 
if test -n "$ac_ct_CXX"; then
5746
 
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5747
 
echo "${ECHO_T}$ac_ct_CXX" >&6
5748
 
else
5749
 
  echo "$as_me:$LINENO: result: no" >&5
5750
 
echo "${ECHO_T}no" >&6
5751
 
fi
5752
 
 
5753
 
  test -n "$ac_ct_CXX" && break
5754
 
done
5755
 
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5756
 
 
5757
 
  CXX=$ac_ct_CXX
5758
 
fi
5759
 
 
5760
 
 
5761
 
# Provide some information about the compiler.
5762
 
echo "$as_me:$LINENO:" \
5763
 
     "checking for C++ compiler version" >&5
5764
 
ac_compiler=`set X $ac_compile; echo $2`
5765
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5766
 
  (eval $ac_compiler --version </dev/null >&5) 2>&5
5767
 
  ac_status=$?
5768
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769
 
  (exit $ac_status); }
5770
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5771
 
  (eval $ac_compiler -v </dev/null >&5) 2>&5
5772
 
  ac_status=$?
5773
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774
 
  (exit $ac_status); }
5775
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5776
 
  (eval $ac_compiler -V </dev/null >&5) 2>&5
5777
 
  ac_status=$?
5778
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779
 
  (exit $ac_status); }
5780
 
 
5781
 
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5782
 
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5783
 
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5784
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5785
 
else
5786
 
  cat >conftest.$ac_ext <<_ACEOF
5787
 
/* confdefs.h.  */
5788
 
_ACEOF
5789
 
cat confdefs.h >>conftest.$ac_ext
5790
 
cat >>conftest.$ac_ext <<_ACEOF
5791
 
/* end confdefs.h.  */
5792
 
 
5793
 
int
5794
 
main ()
5795
 
{
5796
 
#ifndef __GNUC__
5797
 
       choke me
5798
 
#endif
5799
 
 
5800
 
  ;
5801
 
  return 0;
5802
 
}
5803
 
_ACEOF
5804
 
rm -f conftest.$ac_objext
5805
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5806
 
  (eval $ac_compile) 2>conftest.er1
5807
 
  ac_status=$?
5808
 
  grep -v '^ *+' conftest.er1 >conftest.err
5809
 
  rm -f conftest.er1
5810
 
  cat conftest.err >&5
5811
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812
 
  (exit $ac_status); } &&
5813
 
         { ac_try='test -z "$ac_cxx_werror_flag"
5814
 
                         || test ! -s conftest.err'
5815
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5816
 
  (eval $ac_try) 2>&5
5817
 
  ac_status=$?
5818
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819
 
  (exit $ac_status); }; } &&
5820
 
         { ac_try='test -s conftest.$ac_objext'
5821
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5822
 
  (eval $ac_try) 2>&5
5823
 
  ac_status=$?
5824
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825
 
  (exit $ac_status); }; }; then
5826
 
  ac_compiler_gnu=yes
5827
 
else
5828
 
  echo "$as_me: failed program was:" >&5
5829
 
sed 's/^/| /' conftest.$ac_ext >&5
5830
 
 
5831
 
ac_compiler_gnu=no
5832
 
fi
5833
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5834
 
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5835
 
 
5836
 
fi
5837
 
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5838
 
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5839
 
GXX=`test $ac_compiler_gnu = yes && echo yes`
5840
 
ac_test_CXXFLAGS=${CXXFLAGS+set}
5841
 
ac_save_CXXFLAGS=$CXXFLAGS
5842
 
CXXFLAGS="-g"
5843
 
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5844
 
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5845
 
if test "${ac_cv_prog_cxx_g+set}" = set; then
5846
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
5847
 
else
5848
 
  cat >conftest.$ac_ext <<_ACEOF
5849
 
/* confdefs.h.  */
5850
 
_ACEOF
5851
 
cat confdefs.h >>conftest.$ac_ext
5852
 
cat >>conftest.$ac_ext <<_ACEOF
5853
 
/* end confdefs.h.  */
5854
 
 
5855
 
int
5856
 
main ()
5857
 
{
5858
 
 
5859
 
  ;
5860
 
  return 0;
5861
 
}
5862
 
_ACEOF
5863
 
rm -f conftest.$ac_objext
5864
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5865
 
  (eval $ac_compile) 2>conftest.er1
5866
 
  ac_status=$?
5867
 
  grep -v '^ *+' conftest.er1 >conftest.err
5868
 
  rm -f conftest.er1
5869
 
  cat conftest.err >&5
5870
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871
 
  (exit $ac_status); } &&
5872
 
         { ac_try='test -z "$ac_cxx_werror_flag"
5873
 
                         || test ! -s conftest.err'
5874
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5875
 
  (eval $ac_try) 2>&5
5876
 
  ac_status=$?
5877
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878
 
  (exit $ac_status); }; } &&
5879
 
         { ac_try='test -s conftest.$ac_objext'
5880
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5881
 
  (eval $ac_try) 2>&5
5882
 
  ac_status=$?
5883
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884
 
  (exit $ac_status); }; }; then
5885
 
  ac_cv_prog_cxx_g=yes
5886
 
else
5887
 
  echo "$as_me: failed program was:" >&5
5888
 
sed 's/^/| /' conftest.$ac_ext >&5
5889
 
 
5890
 
ac_cv_prog_cxx_g=no
5891
 
fi
5892
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5893
 
fi
5894
 
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5895
 
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5896
 
if test "$ac_test_CXXFLAGS" = set; then
5897
 
  CXXFLAGS=$ac_save_CXXFLAGS
5898
 
elif test $ac_cv_prog_cxx_g = yes; then
5899
 
  if test "$GXX" = yes; then
5900
 
    CXXFLAGS="-g -O2"
5901
 
  else
5902
 
    CXXFLAGS="-g"
5903
 
  fi
5904
 
else
5905
 
  if test "$GXX" = yes; then
5906
 
    CXXFLAGS="-O2"
5907
 
  else
5908
 
    CXXFLAGS=
5909
 
  fi
5910
 
fi
5911
 
for ac_declaration in \
5912
 
   '' \
5913
 
   'extern "C" void std::exit (int) throw (); using std::exit;' \
5914
 
   'extern "C" void std::exit (int); using std::exit;' \
5915
 
   'extern "C" void exit (int) throw ();' \
5916
 
   'extern "C" void exit (int);' \
5917
 
   'void exit (int);'
5918
 
do
5919
 
  cat >conftest.$ac_ext <<_ACEOF
5920
 
/* confdefs.h.  */
5921
 
_ACEOF
5922
 
cat confdefs.h >>conftest.$ac_ext
5923
 
cat >>conftest.$ac_ext <<_ACEOF
5924
 
/* end confdefs.h.  */
5925
 
$ac_declaration
5926
 
@%:@include <stdlib.h>
5927
 
int
5928
 
main ()
5929
 
{
5930
 
exit (42);
5931
 
  ;
5932
 
  return 0;
5933
 
}
5934
 
_ACEOF
5935
 
rm -f conftest.$ac_objext
5936
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5937
 
  (eval $ac_compile) 2>conftest.er1
5938
 
  ac_status=$?
5939
 
  grep -v '^ *+' conftest.er1 >conftest.err
5940
 
  rm -f conftest.er1
5941
 
  cat conftest.err >&5
5942
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943
 
  (exit $ac_status); } &&
5944
 
         { ac_try='test -z "$ac_cxx_werror_flag"
5945
 
                         || test ! -s conftest.err'
5946
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5947
 
  (eval $ac_try) 2>&5
5948
 
  ac_status=$?
5949
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950
 
  (exit $ac_status); }; } &&
5951
 
         { ac_try='test -s conftest.$ac_objext'
5952
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5953
 
  (eval $ac_try) 2>&5
5954
 
  ac_status=$?
5955
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956
 
  (exit $ac_status); }; }; then
5957
 
  :
5958
 
else
5959
 
  echo "$as_me: failed program was:" >&5
5960
 
sed 's/^/| /' conftest.$ac_ext >&5
5961
 
 
5962
 
continue
5963
 
fi
5964
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5965
 
  cat >conftest.$ac_ext <<_ACEOF
5966
 
/* confdefs.h.  */
5967
 
_ACEOF
5968
 
cat confdefs.h >>conftest.$ac_ext
5969
 
cat >>conftest.$ac_ext <<_ACEOF
5970
 
/* end confdefs.h.  */
5971
 
$ac_declaration
5972
 
int
5973
 
main ()
5974
 
{
5975
 
exit (42);
5976
 
  ;
5977
 
  return 0;
5978
 
}
5979
 
_ACEOF
5980
 
rm -f conftest.$ac_objext
5981
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5982
 
  (eval $ac_compile) 2>conftest.er1
5983
 
  ac_status=$?
5984
 
  grep -v '^ *+' conftest.er1 >conftest.err
5985
 
  rm -f conftest.er1
5986
 
  cat conftest.err >&5
5987
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988
 
  (exit $ac_status); } &&
5989
 
         { ac_try='test -z "$ac_cxx_werror_flag"
5990
 
                         || test ! -s conftest.err'
5991
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5992
 
  (eval $ac_try) 2>&5
5993
 
  ac_status=$?
5994
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995
 
  (exit $ac_status); }; } &&
5996
 
         { ac_try='test -s conftest.$ac_objext'
5997
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5998
 
  (eval $ac_try) 2>&5
5999
 
  ac_status=$?
6000
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001
 
  (exit $ac_status); }; }; then
6002
 
  break
6003
 
else
6004
 
  echo "$as_me: failed program was:" >&5
6005
 
sed 's/^/| /' conftest.$ac_ext >&5
6006
 
 
6007
 
fi
6008
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6009
 
done
6010
 
rm -f conftest*
6011
 
if test -n "$ac_declaration"; then
6012
 
  echo '#ifdef __cplusplus' >>confdefs.h
6013
 
  echo $ac_declaration      >>confdefs.h
6014
 
  echo '#endif'             >>confdefs.h
6015
 
fi
6016
 
 
6017
 
ac_ext=cc
6018
 
ac_cpp='$CXXCPP $CPPFLAGS'
6019
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6020
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6021
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6022
 
 
6023
 
depcc="$CXX"  am_compiler_list=
6024
 
 
6025
 
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6026
 
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6027
 
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6028
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6029
 
else
6030
 
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6031
 
  # We make a subdir and do the tests there.  Otherwise we can end up
6032
 
  # making bogus files that we don't know about and never remove.  For
6033
 
  # instance it was reported that on HP-UX the gcc test will end up
6034
 
  # making a dummy file named `D' -- because `-MD' means `put the output
6035
 
  # in D'.
6036
 
  mkdir conftest.dir
6037
 
  # Copy depcomp to subdir because otherwise we won't find it if we're
6038
 
  # using a relative directory.
6039
 
  cp "$am_depcomp" conftest.dir
6040
 
  cd conftest.dir
6041
 
  # We will build objects and dependencies in a subdirectory because
6042
 
  # it helps to detect inapplicable dependency modes.  For instance
6043
 
  # both Tru64's cc and ICC support -MD to output dependencies as a
6044
 
  # side effect of compilation, but ICC will put the dependencies in
6045
 
  # the current directory while Tru64 will put them in the object
6046
 
  # directory.
6047
 
  mkdir sub
6048
 
 
6049
 
  am_cv_CXX_dependencies_compiler_type=none
6050
 
  if test "$am_compiler_list" = ""; then
6051
 
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6052
 
  fi
6053
 
  for depmode in $am_compiler_list; do
6054
 
    # Setup a source with many dependencies, because some compilers
6055
 
    # like to wrap large dependency lists on column 80 (with \), and
6056
 
    # we should not choose a depcomp mode which is confused by this.
6057
 
    #
6058
 
    # We need to recreate these files for each test, as the compiler may
6059
 
    # overwrite some of them when testing with obscure command lines.
6060
 
    # This happens at least with the AIX C compiler.
6061
 
    : > sub/conftest.c
6062
 
    for i in 1 2 3 4 5 6; do
6063
 
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6064
 
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6065
 
      # Solaris 8's {/usr,}/bin/sh.
6066
 
      touch sub/conftst$i.h
6067
 
    done
6068
 
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6069
 
 
6070
 
    case $depmode in
6071
 
    nosideeffect)
6072
 
      # after this tag, mechanisms are not by side-effect, so they'll
6073
 
      # only be used when explicitly requested
6074
 
      if test "x$enable_dependency_tracking" = xyes; then
6075
 
        continue
6076
 
      else
6077
 
        break
6078
 
      fi
6079
 
      ;;
6080
 
    none) break ;;
6081
 
    esac
6082
 
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6083
 
    # mode.  It turns out that the SunPro C++ compiler does not properly
6084
 
    # handle `-M -o', and we need to detect this.
6085
 
    if depmode=$depmode \
6086
 
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6087
 
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6088
 
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6089
 
         >/dev/null 2>conftest.err &&
6090
 
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6091
 
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6092
 
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6093
 
      # icc doesn't choke on unknown options, it will just issue warnings
6094
 
      # or remarks (even with -Werror).  So we grep stderr for any message
6095
 
      # that says an option was ignored or not supported.
6096
 
      # When given -MP, icc 7.0 and 7.1 complain thusly:
6097
 
      #   icc: Command line warning: ignoring option '-M'; no argument required
6098
 
      # The diagnosis changed in icc 8.0:
6099
 
      #   icc: Command line remark: option '-MP' not supported
6100
 
      if (grep 'ignoring option' conftest.err ||
6101
 
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6102
 
        am_cv_CXX_dependencies_compiler_type=$depmode
6103
 
        break
6104
 
      fi
6105
 
    fi
6106
 
  done
6107
 
 
6108
 
  cd ..
6109
 
  rm -rf conftest.dir
6110
 
else
6111
 
  am_cv_CXX_dependencies_compiler_type=none
6112
 
fi
6113
 
 
6114
 
fi
6115
 
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6116
 
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6117
 
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6118
 
 
6119
 
 
6120
 
 
6121
 
if 
6122
 
  test "x$enable_dependency_tracking" != xno \
6123
 
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6124
 
  am__fastdepCXX_TRUE=
6125
 
  am__fastdepCXX_FALSE='#'
6126
 
else
6127
 
  am__fastdepCXX_TRUE='#'
6128
 
  am__fastdepCXX_FALSE=
6129
 
fi
6130
 
 
6131
 
 
6132
 
 
6133
 
 
6134
 
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6135
 
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6136
 
    (test "X$CXX" != "Xg++"))) ; then
6137
 
  ac_ext=cc
6138
 
ac_cpp='$CXXCPP $CPPFLAGS'
6139
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6140
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6141
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6142
 
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6143
 
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6144
 
if test -z "$CXXCPP"; then
6145
 
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6146
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6147
 
else
6148
 
      # Double quotes because CXXCPP needs to be expanded
6149
 
    for CXXCPP in "$CXX -E" "/lib/cpp"
6150
 
    do
6151
 
      ac_preproc_ok=false
6152
 
for ac_cxx_preproc_warn_flag in '' yes
6153
 
do
6154
 
  # Use a header file that comes with gcc, so configuring glibc
6155
 
  # with a fresh cross-compiler works.
6156
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6157
 
  # <limits.h> exists even on freestanding compilers.
6158
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
6159
 
  # not just through cpp. "Syntax error" is here to catch this case.
6160
 
  cat >conftest.$ac_ext <<_ACEOF
6161
 
/* confdefs.h.  */
6162
 
_ACEOF
6163
 
cat confdefs.h >>conftest.$ac_ext
6164
 
cat >>conftest.$ac_ext <<_ACEOF
6165
 
/* end confdefs.h.  */
6166
 
@%:@ifdef __STDC__
6167
 
@%:@ include <limits.h>
6168
 
@%:@else
6169
 
@%:@ include <assert.h>
6170
 
@%:@endif
6171
 
                     Syntax error
6172
 
_ACEOF
6173
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6174
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6175
 
  ac_status=$?
6176
 
  grep -v '^ *+' conftest.er1 >conftest.err
6177
 
  rm -f conftest.er1
6178
 
  cat conftest.err >&5
6179
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180
 
  (exit $ac_status); } >/dev/null; then
6181
 
  if test -s conftest.err; then
6182
 
    ac_cpp_err=$ac_cxx_preproc_warn_flag
6183
 
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6184
 
  else
6185
 
    ac_cpp_err=
6186
 
  fi
6187
 
else
6188
 
  ac_cpp_err=yes
6189
 
fi
6190
 
if test -z "$ac_cpp_err"; then
6191
 
  :
6192
 
else
6193
 
  echo "$as_me: failed program was:" >&5
6194
 
sed 's/^/| /' conftest.$ac_ext >&5
6195
 
 
6196
 
  # Broken: fails on valid input.
6197
 
continue
6198
 
fi
6199
 
rm -f conftest.err conftest.$ac_ext
6200
 
 
6201
 
  # OK, works on sane cases.  Now check whether non-existent headers
6202
 
  # can be detected and how.
6203
 
  cat >conftest.$ac_ext <<_ACEOF
6204
 
/* confdefs.h.  */
6205
 
_ACEOF
6206
 
cat confdefs.h >>conftest.$ac_ext
6207
 
cat >>conftest.$ac_ext <<_ACEOF
6208
 
/* end confdefs.h.  */
6209
 
@%:@include <ac_nonexistent.h>
6210
 
_ACEOF
6211
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6212
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6213
 
  ac_status=$?
6214
 
  grep -v '^ *+' conftest.er1 >conftest.err
6215
 
  rm -f conftest.er1
6216
 
  cat conftest.err >&5
6217
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218
 
  (exit $ac_status); } >/dev/null; then
6219
 
  if test -s conftest.err; then
6220
 
    ac_cpp_err=$ac_cxx_preproc_warn_flag
6221
 
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6222
 
  else
6223
 
    ac_cpp_err=
6224
 
  fi
6225
 
else
6226
 
  ac_cpp_err=yes
6227
 
fi
6228
 
if test -z "$ac_cpp_err"; then
6229
 
  # Broken: success on invalid input.
6230
 
continue
6231
 
else
6232
 
  echo "$as_me: failed program was:" >&5
6233
 
sed 's/^/| /' conftest.$ac_ext >&5
6234
 
 
6235
 
  # Passes both tests.
6236
 
ac_preproc_ok=:
6237
 
break
6238
 
fi
6239
 
rm -f conftest.err conftest.$ac_ext
6240
 
 
6241
 
done
6242
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6243
 
rm -f conftest.err conftest.$ac_ext
6244
 
if $ac_preproc_ok; then
6245
 
  break
6246
 
fi
6247
 
 
6248
 
    done
6249
 
    ac_cv_prog_CXXCPP=$CXXCPP
6250
 
  
6251
 
fi
6252
 
  CXXCPP=$ac_cv_prog_CXXCPP
6253
 
else
6254
 
  ac_cv_prog_CXXCPP=$CXXCPP
6255
 
fi
6256
 
echo "$as_me:$LINENO: result: $CXXCPP" >&5
6257
 
echo "${ECHO_T}$CXXCPP" >&6
6258
 
ac_preproc_ok=false
6259
 
for ac_cxx_preproc_warn_flag in '' yes
6260
 
do
6261
 
  # Use a header file that comes with gcc, so configuring glibc
6262
 
  # with a fresh cross-compiler works.
6263
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6264
 
  # <limits.h> exists even on freestanding compilers.
6265
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
6266
 
  # not just through cpp. "Syntax error" is here to catch this case.
6267
 
  cat >conftest.$ac_ext <<_ACEOF
6268
 
/* confdefs.h.  */
6269
 
_ACEOF
6270
 
cat confdefs.h >>conftest.$ac_ext
6271
 
cat >>conftest.$ac_ext <<_ACEOF
6272
 
/* end confdefs.h.  */
6273
 
@%:@ifdef __STDC__
6274
 
@%:@ include <limits.h>
6275
 
@%:@else
6276
 
@%:@ include <assert.h>
6277
 
@%:@endif
6278
 
                     Syntax error
6279
 
_ACEOF
6280
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6281
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6282
 
  ac_status=$?
6283
 
  grep -v '^ *+' conftest.er1 >conftest.err
6284
 
  rm -f conftest.er1
6285
 
  cat conftest.err >&5
6286
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287
 
  (exit $ac_status); } >/dev/null; then
6288
 
  if test -s conftest.err; then
6289
 
    ac_cpp_err=$ac_cxx_preproc_warn_flag
6290
 
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6291
 
  else
6292
 
    ac_cpp_err=
6293
 
  fi
6294
 
else
6295
 
  ac_cpp_err=yes
6296
 
fi
6297
 
if test -z "$ac_cpp_err"; then
6298
 
  :
6299
 
else
6300
 
  echo "$as_me: failed program was:" >&5
6301
 
sed 's/^/| /' conftest.$ac_ext >&5
6302
 
 
6303
 
  # Broken: fails on valid input.
6304
 
continue
6305
 
fi
6306
 
rm -f conftest.err conftest.$ac_ext
6307
 
 
6308
 
  # OK, works on sane cases.  Now check whether non-existent headers
6309
 
  # can be detected and how.
6310
 
  cat >conftest.$ac_ext <<_ACEOF
6311
 
/* confdefs.h.  */
6312
 
_ACEOF
6313
 
cat confdefs.h >>conftest.$ac_ext
6314
 
cat >>conftest.$ac_ext <<_ACEOF
6315
 
/* end confdefs.h.  */
6316
 
@%:@include <ac_nonexistent.h>
6317
 
_ACEOF
6318
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6319
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6320
 
  ac_status=$?
6321
 
  grep -v '^ *+' conftest.er1 >conftest.err
6322
 
  rm -f conftest.er1
6323
 
  cat conftest.err >&5
6324
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325
 
  (exit $ac_status); } >/dev/null; then
6326
 
  if test -s conftest.err; then
6327
 
    ac_cpp_err=$ac_cxx_preproc_warn_flag
6328
 
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6329
 
  else
6330
 
    ac_cpp_err=
6331
 
  fi
6332
 
else
6333
 
  ac_cpp_err=yes
6334
 
fi
6335
 
if test -z "$ac_cpp_err"; then
6336
 
  # Broken: success on invalid input.
6337
 
continue
6338
 
else
6339
 
  echo "$as_me: failed program was:" >&5
6340
 
sed 's/^/| /' conftest.$ac_ext >&5
6341
 
 
6342
 
  # Passes both tests.
6343
 
ac_preproc_ok=:
6344
 
break
6345
 
fi
6346
 
rm -f conftest.err conftest.$ac_ext
6347
 
 
6348
 
done
6349
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6350
 
rm -f conftest.err conftest.$ac_ext
6351
 
if $ac_preproc_ok; then
6352
 
  :
6353
 
else
6354
 
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6355
 
See \`config.log' for more details." >&5
6356
 
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6357
 
See \`config.log' for more details." >&2;}
6358
 
   { (exit 1); exit 1; }; }
6359
 
fi
6360
 
 
6361
 
ac_ext=cc
6362
 
ac_cpp='$CXXCPP $CPPFLAGS'
6363
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6364
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6365
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6366
 
 
6367
 
fi
6368
 
 
6369
 
 
6370
 
ac_ext=f
6371
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6372
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6373
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6374
 
if test -n "$ac_tool_prefix"; then
6375
 
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6376
 
  do
6377
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6378
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6379
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
6380
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6381
 
if test "${ac_cv_prog_F77+set}" = set; then
6382
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6383
 
else
6384
 
  if test -n "$F77"; then
6385
 
  ac_cv_prog_F77="$F77" # Let the user override the test.
6386
 
else
6387
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6388
 
for as_dir in $PATH
6389
 
do
6390
 
  IFS=$as_save_IFS
6391
 
  test -z "$as_dir" && as_dir=.
6392
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6393
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6394
 
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6395
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6396
 
    break 2
6397
 
  fi
6398
 
done
6399
 
done
6400
 
 
6401
 
fi
6402
 
fi
6403
 
F77=$ac_cv_prog_F77
6404
 
if test -n "$F77"; then
6405
 
  echo "$as_me:$LINENO: result: $F77" >&5
6406
 
echo "${ECHO_T}$F77" >&6
6407
 
else
6408
 
  echo "$as_me:$LINENO: result: no" >&5
6409
 
echo "${ECHO_T}no" >&6
6410
 
fi
6411
 
 
6412
 
    test -n "$F77" && break
6413
 
  done
6414
 
fi
6415
 
if test -z "$F77"; then
6416
 
  ac_ct_F77=$F77
6417
 
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6418
 
do
6419
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
6420
 
set dummy $ac_prog; ac_word=$2
6421
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
6422
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6423
 
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6424
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6425
 
else
6426
 
  if test -n "$ac_ct_F77"; then
6427
 
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6428
 
else
6429
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6430
 
for as_dir in $PATH
6431
 
do
6432
 
  IFS=$as_save_IFS
6433
 
  test -z "$as_dir" && as_dir=.
6434
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6435
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6436
 
    ac_cv_prog_ac_ct_F77="$ac_prog"
6437
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6438
 
    break 2
6439
 
  fi
6440
 
done
6441
 
done
6442
 
 
6443
 
fi
6444
 
fi
6445
 
ac_ct_F77=$ac_cv_prog_ac_ct_F77
6446
 
if test -n "$ac_ct_F77"; then
6447
 
  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6448
 
echo "${ECHO_T}$ac_ct_F77" >&6
6449
 
else
6450
 
  echo "$as_me:$LINENO: result: no" >&5
6451
 
echo "${ECHO_T}no" >&6
6452
 
fi
6453
 
 
6454
 
  test -n "$ac_ct_F77" && break
6455
 
done
6456
 
 
6457
 
  F77=$ac_ct_F77
6458
 
fi
6459
 
 
6460
 
 
6461
 
# Provide some information about the compiler.
6462
 
echo "$as_me:__oline__:" \
6463
 
     "checking for Fortran 77 compiler version" >&5
6464
 
ac_compiler=`set X $ac_compile; echo $2`
6465
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6466
 
  (eval $ac_compiler --version </dev/null >&5) 2>&5
6467
 
  ac_status=$?
6468
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469
 
  (exit $ac_status); }
6470
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6471
 
  (eval $ac_compiler -v </dev/null >&5) 2>&5
6472
 
  ac_status=$?
6473
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474
 
  (exit $ac_status); }
6475
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6476
 
  (eval $ac_compiler -V </dev/null >&5) 2>&5
6477
 
  ac_status=$?
6478
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479
 
  (exit $ac_status); }
6480
 
rm -f a.out
6481
 
 
6482
 
# If we don't use `.F' as extension, the preprocessor is not run on the
6483
 
# input file.  (Note that this only needs to work for GNU compilers.)
6484
 
ac_save_ext=$ac_ext
6485
 
ac_ext=F
6486
 
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6487
 
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6488
 
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6489
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6490
 
else
6491
 
  cat >conftest.$ac_ext <<_ACEOF
6492
 
      program main
6493
 
#ifndef __GNUC__
6494
 
       choke me
6495
 
#endif
6496
 
 
6497
 
      end
6498
 
_ACEOF
6499
 
rm -f conftest.$ac_objext
6500
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6501
 
  (eval $ac_compile) 2>conftest.er1
6502
 
  ac_status=$?
6503
 
  grep -v '^ *+' conftest.er1 >conftest.err
6504
 
  rm -f conftest.er1
6505
 
  cat conftest.err >&5
6506
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507
 
  (exit $ac_status); } &&
6508
 
         { ac_try='test -z "$ac_f77_werror_flag"
6509
 
                         || test ! -s conftest.err'
6510
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6511
 
  (eval $ac_try) 2>&5
6512
 
  ac_status=$?
6513
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514
 
  (exit $ac_status); }; } &&
6515
 
         { ac_try='test -s conftest.$ac_objext'
6516
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6517
 
  (eval $ac_try) 2>&5
6518
 
  ac_status=$?
6519
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520
 
  (exit $ac_status); }; }; then
6521
 
  ac_compiler_gnu=yes
6522
 
else
6523
 
  echo "$as_me: failed program was:" >&5
6524
 
sed 's/^/| /' conftest.$ac_ext >&5
6525
 
 
6526
 
ac_compiler_gnu=no
6527
 
fi
6528
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6529
 
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6530
 
 
6531
 
fi
6532
 
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6533
 
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6534
 
ac_ext=$ac_save_ext
6535
 
ac_test_FFLAGS=${FFLAGS+set}
6536
 
ac_save_FFLAGS=$FFLAGS
6537
 
FFLAGS=
6538
 
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6539
 
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6540
 
if test "${ac_cv_prog_f77_g+set}" = set; then
6541
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6542
 
else
6543
 
  FFLAGS=-g
6544
 
cat >conftest.$ac_ext <<_ACEOF
6545
 
      program main
6546
 
 
6547
 
      end
6548
 
_ACEOF
6549
 
rm -f conftest.$ac_objext
6550
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6551
 
  (eval $ac_compile) 2>conftest.er1
6552
 
  ac_status=$?
6553
 
  grep -v '^ *+' conftest.er1 >conftest.err
6554
 
  rm -f conftest.er1
6555
 
  cat conftest.err >&5
6556
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557
 
  (exit $ac_status); } &&
6558
 
         { ac_try='test -z "$ac_f77_werror_flag"
6559
 
                         || test ! -s conftest.err'
6560
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6561
 
  (eval $ac_try) 2>&5
6562
 
  ac_status=$?
6563
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564
 
  (exit $ac_status); }; } &&
6565
 
         { ac_try='test -s conftest.$ac_objext'
6566
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6567
 
  (eval $ac_try) 2>&5
6568
 
  ac_status=$?
6569
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570
 
  (exit $ac_status); }; }; then
6571
 
  ac_cv_prog_f77_g=yes
6572
 
else
6573
 
  echo "$as_me: failed program was:" >&5
6574
 
sed 's/^/| /' conftest.$ac_ext >&5
6575
 
 
6576
 
ac_cv_prog_f77_g=no
6577
 
fi
6578
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6579
 
 
6580
 
fi
6581
 
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6582
 
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6583
 
if test "$ac_test_FFLAGS" = set; then
6584
 
  FFLAGS=$ac_save_FFLAGS
6585
 
elif test $ac_cv_prog_f77_g = yes; then
6586
 
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6587
 
    FFLAGS="-g -O2"
6588
 
  else
6589
 
    FFLAGS="-g"
6590
 
  fi
6591
 
else
6592
 
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6593
 
    FFLAGS="-O2"
6594
 
  else
6595
 
    FFLAGS=
6596
 
  fi
6597
 
fi
6598
 
 
6599
 
G77=`test $ac_compiler_gnu = yes && echo yes`
6600
 
ac_ext=c
6601
 
ac_cpp='$CPP $CPPFLAGS'
6602
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6603
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6604
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6605
 
 
6606
 
 
6607
 
 
6608
 
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6609
 
 
6610
 
# find the maximum length of command line arguments
6611
 
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6612
 
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6613
 
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6614
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6615
 
else
6616
 
    i=0
6617
 
  teststring="ABCD"
6618
 
 
6619
 
  case $build_os in
6620
 
  msdosdjgpp*)
6621
 
    # On DJGPP, this test can blow up pretty badly due to problems in libc
6622
 
    # (any single argument exceeding 2000 bytes causes a buffer overrun
6623
 
    # during glob expansion).  Even if it were fixed, the result of this
6624
 
    # check would be larger than it should be.
6625
 
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6626
 
    ;;
6627
 
 
6628
 
  gnu*)
6629
 
    # Under GNU Hurd, this test is not required because there is
6630
 
    # no limit to the length of command line arguments.
6631
 
    # Libtool will interpret -1 as no limit whatsoever
6632
 
    lt_cv_sys_max_cmd_len=-1;
6633
 
    ;;
6634
 
 
6635
 
  cygwin* | mingw*)
6636
 
    # On Win9x/ME, this test blows up -- it succeeds, but takes
6637
 
    # about 5 minutes as the teststring grows exponentially.
6638
 
    # Worse, since 9x/ME are not pre-emptively multitasking,
6639
 
    # you end up with a "frozen" computer, even though with patience
6640
 
    # the test eventually succeeds (with a max line length of 256k).
6641
 
    # Instead, let's just punt: use the minimum linelength reported by
6642
 
    # all of the supported platforms: 8192 (on NT/2K/XP).
6643
 
    lt_cv_sys_max_cmd_len=8192;
6644
 
    ;;
6645
 
 
6646
 
  amigaos*)
6647
 
    # On AmigaOS with pdksh, this test takes hours, literally.
6648
 
    # So we just punt and use a minimum line length of 8192.
6649
 
    lt_cv_sys_max_cmd_len=8192;
6650
 
    ;;
6651
 
 
6652
 
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6653
 
    # This has been around since 386BSD, at least.  Likely further.
6654
 
    if test -x /sbin/sysctl; then
6655
 
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6656
 
    elif test -x /usr/sbin/sysctl; then
6657
 
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6658
 
    else
6659
 
      lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
6660
 
    fi
6661
 
    # And add a safety zone
6662
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6663
 
    ;;
6664
 
  osf*)
6665
 
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6666
 
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6667
 
    # nice to cause kernel panics so lets avoid the loop below.
6668
 
    # First set a reasonable default.
6669
 
    lt_cv_sys_max_cmd_len=16384
6670
 
    # 
6671
 
    if test -x /sbin/sysconfig; then
6672
 
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6673
 
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6674
 
      esac
6675
 
    fi
6676
 
    ;;
6677
 
  *)
6678
 
    # If test is not a shell built-in, we'll probably end up computing a
6679
 
    # maximum length that is only half of the actual maximum length, but
6680
 
    # we can't tell.
6681
 
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6682
 
    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6683
 
               = "XX$teststring") >/dev/null 2>&1 &&
6684
 
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
6685
 
            lt_cv_sys_max_cmd_len=$new_result &&
6686
 
            test $i != 17 # 1/2 MB should be enough
6687
 
    do
6688
 
      i=`expr $i + 1`
6689
 
      teststring=$teststring$teststring
6690
 
    done
6691
 
    teststring=
6692
 
    # Add a significant safety factor because C++ compilers can tack on massive
6693
 
    # amounts of additional arguments before passing them to the linker.
6694
 
    # It appears as though 1/2 is a usable value.
6695
 
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6696
 
    ;;
6697
 
  esac
6698
 
 
6699
 
fi
6700
 
 
6701
 
if test -n $lt_cv_sys_max_cmd_len ; then
6702
 
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6703
 
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6704
 
else
6705
 
  echo "$as_me:$LINENO: result: none" >&5
6706
 
echo "${ECHO_T}none" >&6
6707
 
fi
6708
 
 
6709
 
 
6710
 
 
6711
 
 
6712
 
# Check for command to grab the raw symbol name followed by C symbol from nm.
6713
 
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6714
 
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6715
 
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6716
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6717
 
else
6718
 
  
6719
 
# These are sane defaults that work on at least a few old systems.
6720
 
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6721
 
 
6722
 
# Character class describing NM global symbol codes.
6723
 
symcode='[BCDEGRST]'
6724
 
 
6725
 
# Regexp to match symbols that can be accessed directly from C.
6726
 
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6727
 
 
6728
 
# Transform an extracted symbol line into a proper C declaration
6729
 
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6730
 
 
6731
 
# Transform an extracted symbol line into symbol name and symbol address
6732
 
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'"
6733
 
 
6734
 
# Define system-specific variables.
6735
 
case $host_os in
6736
 
aix*)
6737
 
  symcode='[BCDT]'
6738
 
  ;;
6739
 
cygwin* | mingw* | pw32*)
6740
 
  symcode='[ABCDGISTW]'
6741
 
  ;;
6742
 
hpux*) # Its linker distinguishes data from code symbols
6743
 
  if test "$host_cpu" = ia64; then
6744
 
    symcode='[ABCDEGRST]'
6745
 
  fi
6746
 
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6747
 
  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'"
6748
 
  ;;
6749
 
linux*)
6750
 
  if test "$host_cpu" = ia64; then
6751
 
    symcode='[ABCDGIRSTW]'
6752
 
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6753
 
    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'"
6754
 
  fi
6755
 
  ;;
6756
 
irix* | nonstopux*)
6757
 
  symcode='[BCDEGRST]'
6758
 
  ;;
6759
 
osf*)
6760
 
  symcode='[BCDEGQRST]'
6761
 
  ;;
6762
 
solaris* | sysv5*)
6763
 
  symcode='[BDRT]'
6764
 
  ;;
6765
 
sysv4)
6766
 
  symcode='[DFNSTU]'
6767
 
  ;;
6768
 
esac
6769
 
 
6770
 
# Handle CRLF in mingw tool chain
6771
 
opt_cr=
6772
 
case $build_os in
6773
 
mingw*)
6774
 
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6775
 
  ;;
6776
 
esac
6777
 
 
6778
 
# If we're using GNU nm, then use its standard symbol codes.
6779
 
case `$NM -V 2>&1` in
6780
 
*GNU* | *'with BFD'*)
6781
 
  symcode='[ABCDGIRSTW]' ;;
6782
 
esac
6783
 
 
6784
 
# Try without a prefix undercore, then with it.
6785
 
for ac_symprfx in "" "_"; do
6786
 
 
6787
 
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6788
 
  symxfrm="\\1 $ac_symprfx\\2 \\2"
6789
 
 
6790
 
  # Write the raw and C identifiers.
6791
 
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6792
 
 
6793
 
  # Check to see that the pipe works correctly.
6794
 
  pipe_works=no
6795
 
 
6796
 
  rm -f conftest*
6797
 
  cat > conftest.$ac_ext <<EOF
6798
 
#ifdef __cplusplus
6799
 
extern "C" {
6800
 
#endif
6801
 
char nm_test_var;
6802
 
void nm_test_func(){}
6803
 
#ifdef __cplusplus
6804
 
}
6805
 
#endif
6806
 
int main(){nm_test_var='a';nm_test_func();return(0);}
6807
 
EOF
6808
 
 
6809
 
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6810
 
  (eval $ac_compile) 2>&5
6811
 
  ac_status=$?
6812
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813
 
  (exit $ac_status); }; then
6814
 
    # Now try to grab the symbols.
6815
 
    nlist=conftest.nm
6816
 
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6817
 
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6818
 
  ac_status=$?
6819
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820
 
  (exit $ac_status); } && test -s "$nlist"; then
6821
 
      # Try sorting and uniquifying the output.
6822
 
      if sort "$nlist" | uniq > "$nlist"T; then
6823
 
        mv -f "$nlist"T "$nlist"
6824
 
      else
6825
 
        rm -f "$nlist"T
6826
 
      fi
6827
 
 
6828
 
      # Make sure that we snagged all the symbols we need.
6829
 
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6830
 
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
6831
 
          cat <<EOF > conftest.$ac_ext
6832
 
#ifdef __cplusplus
6833
 
extern "C" {
6834
 
#endif
6835
 
 
6836
 
EOF
6837
 
          # Now generate the symbol file.
6838
 
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6839
 
 
6840
 
          cat <<EOF >> conftest.$ac_ext
6841
 
#if defined (__STDC__) && __STDC__
6842
 
# define lt_ptr_t void *
6843
 
#else
6844
 
# define lt_ptr_t char *
6845
 
# define const
6846
 
#endif
6847
 
 
6848
 
/* The mapping between symbol names and symbols. */
6849
 
const struct {
6850
 
  const char *name;
6851
 
  lt_ptr_t address;
6852
 
}
6853
 
lt_preloaded_symbols[] =
6854
 
{
6855
 
EOF
6856
 
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6857
 
          cat <<\EOF >> conftest.$ac_ext
6858
 
  {0, (lt_ptr_t) 0}
6859
 
};
6860
 
 
6861
 
#ifdef __cplusplus
6862
 
}
6863
 
#endif
6864
 
EOF
6865
 
          # Now try linking the two files.
6866
 
          mv conftest.$ac_objext conftstm.$ac_objext
6867
 
          lt_save_LIBS="$LIBS"
6868
 
          lt_save_CFLAGS="$CFLAGS"
6869
 
          LIBS="conftstm.$ac_objext"
6870
 
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6871
 
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6872
 
  (eval $ac_link) 2>&5
6873
 
  ac_status=$?
6874
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875
 
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6876
 
            pipe_works=yes
6877
 
          fi
6878
 
          LIBS="$lt_save_LIBS"
6879
 
          CFLAGS="$lt_save_CFLAGS"
6880
 
        else
6881
 
          echo "cannot find nm_test_func in $nlist" >&5
6882
 
        fi
6883
 
      else
6884
 
        echo "cannot find nm_test_var in $nlist" >&5
6885
 
      fi
6886
 
    else
6887
 
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6888
 
    fi
6889
 
  else
6890
 
    echo "$progname: failed program was:" >&5
6891
 
    cat conftest.$ac_ext >&5
6892
 
  fi
6893
 
  rm -f conftest* conftst*
6894
 
 
6895
 
  # Do not use the global_symbol_pipe unless it works.
6896
 
  if test "$pipe_works" = yes; then
6897
 
    break
6898
 
  else
6899
 
    lt_cv_sys_global_symbol_pipe=
6900
 
  fi
6901
 
done
6902
 
 
6903
 
fi
6904
 
 
6905
 
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6906
 
  lt_cv_sys_global_symbol_to_cdecl=
6907
 
fi
6908
 
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6909
 
  echo "$as_me:$LINENO: result: failed" >&5
6910
 
echo "${ECHO_T}failed" >&6
6911
 
else
6912
 
  echo "$as_me:$LINENO: result: ok" >&5
6913
 
echo "${ECHO_T}ok" >&6
6914
 
fi
6915
 
 
6916
 
echo "$as_me:$LINENO: checking for objdir" >&5
6917
 
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6918
 
if test "${lt_cv_objdir+set}" = set; then
6919
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6920
 
else
6921
 
  rm -f .libs 2>/dev/null
6922
 
mkdir .libs 2>/dev/null
6923
 
if test -d .libs; then
6924
 
  lt_cv_objdir=.libs
6925
 
else
6926
 
  # MS-DOS does not allow filenames that begin with a dot.
6927
 
  lt_cv_objdir=_libs
6928
 
fi
6929
 
rmdir .libs 2>/dev/null
6930
 
fi
6931
 
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6932
 
echo "${ECHO_T}$lt_cv_objdir" >&6
6933
 
objdir=$lt_cv_objdir
6934
 
 
6935
 
 
6936
 
 
6937
 
 
6938
 
 
6939
 
case $host_os in
6940
 
aix3*)
6941
 
  # AIX sometimes has problems with the GCC collect2 program.  For some
6942
 
  # reason, if we set the COLLECT_NAMES environment variable, the problems
6943
 
  # vanish in a puff of smoke.
6944
 
  if test "X${COLLECT_NAMES+set}" != Xset; then
6945
 
    COLLECT_NAMES=
6946
 
    export COLLECT_NAMES
6947
 
  fi
6948
 
  ;;
6949
 
esac
6950
 
 
6951
 
# Sed substitution that helps us do robust quoting.  It backslashifies
6952
 
# metacharacters that are still active within double-quoted strings.
6953
 
Xsed='sed -e s/^X//'
6954
 
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6955
 
 
6956
 
# Same as above, but do not quote variable references.
6957
 
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6958
 
 
6959
 
# Sed substitution to delay expansion of an escaped shell variable in a
6960
 
# double_quote_subst'ed string.
6961
 
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6962
 
 
6963
 
# Sed substitution to avoid accidental globbing in evaled expressions
6964
 
no_glob_subst='s/\*/\\\*/g'
6965
 
 
6966
 
# Constants:
6967
 
rm="rm -f"
6968
 
 
6969
 
# Global variables:
6970
 
default_ofile=libtool
6971
 
can_build_shared=yes
6972
 
 
6973
 
# All known linkers require a `.a' archive for static linking (except M$VC,
6974
 
# which needs '.lib').
6975
 
libext=a
6976
 
ltmain="$ac_aux_dir/ltmain.sh"
6977
 
ofile="$default_ofile"
6978
 
with_gnu_ld="$lt_cv_prog_gnu_ld"
6979
 
 
6980
 
if test -n "$ac_tool_prefix"; then
6981
 
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6982
 
set dummy ${ac_tool_prefix}ar; ac_word=$2
6983
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
6984
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6985
 
if test "${ac_cv_prog_AR+set}" = set; then
6986
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6987
 
else
6988
 
  if test -n "$AR"; then
6989
 
  ac_cv_prog_AR="$AR" # Let the user override the test.
6990
 
else
6991
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6992
 
for as_dir in $PATH
6993
 
do
6994
 
  IFS=$as_save_IFS
6995
 
  test -z "$as_dir" && as_dir=.
6996
 
  for ac_exec_ext in '' $ac_executable_extensions; do
6997
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6998
 
    ac_cv_prog_AR="${ac_tool_prefix}ar"
6999
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7000
 
    break 2
7001
 
  fi
7002
 
done
7003
 
done
7004
 
 
7005
 
fi
7006
 
fi
7007
 
AR=$ac_cv_prog_AR
7008
 
if test -n "$AR"; then
7009
 
  echo "$as_me:$LINENO: result: $AR" >&5
7010
 
echo "${ECHO_T}$AR" >&6
7011
 
else
7012
 
  echo "$as_me:$LINENO: result: no" >&5
7013
 
echo "${ECHO_T}no" >&6
7014
 
fi
7015
 
 
7016
 
fi
7017
 
if test -z "$ac_cv_prog_AR"; then
7018
 
  ac_ct_AR=$AR
7019
 
  # Extract the first word of "ar", so it can be a program name with args.
7020
 
set dummy ar; ac_word=$2
7021
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
7022
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7023
 
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7024
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7025
 
else
7026
 
  if test -n "$ac_ct_AR"; then
7027
 
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7028
 
else
7029
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7030
 
for as_dir in $PATH
7031
 
do
7032
 
  IFS=$as_save_IFS
7033
 
  test -z "$as_dir" && as_dir=.
7034
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7035
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7036
 
    ac_cv_prog_ac_ct_AR="ar"
7037
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7038
 
    break 2
7039
 
  fi
7040
 
done
7041
 
done
7042
 
 
7043
 
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7044
 
fi
7045
 
fi
7046
 
ac_ct_AR=$ac_cv_prog_ac_ct_AR
7047
 
if test -n "$ac_ct_AR"; then
7048
 
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7049
 
echo "${ECHO_T}$ac_ct_AR" >&6
7050
 
else
7051
 
  echo "$as_me:$LINENO: result: no" >&5
7052
 
echo "${ECHO_T}no" >&6
7053
 
fi
7054
 
 
7055
 
  AR=$ac_ct_AR
7056
 
else
7057
 
  AR="$ac_cv_prog_AR"
7058
 
fi
7059
 
 
7060
 
if test -n "$ac_tool_prefix"; then
7061
 
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7062
 
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7063
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
7064
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7065
 
if test "${ac_cv_prog_RANLIB+set}" = set; then
7066
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7067
 
else
7068
 
  if test -n "$RANLIB"; then
7069
 
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7070
 
else
7071
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7072
 
for as_dir in $PATH
7073
 
do
7074
 
  IFS=$as_save_IFS
7075
 
  test -z "$as_dir" && as_dir=.
7076
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7077
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7078
 
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7079
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7080
 
    break 2
7081
 
  fi
7082
 
done
7083
 
done
7084
 
 
7085
 
fi
7086
 
fi
7087
 
RANLIB=$ac_cv_prog_RANLIB
7088
 
if test -n "$RANLIB"; then
7089
 
  echo "$as_me:$LINENO: result: $RANLIB" >&5
7090
 
echo "${ECHO_T}$RANLIB" >&6
7091
 
else
7092
 
  echo "$as_me:$LINENO: result: no" >&5
7093
 
echo "${ECHO_T}no" >&6
7094
 
fi
7095
 
 
7096
 
fi
7097
 
if test -z "$ac_cv_prog_RANLIB"; then
7098
 
  ac_ct_RANLIB=$RANLIB
7099
 
  # Extract the first word of "ranlib", so it can be a program name with args.
7100
 
set dummy ranlib; ac_word=$2
7101
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
7102
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7103
 
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7104
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7105
 
else
7106
 
  if test -n "$ac_ct_RANLIB"; then
7107
 
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7108
 
else
7109
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7110
 
for as_dir in $PATH
7111
 
do
7112
 
  IFS=$as_save_IFS
7113
 
  test -z "$as_dir" && as_dir=.
7114
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7115
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7116
 
    ac_cv_prog_ac_ct_RANLIB="ranlib"
7117
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7118
 
    break 2
7119
 
  fi
7120
 
done
7121
 
done
7122
 
 
7123
 
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7124
 
fi
7125
 
fi
7126
 
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7127
 
if test -n "$ac_ct_RANLIB"; then
7128
 
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7129
 
echo "${ECHO_T}$ac_ct_RANLIB" >&6
7130
 
else
7131
 
  echo "$as_me:$LINENO: result: no" >&5
7132
 
echo "${ECHO_T}no" >&6
7133
 
fi
7134
 
 
7135
 
  RANLIB=$ac_ct_RANLIB
7136
 
else
7137
 
  RANLIB="$ac_cv_prog_RANLIB"
7138
 
fi
7139
 
 
7140
 
if test -n "$ac_tool_prefix"; then
7141
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7142
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
7143
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
7144
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7145
 
if test "${ac_cv_prog_STRIP+set}" = set; then
7146
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7147
 
else
7148
 
  if test -n "$STRIP"; then
7149
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7150
 
else
7151
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7152
 
for as_dir in $PATH
7153
 
do
7154
 
  IFS=$as_save_IFS
7155
 
  test -z "$as_dir" && as_dir=.
7156
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7157
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7158
 
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7159
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7160
 
    break 2
7161
 
  fi
7162
 
done
7163
 
done
7164
 
 
7165
 
fi
7166
 
fi
7167
 
STRIP=$ac_cv_prog_STRIP
7168
 
if test -n "$STRIP"; then
7169
 
  echo "$as_me:$LINENO: result: $STRIP" >&5
7170
 
echo "${ECHO_T}$STRIP" >&6
7171
 
else
7172
 
  echo "$as_me:$LINENO: result: no" >&5
7173
 
echo "${ECHO_T}no" >&6
7174
 
fi
7175
 
 
7176
 
fi
7177
 
if test -z "$ac_cv_prog_STRIP"; then
7178
 
  ac_ct_STRIP=$STRIP
7179
 
  # Extract the first word of "strip", so it can be a program name with args.
7180
 
set dummy strip; ac_word=$2
7181
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
7182
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7183
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7184
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7185
 
else
7186
 
  if test -n "$ac_ct_STRIP"; then
7187
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7188
 
else
7189
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7190
 
for as_dir in $PATH
7191
 
do
7192
 
  IFS=$as_save_IFS
7193
 
  test -z "$as_dir" && as_dir=.
7194
 
  for ac_exec_ext in '' $ac_executable_extensions; do
7195
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7196
 
    ac_cv_prog_ac_ct_STRIP="strip"
7197
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7198
 
    break 2
7199
 
  fi
7200
 
done
7201
 
done
7202
 
 
7203
 
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7204
 
fi
7205
 
fi
7206
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7207
 
if test -n "$ac_ct_STRIP"; then
7208
 
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7209
 
echo "${ECHO_T}$ac_ct_STRIP" >&6
7210
 
else
7211
 
  echo "$as_me:$LINENO: result: no" >&5
7212
 
echo "${ECHO_T}no" >&6
7213
 
fi
7214
 
 
7215
 
  STRIP=$ac_ct_STRIP
7216
 
else
7217
 
  STRIP="$ac_cv_prog_STRIP"
7218
 
fi
7219
 
 
7220
 
 
7221
 
old_CC="$CC"
7222
 
old_CFLAGS="$CFLAGS"
7223
 
 
7224
 
# Set sane defaults for various variables
7225
 
test -z "$AR" && AR=ar
7226
 
test -z "$AR_FLAGS" && AR_FLAGS=cru
7227
 
test -z "$AS" && AS=as
7228
 
test -z "$CC" && CC=cc
7229
 
test -z "$LTCC" && LTCC=$CC
7230
 
test -z "$DLLTOOL" && DLLTOOL=dlltool
7231
 
test -z "$LD" && LD=ld
7232
 
test -z "$LN_S" && LN_S="ln -s"
7233
 
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7234
 
test -z "$NM" && NM=nm
7235
 
test -z "$SED" && SED=sed
7236
 
test -z "$OBJDUMP" && OBJDUMP=objdump
7237
 
test -z "$RANLIB" && RANLIB=:
7238
 
test -z "$STRIP" && STRIP=:
7239
 
test -z "$ac_objext" && ac_objext=o
7240
 
 
7241
 
# Determine commands to create old-style static archives.
7242
 
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7243
 
old_postinstall_cmds='chmod 644 $oldlib'
7244
 
old_postuninstall_cmds=
7245
 
 
7246
 
if test -n "$RANLIB"; then
7247
 
  case $host_os in
7248
 
  openbsd*)
7249
 
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7250
 
    ;;
7251
 
  *)
7252
 
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7253
 
    ;;
7254
 
  esac
7255
 
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7256
 
fi
7257
 
 
7258
 
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
7259
 
 
7260
 
# Only perform the check for file, if the check method requires it
7261
 
case $deplibs_check_method in
7262
 
file_magic*)
7263
 
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7264
 
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7265
 
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7266
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7267
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7268
 
else
7269
 
  case $MAGIC_CMD in
7270
 
[\\/*] |  ?:[\\/]*)
7271
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7272
 
  ;;
7273
 
*)
7274
 
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7275
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7276
 
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7277
 
  for ac_dir in $ac_dummy; do
7278
 
    IFS="$lt_save_ifs"
7279
 
    test -z "$ac_dir" && ac_dir=.
7280
 
    if test -f $ac_dir/${ac_tool_prefix}file; then
7281
 
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7282
 
      if test -n "$file_magic_test_file"; then
7283
 
        case $deplibs_check_method in
7284
 
        "file_magic "*)
7285
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7286
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7287
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7288
 
            $EGREP "$file_magic_regex" > /dev/null; then
7289
 
            :
7290
 
          else
7291
 
            cat <<EOF 1>&2
7292
 
 
7293
 
*** Warning: the command libtool uses to detect shared libraries,
7294
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
7295
 
*** The result is that libtool may fail to recognize shared libraries
7296
 
*** as such.  This will affect the creation of libtool libraries that
7297
 
*** depend on shared libraries, but programs linked with such libtool
7298
 
*** libraries will work regardless of this problem.  Nevertheless, you
7299
 
*** may want to report the problem to your system manager and/or to
7300
 
*** bug-libtool@gnu.org
7301
 
 
7302
 
EOF
7303
 
          fi ;;
7304
 
        esac
7305
 
      fi
7306
 
      break
7307
 
    fi
7308
 
  done
7309
 
  IFS="$lt_save_ifs"
7310
 
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7311
 
  ;;
7312
 
esac
7313
 
fi
7314
 
 
7315
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7316
 
if test -n "$MAGIC_CMD"; then
7317
 
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7318
 
echo "${ECHO_T}$MAGIC_CMD" >&6
7319
 
else
7320
 
  echo "$as_me:$LINENO: result: no" >&5
7321
 
echo "${ECHO_T}no" >&6
7322
 
fi
7323
 
 
7324
 
if test -z "$lt_cv_path_MAGIC_CMD"; then
7325
 
  if test -n "$ac_tool_prefix"; then
7326
 
    echo "$as_me:$LINENO: checking for file" >&5
7327
 
echo $ECHO_N "checking for file... $ECHO_C" >&6
7328
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7329
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7330
 
else
7331
 
  case $MAGIC_CMD in
7332
 
[\\/*] |  ?:[\\/]*)
7333
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7334
 
  ;;
7335
 
*)
7336
 
  lt_save_MAGIC_CMD="$MAGIC_CMD"
7337
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7338
 
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7339
 
  for ac_dir in $ac_dummy; do
7340
 
    IFS="$lt_save_ifs"
7341
 
    test -z "$ac_dir" && ac_dir=.
7342
 
    if test -f $ac_dir/file; then
7343
 
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7344
 
      if test -n "$file_magic_test_file"; then
7345
 
        case $deplibs_check_method in
7346
 
        "file_magic "*)
7347
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7348
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7349
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7350
 
            $EGREP "$file_magic_regex" > /dev/null; then
7351
 
            :
7352
 
          else
7353
 
            cat <<EOF 1>&2
7354
 
 
7355
 
*** Warning: the command libtool uses to detect shared libraries,
7356
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
7357
 
*** The result is that libtool may fail to recognize shared libraries
7358
 
*** as such.  This will affect the creation of libtool libraries that
7359
 
*** depend on shared libraries, but programs linked with such libtool
7360
 
*** libraries will work regardless of this problem.  Nevertheless, you
7361
 
*** may want to report the problem to your system manager and/or to
7362
 
*** bug-libtool@gnu.org
7363
 
 
7364
 
EOF
7365
 
          fi ;;
7366
 
        esac
7367
 
      fi
7368
 
      break
7369
 
    fi
7370
 
  done
7371
 
  IFS="$lt_save_ifs"
7372
 
  MAGIC_CMD="$lt_save_MAGIC_CMD"
7373
 
  ;;
7374
 
esac
7375
 
fi
7376
 
 
7377
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7378
 
if test -n "$MAGIC_CMD"; then
7379
 
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7380
 
echo "${ECHO_T}$MAGIC_CMD" >&6
7381
 
else
7382
 
  echo "$as_me:$LINENO: result: no" >&5
7383
 
echo "${ECHO_T}no" >&6
7384
 
fi
7385
 
 
7386
 
  else
7387
 
    MAGIC_CMD=:
7388
 
  fi
7389
 
fi
7390
 
 
7391
 
  fi
7392
 
  ;;
7393
 
esac
7394
 
 
7395
 
enable_dlopen=no
7396
 
enable_win32_dll=no
7397
 
 
7398
 
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7399
 
if test "${enable_libtool_lock+set}" = set; then
7400
 
  enableval="$enable_libtool_lock"
7401
 
  
7402
 
fi; 
7403
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7404
 
 
7405
 
 
7406
 
# Check whether --with-pic or --without-pic was given.
7407
 
if test "${with_pic+set}" = set; then
7408
 
  withval="$with_pic"
7409
 
  pic_mode="$withval"
7410
 
else
7411
 
  pic_mode=default
7412
 
fi; 
7413
 
test -z "$pic_mode" && pic_mode=default
7414
 
 
7415
 
# Use C for the default configuration in the libtool script
7416
 
tagname=
7417
 
lt_save_CC="$CC"
7418
 
ac_ext=c
7419
 
ac_cpp='$CPP $CPPFLAGS'
7420
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7421
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7422
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7423
 
 
7424
 
 
7425
 
# Source file extension for C test sources.
7426
 
ac_ext=c
7427
 
 
7428
 
# Object file extension for compiled C test sources.
7429
 
objext=o
7430
 
objext=$objext
7431
 
 
7432
 
# Code to be used in simple compile tests
7433
 
lt_simple_compile_test_code="int some_variable = 0;\n"
7434
 
 
7435
 
# Code to be used in simple link tests
7436
 
lt_simple_link_test_code='int main(){return(0);}\n'
7437
 
 
7438
 
 
7439
 
# If no C compiler was specified, use CC.
7440
 
LTCC=${LTCC-"$CC"}
7441
 
 
7442
 
# Allow CC to be a program name with arguments.
7443
 
compiler=$CC
7444
 
 
7445
 
 
7446
 
#
7447
 
# Check for any special shared library compilation flags.
7448
 
#
7449
 
lt_prog_cc_shlib=
7450
 
if test "$GCC" = no; then
7451
 
  case $host_os in
7452
 
  sco3.2v5*)
7453
 
    lt_prog_cc_shlib='-belf'
7454
 
    ;;
7455
 
  esac
7456
 
fi
7457
 
if test -n "$lt_prog_cc_shlib"; then
7458
 
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7459
 
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7460
 
  if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
7461
 
  else
7462
 
    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7463
 
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7464
 
    lt_cv_prog_cc_can_build_shared=no
7465
 
  fi
7466
 
fi
7467
 
 
7468
 
 
7469
 
#
7470
 
# Check to make sure the static flag actually works.
7471
 
#
7472
 
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7473
 
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
7474
 
if test "${lt_prog_compiler_static_works+set}" = set; then
7475
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7476
 
else
7477
 
  lt_prog_compiler_static_works=no
7478
 
   save_LDFLAGS="$LDFLAGS"
7479
 
   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7480
 
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7481
 
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7482
 
     # The compiler can only warn and ignore the option if not recognized
7483
 
     # So say no if there are warnings
7484
 
     if test -s conftest.err; then
7485
 
       # Append any errors to the config.log.
7486
 
       cat conftest.err 1>&5
7487
 
     else
7488
 
       lt_prog_compiler_static_works=yes
7489
 
     fi
7490
 
   fi
7491
 
   $rm conftest*
7492
 
   LDFLAGS="$save_LDFLAGS"
7493
 
 
7494
 
fi
7495
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7496
 
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7497
 
 
7498
 
if test x"$lt_prog_compiler_static_works" = xyes; then
7499
 
    :
7500
 
else
7501
 
    lt_prog_compiler_static=
7502
 
fi
7503
 
 
7504
 
 
7505
 
 
7506
 
## CAVEAT EMPTOR:
7507
 
## There is no encapsulation within the following macros, do not change
7508
 
## the running order or otherwise move them around unless you know exactly
7509
 
## what you are doing...
7510
 
 
7511
 
lt_prog_compiler_no_builtin_flag=
7512
 
 
7513
 
if test "$GCC" = yes; then
7514
 
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7515
 
 
7516
 
  
7517
 
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7518
 
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7519
 
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7520
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7521
 
else
7522
 
  lt_cv_prog_compiler_rtti_exceptions=no
7523
 
  ac_outfile=conftest.$ac_objext
7524
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7525
 
   lt_compiler_flag="-fno-rtti -fno-exceptions"
7526
 
   # Insert the option either (1) after the last *FLAGS variable, or
7527
 
   # (2) before a word containing "conftest.", or (3) at the end.
7528
 
   # Note that $ac_compile itself does not contain backslashes and begins
7529
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7530
 
   # The option is referenced via a variable to avoid confusing sed.
7531
 
   lt_compile=`echo "$ac_compile" | $SED \
7532
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7533
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7534
 
   -e 's:$: $lt_compiler_flag:'`
7535
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7536
 
   (eval "$lt_compile" 2>conftest.err)
7537
 
   ac_status=$?
7538
 
   cat conftest.err >&5
7539
 
   echo "$as_me:__oline__: \$? = $ac_status" >&5
7540
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
7541
 
     # The compiler can only warn and ignore the option if not recognized
7542
 
     # So say no if there are warnings
7543
 
     if test ! -s conftest.err; then
7544
 
       lt_cv_prog_compiler_rtti_exceptions=yes
7545
 
     fi
7546
 
   fi
7547
 
   $rm conftest*
7548
 
 
7549
 
fi
7550
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7551
 
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7552
 
 
7553
 
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7554
 
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7555
 
else
7556
 
    :
7557
 
fi
7558
 
 
7559
 
fi
7560
 
 
7561
 
lt_prog_compiler_wl=
7562
 
lt_prog_compiler_pic=
7563
 
lt_prog_compiler_static=
7564
 
 
7565
 
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7566
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7567
 
 
7568
 
  if test "$GCC" = yes; then
7569
 
    lt_prog_compiler_wl='-Wl,'
7570
 
    lt_prog_compiler_static='-static'
7571
 
 
7572
 
    case $host_os in
7573
 
      aix*)
7574
 
      # All AIX code is PIC.
7575
 
      if test "$host_cpu" = ia64; then
7576
 
        # AIX 5 now supports IA64 processor
7577
 
        lt_prog_compiler_static='-Bstatic'
7578
 
      fi
7579
 
      ;;
7580
 
 
7581
 
    amigaos*)
7582
 
      # FIXME: we need at least 68020 code to build shared libraries, but
7583
 
      # adding the `-m68020' flag to GCC prevents building anything better,
7584
 
      # like `-m68040'.
7585
 
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7586
 
      ;;
7587
 
 
7588
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7589
 
      # PIC is the default for these OSes.
7590
 
      ;;
7591
 
 
7592
 
    mingw* | pw32* | os2*)
7593
 
      # This hack is so that the source file can tell whether it is being
7594
 
      # built for inclusion in a dll (and should export symbols for example).
7595
 
      lt_prog_compiler_pic='-DDLL_EXPORT'
7596
 
      ;;
7597
 
 
7598
 
    darwin* | rhapsody*)
7599
 
      # PIC is the default on this platform
7600
 
      # Common symbols not allowed in MH_DYLIB files
7601
 
      lt_prog_compiler_pic='-fno-common'
7602
 
      ;;
7603
 
 
7604
 
    msdosdjgpp*)
7605
 
      # Just because we use GCC doesn't mean we suddenly get shared libraries
7606
 
      # on systems that don't support them.
7607
 
      lt_prog_compiler_can_build_shared=no
7608
 
      enable_shared=no
7609
 
      ;;
7610
 
 
7611
 
    sysv4*MP*)
7612
 
      if test -d /usr/nec; then
7613
 
        lt_prog_compiler_pic=-Kconform_pic
7614
 
      fi
7615
 
      ;;
7616
 
 
7617
 
    hpux*)
7618
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7619
 
      # not for PA HP-UX.
7620
 
      case "$host_cpu" in
7621
 
      hppa*64*|ia64*)
7622
 
        # +Z the default
7623
 
        ;;
7624
 
      *)
7625
 
        lt_prog_compiler_pic='-fPIC'
7626
 
        ;;
7627
 
      esac
7628
 
      ;;
7629
 
 
7630
 
    *)
7631
 
      lt_prog_compiler_pic='-fPIC'
7632
 
      ;;
7633
 
    esac
7634
 
  else
7635
 
    # PORTME Check for flag to pass linker flags through the system compiler.
7636
 
    case $host_os in
7637
 
    aix*)
7638
 
      lt_prog_compiler_wl='-Wl,'
7639
 
      if test "$host_cpu" = ia64; then
7640
 
        # AIX 5 now supports IA64 processor
7641
 
        lt_prog_compiler_static='-Bstatic'
7642
 
      else
7643
 
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7644
 
      fi
7645
 
      ;;
7646
 
      darwin*)
7647
 
        # PIC is the default on this platform
7648
 
        # Common symbols not allowed in MH_DYLIB files
7649
 
       case "$cc_basename" in
7650
 
         xlc*)
7651
 
         lt_prog_compiler_pic='-qnocommon'
7652
 
         lt_prog_compiler_wl='-Wl,'
7653
 
         ;;
7654
 
       esac
7655
 
       ;;
7656
 
 
7657
 
    mingw* | pw32* | os2*)
7658
 
      # This hack is so that the source file can tell whether it is being
7659
 
      # built for inclusion in a dll (and should export symbols for example).
7660
 
      lt_prog_compiler_pic='-DDLL_EXPORT'
7661
 
      ;;
7662
 
 
7663
 
    hpux9* | hpux10* | hpux11*)
7664
 
      lt_prog_compiler_wl='-Wl,'
7665
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7666
 
      # not for PA HP-UX.
7667
 
      case "$host_cpu" in
7668
 
      hppa*64*|ia64*)
7669
 
        # +Z the default
7670
 
        ;;
7671
 
      *)
7672
 
        lt_prog_compiler_pic='+Z'
7673
 
        ;;
7674
 
      esac
7675
 
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7676
 
      lt_prog_compiler_static='${wl}-a ${wl}archive'
7677
 
      ;;
7678
 
 
7679
 
    irix5* | irix6* | nonstopux*)
7680
 
      lt_prog_compiler_wl='-Wl,'
7681
 
      # PIC (with -KPIC) is the default.
7682
 
      lt_prog_compiler_static='-non_shared'
7683
 
      ;;
7684
 
 
7685
 
    newsos6)
7686
 
      lt_prog_compiler_pic='-KPIC'
7687
 
      lt_prog_compiler_static='-Bstatic'
7688
 
      ;;
7689
 
 
7690
 
    linux*)
7691
 
      case $cc_basename in
7692
 
      icc* | ecc*)
7693
 
        lt_prog_compiler_wl='-Wl,'
7694
 
        lt_prog_compiler_pic='-KPIC'
7695
 
        lt_prog_compiler_static='-static'
7696
 
        ;;
7697
 
      pgcc | pgf77 | pgf90)
7698
 
        # Portland Group compilers (*not* the Pentium gcc compiler,
7699
 
        # which looks to be a dead project)
7700
 
        lt_prog_compiler_wl='-Wl,'
7701
 
        lt_prog_compiler_pic='-fpic'
7702
 
        lt_prog_compiler_static='-static'
7703
 
        ;;
7704
 
      ccc*)
7705
 
        lt_prog_compiler_wl='-Wl,'
7706
 
        # All Alpha code is PIC.
7707
 
        lt_prog_compiler_static='-non_shared'
7708
 
        ;;
7709
 
      esac
7710
 
      ;;
7711
 
 
7712
 
    osf3* | osf4* | osf5*)
7713
 
      lt_prog_compiler_wl='-Wl,'
7714
 
      # All OSF/1 code is PIC.
7715
 
      lt_prog_compiler_static='-non_shared'
7716
 
      ;;
7717
 
 
7718
 
    sco3.2v5*)
7719
 
      lt_prog_compiler_pic='-Kpic'
7720
 
      lt_prog_compiler_static='-dn'
7721
 
      ;;
7722
 
 
7723
 
    solaris*)
7724
 
      lt_prog_compiler_wl='-Wl,'
7725
 
      lt_prog_compiler_pic='-KPIC'
7726
 
      lt_prog_compiler_static='-Bstatic'
7727
 
      ;;
7728
 
 
7729
 
    sunos4*)
7730
 
      lt_prog_compiler_wl='-Qoption ld '
7731
 
      lt_prog_compiler_pic='-PIC'
7732
 
      lt_prog_compiler_static='-Bstatic'
7733
 
      ;;
7734
 
 
7735
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7736
 
      lt_prog_compiler_wl='-Wl,'
7737
 
      lt_prog_compiler_pic='-KPIC'
7738
 
      lt_prog_compiler_static='-Bstatic'
7739
 
      ;;
7740
 
 
7741
 
    sysv4*MP*)
7742
 
      if test -d /usr/nec ;then
7743
 
        lt_prog_compiler_pic='-Kconform_pic'
7744
 
        lt_prog_compiler_static='-Bstatic'
7745
 
      fi
7746
 
      ;;
7747
 
 
7748
 
    unicos*)
7749
 
      lt_prog_compiler_wl='-Wl,'
7750
 
      lt_prog_compiler_can_build_shared=no
7751
 
      ;;
7752
 
 
7753
 
    uts4*)
7754
 
      lt_prog_compiler_pic='-pic'
7755
 
      lt_prog_compiler_static='-Bstatic'
7756
 
      ;;
7757
 
 
7758
 
    *)
7759
 
      lt_prog_compiler_can_build_shared=no
7760
 
      ;;
7761
 
    esac
7762
 
  fi
7763
 
 
7764
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7765
 
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7766
 
 
7767
 
#
7768
 
# Check to make sure the PIC flag actually works.
7769
 
#
7770
 
if test -n "$lt_prog_compiler_pic"; then
7771
 
  
7772
 
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7773
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7774
 
if test "${lt_prog_compiler_pic_works+set}" = set; then
7775
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7776
 
else
7777
 
  lt_prog_compiler_pic_works=no
7778
 
  ac_outfile=conftest.$ac_objext
7779
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7780
 
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7781
 
   # Insert the option either (1) after the last *FLAGS variable, or
7782
 
   # (2) before a word containing "conftest.", or (3) at the end.
7783
 
   # Note that $ac_compile itself does not contain backslashes and begins
7784
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7785
 
   # The option is referenced via a variable to avoid confusing sed.
7786
 
   lt_compile=`echo "$ac_compile" | $SED \
7787
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7788
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7789
 
   -e 's:$: $lt_compiler_flag:'`
7790
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7791
 
   (eval "$lt_compile" 2>conftest.err)
7792
 
   ac_status=$?
7793
 
   cat conftest.err >&5
7794
 
   echo "$as_me:__oline__: \$? = $ac_status" >&5
7795
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
7796
 
     # The compiler can only warn and ignore the option if not recognized
7797
 
     # So say no if there are warnings
7798
 
     if test ! -s conftest.err; then
7799
 
       lt_prog_compiler_pic_works=yes
7800
 
     fi
7801
 
   fi
7802
 
   $rm conftest*
7803
 
 
7804
 
fi
7805
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7806
 
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7807
 
 
7808
 
if test x"$lt_prog_compiler_pic_works" = xyes; then
7809
 
    case $lt_prog_compiler_pic in
7810
 
     "" | " "*) ;;
7811
 
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7812
 
     esac
7813
 
else
7814
 
    lt_prog_compiler_pic=
7815
 
     lt_prog_compiler_can_build_shared=no
7816
 
fi
7817
 
 
7818
 
fi
7819
 
case "$host_os" in
7820
 
  # For platforms which do not support PIC, -DPIC is meaningless:
7821
 
  *djgpp*)
7822
 
    lt_prog_compiler_pic=
7823
 
    ;;
7824
 
  *)
7825
 
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7826
 
    ;;
7827
 
esac
7828
 
 
7829
 
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7830
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7831
 
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7832
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7833
 
else
7834
 
  lt_cv_prog_compiler_c_o=no
7835
 
   $rm -r conftest 2>/dev/null
7836
 
   mkdir conftest
7837
 
   cd conftest
7838
 
   mkdir out
7839
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7840
 
 
7841
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
7842
 
   # Insert the option either (1) after the last *FLAGS variable, or
7843
 
   # (2) before a word containing "conftest.", or (3) at the end.
7844
 
   # Note that $ac_compile itself does not contain backslashes and begins
7845
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
7846
 
   lt_compile=`echo "$ac_compile" | $SED \
7847
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7848
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7849
 
   -e 's:$: $lt_compiler_flag:'`
7850
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7851
 
   (eval "$lt_compile" 2>out/conftest.err)
7852
 
   ac_status=$?
7853
 
   cat out/conftest.err >&5
7854
 
   echo "$as_me:__oline__: \$? = $ac_status" >&5
7855
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7856
 
   then
7857
 
     # The compiler can only warn and ignore the option if not recognized
7858
 
     # So say no if there are warnings
7859
 
     if test ! -s out/conftest.err; then
7860
 
       lt_cv_prog_compiler_c_o=yes
7861
 
     fi
7862
 
   fi
7863
 
   chmod u+w .
7864
 
   $rm conftest*
7865
 
   # SGI C++ compiler will create directory out/ii_files/ for
7866
 
   # template instantiation
7867
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7868
 
   $rm out/* && rmdir out
7869
 
   cd ..
7870
 
   rmdir conftest
7871
 
   $rm conftest*
7872
 
 
7873
 
fi
7874
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7875
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7876
 
 
7877
 
 
7878
 
hard_links="nottested"
7879
 
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7880
 
  # do not overwrite the value of need_locks provided by the user
7881
 
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7882
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7883
 
  hard_links=yes
7884
 
  $rm conftest*
7885
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7886
 
  touch conftest.a
7887
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
7888
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7889
 
  echo "$as_me:$LINENO: result: $hard_links" >&5
7890
 
echo "${ECHO_T}$hard_links" >&6
7891
 
  if test "$hard_links" = no; then
7892
 
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7893
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7894
 
    need_locks=warn
7895
 
  fi
7896
 
else
7897
 
  need_locks=no
7898
 
fi
7899
 
 
7900
 
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7901
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7902
 
 
7903
 
  runpath_var=
7904
 
  allow_undefined_flag=
7905
 
  enable_shared_with_static_runtimes=no
7906
 
  archive_cmds=
7907
 
  archive_expsym_cmds=
7908
 
  old_archive_From_new_cmds=
7909
 
  old_archive_from_expsyms_cmds=
7910
 
  export_dynamic_flag_spec=
7911
 
  whole_archive_flag_spec=
7912
 
  thread_safe_flag_spec=
7913
 
  hardcode_libdir_flag_spec=
7914
 
  hardcode_libdir_flag_spec_ld=
7915
 
  hardcode_libdir_separator=
7916
 
  hardcode_direct=no
7917
 
  hardcode_minus_L=no
7918
 
  hardcode_shlibpath_var=unsupported
7919
 
  link_all_deplibs=unknown
7920
 
  hardcode_automatic=no
7921
 
  module_cmds=
7922
 
  module_expsym_cmds=
7923
 
  always_export_symbols=no
7924
 
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7925
 
  # include_expsyms should be a list of space-separated symbols to be *always*
7926
 
  # included in the symbol list
7927
 
  include_expsyms=
7928
 
  # exclude_expsyms can be an extended regexp of symbols to exclude
7929
 
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7930
 
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7931
 
  # as well as any symbol that contains `d'.
7932
 
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7933
 
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7934
 
  # platforms (ab)use it in PIC code, but their linkers get confused if
7935
 
  # the symbol is explicitly referenced.  Since portable code cannot
7936
 
  # rely on this symbol name, it's probably fine to never include it in
7937
 
  # preloaded symbol tables.
7938
 
  extract_expsyms_cmds=
7939
 
 
7940
 
  case $host_os in
7941
 
  cygwin* | mingw* | pw32*)
7942
 
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7943
 
    # When not using gcc, we currently assume that we are using
7944
 
    # Microsoft Visual C++.
7945
 
    if test "$GCC" != yes; then
7946
 
      with_gnu_ld=no
7947
 
    fi
7948
 
    ;;
7949
 
  openbsd*)
7950
 
    with_gnu_ld=no
7951
 
    ;;
7952
 
  esac
7953
 
 
7954
 
  ld_shlibs=yes
7955
 
  if test "$with_gnu_ld" = yes; then
7956
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
7957
 
    wlarc='${wl}'
7958
 
 
7959
 
    # See if GNU ld supports shared libraries.
7960
 
    case $host_os in
7961
 
    aix3* | aix4* | aix5*)
7962
 
      # On AIX/PPC, the GNU linker is very broken
7963
 
      if test "$host_cpu" != ia64; then
7964
 
        ld_shlibs=no
7965
 
        cat <<EOF 1>&2
7966
 
 
7967
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7968
 
*** to be unable to reliably create shared libraries on AIX.
7969
 
*** Therefore, libtool is disabling shared libraries support.  If you
7970
 
*** really care for shared libraries, you may want to modify your PATH
7971
 
*** so that a non-GNU linker is found, and then restart.
7972
 
 
7973
 
EOF
7974
 
      fi
7975
 
      ;;
7976
 
 
7977
 
    amigaos*)
7978
 
      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)'
7979
 
      hardcode_libdir_flag_spec='-L$libdir'
7980
 
      hardcode_minus_L=yes
7981
 
 
7982
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7983
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
7984
 
      # to version 4, is to share data among multiple programs linked
7985
 
      # with the same dynamic library.  Since this doesn't match the
7986
 
      # behavior of shared libraries on other platforms, we can't use
7987
 
      # them.
7988
 
      ld_shlibs=no
7989
 
      ;;
7990
 
 
7991
 
    beos*)
7992
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7993
 
        allow_undefined_flag=unsupported
7994
 
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7995
 
        # support --undefined.  This deserves some investigation.  FIXME
7996
 
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7997
 
      else
7998
 
        ld_shlibs=no
7999
 
      fi
8000
 
      ;;
8001
 
 
8002
 
    cygwin* | mingw* | pw32*)
8003
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8004
 
      # as there is no search path for DLLs.
8005
 
      hardcode_libdir_flag_spec='-L$libdir'
8006
 
      allow_undefined_flag=unsupported
8007
 
      always_export_symbols=no
8008
 
      enable_shared_with_static_runtimes=yes
8009
 
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8010
 
 
8011
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8012
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8013
 
        # If the export-symbols file already is a .def file (1st line
8014
 
        # is EXPORTS), use it as is; otherwise, prepend...
8015
 
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8016
 
          cp $export_symbols $output_objdir/$soname.def;
8017
 
        else
8018
 
          echo EXPORTS > $output_objdir/$soname.def;
8019
 
          cat $export_symbols >> $output_objdir/$soname.def;
8020
 
        fi~
8021
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
8022
 
      else
8023
 
        ld_shlibs=no
8024
 
      fi
8025
 
      ;;
8026
 
 
8027
 
    netbsd*)
8028
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8029
 
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8030
 
        wlarc=
8031
 
      else
8032
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8033
 
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8034
 
      fi
8035
 
      ;;
8036
 
 
8037
 
    solaris* | sysv5*)
8038
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8039
 
        ld_shlibs=no
8040
 
        cat <<EOF 1>&2
8041
 
 
8042
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8043
 
*** create shared libraries on Solaris systems.  Therefore, libtool
8044
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
8045
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
8046
 
*** your PATH or compiler configuration so that the native linker is
8047
 
*** used, and then restart.
8048
 
 
8049
 
EOF
8050
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8051
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8052
 
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8053
 
      else
8054
 
        ld_shlibs=no
8055
 
      fi
8056
 
      ;;
8057
 
 
8058
 
    sunos4*)
8059
 
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8060
 
      wlarc=
8061
 
      hardcode_direct=yes
8062
 
      hardcode_shlibpath_var=no
8063
 
      ;;
8064
 
 
8065
 
  linux*)
8066
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8067
 
      tmp_addflag=
8068
 
      case $CC,$host_cpu in
8069
 
      pgf77* | pgf90* )                 # Portland Group f77 and f90 compilers
8070
 
        tmp_addflag=' -fpic' ;;
8071
 
      ecc*,ia64* | icc*,ia64*)          # Intel C compiler on ia64
8072
 
        tmp_addflag=' -i_dynamic' ;;
8073
 
      efc*,ia64* | ifort*,ia64*)        # Intel Fortran compiler on ia64
8074
 
        tmp_addflag=' -i_dynamic -nofor_main' ;;
8075
 
      ifc* | ifort*)                    # Intel Fortran compiler
8076
 
        tmp_addflag=' -nofor_main' ;;
8077
 
      esac
8078
 
      archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8079
 
      supports_anon_versioning=no
8080
 
      case `$LD -v 2>/dev/null` in
8081
 
        *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8082
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8083
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8084
 
        *\ 2.11.*) ;; # other 2.11 versions
8085
 
        *) supports_anon_versioning=yes ;;
8086
 
      esac
8087
 
      if test $supports_anon_versioning = yes; then
8088
 
        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8089
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8090
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
8091
 
        $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8092
 
      else
8093
 
        archive_expsym_cmds=$archive_cmds
8094
 
      fi
8095
 
    else
8096
 
      ld_shlibs=no
8097
 
    fi
8098
 
    ;;
8099
 
 
8100
 
    *)
8101
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8102
 
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8103
 
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8104
 
      else
8105
 
        ld_shlibs=no
8106
 
      fi
8107
 
      ;;
8108
 
    esac
8109
 
 
8110
 
    if test "$ld_shlibs" = yes; then
8111
 
      runpath_var=LD_RUN_PATH
8112
 
      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8113
 
      export_dynamic_flag_spec='${wl}--export-dynamic'
8114
 
      # ancient GNU ld didn't support --whole-archive et. al.
8115
 
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8116
 
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8117
 
      else
8118
 
        whole_archive_flag_spec=
8119
 
      fi
8120
 
    fi
8121
 
  else
8122
 
    # PORTME fill in a description of your system's linker (not GNU ld)
8123
 
    case $host_os in
8124
 
    aix3*)
8125
 
      allow_undefined_flag=unsupported
8126
 
      always_export_symbols=yes
8127
 
      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'
8128
 
      # Note: this linker hardcodes the directories in LIBPATH if there
8129
 
      # are no directories specified by -L.
8130
 
      hardcode_minus_L=yes
8131
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
8132
 
        # Neither direct hardcoding nor static linking is supported with a
8133
 
        # broken collect2.
8134
 
        hardcode_direct=unsupported
8135
 
      fi
8136
 
      ;;
8137
 
 
8138
 
    aix4* | aix5*)
8139
 
      if test "$host_cpu" = ia64; then
8140
 
        # On IA64, the linker does run time linking by default, so we don't
8141
 
        # have to do anything special.
8142
 
        aix_use_runtimelinking=no
8143
 
        exp_sym_flag='-Bexport'
8144
 
        no_entry_flag=""
8145
 
      else
8146
 
        # If we're using GNU nm, then we don't want the "-C" option.
8147
 
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8148
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8149
 
          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'
8150
 
        else
8151
 
          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'
8152
 
        fi
8153
 
        aix_use_runtimelinking=no
8154
 
 
8155
 
        # Test if we are trying to use run time linking or normal
8156
 
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8157
 
        # need to do runtime linking.
8158
 
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8159
 
          for ld_flag in $LDFLAGS; do
8160
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8161
 
            aix_use_runtimelinking=yes
8162
 
            break
8163
 
          fi
8164
 
          done
8165
 
        esac
8166
 
 
8167
 
        exp_sym_flag='-bexport'
8168
 
        no_entry_flag='-bnoentry'
8169
 
      fi
8170
 
 
8171
 
      # When large executables or shared objects are built, AIX ld can
8172
 
      # have problems creating the table of contents.  If linking a library
8173
 
      # or program results in "error TOC overflow" add -mminimal-toc to
8174
 
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8175
 
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8176
 
 
8177
 
      archive_cmds=''
8178
 
      hardcode_direct=yes
8179
 
      hardcode_libdir_separator=':'
8180
 
      link_all_deplibs=yes
8181
 
 
8182
 
      if test "$GCC" = yes; then
8183
 
        case $host_os in aix4.[012]|aix4.[012].*)
8184
 
        # We only want to do this on AIX 4.2 and lower, the check
8185
 
        # below for broken collect2 doesn't work under 4.3+
8186
 
          collect2name=`${CC} -print-prog-name=collect2`
8187
 
          if test -f "$collect2name" && \
8188
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
8189
 
          then
8190
 
          # We have reworked collect2
8191
 
          hardcode_direct=yes
8192
 
          else
8193
 
          # We have old collect2
8194
 
          hardcode_direct=unsupported
8195
 
          # It fails to find uninstalled libraries when the uninstalled
8196
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
8197
 
          # to unsupported forces relinking
8198
 
          hardcode_minus_L=yes
8199
 
          hardcode_libdir_flag_spec='-L$libdir'
8200
 
          hardcode_libdir_separator=
8201
 
          fi
8202
 
        esac
8203
 
        shared_flag='-shared'
8204
 
        if test "$aix_use_runtimelinking" = yes; then
8205
 
          shared_flag="$shared_flag "'${wl}-G'
8206
 
        fi
8207
 
      else
8208
 
        # not using gcc
8209
 
        if test "$host_cpu" = ia64; then
8210
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8211
 
        # chokes on -Wl,-G. The following line is correct:
8212
 
          shared_flag='-G'
8213
 
        else
8214
 
        if test "$aix_use_runtimelinking" = yes; then
8215
 
            shared_flag='${wl}-G'
8216
 
          else
8217
 
            shared_flag='${wl}-bM:SRE'
8218
 
        fi
8219
 
        fi
8220
 
      fi
8221
 
 
8222
 
      # It seems that -bexpall does not export symbols beginning with
8223
 
      # underscore (_), so it is better to generate a list of symbols to export.
8224
 
      always_export_symbols=yes
8225
 
      if test "$aix_use_runtimelinking" = yes; then
8226
 
        # Warning - without using the other runtime loading flags (-brtl),
8227
 
        # -berok will link without error, but may produce a broken library.
8228
 
        allow_undefined_flag='-berok'
8229
 
       # Determine the default libpath from the value encoded in an empty executable.
8230
 
       cat >conftest.$ac_ext <<_ACEOF
8231
 
/* confdefs.h.  */
8232
 
_ACEOF
8233
 
cat confdefs.h >>conftest.$ac_ext
8234
 
cat >>conftest.$ac_ext <<_ACEOF
8235
 
/* end confdefs.h.  */
8236
 
 
8237
 
int
8238
 
main ()
8239
 
{
8240
 
 
8241
 
  ;
8242
 
  return 0;
8243
 
}
8244
 
_ACEOF
8245
 
rm -f conftest.$ac_objext conftest$ac_exeext
8246
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8247
 
  (eval $ac_link) 2>conftest.er1
8248
 
  ac_status=$?
8249
 
  grep -v '^ *+' conftest.er1 >conftest.err
8250
 
  rm -f conftest.er1
8251
 
  cat conftest.err >&5
8252
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253
 
  (exit $ac_status); } &&
8254
 
         { ac_try='test -z "$ac_c_werror_flag"
8255
 
                         || test ! -s conftest.err'
8256
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8257
 
  (eval $ac_try) 2>&5
8258
 
  ac_status=$?
8259
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260
 
  (exit $ac_status); }; } &&
8261
 
         { ac_try='test -s conftest$ac_exeext'
8262
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8263
 
  (eval $ac_try) 2>&5
8264
 
  ac_status=$?
8265
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266
 
  (exit $ac_status); }; }; then
8267
 
  
8268
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8269
 
}'`
8270
 
# Check for a 64-bit object if we didn't find anything.
8271
 
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; }
8272
 
}'`; fi
8273
 
else
8274
 
  echo "$as_me: failed program was:" >&5
8275
 
sed 's/^/| /' conftest.$ac_ext >&5
8276
 
 
8277
 
fi
8278
 
rm -f conftest.err conftest.$ac_objext \
8279
 
      conftest$ac_exeext conftest.$ac_ext
8280
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8281
 
 
8282
 
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8283
 
        archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8284
 
       else
8285
 
        if test "$host_cpu" = ia64; then
8286
 
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8287
 
          allow_undefined_flag="-z nodefs"
8288
 
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
8289
 
        else
8290
 
         # Determine the default libpath from the value encoded in an empty executable.
8291
 
         cat >conftest.$ac_ext <<_ACEOF
8292
 
/* confdefs.h.  */
8293
 
_ACEOF
8294
 
cat confdefs.h >>conftest.$ac_ext
8295
 
cat >>conftest.$ac_ext <<_ACEOF
8296
 
/* end confdefs.h.  */
8297
 
 
8298
 
int
8299
 
main ()
8300
 
{
8301
 
 
8302
 
  ;
8303
 
  return 0;
8304
 
}
8305
 
_ACEOF
8306
 
rm -f conftest.$ac_objext conftest$ac_exeext
8307
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8308
 
  (eval $ac_link) 2>conftest.er1
8309
 
  ac_status=$?
8310
 
  grep -v '^ *+' conftest.er1 >conftest.err
8311
 
  rm -f conftest.er1
8312
 
  cat conftest.err >&5
8313
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314
 
  (exit $ac_status); } &&
8315
 
         { ac_try='test -z "$ac_c_werror_flag"
8316
 
                         || test ! -s conftest.err'
8317
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8318
 
  (eval $ac_try) 2>&5
8319
 
  ac_status=$?
8320
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321
 
  (exit $ac_status); }; } &&
8322
 
         { ac_try='test -s conftest$ac_exeext'
8323
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8324
 
  (eval $ac_try) 2>&5
8325
 
  ac_status=$?
8326
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327
 
  (exit $ac_status); }; }; then
8328
 
  
8329
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8330
 
}'`
8331
 
# Check for a 64-bit object if we didn't find anything.
8332
 
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; }
8333
 
}'`; fi
8334
 
else
8335
 
  echo "$as_me: failed program was:" >&5
8336
 
sed 's/^/| /' conftest.$ac_ext >&5
8337
 
 
8338
 
fi
8339
 
rm -f conftest.err conftest.$ac_objext \
8340
 
      conftest$ac_exeext conftest.$ac_ext
8341
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8342
 
 
8343
 
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8344
 
          # Warning - without using the other run time loading flags,
8345
 
          # -berok will link without error, but may produce a broken library.
8346
 
          no_undefined_flag=' ${wl}-bernotok'
8347
 
          allow_undefined_flag=' ${wl}-berok'
8348
 
          # -bexpall does not export symbols beginning with underscore (_)
8349
 
          always_export_symbols=yes
8350
 
          # Exported symbols can be pulled into shared objects from archives
8351
 
          whole_archive_flag_spec=' '
8352
 
          archive_cmds_need_lc=yes
8353
 
          # This is similar to how AIX traditionally builds it's shared libraries.
8354
 
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8355
 
        fi
8356
 
      fi
8357
 
      ;;
8358
 
 
8359
 
    amigaos*)
8360
 
      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)'
8361
 
      hardcode_libdir_flag_spec='-L$libdir'
8362
 
      hardcode_minus_L=yes
8363
 
      # see comment about different semantics on the GNU ld section
8364
 
      ld_shlibs=no
8365
 
      ;;
8366
 
 
8367
 
    bsdi[45]*)
8368
 
      export_dynamic_flag_spec=-rdynamic
8369
 
      ;;
8370
 
 
8371
 
    cygwin* | mingw* | pw32*)
8372
 
      # When not using gcc, we currently assume that we are using
8373
 
      # Microsoft Visual C++.
8374
 
      # hardcode_libdir_flag_spec is actually meaningless, as there is
8375
 
      # no search path for DLLs.
8376
 
      hardcode_libdir_flag_spec=' '
8377
 
      allow_undefined_flag=unsupported
8378
 
      # Tell ltmain to make .lib files, not .a files.
8379
 
      libext=lib
8380
 
      # Tell ltmain to make .dll files, not .so files.
8381
 
      shrext_cmds=".dll"
8382
 
      # FIXME: Setting linknames here is a bad hack.
8383
 
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8384
 
      # The linker will automatically build a .lib file if we build a DLL.
8385
 
      old_archive_From_new_cmds='true'
8386
 
      # FIXME: Should let the user specify the lib program.
8387
 
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8388
 
      fix_srcfile_path='`cygpath -w "$srcfile"`'
8389
 
      enable_shared_with_static_runtimes=yes
8390
 
      ;;
8391
 
 
8392
 
    darwin* | rhapsody*)
8393
 
      case "$host_os" in
8394
 
        rhapsody* | darwin1.[012])
8395
 
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8396
 
         ;;
8397
 
       *) # Darwin 1.3 on
8398
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8399
 
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8400
 
         else
8401
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
8402
 
             10.[012])
8403
 
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8404
 
               ;;
8405
 
             10.*)
8406
 
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8407
 
               ;;
8408
 
           esac
8409
 
         fi
8410
 
         ;;
8411
 
      esac
8412
 
      archive_cmds_need_lc=no
8413
 
      hardcode_direct=no
8414
 
      hardcode_automatic=yes
8415
 
      hardcode_shlibpath_var=unsupported
8416
 
      whole_archive_flag_spec=''
8417
 
      link_all_deplibs=yes
8418
 
    if test "$GCC" = yes ; then
8419
 
        output_verbose_link_cmd='echo'
8420
 
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8421
 
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8422
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8423
 
      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}'
8424
 
      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}'
8425
 
    else
8426
 
      case "$cc_basename" in
8427
 
        xlc*)
8428
 
         output_verbose_link_cmd='echo'
8429
 
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8430
 
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8431
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8432
 
         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}'
8433
 
          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}'
8434
 
          ;;
8435
 
       *)
8436
 
         ld_shlibs=no
8437
 
          ;;
8438
 
      esac
8439
 
    fi
8440
 
      ;;
8441
 
 
8442
 
    dgux*)
8443
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8444
 
      hardcode_libdir_flag_spec='-L$libdir'
8445
 
      hardcode_shlibpath_var=no
8446
 
      ;;
8447
 
 
8448
 
    freebsd1*)
8449
 
      ld_shlibs=no
8450
 
      ;;
8451
 
 
8452
 
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8453
 
    # support.  Future versions do this automatically, but an explicit c++rt0.o
8454
 
    # does not break anything, and helps significantly (at the cost of a little
8455
 
    # extra space).
8456
 
    freebsd2.2*)
8457
 
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8458
 
      hardcode_libdir_flag_spec='-R$libdir'
8459
 
      hardcode_direct=yes
8460
 
      hardcode_shlibpath_var=no
8461
 
      ;;
8462
 
 
8463
 
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8464
 
    freebsd2*)
8465
 
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8466
 
      hardcode_direct=yes
8467
 
      hardcode_minus_L=yes
8468
 
      hardcode_shlibpath_var=no
8469
 
      ;;
8470
 
 
8471
 
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8472
 
    freebsd* | kfreebsd*-gnu | dragonfly*)
8473
 
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8474
 
      hardcode_libdir_flag_spec='-R$libdir'
8475
 
      hardcode_direct=yes
8476
 
      hardcode_shlibpath_var=no
8477
 
      ;;
8478
 
 
8479
 
    hpux9*)
8480
 
      if test "$GCC" = yes; then
8481
 
        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'
8482
 
      else
8483
 
        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'
8484
 
      fi
8485
 
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8486
 
      hardcode_libdir_separator=:
8487
 
      hardcode_direct=yes
8488
 
 
8489
 
      # hardcode_minus_L: Not really in the search PATH,
8490
 
      # but as the default location of the library.
8491
 
      hardcode_minus_L=yes
8492
 
      export_dynamic_flag_spec='${wl}-E'
8493
 
      ;;
8494
 
 
8495
 
    hpux10* | hpux11*)
8496
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8497
 
        case "$host_cpu" in
8498
 
        hppa*64*|ia64*)
8499
 
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8500
 
          ;;
8501
 
        *)
8502
 
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8503
 
          ;;
8504
 
        esac
8505
 
      else
8506
 
        case "$host_cpu" in
8507
 
        hppa*64*|ia64*)
8508
 
          archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8509
 
          ;;
8510
 
        *)
8511
 
          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8512
 
          ;;
8513
 
        esac
8514
 
      fi
8515
 
      if test "$with_gnu_ld" = no; then
8516
 
        case "$host_cpu" in
8517
 
        hppa*64*)
8518
 
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8519
 
          hardcode_libdir_flag_spec_ld='+b $libdir'
8520
 
          hardcode_libdir_separator=:
8521
 
          hardcode_direct=no
8522
 
          hardcode_shlibpath_var=no
8523
 
          ;;
8524
 
        ia64*)
8525
 
          hardcode_libdir_flag_spec='-L$libdir'
8526
 
          hardcode_direct=no
8527
 
          hardcode_shlibpath_var=no
8528
 
 
8529
 
          # hardcode_minus_L: Not really in the search PATH,
8530
 
          # but as the default location of the library.
8531
 
          hardcode_minus_L=yes
8532
 
          ;;
8533
 
        *)
8534
 
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8535
 
          hardcode_libdir_separator=:
8536
 
          hardcode_direct=yes
8537
 
          export_dynamic_flag_spec='${wl}-E'
8538
 
 
8539
 
          # hardcode_minus_L: Not really in the search PATH,
8540
 
          # but as the default location of the library.
8541
 
          hardcode_minus_L=yes
8542
 
          ;;
8543
 
        esac
8544
 
      fi
8545
 
      ;;
8546
 
 
8547
 
    irix5* | irix6* | nonstopux*)
8548
 
      if test "$GCC" = yes; then
8549
 
        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'
8550
 
      else
8551
 
        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'
8552
 
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
8553
 
      fi
8554
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8555
 
      hardcode_libdir_separator=:
8556
 
      link_all_deplibs=yes
8557
 
      ;;
8558
 
 
8559
 
    netbsd*)
8560
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8561
 
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8562
 
      else
8563
 
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8564
 
      fi
8565
 
      hardcode_libdir_flag_spec='-R$libdir'
8566
 
      hardcode_direct=yes
8567
 
      hardcode_shlibpath_var=no
8568
 
      ;;
8569
 
 
8570
 
    newsos6)
8571
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8572
 
      hardcode_direct=yes
8573
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8574
 
      hardcode_libdir_separator=:
8575
 
      hardcode_shlibpath_var=no
8576
 
      ;;
8577
 
 
8578
 
    openbsd*)
8579
 
      hardcode_direct=yes
8580
 
      hardcode_shlibpath_var=no
8581
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8582
 
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8583
 
        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8584
 
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8585
 
        export_dynamic_flag_spec='${wl}-E'
8586
 
      else
8587
 
       case $host_os in
8588
 
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8589
 
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8590
 
           hardcode_libdir_flag_spec='-R$libdir'
8591
 
           ;;
8592
 
         *)
8593
 
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8594
 
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8595
 
           ;;
8596
 
       esac
8597
 
      fi
8598
 
      ;;
8599
 
 
8600
 
    os2*)
8601
 
      hardcode_libdir_flag_spec='-L$libdir'
8602
 
      hardcode_minus_L=yes
8603
 
      allow_undefined_flag=unsupported
8604
 
      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'
8605
 
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8606
 
      ;;
8607
 
 
8608
 
    osf3*)
8609
 
      if test "$GCC" = yes; then
8610
 
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8611
 
        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'
8612
 
      else
8613
 
        allow_undefined_flag=' -expect_unresolved \*'
8614
 
        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'
8615
 
      fi
8616
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8617
 
      hardcode_libdir_separator=:
8618
 
      ;;
8619
 
 
8620
 
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8621
 
      if test "$GCC" = yes; then
8622
 
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8623
 
        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'
8624
 
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8625
 
      else
8626
 
        allow_undefined_flag=' -expect_unresolved \*'
8627
 
        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'
8628
 
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8629
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
8630
 
 
8631
 
        # Both c and cxx compiler support -rpath directly
8632
 
        hardcode_libdir_flag_spec='-rpath $libdir'
8633
 
      fi
8634
 
      hardcode_libdir_separator=:
8635
 
      ;;
8636
 
 
8637
 
    sco3.2v5*)
8638
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8639
 
      hardcode_shlibpath_var=no
8640
 
      export_dynamic_flag_spec='${wl}-Bexport'
8641
 
      runpath_var=LD_RUN_PATH
8642
 
      hardcode_runpath_var=yes
8643
 
      ;;
8644
 
 
8645
 
    solaris*)
8646
 
      no_undefined_flag=' -z text'
8647
 
      if test "$GCC" = yes; then
8648
 
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8649
 
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8650
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8651
 
      else
8652
 
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8653
 
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8654
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8655
 
      fi
8656
 
      hardcode_libdir_flag_spec='-R$libdir'
8657
 
      hardcode_shlibpath_var=no
8658
 
      case $host_os in
8659
 
      solaris2.[0-5] | solaris2.[0-5].*) ;;
8660
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
8661
 
        whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
8662
 
      esac
8663
 
      link_all_deplibs=yes
8664
 
      ;;
8665
 
 
8666
 
    sunos4*)
8667
 
      if test "x$host_vendor" = xsequent; then
8668
 
        # Use $CC to link under sequent, because it throws in some extra .o
8669
 
        # files that make .init and .fini sections work.
8670
 
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8671
 
      else
8672
 
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8673
 
      fi
8674
 
      hardcode_libdir_flag_spec='-L$libdir'
8675
 
      hardcode_direct=yes
8676
 
      hardcode_minus_L=yes
8677
 
      hardcode_shlibpath_var=no
8678
 
      ;;
8679
 
 
8680
 
    sysv4)
8681
 
      case $host_vendor in
8682
 
        sni)
8683
 
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8684
 
          hardcode_direct=yes # is this really true???
8685
 
        ;;
8686
 
        siemens)
8687
 
          ## LD is ld it makes a PLAMLIB
8688
 
          ## CC just makes a GrossModule.
8689
 
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8690
 
          reload_cmds='$CC -r -o $output$reload_objs'
8691
 
          hardcode_direct=no
8692
 
        ;;
8693
 
        motorola)
8694
 
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8695
 
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8696
 
        ;;
8697
 
      esac
8698
 
      runpath_var='LD_RUN_PATH'
8699
 
      hardcode_shlibpath_var=no
8700
 
      ;;
8701
 
 
8702
 
    sysv4.3*)
8703
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8704
 
      hardcode_shlibpath_var=no
8705
 
      export_dynamic_flag_spec='-Bexport'
8706
 
      ;;
8707
 
 
8708
 
    sysv4*MP*)
8709
 
      if test -d /usr/nec; then
8710
 
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8711
 
        hardcode_shlibpath_var=no
8712
 
        runpath_var=LD_RUN_PATH
8713
 
        hardcode_runpath_var=yes
8714
 
        ld_shlibs=yes
8715
 
      fi
8716
 
      ;;
8717
 
 
8718
 
    sysv4.2uw2*)
8719
 
      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8720
 
      hardcode_direct=yes
8721
 
      hardcode_minus_L=no
8722
 
      hardcode_shlibpath_var=no
8723
 
      hardcode_runpath_var=yes
8724
 
      runpath_var=LD_RUN_PATH
8725
 
      ;;
8726
 
 
8727
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
8728
 
      no_undefined_flag='${wl}-z ${wl}text'
8729
 
      if test "$GCC" = yes; then
8730
 
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8731
 
      else
8732
 
        archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8733
 
      fi
8734
 
      runpath_var='LD_RUN_PATH'
8735
 
      hardcode_shlibpath_var=no
8736
 
      ;;
8737
 
 
8738
 
    sysv5*)
8739
 
      no_undefined_flag=' -z text'
8740
 
      # $CC -shared without GNU ld will not create a library from C++
8741
 
      # object files and a static libstdc++, better avoid it by now
8742
 
      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8743
 
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8744
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8745
 
      hardcode_libdir_flag_spec=
8746
 
      hardcode_shlibpath_var=no
8747
 
      runpath_var='LD_RUN_PATH'
8748
 
      ;;
8749
 
 
8750
 
    uts4*)
8751
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8752
 
      hardcode_libdir_flag_spec='-L$libdir'
8753
 
      hardcode_shlibpath_var=no
8754
 
      ;;
8755
 
 
8756
 
    *)
8757
 
      ld_shlibs=no
8758
 
      ;;
8759
 
    esac
8760
 
  fi
8761
 
 
8762
 
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8763
 
echo "${ECHO_T}$ld_shlibs" >&6
8764
 
test "$ld_shlibs" = no && can_build_shared=no
8765
 
 
8766
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8767
 
if test "$GCC" = yes; then
8768
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8769
 
fi
8770
 
 
8771
 
#
8772
 
# Do we need to explicitly link libc?
8773
 
#
8774
 
case "x$archive_cmds_need_lc" in
8775
 
x|xyes)
8776
 
  # Assume -lc should be added
8777
 
  archive_cmds_need_lc=yes
8778
 
 
8779
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
8780
 
    case $archive_cmds in
8781
 
    *'~'*)
8782
 
      # FIXME: we may have to deal with multi-command sequences.
8783
 
      ;;
8784
 
    '$CC '*)
8785
 
      # Test whether the compiler implicitly links with -lc since on some
8786
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8787
 
      # to ld, don't add -lc before -lgcc.
8788
 
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8789
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8790
 
      $rm conftest*
8791
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8792
 
 
8793
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8794
 
  (eval $ac_compile) 2>&5
8795
 
  ac_status=$?
8796
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797
 
  (exit $ac_status); } 2>conftest.err; then
8798
 
        soname=conftest
8799
 
        lib=conftest
8800
 
        libobjs=conftest.$ac_objext
8801
 
        deplibs=
8802
 
        wl=$lt_prog_compiler_wl
8803
 
        compiler_flags=-v
8804
 
        linker_flags=-v
8805
 
        verstring=
8806
 
        output_objdir=.
8807
 
        libname=conftest
8808
 
        lt_save_allow_undefined_flag=$allow_undefined_flag
8809
 
        allow_undefined_flag=
8810
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8811
 
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8812
 
  ac_status=$?
8813
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814
 
  (exit $ac_status); }
8815
 
        then
8816
 
          archive_cmds_need_lc=no
8817
 
        else
8818
 
          archive_cmds_need_lc=yes
8819
 
        fi
8820
 
        allow_undefined_flag=$lt_save_allow_undefined_flag
8821
 
      else
8822
 
        cat conftest.err 1>&5
8823
 
      fi
8824
 
      $rm conftest*
8825
 
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8826
 
echo "${ECHO_T}$archive_cmds_need_lc" >&6
8827
 
      ;;
8828
 
    esac
8829
 
  fi
8830
 
  ;;
8831
 
esac
8832
 
 
8833
 
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8834
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8835
 
library_names_spec=
8836
 
libname_spec='lib$name'
8837
 
soname_spec=
8838
 
shrext_cmds=".so"
8839
 
postinstall_cmds=
8840
 
postuninstall_cmds=
8841
 
finish_cmds=
8842
 
finish_eval=
8843
 
shlibpath_var=
8844
 
shlibpath_overrides_runpath=unknown
8845
 
version_type=none
8846
 
dynamic_linker="$host_os ld.so"
8847
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
8848
 
if test "$GCC" = yes; then
8849
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8850
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8851
 
    # if the path contains ";" then we assume it to be the separator
8852
 
    # otherwise default to the standard path separator (i.e. ":") - it is
8853
 
    # assumed that no part of a normal pathname contains ";" but that should
8854
 
    # okay in the real world where ";" in dirpaths is itself problematic.
8855
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8856
 
  else
8857
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8858
 
  fi
8859
 
else
8860
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8861
 
fi
8862
 
need_lib_prefix=unknown
8863
 
hardcode_into_libs=no
8864
 
 
8865
 
# when you set need_version to no, make sure it does not cause -set_version
8866
 
# flags to be left without arguments
8867
 
need_version=unknown
8868
 
 
8869
 
case $host_os in
8870
 
aix3*)
8871
 
  version_type=linux
8872
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8873
 
  shlibpath_var=LIBPATH
8874
 
 
8875
 
  # AIX 3 has no versioning support, so we append a major version to the name.
8876
 
  soname_spec='${libname}${release}${shared_ext}$major'
8877
 
  ;;
8878
 
 
8879
 
aix4* | aix5*)
8880
 
  version_type=linux
8881
 
  need_lib_prefix=no
8882
 
  need_version=no
8883
 
  hardcode_into_libs=yes
8884
 
  if test "$host_cpu" = ia64; then
8885
 
    # AIX 5 supports IA64
8886
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8887
 
    shlibpath_var=LD_LIBRARY_PATH
8888
 
  else
8889
 
    # With GCC up to 2.95.x, collect2 would create an import file
8890
 
    # for dependence libraries.  The import file would start with
8891
 
    # the line `#! .'.  This would cause the generated library to
8892
 
    # depend on `.', always an invalid library.  This was fixed in
8893
 
    # development snapshots of GCC prior to 3.0.
8894
 
    case $host_os in
8895
 
      aix4 | aix4.[01] | aix4.[01].*)
8896
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8897
 
           echo ' yes '
8898
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8899
 
        :
8900
 
      else
8901
 
        can_build_shared=no
8902
 
      fi
8903
 
      ;;
8904
 
    esac
8905
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8906
 
    # soname into executable. Probably we can add versioning support to
8907
 
    # collect2, so additional links can be useful in future.
8908
 
    if test "$aix_use_runtimelinking" = yes; then
8909
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8910
 
      # instead of lib<name>.a to let people know that these are not
8911
 
      # typical AIX shared libraries.
8912
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8913
 
    else
8914
 
      # We preserve .a as extension for shared libraries through AIX4.2
8915
 
      # and later when we are not doing run time linking.
8916
 
      library_names_spec='${libname}${release}.a $libname.a'
8917
 
      soname_spec='${libname}${release}${shared_ext}$major'
8918
 
    fi
8919
 
    shlibpath_var=LIBPATH
8920
 
  fi
8921
 
  ;;
8922
 
 
8923
 
amigaos*)
8924
 
  library_names_spec='$libname.ixlibrary $libname.a'
8925
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8926
 
  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'
8927
 
  ;;
8928
 
 
8929
 
beos*)
8930
 
  library_names_spec='${libname}${shared_ext}'
8931
 
  dynamic_linker="$host_os ld.so"
8932
 
  shlibpath_var=LIBRARY_PATH
8933
 
  ;;
8934
 
 
8935
 
bsdi[45]*)
8936
 
  version_type=linux
8937
 
  need_version=no
8938
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8939
 
  soname_spec='${libname}${release}${shared_ext}$major'
8940
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8941
 
  shlibpath_var=LD_LIBRARY_PATH
8942
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8943
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8944
 
  # the default ld.so.conf also contains /usr/contrib/lib and
8945
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8946
 
  # libtool to hard-code these into programs
8947
 
  ;;
8948
 
 
8949
 
cygwin* | mingw* | pw32*)
8950
 
  version_type=windows
8951
 
  shrext_cmds=".dll"
8952
 
  need_version=no
8953
 
  need_lib_prefix=no
8954
 
 
8955
 
  case $GCC,$host_os in
8956
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
8957
 
    library_names_spec='$libname.dll.a'
8958
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8959
 
    postinstall_cmds='base_file=`basename \${file}`~
8960
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8961
 
      dldir=$destdir/`dirname \$dlpath`~
8962
 
      test -d \$dldir || mkdir -p \$dldir~
8963
 
      $install_prog $dir/$dlname \$dldir/$dlname'
8964
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8965
 
      dlpath=$dir/\$dldll~
8966
 
       $rm \$dlpath'
8967
 
    shlibpath_overrides_runpath=yes
8968
 
 
8969
 
    case $host_os in
8970
 
    cygwin*)
8971
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8972
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8973
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8974
 
      ;;
8975
 
    mingw*)
8976
 
      # MinGW DLLs use traditional 'lib' prefix
8977
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8978
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8979
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8980
 
        # It is most probably a Windows format PATH printed by
8981
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8982
 
        # path with ; separators, and with drive letters. We can handle the
8983
 
        # drive letters (cygwin fileutils understands them), so leave them,
8984
 
        # especially as we might pass files found there to a mingw objdump,
8985
 
        # which wouldn't understand a cygwinified path. Ahh.
8986
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8987
 
      else
8988
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8989
 
      fi
8990
 
      ;;
8991
 
    pw32*)
8992
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
8993
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8994
 
      ;;
8995
 
    esac
8996
 
    ;;
8997
 
 
8998
 
  *)
8999
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9000
 
    ;;
9001
 
  esac
9002
 
  dynamic_linker='Win32 ld.exe'
9003
 
  # FIXME: first we should search . and the directory the executable is in
9004
 
  shlibpath_var=PATH
9005
 
  ;;
9006
 
 
9007
 
darwin* | rhapsody*)
9008
 
  dynamic_linker="$host_os dyld"
9009
 
  version_type=darwin
9010
 
  need_lib_prefix=no
9011
 
  need_version=no
9012
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9013
 
  soname_spec='${libname}${release}${major}$shared_ext'
9014
 
  shlibpath_overrides_runpath=yes
9015
 
  shlibpath_var=DYLD_LIBRARY_PATH
9016
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
9017
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9018
 
  if test "$GCC" = yes; then
9019
 
    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"`
9020
 
  else
9021
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9022
 
  fi
9023
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9024
 
  ;;
9025
 
 
9026
 
dgux*)
9027
 
  version_type=linux
9028
 
  need_lib_prefix=no
9029
 
  need_version=no
9030
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9031
 
  soname_spec='${libname}${release}${shared_ext}$major'
9032
 
  shlibpath_var=LD_LIBRARY_PATH
9033
 
  ;;
9034
 
 
9035
 
freebsd1*)
9036
 
  dynamic_linker=no
9037
 
  ;;
9038
 
 
9039
 
kfreebsd*-gnu)
9040
 
  version_type=linux
9041
 
  need_lib_prefix=no
9042
 
  need_version=no
9043
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9044
 
  soname_spec='${libname}${release}${shared_ext}$major'
9045
 
  shlibpath_var=LD_LIBRARY_PATH
9046
 
  shlibpath_overrides_runpath=no
9047
 
  hardcode_into_libs=yes
9048
 
  dynamic_linker='GNU ld.so'
9049
 
  ;;
9050
 
 
9051
 
freebsd* | dragonfly*)
9052
 
  # DragonFly does not have aout.  When/if they implement a new
9053
 
  # versioning mechanism, adjust this.
9054
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
9055
 
  version_type=freebsd-$objformat
9056
 
  case $version_type in
9057
 
    freebsd-elf*)
9058
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9059
 
      need_version=no
9060
 
      need_lib_prefix=no
9061
 
      ;;
9062
 
    freebsd-*)
9063
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9064
 
      need_version=yes
9065
 
      ;;
9066
 
  esac
9067
 
  shlibpath_var=LD_LIBRARY_PATH
9068
 
  case $host_os in
9069
 
  freebsd2*)
9070
 
    shlibpath_overrides_runpath=yes
9071
 
    ;;
9072
 
  freebsd3.[01]* | freebsdelf3.[01]*)
9073
 
    shlibpath_overrides_runpath=yes
9074
 
    hardcode_into_libs=yes
9075
 
    ;;
9076
 
  *) # from 3.2 on
9077
 
    shlibpath_overrides_runpath=no
9078
 
    hardcode_into_libs=yes
9079
 
    ;;
9080
 
  esac
9081
 
  ;;
9082
 
 
9083
 
gnu*)
9084
 
  version_type=linux
9085
 
  need_lib_prefix=no
9086
 
  need_version=no
9087
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9088
 
  soname_spec='${libname}${release}${shared_ext}$major'
9089
 
  shlibpath_var=LD_LIBRARY_PATH
9090
 
  hardcode_into_libs=yes
9091
 
  ;;
9092
 
 
9093
 
hpux9* | hpux10* | hpux11*)
9094
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
9095
 
  # link against other versions.
9096
 
  version_type=sunos
9097
 
  need_lib_prefix=no
9098
 
  need_version=no
9099
 
  case "$host_cpu" in
9100
 
  ia64*)
9101
 
    shrext_cmds='.so'
9102
 
    hardcode_into_libs=yes
9103
 
    dynamic_linker="$host_os dld.so"
9104
 
    shlibpath_var=LD_LIBRARY_PATH
9105
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9106
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9107
 
    soname_spec='${libname}${release}${shared_ext}$major'
9108
 
    if test "X$HPUX_IA64_MODE" = X32; then
9109
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9110
 
    else
9111
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9112
 
    fi
9113
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9114
 
    ;;
9115
 
   hppa*64*)
9116
 
     shrext_cmds='.sl'
9117
 
     hardcode_into_libs=yes
9118
 
     dynamic_linker="$host_os dld.sl"
9119
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9120
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9121
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9122
 
     soname_spec='${libname}${release}${shared_ext}$major'
9123
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9124
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9125
 
     ;;
9126
 
   *)
9127
 
    shrext_cmds='.sl'
9128
 
    dynamic_linker="$host_os dld.sl"
9129
 
    shlibpath_var=SHLIB_PATH
9130
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9131
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9132
 
    soname_spec='${libname}${release}${shared_ext}$major'
9133
 
    ;;
9134
 
  esac
9135
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9136
 
  postinstall_cmds='chmod 555 $lib'
9137
 
  ;;
9138
 
 
9139
 
irix5* | irix6* | nonstopux*)
9140
 
  case $host_os in
9141
 
    nonstopux*) version_type=nonstopux ;;
9142
 
    *)
9143
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
9144
 
                version_type=linux
9145
 
        else
9146
 
                version_type=irix
9147
 
        fi ;;
9148
 
  esac
9149
 
  need_lib_prefix=no
9150
 
  need_version=no
9151
 
  soname_spec='${libname}${release}${shared_ext}$major'
9152
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9153
 
  case $host_os in
9154
 
  irix5* | nonstopux*)
9155
 
    libsuff= shlibsuff=
9156
 
    ;;
9157
 
  *)
9158
 
    case $LD in # libtool.m4 will add one of these switches to LD
9159
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9160
 
      libsuff= shlibsuff= libmagic=32-bit;;
9161
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9162
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
9163
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9164
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9165
 
    *) libsuff= shlibsuff= libmagic=never-match;;
9166
 
    esac
9167
 
    ;;
9168
 
  esac
9169
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9170
 
  shlibpath_overrides_runpath=no
9171
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9172
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9173
 
  hardcode_into_libs=yes
9174
 
  ;;
9175
 
 
9176
 
# No shared lib support for Linux oldld, aout, or coff.
9177
 
linux*oldld* | linux*aout* | linux*coff*)
9178
 
  dynamic_linker=no
9179
 
  ;;
9180
 
 
9181
 
# This must be Linux ELF.
9182
 
linux*)
9183
 
  version_type=linux
9184
 
  need_lib_prefix=no
9185
 
  need_version=no
9186
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9187
 
  soname_spec='${libname}${release}${shared_ext}$major'
9188
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9189
 
  shlibpath_var=LD_LIBRARY_PATH
9190
 
  shlibpath_overrides_runpath=no
9191
 
  # This implies no fast_install, which is unacceptable.
9192
 
  # Some rework will be needed to allow for fast_install
9193
 
  # before this can be enabled.
9194
 
  hardcode_into_libs=yes
9195
 
 
9196
 
  # Append ld.so.conf contents to the search path
9197
 
  if test -f /etc/ld.so.conf; then
9198
 
    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/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9199
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9200
 
  fi
9201
 
 
9202
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
9203
 
  # powerpc, because MkLinux only supported shared libraries with the
9204
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
9205
 
  # most powerpc-linux boxes support dynamic linking these days and
9206
 
  # people can always --disable-shared, the test was removed, and we
9207
 
  # assume the GNU/Linux dynamic linker is in use.
9208
 
  dynamic_linker='GNU/Linux ld.so'
9209
 
  ;;
9210
 
 
9211
 
knetbsd*-gnu)
9212
 
  version_type=linux
9213
 
  need_lib_prefix=no
9214
 
  need_version=no
9215
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9216
 
  soname_spec='${libname}${release}${shared_ext}$major'
9217
 
  shlibpath_var=LD_LIBRARY_PATH
9218
 
  shlibpath_overrides_runpath=no
9219
 
  hardcode_into_libs=yes
9220
 
  dynamic_linker='GNU ld.so'
9221
 
  ;;
9222
 
 
9223
 
netbsd*)
9224
 
  version_type=sunos
9225
 
  need_lib_prefix=no
9226
 
  need_version=no
9227
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9228
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9229
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9230
 
    dynamic_linker='NetBSD (a.out) ld.so'
9231
 
  else
9232
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9233
 
    soname_spec='${libname}${release}${shared_ext}$major'
9234
 
    dynamic_linker='NetBSD ld.elf_so'
9235
 
  fi
9236
 
  shlibpath_var=LD_LIBRARY_PATH
9237
 
  shlibpath_overrides_runpath=yes
9238
 
  hardcode_into_libs=yes
9239
 
  ;;
9240
 
 
9241
 
newsos6)
9242
 
  version_type=linux
9243
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9244
 
  shlibpath_var=LD_LIBRARY_PATH
9245
 
  shlibpath_overrides_runpath=yes
9246
 
  ;;
9247
 
 
9248
 
nto-qnx*)
9249
 
  version_type=linux
9250
 
  need_lib_prefix=no
9251
 
  need_version=no
9252
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9253
 
  soname_spec='${libname}${release}${shared_ext}$major'
9254
 
  shlibpath_var=LD_LIBRARY_PATH
9255
 
  shlibpath_overrides_runpath=yes
9256
 
  ;;
9257
 
 
9258
 
openbsd*)
9259
 
  version_type=sunos
9260
 
  need_lib_prefix=no
9261
 
  need_version=no
9262
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9263
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9264
 
  shlibpath_var=LD_LIBRARY_PATH
9265
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9266
 
    case $host_os in
9267
 
      openbsd2.[89] | openbsd2.[89].*)
9268
 
        shlibpath_overrides_runpath=no
9269
 
        ;;
9270
 
      *)
9271
 
        shlibpath_overrides_runpath=yes
9272
 
        ;;
9273
 
      esac
9274
 
  else
9275
 
    shlibpath_overrides_runpath=yes
9276
 
  fi
9277
 
  ;;
9278
 
 
9279
 
os2*)
9280
 
  libname_spec='$name'
9281
 
  shrext_cmds=".dll"
9282
 
  need_lib_prefix=no
9283
 
  library_names_spec='$libname${shared_ext} $libname.a'
9284
 
  dynamic_linker='OS/2 ld.exe'
9285
 
  shlibpath_var=LIBPATH
9286
 
  ;;
9287
 
 
9288
 
osf3* | osf4* | osf5*)
9289
 
  version_type=osf
9290
 
  need_lib_prefix=no
9291
 
  need_version=no
9292
 
  soname_spec='${libname}${release}${shared_ext}$major'
9293
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9294
 
  shlibpath_var=LD_LIBRARY_PATH
9295
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9296
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9297
 
  ;;
9298
 
 
9299
 
sco3.2v5*)
9300
 
  version_type=osf
9301
 
  soname_spec='${libname}${release}${shared_ext}$major'
9302
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9303
 
  shlibpath_var=LD_LIBRARY_PATH
9304
 
  ;;
9305
 
 
9306
 
solaris*)
9307
 
  version_type=linux
9308
 
  need_lib_prefix=no
9309
 
  need_version=no
9310
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9311
 
  soname_spec='${libname}${release}${shared_ext}$major'
9312
 
  shlibpath_var=LD_LIBRARY_PATH
9313
 
  shlibpath_overrides_runpath=yes
9314
 
  hardcode_into_libs=yes
9315
 
  # ldd complains unless libraries are executable
9316
 
  postinstall_cmds='chmod +x $lib'
9317
 
  ;;
9318
 
 
9319
 
sunos4*)
9320
 
  version_type=sunos
9321
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9322
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9323
 
  shlibpath_var=LD_LIBRARY_PATH
9324
 
  shlibpath_overrides_runpath=yes
9325
 
  if test "$with_gnu_ld" = yes; then
9326
 
    need_lib_prefix=no
9327
 
  fi
9328
 
  need_version=yes
9329
 
  ;;
9330
 
 
9331
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9332
 
  version_type=linux
9333
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9334
 
  soname_spec='${libname}${release}${shared_ext}$major'
9335
 
  shlibpath_var=LD_LIBRARY_PATH
9336
 
  case $host_vendor in
9337
 
    sni)
9338
 
      shlibpath_overrides_runpath=no
9339
 
      need_lib_prefix=no
9340
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
9341
 
      runpath_var=LD_RUN_PATH
9342
 
      ;;
9343
 
    siemens)
9344
 
      need_lib_prefix=no
9345
 
      ;;
9346
 
    motorola)
9347
 
      need_lib_prefix=no
9348
 
      need_version=no
9349
 
      shlibpath_overrides_runpath=no
9350
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9351
 
      ;;
9352
 
  esac
9353
 
  ;;
9354
 
 
9355
 
sysv4*MP*)
9356
 
  if test -d /usr/nec ;then
9357
 
    version_type=linux
9358
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9359
 
    soname_spec='$libname${shared_ext}.$major'
9360
 
    shlibpath_var=LD_LIBRARY_PATH
9361
 
  fi
9362
 
  ;;
9363
 
 
9364
 
uts4*)
9365
 
  version_type=linux
9366
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9367
 
  soname_spec='${libname}${release}${shared_ext}$major'
9368
 
  shlibpath_var=LD_LIBRARY_PATH
9369
 
  ;;
9370
 
 
9371
 
*)
9372
 
  dynamic_linker=no
9373
 
  ;;
9374
 
esac
9375
 
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9376
 
echo "${ECHO_T}$dynamic_linker" >&6
9377
 
test "$dynamic_linker" = no && can_build_shared=no
9378
 
 
9379
 
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9380
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9381
 
hardcode_action=
9382
 
if test -n "$hardcode_libdir_flag_spec" || \
9383
 
   test -n "$runpath_var" || \
9384
 
   test "X$hardcode_automatic" = "Xyes" ; then
9385
 
 
9386
 
  # We can hardcode non-existant directories.
9387
 
  if test "$hardcode_direct" != no &&
9388
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9389
 
     # have to relink, otherwise we might link with an installed library
9390
 
     # when we should be linking with a yet-to-be-installed one
9391
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9392
 
     test "$hardcode_minus_L" != no; then
9393
 
    # Linking always hardcodes the temporary library directory.
9394
 
    hardcode_action=relink
9395
 
  else
9396
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9397
 
    hardcode_action=immediate
9398
 
  fi
9399
 
else
9400
 
  # We cannot hardcode anything, or else we can only hardcode existing
9401
 
  # directories.
9402
 
  hardcode_action=unsupported
9403
 
fi
9404
 
echo "$as_me:$LINENO: result: $hardcode_action" >&5
9405
 
echo "${ECHO_T}$hardcode_action" >&6
9406
 
 
9407
 
if test "$hardcode_action" = relink; then
9408
 
  # Fast installation is not supported
9409
 
  enable_fast_install=no
9410
 
elif test "$shlibpath_overrides_runpath" = yes ||
9411
 
     test "$enable_shared" = no; then
9412
 
  # Fast installation is not necessary
9413
 
  enable_fast_install=needless
9414
 
fi
9415
 
 
9416
 
striplib=
9417
 
old_striplib=
9418
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9419
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9420
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9421
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9422
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9423
 
  echo "$as_me:$LINENO: result: yes" >&5
9424
 
echo "${ECHO_T}yes" >&6
9425
 
else
9426
 
# FIXME - insert some real tests, host_os isn't really good enough
9427
 
  case $host_os in
9428
 
   darwin*)
9429
 
       if test -n "$STRIP" ; then
9430
 
         striplib="$STRIP -x"
9431
 
         echo "$as_me:$LINENO: result: yes" >&5
9432
 
echo "${ECHO_T}yes" >&6
9433
 
       else
9434
 
  echo "$as_me:$LINENO: result: no" >&5
9435
 
echo "${ECHO_T}no" >&6
9436
 
fi
9437
 
       ;;
9438
 
   *)
9439
 
  echo "$as_me:$LINENO: result: no" >&5
9440
 
echo "${ECHO_T}no" >&6
9441
 
    ;;
9442
 
  esac
9443
 
fi
9444
 
 
9445
 
if test "x$enable_dlopen" != xyes; then
9446
 
  enable_dlopen=unknown
9447
 
  enable_dlopen_self=unknown
9448
 
  enable_dlopen_self_static=unknown
9449
 
else
9450
 
  lt_cv_dlopen=no
9451
 
  lt_cv_dlopen_libs=
9452
 
 
9453
 
  case $host_os in
9454
 
  beos*)
9455
 
    lt_cv_dlopen="load_add_on"
9456
 
    lt_cv_dlopen_libs=
9457
 
    lt_cv_dlopen_self=yes
9458
 
    ;;
9459
 
 
9460
 
  mingw* | pw32*)
9461
 
    lt_cv_dlopen="LoadLibrary"
9462
 
    lt_cv_dlopen_libs=
9463
 
   ;;
9464
 
 
9465
 
  cygwin*)
9466
 
    lt_cv_dlopen="dlopen"
9467
 
    lt_cv_dlopen_libs=
9468
 
   ;;
9469
 
 
9470
 
  darwin*)
9471
 
  # if libdl is installed we need to link against it
9472
 
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9473
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9474
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9475
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9476
 
else
9477
 
  ac_check_lib_save_LIBS=$LIBS
9478
 
LIBS="-ldl  $LIBS"
9479
 
cat >conftest.$ac_ext <<_ACEOF
9480
 
/* confdefs.h.  */
9481
 
_ACEOF
9482
 
cat confdefs.h >>conftest.$ac_ext
9483
 
cat >>conftest.$ac_ext <<_ACEOF
9484
 
/* end confdefs.h.  */
9485
 
 
9486
 
/* Override any gcc2 internal prototype to avoid an error.  */
9487
 
#ifdef __cplusplus
9488
 
extern "C"
9489
 
#endif
9490
 
/* We use char because int might match the return type of a gcc2
9491
 
   builtin and then its argument prototype would still apply.  */
9492
 
char dlopen ();
9493
 
int
9494
 
main ()
9495
 
{
9496
 
dlopen ();
9497
 
  ;
9498
 
  return 0;
9499
 
}
9500
 
_ACEOF
9501
 
rm -f conftest.$ac_objext conftest$ac_exeext
9502
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9503
 
  (eval $ac_link) 2>conftest.er1
9504
 
  ac_status=$?
9505
 
  grep -v '^ *+' conftest.er1 >conftest.err
9506
 
  rm -f conftest.er1
9507
 
  cat conftest.err >&5
9508
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509
 
  (exit $ac_status); } &&
9510
 
         { ac_try='test -z "$ac_c_werror_flag"
9511
 
                         || test ! -s conftest.err'
9512
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9513
 
  (eval $ac_try) 2>&5
9514
 
  ac_status=$?
9515
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516
 
  (exit $ac_status); }; } &&
9517
 
         { ac_try='test -s conftest$ac_exeext'
9518
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9519
 
  (eval $ac_try) 2>&5
9520
 
  ac_status=$?
9521
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522
 
  (exit $ac_status); }; }; then
9523
 
  ac_cv_lib_dl_dlopen=yes
9524
 
else
9525
 
  echo "$as_me: failed program was:" >&5
9526
 
sed 's/^/| /' conftest.$ac_ext >&5
9527
 
 
9528
 
ac_cv_lib_dl_dlopen=no
9529
 
fi
9530
 
rm -f conftest.err conftest.$ac_objext \
9531
 
      conftest$ac_exeext conftest.$ac_ext
9532
 
LIBS=$ac_check_lib_save_LIBS
9533
 
fi
9534
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9535
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9536
 
if test $ac_cv_lib_dl_dlopen = yes; then
9537
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9538
 
else
9539
 
  
9540
 
    lt_cv_dlopen="dyld"
9541
 
    lt_cv_dlopen_libs=
9542
 
    lt_cv_dlopen_self=yes
9543
 
    
9544
 
fi
9545
 
 
9546
 
   ;;
9547
 
 
9548
 
  *)
9549
 
    echo "$as_me:$LINENO: checking for shl_load" >&5
9550
 
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9551
 
if test "${ac_cv_func_shl_load+set}" = set; then
9552
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9553
 
else
9554
 
  cat >conftest.$ac_ext <<_ACEOF
9555
 
/* confdefs.h.  */
9556
 
_ACEOF
9557
 
cat confdefs.h >>conftest.$ac_ext
9558
 
cat >>conftest.$ac_ext <<_ACEOF
9559
 
/* end confdefs.h.  */
9560
 
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9561
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9562
 
#define shl_load innocuous_shl_load
9563
 
 
9564
 
/* System header to define __stub macros and hopefully few prototypes,
9565
 
    which can conflict with char shl_load (); below.
9566
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9567
 
    <limits.h> exists even on freestanding compilers.  */
9568
 
 
9569
 
#ifdef __STDC__
9570
 
# include <limits.h>
9571
 
#else
9572
 
# include <assert.h>
9573
 
#endif
9574
 
 
9575
 
#undef shl_load
9576
 
 
9577
 
/* Override any gcc2 internal prototype to avoid an error.  */
9578
 
#ifdef __cplusplus
9579
 
extern "C"
9580
 
{
9581
 
#endif
9582
 
/* We use char because int might match the return type of a gcc2
9583
 
   builtin and then its argument prototype would still apply.  */
9584
 
char shl_load ();
9585
 
/* The GNU C library defines this for functions which it implements
9586
 
    to always fail with ENOSYS.  Some functions are actually named
9587
 
    something starting with __ and the normal name is an alias.  */
9588
 
#if defined (__stub_shl_load) || defined (__stub___shl_load)
9589
 
choke me
9590
 
#else
9591
 
char (*f) () = shl_load;
9592
 
#endif
9593
 
#ifdef __cplusplus
9594
 
}
9595
 
#endif
9596
 
 
9597
 
int
9598
 
main ()
9599
 
{
9600
 
return f != shl_load;
9601
 
  ;
9602
 
  return 0;
9603
 
}
9604
 
_ACEOF
9605
 
rm -f conftest.$ac_objext conftest$ac_exeext
9606
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9607
 
  (eval $ac_link) 2>conftest.er1
9608
 
  ac_status=$?
9609
 
  grep -v '^ *+' conftest.er1 >conftest.err
9610
 
  rm -f conftest.er1
9611
 
  cat conftest.err >&5
9612
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613
 
  (exit $ac_status); } &&
9614
 
         { ac_try='test -z "$ac_c_werror_flag"
9615
 
                         || test ! -s conftest.err'
9616
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9617
 
  (eval $ac_try) 2>&5
9618
 
  ac_status=$?
9619
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620
 
  (exit $ac_status); }; } &&
9621
 
         { ac_try='test -s conftest$ac_exeext'
9622
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9623
 
  (eval $ac_try) 2>&5
9624
 
  ac_status=$?
9625
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626
 
  (exit $ac_status); }; }; then
9627
 
  ac_cv_func_shl_load=yes
9628
 
else
9629
 
  echo "$as_me: failed program was:" >&5
9630
 
sed 's/^/| /' conftest.$ac_ext >&5
9631
 
 
9632
 
ac_cv_func_shl_load=no
9633
 
fi
9634
 
rm -f conftest.err conftest.$ac_objext \
9635
 
      conftest$ac_exeext conftest.$ac_ext
9636
 
fi
9637
 
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9638
 
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9639
 
if test $ac_cv_func_shl_load = yes; then
9640
 
  lt_cv_dlopen="shl_load"
9641
 
else
9642
 
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9643
 
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9644
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9645
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9646
 
else
9647
 
  ac_check_lib_save_LIBS=$LIBS
9648
 
LIBS="-ldld  $LIBS"
9649
 
cat >conftest.$ac_ext <<_ACEOF
9650
 
/* confdefs.h.  */
9651
 
_ACEOF
9652
 
cat confdefs.h >>conftest.$ac_ext
9653
 
cat >>conftest.$ac_ext <<_ACEOF
9654
 
/* end confdefs.h.  */
9655
 
 
9656
 
/* Override any gcc2 internal prototype to avoid an error.  */
9657
 
#ifdef __cplusplus
9658
 
extern "C"
9659
 
#endif
9660
 
/* We use char because int might match the return type of a gcc2
9661
 
   builtin and then its argument prototype would still apply.  */
9662
 
char shl_load ();
9663
 
int
9664
 
main ()
9665
 
{
9666
 
shl_load ();
9667
 
  ;
9668
 
  return 0;
9669
 
}
9670
 
_ACEOF
9671
 
rm -f conftest.$ac_objext conftest$ac_exeext
9672
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9673
 
  (eval $ac_link) 2>conftest.er1
9674
 
  ac_status=$?
9675
 
  grep -v '^ *+' conftest.er1 >conftest.err
9676
 
  rm -f conftest.er1
9677
 
  cat conftest.err >&5
9678
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679
 
  (exit $ac_status); } &&
9680
 
         { ac_try='test -z "$ac_c_werror_flag"
9681
 
                         || test ! -s conftest.err'
9682
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9683
 
  (eval $ac_try) 2>&5
9684
 
  ac_status=$?
9685
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686
 
  (exit $ac_status); }; } &&
9687
 
         { ac_try='test -s conftest$ac_exeext'
9688
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9689
 
  (eval $ac_try) 2>&5
9690
 
  ac_status=$?
9691
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692
 
  (exit $ac_status); }; }; then
9693
 
  ac_cv_lib_dld_shl_load=yes
9694
 
else
9695
 
  echo "$as_me: failed program was:" >&5
9696
 
sed 's/^/| /' conftest.$ac_ext >&5
9697
 
 
9698
 
ac_cv_lib_dld_shl_load=no
9699
 
fi
9700
 
rm -f conftest.err conftest.$ac_objext \
9701
 
      conftest$ac_exeext conftest.$ac_ext
9702
 
LIBS=$ac_check_lib_save_LIBS
9703
 
fi
9704
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9705
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9706
 
if test $ac_cv_lib_dld_shl_load = yes; then
9707
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9708
 
else
9709
 
  echo "$as_me:$LINENO: checking for dlopen" >&5
9710
 
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9711
 
if test "${ac_cv_func_dlopen+set}" = set; then
9712
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9713
 
else
9714
 
  cat >conftest.$ac_ext <<_ACEOF
9715
 
/* confdefs.h.  */
9716
 
_ACEOF
9717
 
cat confdefs.h >>conftest.$ac_ext
9718
 
cat >>conftest.$ac_ext <<_ACEOF
9719
 
/* end confdefs.h.  */
9720
 
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9721
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9722
 
#define dlopen innocuous_dlopen
9723
 
 
9724
 
/* System header to define __stub macros and hopefully few prototypes,
9725
 
    which can conflict with char dlopen (); below.
9726
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9727
 
    <limits.h> exists even on freestanding compilers.  */
9728
 
 
9729
 
#ifdef __STDC__
9730
 
# include <limits.h>
9731
 
#else
9732
 
# include <assert.h>
9733
 
#endif
9734
 
 
9735
 
#undef dlopen
9736
 
 
9737
 
/* Override any gcc2 internal prototype to avoid an error.  */
9738
 
#ifdef __cplusplus
9739
 
extern "C"
9740
 
{
9741
 
#endif
9742
 
/* We use char because int might match the return type of a gcc2
9743
 
   builtin and then its argument prototype would still apply.  */
9744
 
char dlopen ();
9745
 
/* The GNU C library defines this for functions which it implements
9746
 
    to always fail with ENOSYS.  Some functions are actually named
9747
 
    something starting with __ and the normal name is an alias.  */
9748
 
#if defined (__stub_dlopen) || defined (__stub___dlopen)
9749
 
choke me
9750
 
#else
9751
 
char (*f) () = dlopen;
9752
 
#endif
9753
 
#ifdef __cplusplus
9754
 
}
9755
 
#endif
9756
 
 
9757
 
int
9758
 
main ()
9759
 
{
9760
 
return f != dlopen;
9761
 
  ;
9762
 
  return 0;
9763
 
}
9764
 
_ACEOF
9765
 
rm -f conftest.$ac_objext conftest$ac_exeext
9766
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9767
 
  (eval $ac_link) 2>conftest.er1
9768
 
  ac_status=$?
9769
 
  grep -v '^ *+' conftest.er1 >conftest.err
9770
 
  rm -f conftest.er1
9771
 
  cat conftest.err >&5
9772
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773
 
  (exit $ac_status); } &&
9774
 
         { ac_try='test -z "$ac_c_werror_flag"
9775
 
                         || test ! -s conftest.err'
9776
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9777
 
  (eval $ac_try) 2>&5
9778
 
  ac_status=$?
9779
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780
 
  (exit $ac_status); }; } &&
9781
 
         { ac_try='test -s conftest$ac_exeext'
9782
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9783
 
  (eval $ac_try) 2>&5
9784
 
  ac_status=$?
9785
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786
 
  (exit $ac_status); }; }; then
9787
 
  ac_cv_func_dlopen=yes
9788
 
else
9789
 
  echo "$as_me: failed program was:" >&5
9790
 
sed 's/^/| /' conftest.$ac_ext >&5
9791
 
 
9792
 
ac_cv_func_dlopen=no
9793
 
fi
9794
 
rm -f conftest.err conftest.$ac_objext \
9795
 
      conftest$ac_exeext conftest.$ac_ext
9796
 
fi
9797
 
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9798
 
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9799
 
if test $ac_cv_func_dlopen = yes; then
9800
 
  lt_cv_dlopen="dlopen"
9801
 
else
9802
 
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9803
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9804
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9805
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9806
 
else
9807
 
  ac_check_lib_save_LIBS=$LIBS
9808
 
LIBS="-ldl  $LIBS"
9809
 
cat >conftest.$ac_ext <<_ACEOF
9810
 
/* confdefs.h.  */
9811
 
_ACEOF
9812
 
cat confdefs.h >>conftest.$ac_ext
9813
 
cat >>conftest.$ac_ext <<_ACEOF
9814
 
/* end confdefs.h.  */
9815
 
 
9816
 
/* Override any gcc2 internal prototype to avoid an error.  */
9817
 
#ifdef __cplusplus
9818
 
extern "C"
9819
 
#endif
9820
 
/* We use char because int might match the return type of a gcc2
9821
 
   builtin and then its argument prototype would still apply.  */
9822
 
char dlopen ();
9823
 
int
9824
 
main ()
9825
 
{
9826
 
dlopen ();
9827
 
  ;
9828
 
  return 0;
9829
 
}
9830
 
_ACEOF
9831
 
rm -f conftest.$ac_objext conftest$ac_exeext
9832
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9833
 
  (eval $ac_link) 2>conftest.er1
9834
 
  ac_status=$?
9835
 
  grep -v '^ *+' conftest.er1 >conftest.err
9836
 
  rm -f conftest.er1
9837
 
  cat conftest.err >&5
9838
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839
 
  (exit $ac_status); } &&
9840
 
         { ac_try='test -z "$ac_c_werror_flag"
9841
 
                         || test ! -s conftest.err'
9842
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9843
 
  (eval $ac_try) 2>&5
9844
 
  ac_status=$?
9845
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846
 
  (exit $ac_status); }; } &&
9847
 
         { ac_try='test -s conftest$ac_exeext'
9848
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9849
 
  (eval $ac_try) 2>&5
9850
 
  ac_status=$?
9851
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852
 
  (exit $ac_status); }; }; then
9853
 
  ac_cv_lib_dl_dlopen=yes
9854
 
else
9855
 
  echo "$as_me: failed program was:" >&5
9856
 
sed 's/^/| /' conftest.$ac_ext >&5
9857
 
 
9858
 
ac_cv_lib_dl_dlopen=no
9859
 
fi
9860
 
rm -f conftest.err conftest.$ac_objext \
9861
 
      conftest$ac_exeext conftest.$ac_ext
9862
 
LIBS=$ac_check_lib_save_LIBS
9863
 
fi
9864
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9865
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9866
 
if test $ac_cv_lib_dl_dlopen = yes; then
9867
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9868
 
else
9869
 
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9870
 
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9871
 
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9872
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9873
 
else
9874
 
  ac_check_lib_save_LIBS=$LIBS
9875
 
LIBS="-lsvld  $LIBS"
9876
 
cat >conftest.$ac_ext <<_ACEOF
9877
 
/* confdefs.h.  */
9878
 
_ACEOF
9879
 
cat confdefs.h >>conftest.$ac_ext
9880
 
cat >>conftest.$ac_ext <<_ACEOF
9881
 
/* end confdefs.h.  */
9882
 
 
9883
 
/* Override any gcc2 internal prototype to avoid an error.  */
9884
 
#ifdef __cplusplus
9885
 
extern "C"
9886
 
#endif
9887
 
/* We use char because int might match the return type of a gcc2
9888
 
   builtin and then its argument prototype would still apply.  */
9889
 
char dlopen ();
9890
 
int
9891
 
main ()
9892
 
{
9893
 
dlopen ();
9894
 
  ;
9895
 
  return 0;
9896
 
}
9897
 
_ACEOF
9898
 
rm -f conftest.$ac_objext conftest$ac_exeext
9899
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9900
 
  (eval $ac_link) 2>conftest.er1
9901
 
  ac_status=$?
9902
 
  grep -v '^ *+' conftest.er1 >conftest.err
9903
 
  rm -f conftest.er1
9904
 
  cat conftest.err >&5
9905
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906
 
  (exit $ac_status); } &&
9907
 
         { ac_try='test -z "$ac_c_werror_flag"
9908
 
                         || test ! -s conftest.err'
9909
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9910
 
  (eval $ac_try) 2>&5
9911
 
  ac_status=$?
9912
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913
 
  (exit $ac_status); }; } &&
9914
 
         { ac_try='test -s conftest$ac_exeext'
9915
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9916
 
  (eval $ac_try) 2>&5
9917
 
  ac_status=$?
9918
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919
 
  (exit $ac_status); }; }; then
9920
 
  ac_cv_lib_svld_dlopen=yes
9921
 
else
9922
 
  echo "$as_me: failed program was:" >&5
9923
 
sed 's/^/| /' conftest.$ac_ext >&5
9924
 
 
9925
 
ac_cv_lib_svld_dlopen=no
9926
 
fi
9927
 
rm -f conftest.err conftest.$ac_objext \
9928
 
      conftest$ac_exeext conftest.$ac_ext
9929
 
LIBS=$ac_check_lib_save_LIBS
9930
 
fi
9931
 
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9932
 
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9933
 
if test $ac_cv_lib_svld_dlopen = yes; then
9934
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9935
 
else
9936
 
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9937
 
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9938
 
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9939
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9940
 
else
9941
 
  ac_check_lib_save_LIBS=$LIBS
9942
 
LIBS="-ldld  $LIBS"
9943
 
cat >conftest.$ac_ext <<_ACEOF
9944
 
/* confdefs.h.  */
9945
 
_ACEOF
9946
 
cat confdefs.h >>conftest.$ac_ext
9947
 
cat >>conftest.$ac_ext <<_ACEOF
9948
 
/* end confdefs.h.  */
9949
 
 
9950
 
/* Override any gcc2 internal prototype to avoid an error.  */
9951
 
#ifdef __cplusplus
9952
 
extern "C"
9953
 
#endif
9954
 
/* We use char because int might match the return type of a gcc2
9955
 
   builtin and then its argument prototype would still apply.  */
9956
 
char dld_link ();
9957
 
int
9958
 
main ()
9959
 
{
9960
 
dld_link ();
9961
 
  ;
9962
 
  return 0;
9963
 
}
9964
 
_ACEOF
9965
 
rm -f conftest.$ac_objext conftest$ac_exeext
9966
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9967
 
  (eval $ac_link) 2>conftest.er1
9968
 
  ac_status=$?
9969
 
  grep -v '^ *+' conftest.er1 >conftest.err
9970
 
  rm -f conftest.er1
9971
 
  cat conftest.err >&5
9972
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973
 
  (exit $ac_status); } &&
9974
 
         { ac_try='test -z "$ac_c_werror_flag"
9975
 
                         || test ! -s conftest.err'
9976
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9977
 
  (eval $ac_try) 2>&5
9978
 
  ac_status=$?
9979
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980
 
  (exit $ac_status); }; } &&
9981
 
         { ac_try='test -s conftest$ac_exeext'
9982
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9983
 
  (eval $ac_try) 2>&5
9984
 
  ac_status=$?
9985
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986
 
  (exit $ac_status); }; }; then
9987
 
  ac_cv_lib_dld_dld_link=yes
9988
 
else
9989
 
  echo "$as_me: failed program was:" >&5
9990
 
sed 's/^/| /' conftest.$ac_ext >&5
9991
 
 
9992
 
ac_cv_lib_dld_dld_link=no
9993
 
fi
9994
 
rm -f conftest.err conftest.$ac_objext \
9995
 
      conftest$ac_exeext conftest.$ac_ext
9996
 
LIBS=$ac_check_lib_save_LIBS
9997
 
fi
9998
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9999
 
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10000
 
if test $ac_cv_lib_dld_dld_link = yes; then
10001
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10002
 
fi
10003
 
 
10004
 
              
10005
 
fi
10006
 
 
10007
 
            
10008
 
fi
10009
 
 
10010
 
          
10011
 
fi
10012
 
 
10013
 
        
10014
 
fi
10015
 
 
10016
 
      
10017
 
fi
10018
 
 
10019
 
    ;;
10020
 
  esac
10021
 
 
10022
 
  if test "x$lt_cv_dlopen" != xno; then
10023
 
    enable_dlopen=yes
10024
 
  else
10025
 
    enable_dlopen=no
10026
 
  fi
10027
 
 
10028
 
  case $lt_cv_dlopen in
10029
 
  dlopen)
10030
 
    save_CPPFLAGS="$CPPFLAGS"
10031
 
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10032
 
 
10033
 
    save_LDFLAGS="$LDFLAGS"
10034
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10035
 
 
10036
 
    save_LIBS="$LIBS"
10037
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
10038
 
 
10039
 
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10040
 
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10041
 
if test "${lt_cv_dlopen_self+set}" = set; then
10042
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10043
 
else
10044
 
          if test "$cross_compiling" = yes; then :
10045
 
  lt_cv_dlopen_self=cross
10046
 
else
10047
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10048
 
  lt_status=$lt_dlunknown
10049
 
  cat > conftest.$ac_ext <<EOF
10050
 
#line __oline__ "configure"
10051
 
#include "confdefs.h"
10052
 
 
10053
 
#if HAVE_DLFCN_H
10054
 
#include <dlfcn.h>
10055
 
#endif
10056
 
 
10057
 
#include <stdio.h>
10058
 
 
10059
 
#ifdef RTLD_GLOBAL
10060
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
10061
 
#else
10062
 
#  ifdef DL_GLOBAL
10063
 
#    define LT_DLGLOBAL         DL_GLOBAL
10064
 
#  else
10065
 
#    define LT_DLGLOBAL         0
10066
 
#  endif
10067
 
#endif
10068
 
 
10069
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10070
 
   find out it does not work in some platform. */
10071
 
#ifndef LT_DLLAZY_OR_NOW
10072
 
#  ifdef RTLD_LAZY
10073
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10074
 
#  else
10075
 
#    ifdef DL_LAZY
10076
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
10077
 
#    else
10078
 
#      ifdef RTLD_NOW
10079
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10080
 
#      else
10081
 
#        ifdef DL_NOW
10082
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
10083
 
#        else
10084
 
#          define LT_DLLAZY_OR_NOW      0
10085
 
#        endif
10086
 
#      endif
10087
 
#    endif
10088
 
#  endif
10089
 
#endif
10090
 
 
10091
 
#ifdef __cplusplus
10092
 
extern "C" void exit (int);
10093
 
#endif
10094
 
 
10095
 
void fnord() { int i=42;}
10096
 
int main ()
10097
 
{
10098
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10099
 
  int status = $lt_dlunknown;
10100
 
 
10101
 
  if (self)
10102
 
    {
10103
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10104
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10105
 
      /* dlclose (self); */
10106
 
    }
10107
 
 
10108
 
    exit (status);
10109
 
}
10110
 
EOF
10111
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10112
 
  (eval $ac_link) 2>&5
10113
 
  ac_status=$?
10114
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10116
 
    (./conftest; exit; ) 2>/dev/null
10117
 
    lt_status=$?
10118
 
    case x$lt_status in
10119
 
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10120
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10121
 
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10122
 
    esac
10123
 
  else :
10124
 
    # compilation failed
10125
 
    lt_cv_dlopen_self=no
10126
 
  fi
10127
 
fi
10128
 
rm -fr conftest*
10129
 
 
10130
 
    
10131
 
fi
10132
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10133
 
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10134
 
 
10135
 
    if test "x$lt_cv_dlopen_self" = xyes; then
10136
 
      LDFLAGS="$LDFLAGS $link_static_flag"
10137
 
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10138
 
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10139
 
if test "${lt_cv_dlopen_self_static+set}" = set; then
10140
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10141
 
else
10142
 
          if test "$cross_compiling" = yes; then :
10143
 
  lt_cv_dlopen_self_static=cross
10144
 
else
10145
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10146
 
  lt_status=$lt_dlunknown
10147
 
  cat > conftest.$ac_ext <<EOF
10148
 
#line __oline__ "configure"
10149
 
#include "confdefs.h"
10150
 
 
10151
 
#if HAVE_DLFCN_H
10152
 
#include <dlfcn.h>
10153
 
#endif
10154
 
 
10155
 
#include <stdio.h>
10156
 
 
10157
 
#ifdef RTLD_GLOBAL
10158
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
10159
 
#else
10160
 
#  ifdef DL_GLOBAL
10161
 
#    define LT_DLGLOBAL         DL_GLOBAL
10162
 
#  else
10163
 
#    define LT_DLGLOBAL         0
10164
 
#  endif
10165
 
#endif
10166
 
 
10167
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10168
 
   find out it does not work in some platform. */
10169
 
#ifndef LT_DLLAZY_OR_NOW
10170
 
#  ifdef RTLD_LAZY
10171
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10172
 
#  else
10173
 
#    ifdef DL_LAZY
10174
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
10175
 
#    else
10176
 
#      ifdef RTLD_NOW
10177
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10178
 
#      else
10179
 
#        ifdef DL_NOW
10180
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
10181
 
#        else
10182
 
#          define LT_DLLAZY_OR_NOW      0
10183
 
#        endif
10184
 
#      endif
10185
 
#    endif
10186
 
#  endif
10187
 
#endif
10188
 
 
10189
 
#ifdef __cplusplus
10190
 
extern "C" void exit (int);
10191
 
#endif
10192
 
 
10193
 
void fnord() { int i=42;}
10194
 
int main ()
10195
 
{
10196
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10197
 
  int status = $lt_dlunknown;
10198
 
 
10199
 
  if (self)
10200
 
    {
10201
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10202
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10203
 
      /* dlclose (self); */
10204
 
    }
10205
 
 
10206
 
    exit (status);
10207
 
}
10208
 
EOF
10209
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10210
 
  (eval $ac_link) 2>&5
10211
 
  ac_status=$?
10212
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10214
 
    (./conftest; exit; ) 2>/dev/null
10215
 
    lt_status=$?
10216
 
    case x$lt_status in
10217
 
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10218
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10219
 
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10220
 
    esac
10221
 
  else :
10222
 
    # compilation failed
10223
 
    lt_cv_dlopen_self_static=no
10224
 
  fi
10225
 
fi
10226
 
rm -fr conftest*
10227
 
 
10228
 
      
10229
 
fi
10230
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10231
 
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10232
 
    fi
10233
 
 
10234
 
    CPPFLAGS="$save_CPPFLAGS"
10235
 
    LDFLAGS="$save_LDFLAGS"
10236
 
    LIBS="$save_LIBS"
10237
 
    ;;
10238
 
  esac
10239
 
 
10240
 
  case $lt_cv_dlopen_self in
10241
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10242
 
  *) enable_dlopen_self=unknown ;;
10243
 
  esac
10244
 
 
10245
 
  case $lt_cv_dlopen_self_static in
10246
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10247
 
  *) enable_dlopen_self_static=unknown ;;
10248
 
  esac
10249
 
fi
10250
 
 
10251
 
 
10252
 
# Report which librarie types wil actually be built
10253
 
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10254
 
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10255
 
echo "$as_me:$LINENO: result: $can_build_shared" >&5
10256
 
echo "${ECHO_T}$can_build_shared" >&6
10257
 
 
10258
 
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10259
 
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10260
 
test "$can_build_shared" = "no" && enable_shared=no
10261
 
 
10262
 
# On AIX, shared libraries and static libraries use the same namespace, and
10263
 
# are all built from PIC.
10264
 
case "$host_os" in
10265
 
aix3*)
10266
 
  test "$enable_shared" = yes && enable_static=no
10267
 
  if test -n "$RANLIB"; then
10268
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10269
 
    postinstall_cmds='$RANLIB $lib'
10270
 
  fi
10271
 
  ;;
10272
 
 
10273
 
aix4* | aix5*)
10274
 
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10275
 
    test "$enable_shared" = yes && enable_static=no
10276
 
  fi
10277
 
    ;;
10278
 
esac
10279
 
echo "$as_me:$LINENO: result: $enable_shared" >&5
10280
 
echo "${ECHO_T}$enable_shared" >&6
10281
 
 
10282
 
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10283
 
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10284
 
# Make sure either enable_shared or enable_static is yes.
10285
 
test "$enable_shared" = yes || enable_static=yes
10286
 
echo "$as_me:$LINENO: result: $enable_static" >&5
10287
 
echo "${ECHO_T}$enable_static" >&6
10288
 
 
10289
 
# The else clause should only fire when bootstrapping the
10290
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
10291
 
# with your package, and you will get complaints that there are
10292
 
# no rules to generate ltmain.sh.
10293
 
if test -f "$ltmain"; then
10294
 
  # See if we are running on zsh, and set the options which allow our commands through
10295
 
  # without removal of \ escapes.
10296
 
  if test -n "${ZSH_VERSION+set}" ; then
10297
 
    setopt NO_GLOB_SUBST
10298
 
  fi
10299
 
  # Now quote all the things that may contain metacharacters while being
10300
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10301
 
  # variables and quote the copies for generation of the libtool script.
10302
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS AS EGREP RANLIB LN_S LTCC NM \
10303
 
    SED SHELL STRIP \
10304
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10305
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10306
 
    deplibs_check_method reload_flag reload_cmds need_locks \
10307
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10308
 
    lt_cv_sys_global_symbol_to_c_name_address \
10309
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10310
 
    old_postinstall_cmds old_postuninstall_cmds \
10311
 
    compiler \
10312
 
    CC \
10313
 
    LD \
10314
 
    lt_prog_compiler_wl \
10315
 
    lt_prog_compiler_pic \
10316
 
    lt_prog_compiler_static \
10317
 
    lt_prog_compiler_no_builtin_flag \
10318
 
    export_dynamic_flag_spec \
10319
 
    thread_safe_flag_spec \
10320
 
    whole_archive_flag_spec \
10321
 
    enable_shared_with_static_runtimes \
10322
 
    old_archive_cmds \
10323
 
    old_archive_from_new_cmds \
10324
 
    predep_objects \
10325
 
    postdep_objects \
10326
 
    predeps \
10327
 
    postdeps \
10328
 
    compiler_lib_search_path \
10329
 
    archive_cmds \
10330
 
    archive_expsym_cmds \
10331
 
    postinstall_cmds \
10332
 
    postuninstall_cmds \
10333
 
    old_archive_from_expsyms_cmds \
10334
 
    allow_undefined_flag \
10335
 
    no_undefined_flag \
10336
 
    export_symbols_cmds \
10337
 
    hardcode_libdir_flag_spec \
10338
 
    hardcode_libdir_flag_spec_ld \
10339
 
    hardcode_libdir_separator \
10340
 
    hardcode_automatic \
10341
 
    module_cmds \
10342
 
    module_expsym_cmds \
10343
 
    lt_cv_prog_compiler_c_o \
10344
 
    exclude_expsyms \
10345
 
    include_expsyms; do
10346
 
 
10347
 
    case $var in
10348
 
    old_archive_cmds | \
10349
 
    old_archive_from_new_cmds | \
10350
 
    archive_cmds | \
10351
 
    archive_expsym_cmds | \
10352
 
    module_cmds | \
10353
 
    module_expsym_cmds | \
10354
 
    old_archive_from_expsyms_cmds | \
10355
 
    export_symbols_cmds | \
10356
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10357
 
    postinstall_cmds | postuninstall_cmds | \
10358
 
    old_postinstall_cmds | old_postuninstall_cmds | \
10359
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10360
 
      # Double-quote double-evaled strings.
10361
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10362
 
      ;;
10363
 
    *)
10364
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10365
 
      ;;
10366
 
    esac
10367
 
  done
10368
 
 
10369
 
  case $lt_echo in
10370
 
  *'\$0 --fallback-echo"')
10371
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10372
 
    ;;
10373
 
  esac
10374
 
 
10375
 
cfgfile="${ofile}T"
10376
 
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10377
 
  $rm -f "$cfgfile"
10378
 
  { echo "$as_me:$LINENO: creating $ofile" >&5
10379
 
echo "$as_me: creating $ofile" >&6;}
10380
 
 
10381
 
  cat <<__EOF__ >> "$cfgfile"
10382
 
#! $SHELL
10383
 
 
10384
 
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10385
 
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10386
 
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10387
 
#
10388
 
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10389
 
# Free Software Foundation, Inc.
10390
 
#
10391
 
# This file is part of GNU Libtool:
10392
 
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10393
 
#
10394
 
# This program is free software; you can redistribute it and/or modify
10395
 
# it under the terms of the GNU General Public License as published by
10396
 
# the Free Software Foundation; either version 2 of the License, or
10397
 
# (at your option) any later version.
10398
 
#
10399
 
# This program is distributed in the hope that it will be useful, but
10400
 
# WITHOUT ANY WARRANTY; without even the implied warranty of
10401
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10402
 
# General Public License for more details.
10403
 
#
10404
 
# You should have received a copy of the GNU General Public License
10405
 
# along with this program; if not, write to the Free Software
10406
 
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
10407
 
#
10408
 
# As a special exception to the GNU General Public License, if you
10409
 
# distribute this file as part of a program that contains a
10410
 
# configuration script generated by Autoconf, you may include it under
10411
 
# the same distribution terms that you use for the rest of that program.
10412
 
 
10413
 
# A sed program that does not truncate output.
10414
 
SED=$lt_SED
10415
 
 
10416
 
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10417
 
Xsed="$SED -e s/^X//"
10418
 
 
10419
 
# The HP-UX ksh and POSIX shell print the target directory to stdout
10420
 
# if CDPATH is set.
10421
 
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10422
 
 
10423
 
# The names of the tagged configurations supported by this script.
10424
 
available_tags=
10425
 
 
10426
 
# ### BEGIN LIBTOOL CONFIG
10427
 
 
10428
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10429
 
 
10430
 
# Shell to use when invoking shell scripts.
10431
 
SHELL=$lt_SHELL
10432
 
 
10433
 
# Whether or not to build shared libraries.
10434
 
build_libtool_libs=$enable_shared
10435
 
 
10436
 
# Whether or not to build static libraries.
10437
 
build_old_libs=$enable_static
10438
 
 
10439
 
# Whether or not to add -lc for building shared libraries.
10440
 
build_libtool_need_lc=$archive_cmds_need_lc
10441
 
 
10442
 
# Whether or not to disallow shared libs when runtime libs are static
10443
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10444
 
 
10445
 
# Whether or not to optimize for fast installation.
10446
 
fast_install=$enable_fast_install
10447
 
 
10448
 
# The host system.
10449
 
host_alias=$host_alias
10450
 
host=$host
10451
 
host_os=$host_os
10452
 
 
10453
 
# The build system.
10454
 
build_alias=$build_alias
10455
 
build=$build
10456
 
build_os=$build_os
10457
 
 
10458
 
# An echo program that does not interpret backslashes.
10459
 
echo=$lt_echo
10460
 
 
10461
 
# The archiver.
10462
 
AR=$lt_AR
10463
 
AR_FLAGS=$lt_AR_FLAGS
10464
 
 
10465
 
# A C compiler.
10466
 
LTCC=$lt_LTCC
10467
 
 
10468
 
# A language-specific compiler.
10469
 
CC=$lt_compiler
10470
 
 
10471
 
# Is the compiler the GNU C compiler?
10472
 
with_gcc=$GCC
10473
 
 
10474
 
# An ERE matcher.
10475
 
EGREP=$lt_EGREP
10476
 
 
10477
 
# The linker used to build libraries.
10478
 
LD=$lt_LD
10479
 
 
10480
 
# Whether we need hard or soft links.
10481
 
LN_S=$lt_LN_S
10482
 
 
10483
 
# A BSD-compatible nm program.
10484
 
NM=$lt_NM
10485
 
 
10486
 
# A symbol stripping program
10487
 
STRIP=$lt_STRIP
10488
 
 
10489
 
# Used to examine libraries when file_magic_cmd begins "file"
10490
 
MAGIC_CMD=$MAGIC_CMD
10491
 
 
10492
 
# Used on cygwin: DLL creation program.
10493
 
DLLTOOL="$DLLTOOL"
10494
 
 
10495
 
# Used on cygwin: object dumper.
10496
 
OBJDUMP="$OBJDUMP"
10497
 
 
10498
 
# Used on cygwin: assembler.
10499
 
AS=$lt_AS
10500
 
 
10501
 
# The name of the directory that contains temporary libtool files.
10502
 
objdir=$objdir
10503
 
 
10504
 
# How to create reloadable object files.
10505
 
reload_flag=$lt_reload_flag
10506
 
reload_cmds=$lt_reload_cmds
10507
 
 
10508
 
# How to pass a linker flag through the compiler.
10509
 
wl=$lt_lt_prog_compiler_wl
10510
 
 
10511
 
# Object file suffix (normally "o").
10512
 
objext="$ac_objext"
10513
 
 
10514
 
# Old archive suffix (normally "a").
10515
 
libext="$libext"
10516
 
 
10517
 
# Shared library suffix (normally ".so").
10518
 
shrext_cmds='$shrext_cmds'
10519
 
 
10520
 
# Executable file suffix (normally "").
10521
 
exeext="$exeext"
10522
 
 
10523
 
# Additional compiler flags for building library objects.
10524
 
pic_flag=$lt_lt_prog_compiler_pic
10525
 
pic_mode=$pic_mode
10526
 
 
10527
 
# What is the maximum length of a command?
10528
 
max_cmd_len=$lt_cv_sys_max_cmd_len
10529
 
 
10530
 
# Does compiler simultaneously support -c and -o options?
10531
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10532
 
 
10533
 
# Must we lock files when doing compilation ?
10534
 
need_locks=$lt_need_locks
10535
 
 
10536
 
# Do we need the lib prefix for modules?
10537
 
need_lib_prefix=$need_lib_prefix
10538
 
 
10539
 
# Do we need a version for libraries?
10540
 
need_version=$need_version
10541
 
 
10542
 
# Whether dlopen is supported.
10543
 
dlopen_support=$enable_dlopen
10544
 
 
10545
 
# Whether dlopen of programs is supported.
10546
 
dlopen_self=$enable_dlopen_self
10547
 
 
10548
 
# Whether dlopen of statically linked programs is supported.
10549
 
dlopen_self_static=$enable_dlopen_self_static
10550
 
 
10551
 
# Compiler flag to prevent dynamic linking.
10552
 
link_static_flag=$lt_lt_prog_compiler_static
10553
 
 
10554
 
# Compiler flag to turn off builtin functions.
10555
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10556
 
 
10557
 
# Compiler flag to allow reflexive dlopens.
10558
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10559
 
 
10560
 
# Compiler flag to generate shared objects directly from archives.
10561
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec
10562
 
 
10563
 
# Compiler flag to generate thread-safe objects.
10564
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec
10565
 
 
10566
 
# Library versioning type.
10567
 
version_type=$version_type
10568
 
 
10569
 
# Format of library name prefix.
10570
 
libname_spec=$lt_libname_spec
10571
 
 
10572
 
# List of archive names.  First name is the real one, the rest are links.
10573
 
# The last name is the one that the linker finds with -lNAME.
10574
 
library_names_spec=$lt_library_names_spec
10575
 
 
10576
 
# The coded name of the library, if different from the real name.
10577
 
soname_spec=$lt_soname_spec
10578
 
 
10579
 
# Commands used to build and install an old-style archive.
10580
 
RANLIB=$lt_RANLIB
10581
 
old_archive_cmds=$lt_old_archive_cmds
10582
 
old_postinstall_cmds=$lt_old_postinstall_cmds
10583
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
10584
 
 
10585
 
# Create an old-style archive from a shared archive.
10586
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10587
 
 
10588
 
# Create a temporary old-style archive to link instead of a shared archive.
10589
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10590
 
 
10591
 
# Commands used to build and install a shared archive.
10592
 
archive_cmds=$lt_archive_cmds
10593
 
archive_expsym_cmds=$lt_archive_expsym_cmds
10594
 
postinstall_cmds=$lt_postinstall_cmds
10595
 
postuninstall_cmds=$lt_postuninstall_cmds
10596
 
 
10597
 
# Commands used to build a loadable module (assumed same as above if empty)
10598
 
module_cmds=$lt_module_cmds
10599
 
module_expsym_cmds=$lt_module_expsym_cmds
10600
 
 
10601
 
# Commands to strip libraries.
10602
 
old_striplib=$lt_old_striplib
10603
 
striplib=$lt_striplib
10604
 
 
10605
 
# Dependencies to place before the objects being linked to create a
10606
 
# shared library.
10607
 
predep_objects=$lt_predep_objects
10608
 
 
10609
 
# Dependencies to place after the objects being linked to create a
10610
 
# shared library.
10611
 
postdep_objects=$lt_postdep_objects
10612
 
 
10613
 
# Dependencies to place before the objects being linked to create a
10614
 
# shared library.
10615
 
predeps=$lt_predeps
10616
 
 
10617
 
# Dependencies to place after the objects being linked to create a
10618
 
# shared library.
10619
 
postdeps=$lt_postdeps
10620
 
 
10621
 
# The library search path used internally by the compiler when linking
10622
 
# a shared library.
10623
 
compiler_lib_search_path=$lt_compiler_lib_search_path
10624
 
 
10625
 
# Method to check whether dependent libraries are shared objects.
10626
 
deplibs_check_method=$lt_deplibs_check_method
10627
 
 
10628
 
# Command to use when deplibs_check_method == file_magic.
10629
 
file_magic_cmd=$lt_file_magic_cmd
10630
 
 
10631
 
# Flag that allows shared libraries with undefined symbols to be built.
10632
 
allow_undefined_flag=$lt_allow_undefined_flag
10633
 
 
10634
 
# Flag that forces no undefined symbols.
10635
 
no_undefined_flag=$lt_no_undefined_flag
10636
 
 
10637
 
# Commands used to finish a libtool library installation in a directory.
10638
 
finish_cmds=$lt_finish_cmds
10639
 
 
10640
 
# Same as above, but a single script fragment to be evaled but not shown.
10641
 
finish_eval=$lt_finish_eval
10642
 
 
10643
 
# Take the output of nm and produce a listing of raw symbols and C names.
10644
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10645
 
 
10646
 
# Transform the output of nm in a proper C declaration
10647
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10648
 
 
10649
 
# Transform the output of nm in a C name address pair
10650
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10651
 
 
10652
 
# This is the shared library runtime path variable.
10653
 
runpath_var=$runpath_var
10654
 
 
10655
 
# This is the shared library path variable.
10656
 
shlibpath_var=$shlibpath_var
10657
 
 
10658
 
# Is shlibpath searched before the hard-coded library search path?
10659
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10660
 
 
10661
 
# How to hardcode a shared library path into an executable.
10662
 
hardcode_action=$hardcode_action
10663
 
 
10664
 
# Whether we should hardcode library paths into libraries.
10665
 
hardcode_into_libs=$hardcode_into_libs
10666
 
 
10667
 
# Flag to hardcode \$libdir into a binary during linking.
10668
 
# This must work even if \$libdir does not exist.
10669
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10670
 
 
10671
 
# If ld is used when linking, flag to hardcode \$libdir into
10672
 
# a binary during linking. This must work even if \$libdir does
10673
 
# not exist.
10674
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10675
 
 
10676
 
# Whether we need a single -rpath flag with a separated argument.
10677
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator
10678
 
 
10679
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10680
 
# resulting binary.
10681
 
hardcode_direct=$hardcode_direct
10682
 
 
10683
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10684
 
# resulting binary.
10685
 
hardcode_minus_L=$hardcode_minus_L
10686
 
 
10687
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10688
 
# the resulting binary.
10689
 
hardcode_shlibpath_var=$hardcode_shlibpath_var
10690
 
 
10691
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
10692
 
# and all subsequent libraries and executables linked against it.
10693
 
hardcode_automatic=$hardcode_automatic
10694
 
 
10695
 
# Variables whose values should be saved in libtool wrapper scripts and
10696
 
# restored at relink time.
10697
 
variables_saved_for_relink="$variables_saved_for_relink"
10698
 
 
10699
 
# Whether libtool must link a program against all its dependency libraries.
10700
 
link_all_deplibs=$link_all_deplibs
10701
 
 
10702
 
# Compile-time system search path for libraries
10703
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10704
 
 
10705
 
# Run-time system search path for libraries
10706
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10707
 
 
10708
 
# Fix the shell variable \$srcfile for the compiler.
10709
 
fix_srcfile_path="$fix_srcfile_path"
10710
 
 
10711
 
# Set to yes if exported symbols are required.
10712
 
always_export_symbols=$always_export_symbols
10713
 
 
10714
 
# The commands to list exported symbols.
10715
 
export_symbols_cmds=$lt_export_symbols_cmds
10716
 
 
10717
 
# The commands to extract the exported symbol list from a shared archive.
10718
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
10719
 
 
10720
 
# Symbols that should not be listed in the preloaded symbols.
10721
 
exclude_expsyms=$lt_exclude_expsyms
10722
 
 
10723
 
# Symbols that must always be exported.
10724
 
include_expsyms=$lt_include_expsyms
10725
 
 
10726
 
# ### END LIBTOOL CONFIG
10727
 
 
10728
 
__EOF__
10729
 
 
10730
 
 
10731
 
  case $host_os in
10732
 
  aix3*)
10733
 
    cat <<\EOF >> "$cfgfile"
10734
 
 
10735
 
# AIX sometimes has problems with the GCC collect2 program.  For some
10736
 
# reason, if we set the COLLECT_NAMES environment variable, the problems
10737
 
# vanish in a puff of smoke.
10738
 
if test "X${COLLECT_NAMES+set}" != Xset; then
10739
 
  COLLECT_NAMES=
10740
 
  export COLLECT_NAMES
10741
 
fi
10742
 
EOF
10743
 
    ;;
10744
 
  esac
10745
 
 
10746
 
  # We use sed instead of cat because bash on DJGPP gets confused if
10747
 
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10748
 
  # text mode, it properly converts lines to CR/LF.  This bash problem
10749
 
  # is reportedly fixed, but why not run on old versions too?
10750
 
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10751
 
 
10752
 
  mv -f "$cfgfile" "$ofile" || \
10753
 
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10754
 
  chmod +x "$ofile"
10755
 
 
10756
 
else
10757
 
  # If there is no Makefile yet, we rely on a make rule to execute
10758
 
  # `config.status --recheck' to rerun these tests and create the
10759
 
  # libtool script then.
10760
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10761
 
  if test -f "$ltmain_in"; then
10762
 
    test -f Makefile && make "$ltmain"
10763
 
  fi
10764
 
fi
10765
 
 
10766
 
 
10767
 
ac_ext=c
10768
 
ac_cpp='$CPP $CPPFLAGS'
10769
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10770
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10771
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10772
 
 
10773
 
CC="$lt_save_CC"
10774
 
 
10775
 
 
10776
 
# Check whether --with-tags or --without-tags was given.
10777
 
if test "${with_tags+set}" = set; then
10778
 
  withval="$with_tags"
10779
 
  tagnames="$withval"
10780
 
fi; 
10781
 
 
10782
 
if test -f "$ltmain" && test -n "$tagnames"; then
10783
 
  if test ! -f "${ofile}"; then
10784
 
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10785
 
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10786
 
  fi
10787
 
 
10788
 
  if test -z "$LTCC"; then
10789
 
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10790
 
    if test -z "$LTCC"; then
10791
 
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10792
 
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10793
 
    else
10794
 
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10795
 
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10796
 
    fi
10797
 
  fi
10798
 
 
10799
 
  # Extract list of available tagged configurations in $ofile.
10800
 
  # Note that this assumes the entire list is on one line.
10801
 
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10802
 
 
10803
 
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10804
 
  for tagname in $tagnames; do
10805
 
    IFS="$lt_save_ifs"
10806
 
    # Check whether tagname contains only valid characters
10807
 
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10808
 
    "") ;;
10809
 
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10810
 
echo "$as_me: error: invalid tag name: $tagname" >&2;}
10811
 
   { (exit 1); exit 1; }; }
10812
 
        ;;
10813
 
    esac
10814
 
 
10815
 
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10816
 
    then
10817
 
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10818
 
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10819
 
   { (exit 1); exit 1; }; }
10820
 
    fi
10821
 
 
10822
 
    # Update the list of available tags.
10823
 
    if test -n "$tagname"; then
10824
 
      echo appending configuration tag \"$tagname\" to $ofile
10825
 
 
10826
 
      case $tagname in
10827
 
      CXX)
10828
 
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10829
 
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10830
 
            (test "X$CXX" != "Xg++"))) ; then
10831
 
          ac_ext=cc
10832
 
ac_cpp='$CXXCPP $CPPFLAGS'
10833
 
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10834
 
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10835
 
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10836
 
 
10837
 
 
10838
 
 
10839
 
 
10840
 
archive_cmds_need_lc_CXX=no
10841
 
allow_undefined_flag_CXX=
10842
 
always_export_symbols_CXX=no
10843
 
archive_expsym_cmds_CXX=
10844
 
export_dynamic_flag_spec_CXX=
10845
 
hardcode_direct_CXX=no
10846
 
hardcode_libdir_flag_spec_CXX=
10847
 
hardcode_libdir_flag_spec_ld_CXX=
10848
 
hardcode_libdir_separator_CXX=
10849
 
hardcode_minus_L_CXX=no
10850
 
hardcode_automatic_CXX=no
10851
 
module_cmds_CXX=
10852
 
module_expsym_cmds_CXX=
10853
 
link_all_deplibs_CXX=unknown
10854
 
old_archive_cmds_CXX=$old_archive_cmds
10855
 
no_undefined_flag_CXX=
10856
 
whole_archive_flag_spec_CXX=
10857
 
enable_shared_with_static_runtimes_CXX=no
10858
 
 
10859
 
# Dependencies to place before and after the object being linked:
10860
 
predep_objects_CXX=
10861
 
postdep_objects_CXX=
10862
 
predeps_CXX=
10863
 
postdeps_CXX=
10864
 
compiler_lib_search_path_CXX=
10865
 
 
10866
 
# Source file extension for C++ test sources.
10867
 
ac_ext=cc
10868
 
 
10869
 
# Object file extension for compiled C++ test sources.
10870
 
objext=o
10871
 
objext_CXX=$objext
10872
 
 
10873
 
# Code to be used in simple compile tests
10874
 
lt_simple_compile_test_code="int some_variable = 0;\n"
10875
 
 
10876
 
# Code to be used in simple link tests
10877
 
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10878
 
 
10879
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10880
 
 
10881
 
# If no C compiler was specified, use CC.
10882
 
LTCC=${LTCC-"$CC"}
10883
 
 
10884
 
# Allow CC to be a program name with arguments.
10885
 
compiler=$CC
10886
 
 
10887
 
 
10888
 
# Allow CC to be a program name with arguments.
10889
 
lt_save_CC=$CC
10890
 
lt_save_LD=$LD
10891
 
lt_save_GCC=$GCC
10892
 
GCC=$GXX
10893
 
lt_save_with_gnu_ld=$with_gnu_ld
10894
 
lt_save_path_LD=$lt_cv_path_LD
10895
 
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10896
 
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10897
 
else
10898
 
  unset lt_cv_prog_gnu_ld
10899
 
fi
10900
 
if test -n "${lt_cv_path_LDCXX+set}"; then
10901
 
  lt_cv_path_LD=$lt_cv_path_LDCXX
10902
 
else
10903
 
  unset lt_cv_path_LD
10904
 
fi
10905
 
test -z "${LDCXX+set}" || LD=$LDCXX
10906
 
CC=${CXX-"c++"}
10907
 
compiler=$CC
10908
 
compiler_CXX=$CC
10909
 
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
10910
 
 
10911
 
# We don't want -fno-exception wen compiling C++ code, so set the
10912
 
# no_builtin_flag separately
10913
 
if test "$GXX" = yes; then
10914
 
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10915
 
else
10916
 
  lt_prog_compiler_no_builtin_flag_CXX=
10917
 
fi
10918
 
 
10919
 
if test "$GXX" = yes; then
10920
 
  # Set up default GNU C++ configuration
10921
 
 
10922
 
  
10923
 
# Check whether --with-gnu-ld or --without-gnu-ld was given.
10924
 
if test "${with_gnu_ld+set}" = set; then
10925
 
  withval="$with_gnu_ld"
10926
 
  test "$withval" = no || with_gnu_ld=yes
10927
 
else
10928
 
  with_gnu_ld=no
10929
 
fi; 
10930
 
ac_prog=ld
10931
 
if test "$GCC" = yes; then
10932
 
  # Check if gcc -print-prog-name=ld gives a path.
10933
 
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10934
 
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10935
 
  case $host in
10936
 
  *-*-mingw*)
10937
 
    # gcc leaves a trailing carriage return which upsets mingw
10938
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10939
 
  *)
10940
 
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10941
 
  esac
10942
 
  case $ac_prog in
10943
 
    # Accept absolute paths.
10944
 
    [\\/]* | ?:[\\/]*)
10945
 
      re_direlt='/[^/][^/]*/\.\./'
10946
 
      # Canonicalize the pathname of ld
10947
 
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10948
 
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10949
 
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10950
 
      done
10951
 
      test -z "$LD" && LD="$ac_prog"
10952
 
      ;;
10953
 
  "")
10954
 
    # If it fails, then pretend we aren't using GCC.
10955
 
    ac_prog=ld
10956
 
    ;;
10957
 
  *)
10958
 
    # If it is relative, then search for the first ld in PATH.
10959
 
    with_gnu_ld=unknown
10960
 
    ;;
10961
 
  esac
10962
 
elif test "$with_gnu_ld" = yes; then
10963
 
  echo "$as_me:$LINENO: checking for GNU ld" >&5
10964
 
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10965
 
else
10966
 
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10967
 
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10968
 
fi
10969
 
if test "${lt_cv_path_LD+set}" = set; then
10970
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
10971
 
else
10972
 
  if test -z "$LD"; then
10973
 
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10974
 
  for ac_dir in $PATH; do
10975
 
    IFS="$lt_save_ifs"
10976
 
    test -z "$ac_dir" && ac_dir=.
10977
 
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10978
 
      lt_cv_path_LD="$ac_dir/$ac_prog"
10979
 
      # Check to see if the program is GNU ld.  I'd rather use --version,
10980
 
      # but apparently some GNU ld's only accept -v.
10981
 
      # Break only if it was the GNU/non-GNU ld that we prefer.
10982
 
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10983
 
      *GNU* | *'with BFD'*)
10984
 
        test "$with_gnu_ld" != no && break
10985
 
        ;;
10986
 
      *)
10987
 
        test "$with_gnu_ld" != yes && break
10988
 
        ;;
10989
 
      esac
10990
 
    fi
10991
 
  done
10992
 
  IFS="$lt_save_ifs"
10993
 
else
10994
 
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10995
 
fi
10996
 
fi
10997
 
 
10998
 
LD="$lt_cv_path_LD"
10999
 
if test -n "$LD"; then
11000
 
  echo "$as_me:$LINENO: result: $LD" >&5
11001
 
echo "${ECHO_T}$LD" >&6
11002
 
else
11003
 
  echo "$as_me:$LINENO: result: no" >&5
11004
 
echo "${ECHO_T}no" >&6
11005
 
fi
11006
 
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11007
 
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11008
 
   { (exit 1); exit 1; }; }
11009
 
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11010
 
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11011
 
if test "${lt_cv_prog_gnu_ld+set}" = set; then
11012
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
11013
 
else
11014
 
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11015
 
case `$LD -v 2>&1 </dev/null` in
11016
 
*GNU* | *'with BFD'*)
11017
 
  lt_cv_prog_gnu_ld=yes
11018
 
  ;;
11019
 
*)
11020
 
  lt_cv_prog_gnu_ld=no
11021
 
  ;;
11022
 
esac
11023
 
fi
11024
 
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11025
 
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11026
 
with_gnu_ld=$lt_cv_prog_gnu_ld
11027
 
 
11028
 
 
11029
 
 
11030
 
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
11031
 
  # archiving commands below assume that GNU ld is being used.
11032
 
  if test "$with_gnu_ld" = yes; then
11033
 
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11034
 
    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'
11035
 
 
11036
 
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11037
 
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11038
 
 
11039
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
11040
 
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11041
 
    #     investigate it a little bit more. (MM)
11042
 
    wlarc='${wl}'
11043
 
 
11044
 
    # ancient GNU ld didn't support --whole-archive et. al.
11045
 
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11046
 
        grep 'no-whole-archive' > /dev/null; then
11047
 
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11048
 
    else
11049
 
      whole_archive_flag_spec_CXX=
11050
 
    fi
11051
 
  else
11052
 
    with_gnu_ld=no
11053
 
    wlarc=
11054
 
 
11055
 
    # A generic and very simple default shared library creation
11056
 
    # command for GNU C++ for the case where it uses the native
11057
 
    # linker, instead of GNU ld.  If possible, this setting should
11058
 
    # overridden to take advantage of the native linker features on
11059
 
    # the platform it is being used on.
11060
 
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11061
 
  fi
11062
 
 
11063
 
  # Commands to make compiler produce verbose output that lists
11064
 
  # what "hidden" libraries, object files and flags are used when
11065
 
  # linking a shared library.
11066
 
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11067
 
 
11068
 
else
11069
 
  GXX=no
11070
 
  with_gnu_ld=no
11071
 
  wlarc=
11072
 
fi
11073
 
 
11074
 
# PORTME: fill in a description of your system's C++ link characteristics
11075
 
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11076
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11077
 
ld_shlibs_CXX=yes
11078
 
case $host_os in
11079
 
  aix3*)
11080
 
    # FIXME: insert proper C++ library support
11081
 
    ld_shlibs_CXX=no
11082
 
    ;;
11083
 
  aix4* | aix5*)
11084
 
    if test "$host_cpu" = ia64; then
11085
 
      # On IA64, the linker does run time linking by default, so we don't
11086
 
      # have to do anything special.
11087
 
      aix_use_runtimelinking=no
11088
 
      exp_sym_flag='-Bexport'
11089
 
      no_entry_flag=""
11090
 
    else
11091
 
      aix_use_runtimelinking=no
11092
 
 
11093
 
      # Test if we are trying to use run time linking or normal
11094
 
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11095
 
      # need to do runtime linking.
11096
 
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11097
 
        for ld_flag in $LDFLAGS; do
11098
 
          case $ld_flag in
11099
 
          *-brtl*)
11100
 
            aix_use_runtimelinking=yes
11101
 
            break
11102
 
            ;;
11103
 
          esac
11104
 
        done
11105
 
      esac
11106
 
 
11107
 
      exp_sym_flag='-bexport'
11108
 
      no_entry_flag='-bnoentry'
11109
 
    fi
11110
 
 
11111
 
    # When large executables or shared objects are built, AIX ld can
11112
 
    # have problems creating the table of contents.  If linking a library
11113
 
    # or program results in "error TOC overflow" add -mminimal-toc to
11114
 
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11115
 
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11116
 
 
11117
 
    archive_cmds_CXX=''
11118
 
    hardcode_direct_CXX=yes
11119
 
    hardcode_libdir_separator_CXX=':'
11120
 
    link_all_deplibs_CXX=yes
11121
 
 
11122
 
    if test "$GXX" = yes; then
11123
 
      case $host_os in aix4.[012]|aix4.[012].*)
11124
 
      # We only want to do this on AIX 4.2 and lower, the check
11125
 
      # below for broken collect2 doesn't work under 4.3+
11126
 
        collect2name=`${CC} -print-prog-name=collect2`
11127
 
        if test -f "$collect2name" && \
11128
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
11129
 
        then
11130
 
          # We have reworked collect2
11131
 
          hardcode_direct_CXX=yes
11132
 
        else
11133
 
          # We have old collect2
11134
 
          hardcode_direct_CXX=unsupported
11135
 
          # It fails to find uninstalled libraries when the uninstalled
11136
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
11137
 
          # to unsupported forces relinking
11138
 
          hardcode_minus_L_CXX=yes
11139
 
          hardcode_libdir_flag_spec_CXX='-L$libdir'
11140
 
          hardcode_libdir_separator_CXX=
11141
 
        fi
11142
 
      esac
11143
 
      shared_flag='-shared'
11144
 
      if test "$aix_use_runtimelinking" = yes; then
11145
 
        shared_flag="$shared_flag "'${wl}-G'
11146
 
      fi
11147
 
    else
11148
 
      # not using gcc
11149
 
      if test "$host_cpu" = ia64; then
11150
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11151
 
        # chokes on -Wl,-G. The following line is correct:
11152
 
        shared_flag='-G'
11153
 
      else
11154
 
        if test "$aix_use_runtimelinking" = yes; then
11155
 
          shared_flag='${wl}-G'
11156
 
        else
11157
 
          shared_flag='${wl}-bM:SRE'
11158
 
        fi
11159
 
      fi
11160
 
    fi
11161
 
 
11162
 
    # It seems that -bexpall does not export symbols beginning with
11163
 
    # underscore (_), so it is better to generate a list of symbols to export.
11164
 
    always_export_symbols_CXX=yes
11165
 
    if test "$aix_use_runtimelinking" = yes; then
11166
 
      # Warning - without using the other runtime loading flags (-brtl),
11167
 
      # -berok will link without error, but may produce a broken library.
11168
 
      allow_undefined_flag_CXX='-berok'
11169
 
      # Determine the default libpath from the value encoded in an empty executable.
11170
 
      cat >conftest.$ac_ext <<_ACEOF
11171
 
/* confdefs.h.  */
11172
 
_ACEOF
11173
 
cat confdefs.h >>conftest.$ac_ext
11174
 
cat >>conftest.$ac_ext <<_ACEOF
11175
 
/* end confdefs.h.  */
11176
 
 
11177
 
int
11178
 
main ()
11179
 
{
11180
 
 
11181
 
  ;
11182
 
  return 0;
11183
 
}
11184
 
_ACEOF
11185
 
rm -f conftest.$ac_objext conftest$ac_exeext
11186
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11187
 
  (eval $ac_link) 2>conftest.er1
11188
 
  ac_status=$?
11189
 
  grep -v '^ *+' conftest.er1 >conftest.err
11190
 
  rm -f conftest.er1
11191
 
  cat conftest.err >&5
11192
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193
 
  (exit $ac_status); } &&
11194
 
         { ac_try='test -z "$ac_cxx_werror_flag"
11195
 
                         || test ! -s conftest.err'
11196
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11197
 
  (eval $ac_try) 2>&5
11198
 
  ac_status=$?
11199
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200
 
  (exit $ac_status); }; } &&
11201
 
         { ac_try='test -s conftest$ac_exeext'
11202
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11203
 
  (eval $ac_try) 2>&5
11204
 
  ac_status=$?
11205
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206
 
  (exit $ac_status); }; }; then
11207
 
  
11208
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11209
 
}'`
11210
 
# Check for a 64-bit object if we didn't find anything.
11211
 
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; }
11212
 
}'`; fi
11213
 
else
11214
 
  echo "$as_me: failed program was:" >&5
11215
 
sed 's/^/| /' conftest.$ac_ext >&5
11216
 
 
11217
 
fi
11218
 
rm -f conftest.err conftest.$ac_objext \
11219
 
      conftest$ac_exeext conftest.$ac_ext
11220
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11221
 
 
11222
 
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11223
 
 
11224
 
      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11225
 
     else
11226
 
      if test "$host_cpu" = ia64; then
11227
 
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11228
 
        allow_undefined_flag_CXX="-z nodefs"
11229
 
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
11230
 
      else
11231
 
        # Determine the default libpath from the value encoded in an empty executable.
11232
 
        cat >conftest.$ac_ext <<_ACEOF
11233
 
/* confdefs.h.  */
11234
 
_ACEOF
11235
 
cat confdefs.h >>conftest.$ac_ext
11236
 
cat >>conftest.$ac_ext <<_ACEOF
11237
 
/* end confdefs.h.  */
11238
 
 
11239
 
int
11240
 
main ()
11241
 
{
11242
 
 
11243
 
  ;
11244
 
  return 0;
11245
 
}
11246
 
_ACEOF
11247
 
rm -f conftest.$ac_objext conftest$ac_exeext
11248
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11249
 
  (eval $ac_link) 2>conftest.er1
11250
 
  ac_status=$?
11251
 
  grep -v '^ *+' conftest.er1 >conftest.err
11252
 
  rm -f conftest.er1
11253
 
  cat conftest.err >&5
11254
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11255
 
  (exit $ac_status); } &&
11256
 
         { ac_try='test -z "$ac_cxx_werror_flag"
11257
 
                         || test ! -s conftest.err'
11258
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11259
 
  (eval $ac_try) 2>&5
11260
 
  ac_status=$?
11261
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262
 
  (exit $ac_status); }; } &&
11263
 
         { ac_try='test -s conftest$ac_exeext'
11264
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11265
 
  (eval $ac_try) 2>&5
11266
 
  ac_status=$?
11267
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268
 
  (exit $ac_status); }; }; then
11269
 
  
11270
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11271
 
}'`
11272
 
# Check for a 64-bit object if we didn't find anything.
11273
 
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; }
11274
 
}'`; fi
11275
 
else
11276
 
  echo "$as_me: failed program was:" >&5
11277
 
sed 's/^/| /' conftest.$ac_ext >&5
11278
 
 
11279
 
fi
11280
 
rm -f conftest.err conftest.$ac_objext \
11281
 
      conftest$ac_exeext conftest.$ac_ext
11282
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11283
 
 
11284
 
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11285
 
        # Warning - without using the other run time loading flags,
11286
 
        # -berok will link without error, but may produce a broken library.
11287
 
        no_undefined_flag_CXX=' ${wl}-bernotok'
11288
 
        allow_undefined_flag_CXX=' ${wl}-berok'
11289
 
        # -bexpall does not export symbols beginning with underscore (_)
11290
 
        always_export_symbols_CXX=yes
11291
 
        # Exported symbols can be pulled into shared objects from archives
11292
 
        whole_archive_flag_spec_CXX=' '
11293
 
        archive_cmds_need_lc_CXX=yes
11294
 
        # This is similar to how AIX traditionally builds it's shared libraries.
11295
 
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11296
 
      fi
11297
 
    fi
11298
 
    ;;
11299
 
  chorus*)
11300
 
    case $cc_basename in
11301
 
      *)
11302
 
        # FIXME: insert proper C++ library support
11303
 
        ld_shlibs_CXX=no
11304
 
        ;;
11305
 
    esac
11306
 
    ;;
11307
 
 
11308
 
 
11309
 
  cygwin* | mingw* | pw32*)
11310
 
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11311
 
    # as there is no search path for DLLs.
11312
 
    hardcode_libdir_flag_spec_CXX='-L$libdir'
11313
 
    allow_undefined_flag_CXX=unsupported
11314
 
    always_export_symbols_CXX=no
11315
 
    enable_shared_with_static_runtimes_CXX=yes
11316
 
 
11317
 
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11318
 
      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11319
 
      # If the export-symbols file already is a .def file (1st line
11320
 
      # is EXPORTS), use it as is; otherwise, prepend...
11321
 
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11322
 
        cp $export_symbols $output_objdir/$soname.def;
11323
 
      else
11324
 
        echo EXPORTS > $output_objdir/$soname.def;
11325
 
        cat $export_symbols >> $output_objdir/$soname.def;
11326
 
      fi~
11327
 
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11328
 
    else
11329
 
      ld_shlibs_CXX=no
11330
 
    fi
11331
 
  ;;
11332
 
      darwin* | rhapsody*)
11333
 
        case "$host_os" in
11334
 
        rhapsody* | darwin1.[012])
11335
 
         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11336
 
         ;;
11337
 
       *) # Darwin 1.3 on
11338
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11339
 
           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11340
 
         else
11341
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
11342
 
             10.[012])
11343
 
               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11344
 
               ;;
11345
 
             10.*)
11346
 
               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11347
 
               ;;
11348
 
           esac
11349
 
         fi
11350
 
         ;;
11351
 
        esac
11352
 
      archive_cmds_need_lc_CXX=no
11353
 
      hardcode_direct_CXX=no
11354
 
      hardcode_automatic_CXX=yes
11355
 
      hardcode_shlibpath_var_CXX=unsupported
11356
 
      whole_archive_flag_spec_CXX=''
11357
 
      link_all_deplibs_CXX=yes
11358
 
 
11359
 
    if test "$GXX" = yes ; then
11360
 
      lt_int_apple_cc_single_mod=no
11361
 
      output_verbose_link_cmd='echo'
11362
 
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11363
 
       lt_int_apple_cc_single_mod=yes
11364
 
      fi
11365
 
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11366
 
       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11367
 
      else
11368
 
          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'
11369
 
        fi
11370
 
        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11371
 
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11372
 
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11373
 
            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}'
11374
 
          else
11375
 
            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}'
11376
 
          fi
11377
 
            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}'
11378
 
      else
11379
 
      case "$cc_basename" in
11380
 
        xlc*)
11381
 
         output_verbose_link_cmd='echo'
11382
 
          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'
11383
 
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11384
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11385
 
          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}'
11386
 
          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}'
11387
 
          ;;
11388
 
       *)
11389
 
         ld_shlibs_CXX=no
11390
 
          ;;
11391
 
      esac
11392
 
      fi
11393
 
        ;;
11394
 
 
11395
 
  dgux*)
11396
 
    case $cc_basename in
11397
 
      ec++)
11398
 
        # FIXME: insert proper C++ library support
11399
 
        ld_shlibs_CXX=no
11400
 
        ;;
11401
 
      ghcx)
11402
 
        # Green Hills C++ Compiler
11403
 
        # FIXME: insert proper C++ library support
11404
 
        ld_shlibs_CXX=no
11405
 
        ;;
11406
 
      *)
11407
 
        # FIXME: insert proper C++ library support
11408
 
        ld_shlibs_CXX=no
11409
 
        ;;
11410
 
    esac
11411
 
    ;;
11412
 
  freebsd[12]*)
11413
 
    # C++ shared libraries reported to be fairly broken before switch to ELF
11414
 
    ld_shlibs_CXX=no
11415
 
    ;;
11416
 
  freebsd-elf*)
11417
 
    archive_cmds_need_lc_CXX=no
11418
 
    ;;
11419
 
  freebsd* | kfreebsd*-gnu | dragonfly*)
11420
 
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11421
 
    # conventions
11422
 
    ld_shlibs_CXX=yes
11423
 
    ;;
11424
 
  gnu*)
11425
 
    ;;
11426
 
  hpux9*)
11427
 
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11428
 
    hardcode_libdir_separator_CXX=:
11429
 
    export_dynamic_flag_spec_CXX='${wl}-E'
11430
 
    hardcode_direct_CXX=yes
11431
 
    hardcode_minus_L_CXX=yes # Not in the search PATH,
11432
 
                                # but as the default
11433
 
                                # location of the library.
11434
 
 
11435
 
    case $cc_basename in
11436
 
    CC)
11437
 
      # FIXME: insert proper C++ library support
11438
 
      ld_shlibs_CXX=no
11439
 
      ;;
11440
 
    aCC)
11441
 
      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'
11442
 
      # Commands to make compiler produce verbose output that lists
11443
 
      # what "hidden" libraries, object files and flags are used when
11444
 
      # linking a shared library.
11445
 
      #
11446
 
      # There doesn't appear to be a way to prevent this compiler from
11447
 
      # explicitly linking system object files so we need to strip them
11448
 
      # from the output so that they don't get included in the library
11449
 
      # dependencies.
11450
 
      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'
11451
 
      ;;
11452
 
    *)
11453
 
      if test "$GXX" = yes; then
11454
 
        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'
11455
 
      else
11456
 
        # FIXME: insert proper C++ library support
11457
 
        ld_shlibs_CXX=no
11458
 
      fi
11459
 
      ;;
11460
 
    esac
11461
 
    ;;
11462
 
  hpux10*|hpux11*)
11463
 
    if test $with_gnu_ld = no; then
11464
 
      case "$host_cpu" in
11465
 
      hppa*64*)
11466
 
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11467
 
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11468
 
        hardcode_libdir_separator_CXX=:
11469
 
        ;;
11470
 
      ia64*)
11471
 
        hardcode_libdir_flag_spec_CXX='-L$libdir'
11472
 
        ;;
11473
 
      *)
11474
 
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11475
 
        hardcode_libdir_separator_CXX=:
11476
 
        export_dynamic_flag_spec_CXX='${wl}-E'
11477
 
        ;;
11478
 
      esac
11479
 
    fi
11480
 
    case "$host_cpu" in
11481
 
    hppa*64*)
11482
 
      hardcode_direct_CXX=no
11483
 
      hardcode_shlibpath_var_CXX=no
11484
 
      ;;
11485
 
    ia64*)
11486
 
      hardcode_direct_CXX=no
11487
 
      hardcode_shlibpath_var_CXX=no
11488
 
      hardcode_minus_L_CXX=yes # Not in the search PATH,
11489
 
                                              # but as the default
11490
 
                                              # location of the library.
11491
 
      ;;
11492
 
    *)
11493
 
      hardcode_direct_CXX=yes
11494
 
      hardcode_minus_L_CXX=yes # Not in the search PATH,
11495
 
                                              # but as the default
11496
 
                                              # location of the library.
11497
 
      ;;
11498
 
    esac
11499
 
 
11500
 
    case $cc_basename in
11501
 
      CC)
11502
 
        # FIXME: insert proper C++ library support
11503
 
        ld_shlibs_CXX=no
11504
 
        ;;
11505
 
      aCC)
11506
 
        case "$host_cpu" in
11507
 
        hppa*64*|ia64*)
11508
 
          archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11509
 
          ;;
11510
 
        *)
11511
 
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11512
 
          ;;
11513
 
        esac
11514
 
        # Commands to make compiler produce verbose output that lists
11515
 
        # what "hidden" libraries, object files and flags are used when
11516
 
        # linking a shared library.
11517
 
        #
11518
 
        # There doesn't appear to be a way to prevent this compiler from
11519
 
        # explicitly linking system object files so we need to strip them
11520
 
        # from the output so that they don't get included in the library
11521
 
        # dependencies.
11522
 
        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'
11523
 
        ;;
11524
 
      *)
11525
 
        if test "$GXX" = yes; then
11526
 
          if test $with_gnu_ld = no; then
11527
 
            case "$host_cpu" in
11528
 
            ia64*|hppa*64*)
11529
 
              archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11530
 
              ;;
11531
 
            *)
11532
 
              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'
11533
 
              ;;
11534
 
            esac
11535
 
          fi
11536
 
        else
11537
 
          # FIXME: insert proper C++ library support
11538
 
          ld_shlibs_CXX=no
11539
 
        fi
11540
 
        ;;
11541
 
    esac
11542
 
    ;;
11543
 
  irix5* | irix6*)
11544
 
    case $cc_basename in
11545
 
      CC)
11546
 
        # SGI C++
11547
 
        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 ${objdir}/so_locations -o $lib'
11548
 
 
11549
 
        # Archives containing C++ object files must be created using
11550
 
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11551
 
        # necessary to make sure instantiated templates are included
11552
 
        # in the archive.
11553
 
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11554
 
        ;;
11555
 
      *)
11556
 
        if test "$GXX" = yes; then
11557
 
          if test "$with_gnu_ld" = no; then
11558
 
            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}${objdir}/so_locations -o $lib'
11559
 
          else
11560
 
            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'
11561
 
          fi
11562
 
        fi
11563
 
        link_all_deplibs_CXX=yes
11564
 
        ;;
11565
 
    esac
11566
 
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11567
 
    hardcode_libdir_separator_CXX=:
11568
 
    ;;
11569
 
  linux*)
11570
 
    case $cc_basename in
11571
 
      KCC)
11572
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
11573
 
 
11574
 
        # KCC will only create a shared library if the output file
11575
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
11576
 
        # to its proper name (with version) after linking.
11577
 
        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'
11578
 
        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'
11579
 
        # Commands to make compiler produce verbose output that lists
11580
 
        # what "hidden" libraries, object files and flags are used when
11581
 
        # linking a shared library.
11582
 
        #
11583
 
        # There doesn't appear to be a way to prevent this compiler from
11584
 
        # explicitly linking system object files so we need to strip them
11585
 
        # from the output so that they don't get included in the library
11586
 
        # dependencies.
11587
 
        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'
11588
 
 
11589
 
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11590
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11591
 
 
11592
 
        # Archives containing C++ object files must be created using
11593
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11594
 
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11595
 
        ;;
11596
 
      icpc)
11597
 
        # Intel C++
11598
 
        with_gnu_ld=yes
11599
 
        # version 8.0 and above of icpc choke on multiply defined symbols
11600
 
        # if we add $predep_objects and $postdep_objects, however 7.1 and
11601
 
        # earlier do not add the objects themselves.
11602
 
        case `$CC -V 2>&1` in
11603
 
        *"Version 7."*)
11604
 
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11605
 
          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'
11606
 
          ;;
11607
 
        *)  # Version 8.0 or newer
11608
 
          tmp_idyn=
11609
 
          case $host_cpu in
11610
 
            ia64*) tmp_idyn=' -i_dynamic';;
11611
 
          esac
11612
 
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11613
 
          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'
11614
 
          ;;
11615
 
        esac
11616
 
        archive_cmds_need_lc_CXX=no
11617
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11618
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11619
 
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11620
 
        ;;
11621
 
      pgCC)
11622
 
        # Portland Group C++ compiler
11623
 
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11624
 
        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'
11625
 
 
11626
 
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11627
 
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11628
 
        ;;
11629
 
      cxx)
11630
 
        # Compaq C++
11631
 
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11632
 
        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'
11633
 
 
11634
 
        runpath_var=LD_RUN_PATH
11635
 
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11636
 
        hardcode_libdir_separator_CXX=:
11637
 
 
11638
 
        # Commands to make compiler produce verbose output that lists
11639
 
        # what "hidden" libraries, object files and flags are used when
11640
 
        # linking a shared library.
11641
 
        #
11642
 
        # There doesn't appear to be a way to prevent this compiler from
11643
 
        # explicitly linking system object files so we need to strip them
11644
 
        # from the output so that they don't get included in the library
11645
 
        # dependencies.
11646
 
        output_verbose_link_cmd='templist=`$CC -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'
11647
 
        ;;
11648
 
    esac
11649
 
    ;;
11650
 
  lynxos*)
11651
 
    # FIXME: insert proper C++ library support
11652
 
    ld_shlibs_CXX=no
11653
 
    ;;
11654
 
  m88k*)
11655
 
    # FIXME: insert proper C++ library support
11656
 
    ld_shlibs_CXX=no
11657
 
    ;;
11658
 
  mvs*)
11659
 
    case $cc_basename in
11660
 
      cxx)
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
 
  netbsd*)
11671
 
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11672
 
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11673
 
      wlarc=
11674
 
      hardcode_libdir_flag_spec_CXX='-R$libdir'
11675
 
      hardcode_direct_CXX=yes
11676
 
      hardcode_shlibpath_var_CXX=no
11677
 
    fi
11678
 
    # Workaround some broken pre-1.5 toolchains
11679
 
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11680
 
    ;;
11681
 
  openbsd2*)
11682
 
    # C++ shared libraries are fairly broken
11683
 
    ld_shlibs_CXX=no
11684
 
    ;;
11685
 
  openbsd*)
11686
 
    hardcode_direct_CXX=yes
11687
 
    hardcode_shlibpath_var_CXX=no
11688
 
    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11689
 
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11690
 
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11691
 
      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11692
 
      export_dynamic_flag_spec_CXX='${wl}-E'
11693
 
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11694
 
    fi
11695
 
    output_verbose_link_cmd='echo'
11696
 
    ;;
11697
 
  osf3*)
11698
 
    case $cc_basename in
11699
 
      KCC)
11700
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
11701
 
 
11702
 
        # KCC will only create a shared library if the output file
11703
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
11704
 
        # to its proper name (with version) after linking.
11705
 
        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'
11706
 
 
11707
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11708
 
        hardcode_libdir_separator_CXX=:
11709
 
 
11710
 
        # Archives containing C++ object files must be created using
11711
 
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11712
 
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11713
 
 
11714
 
        ;;
11715
 
      RCC)
11716
 
        # Rational C++ 2.4.1
11717
 
        # FIXME: insert proper C++ library support
11718
 
        ld_shlibs_CXX=no
11719
 
        ;;
11720
 
      cxx)
11721
 
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11722
 
        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 ${objdir}/so_locations -o $lib'
11723
 
 
11724
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11725
 
        hardcode_libdir_separator_CXX=:
11726
 
 
11727
 
        # Commands to make compiler produce verbose output that lists
11728
 
        # what "hidden" libraries, object files and flags are used when
11729
 
        # linking a shared library.
11730
 
        #
11731
 
        # There doesn't appear to be a way to prevent this compiler from
11732
 
        # explicitly linking system object files so we need to strip them
11733
 
        # from the output so that they don't get included in the library
11734
 
        # dependencies.
11735
 
        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'
11736
 
        ;;
11737
 
      *)
11738
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11739
 
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11740
 
          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}${objdir}/so_locations -o $lib'
11741
 
 
11742
 
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11743
 
          hardcode_libdir_separator_CXX=:
11744
 
 
11745
 
          # Commands to make compiler produce verbose output that lists
11746
 
          # what "hidden" libraries, object files and flags are used when
11747
 
          # linking a shared library.
11748
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11749
 
 
11750
 
        else
11751
 
          # FIXME: insert proper C++ library support
11752
 
          ld_shlibs_CXX=no
11753
 
        fi
11754
 
        ;;
11755
 
    esac
11756
 
    ;;
11757
 
  osf4* | osf5*)
11758
 
    case $cc_basename in
11759
 
      KCC)
11760
 
        # Kuck and Associates, Inc. (KAI) C++ Compiler
11761
 
 
11762
 
        # KCC will only create a shared library if the output file
11763
 
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
11764
 
        # to its proper name (with version) after linking.
11765
 
        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'
11766
 
 
11767
 
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11768
 
        hardcode_libdir_separator_CXX=:
11769
 
 
11770
 
        # Archives containing C++ object files must be created using
11771
 
        # the KAI C++ compiler.
11772
 
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11773
 
        ;;
11774
 
      RCC)
11775
 
        # Rational C++ 2.4.1
11776
 
        # FIXME: insert proper C++ library support
11777
 
        ld_shlibs_CXX=no
11778
 
        ;;
11779
 
      cxx)
11780
 
        allow_undefined_flag_CXX=' -expect_unresolved \*'
11781
 
        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 ${objdir}/so_locations -o $lib'
11782
 
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11783
 
          echo "-hidden">> $lib.exp~
11784
 
          $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 $objdir/so_locations -o $lib~
11785
 
          $rm $lib.exp'
11786
 
 
11787
 
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11788
 
        hardcode_libdir_separator_CXX=:
11789
 
 
11790
 
        # Commands to make compiler produce verbose output that lists
11791
 
        # what "hidden" libraries, object files and flags are used when
11792
 
        # linking a shared library.
11793
 
        #
11794
 
        # There doesn't appear to be a way to prevent this compiler from
11795
 
        # explicitly linking system object files so we need to strip them
11796
 
        # from the output so that they don't get included in the library
11797
 
        # dependencies.
11798
 
        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'
11799
 
        ;;
11800
 
      *)
11801
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11802
 
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11803
 
         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}${objdir}/so_locations -o $lib'
11804
 
 
11805
 
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11806
 
          hardcode_libdir_separator_CXX=:
11807
 
 
11808
 
          # Commands to make compiler produce verbose output that lists
11809
 
          # what "hidden" libraries, object files and flags are used when
11810
 
          # linking a shared library.
11811
 
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11812
 
 
11813
 
        else
11814
 
          # FIXME: insert proper C++ library support
11815
 
          ld_shlibs_CXX=no
11816
 
        fi
11817
 
        ;;
11818
 
    esac
11819
 
    ;;
11820
 
  psos*)
11821
 
    # FIXME: insert proper C++ library support
11822
 
    ld_shlibs_CXX=no
11823
 
    ;;
11824
 
  sco*)
11825
 
    archive_cmds_need_lc_CXX=no
11826
 
    case $cc_basename in
11827
 
      CC)
11828
 
        # FIXME: insert proper C++ library support
11829
 
        ld_shlibs_CXX=no
11830
 
        ;;
11831
 
      *)
11832
 
        # FIXME: insert proper C++ library support
11833
 
        ld_shlibs_CXX=no
11834
 
        ;;
11835
 
    esac
11836
 
    ;;
11837
 
  sunos4*)
11838
 
    case $cc_basename in
11839
 
      CC)
11840
 
        # Sun C++ 4.x
11841
 
        # FIXME: insert proper C++ library support
11842
 
        ld_shlibs_CXX=no
11843
 
        ;;
11844
 
      lcc)
11845
 
        # Lucid
11846
 
        # FIXME: insert proper C++ library support
11847
 
        ld_shlibs_CXX=no
11848
 
        ;;
11849
 
      *)
11850
 
        # FIXME: insert proper C++ library support
11851
 
        ld_shlibs_CXX=no
11852
 
        ;;
11853
 
    esac
11854
 
    ;;
11855
 
  solaris*)
11856
 
    case $cc_basename in
11857
 
      CC)
11858
 
        # Sun C++ 4.2, 5.x and Centerline C++
11859
 
        no_undefined_flag_CXX=' -zdefs'
11860
 
        archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11861
 
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11862
 
        $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11863
 
 
11864
 
        hardcode_libdir_flag_spec_CXX='-R$libdir'
11865
 
        hardcode_shlibpath_var_CXX=no
11866
 
        case $host_os in
11867
 
          solaris2.[0-5] | solaris2.[0-5].*) ;;
11868
 
          *)
11869
 
            # The C++ compiler is used as linker so we must use $wl
11870
 
            # flag to pass the commands to the underlying system
11871
 
            # linker.
11872
 
            # Supported since Solaris 2.6 (maybe 2.5.1?)
11873
 
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11874
 
            ;;
11875
 
        esac
11876
 
        link_all_deplibs_CXX=yes
11877
 
 
11878
 
        # Commands to make compiler produce verbose output that lists
11879
 
        # what "hidden" libraries, object files and flags are used when
11880
 
        # linking a shared library.
11881
 
        #
11882
 
        # There doesn't appear to be a way to prevent this compiler from
11883
 
        # explicitly linking system object files so we need to strip them
11884
 
        # from the output so that they don't get included in the library
11885
 
        # dependencies.
11886
 
        output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11887
 
 
11888
 
        # Archives containing C++ object files must be created using
11889
 
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11890
 
        # necessary to make sure instantiated templates are included
11891
 
        # in the archive.
11892
 
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11893
 
        ;;
11894
 
      gcx)
11895
 
        # Green Hills C++ Compiler
11896
 
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11897
 
 
11898
 
        # The C++ compiler must be used to create the archive.
11899
 
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11900
 
        ;;
11901
 
      *)
11902
 
        # GNU C++ compiler with Solaris linker
11903
 
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11904
 
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11905
 
          if $CC --version | grep -v '^2\.7' > /dev/null; then
11906
 
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11907
 
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11908
 
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11909
 
 
11910
 
            # Commands to make compiler produce verbose output that lists
11911
 
            # what "hidden" libraries, object files and flags are used when
11912
 
            # linking a shared library.
11913
 
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11914
 
          else
11915
 
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
11916
 
            # platform.
11917
 
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11918
 
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11919
 
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11920
 
 
11921
 
            # Commands to make compiler produce verbose output that lists
11922
 
            # what "hidden" libraries, object files and flags are used when
11923
 
            # linking a shared library.
11924
 
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11925
 
          fi
11926
 
 
11927
 
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11928
 
        fi
11929
 
        ;;
11930
 
    esac
11931
 
    ;;
11932
 
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11933
 
    archive_cmds_need_lc_CXX=no
11934
 
    ;;
11935
 
  tandem*)
11936
 
    case $cc_basename in
11937
 
      NCC)
11938
 
        # NonStop-UX NCC 3.20
11939
 
        # FIXME: insert proper C++ library support
11940
 
        ld_shlibs_CXX=no
11941
 
        ;;
11942
 
      *)
11943
 
        # FIXME: insert proper C++ library support
11944
 
        ld_shlibs_CXX=no
11945
 
        ;;
11946
 
    esac
11947
 
    ;;
11948
 
  vxworks*)
11949
 
    # FIXME: insert proper C++ library support
11950
 
    ld_shlibs_CXX=no
11951
 
    ;;
11952
 
  *)
11953
 
    # FIXME: insert proper C++ library support
11954
 
    ld_shlibs_CXX=no
11955
 
    ;;
11956
 
esac
11957
 
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11958
 
echo "${ECHO_T}$ld_shlibs_CXX" >&6
11959
 
test "$ld_shlibs_CXX" = no && can_build_shared=no
11960
 
 
11961
 
GCC_CXX="$GXX"
11962
 
LD_CXX="$LD"
11963
 
 
11964
 
## CAVEAT EMPTOR:
11965
 
## There is no encapsulation within the following macros, do not change
11966
 
## the running order or otherwise move them around unless you know exactly
11967
 
## what you are doing...
11968
 
 
11969
 
cat > conftest.$ac_ext <<EOF
11970
 
class Foo
11971
 
{
11972
 
public:
11973
 
  Foo (void) { a = 0; }
11974
 
private:
11975
 
  int a;
11976
 
};
11977
 
EOF
11978
 
 
11979
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11980
 
  (eval $ac_compile) 2>&5
11981
 
  ac_status=$?
11982
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983
 
  (exit $ac_status); }; then
11984
 
  # Parse the compiler output and extract the necessary
11985
 
  # objects, libraries and library flags.
11986
 
 
11987
 
  # Sentinel used to keep track of whether or not we are before
11988
 
  # the conftest object file.
11989
 
  pre_test_object_deps_done=no
11990
 
 
11991
 
  # The `*' in the case matches for architectures that use `case' in
11992
 
  # $output_verbose_cmd can trigger glob expansion during the loop
11993
 
  # eval without this substitution.
11994
 
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11995
 
 
11996
 
  for p in `eval $output_verbose_link_cmd`; do
11997
 
    case $p in
11998
 
 
11999
 
    -L* | -R* | -l*)
12000
 
       # Some compilers place space between "-{L,R}" and the path.
12001
 
       # Remove the space.
12002
 
       if test $p = "-L" \
12003
 
          || test $p = "-R"; then
12004
 
         prev=$p
12005
 
         continue
12006
 
       else
12007
 
         prev=
12008
 
       fi
12009
 
 
12010
 
       if test "$pre_test_object_deps_done" = no; then
12011
 
         case $p in
12012
 
         -L* | -R*)
12013
 
           # Internal compiler library paths should come after those
12014
 
           # provided the user.  The postdeps already come after the
12015
 
           # user supplied libs so there is no need to process them.
12016
 
           if test -z "$compiler_lib_search_path_CXX"; then
12017
 
             compiler_lib_search_path_CXX="${prev}${p}"
12018
 
           else
12019
 
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12020
 
           fi
12021
 
           ;;
12022
 
         # The "-l" case would never come before the object being
12023
 
         # linked, so don't bother handling this case.
12024
 
         esac
12025
 
       else
12026
 
         if test -z "$postdeps_CXX"; then
12027
 
           postdeps_CXX="${prev}${p}"
12028
 
         else
12029
 
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12030
 
         fi
12031
 
       fi
12032
 
       ;;
12033
 
 
12034
 
    *.$objext)
12035
 
       # This assumes that the test object file only shows up
12036
 
       # once in the compiler output.
12037
 
       if test "$p" = "conftest.$objext"; then
12038
 
         pre_test_object_deps_done=yes
12039
 
         continue
12040
 
       fi
12041
 
 
12042
 
       if test "$pre_test_object_deps_done" = no; then
12043
 
         if test -z "$predep_objects_CXX"; then
12044
 
           predep_objects_CXX="$p"
12045
 
         else
12046
 
           predep_objects_CXX="$predep_objects_CXX $p"
12047
 
         fi
12048
 
       else
12049
 
         if test -z "$postdep_objects_CXX"; then
12050
 
           postdep_objects_CXX="$p"
12051
 
         else
12052
 
           postdep_objects_CXX="$postdep_objects_CXX $p"
12053
 
         fi
12054
 
       fi
12055
 
       ;;
12056
 
 
12057
 
    *) ;; # Ignore the rest.
12058
 
 
12059
 
    esac
12060
 
  done
12061
 
 
12062
 
  # Clean up.
12063
 
  rm -f a.out a.exe
12064
 
else
12065
 
  echo "libtool.m4: error: problem compiling CXX test program"
12066
 
fi
12067
 
 
12068
 
$rm -f confest.$objext
12069
 
 
12070
 
case " $postdeps_CXX " in
12071
 
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12072
 
esac
12073
 
 
12074
 
lt_prog_compiler_wl_CXX=
12075
 
lt_prog_compiler_pic_CXX=
12076
 
lt_prog_compiler_static_CXX=
12077
 
 
12078
 
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12079
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12080
 
 
12081
 
  # C++ specific cases for pic, static, wl, etc.
12082
 
  if test "$GXX" = yes; then
12083
 
    lt_prog_compiler_wl_CXX='-Wl,'
12084
 
    lt_prog_compiler_static_CXX='-static'
12085
 
 
12086
 
    case $host_os in
12087
 
    aix*)
12088
 
      # All AIX code is PIC.
12089
 
      if test "$host_cpu" = ia64; then
12090
 
        # AIX 5 now supports IA64 processor
12091
 
        lt_prog_compiler_static_CXX='-Bstatic'
12092
 
      fi
12093
 
      ;;
12094
 
    amigaos*)
12095
 
      # FIXME: we need at least 68020 code to build shared libraries, but
12096
 
      # adding the `-m68020' flag to GCC prevents building anything better,
12097
 
      # like `-m68040'.
12098
 
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12099
 
      ;;
12100
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12101
 
      # PIC is the default for these OSes.
12102
 
      ;;
12103
 
    mingw* | os2* | pw32*)
12104
 
      # This hack is so that the source file can tell whether it is being
12105
 
      # built for inclusion in a dll (and should export symbols for example).
12106
 
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12107
 
      ;;
12108
 
    darwin* | rhapsody*)
12109
 
      # PIC is the default on this platform
12110
 
      # Common symbols not allowed in MH_DYLIB files
12111
 
      lt_prog_compiler_pic_CXX='-fno-common'
12112
 
      ;;
12113
 
    *djgpp*)
12114
 
      # DJGPP does not support shared libraries at all
12115
 
      lt_prog_compiler_pic_CXX=
12116
 
      ;;
12117
 
    sysv4*MP*)
12118
 
      if test -d /usr/nec; then
12119
 
        lt_prog_compiler_pic_CXX=-Kconform_pic
12120
 
      fi
12121
 
      ;;
12122
 
    hpux*)
12123
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12124
 
      # not for PA HP-UX.
12125
 
      case "$host_cpu" in
12126
 
      hppa*64*|ia64*)
12127
 
        ;;
12128
 
      *)
12129
 
        lt_prog_compiler_pic_CXX='-fPIC'
12130
 
        ;;
12131
 
      esac
12132
 
      ;;
12133
 
    *)
12134
 
      lt_prog_compiler_pic_CXX='-fPIC'
12135
 
      ;;
12136
 
    esac
12137
 
  else
12138
 
    case $host_os in
12139
 
      aix4* | aix5*)
12140
 
        # All AIX code is PIC.
12141
 
        if test "$host_cpu" = ia64; then
12142
 
          # AIX 5 now supports IA64 processor
12143
 
          lt_prog_compiler_static_CXX='-Bstatic'
12144
 
        else
12145
 
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12146
 
        fi
12147
 
        ;;
12148
 
      chorus*)
12149
 
        case $cc_basename in
12150
 
        cxch68)
12151
 
          # Green Hills C++ Compiler
12152
 
          # _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"
12153
 
          ;;
12154
 
        esac
12155
 
        ;;
12156
 
       darwin*)
12157
 
         # PIC is the default on this platform
12158
 
         # Common symbols not allowed in MH_DYLIB files
12159
 
         case "$cc_basename" in
12160
 
           xlc*)
12161
 
           lt_prog_compiler_pic_CXX='-qnocommon'
12162
 
           lt_prog_compiler_wl_CXX='-Wl,'
12163
 
           ;;
12164
 
         esac
12165
 
       ;;
12166
 
      dgux*)
12167
 
        case $cc_basename in
12168
 
          ec++)
12169
 
            lt_prog_compiler_pic_CXX='-KPIC'
12170
 
            ;;
12171
 
          ghcx)
12172
 
            # Green Hills C++ Compiler
12173
 
            lt_prog_compiler_pic_CXX='-pic'
12174
 
            ;;
12175
 
          *)
12176
 
            ;;
12177
 
        esac
12178
 
        ;;
12179
 
      freebsd* | kfreebsd*-gnu | dragonfly*)
12180
 
        # FreeBSD uses GNU C++
12181
 
        ;;
12182
 
      hpux9* | hpux10* | hpux11*)
12183
 
        case $cc_basename in
12184
 
          CC)
12185
 
            lt_prog_compiler_wl_CXX='-Wl,'
12186
 
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12187
 
            if test "$host_cpu" != ia64; then
12188
 
              lt_prog_compiler_pic_CXX='+Z'
12189
 
            fi
12190
 
            ;;
12191
 
          aCC)
12192
 
            lt_prog_compiler_wl_CXX='-Wl,'
12193
 
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12194
 
            case "$host_cpu" in
12195
 
            hppa*64*|ia64*)
12196
 
              # +Z the default
12197
 
              ;;
12198
 
            *)
12199
 
              lt_prog_compiler_pic_CXX='+Z'
12200
 
              ;;
12201
 
            esac
12202
 
            ;;
12203
 
          *)
12204
 
            ;;
12205
 
        esac
12206
 
        ;;
12207
 
      irix5* | irix6* | nonstopux*)
12208
 
        case $cc_basename in
12209
 
          CC)
12210
 
            lt_prog_compiler_wl_CXX='-Wl,'
12211
 
            lt_prog_compiler_static_CXX='-non_shared'
12212
 
            # CC pic flag -KPIC is the default.
12213
 
            ;;
12214
 
          *)
12215
 
            ;;
12216
 
        esac
12217
 
        ;;
12218
 
      linux*)
12219
 
        case $cc_basename in
12220
 
          KCC)
12221
 
            # KAI C++ Compiler
12222
 
            lt_prog_compiler_wl_CXX='--backend -Wl,'
12223
 
            lt_prog_compiler_pic_CXX='-fPIC'
12224
 
            ;;
12225
 
          icpc* | ecpc*)
12226
 
            # Intel C++
12227
 
            lt_prog_compiler_wl_CXX='-Wl,'
12228
 
            lt_prog_compiler_pic_CXX='-KPIC'
12229
 
            lt_prog_compiler_static_CXX='-static'
12230
 
            ;;
12231
 
          pgCC)
12232
 
            # Portland Group C++ compiler.
12233
 
            lt_prog_compiler_wl_CXX='-Wl,'
12234
 
            lt_prog_compiler_pic_CXX='-fpic'
12235
 
            lt_prog_compiler_static_CXX='-static'
12236
 
            ;;
12237
 
          cxx)
12238
 
            # Compaq C++
12239
 
            # Make sure the PIC flag is empty.  It appears that all Alpha
12240
 
            # Linux and Compaq Tru64 Unix objects are PIC.
12241
 
            lt_prog_compiler_pic_CXX=
12242
 
            lt_prog_compiler_static_CXX='-non_shared'
12243
 
            ;;
12244
 
          *)
12245
 
            ;;
12246
 
        esac
12247
 
        ;;
12248
 
      lynxos*)
12249
 
        ;;
12250
 
      m88k*)
12251
 
        ;;
12252
 
      mvs*)
12253
 
        case $cc_basename in
12254
 
          cxx)
12255
 
            lt_prog_compiler_pic_CXX='-W c,exportall'
12256
 
            ;;
12257
 
          *)
12258
 
            ;;
12259
 
        esac
12260
 
        ;;
12261
 
      netbsd*)
12262
 
        ;;
12263
 
      osf3* | osf4* | osf5*)
12264
 
        case $cc_basename in
12265
 
          KCC)
12266
 
            lt_prog_compiler_wl_CXX='--backend -Wl,'
12267
 
            ;;
12268
 
          RCC)
12269
 
            # Rational C++ 2.4.1
12270
 
            lt_prog_compiler_pic_CXX='-pic'
12271
 
            ;;
12272
 
          cxx)
12273
 
            # Digital/Compaq C++
12274
 
            lt_prog_compiler_wl_CXX='-Wl,'
12275
 
            # Make sure the PIC flag is empty.  It appears that all Alpha
12276
 
            # Linux and Compaq Tru64 Unix objects are PIC.
12277
 
            lt_prog_compiler_pic_CXX=
12278
 
            lt_prog_compiler_static_CXX='-non_shared'
12279
 
            ;;
12280
 
          *)
12281
 
            ;;
12282
 
        esac
12283
 
        ;;
12284
 
      psos*)
12285
 
        ;;
12286
 
      sco*)
12287
 
        case $cc_basename in
12288
 
          CC)
12289
 
            lt_prog_compiler_pic_CXX='-fPIC'
12290
 
            ;;
12291
 
          *)
12292
 
            ;;
12293
 
        esac
12294
 
        ;;
12295
 
      solaris*)
12296
 
        case $cc_basename in
12297
 
          CC)
12298
 
            # Sun C++ 4.2, 5.x and Centerline C++
12299
 
            lt_prog_compiler_pic_CXX='-KPIC'
12300
 
            lt_prog_compiler_static_CXX='-Bstatic'
12301
 
            lt_prog_compiler_wl_CXX='-Qoption ld '
12302
 
            ;;
12303
 
          gcx)
12304
 
            # Green Hills C++ Compiler
12305
 
            lt_prog_compiler_pic_CXX='-PIC'
12306
 
            ;;
12307
 
          *)
12308
 
            ;;
12309
 
        esac
12310
 
        ;;
12311
 
      sunos4*)
12312
 
        case $cc_basename in
12313
 
          CC)
12314
 
            # Sun C++ 4.x
12315
 
            lt_prog_compiler_pic_CXX='-pic'
12316
 
            lt_prog_compiler_static_CXX='-Bstatic'
12317
 
            ;;
12318
 
          lcc)
12319
 
            # Lucid
12320
 
            lt_prog_compiler_pic_CXX='-pic'
12321
 
            ;;
12322
 
          *)
12323
 
            ;;
12324
 
        esac
12325
 
        ;;
12326
 
      tandem*)
12327
 
        case $cc_basename in
12328
 
          NCC)
12329
 
            # NonStop-UX NCC 3.20
12330
 
            lt_prog_compiler_pic_CXX='-KPIC'
12331
 
            ;;
12332
 
          *)
12333
 
            ;;
12334
 
        esac
12335
 
        ;;
12336
 
      unixware*)
12337
 
        ;;
12338
 
      vxworks*)
12339
 
        ;;
12340
 
      *)
12341
 
        lt_prog_compiler_can_build_shared_CXX=no
12342
 
        ;;
12343
 
    esac
12344
 
  fi
12345
 
 
12346
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12347
 
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
12348
 
 
12349
 
#
12350
 
# Check to make sure the PIC flag actually works.
12351
 
#
12352
 
if test -n "$lt_prog_compiler_pic_CXX"; then
12353
 
  
12354
 
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12355
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
12356
 
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12357
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12358
 
else
12359
 
  lt_prog_compiler_pic_works_CXX=no
12360
 
  ac_outfile=conftest.$ac_objext
12361
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12362
 
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12363
 
   # Insert the option either (1) after the last *FLAGS variable, or
12364
 
   # (2) before a word containing "conftest.", or (3) at the end.
12365
 
   # Note that $ac_compile itself does not contain backslashes and begins
12366
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
12367
 
   # The option is referenced via a variable to avoid confusing sed.
12368
 
   lt_compile=`echo "$ac_compile" | $SED \
12369
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12370
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12371
 
   -e 's:$: $lt_compiler_flag:'`
12372
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
12373
 
   (eval "$lt_compile" 2>conftest.err)
12374
 
   ac_status=$?
12375
 
   cat conftest.err >&5
12376
 
   echo "$as_me:__oline__: \$? = $ac_status" >&5
12377
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
12378
 
     # The compiler can only warn and ignore the option if not recognized
12379
 
     # So say no if there are warnings
12380
 
     if test ! -s conftest.err; then
12381
 
       lt_prog_compiler_pic_works_CXX=yes
12382
 
     fi
12383
 
   fi
12384
 
   $rm conftest*
12385
 
 
12386
 
fi
12387
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12388
 
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
12389
 
 
12390
 
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12391
 
    case $lt_prog_compiler_pic_CXX in
12392
 
     "" | " "*) ;;
12393
 
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12394
 
     esac
12395
 
else
12396
 
    lt_prog_compiler_pic_CXX=
12397
 
     lt_prog_compiler_can_build_shared_CXX=no
12398
 
fi
12399
 
 
12400
 
fi
12401
 
case "$host_os" in
12402
 
  # For platforms which do not support PIC, -DPIC is meaningless:
12403
 
  *djgpp*)
12404
 
    lt_prog_compiler_pic_CXX=
12405
 
    ;;
12406
 
  *)
12407
 
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12408
 
    ;;
12409
 
esac
12410
 
 
12411
 
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12412
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12413
 
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12414
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
12415
 
else
12416
 
  lt_cv_prog_compiler_c_o_CXX=no
12417
 
   $rm -r conftest 2>/dev/null
12418
 
   mkdir conftest
12419
 
   cd conftest
12420
 
   mkdir out
12421
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12422
 
 
12423
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
12424
 
   # Insert the option either (1) after the last *FLAGS variable, or
12425
 
   # (2) before a word containing "conftest.", or (3) at the end.
12426
 
   # Note that $ac_compile itself does not contain backslashes and begins
12427
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
12428
 
   lt_compile=`echo "$ac_compile" | $SED \
12429
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12430
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12431
 
   -e 's:$: $lt_compiler_flag:'`
12432
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
12433
 
   (eval "$lt_compile" 2>out/conftest.err)
12434
 
   ac_status=$?
12435
 
   cat out/conftest.err >&5
12436
 
   echo "$as_me:__oline__: \$? = $ac_status" >&5
12437
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12438
 
   then
12439
 
     # The compiler can only warn and ignore the option if not recognized
12440
 
     # So say no if there are warnings
12441
 
     if test ! -s out/conftest.err; then
12442
 
       lt_cv_prog_compiler_c_o_CXX=yes
12443
 
     fi
12444
 
   fi
12445
 
   chmod u+w .
12446
 
   $rm conftest*
12447
 
   # SGI C++ compiler will create directory out/ii_files/ for
12448
 
   # template instantiation
12449
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12450
 
   $rm out/* && rmdir out
12451
 
   cd ..
12452
 
   rmdir conftest
12453
 
   $rm conftest*
12454
 
 
12455
 
fi
12456
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12457
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12458
 
 
12459
 
 
12460
 
hard_links="nottested"
12461
 
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12462
 
  # do not overwrite the value of need_locks provided by the user
12463
 
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12464
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12465
 
  hard_links=yes
12466
 
  $rm conftest*
12467
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12468
 
  touch conftest.a
12469
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
12470
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12471
 
  echo "$as_me:$LINENO: result: $hard_links" >&5
12472
 
echo "${ECHO_T}$hard_links" >&6
12473
 
  if test "$hard_links" = no; then
12474
 
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12475
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12476
 
    need_locks=warn
12477
 
  fi
12478
 
else
12479
 
  need_locks=no
12480
 
fi
12481
 
 
12482
 
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12483
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12484
 
 
12485
 
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12486
 
  case $host_os in
12487
 
  aix4* | aix5*)
12488
 
    # If we're using GNU nm, then we don't want the "-C" option.
12489
 
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
12490
 
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12491
 
      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'
12492
 
    else
12493
 
      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'
12494
 
    fi
12495
 
    ;;
12496
 
  pw32*)
12497
 
    export_symbols_cmds_CXX="$ltdll_cmds"
12498
 
  ;;
12499
 
  cygwin* | mingw*)
12500
 
    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'
12501
 
  ;;
12502
 
  *)
12503
 
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12504
 
  ;;
12505
 
  esac
12506
 
 
12507
 
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12508
 
echo "${ECHO_T}$ld_shlibs_CXX" >&6
12509
 
test "$ld_shlibs_CXX" = no && can_build_shared=no
12510
 
 
12511
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12512
 
if test "$GCC" = yes; then
12513
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12514
 
fi
12515
 
 
12516
 
#
12517
 
# Do we need to explicitly link libc?
12518
 
#
12519
 
case "x$archive_cmds_need_lc_CXX" in
12520
 
x|xyes)
12521
 
  # Assume -lc should be added
12522
 
  archive_cmds_need_lc_CXX=yes
12523
 
 
12524
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
12525
 
    case $archive_cmds_CXX in
12526
 
    *'~'*)
12527
 
      # FIXME: we may have to deal with multi-command sequences.
12528
 
      ;;
12529
 
    '$CC '*)
12530
 
      # Test whether the compiler implicitly links with -lc since on some
12531
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12532
 
      # to ld, don't add -lc before -lgcc.
12533
 
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12534
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12535
 
      $rm conftest*
12536
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12537
 
 
12538
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12539
 
  (eval $ac_compile) 2>&5
12540
 
  ac_status=$?
12541
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542
 
  (exit $ac_status); } 2>conftest.err; then
12543
 
        soname=conftest
12544
 
        lib=conftest
12545
 
        libobjs=conftest.$ac_objext
12546
 
        deplibs=
12547
 
        wl=$lt_prog_compiler_wl_CXX
12548
 
        compiler_flags=-v
12549
 
        linker_flags=-v
12550
 
        verstring=
12551
 
        output_objdir=.
12552
 
        libname=conftest
12553
 
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12554
 
        allow_undefined_flag_CXX=
12555
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12556
 
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12557
 
  ac_status=$?
12558
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559
 
  (exit $ac_status); }
12560
 
        then
12561
 
          archive_cmds_need_lc_CXX=no
12562
 
        else
12563
 
          archive_cmds_need_lc_CXX=yes
12564
 
        fi
12565
 
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12566
 
      else
12567
 
        cat conftest.err 1>&5
12568
 
      fi
12569
 
      $rm conftest*
12570
 
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12571
 
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12572
 
      ;;
12573
 
    esac
12574
 
  fi
12575
 
  ;;
12576
 
esac
12577
 
 
12578
 
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12579
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12580
 
library_names_spec=
12581
 
libname_spec='lib$name'
12582
 
soname_spec=
12583
 
shrext_cmds=".so"
12584
 
postinstall_cmds=
12585
 
postuninstall_cmds=
12586
 
finish_cmds=
12587
 
finish_eval=
12588
 
shlibpath_var=
12589
 
shlibpath_overrides_runpath=unknown
12590
 
version_type=none
12591
 
dynamic_linker="$host_os ld.so"
12592
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
12593
 
if test "$GCC" = yes; then
12594
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12595
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12596
 
    # if the path contains ";" then we assume it to be the separator
12597
 
    # otherwise default to the standard path separator (i.e. ":") - it is
12598
 
    # assumed that no part of a normal pathname contains ";" but that should
12599
 
    # okay in the real world where ";" in dirpaths is itself problematic.
12600
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12601
 
  else
12602
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12603
 
  fi
12604
 
else
12605
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12606
 
fi
12607
 
need_lib_prefix=unknown
12608
 
hardcode_into_libs=no
12609
 
 
12610
 
# when you set need_version to no, make sure it does not cause -set_version
12611
 
# flags to be left without arguments
12612
 
need_version=unknown
12613
 
 
12614
 
case $host_os in
12615
 
aix3*)
12616
 
  version_type=linux
12617
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12618
 
  shlibpath_var=LIBPATH
12619
 
 
12620
 
  # AIX 3 has no versioning support, so we append a major version to the name.
12621
 
  soname_spec='${libname}${release}${shared_ext}$major'
12622
 
  ;;
12623
 
 
12624
 
aix4* | aix5*)
12625
 
  version_type=linux
12626
 
  need_lib_prefix=no
12627
 
  need_version=no
12628
 
  hardcode_into_libs=yes
12629
 
  if test "$host_cpu" = ia64; then
12630
 
    # AIX 5 supports IA64
12631
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12632
 
    shlibpath_var=LD_LIBRARY_PATH
12633
 
  else
12634
 
    # With GCC up to 2.95.x, collect2 would create an import file
12635
 
    # for dependence libraries.  The import file would start with
12636
 
    # the line `#! .'.  This would cause the generated library to
12637
 
    # depend on `.', always an invalid library.  This was fixed in
12638
 
    # development snapshots of GCC prior to 3.0.
12639
 
    case $host_os in
12640
 
      aix4 | aix4.[01] | aix4.[01].*)
12641
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12642
 
           echo ' yes '
12643
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12644
 
        :
12645
 
      else
12646
 
        can_build_shared=no
12647
 
      fi
12648
 
      ;;
12649
 
    esac
12650
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12651
 
    # soname into executable. Probably we can add versioning support to
12652
 
    # collect2, so additional links can be useful in future.
12653
 
    if test "$aix_use_runtimelinking" = yes; then
12654
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12655
 
      # instead of lib<name>.a to let people know that these are not
12656
 
      # typical AIX shared libraries.
12657
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12658
 
    else
12659
 
      # We preserve .a as extension for shared libraries through AIX4.2
12660
 
      # and later when we are not doing run time linking.
12661
 
      library_names_spec='${libname}${release}.a $libname.a'
12662
 
      soname_spec='${libname}${release}${shared_ext}$major'
12663
 
    fi
12664
 
    shlibpath_var=LIBPATH
12665
 
  fi
12666
 
  ;;
12667
 
 
12668
 
amigaos*)
12669
 
  library_names_spec='$libname.ixlibrary $libname.a'
12670
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
12671
 
  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'
12672
 
  ;;
12673
 
 
12674
 
beos*)
12675
 
  library_names_spec='${libname}${shared_ext}'
12676
 
  dynamic_linker="$host_os ld.so"
12677
 
  shlibpath_var=LIBRARY_PATH
12678
 
  ;;
12679
 
 
12680
 
bsdi[45]*)
12681
 
  version_type=linux
12682
 
  need_version=no
12683
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12684
 
  soname_spec='${libname}${release}${shared_ext}$major'
12685
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12686
 
  shlibpath_var=LD_LIBRARY_PATH
12687
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12688
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12689
 
  # the default ld.so.conf also contains /usr/contrib/lib and
12690
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12691
 
  # libtool to hard-code these into programs
12692
 
  ;;
12693
 
 
12694
 
cygwin* | mingw* | pw32*)
12695
 
  version_type=windows
12696
 
  shrext_cmds=".dll"
12697
 
  need_version=no
12698
 
  need_lib_prefix=no
12699
 
 
12700
 
  case $GCC,$host_os in
12701
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
12702
 
    library_names_spec='$libname.dll.a'
12703
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12704
 
    postinstall_cmds='base_file=`basename \${file}`~
12705
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12706
 
      dldir=$destdir/`dirname \$dlpath`~
12707
 
      test -d \$dldir || mkdir -p \$dldir~
12708
 
      $install_prog $dir/$dlname \$dldir/$dlname'
12709
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12710
 
      dlpath=$dir/\$dldll~
12711
 
       $rm \$dlpath'
12712
 
    shlibpath_overrides_runpath=yes
12713
 
 
12714
 
    case $host_os in
12715
 
    cygwin*)
12716
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12717
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12718
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12719
 
      ;;
12720
 
    mingw*)
12721
 
      # MinGW DLLs use traditional 'lib' prefix
12722
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12723
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12724
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12725
 
        # It is most probably a Windows format PATH printed by
12726
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
12727
 
        # path with ; separators, and with drive letters. We can handle the
12728
 
        # drive letters (cygwin fileutils understands them), so leave them,
12729
 
        # especially as we might pass files found there to a mingw objdump,
12730
 
        # which wouldn't understand a cygwinified path. Ahh.
12731
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12732
 
      else
12733
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12734
 
      fi
12735
 
      ;;
12736
 
    pw32*)
12737
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
12738
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12739
 
      ;;
12740
 
    esac
12741
 
    ;;
12742
 
 
12743
 
  *)
12744
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12745
 
    ;;
12746
 
  esac
12747
 
  dynamic_linker='Win32 ld.exe'
12748
 
  # FIXME: first we should search . and the directory the executable is in
12749
 
  shlibpath_var=PATH
12750
 
  ;;
12751
 
 
12752
 
darwin* | rhapsody*)
12753
 
  dynamic_linker="$host_os dyld"
12754
 
  version_type=darwin
12755
 
  need_lib_prefix=no
12756
 
  need_version=no
12757
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12758
 
  soname_spec='${libname}${release}${major}$shared_ext'
12759
 
  shlibpath_overrides_runpath=yes
12760
 
  shlibpath_var=DYLD_LIBRARY_PATH
12761
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
12762
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12763
 
  if test "$GCC" = yes; then
12764
 
    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"`
12765
 
  else
12766
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12767
 
  fi
12768
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12769
 
  ;;
12770
 
 
12771
 
dgux*)
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
 
  ;;
12779
 
 
12780
 
freebsd1*)
12781
 
  dynamic_linker=no
12782
 
  ;;
12783
 
 
12784
 
kfreebsd*-gnu)
12785
 
  version_type=linux
12786
 
  need_lib_prefix=no
12787
 
  need_version=no
12788
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12789
 
  soname_spec='${libname}${release}${shared_ext}$major'
12790
 
  shlibpath_var=LD_LIBRARY_PATH
12791
 
  shlibpath_overrides_runpath=no
12792
 
  hardcode_into_libs=yes
12793
 
  dynamic_linker='GNU ld.so'
12794
 
  ;;
12795
 
 
12796
 
freebsd* | dragonfly*)
12797
 
  # DragonFly does not have aout.  When/if they implement a new
12798
 
  # versioning mechanism, adjust this.
12799
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
12800
 
  version_type=freebsd-$objformat
12801
 
  case $version_type in
12802
 
    freebsd-elf*)
12803
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12804
 
      need_version=no
12805
 
      need_lib_prefix=no
12806
 
      ;;
12807
 
    freebsd-*)
12808
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12809
 
      need_version=yes
12810
 
      ;;
12811
 
  esac
12812
 
  shlibpath_var=LD_LIBRARY_PATH
12813
 
  case $host_os in
12814
 
  freebsd2*)
12815
 
    shlibpath_overrides_runpath=yes
12816
 
    ;;
12817
 
  freebsd3.[01]* | freebsdelf3.[01]*)
12818
 
    shlibpath_overrides_runpath=yes
12819
 
    hardcode_into_libs=yes
12820
 
    ;;
12821
 
  *) # from 3.2 on
12822
 
    shlibpath_overrides_runpath=no
12823
 
    hardcode_into_libs=yes
12824
 
    ;;
12825
 
  esac
12826
 
  ;;
12827
 
 
12828
 
gnu*)
12829
 
  version_type=linux
12830
 
  need_lib_prefix=no
12831
 
  need_version=no
12832
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12833
 
  soname_spec='${libname}${release}${shared_ext}$major'
12834
 
  shlibpath_var=LD_LIBRARY_PATH
12835
 
  hardcode_into_libs=yes
12836
 
  ;;
12837
 
 
12838
 
hpux9* | hpux10* | hpux11*)
12839
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
12840
 
  # link against other versions.
12841
 
  version_type=sunos
12842
 
  need_lib_prefix=no
12843
 
  need_version=no
12844
 
  case "$host_cpu" in
12845
 
  ia64*)
12846
 
    shrext_cmds='.so'
12847
 
    hardcode_into_libs=yes
12848
 
    dynamic_linker="$host_os dld.so"
12849
 
    shlibpath_var=LD_LIBRARY_PATH
12850
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12851
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12852
 
    soname_spec='${libname}${release}${shared_ext}$major'
12853
 
    if test "X$HPUX_IA64_MODE" = X32; then
12854
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12855
 
    else
12856
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12857
 
    fi
12858
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12859
 
    ;;
12860
 
   hppa*64*)
12861
 
     shrext_cmds='.sl'
12862
 
     hardcode_into_libs=yes
12863
 
     dynamic_linker="$host_os dld.sl"
12864
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12865
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12866
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12867
 
     soname_spec='${libname}${release}${shared_ext}$major'
12868
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12869
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12870
 
     ;;
12871
 
   *)
12872
 
    shrext_cmds='.sl'
12873
 
    dynamic_linker="$host_os dld.sl"
12874
 
    shlibpath_var=SHLIB_PATH
12875
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12876
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12877
 
    soname_spec='${libname}${release}${shared_ext}$major'
12878
 
    ;;
12879
 
  esac
12880
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12881
 
  postinstall_cmds='chmod 555 $lib'
12882
 
  ;;
12883
 
 
12884
 
irix5* | irix6* | nonstopux*)
12885
 
  case $host_os in
12886
 
    nonstopux*) version_type=nonstopux ;;
12887
 
    *)
12888
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
12889
 
                version_type=linux
12890
 
        else
12891
 
                version_type=irix
12892
 
        fi ;;
12893
 
  esac
12894
 
  need_lib_prefix=no
12895
 
  need_version=no
12896
 
  soname_spec='${libname}${release}${shared_ext}$major'
12897
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12898
 
  case $host_os in
12899
 
  irix5* | nonstopux*)
12900
 
    libsuff= shlibsuff=
12901
 
    ;;
12902
 
  *)
12903
 
    case $LD in # libtool.m4 will add one of these switches to LD
12904
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12905
 
      libsuff= shlibsuff= libmagic=32-bit;;
12906
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12907
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
12908
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12909
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12910
 
    *) libsuff= shlibsuff= libmagic=never-match;;
12911
 
    esac
12912
 
    ;;
12913
 
  esac
12914
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12915
 
  shlibpath_overrides_runpath=no
12916
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12917
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12918
 
  hardcode_into_libs=yes
12919
 
  ;;
12920
 
 
12921
 
# No shared lib support for Linux oldld, aout, or coff.
12922
 
linux*oldld* | linux*aout* | linux*coff*)
12923
 
  dynamic_linker=no
12924
 
  ;;
12925
 
 
12926
 
# This must be Linux ELF.
12927
 
linux*)
12928
 
  version_type=linux
12929
 
  need_lib_prefix=no
12930
 
  need_version=no
12931
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12932
 
  soname_spec='${libname}${release}${shared_ext}$major'
12933
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12934
 
  shlibpath_var=LD_LIBRARY_PATH
12935
 
  shlibpath_overrides_runpath=no
12936
 
  # This implies no fast_install, which is unacceptable.
12937
 
  # Some rework will be needed to allow for fast_install
12938
 
  # before this can be enabled.
12939
 
  hardcode_into_libs=yes
12940
 
 
12941
 
  # Append ld.so.conf contents to the search path
12942
 
  if test -f /etc/ld.so.conf; then
12943
 
    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/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12944
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12945
 
  fi
12946
 
 
12947
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
12948
 
  # powerpc, because MkLinux only supported shared libraries with the
12949
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
12950
 
  # most powerpc-linux boxes support dynamic linking these days and
12951
 
  # people can always --disable-shared, the test was removed, and we
12952
 
  # assume the GNU/Linux dynamic linker is in use.
12953
 
  dynamic_linker='GNU/Linux ld.so'
12954
 
  ;;
12955
 
 
12956
 
knetbsd*-gnu)
12957
 
  version_type=linux
12958
 
  need_lib_prefix=no
12959
 
  need_version=no
12960
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12961
 
  soname_spec='${libname}${release}${shared_ext}$major'
12962
 
  shlibpath_var=LD_LIBRARY_PATH
12963
 
  shlibpath_overrides_runpath=no
12964
 
  hardcode_into_libs=yes
12965
 
  dynamic_linker='GNU ld.so'
12966
 
  ;;
12967
 
 
12968
 
netbsd*)
12969
 
  version_type=sunos
12970
 
  need_lib_prefix=no
12971
 
  need_version=no
12972
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12973
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12974
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12975
 
    dynamic_linker='NetBSD (a.out) ld.so'
12976
 
  else
12977
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12978
 
    soname_spec='${libname}${release}${shared_ext}$major'
12979
 
    dynamic_linker='NetBSD ld.elf_so'
12980
 
  fi
12981
 
  shlibpath_var=LD_LIBRARY_PATH
12982
 
  shlibpath_overrides_runpath=yes
12983
 
  hardcode_into_libs=yes
12984
 
  ;;
12985
 
 
12986
 
newsos6)
12987
 
  version_type=linux
12988
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12989
 
  shlibpath_var=LD_LIBRARY_PATH
12990
 
  shlibpath_overrides_runpath=yes
12991
 
  ;;
12992
 
 
12993
 
nto-qnx*)
12994
 
  version_type=linux
12995
 
  need_lib_prefix=no
12996
 
  need_version=no
12997
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12998
 
  soname_spec='${libname}${release}${shared_ext}$major'
12999
 
  shlibpath_var=LD_LIBRARY_PATH
13000
 
  shlibpath_overrides_runpath=yes
13001
 
  ;;
13002
 
 
13003
 
openbsd*)
13004
 
  version_type=sunos
13005
 
  need_lib_prefix=no
13006
 
  need_version=no
13007
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13008
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13009
 
  shlibpath_var=LD_LIBRARY_PATH
13010
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13011
 
    case $host_os in
13012
 
      openbsd2.[89] | openbsd2.[89].*)
13013
 
        shlibpath_overrides_runpath=no
13014
 
        ;;
13015
 
      *)
13016
 
        shlibpath_overrides_runpath=yes
13017
 
        ;;
13018
 
      esac
13019
 
  else
13020
 
    shlibpath_overrides_runpath=yes
13021
 
  fi
13022
 
  ;;
13023
 
 
13024
 
os2*)
13025
 
  libname_spec='$name'
13026
 
  shrext_cmds=".dll"
13027
 
  need_lib_prefix=no
13028
 
  library_names_spec='$libname${shared_ext} $libname.a'
13029
 
  dynamic_linker='OS/2 ld.exe'
13030
 
  shlibpath_var=LIBPATH
13031
 
  ;;
13032
 
 
13033
 
osf3* | osf4* | osf5*)
13034
 
  version_type=osf
13035
 
  need_lib_prefix=no
13036
 
  need_version=no
13037
 
  soname_spec='${libname}${release}${shared_ext}$major'
13038
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13039
 
  shlibpath_var=LD_LIBRARY_PATH
13040
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13041
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13042
 
  ;;
13043
 
 
13044
 
sco3.2v5*)
13045
 
  version_type=osf
13046
 
  soname_spec='${libname}${release}${shared_ext}$major'
13047
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13048
 
  shlibpath_var=LD_LIBRARY_PATH
13049
 
  ;;
13050
 
 
13051
 
solaris*)
13052
 
  version_type=linux
13053
 
  need_lib_prefix=no
13054
 
  need_version=no
13055
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13056
 
  soname_spec='${libname}${release}${shared_ext}$major'
13057
 
  shlibpath_var=LD_LIBRARY_PATH
13058
 
  shlibpath_overrides_runpath=yes
13059
 
  hardcode_into_libs=yes
13060
 
  # ldd complains unless libraries are executable
13061
 
  postinstall_cmds='chmod +x $lib'
13062
 
  ;;
13063
 
 
13064
 
sunos4*)
13065
 
  version_type=sunos
13066
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13067
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13068
 
  shlibpath_var=LD_LIBRARY_PATH
13069
 
  shlibpath_overrides_runpath=yes
13070
 
  if test "$with_gnu_ld" = yes; then
13071
 
    need_lib_prefix=no
13072
 
  fi
13073
 
  need_version=yes
13074
 
  ;;
13075
 
 
13076
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13077
 
  version_type=linux
13078
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13079
 
  soname_spec='${libname}${release}${shared_ext}$major'
13080
 
  shlibpath_var=LD_LIBRARY_PATH
13081
 
  case $host_vendor in
13082
 
    sni)
13083
 
      shlibpath_overrides_runpath=no
13084
 
      need_lib_prefix=no
13085
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
13086
 
      runpath_var=LD_RUN_PATH
13087
 
      ;;
13088
 
    siemens)
13089
 
      need_lib_prefix=no
13090
 
      ;;
13091
 
    motorola)
13092
 
      need_lib_prefix=no
13093
 
      need_version=no
13094
 
      shlibpath_overrides_runpath=no
13095
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13096
 
      ;;
13097
 
  esac
13098
 
  ;;
13099
 
 
13100
 
sysv4*MP*)
13101
 
  if test -d /usr/nec ;then
13102
 
    version_type=linux
13103
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13104
 
    soname_spec='$libname${shared_ext}.$major'
13105
 
    shlibpath_var=LD_LIBRARY_PATH
13106
 
  fi
13107
 
  ;;
13108
 
 
13109
 
uts4*)
13110
 
  version_type=linux
13111
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13112
 
  soname_spec='${libname}${release}${shared_ext}$major'
13113
 
  shlibpath_var=LD_LIBRARY_PATH
13114
 
  ;;
13115
 
 
13116
 
*)
13117
 
  dynamic_linker=no
13118
 
  ;;
13119
 
esac
13120
 
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13121
 
echo "${ECHO_T}$dynamic_linker" >&6
13122
 
test "$dynamic_linker" = no && can_build_shared=no
13123
 
 
13124
 
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13125
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13126
 
hardcode_action_CXX=
13127
 
if test -n "$hardcode_libdir_flag_spec_CXX" || \
13128
 
   test -n "$runpath_var_CXX" || \
13129
 
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13130
 
 
13131
 
  # We can hardcode non-existant directories.
13132
 
  if test "$hardcode_direct_CXX" != no &&
13133
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13134
 
     # have to relink, otherwise we might link with an installed library
13135
 
     # when we should be linking with a yet-to-be-installed one
13136
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13137
 
     test "$hardcode_minus_L_CXX" != no; then
13138
 
    # Linking always hardcodes the temporary library directory.
13139
 
    hardcode_action_CXX=relink
13140
 
  else
13141
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13142
 
    hardcode_action_CXX=immediate
13143
 
  fi
13144
 
else
13145
 
  # We cannot hardcode anything, or else we can only hardcode existing
13146
 
  # directories.
13147
 
  hardcode_action_CXX=unsupported
13148
 
fi
13149
 
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13150
 
echo "${ECHO_T}$hardcode_action_CXX" >&6
13151
 
 
13152
 
if test "$hardcode_action_CXX" = relink; then
13153
 
  # Fast installation is not supported
13154
 
  enable_fast_install=no
13155
 
elif test "$shlibpath_overrides_runpath" = yes ||
13156
 
     test "$enable_shared" = no; then
13157
 
  # Fast installation is not necessary
13158
 
  enable_fast_install=needless
13159
 
fi
13160
 
 
13161
 
striplib=
13162
 
old_striplib=
13163
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13164
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13165
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13166
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13167
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13168
 
  echo "$as_me:$LINENO: result: yes" >&5
13169
 
echo "${ECHO_T}yes" >&6
13170
 
else
13171
 
# FIXME - insert some real tests, host_os isn't really good enough
13172
 
  case $host_os in
13173
 
   darwin*)
13174
 
       if test -n "$STRIP" ; then
13175
 
         striplib="$STRIP -x"
13176
 
         echo "$as_me:$LINENO: result: yes" >&5
13177
 
echo "${ECHO_T}yes" >&6
13178
 
       else
13179
 
  echo "$as_me:$LINENO: result: no" >&5
13180
 
echo "${ECHO_T}no" >&6
13181
 
fi
13182
 
       ;;
13183
 
   *)
13184
 
  echo "$as_me:$LINENO: result: no" >&5
13185
 
echo "${ECHO_T}no" >&6
13186
 
    ;;
13187
 
  esac
13188
 
fi
13189
 
 
13190
 
if test "x$enable_dlopen" != xyes; then
13191
 
  enable_dlopen=unknown
13192
 
  enable_dlopen_self=unknown
13193
 
  enable_dlopen_self_static=unknown
13194
 
else
13195
 
  lt_cv_dlopen=no
13196
 
  lt_cv_dlopen_libs=
13197
 
 
13198
 
  case $host_os in
13199
 
  beos*)
13200
 
    lt_cv_dlopen="load_add_on"
13201
 
    lt_cv_dlopen_libs=
13202
 
    lt_cv_dlopen_self=yes
13203
 
    ;;
13204
 
 
13205
 
  mingw* | pw32*)
13206
 
    lt_cv_dlopen="LoadLibrary"
13207
 
    lt_cv_dlopen_libs=
13208
 
   ;;
13209
 
 
13210
 
  cygwin*)
13211
 
    lt_cv_dlopen="dlopen"
13212
 
    lt_cv_dlopen_libs=
13213
 
   ;;
13214
 
 
13215
 
  darwin*)
13216
 
  # if libdl is installed we need to link against it
13217
 
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13218
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13219
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13220
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13221
 
else
13222
 
  ac_check_lib_save_LIBS=$LIBS
13223
 
LIBS="-ldl  $LIBS"
13224
 
cat >conftest.$ac_ext <<_ACEOF
13225
 
/* confdefs.h.  */
13226
 
_ACEOF
13227
 
cat confdefs.h >>conftest.$ac_ext
13228
 
cat >>conftest.$ac_ext <<_ACEOF
13229
 
/* end confdefs.h.  */
13230
 
 
13231
 
/* Override any gcc2 internal prototype to avoid an error.  */
13232
 
#ifdef __cplusplus
13233
 
extern "C"
13234
 
#endif
13235
 
/* We use char because int might match the return type of a gcc2
13236
 
   builtin and then its argument prototype would still apply.  */
13237
 
char dlopen ();
13238
 
int
13239
 
main ()
13240
 
{
13241
 
dlopen ();
13242
 
  ;
13243
 
  return 0;
13244
 
}
13245
 
_ACEOF
13246
 
rm -f conftest.$ac_objext conftest$ac_exeext
13247
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13248
 
  (eval $ac_link) 2>conftest.er1
13249
 
  ac_status=$?
13250
 
  grep -v '^ *+' conftest.er1 >conftest.err
13251
 
  rm -f conftest.er1
13252
 
  cat conftest.err >&5
13253
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254
 
  (exit $ac_status); } &&
13255
 
         { ac_try='test -z "$ac_cxx_werror_flag"
13256
 
                         || test ! -s conftest.err'
13257
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13258
 
  (eval $ac_try) 2>&5
13259
 
  ac_status=$?
13260
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261
 
  (exit $ac_status); }; } &&
13262
 
         { ac_try='test -s conftest$ac_exeext'
13263
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13264
 
  (eval $ac_try) 2>&5
13265
 
  ac_status=$?
13266
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267
 
  (exit $ac_status); }; }; then
13268
 
  ac_cv_lib_dl_dlopen=yes
13269
 
else
13270
 
  echo "$as_me: failed program was:" >&5
13271
 
sed 's/^/| /' conftest.$ac_ext >&5
13272
 
 
13273
 
ac_cv_lib_dl_dlopen=no
13274
 
fi
13275
 
rm -f conftest.err conftest.$ac_objext \
13276
 
      conftest$ac_exeext conftest.$ac_ext
13277
 
LIBS=$ac_check_lib_save_LIBS
13278
 
fi
13279
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13280
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13281
 
if test $ac_cv_lib_dl_dlopen = yes; then
13282
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13283
 
else
13284
 
  
13285
 
    lt_cv_dlopen="dyld"
13286
 
    lt_cv_dlopen_libs=
13287
 
    lt_cv_dlopen_self=yes
13288
 
    
13289
 
fi
13290
 
 
13291
 
   ;;
13292
 
 
13293
 
  *)
13294
 
    echo "$as_me:$LINENO: checking for shl_load" >&5
13295
 
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13296
 
if test "${ac_cv_func_shl_load+set}" = set; then
13297
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13298
 
else
13299
 
  cat >conftest.$ac_ext <<_ACEOF
13300
 
/* confdefs.h.  */
13301
 
_ACEOF
13302
 
cat confdefs.h >>conftest.$ac_ext
13303
 
cat >>conftest.$ac_ext <<_ACEOF
13304
 
/* end confdefs.h.  */
13305
 
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13306
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13307
 
#define shl_load innocuous_shl_load
13308
 
 
13309
 
/* System header to define __stub macros and hopefully few prototypes,
13310
 
    which can conflict with char shl_load (); below.
13311
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13312
 
    <limits.h> exists even on freestanding compilers.  */
13313
 
 
13314
 
#ifdef __STDC__
13315
 
# include <limits.h>
13316
 
#else
13317
 
# include <assert.h>
13318
 
#endif
13319
 
 
13320
 
#undef shl_load
13321
 
 
13322
 
/* Override any gcc2 internal prototype to avoid an error.  */
13323
 
#ifdef __cplusplus
13324
 
extern "C"
13325
 
{
13326
 
#endif
13327
 
/* We use char because int might match the return type of a gcc2
13328
 
   builtin and then its argument prototype would still apply.  */
13329
 
char shl_load ();
13330
 
/* The GNU C library defines this for functions which it implements
13331
 
    to always fail with ENOSYS.  Some functions are actually named
13332
 
    something starting with __ and the normal name is an alias.  */
13333
 
#if defined (__stub_shl_load) || defined (__stub___shl_load)
13334
 
choke me
13335
 
#else
13336
 
char (*f) () = shl_load;
13337
 
#endif
13338
 
#ifdef __cplusplus
13339
 
}
13340
 
#endif
13341
 
 
13342
 
int
13343
 
main ()
13344
 
{
13345
 
return f != shl_load;
13346
 
  ;
13347
 
  return 0;
13348
 
}
13349
 
_ACEOF
13350
 
rm -f conftest.$ac_objext conftest$ac_exeext
13351
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13352
 
  (eval $ac_link) 2>conftest.er1
13353
 
  ac_status=$?
13354
 
  grep -v '^ *+' conftest.er1 >conftest.err
13355
 
  rm -f conftest.er1
13356
 
  cat conftest.err >&5
13357
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13358
 
  (exit $ac_status); } &&
13359
 
         { ac_try='test -z "$ac_cxx_werror_flag"
13360
 
                         || test ! -s conftest.err'
13361
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13362
 
  (eval $ac_try) 2>&5
13363
 
  ac_status=$?
13364
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13365
 
  (exit $ac_status); }; } &&
13366
 
         { ac_try='test -s conftest$ac_exeext'
13367
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13368
 
  (eval $ac_try) 2>&5
13369
 
  ac_status=$?
13370
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371
 
  (exit $ac_status); }; }; then
13372
 
  ac_cv_func_shl_load=yes
13373
 
else
13374
 
  echo "$as_me: failed program was:" >&5
13375
 
sed 's/^/| /' conftest.$ac_ext >&5
13376
 
 
13377
 
ac_cv_func_shl_load=no
13378
 
fi
13379
 
rm -f conftest.err conftest.$ac_objext \
13380
 
      conftest$ac_exeext conftest.$ac_ext
13381
 
fi
13382
 
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13383
 
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13384
 
if test $ac_cv_func_shl_load = yes; then
13385
 
  lt_cv_dlopen="shl_load"
13386
 
else
13387
 
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13388
 
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13389
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13390
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13391
 
else
13392
 
  ac_check_lib_save_LIBS=$LIBS
13393
 
LIBS="-ldld  $LIBS"
13394
 
cat >conftest.$ac_ext <<_ACEOF
13395
 
/* confdefs.h.  */
13396
 
_ACEOF
13397
 
cat confdefs.h >>conftest.$ac_ext
13398
 
cat >>conftest.$ac_ext <<_ACEOF
13399
 
/* end confdefs.h.  */
13400
 
 
13401
 
/* Override any gcc2 internal prototype to avoid an error.  */
13402
 
#ifdef __cplusplus
13403
 
extern "C"
13404
 
#endif
13405
 
/* We use char because int might match the return type of a gcc2
13406
 
   builtin and then its argument prototype would still apply.  */
13407
 
char shl_load ();
13408
 
int
13409
 
main ()
13410
 
{
13411
 
shl_load ();
13412
 
  ;
13413
 
  return 0;
13414
 
}
13415
 
_ACEOF
13416
 
rm -f conftest.$ac_objext conftest$ac_exeext
13417
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13418
 
  (eval $ac_link) 2>conftest.er1
13419
 
  ac_status=$?
13420
 
  grep -v '^ *+' conftest.er1 >conftest.err
13421
 
  rm -f conftest.er1
13422
 
  cat conftest.err >&5
13423
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13424
 
  (exit $ac_status); } &&
13425
 
         { ac_try='test -z "$ac_cxx_werror_flag"
13426
 
                         || test ! -s conftest.err'
13427
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13428
 
  (eval $ac_try) 2>&5
13429
 
  ac_status=$?
13430
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431
 
  (exit $ac_status); }; } &&
13432
 
         { ac_try='test -s conftest$ac_exeext'
13433
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13434
 
  (eval $ac_try) 2>&5
13435
 
  ac_status=$?
13436
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437
 
  (exit $ac_status); }; }; then
13438
 
  ac_cv_lib_dld_shl_load=yes
13439
 
else
13440
 
  echo "$as_me: failed program was:" >&5
13441
 
sed 's/^/| /' conftest.$ac_ext >&5
13442
 
 
13443
 
ac_cv_lib_dld_shl_load=no
13444
 
fi
13445
 
rm -f conftest.err conftest.$ac_objext \
13446
 
      conftest$ac_exeext conftest.$ac_ext
13447
 
LIBS=$ac_check_lib_save_LIBS
13448
 
fi
13449
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13450
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13451
 
if test $ac_cv_lib_dld_shl_load = yes; then
13452
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13453
 
else
13454
 
  echo "$as_me:$LINENO: checking for dlopen" >&5
13455
 
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13456
 
if test "${ac_cv_func_dlopen+set}" = set; then
13457
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13458
 
else
13459
 
  cat >conftest.$ac_ext <<_ACEOF
13460
 
/* confdefs.h.  */
13461
 
_ACEOF
13462
 
cat confdefs.h >>conftest.$ac_ext
13463
 
cat >>conftest.$ac_ext <<_ACEOF
13464
 
/* end confdefs.h.  */
13465
 
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13466
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13467
 
#define dlopen innocuous_dlopen
13468
 
 
13469
 
/* System header to define __stub macros and hopefully few prototypes,
13470
 
    which can conflict with char dlopen (); below.
13471
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13472
 
    <limits.h> exists even on freestanding compilers.  */
13473
 
 
13474
 
#ifdef __STDC__
13475
 
# include <limits.h>
13476
 
#else
13477
 
# include <assert.h>
13478
 
#endif
13479
 
 
13480
 
#undef dlopen
13481
 
 
13482
 
/* Override any gcc2 internal prototype to avoid an error.  */
13483
 
#ifdef __cplusplus
13484
 
extern "C"
13485
 
{
13486
 
#endif
13487
 
/* We use char because int might match the return type of a gcc2
13488
 
   builtin and then its argument prototype would still apply.  */
13489
 
char dlopen ();
13490
 
/* The GNU C library defines this for functions which it implements
13491
 
    to always fail with ENOSYS.  Some functions are actually named
13492
 
    something starting with __ and the normal name is an alias.  */
13493
 
#if defined (__stub_dlopen) || defined (__stub___dlopen)
13494
 
choke me
13495
 
#else
13496
 
char (*f) () = dlopen;
13497
 
#endif
13498
 
#ifdef __cplusplus
13499
 
}
13500
 
#endif
13501
 
 
13502
 
int
13503
 
main ()
13504
 
{
13505
 
return f != dlopen;
13506
 
  ;
13507
 
  return 0;
13508
 
}
13509
 
_ACEOF
13510
 
rm -f conftest.$ac_objext conftest$ac_exeext
13511
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13512
 
  (eval $ac_link) 2>conftest.er1
13513
 
  ac_status=$?
13514
 
  grep -v '^ *+' conftest.er1 >conftest.err
13515
 
  rm -f conftest.er1
13516
 
  cat conftest.err >&5
13517
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13518
 
  (exit $ac_status); } &&
13519
 
         { ac_try='test -z "$ac_cxx_werror_flag"
13520
 
                         || test ! -s conftest.err'
13521
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13522
 
  (eval $ac_try) 2>&5
13523
 
  ac_status=$?
13524
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525
 
  (exit $ac_status); }; } &&
13526
 
         { ac_try='test -s conftest$ac_exeext'
13527
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13528
 
  (eval $ac_try) 2>&5
13529
 
  ac_status=$?
13530
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531
 
  (exit $ac_status); }; }; then
13532
 
  ac_cv_func_dlopen=yes
13533
 
else
13534
 
  echo "$as_me: failed program was:" >&5
13535
 
sed 's/^/| /' conftest.$ac_ext >&5
13536
 
 
13537
 
ac_cv_func_dlopen=no
13538
 
fi
13539
 
rm -f conftest.err conftest.$ac_objext \
13540
 
      conftest$ac_exeext conftest.$ac_ext
13541
 
fi
13542
 
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13543
 
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13544
 
if test $ac_cv_func_dlopen = yes; then
13545
 
  lt_cv_dlopen="dlopen"
13546
 
else
13547
 
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13548
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13549
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13550
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13551
 
else
13552
 
  ac_check_lib_save_LIBS=$LIBS
13553
 
LIBS="-ldl  $LIBS"
13554
 
cat >conftest.$ac_ext <<_ACEOF
13555
 
/* confdefs.h.  */
13556
 
_ACEOF
13557
 
cat confdefs.h >>conftest.$ac_ext
13558
 
cat >>conftest.$ac_ext <<_ACEOF
13559
 
/* end confdefs.h.  */
13560
 
 
13561
 
/* Override any gcc2 internal prototype to avoid an error.  */
13562
 
#ifdef __cplusplus
13563
 
extern "C"
13564
 
#endif
13565
 
/* We use char because int might match the return type of a gcc2
13566
 
   builtin and then its argument prototype would still apply.  */
13567
 
char dlopen ();
13568
 
int
13569
 
main ()
13570
 
{
13571
 
dlopen ();
13572
 
  ;
13573
 
  return 0;
13574
 
}
13575
 
_ACEOF
13576
 
rm -f conftest.$ac_objext conftest$ac_exeext
13577
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13578
 
  (eval $ac_link) 2>conftest.er1
13579
 
  ac_status=$?
13580
 
  grep -v '^ *+' conftest.er1 >conftest.err
13581
 
  rm -f conftest.er1
13582
 
  cat conftest.err >&5
13583
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584
 
  (exit $ac_status); } &&
13585
 
         { ac_try='test -z "$ac_cxx_werror_flag"
13586
 
                         || test ! -s conftest.err'
13587
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13588
 
  (eval $ac_try) 2>&5
13589
 
  ac_status=$?
13590
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591
 
  (exit $ac_status); }; } &&
13592
 
         { ac_try='test -s conftest$ac_exeext'
13593
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13594
 
  (eval $ac_try) 2>&5
13595
 
  ac_status=$?
13596
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597
 
  (exit $ac_status); }; }; then
13598
 
  ac_cv_lib_dl_dlopen=yes
13599
 
else
13600
 
  echo "$as_me: failed program was:" >&5
13601
 
sed 's/^/| /' conftest.$ac_ext >&5
13602
 
 
13603
 
ac_cv_lib_dl_dlopen=no
13604
 
fi
13605
 
rm -f conftest.err conftest.$ac_objext \
13606
 
      conftest$ac_exeext conftest.$ac_ext
13607
 
LIBS=$ac_check_lib_save_LIBS
13608
 
fi
13609
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13610
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13611
 
if test $ac_cv_lib_dl_dlopen = yes; then
13612
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13613
 
else
13614
 
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13615
 
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13616
 
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13617
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13618
 
else
13619
 
  ac_check_lib_save_LIBS=$LIBS
13620
 
LIBS="-lsvld  $LIBS"
13621
 
cat >conftest.$ac_ext <<_ACEOF
13622
 
/* confdefs.h.  */
13623
 
_ACEOF
13624
 
cat confdefs.h >>conftest.$ac_ext
13625
 
cat >>conftest.$ac_ext <<_ACEOF
13626
 
/* end confdefs.h.  */
13627
 
 
13628
 
/* Override any gcc2 internal prototype to avoid an error.  */
13629
 
#ifdef __cplusplus
13630
 
extern "C"
13631
 
#endif
13632
 
/* We use char because int might match the return type of a gcc2
13633
 
   builtin and then its argument prototype would still apply.  */
13634
 
char dlopen ();
13635
 
int
13636
 
main ()
13637
 
{
13638
 
dlopen ();
13639
 
  ;
13640
 
  return 0;
13641
 
}
13642
 
_ACEOF
13643
 
rm -f conftest.$ac_objext conftest$ac_exeext
13644
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13645
 
  (eval $ac_link) 2>conftest.er1
13646
 
  ac_status=$?
13647
 
  grep -v '^ *+' conftest.er1 >conftest.err
13648
 
  rm -f conftest.er1
13649
 
  cat conftest.err >&5
13650
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13651
 
  (exit $ac_status); } &&
13652
 
         { ac_try='test -z "$ac_cxx_werror_flag"
13653
 
                         || test ! -s conftest.err'
13654
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13655
 
  (eval $ac_try) 2>&5
13656
 
  ac_status=$?
13657
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658
 
  (exit $ac_status); }; } &&
13659
 
         { ac_try='test -s conftest$ac_exeext'
13660
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13661
 
  (eval $ac_try) 2>&5
13662
 
  ac_status=$?
13663
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664
 
  (exit $ac_status); }; }; then
13665
 
  ac_cv_lib_svld_dlopen=yes
13666
 
else
13667
 
  echo "$as_me: failed program was:" >&5
13668
 
sed 's/^/| /' conftest.$ac_ext >&5
13669
 
 
13670
 
ac_cv_lib_svld_dlopen=no
13671
 
fi
13672
 
rm -f conftest.err conftest.$ac_objext \
13673
 
      conftest$ac_exeext conftest.$ac_ext
13674
 
LIBS=$ac_check_lib_save_LIBS
13675
 
fi
13676
 
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13677
 
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
13678
 
if test $ac_cv_lib_svld_dlopen = yes; then
13679
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13680
 
else
13681
 
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13682
 
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
13683
 
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13684
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13685
 
else
13686
 
  ac_check_lib_save_LIBS=$LIBS
13687
 
LIBS="-ldld  $LIBS"
13688
 
cat >conftest.$ac_ext <<_ACEOF
13689
 
/* confdefs.h.  */
13690
 
_ACEOF
13691
 
cat confdefs.h >>conftest.$ac_ext
13692
 
cat >>conftest.$ac_ext <<_ACEOF
13693
 
/* end confdefs.h.  */
13694
 
 
13695
 
/* Override any gcc2 internal prototype to avoid an error.  */
13696
 
#ifdef __cplusplus
13697
 
extern "C"
13698
 
#endif
13699
 
/* We use char because int might match the return type of a gcc2
13700
 
   builtin and then its argument prototype would still apply.  */
13701
 
char dld_link ();
13702
 
int
13703
 
main ()
13704
 
{
13705
 
dld_link ();
13706
 
  ;
13707
 
  return 0;
13708
 
}
13709
 
_ACEOF
13710
 
rm -f conftest.$ac_objext conftest$ac_exeext
13711
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13712
 
  (eval $ac_link) 2>conftest.er1
13713
 
  ac_status=$?
13714
 
  grep -v '^ *+' conftest.er1 >conftest.err
13715
 
  rm -f conftest.er1
13716
 
  cat conftest.err >&5
13717
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718
 
  (exit $ac_status); } &&
13719
 
         { ac_try='test -z "$ac_cxx_werror_flag"
13720
 
                         || test ! -s conftest.err'
13721
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13722
 
  (eval $ac_try) 2>&5
13723
 
  ac_status=$?
13724
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725
 
  (exit $ac_status); }; } &&
13726
 
         { ac_try='test -s conftest$ac_exeext'
13727
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13728
 
  (eval $ac_try) 2>&5
13729
 
  ac_status=$?
13730
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731
 
  (exit $ac_status); }; }; then
13732
 
  ac_cv_lib_dld_dld_link=yes
13733
 
else
13734
 
  echo "$as_me: failed program was:" >&5
13735
 
sed 's/^/| /' conftest.$ac_ext >&5
13736
 
 
13737
 
ac_cv_lib_dld_dld_link=no
13738
 
fi
13739
 
rm -f conftest.err conftest.$ac_objext \
13740
 
      conftest$ac_exeext conftest.$ac_ext
13741
 
LIBS=$ac_check_lib_save_LIBS
13742
 
fi
13743
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13744
 
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
13745
 
if test $ac_cv_lib_dld_dld_link = yes; then
13746
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13747
 
fi
13748
 
 
13749
 
              
13750
 
fi
13751
 
 
13752
 
            
13753
 
fi
13754
 
 
13755
 
          
13756
 
fi
13757
 
 
13758
 
        
13759
 
fi
13760
 
 
13761
 
      
13762
 
fi
13763
 
 
13764
 
    ;;
13765
 
  esac
13766
 
 
13767
 
  if test "x$lt_cv_dlopen" != xno; then
13768
 
    enable_dlopen=yes
13769
 
  else
13770
 
    enable_dlopen=no
13771
 
  fi
13772
 
 
13773
 
  case $lt_cv_dlopen in
13774
 
  dlopen)
13775
 
    save_CPPFLAGS="$CPPFLAGS"
13776
 
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13777
 
 
13778
 
    save_LDFLAGS="$LDFLAGS"
13779
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13780
 
 
13781
 
    save_LIBS="$LIBS"
13782
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
13783
 
 
13784
 
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13785
 
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
13786
 
if test "${lt_cv_dlopen_self+set}" = set; then
13787
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13788
 
else
13789
 
          if test "$cross_compiling" = yes; then :
13790
 
  lt_cv_dlopen_self=cross
13791
 
else
13792
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13793
 
  lt_status=$lt_dlunknown
13794
 
  cat > conftest.$ac_ext <<EOF
13795
 
#line __oline__ "configure"
13796
 
#include "confdefs.h"
13797
 
 
13798
 
#if HAVE_DLFCN_H
13799
 
#include <dlfcn.h>
13800
 
#endif
13801
 
 
13802
 
#include <stdio.h>
13803
 
 
13804
 
#ifdef RTLD_GLOBAL
13805
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
13806
 
#else
13807
 
#  ifdef DL_GLOBAL
13808
 
#    define LT_DLGLOBAL         DL_GLOBAL
13809
 
#  else
13810
 
#    define LT_DLGLOBAL         0
13811
 
#  endif
13812
 
#endif
13813
 
 
13814
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13815
 
   find out it does not work in some platform. */
13816
 
#ifndef LT_DLLAZY_OR_NOW
13817
 
#  ifdef RTLD_LAZY
13818
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13819
 
#  else
13820
 
#    ifdef DL_LAZY
13821
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
13822
 
#    else
13823
 
#      ifdef RTLD_NOW
13824
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
13825
 
#      else
13826
 
#        ifdef DL_NOW
13827
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
13828
 
#        else
13829
 
#          define LT_DLLAZY_OR_NOW      0
13830
 
#        endif
13831
 
#      endif
13832
 
#    endif
13833
 
#  endif
13834
 
#endif
13835
 
 
13836
 
#ifdef __cplusplus
13837
 
extern "C" void exit (int);
13838
 
#endif
13839
 
 
13840
 
void fnord() { int i=42;}
13841
 
int main ()
13842
 
{
13843
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13844
 
  int status = $lt_dlunknown;
13845
 
 
13846
 
  if (self)
13847
 
    {
13848
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13849
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13850
 
      /* dlclose (self); */
13851
 
    }
13852
 
 
13853
 
    exit (status);
13854
 
}
13855
 
EOF
13856
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13857
 
  (eval $ac_link) 2>&5
13858
 
  ac_status=$?
13859
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13861
 
    (./conftest; exit; ) 2>/dev/null
13862
 
    lt_status=$?
13863
 
    case x$lt_status in
13864
 
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13865
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13866
 
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13867
 
    esac
13868
 
  else :
13869
 
    # compilation failed
13870
 
    lt_cv_dlopen_self=no
13871
 
  fi
13872
 
fi
13873
 
rm -fr conftest*
13874
 
 
13875
 
    
13876
 
fi
13877
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13878
 
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
13879
 
 
13880
 
    if test "x$lt_cv_dlopen_self" = xyes; then
13881
 
      LDFLAGS="$LDFLAGS $link_static_flag"
13882
 
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13883
 
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
13884
 
if test "${lt_cv_dlopen_self_static+set}" = set; then
13885
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
13886
 
else
13887
 
          if test "$cross_compiling" = yes; then :
13888
 
  lt_cv_dlopen_self_static=cross
13889
 
else
13890
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13891
 
  lt_status=$lt_dlunknown
13892
 
  cat > conftest.$ac_ext <<EOF
13893
 
#line __oline__ "configure"
13894
 
#include "confdefs.h"
13895
 
 
13896
 
#if HAVE_DLFCN_H
13897
 
#include <dlfcn.h>
13898
 
#endif
13899
 
 
13900
 
#include <stdio.h>
13901
 
 
13902
 
#ifdef RTLD_GLOBAL
13903
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
13904
 
#else
13905
 
#  ifdef DL_GLOBAL
13906
 
#    define LT_DLGLOBAL         DL_GLOBAL
13907
 
#  else
13908
 
#    define LT_DLGLOBAL         0
13909
 
#  endif
13910
 
#endif
13911
 
 
13912
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13913
 
   find out it does not work in some platform. */
13914
 
#ifndef LT_DLLAZY_OR_NOW
13915
 
#  ifdef RTLD_LAZY
13916
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13917
 
#  else
13918
 
#    ifdef DL_LAZY
13919
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
13920
 
#    else
13921
 
#      ifdef RTLD_NOW
13922
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
13923
 
#      else
13924
 
#        ifdef DL_NOW
13925
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
13926
 
#        else
13927
 
#          define LT_DLLAZY_OR_NOW      0
13928
 
#        endif
13929
 
#      endif
13930
 
#    endif
13931
 
#  endif
13932
 
#endif
13933
 
 
13934
 
#ifdef __cplusplus
13935
 
extern "C" void exit (int);
13936
 
#endif
13937
 
 
13938
 
void fnord() { int i=42;}
13939
 
int main ()
13940
 
{
13941
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13942
 
  int status = $lt_dlunknown;
13943
 
 
13944
 
  if (self)
13945
 
    {
13946
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13947
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13948
 
      /* dlclose (self); */
13949
 
    }
13950
 
 
13951
 
    exit (status);
13952
 
}
13953
 
EOF
13954
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13955
 
  (eval $ac_link) 2>&5
13956
 
  ac_status=$?
13957
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13959
 
    (./conftest; exit; ) 2>/dev/null
13960
 
    lt_status=$?
13961
 
    case x$lt_status in
13962
 
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13963
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13964
 
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13965
 
    esac
13966
 
  else :
13967
 
    # compilation failed
13968
 
    lt_cv_dlopen_self_static=no
13969
 
  fi
13970
 
fi
13971
 
rm -fr conftest*
13972
 
 
13973
 
      
13974
 
fi
13975
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13976
 
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
13977
 
    fi
13978
 
 
13979
 
    CPPFLAGS="$save_CPPFLAGS"
13980
 
    LDFLAGS="$save_LDFLAGS"
13981
 
    LIBS="$save_LIBS"
13982
 
    ;;
13983
 
  esac
13984
 
 
13985
 
  case $lt_cv_dlopen_self in
13986
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13987
 
  *) enable_dlopen_self=unknown ;;
13988
 
  esac
13989
 
 
13990
 
  case $lt_cv_dlopen_self_static in
13991
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13992
 
  *) enable_dlopen_self_static=unknown ;;
13993
 
  esac
13994
 
fi
13995
 
 
13996
 
 
13997
 
# The else clause should only fire when bootstrapping the
13998
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
13999
 
# with your package, and you will get complaints that there are
14000
 
# no rules to generate ltmain.sh.
14001
 
if test -f "$ltmain"; then
14002
 
  # See if we are running on zsh, and set the options which allow our commands through
14003
 
  # without removal of \ escapes.
14004
 
  if test -n "${ZSH_VERSION+set}" ; then
14005
 
    setopt NO_GLOB_SUBST
14006
 
  fi
14007
 
  # Now quote all the things that may contain metacharacters while being
14008
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
14009
 
  # variables and quote the copies for generation of the libtool script.
14010
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS AS EGREP RANLIB LN_S LTCC NM \
14011
 
    SED SHELL STRIP \
14012
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14013
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14014
 
    deplibs_check_method reload_flag reload_cmds need_locks \
14015
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14016
 
    lt_cv_sys_global_symbol_to_c_name_address \
14017
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14018
 
    old_postinstall_cmds old_postuninstall_cmds \
14019
 
    compiler_CXX \
14020
 
    CC_CXX \
14021
 
    LD_CXX \
14022
 
    lt_prog_compiler_wl_CXX \
14023
 
    lt_prog_compiler_pic_CXX \
14024
 
    lt_prog_compiler_static_CXX \
14025
 
    lt_prog_compiler_no_builtin_flag_CXX \
14026
 
    export_dynamic_flag_spec_CXX \
14027
 
    thread_safe_flag_spec_CXX \
14028
 
    whole_archive_flag_spec_CXX \
14029
 
    enable_shared_with_static_runtimes_CXX \
14030
 
    old_archive_cmds_CXX \
14031
 
    old_archive_from_new_cmds_CXX \
14032
 
    predep_objects_CXX \
14033
 
    postdep_objects_CXX \
14034
 
    predeps_CXX \
14035
 
    postdeps_CXX \
14036
 
    compiler_lib_search_path_CXX \
14037
 
    archive_cmds_CXX \
14038
 
    archive_expsym_cmds_CXX \
14039
 
    postinstall_cmds_CXX \
14040
 
    postuninstall_cmds_CXX \
14041
 
    old_archive_from_expsyms_cmds_CXX \
14042
 
    allow_undefined_flag_CXX \
14043
 
    no_undefined_flag_CXX \
14044
 
    export_symbols_cmds_CXX \
14045
 
    hardcode_libdir_flag_spec_CXX \
14046
 
    hardcode_libdir_flag_spec_ld_CXX \
14047
 
    hardcode_libdir_separator_CXX \
14048
 
    hardcode_automatic_CXX \
14049
 
    module_cmds_CXX \
14050
 
    module_expsym_cmds_CXX \
14051
 
    lt_cv_prog_compiler_c_o_CXX \
14052
 
    exclude_expsyms_CXX \
14053
 
    include_expsyms_CXX; do
14054
 
 
14055
 
    case $var in
14056
 
    old_archive_cmds_CXX | \
14057
 
    old_archive_from_new_cmds_CXX | \
14058
 
    archive_cmds_CXX | \
14059
 
    archive_expsym_cmds_CXX | \
14060
 
    module_cmds_CXX | \
14061
 
    module_expsym_cmds_CXX | \
14062
 
    old_archive_from_expsyms_cmds_CXX | \
14063
 
    export_symbols_cmds_CXX | \
14064
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
14065
 
    postinstall_cmds | postuninstall_cmds | \
14066
 
    old_postinstall_cmds | old_postuninstall_cmds | \
14067
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14068
 
      # Double-quote double-evaled strings.
14069
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14070
 
      ;;
14071
 
    *)
14072
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14073
 
      ;;
14074
 
    esac
14075
 
  done
14076
 
 
14077
 
  case $lt_echo in
14078
 
  *'\$0 --fallback-echo"')
14079
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14080
 
    ;;
14081
 
  esac
14082
 
 
14083
 
cfgfile="$ofile"
14084
 
 
14085
 
  cat <<__EOF__ >> "$cfgfile"
14086
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14087
 
 
14088
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14089
 
 
14090
 
# Shell to use when invoking shell scripts.
14091
 
SHELL=$lt_SHELL
14092
 
 
14093
 
# Whether or not to build shared libraries.
14094
 
build_libtool_libs=$enable_shared
14095
 
 
14096
 
# Whether or not to build static libraries.
14097
 
build_old_libs=$enable_static
14098
 
 
14099
 
# Whether or not to add -lc for building shared libraries.
14100
 
build_libtool_need_lc=$archive_cmds_need_lc_CXX
14101
 
 
14102
 
# Whether or not to disallow shared libs when runtime libs are static
14103
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14104
 
 
14105
 
# Whether or not to optimize for fast installation.
14106
 
fast_install=$enable_fast_install
14107
 
 
14108
 
# The host system.
14109
 
host_alias=$host_alias
14110
 
host=$host
14111
 
host_os=$host_os
14112
 
 
14113
 
# The build system.
14114
 
build_alias=$build_alias
14115
 
build=$build
14116
 
build_os=$build_os
14117
 
 
14118
 
# An echo program that does not interpret backslashes.
14119
 
echo=$lt_echo
14120
 
 
14121
 
# The archiver.
14122
 
AR=$lt_AR
14123
 
AR_FLAGS=$lt_AR_FLAGS
14124
 
 
14125
 
# A C compiler.
14126
 
LTCC=$lt_LTCC
14127
 
 
14128
 
# A language-specific compiler.
14129
 
CC=$lt_compiler_CXX
14130
 
 
14131
 
# Is the compiler the GNU C compiler?
14132
 
with_gcc=$GCC_CXX
14133
 
 
14134
 
# An ERE matcher.
14135
 
EGREP=$lt_EGREP
14136
 
 
14137
 
# The linker used to build libraries.
14138
 
LD=$lt_LD_CXX
14139
 
 
14140
 
# Whether we need hard or soft links.
14141
 
LN_S=$lt_LN_S
14142
 
 
14143
 
# A BSD-compatible nm program.
14144
 
NM=$lt_NM
14145
 
 
14146
 
# A symbol stripping program
14147
 
STRIP=$lt_STRIP
14148
 
 
14149
 
# Used to examine libraries when file_magic_cmd begins "file"
14150
 
MAGIC_CMD=$MAGIC_CMD
14151
 
 
14152
 
# Used on cygwin: DLL creation program.
14153
 
DLLTOOL="$DLLTOOL"
14154
 
 
14155
 
# Used on cygwin: object dumper.
14156
 
OBJDUMP="$OBJDUMP"
14157
 
 
14158
 
# Used on cygwin: assembler.
14159
 
AS=$lt_AS
14160
 
 
14161
 
# The name of the directory that contains temporary libtool files.
14162
 
objdir=$objdir
14163
 
 
14164
 
# How to create reloadable object files.
14165
 
reload_flag=$lt_reload_flag
14166
 
reload_cmds=$lt_reload_cmds
14167
 
 
14168
 
# How to pass a linker flag through the compiler.
14169
 
wl=$lt_lt_prog_compiler_wl_CXX
14170
 
 
14171
 
# Object file suffix (normally "o").
14172
 
objext="$ac_objext"
14173
 
 
14174
 
# Old archive suffix (normally "a").
14175
 
libext="$libext"
14176
 
 
14177
 
# Shared library suffix (normally ".so").
14178
 
shrext_cmds='$shrext_cmds'
14179
 
 
14180
 
# Executable file suffix (normally "").
14181
 
exeext="$exeext"
14182
 
 
14183
 
# Additional compiler flags for building library objects.
14184
 
pic_flag=$lt_lt_prog_compiler_pic_CXX
14185
 
pic_mode=$pic_mode
14186
 
 
14187
 
# What is the maximum length of a command?
14188
 
max_cmd_len=$lt_cv_sys_max_cmd_len
14189
 
 
14190
 
# Does compiler simultaneously support -c and -o options?
14191
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14192
 
 
14193
 
# Must we lock files when doing compilation ?
14194
 
need_locks=$lt_need_locks
14195
 
 
14196
 
# Do we need the lib prefix for modules?
14197
 
need_lib_prefix=$need_lib_prefix
14198
 
 
14199
 
# Do we need a version for libraries?
14200
 
need_version=$need_version
14201
 
 
14202
 
# Whether dlopen is supported.
14203
 
dlopen_support=$enable_dlopen
14204
 
 
14205
 
# Whether dlopen of programs is supported.
14206
 
dlopen_self=$enable_dlopen_self
14207
 
 
14208
 
# Whether dlopen of statically linked programs is supported.
14209
 
dlopen_self_static=$enable_dlopen_self_static
14210
 
 
14211
 
# Compiler flag to prevent dynamic linking.
14212
 
link_static_flag=$lt_lt_prog_compiler_static_CXX
14213
 
 
14214
 
# Compiler flag to turn off builtin functions.
14215
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14216
 
 
14217
 
# Compiler flag to allow reflexive dlopens.
14218
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14219
 
 
14220
 
# Compiler flag to generate shared objects directly from archives.
14221
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14222
 
 
14223
 
# Compiler flag to generate thread-safe objects.
14224
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14225
 
 
14226
 
# Library versioning type.
14227
 
version_type=$version_type
14228
 
 
14229
 
# Format of library name prefix.
14230
 
libname_spec=$lt_libname_spec
14231
 
 
14232
 
# List of archive names.  First name is the real one, the rest are links.
14233
 
# The last name is the one that the linker finds with -lNAME.
14234
 
library_names_spec=$lt_library_names_spec
14235
 
 
14236
 
# The coded name of the library, if different from the real name.
14237
 
soname_spec=$lt_soname_spec
14238
 
 
14239
 
# Commands used to build and install an old-style archive.
14240
 
RANLIB=$lt_RANLIB
14241
 
old_archive_cmds=$lt_old_archive_cmds_CXX
14242
 
old_postinstall_cmds=$lt_old_postinstall_cmds
14243
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14244
 
 
14245
 
# Create an old-style archive from a shared archive.
14246
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14247
 
 
14248
 
# Create a temporary old-style archive to link instead of a shared archive.
14249
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14250
 
 
14251
 
# Commands used to build and install a shared archive.
14252
 
archive_cmds=$lt_archive_cmds_CXX
14253
 
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14254
 
postinstall_cmds=$lt_postinstall_cmds
14255
 
postuninstall_cmds=$lt_postuninstall_cmds
14256
 
 
14257
 
# Commands used to build a loadable module (assumed same as above if empty)
14258
 
module_cmds=$lt_module_cmds_CXX
14259
 
module_expsym_cmds=$lt_module_expsym_cmds_CXX
14260
 
 
14261
 
# Commands to strip libraries.
14262
 
old_striplib=$lt_old_striplib
14263
 
striplib=$lt_striplib
14264
 
 
14265
 
# Dependencies to place before the objects being linked to create a
14266
 
# shared library.
14267
 
predep_objects=$lt_predep_objects_CXX
14268
 
 
14269
 
# Dependencies to place after the objects being linked to create a
14270
 
# shared library.
14271
 
postdep_objects=$lt_postdep_objects_CXX
14272
 
 
14273
 
# Dependencies to place before the objects being linked to create a
14274
 
# shared library.
14275
 
predeps=$lt_predeps_CXX
14276
 
 
14277
 
# Dependencies to place after the objects being linked to create a
14278
 
# shared library.
14279
 
postdeps=$lt_postdeps_CXX
14280
 
 
14281
 
# The library search path used internally by the compiler when linking
14282
 
# a shared library.
14283
 
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14284
 
 
14285
 
# Method to check whether dependent libraries are shared objects.
14286
 
deplibs_check_method=$lt_deplibs_check_method
14287
 
 
14288
 
# Command to use when deplibs_check_method == file_magic.
14289
 
file_magic_cmd=$lt_file_magic_cmd
14290
 
 
14291
 
# Flag that allows shared libraries with undefined symbols to be built.
14292
 
allow_undefined_flag=$lt_allow_undefined_flag_CXX
14293
 
 
14294
 
# Flag that forces no undefined symbols.
14295
 
no_undefined_flag=$lt_no_undefined_flag_CXX
14296
 
 
14297
 
# Commands used to finish a libtool library installation in a directory.
14298
 
finish_cmds=$lt_finish_cmds
14299
 
 
14300
 
# Same as above, but a single script fragment to be evaled but not shown.
14301
 
finish_eval=$lt_finish_eval
14302
 
 
14303
 
# Take the output of nm and produce a listing of raw symbols and C names.
14304
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14305
 
 
14306
 
# Transform the output of nm in a proper C declaration
14307
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14308
 
 
14309
 
# Transform the output of nm in a C name address pair
14310
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14311
 
 
14312
 
# This is the shared library runtime path variable.
14313
 
runpath_var=$runpath_var
14314
 
 
14315
 
# This is the shared library path variable.
14316
 
shlibpath_var=$shlibpath_var
14317
 
 
14318
 
# Is shlibpath searched before the hard-coded library search path?
14319
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14320
 
 
14321
 
# How to hardcode a shared library path into an executable.
14322
 
hardcode_action=$hardcode_action_CXX
14323
 
 
14324
 
# Whether we should hardcode library paths into libraries.
14325
 
hardcode_into_libs=$hardcode_into_libs
14326
 
 
14327
 
# Flag to hardcode \$libdir into a binary during linking.
14328
 
# This must work even if \$libdir does not exist.
14329
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14330
 
 
14331
 
# If ld is used when linking, flag to hardcode \$libdir into
14332
 
# a binary during linking. This must work even if \$libdir does
14333
 
# not exist.
14334
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14335
 
 
14336
 
# Whether we need a single -rpath flag with a separated argument.
14337
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14338
 
 
14339
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14340
 
# resulting binary.
14341
 
hardcode_direct=$hardcode_direct_CXX
14342
 
 
14343
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14344
 
# resulting binary.
14345
 
hardcode_minus_L=$hardcode_minus_L_CXX
14346
 
 
14347
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14348
 
# the resulting binary.
14349
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14350
 
 
14351
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
14352
 
# and all subsequent libraries and executables linked against it.
14353
 
hardcode_automatic=$hardcode_automatic_CXX
14354
 
 
14355
 
# Variables whose values should be saved in libtool wrapper scripts and
14356
 
# restored at relink time.
14357
 
variables_saved_for_relink="$variables_saved_for_relink"
14358
 
 
14359
 
# Whether libtool must link a program against all its dependency libraries.
14360
 
link_all_deplibs=$link_all_deplibs_CXX
14361
 
 
14362
 
# Compile-time system search path for libraries
14363
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14364
 
 
14365
 
# Run-time system search path for libraries
14366
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14367
 
 
14368
 
# Fix the shell variable \$srcfile for the compiler.
14369
 
fix_srcfile_path="$fix_srcfile_path_CXX"
14370
 
 
14371
 
# Set to yes if exported symbols are required.
14372
 
always_export_symbols=$always_export_symbols_CXX
14373
 
 
14374
 
# The commands to list exported symbols.
14375
 
export_symbols_cmds=$lt_export_symbols_cmds_CXX
14376
 
 
14377
 
# The commands to extract the exported symbol list from a shared archive.
14378
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14379
 
 
14380
 
# Symbols that should not be listed in the preloaded symbols.
14381
 
exclude_expsyms=$lt_exclude_expsyms_CXX
14382
 
 
14383
 
# Symbols that must always be exported.
14384
 
include_expsyms=$lt_include_expsyms_CXX
14385
 
 
14386
 
# ### END LIBTOOL TAG CONFIG: $tagname
14387
 
 
14388
 
__EOF__
14389
 
 
14390
 
 
14391
 
else
14392
 
  # If there is no Makefile yet, we rely on a make rule to execute
14393
 
  # `config.status --recheck' to rerun these tests and create the
14394
 
  # libtool script then.
14395
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14396
 
  if test -f "$ltmain_in"; then
14397
 
    test -f Makefile && make "$ltmain"
14398
 
  fi
14399
 
fi
14400
 
 
14401
 
 
14402
 
ac_ext=c
14403
 
ac_cpp='$CPP $CPPFLAGS'
14404
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14405
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14406
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14407
 
 
14408
 
CC=$lt_save_CC
14409
 
LDCXX=$LD
14410
 
LD=$lt_save_LD
14411
 
GCC=$lt_save_GCC
14412
 
with_gnu_ldcxx=$with_gnu_ld
14413
 
with_gnu_ld=$lt_save_with_gnu_ld
14414
 
lt_cv_path_LDCXX=$lt_cv_path_LD
14415
 
lt_cv_path_LD=$lt_save_path_LD
14416
 
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14417
 
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14418
 
 
14419
 
        else
14420
 
          tagname=""
14421
 
        fi
14422
 
        ;;
14423
 
 
14424
 
      F77)
14425
 
        if test -n "$F77" && test "X$F77" != "Xno"; then
14426
 
          
14427
 
ac_ext=f
14428
 
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14429
 
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14430
 
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14431
 
 
14432
 
 
14433
 
archive_cmds_need_lc_F77=no
14434
 
allow_undefined_flag_F77=
14435
 
always_export_symbols_F77=no
14436
 
archive_expsym_cmds_F77=
14437
 
export_dynamic_flag_spec_F77=
14438
 
hardcode_direct_F77=no
14439
 
hardcode_libdir_flag_spec_F77=
14440
 
hardcode_libdir_flag_spec_ld_F77=
14441
 
hardcode_libdir_separator_F77=
14442
 
hardcode_minus_L_F77=no
14443
 
hardcode_automatic_F77=no
14444
 
module_cmds_F77=
14445
 
module_expsym_cmds_F77=
14446
 
link_all_deplibs_F77=unknown
14447
 
old_archive_cmds_F77=$old_archive_cmds
14448
 
no_undefined_flag_F77=
14449
 
whole_archive_flag_spec_F77=
14450
 
enable_shared_with_static_runtimes_F77=no
14451
 
 
14452
 
# Source file extension for f77 test sources.
14453
 
ac_ext=f
14454
 
 
14455
 
# Object file extension for compiled f77 test sources.
14456
 
objext=o
14457
 
objext_F77=$objext
14458
 
 
14459
 
# Code to be used in simple compile tests
14460
 
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
14461
 
 
14462
 
# Code to be used in simple link tests
14463
 
lt_simple_link_test_code="      program t\n      end\n"
14464
 
 
14465
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14466
 
 
14467
 
# If no C compiler was specified, use CC.
14468
 
LTCC=${LTCC-"$CC"}
14469
 
 
14470
 
# Allow CC to be a program name with arguments.
14471
 
compiler=$CC
14472
 
 
14473
 
 
14474
 
# Allow CC to be a program name with arguments.
14475
 
lt_save_CC="$CC"
14476
 
CC=${F77-"f77"}
14477
 
compiler=$CC
14478
 
compiler_F77=$CC
14479
 
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
14480
 
 
14481
 
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14482
 
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14483
 
echo "$as_me:$LINENO: result: $can_build_shared" >&5
14484
 
echo "${ECHO_T}$can_build_shared" >&6
14485
 
 
14486
 
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14487
 
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14488
 
test "$can_build_shared" = "no" && enable_shared=no
14489
 
 
14490
 
# On AIX, shared libraries and static libraries use the same namespace, and
14491
 
# are all built from PIC.
14492
 
case "$host_os" in
14493
 
aix3*)
14494
 
  test "$enable_shared" = yes && enable_static=no
14495
 
  if test -n "$RANLIB"; then
14496
 
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
14497
 
    postinstall_cmds='$RANLIB $lib'
14498
 
  fi
14499
 
  ;;
14500
 
aix4* | aix5*)
14501
 
  test "$enable_shared" = yes && enable_static=no
14502
 
  ;;
14503
 
esac
14504
 
echo "$as_me:$LINENO: result: $enable_shared" >&5
14505
 
echo "${ECHO_T}$enable_shared" >&6
14506
 
 
14507
 
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14508
 
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14509
 
# Make sure either enable_shared or enable_static is yes.
14510
 
test "$enable_shared" = yes || enable_static=yes
14511
 
echo "$as_me:$LINENO: result: $enable_static" >&5
14512
 
echo "${ECHO_T}$enable_static" >&6
14513
 
 
14514
 
test "$ld_shlibs_F77" = no && can_build_shared=no
14515
 
 
14516
 
GCC_F77="$G77"
14517
 
LD_F77="$LD"
14518
 
 
14519
 
lt_prog_compiler_wl_F77=
14520
 
lt_prog_compiler_pic_F77=
14521
 
lt_prog_compiler_static_F77=
14522
 
 
14523
 
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14524
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14525
 
 
14526
 
  if test "$GCC" = yes; then
14527
 
    lt_prog_compiler_wl_F77='-Wl,'
14528
 
    lt_prog_compiler_static_F77='-static'
14529
 
 
14530
 
    case $host_os in
14531
 
      aix*)
14532
 
      # All AIX code is PIC.
14533
 
      if test "$host_cpu" = ia64; then
14534
 
        # AIX 5 now supports IA64 processor
14535
 
        lt_prog_compiler_static_F77='-Bstatic'
14536
 
      fi
14537
 
      ;;
14538
 
 
14539
 
    amigaos*)
14540
 
      # FIXME: we need at least 68020 code to build shared libraries, but
14541
 
      # adding the `-m68020' flag to GCC prevents building anything better,
14542
 
      # like `-m68040'.
14543
 
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14544
 
      ;;
14545
 
 
14546
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14547
 
      # PIC is the default for these OSes.
14548
 
      ;;
14549
 
 
14550
 
    mingw* | pw32* | os2*)
14551
 
      # This hack is so that the source file can tell whether it is being
14552
 
      # built for inclusion in a dll (and should export symbols for example).
14553
 
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14554
 
      ;;
14555
 
 
14556
 
    darwin* | rhapsody*)
14557
 
      # PIC is the default on this platform
14558
 
      # Common symbols not allowed in MH_DYLIB files
14559
 
      lt_prog_compiler_pic_F77='-fno-common'
14560
 
      ;;
14561
 
 
14562
 
    msdosdjgpp*)
14563
 
      # Just because we use GCC doesn't mean we suddenly get shared libraries
14564
 
      # on systems that don't support them.
14565
 
      lt_prog_compiler_can_build_shared_F77=no
14566
 
      enable_shared=no
14567
 
      ;;
14568
 
 
14569
 
    sysv4*MP*)
14570
 
      if test -d /usr/nec; then
14571
 
        lt_prog_compiler_pic_F77=-Kconform_pic
14572
 
      fi
14573
 
      ;;
14574
 
 
14575
 
    hpux*)
14576
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14577
 
      # not for PA HP-UX.
14578
 
      case "$host_cpu" in
14579
 
      hppa*64*|ia64*)
14580
 
        # +Z the default
14581
 
        ;;
14582
 
      *)
14583
 
        lt_prog_compiler_pic_F77='-fPIC'
14584
 
        ;;
14585
 
      esac
14586
 
      ;;
14587
 
 
14588
 
    *)
14589
 
      lt_prog_compiler_pic_F77='-fPIC'
14590
 
      ;;
14591
 
    esac
14592
 
  else
14593
 
    # PORTME Check for flag to pass linker flags through the system compiler.
14594
 
    case $host_os in
14595
 
    aix*)
14596
 
      lt_prog_compiler_wl_F77='-Wl,'
14597
 
      if test "$host_cpu" = ia64; then
14598
 
        # AIX 5 now supports IA64 processor
14599
 
        lt_prog_compiler_static_F77='-Bstatic'
14600
 
      else
14601
 
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14602
 
      fi
14603
 
      ;;
14604
 
      darwin*)
14605
 
        # PIC is the default on this platform
14606
 
        # Common symbols not allowed in MH_DYLIB files
14607
 
       case "$cc_basename" in
14608
 
         xlc*)
14609
 
         lt_prog_compiler_pic_F77='-qnocommon'
14610
 
         lt_prog_compiler_wl_F77='-Wl,'
14611
 
         ;;
14612
 
       esac
14613
 
       ;;
14614
 
 
14615
 
    mingw* | pw32* | os2*)
14616
 
      # This hack is so that the source file can tell whether it is being
14617
 
      # built for inclusion in a dll (and should export symbols for example).
14618
 
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14619
 
      ;;
14620
 
 
14621
 
    hpux9* | hpux10* | hpux11*)
14622
 
      lt_prog_compiler_wl_F77='-Wl,'
14623
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14624
 
      # not for PA HP-UX.
14625
 
      case "$host_cpu" in
14626
 
      hppa*64*|ia64*)
14627
 
        # +Z the default
14628
 
        ;;
14629
 
      *)
14630
 
        lt_prog_compiler_pic_F77='+Z'
14631
 
        ;;
14632
 
      esac
14633
 
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
14634
 
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14635
 
      ;;
14636
 
 
14637
 
    irix5* | irix6* | nonstopux*)
14638
 
      lt_prog_compiler_wl_F77='-Wl,'
14639
 
      # PIC (with -KPIC) is the default.
14640
 
      lt_prog_compiler_static_F77='-non_shared'
14641
 
      ;;
14642
 
 
14643
 
    newsos6)
14644
 
      lt_prog_compiler_pic_F77='-KPIC'
14645
 
      lt_prog_compiler_static_F77='-Bstatic'
14646
 
      ;;
14647
 
 
14648
 
    linux*)
14649
 
      case $cc_basename in
14650
 
      icc* | ecc*)
14651
 
        lt_prog_compiler_wl_F77='-Wl,'
14652
 
        lt_prog_compiler_pic_F77='-KPIC'
14653
 
        lt_prog_compiler_static_F77='-static'
14654
 
        ;;
14655
 
      pgcc | pgf77 | pgf90)
14656
 
        # Portland Group compilers (*not* the Pentium gcc compiler,
14657
 
        # which looks to be a dead project)
14658
 
        lt_prog_compiler_wl_F77='-Wl,'
14659
 
        lt_prog_compiler_pic_F77='-fpic'
14660
 
        lt_prog_compiler_static_F77='-static'
14661
 
        ;;
14662
 
      ccc*)
14663
 
        lt_prog_compiler_wl_F77='-Wl,'
14664
 
        # All Alpha code is PIC.
14665
 
        lt_prog_compiler_static_F77='-non_shared'
14666
 
        ;;
14667
 
      esac
14668
 
      ;;
14669
 
 
14670
 
    osf3* | osf4* | osf5*)
14671
 
      lt_prog_compiler_wl_F77='-Wl,'
14672
 
      # All OSF/1 code is PIC.
14673
 
      lt_prog_compiler_static_F77='-non_shared'
14674
 
      ;;
14675
 
 
14676
 
    sco3.2v5*)
14677
 
      lt_prog_compiler_pic_F77='-Kpic'
14678
 
      lt_prog_compiler_static_F77='-dn'
14679
 
      ;;
14680
 
 
14681
 
    solaris*)
14682
 
      lt_prog_compiler_wl_F77='-Wl,'
14683
 
      lt_prog_compiler_pic_F77='-KPIC'
14684
 
      lt_prog_compiler_static_F77='-Bstatic'
14685
 
      ;;
14686
 
 
14687
 
    sunos4*)
14688
 
      lt_prog_compiler_wl_F77='-Qoption ld '
14689
 
      lt_prog_compiler_pic_F77='-PIC'
14690
 
      lt_prog_compiler_static_F77='-Bstatic'
14691
 
      ;;
14692
 
 
14693
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14694
 
      lt_prog_compiler_wl_F77='-Wl,'
14695
 
      lt_prog_compiler_pic_F77='-KPIC'
14696
 
      lt_prog_compiler_static_F77='-Bstatic'
14697
 
      ;;
14698
 
 
14699
 
    sysv4*MP*)
14700
 
      if test -d /usr/nec ;then
14701
 
        lt_prog_compiler_pic_F77='-Kconform_pic'
14702
 
        lt_prog_compiler_static_F77='-Bstatic'
14703
 
      fi
14704
 
      ;;
14705
 
 
14706
 
    unicos*)
14707
 
      lt_prog_compiler_wl_F77='-Wl,'
14708
 
      lt_prog_compiler_can_build_shared_F77=no
14709
 
      ;;
14710
 
 
14711
 
    uts4*)
14712
 
      lt_prog_compiler_pic_F77='-pic'
14713
 
      lt_prog_compiler_static_F77='-Bstatic'
14714
 
      ;;
14715
 
 
14716
 
    *)
14717
 
      lt_prog_compiler_can_build_shared_F77=no
14718
 
      ;;
14719
 
    esac
14720
 
  fi
14721
 
 
14722
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14723
 
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14724
 
 
14725
 
#
14726
 
# Check to make sure the PIC flag actually works.
14727
 
#
14728
 
if test -n "$lt_prog_compiler_pic_F77"; then
14729
 
  
14730
 
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14731
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14732
 
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14733
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14734
 
else
14735
 
  lt_prog_compiler_pic_works_F77=no
14736
 
  ac_outfile=conftest.$ac_objext
14737
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14738
 
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14739
 
   # Insert the option either (1) after the last *FLAGS variable, or
14740
 
   # (2) before a word containing "conftest.", or (3) at the end.
14741
 
   # Note that $ac_compile itself does not contain backslashes and begins
14742
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
14743
 
   # The option is referenced via a variable to avoid confusing sed.
14744
 
   lt_compile=`echo "$ac_compile" | $SED \
14745
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14746
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14747
 
   -e 's:$: $lt_compiler_flag:'`
14748
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
14749
 
   (eval "$lt_compile" 2>conftest.err)
14750
 
   ac_status=$?
14751
 
   cat conftest.err >&5
14752
 
   echo "$as_me:__oline__: \$? = $ac_status" >&5
14753
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
14754
 
     # The compiler can only warn and ignore the option if not recognized
14755
 
     # So say no if there are warnings
14756
 
     if test ! -s conftest.err; then
14757
 
       lt_prog_compiler_pic_works_F77=yes
14758
 
     fi
14759
 
   fi
14760
 
   $rm conftest*
14761
 
 
14762
 
fi
14763
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14764
 
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14765
 
 
14766
 
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14767
 
    case $lt_prog_compiler_pic_F77 in
14768
 
     "" | " "*) ;;
14769
 
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14770
 
     esac
14771
 
else
14772
 
    lt_prog_compiler_pic_F77=
14773
 
     lt_prog_compiler_can_build_shared_F77=no
14774
 
fi
14775
 
 
14776
 
fi
14777
 
case "$host_os" in
14778
 
  # For platforms which do not support PIC, -DPIC is meaningless:
14779
 
  *djgpp*)
14780
 
    lt_prog_compiler_pic_F77=
14781
 
    ;;
14782
 
  *)
14783
 
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14784
 
    ;;
14785
 
esac
14786
 
 
14787
 
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14788
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14789
 
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14790
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
14791
 
else
14792
 
  lt_cv_prog_compiler_c_o_F77=no
14793
 
   $rm -r conftest 2>/dev/null
14794
 
   mkdir conftest
14795
 
   cd conftest
14796
 
   mkdir out
14797
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14798
 
 
14799
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
14800
 
   # Insert the option either (1) after the last *FLAGS variable, or
14801
 
   # (2) before a word containing "conftest.", or (3) at the end.
14802
 
   # Note that $ac_compile itself does not contain backslashes and begins
14803
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
14804
 
   lt_compile=`echo "$ac_compile" | $SED \
14805
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14806
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14807
 
   -e 's:$: $lt_compiler_flag:'`
14808
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
14809
 
   (eval "$lt_compile" 2>out/conftest.err)
14810
 
   ac_status=$?
14811
 
   cat out/conftest.err >&5
14812
 
   echo "$as_me:__oline__: \$? = $ac_status" >&5
14813
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14814
 
   then
14815
 
     # The compiler can only warn and ignore the option if not recognized
14816
 
     # So say no if there are warnings
14817
 
     if test ! -s out/conftest.err; then
14818
 
       lt_cv_prog_compiler_c_o_F77=yes
14819
 
     fi
14820
 
   fi
14821
 
   chmod u+w .
14822
 
   $rm conftest*
14823
 
   # SGI C++ compiler will create directory out/ii_files/ for
14824
 
   # template instantiation
14825
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14826
 
   $rm out/* && rmdir out
14827
 
   cd ..
14828
 
   rmdir conftest
14829
 
   $rm conftest*
14830
 
 
14831
 
fi
14832
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14833
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14834
 
 
14835
 
 
14836
 
hard_links="nottested"
14837
 
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14838
 
  # do not overwrite the value of need_locks provided by the user
14839
 
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14840
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14841
 
  hard_links=yes
14842
 
  $rm conftest*
14843
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14844
 
  touch conftest.a
14845
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
14846
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14847
 
  echo "$as_me:$LINENO: result: $hard_links" >&5
14848
 
echo "${ECHO_T}$hard_links" >&6
14849
 
  if test "$hard_links" = no; then
14850
 
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14851
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14852
 
    need_locks=warn
14853
 
  fi
14854
 
else
14855
 
  need_locks=no
14856
 
fi
14857
 
 
14858
 
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14859
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14860
 
 
14861
 
  runpath_var=
14862
 
  allow_undefined_flag_F77=
14863
 
  enable_shared_with_static_runtimes_F77=no
14864
 
  archive_cmds_F77=
14865
 
  archive_expsym_cmds_F77=
14866
 
  old_archive_From_new_cmds_F77=
14867
 
  old_archive_from_expsyms_cmds_F77=
14868
 
  export_dynamic_flag_spec_F77=
14869
 
  whole_archive_flag_spec_F77=
14870
 
  thread_safe_flag_spec_F77=
14871
 
  hardcode_libdir_flag_spec_F77=
14872
 
  hardcode_libdir_flag_spec_ld_F77=
14873
 
  hardcode_libdir_separator_F77=
14874
 
  hardcode_direct_F77=no
14875
 
  hardcode_minus_L_F77=no
14876
 
  hardcode_shlibpath_var_F77=unsupported
14877
 
  link_all_deplibs_F77=unknown
14878
 
  hardcode_automatic_F77=no
14879
 
  module_cmds_F77=
14880
 
  module_expsym_cmds_F77=
14881
 
  always_export_symbols_F77=no
14882
 
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14883
 
  # include_expsyms should be a list of space-separated symbols to be *always*
14884
 
  # included in the symbol list
14885
 
  include_expsyms_F77=
14886
 
  # exclude_expsyms can be an extended regexp of symbols to exclude
14887
 
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14888
 
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14889
 
  # as well as any symbol that contains `d'.
14890
 
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14891
 
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14892
 
  # platforms (ab)use it in PIC code, but their linkers get confused if
14893
 
  # the symbol is explicitly referenced.  Since portable code cannot
14894
 
  # rely on this symbol name, it's probably fine to never include it in
14895
 
  # preloaded symbol tables.
14896
 
  extract_expsyms_cmds=
14897
 
 
14898
 
  case $host_os in
14899
 
  cygwin* | mingw* | pw32*)
14900
 
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14901
 
    # When not using gcc, we currently assume that we are using
14902
 
    # Microsoft Visual C++.
14903
 
    if test "$GCC" != yes; then
14904
 
      with_gnu_ld=no
14905
 
    fi
14906
 
    ;;
14907
 
  openbsd*)
14908
 
    with_gnu_ld=no
14909
 
    ;;
14910
 
  esac
14911
 
 
14912
 
  ld_shlibs_F77=yes
14913
 
  if test "$with_gnu_ld" = yes; then
14914
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
14915
 
    wlarc='${wl}'
14916
 
 
14917
 
    # See if GNU ld supports shared libraries.
14918
 
    case $host_os in
14919
 
    aix3* | aix4* | aix5*)
14920
 
      # On AIX/PPC, the GNU linker is very broken
14921
 
      if test "$host_cpu" != ia64; then
14922
 
        ld_shlibs_F77=no
14923
 
        cat <<EOF 1>&2
14924
 
 
14925
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14926
 
*** to be unable to reliably create shared libraries on AIX.
14927
 
*** Therefore, libtool is disabling shared libraries support.  If you
14928
 
*** really care for shared libraries, you may want to modify your PATH
14929
 
*** so that a non-GNU linker is found, and then restart.
14930
 
 
14931
 
EOF
14932
 
      fi
14933
 
      ;;
14934
 
 
14935
 
    amigaos*)
14936
 
      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)'
14937
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
14938
 
      hardcode_minus_L_F77=yes
14939
 
 
14940
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14941
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
14942
 
      # to version 4, is to share data among multiple programs linked
14943
 
      # with the same dynamic library.  Since this doesn't match the
14944
 
      # behavior of shared libraries on other platforms, we can't use
14945
 
      # them.
14946
 
      ld_shlibs_F77=no
14947
 
      ;;
14948
 
 
14949
 
    beos*)
14950
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14951
 
        allow_undefined_flag_F77=unsupported
14952
 
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14953
 
        # support --undefined.  This deserves some investigation.  FIXME
14954
 
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14955
 
      else
14956
 
        ld_shlibs_F77=no
14957
 
      fi
14958
 
      ;;
14959
 
 
14960
 
    cygwin* | mingw* | pw32*)
14961
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14962
 
      # as there is no search path for DLLs.
14963
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
14964
 
      allow_undefined_flag_F77=unsupported
14965
 
      always_export_symbols_F77=no
14966
 
      enable_shared_with_static_runtimes_F77=yes
14967
 
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14968
 
 
14969
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14970
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14971
 
        # If the export-symbols file already is a .def file (1st line
14972
 
        # is EXPORTS), use it as is; otherwise, prepend...
14973
 
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14974
 
          cp $export_symbols $output_objdir/$soname.def;
14975
 
        else
14976
 
          echo EXPORTS > $output_objdir/$soname.def;
14977
 
          cat $export_symbols >> $output_objdir/$soname.def;
14978
 
        fi~
14979
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
14980
 
      else
14981
 
        ld_shlibs_F77=no
14982
 
      fi
14983
 
      ;;
14984
 
 
14985
 
    netbsd*)
14986
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14987
 
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14988
 
        wlarc=
14989
 
      else
14990
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14991
 
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14992
 
      fi
14993
 
      ;;
14994
 
 
14995
 
    solaris* | sysv5*)
14996
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14997
 
        ld_shlibs_F77=no
14998
 
        cat <<EOF 1>&2
14999
 
 
15000
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15001
 
*** create shared libraries on Solaris systems.  Therefore, libtool
15002
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
15003
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
15004
 
*** your PATH or compiler configuration so that the native linker is
15005
 
*** used, and then restart.
15006
 
 
15007
 
EOF
15008
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15009
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15010
 
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15011
 
      else
15012
 
        ld_shlibs_F77=no
15013
 
      fi
15014
 
      ;;
15015
 
 
15016
 
    sunos4*)
15017
 
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15018
 
      wlarc=
15019
 
      hardcode_direct_F77=yes
15020
 
      hardcode_shlibpath_var_F77=no
15021
 
      ;;
15022
 
 
15023
 
  linux*)
15024
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15025
 
      tmp_addflag=
15026
 
      case $CC,$host_cpu in
15027
 
      pgf77* | pgf90* )                 # Portland Group f77 and f90 compilers
15028
 
        tmp_addflag=' -fpic' ;;
15029
 
      ecc*,ia64* | icc*,ia64*)          # Intel C compiler on ia64
15030
 
        tmp_addflag=' -i_dynamic' ;;
15031
 
      efc*,ia64* | ifort*,ia64*)        # Intel Fortran compiler on ia64
15032
 
        tmp_addflag=' -i_dynamic -nofor_main' ;;
15033
 
      ifc* | ifort*)                    # Intel Fortran compiler
15034
 
        tmp_addflag=' -nofor_main' ;;
15035
 
      esac
15036
 
      archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15037
 
      supports_anon_versioning=no
15038
 
      case `$LD -v 2>/dev/null` in
15039
 
        *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15040
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15041
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15042
 
        *\ 2.11.*) ;; # other 2.11 versions
15043
 
        *) supports_anon_versioning=yes ;;
15044
 
      esac
15045
 
      if test $supports_anon_versioning = yes; then
15046
 
        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15047
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15048
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
15049
 
        $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15050
 
      else
15051
 
        archive_expsym_cmds_F77=$archive_cmds_F77
15052
 
      fi
15053
 
    else
15054
 
      ld_shlibs_F77=no
15055
 
    fi
15056
 
    ;;
15057
 
 
15058
 
    *)
15059
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15060
 
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15061
 
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15062
 
      else
15063
 
        ld_shlibs_F77=no
15064
 
      fi
15065
 
      ;;
15066
 
    esac
15067
 
 
15068
 
    if test "$ld_shlibs_F77" = yes; then
15069
 
      runpath_var=LD_RUN_PATH
15070
 
      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15071
 
      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15072
 
      # ancient GNU ld didn't support --whole-archive et. al.
15073
 
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15074
 
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15075
 
      else
15076
 
        whole_archive_flag_spec_F77=
15077
 
      fi
15078
 
    fi
15079
 
  else
15080
 
    # PORTME fill in a description of your system's linker (not GNU ld)
15081
 
    case $host_os in
15082
 
    aix3*)
15083
 
      allow_undefined_flag_F77=unsupported
15084
 
      always_export_symbols_F77=yes
15085
 
      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'
15086
 
      # Note: this linker hardcodes the directories in LIBPATH if there
15087
 
      # are no directories specified by -L.
15088
 
      hardcode_minus_L_F77=yes
15089
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
15090
 
        # Neither direct hardcoding nor static linking is supported with a
15091
 
        # broken collect2.
15092
 
        hardcode_direct_F77=unsupported
15093
 
      fi
15094
 
      ;;
15095
 
 
15096
 
    aix4* | aix5*)
15097
 
      if test "$host_cpu" = ia64; then
15098
 
        # On IA64, the linker does run time linking by default, so we don't
15099
 
        # have to do anything special.
15100
 
        aix_use_runtimelinking=no
15101
 
        exp_sym_flag='-Bexport'
15102
 
        no_entry_flag=""
15103
 
      else
15104
 
        # If we're using GNU nm, then we don't want the "-C" option.
15105
 
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
15106
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15107
 
          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'
15108
 
        else
15109
 
          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'
15110
 
        fi
15111
 
        aix_use_runtimelinking=no
15112
 
 
15113
 
        # Test if we are trying to use run time linking or normal
15114
 
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15115
 
        # need to do runtime linking.
15116
 
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15117
 
          for ld_flag in $LDFLAGS; do
15118
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15119
 
            aix_use_runtimelinking=yes
15120
 
            break
15121
 
          fi
15122
 
          done
15123
 
        esac
15124
 
 
15125
 
        exp_sym_flag='-bexport'
15126
 
        no_entry_flag='-bnoentry'
15127
 
      fi
15128
 
 
15129
 
      # When large executables or shared objects are built, AIX ld can
15130
 
      # have problems creating the table of contents.  If linking a library
15131
 
      # or program results in "error TOC overflow" add -mminimal-toc to
15132
 
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15133
 
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15134
 
 
15135
 
      archive_cmds_F77=''
15136
 
      hardcode_direct_F77=yes
15137
 
      hardcode_libdir_separator_F77=':'
15138
 
      link_all_deplibs_F77=yes
15139
 
 
15140
 
      if test "$GCC" = yes; then
15141
 
        case $host_os in aix4.[012]|aix4.[012].*)
15142
 
        # We only want to do this on AIX 4.2 and lower, the check
15143
 
        # below for broken collect2 doesn't work under 4.3+
15144
 
          collect2name=`${CC} -print-prog-name=collect2`
15145
 
          if test -f "$collect2name" && \
15146
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
15147
 
          then
15148
 
          # We have reworked collect2
15149
 
          hardcode_direct_F77=yes
15150
 
          else
15151
 
          # We have old collect2
15152
 
          hardcode_direct_F77=unsupported
15153
 
          # It fails to find uninstalled libraries when the uninstalled
15154
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
15155
 
          # to unsupported forces relinking
15156
 
          hardcode_minus_L_F77=yes
15157
 
          hardcode_libdir_flag_spec_F77='-L$libdir'
15158
 
          hardcode_libdir_separator_F77=
15159
 
          fi
15160
 
        esac
15161
 
        shared_flag='-shared'
15162
 
        if test "$aix_use_runtimelinking" = yes; then
15163
 
          shared_flag="$shared_flag "'${wl}-G'
15164
 
        fi
15165
 
      else
15166
 
        # not using gcc
15167
 
        if test "$host_cpu" = ia64; then
15168
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15169
 
        # chokes on -Wl,-G. The following line is correct:
15170
 
          shared_flag='-G'
15171
 
        else
15172
 
        if test "$aix_use_runtimelinking" = yes; then
15173
 
            shared_flag='${wl}-G'
15174
 
          else
15175
 
            shared_flag='${wl}-bM:SRE'
15176
 
        fi
15177
 
        fi
15178
 
      fi
15179
 
 
15180
 
      # It seems that -bexpall does not export symbols beginning with
15181
 
      # underscore (_), so it is better to generate a list of symbols to export.
15182
 
      always_export_symbols_F77=yes
15183
 
      if test "$aix_use_runtimelinking" = yes; then
15184
 
        # Warning - without using the other runtime loading flags (-brtl),
15185
 
        # -berok will link without error, but may produce a broken library.
15186
 
        allow_undefined_flag_F77='-berok'
15187
 
       # Determine the default libpath from the value encoded in an empty executable.
15188
 
       cat >conftest.$ac_ext <<_ACEOF
15189
 
      program main
15190
 
 
15191
 
      end
15192
 
_ACEOF
15193
 
rm -f conftest.$ac_objext conftest$ac_exeext
15194
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15195
 
  (eval $ac_link) 2>conftest.er1
15196
 
  ac_status=$?
15197
 
  grep -v '^ *+' conftest.er1 >conftest.err
15198
 
  rm -f conftest.er1
15199
 
  cat conftest.err >&5
15200
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15201
 
  (exit $ac_status); } &&
15202
 
         { ac_try='test -z "$ac_f77_werror_flag"
15203
 
                         || test ! -s conftest.err'
15204
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15205
 
  (eval $ac_try) 2>&5
15206
 
  ac_status=$?
15207
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15208
 
  (exit $ac_status); }; } &&
15209
 
         { ac_try='test -s conftest$ac_exeext'
15210
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15211
 
  (eval $ac_try) 2>&5
15212
 
  ac_status=$?
15213
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214
 
  (exit $ac_status); }; }; then
15215
 
  
15216
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15217
 
}'`
15218
 
# Check for a 64-bit object if we didn't find anything.
15219
 
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; }
15220
 
}'`; fi
15221
 
else
15222
 
  echo "$as_me: failed program was:" >&5
15223
 
sed 's/^/| /' conftest.$ac_ext >&5
15224
 
 
15225
 
fi
15226
 
rm -f conftest.err conftest.$ac_objext \
15227
 
      conftest$ac_exeext conftest.$ac_ext
15228
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15229
 
 
15230
 
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15231
 
        archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15232
 
       else
15233
 
        if test "$host_cpu" = ia64; then
15234
 
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15235
 
          allow_undefined_flag_F77="-z nodefs"
15236
 
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
15237
 
        else
15238
 
         # Determine the default libpath from the value encoded in an empty executable.
15239
 
         cat >conftest.$ac_ext <<_ACEOF
15240
 
      program main
15241
 
 
15242
 
      end
15243
 
_ACEOF
15244
 
rm -f conftest.$ac_objext conftest$ac_exeext
15245
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15246
 
  (eval $ac_link) 2>conftest.er1
15247
 
  ac_status=$?
15248
 
  grep -v '^ *+' conftest.er1 >conftest.err
15249
 
  rm -f conftest.er1
15250
 
  cat conftest.err >&5
15251
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252
 
  (exit $ac_status); } &&
15253
 
         { ac_try='test -z "$ac_f77_werror_flag"
15254
 
                         || test ! -s conftest.err'
15255
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15256
 
  (eval $ac_try) 2>&5
15257
 
  ac_status=$?
15258
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259
 
  (exit $ac_status); }; } &&
15260
 
         { ac_try='test -s conftest$ac_exeext'
15261
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15262
 
  (eval $ac_try) 2>&5
15263
 
  ac_status=$?
15264
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265
 
  (exit $ac_status); }; }; then
15266
 
  
15267
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15268
 
}'`
15269
 
# Check for a 64-bit object if we didn't find anything.
15270
 
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; }
15271
 
}'`; fi
15272
 
else
15273
 
  echo "$as_me: failed program was:" >&5
15274
 
sed 's/^/| /' conftest.$ac_ext >&5
15275
 
 
15276
 
fi
15277
 
rm -f conftest.err conftest.$ac_objext \
15278
 
      conftest$ac_exeext conftest.$ac_ext
15279
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15280
 
 
15281
 
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15282
 
          # Warning - without using the other run time loading flags,
15283
 
          # -berok will link without error, but may produce a broken library.
15284
 
          no_undefined_flag_F77=' ${wl}-bernotok'
15285
 
          allow_undefined_flag_F77=' ${wl}-berok'
15286
 
          # -bexpall does not export symbols beginning with underscore (_)
15287
 
          always_export_symbols_F77=yes
15288
 
          # Exported symbols can be pulled into shared objects from archives
15289
 
          whole_archive_flag_spec_F77=' '
15290
 
          archive_cmds_need_lc_F77=yes
15291
 
          # This is similar to how AIX traditionally builds it's shared libraries.
15292
 
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15293
 
        fi
15294
 
      fi
15295
 
      ;;
15296
 
 
15297
 
    amigaos*)
15298
 
      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)'
15299
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
15300
 
      hardcode_minus_L_F77=yes
15301
 
      # see comment about different semantics on the GNU ld section
15302
 
      ld_shlibs_F77=no
15303
 
      ;;
15304
 
 
15305
 
    bsdi[45]*)
15306
 
      export_dynamic_flag_spec_F77=-rdynamic
15307
 
      ;;
15308
 
 
15309
 
    cygwin* | mingw* | pw32*)
15310
 
      # When not using gcc, we currently assume that we are using
15311
 
      # Microsoft Visual C++.
15312
 
      # hardcode_libdir_flag_spec is actually meaningless, as there is
15313
 
      # no search path for DLLs.
15314
 
      hardcode_libdir_flag_spec_F77=' '
15315
 
      allow_undefined_flag_F77=unsupported
15316
 
      # Tell ltmain to make .lib files, not .a files.
15317
 
      libext=lib
15318
 
      # Tell ltmain to make .dll files, not .so files.
15319
 
      shrext_cmds=".dll"
15320
 
      # FIXME: Setting linknames here is a bad hack.
15321
 
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15322
 
      # The linker will automatically build a .lib file if we build a DLL.
15323
 
      old_archive_From_new_cmds_F77='true'
15324
 
      # FIXME: Should let the user specify the lib program.
15325
 
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15326
 
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15327
 
      enable_shared_with_static_runtimes_F77=yes
15328
 
      ;;
15329
 
 
15330
 
    darwin* | rhapsody*)
15331
 
      case "$host_os" in
15332
 
        rhapsody* | darwin1.[012])
15333
 
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15334
 
         ;;
15335
 
       *) # Darwin 1.3 on
15336
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15337
 
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15338
 
         else
15339
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
15340
 
             10.[012])
15341
 
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15342
 
               ;;
15343
 
             10.*)
15344
 
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15345
 
               ;;
15346
 
           esac
15347
 
         fi
15348
 
         ;;
15349
 
      esac
15350
 
      archive_cmds_need_lc_F77=no
15351
 
      hardcode_direct_F77=no
15352
 
      hardcode_automatic_F77=yes
15353
 
      hardcode_shlibpath_var_F77=unsupported
15354
 
      whole_archive_flag_spec_F77=''
15355
 
      link_all_deplibs_F77=yes
15356
 
    if test "$GCC" = yes ; then
15357
 
        output_verbose_link_cmd='echo'
15358
 
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15359
 
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15360
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15361
 
      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}'
15362
 
      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}'
15363
 
    else
15364
 
      case "$cc_basename" in
15365
 
        xlc*)
15366
 
         output_verbose_link_cmd='echo'
15367
 
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15368
 
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15369
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15370
 
         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}'
15371
 
          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}'
15372
 
          ;;
15373
 
       *)
15374
 
         ld_shlibs_F77=no
15375
 
          ;;
15376
 
      esac
15377
 
    fi
15378
 
      ;;
15379
 
 
15380
 
    dgux*)
15381
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15382
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
15383
 
      hardcode_shlibpath_var_F77=no
15384
 
      ;;
15385
 
 
15386
 
    freebsd1*)
15387
 
      ld_shlibs_F77=no
15388
 
      ;;
15389
 
 
15390
 
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15391
 
    # support.  Future versions do this automatically, but an explicit c++rt0.o
15392
 
    # does not break anything, and helps significantly (at the cost of a little
15393
 
    # extra space).
15394
 
    freebsd2.2*)
15395
 
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15396
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
15397
 
      hardcode_direct_F77=yes
15398
 
      hardcode_shlibpath_var_F77=no
15399
 
      ;;
15400
 
 
15401
 
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15402
 
    freebsd2*)
15403
 
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15404
 
      hardcode_direct_F77=yes
15405
 
      hardcode_minus_L_F77=yes
15406
 
      hardcode_shlibpath_var_F77=no
15407
 
      ;;
15408
 
 
15409
 
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15410
 
    freebsd* | kfreebsd*-gnu | dragonfly*)
15411
 
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15412
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
15413
 
      hardcode_direct_F77=yes
15414
 
      hardcode_shlibpath_var_F77=no
15415
 
      ;;
15416
 
 
15417
 
    hpux9*)
15418
 
      if test "$GCC" = yes; then
15419
 
        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'
15420
 
      else
15421
 
        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'
15422
 
      fi
15423
 
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15424
 
      hardcode_libdir_separator_F77=:
15425
 
      hardcode_direct_F77=yes
15426
 
 
15427
 
      # hardcode_minus_L: Not really in the search PATH,
15428
 
      # but as the default location of the library.
15429
 
      hardcode_minus_L_F77=yes
15430
 
      export_dynamic_flag_spec_F77='${wl}-E'
15431
 
      ;;
15432
 
 
15433
 
    hpux10* | hpux11*)
15434
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15435
 
        case "$host_cpu" in
15436
 
        hppa*64*|ia64*)
15437
 
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15438
 
          ;;
15439
 
        *)
15440
 
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15441
 
          ;;
15442
 
        esac
15443
 
      else
15444
 
        case "$host_cpu" in
15445
 
        hppa*64*|ia64*)
15446
 
          archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15447
 
          ;;
15448
 
        *)
15449
 
          archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15450
 
          ;;
15451
 
        esac
15452
 
      fi
15453
 
      if test "$with_gnu_ld" = no; then
15454
 
        case "$host_cpu" in
15455
 
        hppa*64*)
15456
 
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15457
 
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15458
 
          hardcode_libdir_separator_F77=:
15459
 
          hardcode_direct_F77=no
15460
 
          hardcode_shlibpath_var_F77=no
15461
 
          ;;
15462
 
        ia64*)
15463
 
          hardcode_libdir_flag_spec_F77='-L$libdir'
15464
 
          hardcode_direct_F77=no
15465
 
          hardcode_shlibpath_var_F77=no
15466
 
 
15467
 
          # hardcode_minus_L: Not really in the search PATH,
15468
 
          # but as the default location of the library.
15469
 
          hardcode_minus_L_F77=yes
15470
 
          ;;
15471
 
        *)
15472
 
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15473
 
          hardcode_libdir_separator_F77=:
15474
 
          hardcode_direct_F77=yes
15475
 
          export_dynamic_flag_spec_F77='${wl}-E'
15476
 
 
15477
 
          # hardcode_minus_L: Not really in the search PATH,
15478
 
          # but as the default location of the library.
15479
 
          hardcode_minus_L_F77=yes
15480
 
          ;;
15481
 
        esac
15482
 
      fi
15483
 
      ;;
15484
 
 
15485
 
    irix5* | irix6* | nonstopux*)
15486
 
      if test "$GCC" = yes; then
15487
 
        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'
15488
 
      else
15489
 
        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'
15490
 
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15491
 
      fi
15492
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15493
 
      hardcode_libdir_separator_F77=:
15494
 
      link_all_deplibs_F77=yes
15495
 
      ;;
15496
 
 
15497
 
    netbsd*)
15498
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15499
 
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15500
 
      else
15501
 
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15502
 
      fi
15503
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
15504
 
      hardcode_direct_F77=yes
15505
 
      hardcode_shlibpath_var_F77=no
15506
 
      ;;
15507
 
 
15508
 
    newsos6)
15509
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15510
 
      hardcode_direct_F77=yes
15511
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15512
 
      hardcode_libdir_separator_F77=:
15513
 
      hardcode_shlibpath_var_F77=no
15514
 
      ;;
15515
 
 
15516
 
    openbsd*)
15517
 
      hardcode_direct_F77=yes
15518
 
      hardcode_shlibpath_var_F77=no
15519
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15520
 
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15521
 
        archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15522
 
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15523
 
        export_dynamic_flag_spec_F77='${wl}-E'
15524
 
      else
15525
 
       case $host_os in
15526
 
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15527
 
           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15528
 
           hardcode_libdir_flag_spec_F77='-R$libdir'
15529
 
           ;;
15530
 
         *)
15531
 
           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15532
 
           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15533
 
           ;;
15534
 
       esac
15535
 
      fi
15536
 
      ;;
15537
 
 
15538
 
    os2*)
15539
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
15540
 
      hardcode_minus_L_F77=yes
15541
 
      allow_undefined_flag_F77=unsupported
15542
 
      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'
15543
 
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15544
 
      ;;
15545
 
 
15546
 
    osf3*)
15547
 
      if test "$GCC" = yes; then
15548
 
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15549
 
        archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15550
 
      else
15551
 
        allow_undefined_flag_F77=' -expect_unresolved \*'
15552
 
        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'
15553
 
      fi
15554
 
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15555
 
      hardcode_libdir_separator_F77=:
15556
 
      ;;
15557
 
 
15558
 
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
15559
 
      if test "$GCC" = yes; then
15560
 
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15561
 
        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'
15562
 
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15563
 
      else
15564
 
        allow_undefined_flag_F77=' -expect_unresolved \*'
15565
 
        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'
15566
 
        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~
15567
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
15568
 
 
15569
 
        # Both c and cxx compiler support -rpath directly
15570
 
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
15571
 
      fi
15572
 
      hardcode_libdir_separator_F77=:
15573
 
      ;;
15574
 
 
15575
 
    sco3.2v5*)
15576
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15577
 
      hardcode_shlibpath_var_F77=no
15578
 
      export_dynamic_flag_spec_F77='${wl}-Bexport'
15579
 
      runpath_var=LD_RUN_PATH
15580
 
      hardcode_runpath_var=yes
15581
 
      ;;
15582
 
 
15583
 
    solaris*)
15584
 
      no_undefined_flag_F77=' -z text'
15585
 
      if test "$GCC" = yes; then
15586
 
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15587
 
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15588
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15589
 
      else
15590
 
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15591
 
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15592
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15593
 
      fi
15594
 
      hardcode_libdir_flag_spec_F77='-R$libdir'
15595
 
      hardcode_shlibpath_var_F77=no
15596
 
      case $host_os in
15597
 
      solaris2.[0-5] | solaris2.[0-5].*) ;;
15598
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15599
 
        whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
15600
 
      esac
15601
 
      link_all_deplibs_F77=yes
15602
 
      ;;
15603
 
 
15604
 
    sunos4*)
15605
 
      if test "x$host_vendor" = xsequent; then
15606
 
        # Use $CC to link under sequent, because it throws in some extra .o
15607
 
        # files that make .init and .fini sections work.
15608
 
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15609
 
      else
15610
 
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15611
 
      fi
15612
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
15613
 
      hardcode_direct_F77=yes
15614
 
      hardcode_minus_L_F77=yes
15615
 
      hardcode_shlibpath_var_F77=no
15616
 
      ;;
15617
 
 
15618
 
    sysv4)
15619
 
      case $host_vendor in
15620
 
        sni)
15621
 
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15622
 
          hardcode_direct_F77=yes # is this really true???
15623
 
        ;;
15624
 
        siemens)
15625
 
          ## LD is ld it makes a PLAMLIB
15626
 
          ## CC just makes a GrossModule.
15627
 
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15628
 
          reload_cmds_F77='$CC -r -o $output$reload_objs'
15629
 
          hardcode_direct_F77=no
15630
 
        ;;
15631
 
        motorola)
15632
 
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15633
 
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15634
 
        ;;
15635
 
      esac
15636
 
      runpath_var='LD_RUN_PATH'
15637
 
      hardcode_shlibpath_var_F77=no
15638
 
      ;;
15639
 
 
15640
 
    sysv4.3*)
15641
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15642
 
      hardcode_shlibpath_var_F77=no
15643
 
      export_dynamic_flag_spec_F77='-Bexport'
15644
 
      ;;
15645
 
 
15646
 
    sysv4*MP*)
15647
 
      if test -d /usr/nec; then
15648
 
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15649
 
        hardcode_shlibpath_var_F77=no
15650
 
        runpath_var=LD_RUN_PATH
15651
 
        hardcode_runpath_var=yes
15652
 
        ld_shlibs_F77=yes
15653
 
      fi
15654
 
      ;;
15655
 
 
15656
 
    sysv4.2uw2*)
15657
 
      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15658
 
      hardcode_direct_F77=yes
15659
 
      hardcode_minus_L_F77=no
15660
 
      hardcode_shlibpath_var_F77=no
15661
 
      hardcode_runpath_var=yes
15662
 
      runpath_var=LD_RUN_PATH
15663
 
      ;;
15664
 
 
15665
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
15666
 
      no_undefined_flag_F77='${wl}-z ${wl}text'
15667
 
      if test "$GCC" = yes; then
15668
 
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15669
 
      else
15670
 
        archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15671
 
      fi
15672
 
      runpath_var='LD_RUN_PATH'
15673
 
      hardcode_shlibpath_var_F77=no
15674
 
      ;;
15675
 
 
15676
 
    sysv5*)
15677
 
      no_undefined_flag_F77=' -z text'
15678
 
      # $CC -shared without GNU ld will not create a library from C++
15679
 
      # object files and a static libstdc++, better avoid it by now
15680
 
      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15681
 
      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15682
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15683
 
      hardcode_libdir_flag_spec_F77=
15684
 
      hardcode_shlibpath_var_F77=no
15685
 
      runpath_var='LD_RUN_PATH'
15686
 
      ;;
15687
 
 
15688
 
    uts4*)
15689
 
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15690
 
      hardcode_libdir_flag_spec_F77='-L$libdir'
15691
 
      hardcode_shlibpath_var_F77=no
15692
 
      ;;
15693
 
 
15694
 
    *)
15695
 
      ld_shlibs_F77=no
15696
 
      ;;
15697
 
    esac
15698
 
  fi
15699
 
 
15700
 
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15701
 
echo "${ECHO_T}$ld_shlibs_F77" >&6
15702
 
test "$ld_shlibs_F77" = no && can_build_shared=no
15703
 
 
15704
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15705
 
if test "$GCC" = yes; then
15706
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15707
 
fi
15708
 
 
15709
 
#
15710
 
# Do we need to explicitly link libc?
15711
 
#
15712
 
case "x$archive_cmds_need_lc_F77" in
15713
 
x|xyes)
15714
 
  # Assume -lc should be added
15715
 
  archive_cmds_need_lc_F77=yes
15716
 
 
15717
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
15718
 
    case $archive_cmds_F77 in
15719
 
    *'~'*)
15720
 
      # FIXME: we may have to deal with multi-command sequences.
15721
 
      ;;
15722
 
    '$CC '*)
15723
 
      # Test whether the compiler implicitly links with -lc since on some
15724
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15725
 
      # to ld, don't add -lc before -lgcc.
15726
 
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15727
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15728
 
      $rm conftest*
15729
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15730
 
 
15731
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15732
 
  (eval $ac_compile) 2>&5
15733
 
  ac_status=$?
15734
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735
 
  (exit $ac_status); } 2>conftest.err; then
15736
 
        soname=conftest
15737
 
        lib=conftest
15738
 
        libobjs=conftest.$ac_objext
15739
 
        deplibs=
15740
 
        wl=$lt_prog_compiler_wl_F77
15741
 
        compiler_flags=-v
15742
 
        linker_flags=-v
15743
 
        verstring=
15744
 
        output_objdir=.
15745
 
        libname=conftest
15746
 
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15747
 
        allow_undefined_flag_F77=
15748
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15749
 
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15750
 
  ac_status=$?
15751
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15752
 
  (exit $ac_status); }
15753
 
        then
15754
 
          archive_cmds_need_lc_F77=no
15755
 
        else
15756
 
          archive_cmds_need_lc_F77=yes
15757
 
        fi
15758
 
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15759
 
      else
15760
 
        cat conftest.err 1>&5
15761
 
      fi
15762
 
      $rm conftest*
15763
 
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15764
 
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15765
 
      ;;
15766
 
    esac
15767
 
  fi
15768
 
  ;;
15769
 
esac
15770
 
 
15771
 
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15772
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15773
 
library_names_spec=
15774
 
libname_spec='lib$name'
15775
 
soname_spec=
15776
 
shrext_cmds=".so"
15777
 
postinstall_cmds=
15778
 
postuninstall_cmds=
15779
 
finish_cmds=
15780
 
finish_eval=
15781
 
shlibpath_var=
15782
 
shlibpath_overrides_runpath=unknown
15783
 
version_type=none
15784
 
dynamic_linker="$host_os ld.so"
15785
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15786
 
if test "$GCC" = yes; then
15787
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15788
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15789
 
    # if the path contains ";" then we assume it to be the separator
15790
 
    # otherwise default to the standard path separator (i.e. ":") - it is
15791
 
    # assumed that no part of a normal pathname contains ";" but that should
15792
 
    # okay in the real world where ";" in dirpaths is itself problematic.
15793
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15794
 
  else
15795
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15796
 
  fi
15797
 
else
15798
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15799
 
fi
15800
 
need_lib_prefix=unknown
15801
 
hardcode_into_libs=no
15802
 
 
15803
 
# when you set need_version to no, make sure it does not cause -set_version
15804
 
# flags to be left without arguments
15805
 
need_version=unknown
15806
 
 
15807
 
case $host_os in
15808
 
aix3*)
15809
 
  version_type=linux
15810
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15811
 
  shlibpath_var=LIBPATH
15812
 
 
15813
 
  # AIX 3 has no versioning support, so we append a major version to the name.
15814
 
  soname_spec='${libname}${release}${shared_ext}$major'
15815
 
  ;;
15816
 
 
15817
 
aix4* | aix5*)
15818
 
  version_type=linux
15819
 
  need_lib_prefix=no
15820
 
  need_version=no
15821
 
  hardcode_into_libs=yes
15822
 
  if test "$host_cpu" = ia64; then
15823
 
    # AIX 5 supports IA64
15824
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15825
 
    shlibpath_var=LD_LIBRARY_PATH
15826
 
  else
15827
 
    # With GCC up to 2.95.x, collect2 would create an import file
15828
 
    # for dependence libraries.  The import file would start with
15829
 
    # the line `#! .'.  This would cause the generated library to
15830
 
    # depend on `.', always an invalid library.  This was fixed in
15831
 
    # development snapshots of GCC prior to 3.0.
15832
 
    case $host_os in
15833
 
      aix4 | aix4.[01] | aix4.[01].*)
15834
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15835
 
           echo ' yes '
15836
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15837
 
        :
15838
 
      else
15839
 
        can_build_shared=no
15840
 
      fi
15841
 
      ;;
15842
 
    esac
15843
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15844
 
    # soname into executable. Probably we can add versioning support to
15845
 
    # collect2, so additional links can be useful in future.
15846
 
    if test "$aix_use_runtimelinking" = yes; then
15847
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15848
 
      # instead of lib<name>.a to let people know that these are not
15849
 
      # typical AIX shared libraries.
15850
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15851
 
    else
15852
 
      # We preserve .a as extension for shared libraries through AIX4.2
15853
 
      # and later when we are not doing run time linking.
15854
 
      library_names_spec='${libname}${release}.a $libname.a'
15855
 
      soname_spec='${libname}${release}${shared_ext}$major'
15856
 
    fi
15857
 
    shlibpath_var=LIBPATH
15858
 
  fi
15859
 
  ;;
15860
 
 
15861
 
amigaos*)
15862
 
  library_names_spec='$libname.ixlibrary $libname.a'
15863
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15864
 
  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'
15865
 
  ;;
15866
 
 
15867
 
beos*)
15868
 
  library_names_spec='${libname}${shared_ext}'
15869
 
  dynamic_linker="$host_os ld.so"
15870
 
  shlibpath_var=LIBRARY_PATH
15871
 
  ;;
15872
 
 
15873
 
bsdi[45]*)
15874
 
  version_type=linux
15875
 
  need_version=no
15876
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15877
 
  soname_spec='${libname}${release}${shared_ext}$major'
15878
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15879
 
  shlibpath_var=LD_LIBRARY_PATH
15880
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15881
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15882
 
  # the default ld.so.conf also contains /usr/contrib/lib and
15883
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15884
 
  # libtool to hard-code these into programs
15885
 
  ;;
15886
 
 
15887
 
cygwin* | mingw* | pw32*)
15888
 
  version_type=windows
15889
 
  shrext_cmds=".dll"
15890
 
  need_version=no
15891
 
  need_lib_prefix=no
15892
 
 
15893
 
  case $GCC,$host_os in
15894
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
15895
 
    library_names_spec='$libname.dll.a'
15896
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15897
 
    postinstall_cmds='base_file=`basename \${file}`~
15898
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15899
 
      dldir=$destdir/`dirname \$dlpath`~
15900
 
      test -d \$dldir || mkdir -p \$dldir~
15901
 
      $install_prog $dir/$dlname \$dldir/$dlname'
15902
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15903
 
      dlpath=$dir/\$dldll~
15904
 
       $rm \$dlpath'
15905
 
    shlibpath_overrides_runpath=yes
15906
 
 
15907
 
    case $host_os in
15908
 
    cygwin*)
15909
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15910
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15911
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15912
 
      ;;
15913
 
    mingw*)
15914
 
      # MinGW DLLs use traditional 'lib' prefix
15915
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15916
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15917
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15918
 
        # It is most probably a Windows format PATH printed by
15919
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15920
 
        # path with ; separators, and with drive letters. We can handle the
15921
 
        # drive letters (cygwin fileutils understands them), so leave them,
15922
 
        # especially as we might pass files found there to a mingw objdump,
15923
 
        # which wouldn't understand a cygwinified path. Ahh.
15924
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15925
 
      else
15926
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15927
 
      fi
15928
 
      ;;
15929
 
    pw32*)
15930
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
15931
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15932
 
      ;;
15933
 
    esac
15934
 
    ;;
15935
 
 
15936
 
  *)
15937
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15938
 
    ;;
15939
 
  esac
15940
 
  dynamic_linker='Win32 ld.exe'
15941
 
  # FIXME: first we should search . and the directory the executable is in
15942
 
  shlibpath_var=PATH
15943
 
  ;;
15944
 
 
15945
 
darwin* | rhapsody*)
15946
 
  dynamic_linker="$host_os dyld"
15947
 
  version_type=darwin
15948
 
  need_lib_prefix=no
15949
 
  need_version=no
15950
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15951
 
  soname_spec='${libname}${release}${major}$shared_ext'
15952
 
  shlibpath_overrides_runpath=yes
15953
 
  shlibpath_var=DYLD_LIBRARY_PATH
15954
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
15955
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15956
 
  if test "$GCC" = yes; then
15957
 
    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"`
15958
 
  else
15959
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15960
 
  fi
15961
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15962
 
  ;;
15963
 
 
15964
 
dgux*)
15965
 
  version_type=linux
15966
 
  need_lib_prefix=no
15967
 
  need_version=no
15968
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15969
 
  soname_spec='${libname}${release}${shared_ext}$major'
15970
 
  shlibpath_var=LD_LIBRARY_PATH
15971
 
  ;;
15972
 
 
15973
 
freebsd1*)
15974
 
  dynamic_linker=no
15975
 
  ;;
15976
 
 
15977
 
kfreebsd*-gnu)
15978
 
  version_type=linux
15979
 
  need_lib_prefix=no
15980
 
  need_version=no
15981
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15982
 
  soname_spec='${libname}${release}${shared_ext}$major'
15983
 
  shlibpath_var=LD_LIBRARY_PATH
15984
 
  shlibpath_overrides_runpath=no
15985
 
  hardcode_into_libs=yes
15986
 
  dynamic_linker='GNU ld.so'
15987
 
  ;;
15988
 
 
15989
 
freebsd* | dragonfly*)
15990
 
  # DragonFly does not have aout.  When/if they implement a new
15991
 
  # versioning mechanism, adjust this.
15992
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15993
 
  version_type=freebsd-$objformat
15994
 
  case $version_type in
15995
 
    freebsd-elf*)
15996
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15997
 
      need_version=no
15998
 
      need_lib_prefix=no
15999
 
      ;;
16000
 
    freebsd-*)
16001
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16002
 
      need_version=yes
16003
 
      ;;
16004
 
  esac
16005
 
  shlibpath_var=LD_LIBRARY_PATH
16006
 
  case $host_os in
16007
 
  freebsd2*)
16008
 
    shlibpath_overrides_runpath=yes
16009
 
    ;;
16010
 
  freebsd3.[01]* | freebsdelf3.[01]*)
16011
 
    shlibpath_overrides_runpath=yes
16012
 
    hardcode_into_libs=yes
16013
 
    ;;
16014
 
  *) # from 3.2 on
16015
 
    shlibpath_overrides_runpath=no
16016
 
    hardcode_into_libs=yes
16017
 
    ;;
16018
 
  esac
16019
 
  ;;
16020
 
 
16021
 
gnu*)
16022
 
  version_type=linux
16023
 
  need_lib_prefix=no
16024
 
  need_version=no
16025
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16026
 
  soname_spec='${libname}${release}${shared_ext}$major'
16027
 
  shlibpath_var=LD_LIBRARY_PATH
16028
 
  hardcode_into_libs=yes
16029
 
  ;;
16030
 
 
16031
 
hpux9* | hpux10* | hpux11*)
16032
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
16033
 
  # link against other versions.
16034
 
  version_type=sunos
16035
 
  need_lib_prefix=no
16036
 
  need_version=no
16037
 
  case "$host_cpu" in
16038
 
  ia64*)
16039
 
    shrext_cmds='.so'
16040
 
    hardcode_into_libs=yes
16041
 
    dynamic_linker="$host_os dld.so"
16042
 
    shlibpath_var=LD_LIBRARY_PATH
16043
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16044
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16045
 
    soname_spec='${libname}${release}${shared_ext}$major'
16046
 
    if test "X$HPUX_IA64_MODE" = X32; then
16047
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16048
 
    else
16049
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16050
 
    fi
16051
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16052
 
    ;;
16053
 
   hppa*64*)
16054
 
     shrext_cmds='.sl'
16055
 
     hardcode_into_libs=yes
16056
 
     dynamic_linker="$host_os dld.sl"
16057
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16058
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16059
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16060
 
     soname_spec='${libname}${release}${shared_ext}$major'
16061
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16062
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16063
 
     ;;
16064
 
   *)
16065
 
    shrext_cmds='.sl'
16066
 
    dynamic_linker="$host_os dld.sl"
16067
 
    shlibpath_var=SHLIB_PATH
16068
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16069
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16070
 
    soname_spec='${libname}${release}${shared_ext}$major'
16071
 
    ;;
16072
 
  esac
16073
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16074
 
  postinstall_cmds='chmod 555 $lib'
16075
 
  ;;
16076
 
 
16077
 
irix5* | irix6* | nonstopux*)
16078
 
  case $host_os in
16079
 
    nonstopux*) version_type=nonstopux ;;
16080
 
    *)
16081
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
16082
 
                version_type=linux
16083
 
        else
16084
 
                version_type=irix
16085
 
        fi ;;
16086
 
  esac
16087
 
  need_lib_prefix=no
16088
 
  need_version=no
16089
 
  soname_spec='${libname}${release}${shared_ext}$major'
16090
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16091
 
  case $host_os in
16092
 
  irix5* | nonstopux*)
16093
 
    libsuff= shlibsuff=
16094
 
    ;;
16095
 
  *)
16096
 
    case $LD in # libtool.m4 will add one of these switches to LD
16097
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16098
 
      libsuff= shlibsuff= libmagic=32-bit;;
16099
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16100
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
16101
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16102
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16103
 
    *) libsuff= shlibsuff= libmagic=never-match;;
16104
 
    esac
16105
 
    ;;
16106
 
  esac
16107
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16108
 
  shlibpath_overrides_runpath=no
16109
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16110
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16111
 
  hardcode_into_libs=yes
16112
 
  ;;
16113
 
 
16114
 
# No shared lib support for Linux oldld, aout, or coff.
16115
 
linux*oldld* | linux*aout* | linux*coff*)
16116
 
  dynamic_linker=no
16117
 
  ;;
16118
 
 
16119
 
# This must be Linux ELF.
16120
 
linux*)
16121
 
  version_type=linux
16122
 
  need_lib_prefix=no
16123
 
  need_version=no
16124
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16125
 
  soname_spec='${libname}${release}${shared_ext}$major'
16126
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16127
 
  shlibpath_var=LD_LIBRARY_PATH
16128
 
  shlibpath_overrides_runpath=no
16129
 
  # This implies no fast_install, which is unacceptable.
16130
 
  # Some rework will be needed to allow for fast_install
16131
 
  # before this can be enabled.
16132
 
  hardcode_into_libs=yes
16133
 
 
16134
 
  # Append ld.so.conf contents to the search path
16135
 
  if test -f /etc/ld.so.conf; then
16136
 
    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/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16137
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16138
 
  fi
16139
 
 
16140
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
16141
 
  # powerpc, because MkLinux only supported shared libraries with the
16142
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
16143
 
  # most powerpc-linux boxes support dynamic linking these days and
16144
 
  # people can always --disable-shared, the test was removed, and we
16145
 
  # assume the GNU/Linux dynamic linker is in use.
16146
 
  dynamic_linker='GNU/Linux ld.so'
16147
 
  ;;
16148
 
 
16149
 
knetbsd*-gnu)
16150
 
  version_type=linux
16151
 
  need_lib_prefix=no
16152
 
  need_version=no
16153
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16154
 
  soname_spec='${libname}${release}${shared_ext}$major'
16155
 
  shlibpath_var=LD_LIBRARY_PATH
16156
 
  shlibpath_overrides_runpath=no
16157
 
  hardcode_into_libs=yes
16158
 
  dynamic_linker='GNU ld.so'
16159
 
  ;;
16160
 
 
16161
 
netbsd*)
16162
 
  version_type=sunos
16163
 
  need_lib_prefix=no
16164
 
  need_version=no
16165
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16166
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16167
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16168
 
    dynamic_linker='NetBSD (a.out) ld.so'
16169
 
  else
16170
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16171
 
    soname_spec='${libname}${release}${shared_ext}$major'
16172
 
    dynamic_linker='NetBSD ld.elf_so'
16173
 
  fi
16174
 
  shlibpath_var=LD_LIBRARY_PATH
16175
 
  shlibpath_overrides_runpath=yes
16176
 
  hardcode_into_libs=yes
16177
 
  ;;
16178
 
 
16179
 
newsos6)
16180
 
  version_type=linux
16181
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16182
 
  shlibpath_var=LD_LIBRARY_PATH
16183
 
  shlibpath_overrides_runpath=yes
16184
 
  ;;
16185
 
 
16186
 
nto-qnx*)
16187
 
  version_type=linux
16188
 
  need_lib_prefix=no
16189
 
  need_version=no
16190
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16191
 
  soname_spec='${libname}${release}${shared_ext}$major'
16192
 
  shlibpath_var=LD_LIBRARY_PATH
16193
 
  shlibpath_overrides_runpath=yes
16194
 
  ;;
16195
 
 
16196
 
openbsd*)
16197
 
  version_type=sunos
16198
 
  need_lib_prefix=no
16199
 
  need_version=no
16200
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16201
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16202
 
  shlibpath_var=LD_LIBRARY_PATH
16203
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16204
 
    case $host_os in
16205
 
      openbsd2.[89] | openbsd2.[89].*)
16206
 
        shlibpath_overrides_runpath=no
16207
 
        ;;
16208
 
      *)
16209
 
        shlibpath_overrides_runpath=yes
16210
 
        ;;
16211
 
      esac
16212
 
  else
16213
 
    shlibpath_overrides_runpath=yes
16214
 
  fi
16215
 
  ;;
16216
 
 
16217
 
os2*)
16218
 
  libname_spec='$name'
16219
 
  shrext_cmds=".dll"
16220
 
  need_lib_prefix=no
16221
 
  library_names_spec='$libname${shared_ext} $libname.a'
16222
 
  dynamic_linker='OS/2 ld.exe'
16223
 
  shlibpath_var=LIBPATH
16224
 
  ;;
16225
 
 
16226
 
osf3* | osf4* | osf5*)
16227
 
  version_type=osf
16228
 
  need_lib_prefix=no
16229
 
  need_version=no
16230
 
  soname_spec='${libname}${release}${shared_ext}$major'
16231
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16232
 
  shlibpath_var=LD_LIBRARY_PATH
16233
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16234
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16235
 
  ;;
16236
 
 
16237
 
sco3.2v5*)
16238
 
  version_type=osf
16239
 
  soname_spec='${libname}${release}${shared_ext}$major'
16240
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16241
 
  shlibpath_var=LD_LIBRARY_PATH
16242
 
  ;;
16243
 
 
16244
 
solaris*)
16245
 
  version_type=linux
16246
 
  need_lib_prefix=no
16247
 
  need_version=no
16248
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16249
 
  soname_spec='${libname}${release}${shared_ext}$major'
16250
 
  shlibpath_var=LD_LIBRARY_PATH
16251
 
  shlibpath_overrides_runpath=yes
16252
 
  hardcode_into_libs=yes
16253
 
  # ldd complains unless libraries are executable
16254
 
  postinstall_cmds='chmod +x $lib'
16255
 
  ;;
16256
 
 
16257
 
sunos4*)
16258
 
  version_type=sunos
16259
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16260
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16261
 
  shlibpath_var=LD_LIBRARY_PATH
16262
 
  shlibpath_overrides_runpath=yes
16263
 
  if test "$with_gnu_ld" = yes; then
16264
 
    need_lib_prefix=no
16265
 
  fi
16266
 
  need_version=yes
16267
 
  ;;
16268
 
 
16269
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16270
 
  version_type=linux
16271
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16272
 
  soname_spec='${libname}${release}${shared_ext}$major'
16273
 
  shlibpath_var=LD_LIBRARY_PATH
16274
 
  case $host_vendor in
16275
 
    sni)
16276
 
      shlibpath_overrides_runpath=no
16277
 
      need_lib_prefix=no
16278
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
16279
 
      runpath_var=LD_RUN_PATH
16280
 
      ;;
16281
 
    siemens)
16282
 
      need_lib_prefix=no
16283
 
      ;;
16284
 
    motorola)
16285
 
      need_lib_prefix=no
16286
 
      need_version=no
16287
 
      shlibpath_overrides_runpath=no
16288
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16289
 
      ;;
16290
 
  esac
16291
 
  ;;
16292
 
 
16293
 
sysv4*MP*)
16294
 
  if test -d /usr/nec ;then
16295
 
    version_type=linux
16296
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16297
 
    soname_spec='$libname${shared_ext}.$major'
16298
 
    shlibpath_var=LD_LIBRARY_PATH
16299
 
  fi
16300
 
  ;;
16301
 
 
16302
 
uts4*)
16303
 
  version_type=linux
16304
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16305
 
  soname_spec='${libname}${release}${shared_ext}$major'
16306
 
  shlibpath_var=LD_LIBRARY_PATH
16307
 
  ;;
16308
 
 
16309
 
*)
16310
 
  dynamic_linker=no
16311
 
  ;;
16312
 
esac
16313
 
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16314
 
echo "${ECHO_T}$dynamic_linker" >&6
16315
 
test "$dynamic_linker" = no && can_build_shared=no
16316
 
 
16317
 
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16318
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16319
 
hardcode_action_F77=
16320
 
if test -n "$hardcode_libdir_flag_spec_F77" || \
16321
 
   test -n "$runpath_var_F77" || \
16322
 
   test "X$hardcode_automatic_F77" = "Xyes" ; then
16323
 
 
16324
 
  # We can hardcode non-existant directories.
16325
 
  if test "$hardcode_direct_F77" != no &&
16326
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16327
 
     # have to relink, otherwise we might link with an installed library
16328
 
     # when we should be linking with a yet-to-be-installed one
16329
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16330
 
     test "$hardcode_minus_L_F77" != no; then
16331
 
    # Linking always hardcodes the temporary library directory.
16332
 
    hardcode_action_F77=relink
16333
 
  else
16334
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16335
 
    hardcode_action_F77=immediate
16336
 
  fi
16337
 
else
16338
 
  # We cannot hardcode anything, or else we can only hardcode existing
16339
 
  # directories.
16340
 
  hardcode_action_F77=unsupported
16341
 
fi
16342
 
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16343
 
echo "${ECHO_T}$hardcode_action_F77" >&6
16344
 
 
16345
 
if test "$hardcode_action_F77" = relink; then
16346
 
  # Fast installation is not supported
16347
 
  enable_fast_install=no
16348
 
elif test "$shlibpath_overrides_runpath" = yes ||
16349
 
     test "$enable_shared" = no; then
16350
 
  # Fast installation is not necessary
16351
 
  enable_fast_install=needless
16352
 
fi
16353
 
 
16354
 
striplib=
16355
 
old_striplib=
16356
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16357
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16358
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16359
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16360
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16361
 
  echo "$as_me:$LINENO: result: yes" >&5
16362
 
echo "${ECHO_T}yes" >&6
16363
 
else
16364
 
# FIXME - insert some real tests, host_os isn't really good enough
16365
 
  case $host_os in
16366
 
   darwin*)
16367
 
       if test -n "$STRIP" ; then
16368
 
         striplib="$STRIP -x"
16369
 
         echo "$as_me:$LINENO: result: yes" >&5
16370
 
echo "${ECHO_T}yes" >&6
16371
 
       else
16372
 
  echo "$as_me:$LINENO: result: no" >&5
16373
 
echo "${ECHO_T}no" >&6
16374
 
fi
16375
 
       ;;
16376
 
   *)
16377
 
  echo "$as_me:$LINENO: result: no" >&5
16378
 
echo "${ECHO_T}no" >&6
16379
 
    ;;
16380
 
  esac
16381
 
fi
16382
 
 
16383
 
 
16384
 
 
16385
 
# The else clause should only fire when bootstrapping the
16386
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
16387
 
# with your package, and you will get complaints that there are
16388
 
# no rules to generate ltmain.sh.
16389
 
if test -f "$ltmain"; then
16390
 
  # See if we are running on zsh, and set the options which allow our commands through
16391
 
  # without removal of \ escapes.
16392
 
  if test -n "${ZSH_VERSION+set}" ; then
16393
 
    setopt NO_GLOB_SUBST
16394
 
  fi
16395
 
  # Now quote all the things that may contain metacharacters while being
16396
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
16397
 
  # variables and quote the copies for generation of the libtool script.
16398
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS AS EGREP RANLIB LN_S LTCC NM \
16399
 
    SED SHELL STRIP \
16400
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16401
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16402
 
    deplibs_check_method reload_flag reload_cmds need_locks \
16403
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16404
 
    lt_cv_sys_global_symbol_to_c_name_address \
16405
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16406
 
    old_postinstall_cmds old_postuninstall_cmds \
16407
 
    compiler_F77 \
16408
 
    CC_F77 \
16409
 
    LD_F77 \
16410
 
    lt_prog_compiler_wl_F77 \
16411
 
    lt_prog_compiler_pic_F77 \
16412
 
    lt_prog_compiler_static_F77 \
16413
 
    lt_prog_compiler_no_builtin_flag_F77 \
16414
 
    export_dynamic_flag_spec_F77 \
16415
 
    thread_safe_flag_spec_F77 \
16416
 
    whole_archive_flag_spec_F77 \
16417
 
    enable_shared_with_static_runtimes_F77 \
16418
 
    old_archive_cmds_F77 \
16419
 
    old_archive_from_new_cmds_F77 \
16420
 
    predep_objects_F77 \
16421
 
    postdep_objects_F77 \
16422
 
    predeps_F77 \
16423
 
    postdeps_F77 \
16424
 
    compiler_lib_search_path_F77 \
16425
 
    archive_cmds_F77 \
16426
 
    archive_expsym_cmds_F77 \
16427
 
    postinstall_cmds_F77 \
16428
 
    postuninstall_cmds_F77 \
16429
 
    old_archive_from_expsyms_cmds_F77 \
16430
 
    allow_undefined_flag_F77 \
16431
 
    no_undefined_flag_F77 \
16432
 
    export_symbols_cmds_F77 \
16433
 
    hardcode_libdir_flag_spec_F77 \
16434
 
    hardcode_libdir_flag_spec_ld_F77 \
16435
 
    hardcode_libdir_separator_F77 \
16436
 
    hardcode_automatic_F77 \
16437
 
    module_cmds_F77 \
16438
 
    module_expsym_cmds_F77 \
16439
 
    lt_cv_prog_compiler_c_o_F77 \
16440
 
    exclude_expsyms_F77 \
16441
 
    include_expsyms_F77; do
16442
 
 
16443
 
    case $var in
16444
 
    old_archive_cmds_F77 | \
16445
 
    old_archive_from_new_cmds_F77 | \
16446
 
    archive_cmds_F77 | \
16447
 
    archive_expsym_cmds_F77 | \
16448
 
    module_cmds_F77 | \
16449
 
    module_expsym_cmds_F77 | \
16450
 
    old_archive_from_expsyms_cmds_F77 | \
16451
 
    export_symbols_cmds_F77 | \
16452
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
16453
 
    postinstall_cmds | postuninstall_cmds | \
16454
 
    old_postinstall_cmds | old_postuninstall_cmds | \
16455
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16456
 
      # Double-quote double-evaled strings.
16457
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16458
 
      ;;
16459
 
    *)
16460
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16461
 
      ;;
16462
 
    esac
16463
 
  done
16464
 
 
16465
 
  case $lt_echo in
16466
 
  *'\$0 --fallback-echo"')
16467
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16468
 
    ;;
16469
 
  esac
16470
 
 
16471
 
cfgfile="$ofile"
16472
 
 
16473
 
  cat <<__EOF__ >> "$cfgfile"
16474
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16475
 
 
16476
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16477
 
 
16478
 
# Shell to use when invoking shell scripts.
16479
 
SHELL=$lt_SHELL
16480
 
 
16481
 
# Whether or not to build shared libraries.
16482
 
build_libtool_libs=$enable_shared
16483
 
 
16484
 
# Whether or not to build static libraries.
16485
 
build_old_libs=$enable_static
16486
 
 
16487
 
# Whether or not to add -lc for building shared libraries.
16488
 
build_libtool_need_lc=$archive_cmds_need_lc_F77
16489
 
 
16490
 
# Whether or not to disallow shared libs when runtime libs are static
16491
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16492
 
 
16493
 
# Whether or not to optimize for fast installation.
16494
 
fast_install=$enable_fast_install
16495
 
 
16496
 
# The host system.
16497
 
host_alias=$host_alias
16498
 
host=$host
16499
 
host_os=$host_os
16500
 
 
16501
 
# The build system.
16502
 
build_alias=$build_alias
16503
 
build=$build
16504
 
build_os=$build_os
16505
 
 
16506
 
# An echo program that does not interpret backslashes.
16507
 
echo=$lt_echo
16508
 
 
16509
 
# The archiver.
16510
 
AR=$lt_AR
16511
 
AR_FLAGS=$lt_AR_FLAGS
16512
 
 
16513
 
# A C compiler.
16514
 
LTCC=$lt_LTCC
16515
 
 
16516
 
# A language-specific compiler.
16517
 
CC=$lt_compiler_F77
16518
 
 
16519
 
# Is the compiler the GNU C compiler?
16520
 
with_gcc=$GCC_F77
16521
 
 
16522
 
# An ERE matcher.
16523
 
EGREP=$lt_EGREP
16524
 
 
16525
 
# The linker used to build libraries.
16526
 
LD=$lt_LD_F77
16527
 
 
16528
 
# Whether we need hard or soft links.
16529
 
LN_S=$lt_LN_S
16530
 
 
16531
 
# A BSD-compatible nm program.
16532
 
NM=$lt_NM
16533
 
 
16534
 
# A symbol stripping program
16535
 
STRIP=$lt_STRIP
16536
 
 
16537
 
# Used to examine libraries when file_magic_cmd begins "file"
16538
 
MAGIC_CMD=$MAGIC_CMD
16539
 
 
16540
 
# Used on cygwin: DLL creation program.
16541
 
DLLTOOL="$DLLTOOL"
16542
 
 
16543
 
# Used on cygwin: object dumper.
16544
 
OBJDUMP="$OBJDUMP"
16545
 
 
16546
 
# Used on cygwin: assembler.
16547
 
AS=$lt_AS
16548
 
 
16549
 
# The name of the directory that contains temporary libtool files.
16550
 
objdir=$objdir
16551
 
 
16552
 
# How to create reloadable object files.
16553
 
reload_flag=$lt_reload_flag
16554
 
reload_cmds=$lt_reload_cmds
16555
 
 
16556
 
# How to pass a linker flag through the compiler.
16557
 
wl=$lt_lt_prog_compiler_wl_F77
16558
 
 
16559
 
# Object file suffix (normally "o").
16560
 
objext="$ac_objext"
16561
 
 
16562
 
# Old archive suffix (normally "a").
16563
 
libext="$libext"
16564
 
 
16565
 
# Shared library suffix (normally ".so").
16566
 
shrext_cmds='$shrext_cmds'
16567
 
 
16568
 
# Executable file suffix (normally "").
16569
 
exeext="$exeext"
16570
 
 
16571
 
# Additional compiler flags for building library objects.
16572
 
pic_flag=$lt_lt_prog_compiler_pic_F77
16573
 
pic_mode=$pic_mode
16574
 
 
16575
 
# What is the maximum length of a command?
16576
 
max_cmd_len=$lt_cv_sys_max_cmd_len
16577
 
 
16578
 
# Does compiler simultaneously support -c and -o options?
16579
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16580
 
 
16581
 
# Must we lock files when doing compilation ?
16582
 
need_locks=$lt_need_locks
16583
 
 
16584
 
# Do we need the lib prefix for modules?
16585
 
need_lib_prefix=$need_lib_prefix
16586
 
 
16587
 
# Do we need a version for libraries?
16588
 
need_version=$need_version
16589
 
 
16590
 
# Whether dlopen is supported.
16591
 
dlopen_support=$enable_dlopen
16592
 
 
16593
 
# Whether dlopen of programs is supported.
16594
 
dlopen_self=$enable_dlopen_self
16595
 
 
16596
 
# Whether dlopen of statically linked programs is supported.
16597
 
dlopen_self_static=$enable_dlopen_self_static
16598
 
 
16599
 
# Compiler flag to prevent dynamic linking.
16600
 
link_static_flag=$lt_lt_prog_compiler_static_F77
16601
 
 
16602
 
# Compiler flag to turn off builtin functions.
16603
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16604
 
 
16605
 
# Compiler flag to allow reflexive dlopens.
16606
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16607
 
 
16608
 
# Compiler flag to generate shared objects directly from archives.
16609
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16610
 
 
16611
 
# Compiler flag to generate thread-safe objects.
16612
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16613
 
 
16614
 
# Library versioning type.
16615
 
version_type=$version_type
16616
 
 
16617
 
# Format of library name prefix.
16618
 
libname_spec=$lt_libname_spec
16619
 
 
16620
 
# List of archive names.  First name is the real one, the rest are links.
16621
 
# The last name is the one that the linker finds with -lNAME.
16622
 
library_names_spec=$lt_library_names_spec
16623
 
 
16624
 
# The coded name of the library, if different from the real name.
16625
 
soname_spec=$lt_soname_spec
16626
 
 
16627
 
# Commands used to build and install an old-style archive.
16628
 
RANLIB=$lt_RANLIB
16629
 
old_archive_cmds=$lt_old_archive_cmds_F77
16630
 
old_postinstall_cmds=$lt_old_postinstall_cmds
16631
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16632
 
 
16633
 
# Create an old-style archive from a shared archive.
16634
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16635
 
 
16636
 
# Create a temporary old-style archive to link instead of a shared archive.
16637
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16638
 
 
16639
 
# Commands used to build and install a shared archive.
16640
 
archive_cmds=$lt_archive_cmds_F77
16641
 
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16642
 
postinstall_cmds=$lt_postinstall_cmds
16643
 
postuninstall_cmds=$lt_postuninstall_cmds
16644
 
 
16645
 
# Commands used to build a loadable module (assumed same as above if empty)
16646
 
module_cmds=$lt_module_cmds_F77
16647
 
module_expsym_cmds=$lt_module_expsym_cmds_F77
16648
 
 
16649
 
# Commands to strip libraries.
16650
 
old_striplib=$lt_old_striplib
16651
 
striplib=$lt_striplib
16652
 
 
16653
 
# Dependencies to place before the objects being linked to create a
16654
 
# shared library.
16655
 
predep_objects=$lt_predep_objects_F77
16656
 
 
16657
 
# Dependencies to place after the objects being linked to create a
16658
 
# shared library.
16659
 
postdep_objects=$lt_postdep_objects_F77
16660
 
 
16661
 
# Dependencies to place before the objects being linked to create a
16662
 
# shared library.
16663
 
predeps=$lt_predeps_F77
16664
 
 
16665
 
# Dependencies to place after the objects being linked to create a
16666
 
# shared library.
16667
 
postdeps=$lt_postdeps_F77
16668
 
 
16669
 
# The library search path used internally by the compiler when linking
16670
 
# a shared library.
16671
 
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16672
 
 
16673
 
# Method to check whether dependent libraries are shared objects.
16674
 
deplibs_check_method=$lt_deplibs_check_method
16675
 
 
16676
 
# Command to use when deplibs_check_method == file_magic.
16677
 
file_magic_cmd=$lt_file_magic_cmd
16678
 
 
16679
 
# Flag that allows shared libraries with undefined symbols to be built.
16680
 
allow_undefined_flag=$lt_allow_undefined_flag_F77
16681
 
 
16682
 
# Flag that forces no undefined symbols.
16683
 
no_undefined_flag=$lt_no_undefined_flag_F77
16684
 
 
16685
 
# Commands used to finish a libtool library installation in a directory.
16686
 
finish_cmds=$lt_finish_cmds
16687
 
 
16688
 
# Same as above, but a single script fragment to be evaled but not shown.
16689
 
finish_eval=$lt_finish_eval
16690
 
 
16691
 
# Take the output of nm and produce a listing of raw symbols and C names.
16692
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16693
 
 
16694
 
# Transform the output of nm in a proper C declaration
16695
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16696
 
 
16697
 
# Transform the output of nm in a C name address pair
16698
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16699
 
 
16700
 
# This is the shared library runtime path variable.
16701
 
runpath_var=$runpath_var
16702
 
 
16703
 
# This is the shared library path variable.
16704
 
shlibpath_var=$shlibpath_var
16705
 
 
16706
 
# Is shlibpath searched before the hard-coded library search path?
16707
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16708
 
 
16709
 
# How to hardcode a shared library path into an executable.
16710
 
hardcode_action=$hardcode_action_F77
16711
 
 
16712
 
# Whether we should hardcode library paths into libraries.
16713
 
hardcode_into_libs=$hardcode_into_libs
16714
 
 
16715
 
# Flag to hardcode \$libdir into a binary during linking.
16716
 
# This must work even if \$libdir does not exist.
16717
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16718
 
 
16719
 
# If ld is used when linking, flag to hardcode \$libdir into
16720
 
# a binary during linking. This must work even if \$libdir does
16721
 
# not exist.
16722
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16723
 
 
16724
 
# Whether we need a single -rpath flag with a separated argument.
16725
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16726
 
 
16727
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16728
 
# resulting binary.
16729
 
hardcode_direct=$hardcode_direct_F77
16730
 
 
16731
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16732
 
# resulting binary.
16733
 
hardcode_minus_L=$hardcode_minus_L_F77
16734
 
 
16735
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16736
 
# the resulting binary.
16737
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16738
 
 
16739
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
16740
 
# and all subsequent libraries and executables linked against it.
16741
 
hardcode_automatic=$hardcode_automatic_F77
16742
 
 
16743
 
# Variables whose values should be saved in libtool wrapper scripts and
16744
 
# restored at relink time.
16745
 
variables_saved_for_relink="$variables_saved_for_relink"
16746
 
 
16747
 
# Whether libtool must link a program against all its dependency libraries.
16748
 
link_all_deplibs=$link_all_deplibs_F77
16749
 
 
16750
 
# Compile-time system search path for libraries
16751
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16752
 
 
16753
 
# Run-time system search path for libraries
16754
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16755
 
 
16756
 
# Fix the shell variable \$srcfile for the compiler.
16757
 
fix_srcfile_path="$fix_srcfile_path_F77"
16758
 
 
16759
 
# Set to yes if exported symbols are required.
16760
 
always_export_symbols=$always_export_symbols_F77
16761
 
 
16762
 
# The commands to list exported symbols.
16763
 
export_symbols_cmds=$lt_export_symbols_cmds_F77
16764
 
 
16765
 
# The commands to extract the exported symbol list from a shared archive.
16766
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16767
 
 
16768
 
# Symbols that should not be listed in the preloaded symbols.
16769
 
exclude_expsyms=$lt_exclude_expsyms_F77
16770
 
 
16771
 
# Symbols that must always be exported.
16772
 
include_expsyms=$lt_include_expsyms_F77
16773
 
 
16774
 
# ### END LIBTOOL TAG CONFIG: $tagname
16775
 
 
16776
 
__EOF__
16777
 
 
16778
 
 
16779
 
else
16780
 
  # If there is no Makefile yet, we rely on a make rule to execute
16781
 
  # `config.status --recheck' to rerun these tests and create the
16782
 
  # libtool script then.
16783
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16784
 
  if test -f "$ltmain_in"; then
16785
 
    test -f Makefile && make "$ltmain"
16786
 
  fi
16787
 
fi
16788
 
 
16789
 
 
16790
 
ac_ext=c
16791
 
ac_cpp='$CPP $CPPFLAGS'
16792
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16793
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16794
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16795
 
 
16796
 
CC="$lt_save_CC"
16797
 
 
16798
 
        else
16799
 
          tagname=""
16800
 
        fi
16801
 
        ;;
16802
 
 
16803
 
      GCJ)
16804
 
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16805
 
          
16806
 
 
16807
 
 
16808
 
# Source file extension for Java test sources.
16809
 
ac_ext=java
16810
 
 
16811
 
# Object file extension for compiled Java test sources.
16812
 
objext=o
16813
 
objext_GCJ=$objext
16814
 
 
16815
 
# Code to be used in simple compile tests
16816
 
lt_simple_compile_test_code="class foo {}\n"
16817
 
 
16818
 
# Code to be used in simple link tests
16819
 
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16820
 
 
16821
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16822
 
 
16823
 
# If no C compiler was specified, use CC.
16824
 
LTCC=${LTCC-"$CC"}
16825
 
 
16826
 
# Allow CC to be a program name with arguments.
16827
 
compiler=$CC
16828
 
 
16829
 
 
16830
 
# Allow CC to be a program name with arguments.
16831
 
lt_save_CC="$CC"
16832
 
CC=${GCJ-"gcj"}
16833
 
compiler=$CC
16834
 
compiler_GCJ=$CC
16835
 
 
16836
 
# GCJ did not exist at the time GCC didn't implicitly link libc in.
16837
 
archive_cmds_need_lc_GCJ=no
16838
 
 
16839
 
## CAVEAT EMPTOR:
16840
 
## There is no encapsulation within the following macros, do not change
16841
 
## the running order or otherwise move them around unless you know exactly
16842
 
## what you are doing...
16843
 
 
16844
 
lt_prog_compiler_no_builtin_flag_GCJ=
16845
 
 
16846
 
if test "$GCC" = yes; then
16847
 
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16848
 
 
16849
 
  
16850
 
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16851
 
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16852
 
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16853
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
16854
 
else
16855
 
  lt_cv_prog_compiler_rtti_exceptions=no
16856
 
  ac_outfile=conftest.$ac_objext
16857
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16858
 
   lt_compiler_flag="-fno-rtti -fno-exceptions"
16859
 
   # Insert the option either (1) after the last *FLAGS variable, or
16860
 
   # (2) before a word containing "conftest.", or (3) at the end.
16861
 
   # Note that $ac_compile itself does not contain backslashes and begins
16862
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
16863
 
   # The option is referenced via a variable to avoid confusing sed.
16864
 
   lt_compile=`echo "$ac_compile" | $SED \
16865
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16866
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16867
 
   -e 's:$: $lt_compiler_flag:'`
16868
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16869
 
   (eval "$lt_compile" 2>conftest.err)
16870
 
   ac_status=$?
16871
 
   cat conftest.err >&5
16872
 
   echo "$as_me:__oline__: \$? = $ac_status" >&5
16873
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
16874
 
     # The compiler can only warn and ignore the option if not recognized
16875
 
     # So say no if there are warnings
16876
 
     if test ! -s conftest.err; then
16877
 
       lt_cv_prog_compiler_rtti_exceptions=yes
16878
 
     fi
16879
 
   fi
16880
 
   $rm conftest*
16881
 
 
16882
 
fi
16883
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16884
 
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16885
 
 
16886
 
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16887
 
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16888
 
else
16889
 
    :
16890
 
fi
16891
 
 
16892
 
fi
16893
 
 
16894
 
lt_prog_compiler_wl_GCJ=
16895
 
lt_prog_compiler_pic_GCJ=
16896
 
lt_prog_compiler_static_GCJ=
16897
 
 
16898
 
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16899
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16900
 
 
16901
 
  if test "$GCC" = yes; then
16902
 
    lt_prog_compiler_wl_GCJ='-Wl,'
16903
 
    lt_prog_compiler_static_GCJ='-static'
16904
 
 
16905
 
    case $host_os in
16906
 
      aix*)
16907
 
      # All AIX code is PIC.
16908
 
      if test "$host_cpu" = ia64; then
16909
 
        # AIX 5 now supports IA64 processor
16910
 
        lt_prog_compiler_static_GCJ='-Bstatic'
16911
 
      fi
16912
 
      ;;
16913
 
 
16914
 
    amigaos*)
16915
 
      # FIXME: we need at least 68020 code to build shared libraries, but
16916
 
      # adding the `-m68020' flag to GCC prevents building anything better,
16917
 
      # like `-m68040'.
16918
 
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16919
 
      ;;
16920
 
 
16921
 
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16922
 
      # PIC is the default for these OSes.
16923
 
      ;;
16924
 
 
16925
 
    mingw* | pw32* | os2*)
16926
 
      # This hack is so that the source file can tell whether it is being
16927
 
      # built for inclusion in a dll (and should export symbols for example).
16928
 
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16929
 
      ;;
16930
 
 
16931
 
    darwin* | rhapsody*)
16932
 
      # PIC is the default on this platform
16933
 
      # Common symbols not allowed in MH_DYLIB files
16934
 
      lt_prog_compiler_pic_GCJ='-fno-common'
16935
 
      ;;
16936
 
 
16937
 
    msdosdjgpp*)
16938
 
      # Just because we use GCC doesn't mean we suddenly get shared libraries
16939
 
      # on systems that don't support them.
16940
 
      lt_prog_compiler_can_build_shared_GCJ=no
16941
 
      enable_shared=no
16942
 
      ;;
16943
 
 
16944
 
    sysv4*MP*)
16945
 
      if test -d /usr/nec; then
16946
 
        lt_prog_compiler_pic_GCJ=-Kconform_pic
16947
 
      fi
16948
 
      ;;
16949
 
 
16950
 
    hpux*)
16951
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16952
 
      # not for PA HP-UX.
16953
 
      case "$host_cpu" in
16954
 
      hppa*64*|ia64*)
16955
 
        # +Z the default
16956
 
        ;;
16957
 
      *)
16958
 
        lt_prog_compiler_pic_GCJ='-fPIC'
16959
 
        ;;
16960
 
      esac
16961
 
      ;;
16962
 
 
16963
 
    *)
16964
 
      lt_prog_compiler_pic_GCJ='-fPIC'
16965
 
      ;;
16966
 
    esac
16967
 
  else
16968
 
    # PORTME Check for flag to pass linker flags through the system compiler.
16969
 
    case $host_os in
16970
 
    aix*)
16971
 
      lt_prog_compiler_wl_GCJ='-Wl,'
16972
 
      if test "$host_cpu" = ia64; then
16973
 
        # AIX 5 now supports IA64 processor
16974
 
        lt_prog_compiler_static_GCJ='-Bstatic'
16975
 
      else
16976
 
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16977
 
      fi
16978
 
      ;;
16979
 
      darwin*)
16980
 
        # PIC is the default on this platform
16981
 
        # Common symbols not allowed in MH_DYLIB files
16982
 
       case "$cc_basename" in
16983
 
         xlc*)
16984
 
         lt_prog_compiler_pic_GCJ='-qnocommon'
16985
 
         lt_prog_compiler_wl_GCJ='-Wl,'
16986
 
         ;;
16987
 
       esac
16988
 
       ;;
16989
 
 
16990
 
    mingw* | pw32* | os2*)
16991
 
      # This hack is so that the source file can tell whether it is being
16992
 
      # built for inclusion in a dll (and should export symbols for example).
16993
 
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16994
 
      ;;
16995
 
 
16996
 
    hpux9* | hpux10* | hpux11*)
16997
 
      lt_prog_compiler_wl_GCJ='-Wl,'
16998
 
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16999
 
      # not for PA HP-UX.
17000
 
      case "$host_cpu" in
17001
 
      hppa*64*|ia64*)
17002
 
        # +Z the default
17003
 
        ;;
17004
 
      *)
17005
 
        lt_prog_compiler_pic_GCJ='+Z'
17006
 
        ;;
17007
 
      esac
17008
 
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
17009
 
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17010
 
      ;;
17011
 
 
17012
 
    irix5* | irix6* | nonstopux*)
17013
 
      lt_prog_compiler_wl_GCJ='-Wl,'
17014
 
      # PIC (with -KPIC) is the default.
17015
 
      lt_prog_compiler_static_GCJ='-non_shared'
17016
 
      ;;
17017
 
 
17018
 
    newsos6)
17019
 
      lt_prog_compiler_pic_GCJ='-KPIC'
17020
 
      lt_prog_compiler_static_GCJ='-Bstatic'
17021
 
      ;;
17022
 
 
17023
 
    linux*)
17024
 
      case $cc_basename in
17025
 
      icc* | ecc*)
17026
 
        lt_prog_compiler_wl_GCJ='-Wl,'
17027
 
        lt_prog_compiler_pic_GCJ='-KPIC'
17028
 
        lt_prog_compiler_static_GCJ='-static'
17029
 
        ;;
17030
 
      pgcc | pgf77 | pgf90)
17031
 
        # Portland Group compilers (*not* the Pentium gcc compiler,
17032
 
        # which looks to be a dead project)
17033
 
        lt_prog_compiler_wl_GCJ='-Wl,'
17034
 
        lt_prog_compiler_pic_GCJ='-fpic'
17035
 
        lt_prog_compiler_static_GCJ='-static'
17036
 
        ;;
17037
 
      ccc*)
17038
 
        lt_prog_compiler_wl_GCJ='-Wl,'
17039
 
        # All Alpha code is PIC.
17040
 
        lt_prog_compiler_static_GCJ='-non_shared'
17041
 
        ;;
17042
 
      esac
17043
 
      ;;
17044
 
 
17045
 
    osf3* | osf4* | osf5*)
17046
 
      lt_prog_compiler_wl_GCJ='-Wl,'
17047
 
      # All OSF/1 code is PIC.
17048
 
      lt_prog_compiler_static_GCJ='-non_shared'
17049
 
      ;;
17050
 
 
17051
 
    sco3.2v5*)
17052
 
      lt_prog_compiler_pic_GCJ='-Kpic'
17053
 
      lt_prog_compiler_static_GCJ='-dn'
17054
 
      ;;
17055
 
 
17056
 
    solaris*)
17057
 
      lt_prog_compiler_wl_GCJ='-Wl,'
17058
 
      lt_prog_compiler_pic_GCJ='-KPIC'
17059
 
      lt_prog_compiler_static_GCJ='-Bstatic'
17060
 
      ;;
17061
 
 
17062
 
    sunos4*)
17063
 
      lt_prog_compiler_wl_GCJ='-Qoption ld '
17064
 
      lt_prog_compiler_pic_GCJ='-PIC'
17065
 
      lt_prog_compiler_static_GCJ='-Bstatic'
17066
 
      ;;
17067
 
 
17068
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17069
 
      lt_prog_compiler_wl_GCJ='-Wl,'
17070
 
      lt_prog_compiler_pic_GCJ='-KPIC'
17071
 
      lt_prog_compiler_static_GCJ='-Bstatic'
17072
 
      ;;
17073
 
 
17074
 
    sysv4*MP*)
17075
 
      if test -d /usr/nec ;then
17076
 
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
17077
 
        lt_prog_compiler_static_GCJ='-Bstatic'
17078
 
      fi
17079
 
      ;;
17080
 
 
17081
 
    unicos*)
17082
 
      lt_prog_compiler_wl_GCJ='-Wl,'
17083
 
      lt_prog_compiler_can_build_shared_GCJ=no
17084
 
      ;;
17085
 
 
17086
 
    uts4*)
17087
 
      lt_prog_compiler_pic_GCJ='-pic'
17088
 
      lt_prog_compiler_static_GCJ='-Bstatic'
17089
 
      ;;
17090
 
 
17091
 
    *)
17092
 
      lt_prog_compiler_can_build_shared_GCJ=no
17093
 
      ;;
17094
 
    esac
17095
 
  fi
17096
 
 
17097
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17098
 
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
17099
 
 
17100
 
#
17101
 
# Check to make sure the PIC flag actually works.
17102
 
#
17103
 
if test -n "$lt_prog_compiler_pic_GCJ"; then
17104
 
  
17105
 
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17106
 
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
17107
 
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17108
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17109
 
else
17110
 
  lt_prog_compiler_pic_works_GCJ=no
17111
 
  ac_outfile=conftest.$ac_objext
17112
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17113
 
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17114
 
   # Insert the option either (1) after the last *FLAGS variable, or
17115
 
   # (2) before a word containing "conftest.", or (3) at the end.
17116
 
   # Note that $ac_compile itself does not contain backslashes and begins
17117
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
17118
 
   # The option is referenced via a variable to avoid confusing sed.
17119
 
   lt_compile=`echo "$ac_compile" | $SED \
17120
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17121
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17122
 
   -e 's:$: $lt_compiler_flag:'`
17123
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
17124
 
   (eval "$lt_compile" 2>conftest.err)
17125
 
   ac_status=$?
17126
 
   cat conftest.err >&5
17127
 
   echo "$as_me:__oline__: \$? = $ac_status" >&5
17128
 
   if (exit $ac_status) && test -s "$ac_outfile"; then
17129
 
     # The compiler can only warn and ignore the option if not recognized
17130
 
     # So say no if there are warnings
17131
 
     if test ! -s conftest.err; then
17132
 
       lt_prog_compiler_pic_works_GCJ=yes
17133
 
     fi
17134
 
   fi
17135
 
   $rm conftest*
17136
 
 
17137
 
fi
17138
 
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17139
 
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
17140
 
 
17141
 
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17142
 
    case $lt_prog_compiler_pic_GCJ in
17143
 
     "" | " "*) ;;
17144
 
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17145
 
     esac
17146
 
else
17147
 
    lt_prog_compiler_pic_GCJ=
17148
 
     lt_prog_compiler_can_build_shared_GCJ=no
17149
 
fi
17150
 
 
17151
 
fi
17152
 
case "$host_os" in
17153
 
  # For platforms which do not support PIC, -DPIC is meaningless:
17154
 
  *djgpp*)
17155
 
    lt_prog_compiler_pic_GCJ=
17156
 
    ;;
17157
 
  *)
17158
 
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17159
 
    ;;
17160
 
esac
17161
 
 
17162
 
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17163
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17164
 
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17165
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
17166
 
else
17167
 
  lt_cv_prog_compiler_c_o_GCJ=no
17168
 
   $rm -r conftest 2>/dev/null
17169
 
   mkdir conftest
17170
 
   cd conftest
17171
 
   mkdir out
17172
 
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17173
 
 
17174
 
   lt_compiler_flag="-o out/conftest2.$ac_objext"
17175
 
   # Insert the option either (1) after the last *FLAGS variable, or
17176
 
   # (2) before a word containing "conftest.", or (3) at the end.
17177
 
   # Note that $ac_compile itself does not contain backslashes and begins
17178
 
   # with a dollar sign (not a hyphen), so the echo should work correctly.
17179
 
   lt_compile=`echo "$ac_compile" | $SED \
17180
 
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17181
 
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17182
 
   -e 's:$: $lt_compiler_flag:'`
17183
 
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
17184
 
   (eval "$lt_compile" 2>out/conftest.err)
17185
 
   ac_status=$?
17186
 
   cat out/conftest.err >&5
17187
 
   echo "$as_me:__oline__: \$? = $ac_status" >&5
17188
 
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17189
 
   then
17190
 
     # The compiler can only warn and ignore the option if not recognized
17191
 
     # So say no if there are warnings
17192
 
     if test ! -s out/conftest.err; then
17193
 
       lt_cv_prog_compiler_c_o_GCJ=yes
17194
 
     fi
17195
 
   fi
17196
 
   chmod u+w .
17197
 
   $rm conftest*
17198
 
   # SGI C++ compiler will create directory out/ii_files/ for
17199
 
   # template instantiation
17200
 
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17201
 
   $rm out/* && rmdir out
17202
 
   cd ..
17203
 
   rmdir conftest
17204
 
   $rm conftest*
17205
 
 
17206
 
fi
17207
 
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17208
 
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17209
 
 
17210
 
 
17211
 
hard_links="nottested"
17212
 
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17213
 
  # do not overwrite the value of need_locks provided by the user
17214
 
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17215
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17216
 
  hard_links=yes
17217
 
  $rm conftest*
17218
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17219
 
  touch conftest.a
17220
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
17221
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17222
 
  echo "$as_me:$LINENO: result: $hard_links" >&5
17223
 
echo "${ECHO_T}$hard_links" >&6
17224
 
  if test "$hard_links" = no; then
17225
 
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17226
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17227
 
    need_locks=warn
17228
 
  fi
17229
 
else
17230
 
  need_locks=no
17231
 
fi
17232
 
 
17233
 
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17234
 
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17235
 
 
17236
 
  runpath_var=
17237
 
  allow_undefined_flag_GCJ=
17238
 
  enable_shared_with_static_runtimes_GCJ=no
17239
 
  archive_cmds_GCJ=
17240
 
  archive_expsym_cmds_GCJ=
17241
 
  old_archive_From_new_cmds_GCJ=
17242
 
  old_archive_from_expsyms_cmds_GCJ=
17243
 
  export_dynamic_flag_spec_GCJ=
17244
 
  whole_archive_flag_spec_GCJ=
17245
 
  thread_safe_flag_spec_GCJ=
17246
 
  hardcode_libdir_flag_spec_GCJ=
17247
 
  hardcode_libdir_flag_spec_ld_GCJ=
17248
 
  hardcode_libdir_separator_GCJ=
17249
 
  hardcode_direct_GCJ=no
17250
 
  hardcode_minus_L_GCJ=no
17251
 
  hardcode_shlibpath_var_GCJ=unsupported
17252
 
  link_all_deplibs_GCJ=unknown
17253
 
  hardcode_automatic_GCJ=no
17254
 
  module_cmds_GCJ=
17255
 
  module_expsym_cmds_GCJ=
17256
 
  always_export_symbols_GCJ=no
17257
 
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17258
 
  # include_expsyms should be a list of space-separated symbols to be *always*
17259
 
  # included in the symbol list
17260
 
  include_expsyms_GCJ=
17261
 
  # exclude_expsyms can be an extended regexp of symbols to exclude
17262
 
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17263
 
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17264
 
  # as well as any symbol that contains `d'.
17265
 
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17266
 
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17267
 
  # platforms (ab)use it in PIC code, but their linkers get confused if
17268
 
  # the symbol is explicitly referenced.  Since portable code cannot
17269
 
  # rely on this symbol name, it's probably fine to never include it in
17270
 
  # preloaded symbol tables.
17271
 
  extract_expsyms_cmds=
17272
 
 
17273
 
  case $host_os in
17274
 
  cygwin* | mingw* | pw32*)
17275
 
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17276
 
    # When not using gcc, we currently assume that we are using
17277
 
    # Microsoft Visual C++.
17278
 
    if test "$GCC" != yes; then
17279
 
      with_gnu_ld=no
17280
 
    fi
17281
 
    ;;
17282
 
  openbsd*)
17283
 
    with_gnu_ld=no
17284
 
    ;;
17285
 
  esac
17286
 
 
17287
 
  ld_shlibs_GCJ=yes
17288
 
  if test "$with_gnu_ld" = yes; then
17289
 
    # If archive_cmds runs LD, not CC, wlarc should be empty
17290
 
    wlarc='${wl}'
17291
 
 
17292
 
    # See if GNU ld supports shared libraries.
17293
 
    case $host_os in
17294
 
    aix3* | aix4* | aix5*)
17295
 
      # On AIX/PPC, the GNU linker is very broken
17296
 
      if test "$host_cpu" != ia64; then
17297
 
        ld_shlibs_GCJ=no
17298
 
        cat <<EOF 1>&2
17299
 
 
17300
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17301
 
*** to be unable to reliably create shared libraries on AIX.
17302
 
*** Therefore, libtool is disabling shared libraries support.  If you
17303
 
*** really care for shared libraries, you may want to modify your PATH
17304
 
*** so that a non-GNU linker is found, and then restart.
17305
 
 
17306
 
EOF
17307
 
      fi
17308
 
      ;;
17309
 
 
17310
 
    amigaos*)
17311
 
      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)'
17312
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17313
 
      hardcode_minus_L_GCJ=yes
17314
 
 
17315
 
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17316
 
      # that the semantics of dynamic libraries on AmigaOS, at least up
17317
 
      # to version 4, is to share data among multiple programs linked
17318
 
      # with the same dynamic library.  Since this doesn't match the
17319
 
      # behavior of shared libraries on other platforms, we can't use
17320
 
      # them.
17321
 
      ld_shlibs_GCJ=no
17322
 
      ;;
17323
 
 
17324
 
    beos*)
17325
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17326
 
        allow_undefined_flag_GCJ=unsupported
17327
 
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17328
 
        # support --undefined.  This deserves some investigation.  FIXME
17329
 
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17330
 
      else
17331
 
        ld_shlibs_GCJ=no
17332
 
      fi
17333
 
      ;;
17334
 
 
17335
 
    cygwin* | mingw* | pw32*)
17336
 
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17337
 
      # as there is no search path for DLLs.
17338
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17339
 
      allow_undefined_flag_GCJ=unsupported
17340
 
      always_export_symbols_GCJ=no
17341
 
      enable_shared_with_static_runtimes_GCJ=yes
17342
 
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17343
 
 
17344
 
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17345
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17346
 
        # If the export-symbols file already is a .def file (1st line
17347
 
        # is EXPORTS), use it as is; otherwise, prepend...
17348
 
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17349
 
          cp $export_symbols $output_objdir/$soname.def;
17350
 
        else
17351
 
          echo EXPORTS > $output_objdir/$soname.def;
17352
 
          cat $export_symbols >> $output_objdir/$soname.def;
17353
 
        fi~
17354
 
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
17355
 
      else
17356
 
        ld_shlibs_GCJ=no
17357
 
      fi
17358
 
      ;;
17359
 
 
17360
 
    netbsd*)
17361
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17362
 
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17363
 
        wlarc=
17364
 
      else
17365
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17366
 
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17367
 
      fi
17368
 
      ;;
17369
 
 
17370
 
    solaris* | sysv5*)
17371
 
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17372
 
        ld_shlibs_GCJ=no
17373
 
        cat <<EOF 1>&2
17374
 
 
17375
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17376
 
*** create shared libraries on Solaris systems.  Therefore, libtool
17377
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
17378
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
17379
 
*** your PATH or compiler configuration so that the native linker is
17380
 
*** used, and then restart.
17381
 
 
17382
 
EOF
17383
 
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17384
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17385
 
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17386
 
      else
17387
 
        ld_shlibs_GCJ=no
17388
 
      fi
17389
 
      ;;
17390
 
 
17391
 
    sunos4*)
17392
 
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17393
 
      wlarc=
17394
 
      hardcode_direct_GCJ=yes
17395
 
      hardcode_shlibpath_var_GCJ=no
17396
 
      ;;
17397
 
 
17398
 
  linux*)
17399
 
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17400
 
      tmp_addflag=
17401
 
      case $CC,$host_cpu in
17402
 
      pgf77* | pgf90* )                 # Portland Group f77 and f90 compilers
17403
 
        tmp_addflag=' -fpic' ;;
17404
 
      ecc*,ia64* | icc*,ia64*)          # Intel C compiler on ia64
17405
 
        tmp_addflag=' -i_dynamic' ;;
17406
 
      efc*,ia64* | ifort*,ia64*)        # Intel Fortran compiler on ia64
17407
 
        tmp_addflag=' -i_dynamic -nofor_main' ;;
17408
 
      ifc* | ifort*)                    # Intel Fortran compiler
17409
 
        tmp_addflag=' -nofor_main' ;;
17410
 
      esac
17411
 
      archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17412
 
      supports_anon_versioning=no
17413
 
      case `$LD -v 2>/dev/null` in
17414
 
        *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17415
 
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17416
 
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17417
 
        *\ 2.11.*) ;; # other 2.11 versions
17418
 
        *) supports_anon_versioning=yes ;;
17419
 
      esac
17420
 
      if test $supports_anon_versioning = yes; then
17421
 
        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17422
 
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17423
 
$echo "local: *; };" >> $output_objdir/$libname.ver~
17424
 
        $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17425
 
      else
17426
 
        archive_expsym_cmds_GCJ=$archive_cmds_GCJ
17427
 
      fi
17428
 
    else
17429
 
      ld_shlibs_GCJ=no
17430
 
    fi
17431
 
    ;;
17432
 
 
17433
 
    *)
17434
 
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17435
 
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17436
 
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17437
 
      else
17438
 
        ld_shlibs_GCJ=no
17439
 
      fi
17440
 
      ;;
17441
 
    esac
17442
 
 
17443
 
    if test "$ld_shlibs_GCJ" = yes; then
17444
 
      runpath_var=LD_RUN_PATH
17445
 
      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17446
 
      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17447
 
      # ancient GNU ld didn't support --whole-archive et. al.
17448
 
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17449
 
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17450
 
      else
17451
 
        whole_archive_flag_spec_GCJ=
17452
 
      fi
17453
 
    fi
17454
 
  else
17455
 
    # PORTME fill in a description of your system's linker (not GNU ld)
17456
 
    case $host_os in
17457
 
    aix3*)
17458
 
      allow_undefined_flag_GCJ=unsupported
17459
 
      always_export_symbols_GCJ=yes
17460
 
      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'
17461
 
      # Note: this linker hardcodes the directories in LIBPATH if there
17462
 
      # are no directories specified by -L.
17463
 
      hardcode_minus_L_GCJ=yes
17464
 
      if test "$GCC" = yes && test -z "$link_static_flag"; then
17465
 
        # Neither direct hardcoding nor static linking is supported with a
17466
 
        # broken collect2.
17467
 
        hardcode_direct_GCJ=unsupported
17468
 
      fi
17469
 
      ;;
17470
 
 
17471
 
    aix4* | aix5*)
17472
 
      if test "$host_cpu" = ia64; then
17473
 
        # On IA64, the linker does run time linking by default, so we don't
17474
 
        # have to do anything special.
17475
 
        aix_use_runtimelinking=no
17476
 
        exp_sym_flag='-Bexport'
17477
 
        no_entry_flag=""
17478
 
      else
17479
 
        # If we're using GNU nm, then we don't want the "-C" option.
17480
 
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
17481
 
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17482
 
          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'
17483
 
        else
17484
 
          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'
17485
 
        fi
17486
 
        aix_use_runtimelinking=no
17487
 
 
17488
 
        # Test if we are trying to use run time linking or normal
17489
 
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17490
 
        # need to do runtime linking.
17491
 
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17492
 
          for ld_flag in $LDFLAGS; do
17493
 
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17494
 
            aix_use_runtimelinking=yes
17495
 
            break
17496
 
          fi
17497
 
          done
17498
 
        esac
17499
 
 
17500
 
        exp_sym_flag='-bexport'
17501
 
        no_entry_flag='-bnoentry'
17502
 
      fi
17503
 
 
17504
 
      # When large executables or shared objects are built, AIX ld can
17505
 
      # have problems creating the table of contents.  If linking a library
17506
 
      # or program results in "error TOC overflow" add -mminimal-toc to
17507
 
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17508
 
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17509
 
 
17510
 
      archive_cmds_GCJ=''
17511
 
      hardcode_direct_GCJ=yes
17512
 
      hardcode_libdir_separator_GCJ=':'
17513
 
      link_all_deplibs_GCJ=yes
17514
 
 
17515
 
      if test "$GCC" = yes; then
17516
 
        case $host_os in aix4.[012]|aix4.[012].*)
17517
 
        # We only want to do this on AIX 4.2 and lower, the check
17518
 
        # below for broken collect2 doesn't work under 4.3+
17519
 
          collect2name=`${CC} -print-prog-name=collect2`
17520
 
          if test -f "$collect2name" && \
17521
 
           strings "$collect2name" | grep resolve_lib_name >/dev/null
17522
 
          then
17523
 
          # We have reworked collect2
17524
 
          hardcode_direct_GCJ=yes
17525
 
          else
17526
 
          # We have old collect2
17527
 
          hardcode_direct_GCJ=unsupported
17528
 
          # It fails to find uninstalled libraries when the uninstalled
17529
 
          # path is not listed in the libpath.  Setting hardcode_minus_L
17530
 
          # to unsupported forces relinking
17531
 
          hardcode_minus_L_GCJ=yes
17532
 
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
17533
 
          hardcode_libdir_separator_GCJ=
17534
 
          fi
17535
 
        esac
17536
 
        shared_flag='-shared'
17537
 
        if test "$aix_use_runtimelinking" = yes; then
17538
 
          shared_flag="$shared_flag "'${wl}-G'
17539
 
        fi
17540
 
      else
17541
 
        # not using gcc
17542
 
        if test "$host_cpu" = ia64; then
17543
 
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17544
 
        # chokes on -Wl,-G. The following line is correct:
17545
 
          shared_flag='-G'
17546
 
        else
17547
 
        if test "$aix_use_runtimelinking" = yes; then
17548
 
            shared_flag='${wl}-G'
17549
 
          else
17550
 
            shared_flag='${wl}-bM:SRE'
17551
 
        fi
17552
 
        fi
17553
 
      fi
17554
 
 
17555
 
      # It seems that -bexpall does not export symbols beginning with
17556
 
      # underscore (_), so it is better to generate a list of symbols to export.
17557
 
      always_export_symbols_GCJ=yes
17558
 
      if test "$aix_use_runtimelinking" = yes; then
17559
 
        # Warning - without using the other runtime loading flags (-brtl),
17560
 
        # -berok will link without error, but may produce a broken library.
17561
 
        allow_undefined_flag_GCJ='-berok'
17562
 
       # Determine the default libpath from the value encoded in an empty executable.
17563
 
       cat >conftest.$ac_ext <<_ACEOF
17564
 
/* confdefs.h.  */
17565
 
_ACEOF
17566
 
cat confdefs.h >>conftest.$ac_ext
17567
 
cat >>conftest.$ac_ext <<_ACEOF
17568
 
/* end confdefs.h.  */
17569
 
 
17570
 
int
17571
 
main ()
17572
 
{
17573
 
 
17574
 
  ;
17575
 
  return 0;
17576
 
}
17577
 
_ACEOF
17578
 
rm -f conftest.$ac_objext conftest$ac_exeext
17579
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17580
 
  (eval $ac_link) 2>conftest.er1
17581
 
  ac_status=$?
17582
 
  grep -v '^ *+' conftest.er1 >conftest.err
17583
 
  rm -f conftest.er1
17584
 
  cat conftest.err >&5
17585
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17586
 
  (exit $ac_status); } &&
17587
 
         { ac_try='test -z "$ac_c_werror_flag"
17588
 
                         || test ! -s conftest.err'
17589
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17590
 
  (eval $ac_try) 2>&5
17591
 
  ac_status=$?
17592
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17593
 
  (exit $ac_status); }; } &&
17594
 
         { ac_try='test -s conftest$ac_exeext'
17595
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17596
 
  (eval $ac_try) 2>&5
17597
 
  ac_status=$?
17598
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599
 
  (exit $ac_status); }; }; then
17600
 
  
17601
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17602
 
}'`
17603
 
# Check for a 64-bit object if we didn't find anything.
17604
 
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; }
17605
 
}'`; fi
17606
 
else
17607
 
  echo "$as_me: failed program was:" >&5
17608
 
sed 's/^/| /' conftest.$ac_ext >&5
17609
 
 
17610
 
fi
17611
 
rm -f conftest.err conftest.$ac_objext \
17612
 
      conftest$ac_exeext conftest.$ac_ext
17613
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17614
 
 
17615
 
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17616
 
        archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17617
 
       else
17618
 
        if test "$host_cpu" = ia64; then
17619
 
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17620
 
          allow_undefined_flag_GCJ="-z nodefs"
17621
 
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
17622
 
        else
17623
 
         # Determine the default libpath from the value encoded in an empty executable.
17624
 
         cat >conftest.$ac_ext <<_ACEOF
17625
 
/* confdefs.h.  */
17626
 
_ACEOF
17627
 
cat confdefs.h >>conftest.$ac_ext
17628
 
cat >>conftest.$ac_ext <<_ACEOF
17629
 
/* end confdefs.h.  */
17630
 
 
17631
 
int
17632
 
main ()
17633
 
{
17634
 
 
17635
 
  ;
17636
 
  return 0;
17637
 
}
17638
 
_ACEOF
17639
 
rm -f conftest.$ac_objext conftest$ac_exeext
17640
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17641
 
  (eval $ac_link) 2>conftest.er1
17642
 
  ac_status=$?
17643
 
  grep -v '^ *+' conftest.er1 >conftest.err
17644
 
  rm -f conftest.er1
17645
 
  cat conftest.err >&5
17646
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17647
 
  (exit $ac_status); } &&
17648
 
         { ac_try='test -z "$ac_c_werror_flag"
17649
 
                         || test ! -s conftest.err'
17650
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17651
 
  (eval $ac_try) 2>&5
17652
 
  ac_status=$?
17653
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17654
 
  (exit $ac_status); }; } &&
17655
 
         { ac_try='test -s conftest$ac_exeext'
17656
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17657
 
  (eval $ac_try) 2>&5
17658
 
  ac_status=$?
17659
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17660
 
  (exit $ac_status); }; }; then
17661
 
  
17662
 
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17663
 
}'`
17664
 
# Check for a 64-bit object if we didn't find anything.
17665
 
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; }
17666
 
}'`; fi
17667
 
else
17668
 
  echo "$as_me: failed program was:" >&5
17669
 
sed 's/^/| /' conftest.$ac_ext >&5
17670
 
 
17671
 
fi
17672
 
rm -f conftest.err conftest.$ac_objext \
17673
 
      conftest$ac_exeext conftest.$ac_ext
17674
 
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17675
 
 
17676
 
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17677
 
          # Warning - without using the other run time loading flags,
17678
 
          # -berok will link without error, but may produce a broken library.
17679
 
          no_undefined_flag_GCJ=' ${wl}-bernotok'
17680
 
          allow_undefined_flag_GCJ=' ${wl}-berok'
17681
 
          # -bexpall does not export symbols beginning with underscore (_)
17682
 
          always_export_symbols_GCJ=yes
17683
 
          # Exported symbols can be pulled into shared objects from archives
17684
 
          whole_archive_flag_spec_GCJ=' '
17685
 
          archive_cmds_need_lc_GCJ=yes
17686
 
          # This is similar to how AIX traditionally builds it's shared libraries.
17687
 
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17688
 
        fi
17689
 
      fi
17690
 
      ;;
17691
 
 
17692
 
    amigaos*)
17693
 
      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)'
17694
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17695
 
      hardcode_minus_L_GCJ=yes
17696
 
      # see comment about different semantics on the GNU ld section
17697
 
      ld_shlibs_GCJ=no
17698
 
      ;;
17699
 
 
17700
 
    bsdi[45]*)
17701
 
      export_dynamic_flag_spec_GCJ=-rdynamic
17702
 
      ;;
17703
 
 
17704
 
    cygwin* | mingw* | pw32*)
17705
 
      # When not using gcc, we currently assume that we are using
17706
 
      # Microsoft Visual C++.
17707
 
      # hardcode_libdir_flag_spec is actually meaningless, as there is
17708
 
      # no search path for DLLs.
17709
 
      hardcode_libdir_flag_spec_GCJ=' '
17710
 
      allow_undefined_flag_GCJ=unsupported
17711
 
      # Tell ltmain to make .lib files, not .a files.
17712
 
      libext=lib
17713
 
      # Tell ltmain to make .dll files, not .so files.
17714
 
      shrext_cmds=".dll"
17715
 
      # FIXME: Setting linknames here is a bad hack.
17716
 
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17717
 
      # The linker will automatically build a .lib file if we build a DLL.
17718
 
      old_archive_From_new_cmds_GCJ='true'
17719
 
      # FIXME: Should let the user specify the lib program.
17720
 
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17721
 
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17722
 
      enable_shared_with_static_runtimes_GCJ=yes
17723
 
      ;;
17724
 
 
17725
 
    darwin* | rhapsody*)
17726
 
      case "$host_os" in
17727
 
        rhapsody* | darwin1.[012])
17728
 
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17729
 
         ;;
17730
 
       *) # Darwin 1.3 on
17731
 
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17732
 
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17733
 
         else
17734
 
           case ${MACOSX_DEPLOYMENT_TARGET} in
17735
 
             10.[012])
17736
 
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17737
 
               ;;
17738
 
             10.*)
17739
 
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17740
 
               ;;
17741
 
           esac
17742
 
         fi
17743
 
         ;;
17744
 
      esac
17745
 
      archive_cmds_need_lc_GCJ=no
17746
 
      hardcode_direct_GCJ=no
17747
 
      hardcode_automatic_GCJ=yes
17748
 
      hardcode_shlibpath_var_GCJ=unsupported
17749
 
      whole_archive_flag_spec_GCJ=''
17750
 
      link_all_deplibs_GCJ=yes
17751
 
    if test "$GCC" = yes ; then
17752
 
        output_verbose_link_cmd='echo'
17753
 
        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17754
 
      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17755
 
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17756
 
      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}'
17757
 
      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}'
17758
 
    else
17759
 
      case "$cc_basename" in
17760
 
        xlc*)
17761
 
         output_verbose_link_cmd='echo'
17762
 
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17763
 
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17764
 
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17765
 
         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}'
17766
 
          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}'
17767
 
          ;;
17768
 
       *)
17769
 
         ld_shlibs_GCJ=no
17770
 
          ;;
17771
 
      esac
17772
 
    fi
17773
 
      ;;
17774
 
 
17775
 
    dgux*)
17776
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17777
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17778
 
      hardcode_shlibpath_var_GCJ=no
17779
 
      ;;
17780
 
 
17781
 
    freebsd1*)
17782
 
      ld_shlibs_GCJ=no
17783
 
      ;;
17784
 
 
17785
 
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17786
 
    # support.  Future versions do this automatically, but an explicit c++rt0.o
17787
 
    # does not break anything, and helps significantly (at the cost of a little
17788
 
    # extra space).
17789
 
    freebsd2.2*)
17790
 
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17791
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17792
 
      hardcode_direct_GCJ=yes
17793
 
      hardcode_shlibpath_var_GCJ=no
17794
 
      ;;
17795
 
 
17796
 
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17797
 
    freebsd2*)
17798
 
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17799
 
      hardcode_direct_GCJ=yes
17800
 
      hardcode_minus_L_GCJ=yes
17801
 
      hardcode_shlibpath_var_GCJ=no
17802
 
      ;;
17803
 
 
17804
 
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17805
 
    freebsd* | kfreebsd*-gnu | dragonfly*)
17806
 
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17807
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17808
 
      hardcode_direct_GCJ=yes
17809
 
      hardcode_shlibpath_var_GCJ=no
17810
 
      ;;
17811
 
 
17812
 
    hpux9*)
17813
 
      if test "$GCC" = yes; then
17814
 
        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'
17815
 
      else
17816
 
        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'
17817
 
      fi
17818
 
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17819
 
      hardcode_libdir_separator_GCJ=:
17820
 
      hardcode_direct_GCJ=yes
17821
 
 
17822
 
      # hardcode_minus_L: Not really in the search PATH,
17823
 
      # but as the default location of the library.
17824
 
      hardcode_minus_L_GCJ=yes
17825
 
      export_dynamic_flag_spec_GCJ='${wl}-E'
17826
 
      ;;
17827
 
 
17828
 
    hpux10* | hpux11*)
17829
 
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17830
 
        case "$host_cpu" in
17831
 
        hppa*64*|ia64*)
17832
 
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17833
 
          ;;
17834
 
        *)
17835
 
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17836
 
          ;;
17837
 
        esac
17838
 
      else
17839
 
        case "$host_cpu" in
17840
 
        hppa*64*|ia64*)
17841
 
          archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17842
 
          ;;
17843
 
        *)
17844
 
          archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17845
 
          ;;
17846
 
        esac
17847
 
      fi
17848
 
      if test "$with_gnu_ld" = no; then
17849
 
        case "$host_cpu" in
17850
 
        hppa*64*)
17851
 
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17852
 
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17853
 
          hardcode_libdir_separator_GCJ=:
17854
 
          hardcode_direct_GCJ=no
17855
 
          hardcode_shlibpath_var_GCJ=no
17856
 
          ;;
17857
 
        ia64*)
17858
 
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
17859
 
          hardcode_direct_GCJ=no
17860
 
          hardcode_shlibpath_var_GCJ=no
17861
 
 
17862
 
          # hardcode_minus_L: Not really in the search PATH,
17863
 
          # but as the default location of the library.
17864
 
          hardcode_minus_L_GCJ=yes
17865
 
          ;;
17866
 
        *)
17867
 
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17868
 
          hardcode_libdir_separator_GCJ=:
17869
 
          hardcode_direct_GCJ=yes
17870
 
          export_dynamic_flag_spec_GCJ='${wl}-E'
17871
 
 
17872
 
          # hardcode_minus_L: Not really in the search PATH,
17873
 
          # but as the default location of the library.
17874
 
          hardcode_minus_L_GCJ=yes
17875
 
          ;;
17876
 
        esac
17877
 
      fi
17878
 
      ;;
17879
 
 
17880
 
    irix5* | irix6* | nonstopux*)
17881
 
      if test "$GCC" = yes; then
17882
 
        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'
17883
 
      else
17884
 
        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'
17885
 
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17886
 
      fi
17887
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17888
 
      hardcode_libdir_separator_GCJ=:
17889
 
      link_all_deplibs_GCJ=yes
17890
 
      ;;
17891
 
 
17892
 
    netbsd*)
17893
 
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17894
 
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17895
 
      else
17896
 
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17897
 
      fi
17898
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17899
 
      hardcode_direct_GCJ=yes
17900
 
      hardcode_shlibpath_var_GCJ=no
17901
 
      ;;
17902
 
 
17903
 
    newsos6)
17904
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17905
 
      hardcode_direct_GCJ=yes
17906
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17907
 
      hardcode_libdir_separator_GCJ=:
17908
 
      hardcode_shlibpath_var_GCJ=no
17909
 
      ;;
17910
 
 
17911
 
    openbsd*)
17912
 
      hardcode_direct_GCJ=yes
17913
 
      hardcode_shlibpath_var_GCJ=no
17914
 
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17915
 
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17916
 
        archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17917
 
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17918
 
        export_dynamic_flag_spec_GCJ='${wl}-E'
17919
 
      else
17920
 
       case $host_os in
17921
 
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17922
 
           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17923
 
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
17924
 
           ;;
17925
 
         *)
17926
 
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17927
 
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17928
 
           ;;
17929
 
       esac
17930
 
      fi
17931
 
      ;;
17932
 
 
17933
 
    os2*)
17934
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17935
 
      hardcode_minus_L_GCJ=yes
17936
 
      allow_undefined_flag_GCJ=unsupported
17937
 
      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'
17938
 
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17939
 
      ;;
17940
 
 
17941
 
    osf3*)
17942
 
      if test "$GCC" = yes; then
17943
 
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17944
 
        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'
17945
 
      else
17946
 
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
17947
 
        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'
17948
 
      fi
17949
 
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17950
 
      hardcode_libdir_separator_GCJ=:
17951
 
      ;;
17952
 
 
17953
 
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
17954
 
      if test "$GCC" = yes; then
17955
 
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17956
 
        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'
17957
 
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17958
 
      else
17959
 
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
17960
 
        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'
17961
 
        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~
17962
 
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
17963
 
 
17964
 
        # Both c and cxx compiler support -rpath directly
17965
 
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17966
 
      fi
17967
 
      hardcode_libdir_separator_GCJ=:
17968
 
      ;;
17969
 
 
17970
 
    sco3.2v5*)
17971
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17972
 
      hardcode_shlibpath_var_GCJ=no
17973
 
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17974
 
      runpath_var=LD_RUN_PATH
17975
 
      hardcode_runpath_var=yes
17976
 
      ;;
17977
 
 
17978
 
    solaris*)
17979
 
      no_undefined_flag_GCJ=' -z text'
17980
 
      if test "$GCC" = yes; then
17981
 
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17982
 
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17983
 
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17984
 
      else
17985
 
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17986
 
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17987
 
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17988
 
      fi
17989
 
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17990
 
      hardcode_shlibpath_var_GCJ=no
17991
 
      case $host_os in
17992
 
      solaris2.[0-5] | solaris2.[0-5].*) ;;
17993
 
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
17994
 
        whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' ;;
17995
 
      esac
17996
 
      link_all_deplibs_GCJ=yes
17997
 
      ;;
17998
 
 
17999
 
    sunos4*)
18000
 
      if test "x$host_vendor" = xsequent; then
18001
 
        # Use $CC to link under sequent, because it throws in some extra .o
18002
 
        # files that make .init and .fini sections work.
18003
 
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18004
 
      else
18005
 
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18006
 
      fi
18007
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18008
 
      hardcode_direct_GCJ=yes
18009
 
      hardcode_minus_L_GCJ=yes
18010
 
      hardcode_shlibpath_var_GCJ=no
18011
 
      ;;
18012
 
 
18013
 
    sysv4)
18014
 
      case $host_vendor in
18015
 
        sni)
18016
 
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18017
 
          hardcode_direct_GCJ=yes # is this really true???
18018
 
        ;;
18019
 
        siemens)
18020
 
          ## LD is ld it makes a PLAMLIB
18021
 
          ## CC just makes a GrossModule.
18022
 
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18023
 
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18024
 
          hardcode_direct_GCJ=no
18025
 
        ;;
18026
 
        motorola)
18027
 
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18028
 
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18029
 
        ;;
18030
 
      esac
18031
 
      runpath_var='LD_RUN_PATH'
18032
 
      hardcode_shlibpath_var_GCJ=no
18033
 
      ;;
18034
 
 
18035
 
    sysv4.3*)
18036
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18037
 
      hardcode_shlibpath_var_GCJ=no
18038
 
      export_dynamic_flag_spec_GCJ='-Bexport'
18039
 
      ;;
18040
 
 
18041
 
    sysv4*MP*)
18042
 
      if test -d /usr/nec; then
18043
 
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18044
 
        hardcode_shlibpath_var_GCJ=no
18045
 
        runpath_var=LD_RUN_PATH
18046
 
        hardcode_runpath_var=yes
18047
 
        ld_shlibs_GCJ=yes
18048
 
      fi
18049
 
      ;;
18050
 
 
18051
 
    sysv4.2uw2*)
18052
 
      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18053
 
      hardcode_direct_GCJ=yes
18054
 
      hardcode_minus_L_GCJ=no
18055
 
      hardcode_shlibpath_var_GCJ=no
18056
 
      hardcode_runpath_var=yes
18057
 
      runpath_var=LD_RUN_PATH
18058
 
      ;;
18059
 
 
18060
 
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
18061
 
      no_undefined_flag_GCJ='${wl}-z ${wl}text'
18062
 
      if test "$GCC" = yes; then
18063
 
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18064
 
      else
18065
 
        archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18066
 
      fi
18067
 
      runpath_var='LD_RUN_PATH'
18068
 
      hardcode_shlibpath_var_GCJ=no
18069
 
      ;;
18070
 
 
18071
 
    sysv5*)
18072
 
      no_undefined_flag_GCJ=' -z text'
18073
 
      # $CC -shared without GNU ld will not create a library from C++
18074
 
      # object files and a static libstdc++, better avoid it by now
18075
 
      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18076
 
      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18077
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18078
 
      hardcode_libdir_flag_spec_GCJ=
18079
 
      hardcode_shlibpath_var_GCJ=no
18080
 
      runpath_var='LD_RUN_PATH'
18081
 
      ;;
18082
 
 
18083
 
    uts4*)
18084
 
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18085
 
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
18086
 
      hardcode_shlibpath_var_GCJ=no
18087
 
      ;;
18088
 
 
18089
 
    *)
18090
 
      ld_shlibs_GCJ=no
18091
 
      ;;
18092
 
    esac
18093
 
  fi
18094
 
 
18095
 
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18096
 
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18097
 
test "$ld_shlibs_GCJ" = no && can_build_shared=no
18098
 
 
18099
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18100
 
if test "$GCC" = yes; then
18101
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18102
 
fi
18103
 
 
18104
 
#
18105
 
# Do we need to explicitly link libc?
18106
 
#
18107
 
case "x$archive_cmds_need_lc_GCJ" in
18108
 
x|xyes)
18109
 
  # Assume -lc should be added
18110
 
  archive_cmds_need_lc_GCJ=yes
18111
 
 
18112
 
  if test "$enable_shared" = yes && test "$GCC" = yes; then
18113
 
    case $archive_cmds_GCJ in
18114
 
    *'~'*)
18115
 
      # FIXME: we may have to deal with multi-command sequences.
18116
 
      ;;
18117
 
    '$CC '*)
18118
 
      # Test whether the compiler implicitly links with -lc since on some
18119
 
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18120
 
      # to ld, don't add -lc before -lgcc.
18121
 
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18122
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18123
 
      $rm conftest*
18124
 
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18125
 
 
18126
 
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18127
 
  (eval $ac_compile) 2>&5
18128
 
  ac_status=$?
18129
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130
 
  (exit $ac_status); } 2>conftest.err; then
18131
 
        soname=conftest
18132
 
        lib=conftest
18133
 
        libobjs=conftest.$ac_objext
18134
 
        deplibs=
18135
 
        wl=$lt_prog_compiler_wl_GCJ
18136
 
        compiler_flags=-v
18137
 
        linker_flags=-v
18138
 
        verstring=
18139
 
        output_objdir=.
18140
 
        libname=conftest
18141
 
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18142
 
        allow_undefined_flag_GCJ=
18143
 
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18144
 
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18145
 
  ac_status=$?
18146
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18147
 
  (exit $ac_status); }
18148
 
        then
18149
 
          archive_cmds_need_lc_GCJ=no
18150
 
        else
18151
 
          archive_cmds_need_lc_GCJ=yes
18152
 
        fi
18153
 
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18154
 
      else
18155
 
        cat conftest.err 1>&5
18156
 
      fi
18157
 
      $rm conftest*
18158
 
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18159
 
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18160
 
      ;;
18161
 
    esac
18162
 
  fi
18163
 
  ;;
18164
 
esac
18165
 
 
18166
 
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18167
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18168
 
library_names_spec=
18169
 
libname_spec='lib$name'
18170
 
soname_spec=
18171
 
shrext_cmds=".so"
18172
 
postinstall_cmds=
18173
 
postuninstall_cmds=
18174
 
finish_cmds=
18175
 
finish_eval=
18176
 
shlibpath_var=
18177
 
shlibpath_overrides_runpath=unknown
18178
 
version_type=none
18179
 
dynamic_linker="$host_os ld.so"
18180
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
18181
 
if test "$GCC" = yes; then
18182
 
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18183
 
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18184
 
    # if the path contains ";" then we assume it to be the separator
18185
 
    # otherwise default to the standard path separator (i.e. ":") - it is
18186
 
    # assumed that no part of a normal pathname contains ";" but that should
18187
 
    # okay in the real world where ";" in dirpaths is itself problematic.
18188
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18189
 
  else
18190
 
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18191
 
  fi
18192
 
else
18193
 
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18194
 
fi
18195
 
need_lib_prefix=unknown
18196
 
hardcode_into_libs=no
18197
 
 
18198
 
# when you set need_version to no, make sure it does not cause -set_version
18199
 
# flags to be left without arguments
18200
 
need_version=unknown
18201
 
 
18202
 
case $host_os in
18203
 
aix3*)
18204
 
  version_type=linux
18205
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18206
 
  shlibpath_var=LIBPATH
18207
 
 
18208
 
  # AIX 3 has no versioning support, so we append a major version to the name.
18209
 
  soname_spec='${libname}${release}${shared_ext}$major'
18210
 
  ;;
18211
 
 
18212
 
aix4* | aix5*)
18213
 
  version_type=linux
18214
 
  need_lib_prefix=no
18215
 
  need_version=no
18216
 
  hardcode_into_libs=yes
18217
 
  if test "$host_cpu" = ia64; then
18218
 
    # AIX 5 supports IA64
18219
 
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18220
 
    shlibpath_var=LD_LIBRARY_PATH
18221
 
  else
18222
 
    # With GCC up to 2.95.x, collect2 would create an import file
18223
 
    # for dependence libraries.  The import file would start with
18224
 
    # the line `#! .'.  This would cause the generated library to
18225
 
    # depend on `.', always an invalid library.  This was fixed in
18226
 
    # development snapshots of GCC prior to 3.0.
18227
 
    case $host_os in
18228
 
      aix4 | aix4.[01] | aix4.[01].*)
18229
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18230
 
           echo ' yes '
18231
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18232
 
        :
18233
 
      else
18234
 
        can_build_shared=no
18235
 
      fi
18236
 
      ;;
18237
 
    esac
18238
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18239
 
    # soname into executable. Probably we can add versioning support to
18240
 
    # collect2, so additional links can be useful in future.
18241
 
    if test "$aix_use_runtimelinking" = yes; then
18242
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18243
 
      # instead of lib<name>.a to let people know that these are not
18244
 
      # typical AIX shared libraries.
18245
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18246
 
    else
18247
 
      # We preserve .a as extension for shared libraries through AIX4.2
18248
 
      # and later when we are not doing run time linking.
18249
 
      library_names_spec='${libname}${release}.a $libname.a'
18250
 
      soname_spec='${libname}${release}${shared_ext}$major'
18251
 
    fi
18252
 
    shlibpath_var=LIBPATH
18253
 
  fi
18254
 
  ;;
18255
 
 
18256
 
amigaos*)
18257
 
  library_names_spec='$libname.ixlibrary $libname.a'
18258
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
18259
 
  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'
18260
 
  ;;
18261
 
 
18262
 
beos*)
18263
 
  library_names_spec='${libname}${shared_ext}'
18264
 
  dynamic_linker="$host_os ld.so"
18265
 
  shlibpath_var=LIBRARY_PATH
18266
 
  ;;
18267
 
 
18268
 
bsdi[45]*)
18269
 
  version_type=linux
18270
 
  need_version=no
18271
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18272
 
  soname_spec='${libname}${release}${shared_ext}$major'
18273
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18274
 
  shlibpath_var=LD_LIBRARY_PATH
18275
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18276
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18277
 
  # the default ld.so.conf also contains /usr/contrib/lib and
18278
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18279
 
  # libtool to hard-code these into programs
18280
 
  ;;
18281
 
 
18282
 
cygwin* | mingw* | pw32*)
18283
 
  version_type=windows
18284
 
  shrext_cmds=".dll"
18285
 
  need_version=no
18286
 
  need_lib_prefix=no
18287
 
 
18288
 
  case $GCC,$host_os in
18289
 
  yes,cygwin* | yes,mingw* | yes,pw32*)
18290
 
    library_names_spec='$libname.dll.a'
18291
 
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18292
 
    postinstall_cmds='base_file=`basename \${file}`~
18293
 
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18294
 
      dldir=$destdir/`dirname \$dlpath`~
18295
 
      test -d \$dldir || mkdir -p \$dldir~
18296
 
      $install_prog $dir/$dlname \$dldir/$dlname'
18297
 
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18298
 
      dlpath=$dir/\$dldll~
18299
 
       $rm \$dlpath'
18300
 
    shlibpath_overrides_runpath=yes
18301
 
 
18302
 
    case $host_os in
18303
 
    cygwin*)
18304
 
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18305
 
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18306
 
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18307
 
      ;;
18308
 
    mingw*)
18309
 
      # MinGW DLLs use traditional 'lib' prefix
18310
 
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18311
 
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18312
 
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18313
 
        # It is most probably a Windows format PATH printed by
18314
 
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18315
 
        # path with ; separators, and with drive letters. We can handle the
18316
 
        # drive letters (cygwin fileutils understands them), so leave them,
18317
 
        # especially as we might pass files found there to a mingw objdump,
18318
 
        # which wouldn't understand a cygwinified path. Ahh.
18319
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18320
 
      else
18321
 
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18322
 
      fi
18323
 
      ;;
18324
 
    pw32*)
18325
 
      # pw32 DLLs use 'pw' prefix rather than 'lib'
18326
 
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18327
 
      ;;
18328
 
    esac
18329
 
    ;;
18330
 
 
18331
 
  *)
18332
 
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18333
 
    ;;
18334
 
  esac
18335
 
  dynamic_linker='Win32 ld.exe'
18336
 
  # FIXME: first we should search . and the directory the executable is in
18337
 
  shlibpath_var=PATH
18338
 
  ;;
18339
 
 
18340
 
darwin* | rhapsody*)
18341
 
  dynamic_linker="$host_os dyld"
18342
 
  version_type=darwin
18343
 
  need_lib_prefix=no
18344
 
  need_version=no
18345
 
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18346
 
  soname_spec='${libname}${release}${major}$shared_ext'
18347
 
  shlibpath_overrides_runpath=yes
18348
 
  shlibpath_var=DYLD_LIBRARY_PATH
18349
 
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
18350
 
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18351
 
  if test "$GCC" = yes; then
18352
 
    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"`
18353
 
  else
18354
 
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18355
 
  fi
18356
 
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18357
 
  ;;
18358
 
 
18359
 
dgux*)
18360
 
  version_type=linux
18361
 
  need_lib_prefix=no
18362
 
  need_version=no
18363
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18364
 
  soname_spec='${libname}${release}${shared_ext}$major'
18365
 
  shlibpath_var=LD_LIBRARY_PATH
18366
 
  ;;
18367
 
 
18368
 
freebsd1*)
18369
 
  dynamic_linker=no
18370
 
  ;;
18371
 
 
18372
 
kfreebsd*-gnu)
18373
 
  version_type=linux
18374
 
  need_lib_prefix=no
18375
 
  need_version=no
18376
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18377
 
  soname_spec='${libname}${release}${shared_ext}$major'
18378
 
  shlibpath_var=LD_LIBRARY_PATH
18379
 
  shlibpath_overrides_runpath=no
18380
 
  hardcode_into_libs=yes
18381
 
  dynamic_linker='GNU ld.so'
18382
 
  ;;
18383
 
 
18384
 
freebsd* | dragonfly*)
18385
 
  # DragonFly does not have aout.  When/if they implement a new
18386
 
  # versioning mechanism, adjust this.
18387
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18388
 
  version_type=freebsd-$objformat
18389
 
  case $version_type in
18390
 
    freebsd-elf*)
18391
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18392
 
      need_version=no
18393
 
      need_lib_prefix=no
18394
 
      ;;
18395
 
    freebsd-*)
18396
 
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18397
 
      need_version=yes
18398
 
      ;;
18399
 
  esac
18400
 
  shlibpath_var=LD_LIBRARY_PATH
18401
 
  case $host_os in
18402
 
  freebsd2*)
18403
 
    shlibpath_overrides_runpath=yes
18404
 
    ;;
18405
 
  freebsd3.[01]* | freebsdelf3.[01]*)
18406
 
    shlibpath_overrides_runpath=yes
18407
 
    hardcode_into_libs=yes
18408
 
    ;;
18409
 
  *) # from 3.2 on
18410
 
    shlibpath_overrides_runpath=no
18411
 
    hardcode_into_libs=yes
18412
 
    ;;
18413
 
  esac
18414
 
  ;;
18415
 
 
18416
 
gnu*)
18417
 
  version_type=linux
18418
 
  need_lib_prefix=no
18419
 
  need_version=no
18420
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18421
 
  soname_spec='${libname}${release}${shared_ext}$major'
18422
 
  shlibpath_var=LD_LIBRARY_PATH
18423
 
  hardcode_into_libs=yes
18424
 
  ;;
18425
 
 
18426
 
hpux9* | hpux10* | hpux11*)
18427
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
18428
 
  # link against other versions.
18429
 
  version_type=sunos
18430
 
  need_lib_prefix=no
18431
 
  need_version=no
18432
 
  case "$host_cpu" in
18433
 
  ia64*)
18434
 
    shrext_cmds='.so'
18435
 
    hardcode_into_libs=yes
18436
 
    dynamic_linker="$host_os dld.so"
18437
 
    shlibpath_var=LD_LIBRARY_PATH
18438
 
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18439
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18440
 
    soname_spec='${libname}${release}${shared_ext}$major'
18441
 
    if test "X$HPUX_IA64_MODE" = X32; then
18442
 
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18443
 
    else
18444
 
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18445
 
    fi
18446
 
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18447
 
    ;;
18448
 
   hppa*64*)
18449
 
     shrext_cmds='.sl'
18450
 
     hardcode_into_libs=yes
18451
 
     dynamic_linker="$host_os dld.sl"
18452
 
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18453
 
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18454
 
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18455
 
     soname_spec='${libname}${release}${shared_ext}$major'
18456
 
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18457
 
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18458
 
     ;;
18459
 
   *)
18460
 
    shrext_cmds='.sl'
18461
 
    dynamic_linker="$host_os dld.sl"
18462
 
    shlibpath_var=SHLIB_PATH
18463
 
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18464
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18465
 
    soname_spec='${libname}${release}${shared_ext}$major'
18466
 
    ;;
18467
 
  esac
18468
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18469
 
  postinstall_cmds='chmod 555 $lib'
18470
 
  ;;
18471
 
 
18472
 
irix5* | irix6* | nonstopux*)
18473
 
  case $host_os in
18474
 
    nonstopux*) version_type=nonstopux ;;
18475
 
    *)
18476
 
        if test "$lt_cv_prog_gnu_ld" = yes; then
18477
 
                version_type=linux
18478
 
        else
18479
 
                version_type=irix
18480
 
        fi ;;
18481
 
  esac
18482
 
  need_lib_prefix=no
18483
 
  need_version=no
18484
 
  soname_spec='${libname}${release}${shared_ext}$major'
18485
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18486
 
  case $host_os in
18487
 
  irix5* | nonstopux*)
18488
 
    libsuff= shlibsuff=
18489
 
    ;;
18490
 
  *)
18491
 
    case $LD in # libtool.m4 will add one of these switches to LD
18492
 
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18493
 
      libsuff= shlibsuff= libmagic=32-bit;;
18494
 
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18495
 
      libsuff=32 shlibsuff=N32 libmagic=N32;;
18496
 
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18497
 
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18498
 
    *) libsuff= shlibsuff= libmagic=never-match;;
18499
 
    esac
18500
 
    ;;
18501
 
  esac
18502
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18503
 
  shlibpath_overrides_runpath=no
18504
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18505
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18506
 
  hardcode_into_libs=yes
18507
 
  ;;
18508
 
 
18509
 
# No shared lib support for Linux oldld, aout, or coff.
18510
 
linux*oldld* | linux*aout* | linux*coff*)
18511
 
  dynamic_linker=no
18512
 
  ;;
18513
 
 
18514
 
# This must be Linux ELF.
18515
 
linux*)
18516
 
  version_type=linux
18517
 
  need_lib_prefix=no
18518
 
  need_version=no
18519
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18520
 
  soname_spec='${libname}${release}${shared_ext}$major'
18521
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18522
 
  shlibpath_var=LD_LIBRARY_PATH
18523
 
  shlibpath_overrides_runpath=no
18524
 
  # This implies no fast_install, which is unacceptable.
18525
 
  # Some rework will be needed to allow for fast_install
18526
 
  # before this can be enabled.
18527
 
  hardcode_into_libs=yes
18528
 
 
18529
 
  # Append ld.so.conf contents to the search path
18530
 
  if test -f /etc/ld.so.conf; then
18531
 
    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/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18532
 
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18533
 
  fi
18534
 
 
18535
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
18536
 
  # powerpc, because MkLinux only supported shared libraries with the
18537
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
18538
 
  # most powerpc-linux boxes support dynamic linking these days and
18539
 
  # people can always --disable-shared, the test was removed, and we
18540
 
  # assume the GNU/Linux dynamic linker is in use.
18541
 
  dynamic_linker='GNU/Linux ld.so'
18542
 
  ;;
18543
 
 
18544
 
knetbsd*-gnu)
18545
 
  version_type=linux
18546
 
  need_lib_prefix=no
18547
 
  need_version=no
18548
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18549
 
  soname_spec='${libname}${release}${shared_ext}$major'
18550
 
  shlibpath_var=LD_LIBRARY_PATH
18551
 
  shlibpath_overrides_runpath=no
18552
 
  hardcode_into_libs=yes
18553
 
  dynamic_linker='GNU ld.so'
18554
 
  ;;
18555
 
 
18556
 
netbsd*)
18557
 
  version_type=sunos
18558
 
  need_lib_prefix=no
18559
 
  need_version=no
18560
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18561
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18562
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18563
 
    dynamic_linker='NetBSD (a.out) ld.so'
18564
 
  else
18565
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18566
 
    soname_spec='${libname}${release}${shared_ext}$major'
18567
 
    dynamic_linker='NetBSD ld.elf_so'
18568
 
  fi
18569
 
  shlibpath_var=LD_LIBRARY_PATH
18570
 
  shlibpath_overrides_runpath=yes
18571
 
  hardcode_into_libs=yes
18572
 
  ;;
18573
 
 
18574
 
newsos6)
18575
 
  version_type=linux
18576
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18577
 
  shlibpath_var=LD_LIBRARY_PATH
18578
 
  shlibpath_overrides_runpath=yes
18579
 
  ;;
18580
 
 
18581
 
nto-qnx*)
18582
 
  version_type=linux
18583
 
  need_lib_prefix=no
18584
 
  need_version=no
18585
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18586
 
  soname_spec='${libname}${release}${shared_ext}$major'
18587
 
  shlibpath_var=LD_LIBRARY_PATH
18588
 
  shlibpath_overrides_runpath=yes
18589
 
  ;;
18590
 
 
18591
 
openbsd*)
18592
 
  version_type=sunos
18593
 
  need_lib_prefix=no
18594
 
  need_version=no
18595
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18596
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18597
 
  shlibpath_var=LD_LIBRARY_PATH
18598
 
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18599
 
    case $host_os in
18600
 
      openbsd2.[89] | openbsd2.[89].*)
18601
 
        shlibpath_overrides_runpath=no
18602
 
        ;;
18603
 
      *)
18604
 
        shlibpath_overrides_runpath=yes
18605
 
        ;;
18606
 
      esac
18607
 
  else
18608
 
    shlibpath_overrides_runpath=yes
18609
 
  fi
18610
 
  ;;
18611
 
 
18612
 
os2*)
18613
 
  libname_spec='$name'
18614
 
  shrext_cmds=".dll"
18615
 
  need_lib_prefix=no
18616
 
  library_names_spec='$libname${shared_ext} $libname.a'
18617
 
  dynamic_linker='OS/2 ld.exe'
18618
 
  shlibpath_var=LIBPATH
18619
 
  ;;
18620
 
 
18621
 
osf3* | osf4* | osf5*)
18622
 
  version_type=osf
18623
 
  need_lib_prefix=no
18624
 
  need_version=no
18625
 
  soname_spec='${libname}${release}${shared_ext}$major'
18626
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18627
 
  shlibpath_var=LD_LIBRARY_PATH
18628
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18629
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18630
 
  ;;
18631
 
 
18632
 
sco3.2v5*)
18633
 
  version_type=osf
18634
 
  soname_spec='${libname}${release}${shared_ext}$major'
18635
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18636
 
  shlibpath_var=LD_LIBRARY_PATH
18637
 
  ;;
18638
 
 
18639
 
solaris*)
18640
 
  version_type=linux
18641
 
  need_lib_prefix=no
18642
 
  need_version=no
18643
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18644
 
  soname_spec='${libname}${release}${shared_ext}$major'
18645
 
  shlibpath_var=LD_LIBRARY_PATH
18646
 
  shlibpath_overrides_runpath=yes
18647
 
  hardcode_into_libs=yes
18648
 
  # ldd complains unless libraries are executable
18649
 
  postinstall_cmds='chmod +x $lib'
18650
 
  ;;
18651
 
 
18652
 
sunos4*)
18653
 
  version_type=sunos
18654
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18655
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18656
 
  shlibpath_var=LD_LIBRARY_PATH
18657
 
  shlibpath_overrides_runpath=yes
18658
 
  if test "$with_gnu_ld" = yes; then
18659
 
    need_lib_prefix=no
18660
 
  fi
18661
 
  need_version=yes
18662
 
  ;;
18663
 
 
18664
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18665
 
  version_type=linux
18666
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18667
 
  soname_spec='${libname}${release}${shared_ext}$major'
18668
 
  shlibpath_var=LD_LIBRARY_PATH
18669
 
  case $host_vendor in
18670
 
    sni)
18671
 
      shlibpath_overrides_runpath=no
18672
 
      need_lib_prefix=no
18673
 
      export_dynamic_flag_spec='${wl}-Blargedynsym'
18674
 
      runpath_var=LD_RUN_PATH
18675
 
      ;;
18676
 
    siemens)
18677
 
      need_lib_prefix=no
18678
 
      ;;
18679
 
    motorola)
18680
 
      need_lib_prefix=no
18681
 
      need_version=no
18682
 
      shlibpath_overrides_runpath=no
18683
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18684
 
      ;;
18685
 
  esac
18686
 
  ;;
18687
 
 
18688
 
sysv4*MP*)
18689
 
  if test -d /usr/nec ;then
18690
 
    version_type=linux
18691
 
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18692
 
    soname_spec='$libname${shared_ext}.$major'
18693
 
    shlibpath_var=LD_LIBRARY_PATH
18694
 
  fi
18695
 
  ;;
18696
 
 
18697
 
uts4*)
18698
 
  version_type=linux
18699
 
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18700
 
  soname_spec='${libname}${release}${shared_ext}$major'
18701
 
  shlibpath_var=LD_LIBRARY_PATH
18702
 
  ;;
18703
 
 
18704
 
*)
18705
 
  dynamic_linker=no
18706
 
  ;;
18707
 
esac
18708
 
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18709
 
echo "${ECHO_T}$dynamic_linker" >&6
18710
 
test "$dynamic_linker" = no && can_build_shared=no
18711
 
 
18712
 
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18713
 
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18714
 
hardcode_action_GCJ=
18715
 
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18716
 
   test -n "$runpath_var_GCJ" || \
18717
 
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18718
 
 
18719
 
  # We can hardcode non-existant directories.
18720
 
  if test "$hardcode_direct_GCJ" != no &&
18721
 
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18722
 
     # have to relink, otherwise we might link with an installed library
18723
 
     # when we should be linking with a yet-to-be-installed one
18724
 
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18725
 
     test "$hardcode_minus_L_GCJ" != no; then
18726
 
    # Linking always hardcodes the temporary library directory.
18727
 
    hardcode_action_GCJ=relink
18728
 
  else
18729
 
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18730
 
    hardcode_action_GCJ=immediate
18731
 
  fi
18732
 
else
18733
 
  # We cannot hardcode anything, or else we can only hardcode existing
18734
 
  # directories.
18735
 
  hardcode_action_GCJ=unsupported
18736
 
fi
18737
 
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18738
 
echo "${ECHO_T}$hardcode_action_GCJ" >&6
18739
 
 
18740
 
if test "$hardcode_action_GCJ" = relink; then
18741
 
  # Fast installation is not supported
18742
 
  enable_fast_install=no
18743
 
elif test "$shlibpath_overrides_runpath" = yes ||
18744
 
     test "$enable_shared" = no; then
18745
 
  # Fast installation is not necessary
18746
 
  enable_fast_install=needless
18747
 
fi
18748
 
 
18749
 
striplib=
18750
 
old_striplib=
18751
 
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18752
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
18753
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18754
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18755
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18756
 
  echo "$as_me:$LINENO: result: yes" >&5
18757
 
echo "${ECHO_T}yes" >&6
18758
 
else
18759
 
# FIXME - insert some real tests, host_os isn't really good enough
18760
 
  case $host_os in
18761
 
   darwin*)
18762
 
       if test -n "$STRIP" ; then
18763
 
         striplib="$STRIP -x"
18764
 
         echo "$as_me:$LINENO: result: yes" >&5
18765
 
echo "${ECHO_T}yes" >&6
18766
 
       else
18767
 
  echo "$as_me:$LINENO: result: no" >&5
18768
 
echo "${ECHO_T}no" >&6
18769
 
fi
18770
 
       ;;
18771
 
   *)
18772
 
  echo "$as_me:$LINENO: result: no" >&5
18773
 
echo "${ECHO_T}no" >&6
18774
 
    ;;
18775
 
  esac
18776
 
fi
18777
 
 
18778
 
if test "x$enable_dlopen" != xyes; then
18779
 
  enable_dlopen=unknown
18780
 
  enable_dlopen_self=unknown
18781
 
  enable_dlopen_self_static=unknown
18782
 
else
18783
 
  lt_cv_dlopen=no
18784
 
  lt_cv_dlopen_libs=
18785
 
 
18786
 
  case $host_os in
18787
 
  beos*)
18788
 
    lt_cv_dlopen="load_add_on"
18789
 
    lt_cv_dlopen_libs=
18790
 
    lt_cv_dlopen_self=yes
18791
 
    ;;
18792
 
 
18793
 
  mingw* | pw32*)
18794
 
    lt_cv_dlopen="LoadLibrary"
18795
 
    lt_cv_dlopen_libs=
18796
 
   ;;
18797
 
 
18798
 
  cygwin*)
18799
 
    lt_cv_dlopen="dlopen"
18800
 
    lt_cv_dlopen_libs=
18801
 
   ;;
18802
 
 
18803
 
  darwin*)
18804
 
  # if libdl is installed we need to link against it
18805
 
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18806
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18807
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18808
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18809
 
else
18810
 
  ac_check_lib_save_LIBS=$LIBS
18811
 
LIBS="-ldl  $LIBS"
18812
 
cat >conftest.$ac_ext <<_ACEOF
18813
 
/* confdefs.h.  */
18814
 
_ACEOF
18815
 
cat confdefs.h >>conftest.$ac_ext
18816
 
cat >>conftest.$ac_ext <<_ACEOF
18817
 
/* end confdefs.h.  */
18818
 
 
18819
 
/* Override any gcc2 internal prototype to avoid an error.  */
18820
 
#ifdef __cplusplus
18821
 
extern "C"
18822
 
#endif
18823
 
/* We use char because int might match the return type of a gcc2
18824
 
   builtin and then its argument prototype would still apply.  */
18825
 
char dlopen ();
18826
 
int
18827
 
main ()
18828
 
{
18829
 
dlopen ();
18830
 
  ;
18831
 
  return 0;
18832
 
}
18833
 
_ACEOF
18834
 
rm -f conftest.$ac_objext conftest$ac_exeext
18835
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18836
 
  (eval $ac_link) 2>conftest.er1
18837
 
  ac_status=$?
18838
 
  grep -v '^ *+' conftest.er1 >conftest.err
18839
 
  rm -f conftest.er1
18840
 
  cat conftest.err >&5
18841
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18842
 
  (exit $ac_status); } &&
18843
 
         { ac_try='test -z "$ac_c_werror_flag"
18844
 
                         || test ! -s conftest.err'
18845
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18846
 
  (eval $ac_try) 2>&5
18847
 
  ac_status=$?
18848
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849
 
  (exit $ac_status); }; } &&
18850
 
         { ac_try='test -s conftest$ac_exeext'
18851
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18852
 
  (eval $ac_try) 2>&5
18853
 
  ac_status=$?
18854
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855
 
  (exit $ac_status); }; }; then
18856
 
  ac_cv_lib_dl_dlopen=yes
18857
 
else
18858
 
  echo "$as_me: failed program was:" >&5
18859
 
sed 's/^/| /' conftest.$ac_ext >&5
18860
 
 
18861
 
ac_cv_lib_dl_dlopen=no
18862
 
fi
18863
 
rm -f conftest.err conftest.$ac_objext \
18864
 
      conftest$ac_exeext conftest.$ac_ext
18865
 
LIBS=$ac_check_lib_save_LIBS
18866
 
fi
18867
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18868
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18869
 
if test $ac_cv_lib_dl_dlopen = yes; then
18870
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18871
 
else
18872
 
  
18873
 
    lt_cv_dlopen="dyld"
18874
 
    lt_cv_dlopen_libs=
18875
 
    lt_cv_dlopen_self=yes
18876
 
    
18877
 
fi
18878
 
 
18879
 
   ;;
18880
 
 
18881
 
  *)
18882
 
    echo "$as_me:$LINENO: checking for shl_load" >&5
18883
 
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
18884
 
if test "${ac_cv_func_shl_load+set}" = set; then
18885
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18886
 
else
18887
 
  cat >conftest.$ac_ext <<_ACEOF
18888
 
/* confdefs.h.  */
18889
 
_ACEOF
18890
 
cat confdefs.h >>conftest.$ac_ext
18891
 
cat >>conftest.$ac_ext <<_ACEOF
18892
 
/* end confdefs.h.  */
18893
 
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18894
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18895
 
#define shl_load innocuous_shl_load
18896
 
 
18897
 
/* System header to define __stub macros and hopefully few prototypes,
18898
 
    which can conflict with char shl_load (); below.
18899
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18900
 
    <limits.h> exists even on freestanding compilers.  */
18901
 
 
18902
 
#ifdef __STDC__
18903
 
# include <limits.h>
18904
 
#else
18905
 
# include <assert.h>
18906
 
#endif
18907
 
 
18908
 
#undef shl_load
18909
 
 
18910
 
/* Override any gcc2 internal prototype to avoid an error.  */
18911
 
#ifdef __cplusplus
18912
 
extern "C"
18913
 
{
18914
 
#endif
18915
 
/* We use char because int might match the return type of a gcc2
18916
 
   builtin and then its argument prototype would still apply.  */
18917
 
char shl_load ();
18918
 
/* The GNU C library defines this for functions which it implements
18919
 
    to always fail with ENOSYS.  Some functions are actually named
18920
 
    something starting with __ and the normal name is an alias.  */
18921
 
#if defined (__stub_shl_load) || defined (__stub___shl_load)
18922
 
choke me
18923
 
#else
18924
 
char (*f) () = shl_load;
18925
 
#endif
18926
 
#ifdef __cplusplus
18927
 
}
18928
 
#endif
18929
 
 
18930
 
int
18931
 
main ()
18932
 
{
18933
 
return f != shl_load;
18934
 
  ;
18935
 
  return 0;
18936
 
}
18937
 
_ACEOF
18938
 
rm -f conftest.$ac_objext conftest$ac_exeext
18939
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18940
 
  (eval $ac_link) 2>conftest.er1
18941
 
  ac_status=$?
18942
 
  grep -v '^ *+' conftest.er1 >conftest.err
18943
 
  rm -f conftest.er1
18944
 
  cat conftest.err >&5
18945
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946
 
  (exit $ac_status); } &&
18947
 
         { ac_try='test -z "$ac_c_werror_flag"
18948
 
                         || test ! -s conftest.err'
18949
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18950
 
  (eval $ac_try) 2>&5
18951
 
  ac_status=$?
18952
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18953
 
  (exit $ac_status); }; } &&
18954
 
         { ac_try='test -s conftest$ac_exeext'
18955
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18956
 
  (eval $ac_try) 2>&5
18957
 
  ac_status=$?
18958
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959
 
  (exit $ac_status); }; }; then
18960
 
  ac_cv_func_shl_load=yes
18961
 
else
18962
 
  echo "$as_me: failed program was:" >&5
18963
 
sed 's/^/| /' conftest.$ac_ext >&5
18964
 
 
18965
 
ac_cv_func_shl_load=no
18966
 
fi
18967
 
rm -f conftest.err conftest.$ac_objext \
18968
 
      conftest$ac_exeext conftest.$ac_ext
18969
 
fi
18970
 
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18971
 
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
18972
 
if test $ac_cv_func_shl_load = yes; then
18973
 
  lt_cv_dlopen="shl_load"
18974
 
else
18975
 
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18976
 
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
18977
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18978
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
18979
 
else
18980
 
  ac_check_lib_save_LIBS=$LIBS
18981
 
LIBS="-ldld  $LIBS"
18982
 
cat >conftest.$ac_ext <<_ACEOF
18983
 
/* confdefs.h.  */
18984
 
_ACEOF
18985
 
cat confdefs.h >>conftest.$ac_ext
18986
 
cat >>conftest.$ac_ext <<_ACEOF
18987
 
/* end confdefs.h.  */
18988
 
 
18989
 
/* Override any gcc2 internal prototype to avoid an error.  */
18990
 
#ifdef __cplusplus
18991
 
extern "C"
18992
 
#endif
18993
 
/* We use char because int might match the return type of a gcc2
18994
 
   builtin and then its argument prototype would still apply.  */
18995
 
char shl_load ();
18996
 
int
18997
 
main ()
18998
 
{
18999
 
shl_load ();
19000
 
  ;
19001
 
  return 0;
19002
 
}
19003
 
_ACEOF
19004
 
rm -f conftest.$ac_objext conftest$ac_exeext
19005
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19006
 
  (eval $ac_link) 2>conftest.er1
19007
 
  ac_status=$?
19008
 
  grep -v '^ *+' conftest.er1 >conftest.err
19009
 
  rm -f conftest.er1
19010
 
  cat conftest.err >&5
19011
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19012
 
  (exit $ac_status); } &&
19013
 
         { ac_try='test -z "$ac_c_werror_flag"
19014
 
                         || test ! -s conftest.err'
19015
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19016
 
  (eval $ac_try) 2>&5
19017
 
  ac_status=$?
19018
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19019
 
  (exit $ac_status); }; } &&
19020
 
         { ac_try='test -s conftest$ac_exeext'
19021
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19022
 
  (eval $ac_try) 2>&5
19023
 
  ac_status=$?
19024
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19025
 
  (exit $ac_status); }; }; then
19026
 
  ac_cv_lib_dld_shl_load=yes
19027
 
else
19028
 
  echo "$as_me: failed program was:" >&5
19029
 
sed 's/^/| /' conftest.$ac_ext >&5
19030
 
 
19031
 
ac_cv_lib_dld_shl_load=no
19032
 
fi
19033
 
rm -f conftest.err conftest.$ac_objext \
19034
 
      conftest$ac_exeext conftest.$ac_ext
19035
 
LIBS=$ac_check_lib_save_LIBS
19036
 
fi
19037
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19038
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19039
 
if test $ac_cv_lib_dld_shl_load = yes; then
19040
 
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
19041
 
else
19042
 
  echo "$as_me:$LINENO: checking for dlopen" >&5
19043
 
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19044
 
if test "${ac_cv_func_dlopen+set}" = set; then
19045
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19046
 
else
19047
 
  cat >conftest.$ac_ext <<_ACEOF
19048
 
/* confdefs.h.  */
19049
 
_ACEOF
19050
 
cat confdefs.h >>conftest.$ac_ext
19051
 
cat >>conftest.$ac_ext <<_ACEOF
19052
 
/* end confdefs.h.  */
19053
 
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19054
 
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19055
 
#define dlopen innocuous_dlopen
19056
 
 
19057
 
/* System header to define __stub macros and hopefully few prototypes,
19058
 
    which can conflict with char dlopen (); below.
19059
 
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19060
 
    <limits.h> exists even on freestanding compilers.  */
19061
 
 
19062
 
#ifdef __STDC__
19063
 
# include <limits.h>
19064
 
#else
19065
 
# include <assert.h>
19066
 
#endif
19067
 
 
19068
 
#undef dlopen
19069
 
 
19070
 
/* Override any gcc2 internal prototype to avoid an error.  */
19071
 
#ifdef __cplusplus
19072
 
extern "C"
19073
 
{
19074
 
#endif
19075
 
/* We use char because int might match the return type of a gcc2
19076
 
   builtin and then its argument prototype would still apply.  */
19077
 
char dlopen ();
19078
 
/* The GNU C library defines this for functions which it implements
19079
 
    to always fail with ENOSYS.  Some functions are actually named
19080
 
    something starting with __ and the normal name is an alias.  */
19081
 
#if defined (__stub_dlopen) || defined (__stub___dlopen)
19082
 
choke me
19083
 
#else
19084
 
char (*f) () = dlopen;
19085
 
#endif
19086
 
#ifdef __cplusplus
19087
 
}
19088
 
#endif
19089
 
 
19090
 
int
19091
 
main ()
19092
 
{
19093
 
return f != dlopen;
19094
 
  ;
19095
 
  return 0;
19096
 
}
19097
 
_ACEOF
19098
 
rm -f conftest.$ac_objext conftest$ac_exeext
19099
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19100
 
  (eval $ac_link) 2>conftest.er1
19101
 
  ac_status=$?
19102
 
  grep -v '^ *+' conftest.er1 >conftest.err
19103
 
  rm -f conftest.er1
19104
 
  cat conftest.err >&5
19105
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19106
 
  (exit $ac_status); } &&
19107
 
         { ac_try='test -z "$ac_c_werror_flag"
19108
 
                         || test ! -s conftest.err'
19109
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19110
 
  (eval $ac_try) 2>&5
19111
 
  ac_status=$?
19112
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19113
 
  (exit $ac_status); }; } &&
19114
 
         { ac_try='test -s conftest$ac_exeext'
19115
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19116
 
  (eval $ac_try) 2>&5
19117
 
  ac_status=$?
19118
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19119
 
  (exit $ac_status); }; }; then
19120
 
  ac_cv_func_dlopen=yes
19121
 
else
19122
 
  echo "$as_me: failed program was:" >&5
19123
 
sed 's/^/| /' conftest.$ac_ext >&5
19124
 
 
19125
 
ac_cv_func_dlopen=no
19126
 
fi
19127
 
rm -f conftest.err conftest.$ac_objext \
19128
 
      conftest$ac_exeext conftest.$ac_ext
19129
 
fi
19130
 
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19131
 
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19132
 
if test $ac_cv_func_dlopen = yes; then
19133
 
  lt_cv_dlopen="dlopen"
19134
 
else
19135
 
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19136
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19137
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19138
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19139
 
else
19140
 
  ac_check_lib_save_LIBS=$LIBS
19141
 
LIBS="-ldl  $LIBS"
19142
 
cat >conftest.$ac_ext <<_ACEOF
19143
 
/* confdefs.h.  */
19144
 
_ACEOF
19145
 
cat confdefs.h >>conftest.$ac_ext
19146
 
cat >>conftest.$ac_ext <<_ACEOF
19147
 
/* end confdefs.h.  */
19148
 
 
19149
 
/* Override any gcc2 internal prototype to avoid an error.  */
19150
 
#ifdef __cplusplus
19151
 
extern "C"
19152
 
#endif
19153
 
/* We use char because int might match the return type of a gcc2
19154
 
   builtin and then its argument prototype would still apply.  */
19155
 
char dlopen ();
19156
 
int
19157
 
main ()
19158
 
{
19159
 
dlopen ();
19160
 
  ;
19161
 
  return 0;
19162
 
}
19163
 
_ACEOF
19164
 
rm -f conftest.$ac_objext conftest$ac_exeext
19165
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19166
 
  (eval $ac_link) 2>conftest.er1
19167
 
  ac_status=$?
19168
 
  grep -v '^ *+' conftest.er1 >conftest.err
19169
 
  rm -f conftest.er1
19170
 
  cat conftest.err >&5
19171
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19172
 
  (exit $ac_status); } &&
19173
 
         { ac_try='test -z "$ac_c_werror_flag"
19174
 
                         || test ! -s conftest.err'
19175
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19176
 
  (eval $ac_try) 2>&5
19177
 
  ac_status=$?
19178
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19179
 
  (exit $ac_status); }; } &&
19180
 
         { ac_try='test -s conftest$ac_exeext'
19181
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19182
 
  (eval $ac_try) 2>&5
19183
 
  ac_status=$?
19184
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19185
 
  (exit $ac_status); }; }; then
19186
 
  ac_cv_lib_dl_dlopen=yes
19187
 
else
19188
 
  echo "$as_me: failed program was:" >&5
19189
 
sed 's/^/| /' conftest.$ac_ext >&5
19190
 
 
19191
 
ac_cv_lib_dl_dlopen=no
19192
 
fi
19193
 
rm -f conftest.err conftest.$ac_objext \
19194
 
      conftest$ac_exeext conftest.$ac_ext
19195
 
LIBS=$ac_check_lib_save_LIBS
19196
 
fi
19197
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19198
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19199
 
if test $ac_cv_lib_dl_dlopen = yes; then
19200
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19201
 
else
19202
 
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19203
 
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19204
 
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19205
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19206
 
else
19207
 
  ac_check_lib_save_LIBS=$LIBS
19208
 
LIBS="-lsvld  $LIBS"
19209
 
cat >conftest.$ac_ext <<_ACEOF
19210
 
/* confdefs.h.  */
19211
 
_ACEOF
19212
 
cat confdefs.h >>conftest.$ac_ext
19213
 
cat >>conftest.$ac_ext <<_ACEOF
19214
 
/* end confdefs.h.  */
19215
 
 
19216
 
/* Override any gcc2 internal prototype to avoid an error.  */
19217
 
#ifdef __cplusplus
19218
 
extern "C"
19219
 
#endif
19220
 
/* We use char because int might match the return type of a gcc2
19221
 
   builtin and then its argument prototype would still apply.  */
19222
 
char dlopen ();
19223
 
int
19224
 
main ()
19225
 
{
19226
 
dlopen ();
19227
 
  ;
19228
 
  return 0;
19229
 
}
19230
 
_ACEOF
19231
 
rm -f conftest.$ac_objext conftest$ac_exeext
19232
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19233
 
  (eval $ac_link) 2>conftest.er1
19234
 
  ac_status=$?
19235
 
  grep -v '^ *+' conftest.er1 >conftest.err
19236
 
  rm -f conftest.er1
19237
 
  cat conftest.err >&5
19238
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19239
 
  (exit $ac_status); } &&
19240
 
         { ac_try='test -z "$ac_c_werror_flag"
19241
 
                         || test ! -s conftest.err'
19242
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19243
 
  (eval $ac_try) 2>&5
19244
 
  ac_status=$?
19245
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19246
 
  (exit $ac_status); }; } &&
19247
 
         { ac_try='test -s conftest$ac_exeext'
19248
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19249
 
  (eval $ac_try) 2>&5
19250
 
  ac_status=$?
19251
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252
 
  (exit $ac_status); }; }; then
19253
 
  ac_cv_lib_svld_dlopen=yes
19254
 
else
19255
 
  echo "$as_me: failed program was:" >&5
19256
 
sed 's/^/| /' conftest.$ac_ext >&5
19257
 
 
19258
 
ac_cv_lib_svld_dlopen=no
19259
 
fi
19260
 
rm -f conftest.err conftest.$ac_objext \
19261
 
      conftest$ac_exeext conftest.$ac_ext
19262
 
LIBS=$ac_check_lib_save_LIBS
19263
 
fi
19264
 
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19265
 
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19266
 
if test $ac_cv_lib_svld_dlopen = yes; then
19267
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19268
 
else
19269
 
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19270
 
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19271
 
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19272
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19273
 
else
19274
 
  ac_check_lib_save_LIBS=$LIBS
19275
 
LIBS="-ldld  $LIBS"
19276
 
cat >conftest.$ac_ext <<_ACEOF
19277
 
/* confdefs.h.  */
19278
 
_ACEOF
19279
 
cat confdefs.h >>conftest.$ac_ext
19280
 
cat >>conftest.$ac_ext <<_ACEOF
19281
 
/* end confdefs.h.  */
19282
 
 
19283
 
/* Override any gcc2 internal prototype to avoid an error.  */
19284
 
#ifdef __cplusplus
19285
 
extern "C"
19286
 
#endif
19287
 
/* We use char because int might match the return type of a gcc2
19288
 
   builtin and then its argument prototype would still apply.  */
19289
 
char dld_link ();
19290
 
int
19291
 
main ()
19292
 
{
19293
 
dld_link ();
19294
 
  ;
19295
 
  return 0;
19296
 
}
19297
 
_ACEOF
19298
 
rm -f conftest.$ac_objext conftest$ac_exeext
19299
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19300
 
  (eval $ac_link) 2>conftest.er1
19301
 
  ac_status=$?
19302
 
  grep -v '^ *+' conftest.er1 >conftest.err
19303
 
  rm -f conftest.er1
19304
 
  cat conftest.err >&5
19305
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306
 
  (exit $ac_status); } &&
19307
 
         { ac_try='test -z "$ac_c_werror_flag"
19308
 
                         || test ! -s conftest.err'
19309
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19310
 
  (eval $ac_try) 2>&5
19311
 
  ac_status=$?
19312
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19313
 
  (exit $ac_status); }; } &&
19314
 
         { ac_try='test -s conftest$ac_exeext'
19315
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19316
 
  (eval $ac_try) 2>&5
19317
 
  ac_status=$?
19318
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319
 
  (exit $ac_status); }; }; then
19320
 
  ac_cv_lib_dld_dld_link=yes
19321
 
else
19322
 
  echo "$as_me: failed program was:" >&5
19323
 
sed 's/^/| /' conftest.$ac_ext >&5
19324
 
 
19325
 
ac_cv_lib_dld_dld_link=no
19326
 
fi
19327
 
rm -f conftest.err conftest.$ac_objext \
19328
 
      conftest$ac_exeext conftest.$ac_ext
19329
 
LIBS=$ac_check_lib_save_LIBS
19330
 
fi
19331
 
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19332
 
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19333
 
if test $ac_cv_lib_dld_dld_link = yes; then
19334
 
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19335
 
fi
19336
 
 
19337
 
              
19338
 
fi
19339
 
 
19340
 
            
19341
 
fi
19342
 
 
19343
 
          
19344
 
fi
19345
 
 
19346
 
        
19347
 
fi
19348
 
 
19349
 
      
19350
 
fi
19351
 
 
19352
 
    ;;
19353
 
  esac
19354
 
 
19355
 
  if test "x$lt_cv_dlopen" != xno; then
19356
 
    enable_dlopen=yes
19357
 
  else
19358
 
    enable_dlopen=no
19359
 
  fi
19360
 
 
19361
 
  case $lt_cv_dlopen in
19362
 
  dlopen)
19363
 
    save_CPPFLAGS="$CPPFLAGS"
19364
 
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19365
 
 
19366
 
    save_LDFLAGS="$LDFLAGS"
19367
 
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19368
 
 
19369
 
    save_LIBS="$LIBS"
19370
 
    LIBS="$lt_cv_dlopen_libs $LIBS"
19371
 
 
19372
 
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19373
 
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19374
 
if test "${lt_cv_dlopen_self+set}" = set; then
19375
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19376
 
else
19377
 
          if test "$cross_compiling" = yes; then :
19378
 
  lt_cv_dlopen_self=cross
19379
 
else
19380
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19381
 
  lt_status=$lt_dlunknown
19382
 
  cat > conftest.$ac_ext <<EOF
19383
 
#line __oline__ "configure"
19384
 
#include "confdefs.h"
19385
 
 
19386
 
#if HAVE_DLFCN_H
19387
 
#include <dlfcn.h>
19388
 
#endif
19389
 
 
19390
 
#include <stdio.h>
19391
 
 
19392
 
#ifdef RTLD_GLOBAL
19393
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
19394
 
#else
19395
 
#  ifdef DL_GLOBAL
19396
 
#    define LT_DLGLOBAL         DL_GLOBAL
19397
 
#  else
19398
 
#    define LT_DLGLOBAL         0
19399
 
#  endif
19400
 
#endif
19401
 
 
19402
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19403
 
   find out it does not work in some platform. */
19404
 
#ifndef LT_DLLAZY_OR_NOW
19405
 
#  ifdef RTLD_LAZY
19406
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
19407
 
#  else
19408
 
#    ifdef DL_LAZY
19409
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
19410
 
#    else
19411
 
#      ifdef RTLD_NOW
19412
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
19413
 
#      else
19414
 
#        ifdef DL_NOW
19415
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
19416
 
#        else
19417
 
#          define LT_DLLAZY_OR_NOW      0
19418
 
#        endif
19419
 
#      endif
19420
 
#    endif
19421
 
#  endif
19422
 
#endif
19423
 
 
19424
 
#ifdef __cplusplus
19425
 
extern "C" void exit (int);
19426
 
#endif
19427
 
 
19428
 
void fnord() { int i=42;}
19429
 
int main ()
19430
 
{
19431
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19432
 
  int status = $lt_dlunknown;
19433
 
 
19434
 
  if (self)
19435
 
    {
19436
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19437
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19438
 
      /* dlclose (self); */
19439
 
    }
19440
 
 
19441
 
    exit (status);
19442
 
}
19443
 
EOF
19444
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19445
 
  (eval $ac_link) 2>&5
19446
 
  ac_status=$?
19447
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19448
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19449
 
    (./conftest; exit; ) 2>/dev/null
19450
 
    lt_status=$?
19451
 
    case x$lt_status in
19452
 
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19453
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19454
 
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19455
 
    esac
19456
 
  else :
19457
 
    # compilation failed
19458
 
    lt_cv_dlopen_self=no
19459
 
  fi
19460
 
fi
19461
 
rm -fr conftest*
19462
 
 
19463
 
    
19464
 
fi
19465
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19466
 
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
19467
 
 
19468
 
    if test "x$lt_cv_dlopen_self" = xyes; then
19469
 
      LDFLAGS="$LDFLAGS $link_static_flag"
19470
 
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19471
 
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
19472
 
if test "${lt_cv_dlopen_self_static+set}" = set; then
19473
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
19474
 
else
19475
 
          if test "$cross_compiling" = yes; then :
19476
 
  lt_cv_dlopen_self_static=cross
19477
 
else
19478
 
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19479
 
  lt_status=$lt_dlunknown
19480
 
  cat > conftest.$ac_ext <<EOF
19481
 
#line __oline__ "configure"
19482
 
#include "confdefs.h"
19483
 
 
19484
 
#if HAVE_DLFCN_H
19485
 
#include <dlfcn.h>
19486
 
#endif
19487
 
 
19488
 
#include <stdio.h>
19489
 
 
19490
 
#ifdef RTLD_GLOBAL
19491
 
#  define LT_DLGLOBAL           RTLD_GLOBAL
19492
 
#else
19493
 
#  ifdef DL_GLOBAL
19494
 
#    define LT_DLGLOBAL         DL_GLOBAL
19495
 
#  else
19496
 
#    define LT_DLGLOBAL         0
19497
 
#  endif
19498
 
#endif
19499
 
 
19500
 
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19501
 
   find out it does not work in some platform. */
19502
 
#ifndef LT_DLLAZY_OR_NOW
19503
 
#  ifdef RTLD_LAZY
19504
 
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
19505
 
#  else
19506
 
#    ifdef DL_LAZY
19507
 
#      define LT_DLLAZY_OR_NOW          DL_LAZY
19508
 
#    else
19509
 
#      ifdef RTLD_NOW
19510
 
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
19511
 
#      else
19512
 
#        ifdef DL_NOW
19513
 
#          define LT_DLLAZY_OR_NOW      DL_NOW
19514
 
#        else
19515
 
#          define LT_DLLAZY_OR_NOW      0
19516
 
#        endif
19517
 
#      endif
19518
 
#    endif
19519
 
#  endif
19520
 
#endif
19521
 
 
19522
 
#ifdef __cplusplus
19523
 
extern "C" void exit (int);
19524
 
#endif
19525
 
 
19526
 
void fnord() { int i=42;}
19527
 
int main ()
19528
 
{
19529
 
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19530
 
  int status = $lt_dlunknown;
19531
 
 
19532
 
  if (self)
19533
 
    {
19534
 
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19535
 
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19536
 
      /* dlclose (self); */
19537
 
    }
19538
 
 
19539
 
    exit (status);
19540
 
}
19541
 
EOF
19542
 
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19543
 
  (eval $ac_link) 2>&5
19544
 
  ac_status=$?
19545
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546
 
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19547
 
    (./conftest; exit; ) 2>/dev/null
19548
 
    lt_status=$?
19549
 
    case x$lt_status in
19550
 
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19551
 
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19552
 
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19553
 
    esac
19554
 
  else :
19555
 
    # compilation failed
19556
 
    lt_cv_dlopen_self_static=no
19557
 
  fi
19558
 
fi
19559
 
rm -fr conftest*
19560
 
 
19561
 
      
19562
 
fi
19563
 
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19564
 
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
19565
 
    fi
19566
 
 
19567
 
    CPPFLAGS="$save_CPPFLAGS"
19568
 
    LDFLAGS="$save_LDFLAGS"
19569
 
    LIBS="$save_LIBS"
19570
 
    ;;
19571
 
  esac
19572
 
 
19573
 
  case $lt_cv_dlopen_self in
19574
 
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19575
 
  *) enable_dlopen_self=unknown ;;
19576
 
  esac
19577
 
 
19578
 
  case $lt_cv_dlopen_self_static in
19579
 
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19580
 
  *) enable_dlopen_self_static=unknown ;;
19581
 
  esac
19582
 
fi
19583
 
 
19584
 
 
19585
 
# The else clause should only fire when bootstrapping the
19586
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
19587
 
# with your package, and you will get complaints that there are
19588
 
# no rules to generate ltmain.sh.
19589
 
if test -f "$ltmain"; then
19590
 
  # See if we are running on zsh, and set the options which allow our commands through
19591
 
  # without removal of \ escapes.
19592
 
  if test -n "${ZSH_VERSION+set}" ; then
19593
 
    setopt NO_GLOB_SUBST
19594
 
  fi
19595
 
  # Now quote all the things that may contain metacharacters while being
19596
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
19597
 
  # variables and quote the copies for generation of the libtool script.
19598
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS AS EGREP RANLIB LN_S LTCC NM \
19599
 
    SED SHELL STRIP \
19600
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19601
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19602
 
    deplibs_check_method reload_flag reload_cmds need_locks \
19603
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19604
 
    lt_cv_sys_global_symbol_to_c_name_address \
19605
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19606
 
    old_postinstall_cmds old_postuninstall_cmds \
19607
 
    compiler_GCJ \
19608
 
    CC_GCJ \
19609
 
    LD_GCJ \
19610
 
    lt_prog_compiler_wl_GCJ \
19611
 
    lt_prog_compiler_pic_GCJ \
19612
 
    lt_prog_compiler_static_GCJ \
19613
 
    lt_prog_compiler_no_builtin_flag_GCJ \
19614
 
    export_dynamic_flag_spec_GCJ \
19615
 
    thread_safe_flag_spec_GCJ \
19616
 
    whole_archive_flag_spec_GCJ \
19617
 
    enable_shared_with_static_runtimes_GCJ \
19618
 
    old_archive_cmds_GCJ \
19619
 
    old_archive_from_new_cmds_GCJ \
19620
 
    predep_objects_GCJ \
19621
 
    postdep_objects_GCJ \
19622
 
    predeps_GCJ \
19623
 
    postdeps_GCJ \
19624
 
    compiler_lib_search_path_GCJ \
19625
 
    archive_cmds_GCJ \
19626
 
    archive_expsym_cmds_GCJ \
19627
 
    postinstall_cmds_GCJ \
19628
 
    postuninstall_cmds_GCJ \
19629
 
    old_archive_from_expsyms_cmds_GCJ \
19630
 
    allow_undefined_flag_GCJ \
19631
 
    no_undefined_flag_GCJ \
19632
 
    export_symbols_cmds_GCJ \
19633
 
    hardcode_libdir_flag_spec_GCJ \
19634
 
    hardcode_libdir_flag_spec_ld_GCJ \
19635
 
    hardcode_libdir_separator_GCJ \
19636
 
    hardcode_automatic_GCJ \
19637
 
    module_cmds_GCJ \
19638
 
    module_expsym_cmds_GCJ \
19639
 
    lt_cv_prog_compiler_c_o_GCJ \
19640
 
    exclude_expsyms_GCJ \
19641
 
    include_expsyms_GCJ; do
19642
 
 
19643
 
    case $var in
19644
 
    old_archive_cmds_GCJ | \
19645
 
    old_archive_from_new_cmds_GCJ | \
19646
 
    archive_cmds_GCJ | \
19647
 
    archive_expsym_cmds_GCJ | \
19648
 
    module_cmds_GCJ | \
19649
 
    module_expsym_cmds_GCJ | \
19650
 
    old_archive_from_expsyms_cmds_GCJ | \
19651
 
    export_symbols_cmds_GCJ | \
19652
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
19653
 
    postinstall_cmds | postuninstall_cmds | \
19654
 
    old_postinstall_cmds | old_postuninstall_cmds | \
19655
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19656
 
      # Double-quote double-evaled strings.
19657
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19658
 
      ;;
19659
 
    *)
19660
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19661
 
      ;;
19662
 
    esac
19663
 
  done
19664
 
 
19665
 
  case $lt_echo in
19666
 
  *'\$0 --fallback-echo"')
19667
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19668
 
    ;;
19669
 
  esac
19670
 
 
19671
 
cfgfile="$ofile"
19672
 
 
19673
 
  cat <<__EOF__ >> "$cfgfile"
19674
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19675
 
 
19676
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19677
 
 
19678
 
# Shell to use when invoking shell scripts.
19679
 
SHELL=$lt_SHELL
19680
 
 
19681
 
# Whether or not to build shared libraries.
19682
 
build_libtool_libs=$enable_shared
19683
 
 
19684
 
# Whether or not to build static libraries.
19685
 
build_old_libs=$enable_static
19686
 
 
19687
 
# Whether or not to add -lc for building shared libraries.
19688
 
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19689
 
 
19690
 
# Whether or not to disallow shared libs when runtime libs are static
19691
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19692
 
 
19693
 
# Whether or not to optimize for fast installation.
19694
 
fast_install=$enable_fast_install
19695
 
 
19696
 
# The host system.
19697
 
host_alias=$host_alias
19698
 
host=$host
19699
 
host_os=$host_os
19700
 
 
19701
 
# The build system.
19702
 
build_alias=$build_alias
19703
 
build=$build
19704
 
build_os=$build_os
19705
 
 
19706
 
# An echo program that does not interpret backslashes.
19707
 
echo=$lt_echo
19708
 
 
19709
 
# The archiver.
19710
 
AR=$lt_AR
19711
 
AR_FLAGS=$lt_AR_FLAGS
19712
 
 
19713
 
# A C compiler.
19714
 
LTCC=$lt_LTCC
19715
 
 
19716
 
# A language-specific compiler.
19717
 
CC=$lt_compiler_GCJ
19718
 
 
19719
 
# Is the compiler the GNU C compiler?
19720
 
with_gcc=$GCC_GCJ
19721
 
 
19722
 
# An ERE matcher.
19723
 
EGREP=$lt_EGREP
19724
 
 
19725
 
# The linker used to build libraries.
19726
 
LD=$lt_LD_GCJ
19727
 
 
19728
 
# Whether we need hard or soft links.
19729
 
LN_S=$lt_LN_S
19730
 
 
19731
 
# A BSD-compatible nm program.
19732
 
NM=$lt_NM
19733
 
 
19734
 
# A symbol stripping program
19735
 
STRIP=$lt_STRIP
19736
 
 
19737
 
# Used to examine libraries when file_magic_cmd begins "file"
19738
 
MAGIC_CMD=$MAGIC_CMD
19739
 
 
19740
 
# Used on cygwin: DLL creation program.
19741
 
DLLTOOL="$DLLTOOL"
19742
 
 
19743
 
# Used on cygwin: object dumper.
19744
 
OBJDUMP="$OBJDUMP"
19745
 
 
19746
 
# Used on cygwin: assembler.
19747
 
AS=$lt_AS
19748
 
 
19749
 
# The name of the directory that contains temporary libtool files.
19750
 
objdir=$objdir
19751
 
 
19752
 
# How to create reloadable object files.
19753
 
reload_flag=$lt_reload_flag
19754
 
reload_cmds=$lt_reload_cmds
19755
 
 
19756
 
# How to pass a linker flag through the compiler.
19757
 
wl=$lt_lt_prog_compiler_wl_GCJ
19758
 
 
19759
 
# Object file suffix (normally "o").
19760
 
objext="$ac_objext"
19761
 
 
19762
 
# Old archive suffix (normally "a").
19763
 
libext="$libext"
19764
 
 
19765
 
# Shared library suffix (normally ".so").
19766
 
shrext_cmds='$shrext_cmds'
19767
 
 
19768
 
# Executable file suffix (normally "").
19769
 
exeext="$exeext"
19770
 
 
19771
 
# Additional compiler flags for building library objects.
19772
 
pic_flag=$lt_lt_prog_compiler_pic_GCJ
19773
 
pic_mode=$pic_mode
19774
 
 
19775
 
# What is the maximum length of a command?
19776
 
max_cmd_len=$lt_cv_sys_max_cmd_len
19777
 
 
19778
 
# Does compiler simultaneously support -c and -o options?
19779
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19780
 
 
19781
 
# Must we lock files when doing compilation ?
19782
 
need_locks=$lt_need_locks
19783
 
 
19784
 
# Do we need the lib prefix for modules?
19785
 
need_lib_prefix=$need_lib_prefix
19786
 
 
19787
 
# Do we need a version for libraries?
19788
 
need_version=$need_version
19789
 
 
19790
 
# Whether dlopen is supported.
19791
 
dlopen_support=$enable_dlopen
19792
 
 
19793
 
# Whether dlopen of programs is supported.
19794
 
dlopen_self=$enable_dlopen_self
19795
 
 
19796
 
# Whether dlopen of statically linked programs is supported.
19797
 
dlopen_self_static=$enable_dlopen_self_static
19798
 
 
19799
 
# Compiler flag to prevent dynamic linking.
19800
 
link_static_flag=$lt_lt_prog_compiler_static_GCJ
19801
 
 
19802
 
# Compiler flag to turn off builtin functions.
19803
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19804
 
 
19805
 
# Compiler flag to allow reflexive dlopens.
19806
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19807
 
 
19808
 
# Compiler flag to generate shared objects directly from archives.
19809
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19810
 
 
19811
 
# Compiler flag to generate thread-safe objects.
19812
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19813
 
 
19814
 
# Library versioning type.
19815
 
version_type=$version_type
19816
 
 
19817
 
# Format of library name prefix.
19818
 
libname_spec=$lt_libname_spec
19819
 
 
19820
 
# List of archive names.  First name is the real one, the rest are links.
19821
 
# The last name is the one that the linker finds with -lNAME.
19822
 
library_names_spec=$lt_library_names_spec
19823
 
 
19824
 
# The coded name of the library, if different from the real name.
19825
 
soname_spec=$lt_soname_spec
19826
 
 
19827
 
# Commands used to build and install an old-style archive.
19828
 
RANLIB=$lt_RANLIB
19829
 
old_archive_cmds=$lt_old_archive_cmds_GCJ
19830
 
old_postinstall_cmds=$lt_old_postinstall_cmds
19831
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19832
 
 
19833
 
# Create an old-style archive from a shared archive.
19834
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19835
 
 
19836
 
# Create a temporary old-style archive to link instead of a shared archive.
19837
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19838
 
 
19839
 
# Commands used to build and install a shared archive.
19840
 
archive_cmds=$lt_archive_cmds_GCJ
19841
 
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19842
 
postinstall_cmds=$lt_postinstall_cmds
19843
 
postuninstall_cmds=$lt_postuninstall_cmds
19844
 
 
19845
 
# Commands used to build a loadable module (assumed same as above if empty)
19846
 
module_cmds=$lt_module_cmds_GCJ
19847
 
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19848
 
 
19849
 
# Commands to strip libraries.
19850
 
old_striplib=$lt_old_striplib
19851
 
striplib=$lt_striplib
19852
 
 
19853
 
# Dependencies to place before the objects being linked to create a
19854
 
# shared library.
19855
 
predep_objects=$lt_predep_objects_GCJ
19856
 
 
19857
 
# Dependencies to place after the objects being linked to create a
19858
 
# shared library.
19859
 
postdep_objects=$lt_postdep_objects_GCJ
19860
 
 
19861
 
# Dependencies to place before the objects being linked to create a
19862
 
# shared library.
19863
 
predeps=$lt_predeps_GCJ
19864
 
 
19865
 
# Dependencies to place after the objects being linked to create a
19866
 
# shared library.
19867
 
postdeps=$lt_postdeps_GCJ
19868
 
 
19869
 
# The library search path used internally by the compiler when linking
19870
 
# a shared library.
19871
 
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19872
 
 
19873
 
# Method to check whether dependent libraries are shared objects.
19874
 
deplibs_check_method=$lt_deplibs_check_method
19875
 
 
19876
 
# Command to use when deplibs_check_method == file_magic.
19877
 
file_magic_cmd=$lt_file_magic_cmd
19878
 
 
19879
 
# Flag that allows shared libraries with undefined symbols to be built.
19880
 
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19881
 
 
19882
 
# Flag that forces no undefined symbols.
19883
 
no_undefined_flag=$lt_no_undefined_flag_GCJ
19884
 
 
19885
 
# Commands used to finish a libtool library installation in a directory.
19886
 
finish_cmds=$lt_finish_cmds
19887
 
 
19888
 
# Same as above, but a single script fragment to be evaled but not shown.
19889
 
finish_eval=$lt_finish_eval
19890
 
 
19891
 
# Take the output of nm and produce a listing of raw symbols and C names.
19892
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19893
 
 
19894
 
# Transform the output of nm in a proper C declaration
19895
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19896
 
 
19897
 
# Transform the output of nm in a C name address pair
19898
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19899
 
 
19900
 
# This is the shared library runtime path variable.
19901
 
runpath_var=$runpath_var
19902
 
 
19903
 
# This is the shared library path variable.
19904
 
shlibpath_var=$shlibpath_var
19905
 
 
19906
 
# Is shlibpath searched before the hard-coded library search path?
19907
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19908
 
 
19909
 
# How to hardcode a shared library path into an executable.
19910
 
hardcode_action=$hardcode_action_GCJ
19911
 
 
19912
 
# Whether we should hardcode library paths into libraries.
19913
 
hardcode_into_libs=$hardcode_into_libs
19914
 
 
19915
 
# Flag to hardcode \$libdir into a binary during linking.
19916
 
# This must work even if \$libdir does not exist.
19917
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19918
 
 
19919
 
# If ld is used when linking, flag to hardcode \$libdir into
19920
 
# a binary during linking. This must work even if \$libdir does
19921
 
# not exist.
19922
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19923
 
 
19924
 
# Whether we need a single -rpath flag with a separated argument.
19925
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19926
 
 
19927
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19928
 
# resulting binary.
19929
 
hardcode_direct=$hardcode_direct_GCJ
19930
 
 
19931
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19932
 
# resulting binary.
19933
 
hardcode_minus_L=$hardcode_minus_L_GCJ
19934
 
 
19935
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19936
 
# the resulting binary.
19937
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19938
 
 
19939
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
19940
 
# and all subsequent libraries and executables linked against it.
19941
 
hardcode_automatic=$hardcode_automatic_GCJ
19942
 
 
19943
 
# Variables whose values should be saved in libtool wrapper scripts and
19944
 
# restored at relink time.
19945
 
variables_saved_for_relink="$variables_saved_for_relink"
19946
 
 
19947
 
# Whether libtool must link a program against all its dependency libraries.
19948
 
link_all_deplibs=$link_all_deplibs_GCJ
19949
 
 
19950
 
# Compile-time system search path for libraries
19951
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19952
 
 
19953
 
# Run-time system search path for libraries
19954
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19955
 
 
19956
 
# Fix the shell variable \$srcfile for the compiler.
19957
 
fix_srcfile_path="$fix_srcfile_path_GCJ"
19958
 
 
19959
 
# Set to yes if exported symbols are required.
19960
 
always_export_symbols=$always_export_symbols_GCJ
19961
 
 
19962
 
# The commands to list exported symbols.
19963
 
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19964
 
 
19965
 
# The commands to extract the exported symbol list from a shared archive.
19966
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19967
 
 
19968
 
# Symbols that should not be listed in the preloaded symbols.
19969
 
exclude_expsyms=$lt_exclude_expsyms_GCJ
19970
 
 
19971
 
# Symbols that must always be exported.
19972
 
include_expsyms=$lt_include_expsyms_GCJ
19973
 
 
19974
 
# ### END LIBTOOL TAG CONFIG: $tagname
19975
 
 
19976
 
__EOF__
19977
 
 
19978
 
 
19979
 
else
19980
 
  # If there is no Makefile yet, we rely on a make rule to execute
19981
 
  # `config.status --recheck' to rerun these tests and create the
19982
 
  # libtool script then.
19983
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19984
 
  if test -f "$ltmain_in"; then
19985
 
    test -f Makefile && make "$ltmain"
19986
 
  fi
19987
 
fi
19988
 
 
19989
 
 
19990
 
ac_ext=c
19991
 
ac_cpp='$CPP $CPPFLAGS'
19992
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19993
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19994
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19995
 
 
19996
 
CC="$lt_save_CC"
19997
 
 
19998
 
        else
19999
 
          tagname=""
20000
 
        fi
20001
 
        ;;
20002
 
 
20003
 
      RC)
20004
 
        
20005
 
 
20006
 
 
20007
 
# Source file extension for RC test sources.
20008
 
ac_ext=rc
20009
 
 
20010
 
# Object file extension for compiled RC test sources.
20011
 
objext=o
20012
 
objext_RC=$objext
20013
 
 
20014
 
# Code to be used in simple compile tests
20015
 
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20016
 
 
20017
 
# Code to be used in simple link tests
20018
 
lt_simple_link_test_code="$lt_simple_compile_test_code"
20019
 
 
20020
 
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20021
 
 
20022
 
# If no C compiler was specified, use CC.
20023
 
LTCC=${LTCC-"$CC"}
20024
 
 
20025
 
# Allow CC to be a program name with arguments.
20026
 
compiler=$CC
20027
 
 
20028
 
 
20029
 
# Allow CC to be a program name with arguments.
20030
 
lt_save_CC="$CC"
20031
 
CC=${RC-"windres"}
20032
 
compiler=$CC
20033
 
compiler_RC=$CC
20034
 
lt_cv_prog_compiler_c_o_RC=yes
20035
 
 
20036
 
# The else clause should only fire when bootstrapping the
20037
 
# libtool distribution, otherwise you forgot to ship ltmain.sh
20038
 
# with your package, and you will get complaints that there are
20039
 
# no rules to generate ltmain.sh.
20040
 
if test -f "$ltmain"; then
20041
 
  # See if we are running on zsh, and set the options which allow our commands through
20042
 
  # without removal of \ escapes.
20043
 
  if test -n "${ZSH_VERSION+set}" ; then
20044
 
    setopt NO_GLOB_SUBST
20045
 
  fi
20046
 
  # Now quote all the things that may contain metacharacters while being
20047
 
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
20048
 
  # variables and quote the copies for generation of the libtool script.
20049
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS AS EGREP RANLIB LN_S LTCC NM \
20050
 
    SED SHELL STRIP \
20051
 
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20052
 
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20053
 
    deplibs_check_method reload_flag reload_cmds need_locks \
20054
 
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20055
 
    lt_cv_sys_global_symbol_to_c_name_address \
20056
 
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20057
 
    old_postinstall_cmds old_postuninstall_cmds \
20058
 
    compiler_RC \
20059
 
    CC_RC \
20060
 
    LD_RC \
20061
 
    lt_prog_compiler_wl_RC \
20062
 
    lt_prog_compiler_pic_RC \
20063
 
    lt_prog_compiler_static_RC \
20064
 
    lt_prog_compiler_no_builtin_flag_RC \
20065
 
    export_dynamic_flag_spec_RC \
20066
 
    thread_safe_flag_spec_RC \
20067
 
    whole_archive_flag_spec_RC \
20068
 
    enable_shared_with_static_runtimes_RC \
20069
 
    old_archive_cmds_RC \
20070
 
    old_archive_from_new_cmds_RC \
20071
 
    predep_objects_RC \
20072
 
    postdep_objects_RC \
20073
 
    predeps_RC \
20074
 
    postdeps_RC \
20075
 
    compiler_lib_search_path_RC \
20076
 
    archive_cmds_RC \
20077
 
    archive_expsym_cmds_RC \
20078
 
    postinstall_cmds_RC \
20079
 
    postuninstall_cmds_RC \
20080
 
    old_archive_from_expsyms_cmds_RC \
20081
 
    allow_undefined_flag_RC \
20082
 
    no_undefined_flag_RC \
20083
 
    export_symbols_cmds_RC \
20084
 
    hardcode_libdir_flag_spec_RC \
20085
 
    hardcode_libdir_flag_spec_ld_RC \
20086
 
    hardcode_libdir_separator_RC \
20087
 
    hardcode_automatic_RC \
20088
 
    module_cmds_RC \
20089
 
    module_expsym_cmds_RC \
20090
 
    lt_cv_prog_compiler_c_o_RC \
20091
 
    exclude_expsyms_RC \
20092
 
    include_expsyms_RC; do
20093
 
 
20094
 
    case $var in
20095
 
    old_archive_cmds_RC | \
20096
 
    old_archive_from_new_cmds_RC | \
20097
 
    archive_cmds_RC | \
20098
 
    archive_expsym_cmds_RC | \
20099
 
    module_cmds_RC | \
20100
 
    module_expsym_cmds_RC | \
20101
 
    old_archive_from_expsyms_cmds_RC | \
20102
 
    export_symbols_cmds_RC | \
20103
 
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
20104
 
    postinstall_cmds | postuninstall_cmds | \
20105
 
    old_postinstall_cmds | old_postuninstall_cmds | \
20106
 
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20107
 
      # Double-quote double-evaled strings.
20108
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20109
 
      ;;
20110
 
    *)
20111
 
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20112
 
      ;;
20113
 
    esac
20114
 
  done
20115
 
 
20116
 
  case $lt_echo in
20117
 
  *'\$0 --fallback-echo"')
20118
 
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20119
 
    ;;
20120
 
  esac
20121
 
 
20122
 
cfgfile="$ofile"
20123
 
 
20124
 
  cat <<__EOF__ >> "$cfgfile"
20125
 
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20126
 
 
20127
 
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20128
 
 
20129
 
# Shell to use when invoking shell scripts.
20130
 
SHELL=$lt_SHELL
20131
 
 
20132
 
# Whether or not to build shared libraries.
20133
 
build_libtool_libs=$enable_shared
20134
 
 
20135
 
# Whether or not to build static libraries.
20136
 
build_old_libs=$enable_static
20137
 
 
20138
 
# Whether or not to add -lc for building shared libraries.
20139
 
build_libtool_need_lc=$archive_cmds_need_lc_RC
20140
 
 
20141
 
# Whether or not to disallow shared libs when runtime libs are static
20142
 
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20143
 
 
20144
 
# Whether or not to optimize for fast installation.
20145
 
fast_install=$enable_fast_install
20146
 
 
20147
 
# The host system.
20148
 
host_alias=$host_alias
20149
 
host=$host
20150
 
host_os=$host_os
20151
 
 
20152
 
# The build system.
20153
 
build_alias=$build_alias
20154
 
build=$build
20155
 
build_os=$build_os
20156
 
 
20157
 
# An echo program that does not interpret backslashes.
20158
 
echo=$lt_echo
20159
 
 
20160
 
# The archiver.
20161
 
AR=$lt_AR
20162
 
AR_FLAGS=$lt_AR_FLAGS
20163
 
 
20164
 
# A C compiler.
20165
 
LTCC=$lt_LTCC
20166
 
 
20167
 
# A language-specific compiler.
20168
 
CC=$lt_compiler_RC
20169
 
 
20170
 
# Is the compiler the GNU C compiler?
20171
 
with_gcc=$GCC_RC
20172
 
 
20173
 
# An ERE matcher.
20174
 
EGREP=$lt_EGREP
20175
 
 
20176
 
# The linker used to build libraries.
20177
 
LD=$lt_LD_RC
20178
 
 
20179
 
# Whether we need hard or soft links.
20180
 
LN_S=$lt_LN_S
20181
 
 
20182
 
# A BSD-compatible nm program.
20183
 
NM=$lt_NM
20184
 
 
20185
 
# A symbol stripping program
20186
 
STRIP=$lt_STRIP
20187
 
 
20188
 
# Used to examine libraries when file_magic_cmd begins "file"
20189
 
MAGIC_CMD=$MAGIC_CMD
20190
 
 
20191
 
# Used on cygwin: DLL creation program.
20192
 
DLLTOOL="$DLLTOOL"
20193
 
 
20194
 
# Used on cygwin: object dumper.
20195
 
OBJDUMP="$OBJDUMP"
20196
 
 
20197
 
# Used on cygwin: assembler.
20198
 
AS=$lt_AS
20199
 
 
20200
 
# The name of the directory that contains temporary libtool files.
20201
 
objdir=$objdir
20202
 
 
20203
 
# How to create reloadable object files.
20204
 
reload_flag=$lt_reload_flag
20205
 
reload_cmds=$lt_reload_cmds
20206
 
 
20207
 
# How to pass a linker flag through the compiler.
20208
 
wl=$lt_lt_prog_compiler_wl_RC
20209
 
 
20210
 
# Object file suffix (normally "o").
20211
 
objext="$ac_objext"
20212
 
 
20213
 
# Old archive suffix (normally "a").
20214
 
libext="$libext"
20215
 
 
20216
 
# Shared library suffix (normally ".so").
20217
 
shrext_cmds='$shrext_cmds'
20218
 
 
20219
 
# Executable file suffix (normally "").
20220
 
exeext="$exeext"
20221
 
 
20222
 
# Additional compiler flags for building library objects.
20223
 
pic_flag=$lt_lt_prog_compiler_pic_RC
20224
 
pic_mode=$pic_mode
20225
 
 
20226
 
# What is the maximum length of a command?
20227
 
max_cmd_len=$lt_cv_sys_max_cmd_len
20228
 
 
20229
 
# Does compiler simultaneously support -c and -o options?
20230
 
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20231
 
 
20232
 
# Must we lock files when doing compilation ?
20233
 
need_locks=$lt_need_locks
20234
 
 
20235
 
# Do we need the lib prefix for modules?
20236
 
need_lib_prefix=$need_lib_prefix
20237
 
 
20238
 
# Do we need a version for libraries?
20239
 
need_version=$need_version
20240
 
 
20241
 
# Whether dlopen is supported.
20242
 
dlopen_support=$enable_dlopen
20243
 
 
20244
 
# Whether dlopen of programs is supported.
20245
 
dlopen_self=$enable_dlopen_self
20246
 
 
20247
 
# Whether dlopen of statically linked programs is supported.
20248
 
dlopen_self_static=$enable_dlopen_self_static
20249
 
 
20250
 
# Compiler flag to prevent dynamic linking.
20251
 
link_static_flag=$lt_lt_prog_compiler_static_RC
20252
 
 
20253
 
# Compiler flag to turn off builtin functions.
20254
 
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20255
 
 
20256
 
# Compiler flag to allow reflexive dlopens.
20257
 
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20258
 
 
20259
 
# Compiler flag to generate shared objects directly from archives.
20260
 
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20261
 
 
20262
 
# Compiler flag to generate thread-safe objects.
20263
 
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20264
 
 
20265
 
# Library versioning type.
20266
 
version_type=$version_type
20267
 
 
20268
 
# Format of library name prefix.
20269
 
libname_spec=$lt_libname_spec
20270
 
 
20271
 
# List of archive names.  First name is the real one, the rest are links.
20272
 
# The last name is the one that the linker finds with -lNAME.
20273
 
library_names_spec=$lt_library_names_spec
20274
 
 
20275
 
# The coded name of the library, if different from the real name.
20276
 
soname_spec=$lt_soname_spec
20277
 
 
20278
 
# Commands used to build and install an old-style archive.
20279
 
RANLIB=$lt_RANLIB
20280
 
old_archive_cmds=$lt_old_archive_cmds_RC
20281
 
old_postinstall_cmds=$lt_old_postinstall_cmds
20282
 
old_postuninstall_cmds=$lt_old_postuninstall_cmds
20283
 
 
20284
 
# Create an old-style archive from a shared archive.
20285
 
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20286
 
 
20287
 
# Create a temporary old-style archive to link instead of a shared archive.
20288
 
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20289
 
 
20290
 
# Commands used to build and install a shared archive.
20291
 
archive_cmds=$lt_archive_cmds_RC
20292
 
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20293
 
postinstall_cmds=$lt_postinstall_cmds
20294
 
postuninstall_cmds=$lt_postuninstall_cmds
20295
 
 
20296
 
# Commands used to build a loadable module (assumed same as above if empty)
20297
 
module_cmds=$lt_module_cmds_RC
20298
 
module_expsym_cmds=$lt_module_expsym_cmds_RC
20299
 
 
20300
 
# Commands to strip libraries.
20301
 
old_striplib=$lt_old_striplib
20302
 
striplib=$lt_striplib
20303
 
 
20304
 
# Dependencies to place before the objects being linked to create a
20305
 
# shared library.
20306
 
predep_objects=$lt_predep_objects_RC
20307
 
 
20308
 
# Dependencies to place after the objects being linked to create a
20309
 
# shared library.
20310
 
postdep_objects=$lt_postdep_objects_RC
20311
 
 
20312
 
# Dependencies to place before the objects being linked to create a
20313
 
# shared library.
20314
 
predeps=$lt_predeps_RC
20315
 
 
20316
 
# Dependencies to place after the objects being linked to create a
20317
 
# shared library.
20318
 
postdeps=$lt_postdeps_RC
20319
 
 
20320
 
# The library search path used internally by the compiler when linking
20321
 
# a shared library.
20322
 
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20323
 
 
20324
 
# Method to check whether dependent libraries are shared objects.
20325
 
deplibs_check_method=$lt_deplibs_check_method
20326
 
 
20327
 
# Command to use when deplibs_check_method == file_magic.
20328
 
file_magic_cmd=$lt_file_magic_cmd
20329
 
 
20330
 
# Flag that allows shared libraries with undefined symbols to be built.
20331
 
allow_undefined_flag=$lt_allow_undefined_flag_RC
20332
 
 
20333
 
# Flag that forces no undefined symbols.
20334
 
no_undefined_flag=$lt_no_undefined_flag_RC
20335
 
 
20336
 
# Commands used to finish a libtool library installation in a directory.
20337
 
finish_cmds=$lt_finish_cmds
20338
 
 
20339
 
# Same as above, but a single script fragment to be evaled but not shown.
20340
 
finish_eval=$lt_finish_eval
20341
 
 
20342
 
# Take the output of nm and produce a listing of raw symbols and C names.
20343
 
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20344
 
 
20345
 
# Transform the output of nm in a proper C declaration
20346
 
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20347
 
 
20348
 
# Transform the output of nm in a C name address pair
20349
 
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20350
 
 
20351
 
# This is the shared library runtime path variable.
20352
 
runpath_var=$runpath_var
20353
 
 
20354
 
# This is the shared library path variable.
20355
 
shlibpath_var=$shlibpath_var
20356
 
 
20357
 
# Is shlibpath searched before the hard-coded library search path?
20358
 
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20359
 
 
20360
 
# How to hardcode a shared library path into an executable.
20361
 
hardcode_action=$hardcode_action_RC
20362
 
 
20363
 
# Whether we should hardcode library paths into libraries.
20364
 
hardcode_into_libs=$hardcode_into_libs
20365
 
 
20366
 
# Flag to hardcode \$libdir into a binary during linking.
20367
 
# This must work even if \$libdir does not exist.
20368
 
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20369
 
 
20370
 
# If ld is used when linking, flag to hardcode \$libdir into
20371
 
# a binary during linking. This must work even if \$libdir does
20372
 
# not exist.
20373
 
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20374
 
 
20375
 
# Whether we need a single -rpath flag with a separated argument.
20376
 
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20377
 
 
20378
 
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20379
 
# resulting binary.
20380
 
hardcode_direct=$hardcode_direct_RC
20381
 
 
20382
 
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20383
 
# resulting binary.
20384
 
hardcode_minus_L=$hardcode_minus_L_RC
20385
 
 
20386
 
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20387
 
# the resulting binary.
20388
 
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20389
 
 
20390
 
# Set to yes if building a shared library automatically hardcodes DIR into the library
20391
 
# and all subsequent libraries and executables linked against it.
20392
 
hardcode_automatic=$hardcode_automatic_RC
20393
 
 
20394
 
# Variables whose values should be saved in libtool wrapper scripts and
20395
 
# restored at relink time.
20396
 
variables_saved_for_relink="$variables_saved_for_relink"
20397
 
 
20398
 
# Whether libtool must link a program against all its dependency libraries.
20399
 
link_all_deplibs=$link_all_deplibs_RC
20400
 
 
20401
 
# Compile-time system search path for libraries
20402
 
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20403
 
 
20404
 
# Run-time system search path for libraries
20405
 
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20406
 
 
20407
 
# Fix the shell variable \$srcfile for the compiler.
20408
 
fix_srcfile_path="$fix_srcfile_path_RC"
20409
 
 
20410
 
# Set to yes if exported symbols are required.
20411
 
always_export_symbols=$always_export_symbols_RC
20412
 
 
20413
 
# The commands to list exported symbols.
20414
 
export_symbols_cmds=$lt_export_symbols_cmds_RC
20415
 
 
20416
 
# The commands to extract the exported symbol list from a shared archive.
20417
 
extract_expsyms_cmds=$lt_extract_expsyms_cmds
20418
 
 
20419
 
# Symbols that should not be listed in the preloaded symbols.
20420
 
exclude_expsyms=$lt_exclude_expsyms_RC
20421
 
 
20422
 
# Symbols that must always be exported.
20423
 
include_expsyms=$lt_include_expsyms_RC
20424
 
 
20425
 
# ### END LIBTOOL TAG CONFIG: $tagname
20426
 
 
20427
 
__EOF__
20428
 
 
20429
 
 
20430
 
else
20431
 
  # If there is no Makefile yet, we rely on a make rule to execute
20432
 
  # `config.status --recheck' to rerun these tests and create the
20433
 
  # libtool script then.
20434
 
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20435
 
  if test -f "$ltmain_in"; then
20436
 
    test -f Makefile && make "$ltmain"
20437
 
  fi
20438
 
fi
20439
 
 
20440
 
 
20441
 
ac_ext=c
20442
 
ac_cpp='$CPP $CPPFLAGS'
20443
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20444
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20445
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
20446
 
 
20447
 
CC="$lt_save_CC"
20448
 
 
20449
 
        ;;
20450
 
 
20451
 
      *)
20452
 
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20453
 
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20454
 
   { (exit 1); exit 1; }; }
20455
 
        ;;
20456
 
      esac
20457
 
 
20458
 
      # Append the new tag name to the list of available tags.
20459
 
      if test -n "$tagname" ; then
20460
 
      available_tags="$available_tags $tagname"
20461
 
    fi
20462
 
    fi
20463
 
  done
20464
 
  IFS="$lt_save_ifs"
20465
 
 
20466
 
  # Now substitute the updated list of available tags.
20467
 
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20468
 
    mv "${ofile}T" "$ofile"
20469
 
    chmod +x "$ofile"
20470
 
  else
20471
 
    rm -f "${ofile}T"
20472
 
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20473
 
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20474
 
   { (exit 1); exit 1; }; }
20475
 
  fi
20476
 
fi
20477
 
 
20478
 
 
20479
 
 
20480
 
# This can be used to rebuild libtool when needed
20481
 
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20482
 
 
20483
 
# Always use our own libtool.
20484
 
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20485
 
 
20486
 
# Prevent multiple expansion
20487
 
 
20488
 
 
20489
 
 
20490
 
 
20491
 
 
20492
 
 
20493
 
 
20494
 
 
20495
 
 
20496
 
 
20497
 
 
20498
 
  
20499
 
 
20500
 
  
20501
 
 
20502
 
 
20503
 
  
20504
 
       
20505
 
       
20506
 
 
20507
 
 
20508
 
TCSD_DEFAULT_PORT=30003
20509
 
 
20510
 
 
20511
 
 
20512
 
CFLAGS="$CFLAGS -I../include -W -Wall -Werror -Wno-unused-parameter -DTCSD_DEFAULT_PORT=${TCSD_DEFAULT_PORT} -DTSS_VER_MAJOR=${TSS_VER_MAJOR} -DTSS_VER_MINOR=${TSS_VER_MINOR}"
20513
 
#CFLAGS="$CFLAGS -I../include -std=c99 -pedantic -W -Wall"
20514
 
KERNEL_VERSION=`uname -r`
20515
 
 
20516
 
 
20517
 
# When we build the rpms, prefix will be /usr. This'll do some things that make sense,
20518
 
# like put our sbin stuff in /usr/sbin and our library in /usr/lib. It'll do some other
20519
 
# things that don't make sense like put our config file in /usr/etc. So, I'll just hack
20520
 
# it here. If the --prefix option isn't specified during configure, let it all go to
20521
 
# /usr/local, even /usr/local/etc. :-P
20522
 
if test x"${prefix}" == x"/usr"; then
20523
 
        sysconfdir="/etc"
20524
 
        localstatedir="/var"
20525
 
        mandir="/usr/share/man"
20526
 
elif test x"${prefix}" == x"NONE"; then
20527
 
        localstatedir="/usr/local/var"
20528
 
fi
20529
 
 
20530
 
                                                                                                                                                                                              ac_config_files="$ac_config_files dist/tcsd.conf dist/fedora/trousers.spec dist/trousers.spec Makefile src/Makefile src/include/Makefile src/tcs/Makefile src/tddl/Makefile src/tspi/Makefile src/trspi/Makefile src/tcsd/Makefile tools/Makefile man/man8/tcsd.8 man/man5/tcsd.conf.5 dist/Makefile man/Makefile man/man3/Makefile man/man5/Makefile man/man8/Makefile"
20531
 
cat >confcache <<\_ACEOF
20532
 
# This file is a shell script that caches the results of configure
20533
 
# tests run on this system so they can be shared between configure
20534
 
# scripts and configure runs, see configure's option --config-cache.
20535
 
# It is not useful on other systems.  If it contains results you don't
20536
 
# want to keep, you may remove or edit it.
20537
 
#
20538
 
# config.status only pays attention to the cache file if you give it
20539
 
# the --recheck option to rerun configure.
20540
 
#
20541
 
# `ac_cv_env_foo' variables (set or unset) will be overridden when
20542
 
# loading this file, other *unset* `ac_cv_foo' will be assigned the
20543
 
# following values.
20544
 
 
20545
 
_ACEOF
20546
 
 
20547
 
# The following way of writing the cache mishandles newlines in values,
20548
 
# but we know of no workaround that is simple, portable, and efficient.
20549
 
# So, don't put newlines in cache variables' values.
20550
 
# Ultrix sh set writes to stderr and can't be redirected directly,
20551
 
# and sets the high bit in the cache file unless we assign to the vars.
20552
 
{
20553
 
  (set) 2>&1 |
20554
 
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
20555
 
    *ac_space=\ *)
20556
 
      # `set' does not quote correctly, so add quotes (double-quote
20557
 
      # substitution turns \\\\ into \\, and sed turns \\ into \).
20558
 
      sed -n \
20559
 
        "s/'/'\\\\''/g;
20560
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20561
 
      ;;
20562
 
    *)
20563
 
      # `set' quotes correctly as required by POSIX, so do not add quotes.
20564
 
      sed -n \
20565
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20566
 
      ;;
20567
 
    esac;
20568
 
} |
20569
 
  sed '
20570
 
     t clear
20571
 
     : clear
20572
 
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20573
 
     t end
20574
 
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20575
 
     : end' >>confcache
20576
 
if diff $cache_file confcache >/dev/null 2>&1; then :; else
20577
 
  if test -w $cache_file; then
20578
 
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20579
 
    cat confcache >$cache_file
20580
 
  else
20581
 
    echo "not updating unwritable cache $cache_file"
20582
 
  fi
20583
 
fi
20584
 
rm -f confcache
20585
 
 
20586
 
test "x$prefix" = xNONE && prefix=$ac_default_prefix
20587
 
# Let make expand exec_prefix.
20588
 
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20589
 
 
20590
 
# VPATH may cause trouble with some makes, so we remove $(srcdir),
20591
 
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20592
 
# trailing colons and then remove the whole line if VPATH becomes empty
20593
 
# (actually we leave an empty line to preserve line numbers).
20594
 
if test "x$srcdir" = x.; then
20595
 
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
20596
 
s/:*\$(srcdir):*/:/;
20597
 
s/:*\${srcdir}:*/:/;
20598
 
s/:*@srcdir@:*/:/;
20599
 
s/^\([^=]*=[     ]*\):*/\1/;
20600
 
s/:*$//;
20601
 
s/^[^=]*=[       ]*$//;
20602
 
}'
20603
 
fi
20604
 
 
20605
 
# Transform confdefs.h into DEFS.
20606
 
# Protect against shell expansion while executing Makefile rules.
20607
 
# Protect against Makefile macro expansion.
20608
 
#
20609
 
# If the first sed substitution is executed (which looks for macros that
20610
 
# take arguments), then we branch to the quote section.  Otherwise,
20611
 
# look for a macro that doesn't take arguments.
20612
 
cat >confdef2opt.sed <<\_ACEOF
20613
 
t clear
20614
 
: clear
20615
 
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
20616
 
t quote
20617
 
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
20618
 
t quote
20619
 
d
20620
 
: quote
20621
 
s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
20622
 
s,\[,\\&,g
20623
 
s,\],\\&,g
20624
 
s,\$,$$,g
20625
 
p
20626
 
_ACEOF
20627
 
# We use echo to avoid assuming a particular line-breaking character.
20628
 
# The extra dot is to prevent the shell from consuming trailing
20629
 
# line-breaks from the sub-command output.  A line-break within
20630
 
# single-quotes doesn't work because, if this script is created in a
20631
 
# platform that uses two characters for line-breaks (e.g., DOS), tr
20632
 
# would break.
20633
 
ac_LF_and_DOT=`echo; echo .`
20634
 
DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
20635
 
rm -f confdef2opt.sed
20636
 
 
20637
 
 
20638
 
ac_libobjs=
20639
 
ac_ltlibobjs=
20640
 
for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
20641
 
  # 1. Remove the extension, and $U if already installed.
20642
 
  ac_i=`echo "$ac_i" |
20643
 
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20644
 
  # 2. Add them.
20645
 
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20646
 
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20647
 
done
20648
 
LIB@&t@OBJS=$ac_libobjs
20649
 
 
20650
 
LTLIBOBJS=$ac_ltlibobjs
20651
 
 
20652
 
 
20653
 
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20654
 
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20655
 
Usually this means the macro was only invoked conditionally." >&5
20656
 
echo "$as_me: error: conditional \"AMDEP\" was never defined.
20657
 
Usually this means the macro was only invoked conditionally." >&2;}
20658
 
   { (exit 1); exit 1; }; }
20659
 
fi
20660
 
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20661
 
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20662
 
Usually this means the macro was only invoked conditionally." >&5
20663
 
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20664
 
Usually this means the macro was only invoked conditionally." >&2;}
20665
 
   { (exit 1); exit 1; }; }
20666
 
fi
20667
 
if test -z "${HAVE_GTK_TRUE}" && test -z "${HAVE_GTK_FALSE}"; then
20668
 
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK\" was never defined.
20669
 
Usually this means the macro was only invoked conditionally." >&5
20670
 
echo "$as_me: error: conditional \"HAVE_GTK\" was never defined.
20671
 
Usually this means the macro was only invoked conditionally." >&2;}
20672
 
   { (exit 1); exit 1; }; }
20673
 
fi
20674
 
if test -z "${HAVE_GTK_TRUE}" && test -z "${HAVE_GTK_FALSE}"; then
20675
 
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK\" was never defined.
20676
 
Usually this means the macro was only invoked conditionally." >&5
20677
 
echo "$as_me: error: conditional \"HAVE_GTK\" was never defined.
20678
 
Usually this means the macro was only invoked conditionally." >&2;}
20679
 
   { (exit 1); exit 1; }; }
20680
 
fi
20681
 
if test -z "${HAVE_GTK_TRUE}" && test -z "${HAVE_GTK_FALSE}"; then
20682
 
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK\" was never defined.
20683
 
Usually this means the macro was only invoked conditionally." >&5
20684
 
echo "$as_me: error: conditional \"HAVE_GTK\" was never defined.
20685
 
Usually this means the macro was only invoked conditionally." >&2;}
20686
 
   { (exit 1); exit 1; }; }
20687
 
fi
20688
 
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20689
 
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20690
 
Usually this means the macro was only invoked conditionally." >&5
20691
 
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20692
 
Usually this means the macro was only invoked conditionally." >&2;}
20693
 
   { (exit 1); exit 1; }; }
20694
 
fi
20695
 
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20696
 
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20697
 
Usually this means the macro was only invoked conditionally." >&5
20698
 
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20699
 
Usually this means the macro was only invoked conditionally." >&2;}
20700
 
   { (exit 1); exit 1; }; }
20701
 
fi
20702
 
 
20703
 
: ${CONFIG_STATUS=./config.status}
20704
 
ac_clean_files_save=$ac_clean_files
20705
 
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20706
 
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20707
 
echo "$as_me: creating $CONFIG_STATUS" >&6;}
20708
 
cat >$CONFIG_STATUS <<_ACEOF
20709
 
#! $SHELL
20710
 
# Generated by $as_me.
20711
 
# Run this file to recreate the current configuration.
20712
 
# Compiler output produced by configure, useful for debugging
20713
 
# configure, is in config.log if it exists.
20714
 
 
20715
 
debug=false
20716
 
ac_cs_recheck=false
20717
 
ac_cs_silent=false
20718
 
SHELL=\${CONFIG_SHELL-$SHELL}
20719
 
_ACEOF
20720
 
 
20721
 
cat >>$CONFIG_STATUS <<\_ACEOF
20722
 
## --------------------- ##
20723
 
## M4sh Initialization.  ##
20724
 
## --------------------- ##
20725
 
 
20726
 
# Be Bourne compatible
20727
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20728
 
  emulate sh
20729
 
  NULLCMD=:
20730
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20731
 
  # is contrary to our usage.  Disable this feature.
20732
 
  alias -g '${1+"$@"}'='"$@"'
20733
 
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20734
 
  set -o posix
20735
 
fi
20736
 
DUALCASE=1; export DUALCASE # for MKS sh
20737
 
 
20738
 
# Support unset when possible.
20739
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20740
 
  as_unset=unset
20741
 
else
20742
 
  as_unset=false
20743
 
fi
20744
 
 
20745
 
 
20746
 
# Work around bugs in pre-3.0 UWIN ksh.
20747
 
$as_unset ENV MAIL MAILPATH
20748
 
PS1='$ '
20749
 
PS2='> '
20750
 
PS4='+ '
20751
 
 
20752
 
# NLS nuisances.
20753
 
for as_var in \
20754
 
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20755
 
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20756
 
  LC_TELEPHONE LC_TIME
20757
 
do
20758
 
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20759
 
    eval $as_var=C; export $as_var
20760
 
  else
20761
 
    $as_unset $as_var
20762
 
  fi
20763
 
done
20764
 
 
20765
 
# Required to use basename.
20766
 
if expr a : '\(a\)' >/dev/null 2>&1; then
20767
 
  as_expr=expr
20768
 
else
20769
 
  as_expr=false
20770
 
fi
20771
 
 
20772
 
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20773
 
  as_basename=basename
20774
 
else
20775
 
  as_basename=false
20776
 
fi
20777
 
 
20778
 
 
20779
 
# Name of the executable.
20780
 
as_me=`$as_basename "$0" ||
20781
 
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20782
 
         X"$0" : 'X\(//\)$' \| \
20783
 
         X"$0" : 'X\(/\)$' \| \
20784
 
         .     : '\(.\)' 2>/dev/null ||
20785
 
echo X/"$0" |
20786
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20787
 
          /^X\/\(\/\/\)$/{ s//\1/; q; }
20788
 
          /^X\/\(\/\).*/{ s//\1/; q; }
20789
 
          s/.*/./; q'`
20790
 
 
20791
 
 
20792
 
# PATH needs CR, and LINENO needs CR and PATH.
20793
 
# Avoid depending upon Character Ranges.
20794
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20795
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20796
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20797
 
as_cr_digits='0123456789'
20798
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
20799
 
 
20800
 
# The user is always right.
20801
 
if test "${PATH_SEPARATOR+set}" != set; then
20802
 
  echo "#! /bin/sh" >conf$$.sh
20803
 
  echo  "exit 0"   >>conf$$.sh
20804
 
  chmod +x conf$$.sh
20805
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20806
 
    PATH_SEPARATOR=';'
20807
 
  else
20808
 
    PATH_SEPARATOR=:
20809
 
  fi
20810
 
  rm -f conf$$.sh
20811
 
fi
20812
 
 
20813
 
 
20814
 
  as_lineno_1=$LINENO
20815
 
  as_lineno_2=$LINENO
20816
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20817
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
20818
 
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
20819
 
  # Find who we are.  Look in the path if we contain no path at all
20820
 
  # relative or not.
20821
 
  case $0 in
20822
 
    *[\\/]* ) as_myself=$0 ;;
20823
 
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20824
 
for as_dir in $PATH
20825
 
do
20826
 
  IFS=$as_save_IFS
20827
 
  test -z "$as_dir" && as_dir=.
20828
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20829
 
done
20830
 
 
20831
 
       ;;
20832
 
  esac
20833
 
  # We did not find ourselves, most probably we were run as `sh COMMAND'
20834
 
  # in which case we are not to be found in the path.
20835
 
  if test "x$as_myself" = x; then
20836
 
    as_myself=$0
20837
 
  fi
20838
 
  if test ! -f "$as_myself"; then
20839
 
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20840
 
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20841
 
   { (exit 1); exit 1; }; }
20842
 
  fi
20843
 
  case $CONFIG_SHELL in
20844
 
  '')
20845
 
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20846
 
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20847
 
do
20848
 
  IFS=$as_save_IFS
20849
 
  test -z "$as_dir" && as_dir=.
20850
 
  for as_base in sh bash ksh sh5; do
20851
 
         case $as_dir in
20852
 
         /*)
20853
 
           if ("$as_dir/$as_base" -c '
20854
 
  as_lineno_1=$LINENO
20855
 
  as_lineno_2=$LINENO
20856
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20857
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
20858
 
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
20859
 
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20860
 
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20861
 
             CONFIG_SHELL=$as_dir/$as_base
20862
 
             export CONFIG_SHELL
20863
 
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20864
 
           fi;;
20865
 
         esac
20866
 
       done
20867
 
done
20868
 
;;
20869
 
  esac
20870
 
 
20871
 
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20872
 
  # uniformly replaced by the line number.  The first 'sed' inserts a
20873
 
  # line-number line before each line; the second 'sed' does the real
20874
 
  # work.  The second script uses 'N' to pair each line-number line
20875
 
  # with the numbered line, and appends trailing '-' during
20876
 
  # substitution so that $LINENO is not a special case at line end.
20877
 
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20878
 
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
20879
 
  sed '=' <$as_myself |
20880
 
    sed '
20881
 
      N
20882
 
      s,$,-,
20883
 
      : loop
20884
 
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20885
 
      t loop
20886
 
      s,-$,,
20887
 
      s,^['$as_cr_digits']*\n,,
20888
 
    ' >$as_me.lineno &&
20889
 
  chmod +x $as_me.lineno ||
20890
 
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20891
 
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20892
 
   { (exit 1); exit 1; }; }
20893
 
 
20894
 
  # Don't try to exec as it changes $[0], causing all sort of problems
20895
 
  # (the dirname of $[0] is not the place where we might find the
20896
 
  # original and so on.  Autoconf is especially sensible to this).
20897
 
  . ./$as_me.lineno
20898
 
  # Exit status is that of the last command.
20899
 
  exit
20900
 
}
20901
 
 
20902
 
 
20903
 
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20904
 
  *c*,-n*) ECHO_N= ECHO_C='
20905
 
' ECHO_T='      ' ;;
20906
 
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20907
 
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
20908
 
esac
20909
 
 
20910
 
if expr a : '\(a\)' >/dev/null 2>&1; then
20911
 
  as_expr=expr
20912
 
else
20913
 
  as_expr=false
20914
 
fi
20915
 
 
20916
 
rm -f conf$$ conf$$.exe conf$$.file
20917
 
echo >conf$$.file
20918
 
if ln -s conf$$.file conf$$ 2>/dev/null; then
20919
 
  # We could just check for DJGPP; but this test a) works b) is more generic
20920
 
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20921
 
  if test -f conf$$.exe; then
20922
 
    # Don't use ln at all; we don't have any links
20923
 
    as_ln_s='cp -p'
20924
 
  else
20925
 
    as_ln_s='ln -s'
20926
 
  fi
20927
 
elif ln conf$$.file conf$$ 2>/dev/null; then
20928
 
  as_ln_s=ln
20929
 
else
20930
 
  as_ln_s='cp -p'
20931
 
fi
20932
 
rm -f conf$$ conf$$.exe conf$$.file
20933
 
 
20934
 
if mkdir -p . 2>/dev/null; then
20935
 
  as_mkdir_p=:
20936
 
else
20937
 
  test -d ./-p && rmdir ./-p
20938
 
  as_mkdir_p=false
20939
 
fi
20940
 
 
20941
 
as_executable_p="test -f"
20942
 
 
20943
 
# Sed expression to map a string onto a valid CPP name.
20944
 
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20945
 
 
20946
 
# Sed expression to map a string onto a valid variable name.
20947
 
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20948
 
 
20949
 
 
20950
 
# IFS
20951
 
# We need space, tab and new line, in precisely that order.
20952
 
as_nl='
20953
 
'
20954
 
IFS="   $as_nl"
20955
 
 
20956
 
# CDPATH.
20957
 
$as_unset CDPATH
20958
 
 
20959
 
exec 6>&1
20960
 
 
20961
 
# Open the log real soon, to keep \$[0] and so on meaningful, and to
20962
 
# report actual input values of CONFIG_FILES etc. instead of their
20963
 
# values after options handling.  Logging --version etc. is OK.
20964
 
exec 5>>config.log
20965
 
{
20966
 
  echo
20967
 
  sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
20968
 
@%:@@%:@ Running $as_me. @%:@@%:@
20969
 
_ASBOX
20970
 
} >&5
20971
 
cat >&5 <<_CSEOF
20972
 
 
20973
 
This file was extended by trousers $as_me 0.2.9.1, which was
20974
 
generated by GNU Autoconf 2.59.  Invocation command line was
20975
 
 
20976
 
  CONFIG_FILES    = $CONFIG_FILES
20977
 
  CONFIG_HEADERS  = $CONFIG_HEADERS
20978
 
  CONFIG_LINKS    = $CONFIG_LINKS
20979
 
  CONFIG_COMMANDS = $CONFIG_COMMANDS
20980
 
  $ $0 $@
20981
 
 
20982
 
_CSEOF
20983
 
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20984
 
echo >&5
20985
 
_ACEOF
20986
 
 
20987
 
# Files that config.status was made for.
20988
 
if test -n "$ac_config_files"; then
20989
 
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20990
 
fi
20991
 
 
20992
 
if test -n "$ac_config_headers"; then
20993
 
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20994
 
fi
20995
 
 
20996
 
if test -n "$ac_config_links"; then
20997
 
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20998
 
fi
20999
 
 
21000
 
if test -n "$ac_config_commands"; then
21001
 
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21002
 
fi
21003
 
 
21004
 
cat >>$CONFIG_STATUS <<\_ACEOF
21005
 
 
21006
 
ac_cs_usage="\
21007
 
\`$as_me' instantiates files from templates according to the
21008
 
current configuration.
21009
 
 
21010
 
Usage: $0 [OPTIONS] [FILE]...
21011
 
 
21012
 
  -h, --help       print this help, then exit
21013
 
  -V, --version    print version number, then exit
21014
 
  -q, --quiet      do not print progress messages
21015
 
  -d, --debug      don't remove temporary files
21016
 
      --recheck    update $as_me by reconfiguring in the same conditions
21017
 
  --file=FILE[:TEMPLATE]
21018
 
                   instantiate the configuration file FILE
21019
 
 
21020
 
Configuration files:
21021
 
$config_files
21022
 
 
21023
 
Configuration commands:
21024
 
$config_commands
21025
 
 
21026
 
Report bugs to <bug-autoconf@gnu.org>."
21027
 
_ACEOF
21028
 
 
21029
 
cat >>$CONFIG_STATUS <<_ACEOF
21030
 
ac_cs_version="\\
21031
 
trousers config.status 0.2.9.1
21032
 
configured by $0, generated by GNU Autoconf 2.59,
21033
 
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21034
 
 
21035
 
Copyright (C) 2003 Free Software Foundation, Inc.
21036
 
This config.status script is free software; the Free Software Foundation
21037
 
gives unlimited permission to copy, distribute and modify it."
21038
 
srcdir=$srcdir
21039
 
INSTALL="$INSTALL"
21040
 
_ACEOF
21041
 
 
21042
 
cat >>$CONFIG_STATUS <<\_ACEOF
21043
 
# If no file are specified by the user, then we need to provide default
21044
 
# value.  By we need to know if files were specified by the user.
21045
 
ac_need_defaults=:
21046
 
while test $# != 0
21047
 
do
21048
 
  case $1 in
21049
 
  --*=*)
21050
 
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
21051
 
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21052
 
    ac_shift=:
21053
 
    ;;
21054
 
  -*)
21055
 
    ac_option=$1
21056
 
    ac_optarg=$2
21057
 
    ac_shift=shift
21058
 
    ;;
21059
 
  *) # This is not an option, so the user has probably given explicit
21060
 
     # arguments.
21061
 
     ac_option=$1
21062
 
     ac_need_defaults=false;;
21063
 
  esac
21064
 
 
21065
 
  case $ac_option in
21066
 
  # Handling of the options.
21067
 
_ACEOF
21068
 
cat >>$CONFIG_STATUS <<\_ACEOF
21069
 
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21070
 
    ac_cs_recheck=: ;;
21071
 
  --version | --vers* | -V )
21072
 
    echo "$ac_cs_version"; exit 0 ;;
21073
 
  --he | --h)
21074
 
    # Conflict between --help and --header
21075
 
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
21076
 
Try \`$0 --help' for more information." >&5
21077
 
echo "$as_me: error: ambiguous option: $1
21078
 
Try \`$0 --help' for more information." >&2;}
21079
 
   { (exit 1); exit 1; }; };;
21080
 
  --help | --hel | -h )
21081
 
    echo "$ac_cs_usage"; exit 0 ;;
21082
 
  --debug | --d* | -d )
21083
 
    debug=: ;;
21084
 
  --file | --fil | --fi | --f )
21085
 
    $ac_shift
21086
 
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21087
 
    ac_need_defaults=false;;
21088
 
  --header | --heade | --head | --hea )
21089
 
    $ac_shift
21090
 
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21091
 
    ac_need_defaults=false;;
21092
 
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21093
 
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21094
 
    ac_cs_silent=: ;;
21095
 
 
21096
 
  # This is an error.
21097
 
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21098
 
Try \`$0 --help' for more information." >&5
21099
 
echo "$as_me: error: unrecognized option: $1
21100
 
Try \`$0 --help' for more information." >&2;}
21101
 
   { (exit 1); exit 1; }; } ;;
21102
 
 
21103
 
  *) ac_config_targets="$ac_config_targets $1" ;;
21104
 
 
21105
 
  esac
21106
 
  shift
21107
 
done
21108
 
 
21109
 
ac_configure_extra_args=
21110
 
 
21111
 
if $ac_cs_silent; then
21112
 
  exec 6>/dev/null
21113
 
  ac_configure_extra_args="$ac_configure_extra_args --silent"
21114
 
fi
21115
 
 
21116
 
_ACEOF
21117
 
cat >>$CONFIG_STATUS <<_ACEOF
21118
 
if \$ac_cs_recheck; then
21119
 
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21120
 
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21121
 
fi
21122
 
 
21123
 
_ACEOF
21124
 
 
21125
 
cat >>$CONFIG_STATUS <<_ACEOF
21126
 
#
21127
 
# INIT-COMMANDS section.
21128
 
#
21129
 
 
21130
 
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21131
 
 
21132
 
_ACEOF
21133
 
 
21134
 
 
21135
 
 
21136
 
cat >>$CONFIG_STATUS <<\_ACEOF
21137
 
for ac_config_target in $ac_config_targets
21138
 
do
21139
 
  case "$ac_config_target" in
21140
 
  # Handling of arguments.
21141
 
  "dist/tcsd.conf" ) CONFIG_FILES="$CONFIG_FILES dist/tcsd.conf" ;;
21142
 
  "dist/fedora/trousers.spec" ) CONFIG_FILES="$CONFIG_FILES dist/fedora/trousers.spec" ;;
21143
 
  "dist/trousers.spec" ) CONFIG_FILES="$CONFIG_FILES dist/trousers.spec" ;;
21144
 
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21145
 
  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21146
 
  "src/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
21147
 
  "src/tcs/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tcs/Makefile" ;;
21148
 
  "src/tddl/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tddl/Makefile" ;;
21149
 
  "src/tspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tspi/Makefile" ;;
21150
 
  "src/trspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/trspi/Makefile" ;;
21151
 
  "src/tcsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tcsd/Makefile" ;;
21152
 
  "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
21153
 
  "man/man8/tcsd.8" ) CONFIG_FILES="$CONFIG_FILES man/man8/tcsd.8" ;;
21154
 
  "man/man5/tcsd.conf.5" ) CONFIG_FILES="$CONFIG_FILES man/man5/tcsd.conf.5" ;;
21155
 
  "dist/Makefile" ) CONFIG_FILES="$CONFIG_FILES dist/Makefile" ;;
21156
 
  "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21157
 
  "man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/man3/Makefile" ;;
21158
 
  "man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/man5/Makefile" ;;
21159
 
  "man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/man8/Makefile" ;;
21160
 
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21161
 
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21162
 
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21163
 
   { (exit 1); exit 1; }; };;
21164
 
  esac
21165
 
done
21166
 
 
21167
 
# If the user did not use the arguments to specify the items to instantiate,
21168
 
# then the envvar interface is used.  Set only those that are not.
21169
 
# We use the long form for the default assignment because of an extremely
21170
 
# bizarre bug on SunOS 4.1.3.
21171
 
if $ac_need_defaults; then
21172
 
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
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 to put it here, and in addition,
21178
 
# creating and moving files from /tmp can sometimes cause problems.
21179
 
# Create a temporary directory, and hook for its removal unless debugging.
21180
 
$debug ||
21181
 
{
21182
 
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21183
 
  trap '{ (exit 1); exit 1; }' 1 2 13 15
21184
 
}
21185
 
 
21186
 
# Create a (secure) tmp directory for tmp files.
21187
 
 
21188
 
{
21189
 
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21190
 
  test -n "$tmp" && test -d "$tmp"
21191
 
}  ||
21192
 
{
21193
 
  tmp=./confstat$$-$RANDOM
21194
 
  (umask 077 && mkdir $tmp)
21195
 
} ||
21196
 
{
21197
 
   echo "$me: cannot create a temporary directory in ." >&2
21198
 
   { (exit 1); exit 1; }
21199
 
}
21200
 
 
21201
 
_ACEOF
21202
 
 
21203
 
cat >>$CONFIG_STATUS <<_ACEOF
21204
 
 
21205
 
#
21206
 
# 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
 
  # Protect against being on the right side of a sed subst in config.status.
21213
 
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21214
 
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21215
 
s,@SHELL@,$SHELL,;t t
21216
 
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21217
 
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21218
 
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21219
 
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21220
 
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21221
 
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21222
 
s,@exec_prefix@,$exec_prefix,;t t
21223
 
s,@prefix@,$prefix,;t t
21224
 
s,@program_transform_name@,$program_transform_name,;t t
21225
 
s,@bindir@,$bindir,;t t
21226
 
s,@sbindir@,$sbindir,;t t
21227
 
s,@libexecdir@,$libexecdir,;t t
21228
 
s,@datadir@,$datadir,;t t
21229
 
s,@sysconfdir@,$sysconfdir,;t t
21230
 
s,@sharedstatedir@,$sharedstatedir,;t t
21231
 
s,@localstatedir@,$localstatedir,;t t
21232
 
s,@libdir@,$libdir,;t t
21233
 
s,@includedir@,$includedir,;t t
21234
 
s,@oldincludedir@,$oldincludedir,;t t
21235
 
s,@infodir@,$infodir,;t t
21236
 
s,@mandir@,$mandir,;t t
21237
 
s,@build_alias@,$build_alias,;t t
21238
 
s,@host_alias@,$host_alias,;t t
21239
 
s,@target_alias@,$target_alias,;t t
21240
 
s,@DEFS@,$DEFS,;t t
21241
 
s,@ECHO_C@,$ECHO_C,;t t
21242
 
s,@ECHO_N@,$ECHO_N,;t t
21243
 
s,@ECHO_T@,$ECHO_T,;t t
21244
 
s,@LIBS@,$LIBS,;t t
21245
 
s,@build@,$build,;t t
21246
 
s,@build_cpu@,$build_cpu,;t t
21247
 
s,@build_vendor@,$build_vendor,;t t
21248
 
s,@build_os@,$build_os,;t t
21249
 
s,@host@,$host,;t t
21250
 
s,@host_cpu@,$host_cpu,;t t
21251
 
s,@host_vendor@,$host_vendor,;t t
21252
 
s,@host_os@,$host_os,;t t
21253
 
s,@target@,$target,;t t
21254
 
s,@target_cpu@,$target_cpu,;t t
21255
 
s,@target_vendor@,$target_vendor,;t t
21256
 
s,@target_os@,$target_os,;t t
21257
 
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21258
 
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21259
 
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21260
 
s,@CYGPATH_W@,$CYGPATH_W,;t t
21261
 
s,@PACKAGE@,$PACKAGE,;t t
21262
 
s,@VERSION@,$VERSION,;t t
21263
 
s,@ACLOCAL@,$ACLOCAL,;t t
21264
 
s,@AUTOCONF@,$AUTOCONF,;t t
21265
 
s,@AUTOMAKE@,$AUTOMAKE,;t t
21266
 
s,@AUTOHEADER@,$AUTOHEADER,;t t
21267
 
s,@MAKEINFO@,$MAKEINFO,;t t
21268
 
s,@install_sh@,$install_sh,;t t
21269
 
s,@STRIP@,$STRIP,;t t
21270
 
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21271
 
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21272
 
s,@mkdir_p@,$mkdir_p,;t t
21273
 
s,@AWK@,$AWK,;t t
21274
 
s,@SET_MAKE@,$SET_MAKE,;t t
21275
 
s,@am__leading_dot@,$am__leading_dot,;t t
21276
 
s,@AMTAR@,$AMTAR,;t t
21277
 
s,@am__tar@,$am__tar,;t t
21278
 
s,@am__untar@,$am__untar,;t t
21279
 
s,@OPENSSL_LIB_DIR@,$OPENSSL_LIB_DIR,;t t
21280
 
s,@CC@,$CC,;t t
21281
 
s,@CFLAGS@,$CFLAGS,;t t
21282
 
s,@LDFLAGS@,$LDFLAGS,;t t
21283
 
s,@CPPFLAGS@,$CPPFLAGS,;t t
21284
 
s,@ac_ct_CC@,$ac_ct_CC,;t t
21285
 
s,@EXEEXT@,$EXEEXT,;t t
21286
 
s,@OBJEXT@,$OBJEXT,;t t
21287
 
s,@DEPDIR@,$DEPDIR,;t t
21288
 
s,@am__include@,$am__include,;t t
21289
 
s,@am__quote@,$am__quote,;t t
21290
 
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21291
 
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21292
 
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21293
 
s,@CCDEPMODE@,$CCDEPMODE,;t t
21294
 
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21295
 
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21296
 
s,@CRYPTO_PACKAGE@,$CRYPTO_PACKAGE,;t t
21297
 
s,@HAVE_GTK_TRUE@,$HAVE_GTK_TRUE,;t t
21298
 
s,@HAVE_GTK_FALSE@,$HAVE_GTK_FALSE,;t t
21299
 
s,@PKG_CONFIG@,$PKG_CONFIG,;t t
21300
 
s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
21301
 
s,@GTK_LIBS@,$GTK_LIBS,;t t
21302
 
s,@EGREP@,$EGREP,;t t
21303
 
s,@LN_S@,$LN_S,;t t
21304
 
s,@ECHO@,$ECHO,;t t
21305
 
s,@AR@,$AR,;t t
21306
 
s,@ac_ct_AR@,$ac_ct_AR,;t t
21307
 
s,@RANLIB@,$RANLIB,;t t
21308
 
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21309
 
s,@CPP@,$CPP,;t t
21310
 
s,@CXX@,$CXX,;t t
21311
 
s,@CXXFLAGS@,$CXXFLAGS,;t t
21312
 
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21313
 
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
21314
 
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
21315
 
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
21316
 
s,@CXXCPP@,$CXXCPP,;t t
21317
 
s,@F77@,$F77,;t t
21318
 
s,@FFLAGS@,$FFLAGS,;t t
21319
 
s,@ac_ct_F77@,$ac_ct_F77,;t t
21320
 
s,@LIBTOOL@,$LIBTOOL,;t t
21321
 
s,@TCSD_DEFAULT_PORT@,$TCSD_DEFAULT_PORT,;t t
21322
 
s,@LIB@&t@OBJS@,$LIB@&t@OBJS,;t t
21323
 
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21324
 
CEOF
21325
 
 
21326
 
_ACEOF
21327
 
 
21328
 
  cat >>$CONFIG_STATUS <<\_ACEOF
21329
 
  # Split the substitutions into bite-sized pieces for seds with
21330
 
  # small command number limits, like on Digital OSF/1 and HP-UX.
21331
 
  ac_max_sed_lines=48
21332
 
  ac_sed_frag=1 # Number of current file.
21333
 
  ac_beg=1 # First line for current file.
21334
 
  ac_end=$ac_max_sed_lines # Line after last line for current file.
21335
 
  ac_more_lines=:
21336
 
  ac_sed_cmds=
21337
 
  while $ac_more_lines; do
21338
 
    if test $ac_beg -gt 1; then
21339
 
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21340
 
    else
21341
 
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21342
 
    fi
21343
 
    if test ! -s $tmp/subs.frag; then
21344
 
      ac_more_lines=false
21345
 
    else
21346
 
      # The purpose of the label and of the branching condition is to
21347
 
      # speed up the sed processing (if there are no `@' at all, there
21348
 
      # is no need to browse any of the substitutions).
21349
 
      # These are the two extra sed commands mentioned above.
21350
 
      (echo ':t
21351
 
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21352
 
      if test -z "$ac_sed_cmds"; then
21353
 
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21354
 
      else
21355
 
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21356
 
      fi
21357
 
      ac_sed_frag=`expr $ac_sed_frag + 1`
21358
 
      ac_beg=$ac_end
21359
 
      ac_end=`expr $ac_end + $ac_max_sed_lines`
21360
 
    fi
21361
 
  done
21362
 
  if test -z "$ac_sed_cmds"; then
21363
 
    ac_sed_cmds=cat
21364
 
  fi
21365
 
fi # test -n "$CONFIG_FILES"
21366
 
 
21367
 
_ACEOF
21368
 
cat >>$CONFIG_STATUS <<\_ACEOF
21369
 
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21370
 
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21371
 
  case $ac_file in
21372
 
  - | *:- | *:-:* ) # input from stdin
21373
 
        cat >$tmp/stdin
21374
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21375
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21376
 
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21377
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21378
 
  * )   ac_file_in=$ac_file.in ;;
21379
 
  esac
21380
 
 
21381
 
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21382
 
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21383
 
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21384
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
21385
 
         X"$ac_file" : 'X\(//\)$' \| \
21386
 
         X"$ac_file" : 'X\(/\)' \| \
21387
 
         .     : '\(.\)' 2>/dev/null ||
21388
 
echo X"$ac_file" |
21389
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21390
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21391
 
          /^X\(\/\/\)$/{ s//\1/; q; }
21392
 
          /^X\(\/\).*/{ s//\1/; q; }
21393
 
          s/.*/./; q'`
21394
 
  { if $as_mkdir_p; then
21395
 
    mkdir -p "$ac_dir"
21396
 
  else
21397
 
    as_dir="$ac_dir"
21398
 
    as_dirs=
21399
 
    while test ! -d "$as_dir"; do
21400
 
      as_dirs="$as_dir $as_dirs"
21401
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21402
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21403
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
21404
 
         X"$as_dir" : 'X\(//\)$' \| \
21405
 
         X"$as_dir" : 'X\(/\)' \| \
21406
 
         .     : '\(.\)' 2>/dev/null ||
21407
 
echo X"$as_dir" |
21408
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21409
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21410
 
          /^X\(\/\/\)$/{ s//\1/; q; }
21411
 
          /^X\(\/\).*/{ s//\1/; q; }
21412
 
          s/.*/./; q'`
21413
 
    done
21414
 
    test ! -n "$as_dirs" || mkdir $as_dirs
21415
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21416
 
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21417
 
   { (exit 1); exit 1; }; }; }
21418
 
 
21419
 
  ac_builddir=.
21420
 
 
21421
 
if test "$ac_dir" != .; then
21422
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21423
 
  # A "../" for each directory in $ac_dir_suffix.
21424
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21425
 
else
21426
 
  ac_dir_suffix= ac_top_builddir=
21427
 
fi
21428
 
 
21429
 
case $srcdir in
21430
 
  .)  # No --srcdir option.  We are building in place.
21431
 
    ac_srcdir=.
21432
 
    if test -z "$ac_top_builddir"; then
21433
 
       ac_top_srcdir=.
21434
 
    else
21435
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21436
 
    fi ;;
21437
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
21438
 
    ac_srcdir=$srcdir$ac_dir_suffix;
21439
 
    ac_top_srcdir=$srcdir ;;
21440
 
  *) # Relative path.
21441
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21442
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
21443
 
esac
21444
 
 
21445
 
# Do not use `cd foo && pwd` to compute absolute paths, because
21446
 
# the directories may not exist.
21447
 
case `pwd` in
21448
 
.) ac_abs_builddir="$ac_dir";;
21449
 
*)
21450
 
  case "$ac_dir" in
21451
 
  .) ac_abs_builddir=`pwd`;;
21452
 
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21453
 
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
21454
 
  esac;;
21455
 
esac
21456
 
case $ac_abs_builddir in
21457
 
.) ac_abs_top_builddir=${ac_top_builddir}.;;
21458
 
*)
21459
 
  case ${ac_top_builddir}. in
21460
 
  .) ac_abs_top_builddir=$ac_abs_builddir;;
21461
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21462
 
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21463
 
  esac;;
21464
 
esac
21465
 
case $ac_abs_builddir in
21466
 
.) ac_abs_srcdir=$ac_srcdir;;
21467
 
*)
21468
 
  case $ac_srcdir in
21469
 
  .) ac_abs_srcdir=$ac_abs_builddir;;
21470
 
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21471
 
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21472
 
  esac;;
21473
 
esac
21474
 
case $ac_abs_builddir in
21475
 
.) ac_abs_top_srcdir=$ac_top_srcdir;;
21476
 
*)
21477
 
  case $ac_top_srcdir in
21478
 
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
21479
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21480
 
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21481
 
  esac;;
21482
 
esac
21483
 
 
21484
 
 
21485
 
  case $INSTALL in
21486
 
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21487
 
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21488
 
  esac
21489
 
 
21490
 
  if test x"$ac_file" != x-; then
21491
 
    { echo "$as_me:$LINENO: creating $ac_file" >&5
21492
 
echo "$as_me: creating $ac_file" >&6;}
21493
 
    rm -f "$ac_file"
21494
 
  fi
21495
 
  # Let's still pretend it is `configure' which instantiates (i.e., don't
21496
 
  # use $as_me), people would be surprised to read:
21497
 
  #    /* config.h.  Generated by config.status.  */
21498
 
  if test x"$ac_file" = x-; then
21499
 
    configure_input=
21500
 
  else
21501
 
    configure_input="$ac_file.  "
21502
 
  fi
21503
 
  configure_input=$configure_input"Generated from `echo $ac_file_in |
21504
 
                                     sed 's,.*/,,'` by configure."
21505
 
 
21506
 
  # First look for the input files in the build tree, otherwise in the
21507
 
  # src tree.
21508
 
  ac_file_inputs=`IFS=:
21509
 
    for f in $ac_file_in; do
21510
 
      case $f in
21511
 
      -) echo $tmp/stdin ;;
21512
 
      [\\/$]*)
21513
 
         # Absolute (can't be DOS-style, as IFS=:)
21514
 
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21515
 
echo "$as_me: error: cannot find input file: $f" >&2;}
21516
 
   { (exit 1); exit 1; }; }
21517
 
         echo "$f";;
21518
 
      *) # Relative
21519
 
         if test -f "$f"; then
21520
 
           # Build tree
21521
 
           echo "$f"
21522
 
         elif test -f "$srcdir/$f"; then
21523
 
           # Source tree
21524
 
           echo "$srcdir/$f"
21525
 
         else
21526
 
           # /dev/null tree
21527
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21528
 
echo "$as_me: error: cannot find input file: $f" >&2;}
21529
 
   { (exit 1); exit 1; }; }
21530
 
         fi;;
21531
 
      esac
21532
 
    done` || { (exit 1); exit 1; }
21533
 
_ACEOF
21534
 
cat >>$CONFIG_STATUS <<_ACEOF
21535
 
  sed "$ac_vpsub
21536
 
$extrasub
21537
 
_ACEOF
21538
 
cat >>$CONFIG_STATUS <<\_ACEOF
21539
 
:t
21540
 
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21541
 
s,@configure_input@,$configure_input,;t t
21542
 
s,@srcdir@,$ac_srcdir,;t t
21543
 
s,@abs_srcdir@,$ac_abs_srcdir,;t t
21544
 
s,@top_srcdir@,$ac_top_srcdir,;t t
21545
 
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21546
 
s,@builddir@,$ac_builddir,;t t
21547
 
s,@abs_builddir@,$ac_abs_builddir,;t t
21548
 
s,@top_builddir@,$ac_top_builddir,;t t
21549
 
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21550
 
s,@INSTALL@,$ac_INSTALL,;t t
21551
 
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21552
 
  rm -f $tmp/stdin
21553
 
  if test x"$ac_file" != x-; then
21554
 
    mv $tmp/out $ac_file
21555
 
  else
21556
 
    cat $tmp/out
21557
 
    rm -f $tmp/out
21558
 
  fi
21559
 
 
21560
 
done
21561
 
_ACEOF
21562
 
cat >>$CONFIG_STATUS <<\_ACEOF
21563
 
 
21564
 
#
21565
 
# CONFIG_COMMANDS section.
21566
 
#
21567
 
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21568
 
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21569
 
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21570
 
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21571
 
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21572
 
         X"$ac_dest" : 'X\(//\)[^/]' \| \
21573
 
         X"$ac_dest" : 'X\(//\)$' \| \
21574
 
         X"$ac_dest" : 'X\(/\)' \| \
21575
 
         .     : '\(.\)' 2>/dev/null ||
21576
 
echo X"$ac_dest" |
21577
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21578
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21579
 
          /^X\(\/\/\)$/{ s//\1/; q; }
21580
 
          /^X\(\/\).*/{ s//\1/; q; }
21581
 
          s/.*/./; q'`
21582
 
  { if $as_mkdir_p; then
21583
 
    mkdir -p "$ac_dir"
21584
 
  else
21585
 
    as_dir="$ac_dir"
21586
 
    as_dirs=
21587
 
    while test ! -d "$as_dir"; do
21588
 
      as_dirs="$as_dir $as_dirs"
21589
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21590
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21591
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
21592
 
         X"$as_dir" : 'X\(//\)$' \| \
21593
 
         X"$as_dir" : 'X\(/\)' \| \
21594
 
         .     : '\(.\)' 2>/dev/null ||
21595
 
echo X"$as_dir" |
21596
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21597
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21598
 
          /^X\(\/\/\)$/{ s//\1/; q; }
21599
 
          /^X\(\/\).*/{ s//\1/; q; }
21600
 
          s/.*/./; q'`
21601
 
    done
21602
 
    test ! -n "$as_dirs" || mkdir $as_dirs
21603
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21604
 
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21605
 
   { (exit 1); exit 1; }; }; }
21606
 
 
21607
 
  ac_builddir=.
21608
 
 
21609
 
if test "$ac_dir" != .; then
21610
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21611
 
  # A "../" for each directory in $ac_dir_suffix.
21612
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21613
 
else
21614
 
  ac_dir_suffix= ac_top_builddir=
21615
 
fi
21616
 
 
21617
 
case $srcdir in
21618
 
  .)  # No --srcdir option.  We are building in place.
21619
 
    ac_srcdir=.
21620
 
    if test -z "$ac_top_builddir"; then
21621
 
       ac_top_srcdir=.
21622
 
    else
21623
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21624
 
    fi ;;
21625
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
21626
 
    ac_srcdir=$srcdir$ac_dir_suffix;
21627
 
    ac_top_srcdir=$srcdir ;;
21628
 
  *) # Relative path.
21629
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21630
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
21631
 
esac
21632
 
 
21633
 
# Do not use `cd foo && pwd` to compute absolute paths, because
21634
 
# the directories may not exist.
21635
 
case `pwd` in
21636
 
.) ac_abs_builddir="$ac_dir";;
21637
 
*)
21638
 
  case "$ac_dir" in
21639
 
  .) ac_abs_builddir=`pwd`;;
21640
 
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21641
 
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
21642
 
  esac;;
21643
 
esac
21644
 
case $ac_abs_builddir in
21645
 
.) ac_abs_top_builddir=${ac_top_builddir}.;;
21646
 
*)
21647
 
  case ${ac_top_builddir}. in
21648
 
  .) ac_abs_top_builddir=$ac_abs_builddir;;
21649
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21650
 
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21651
 
  esac;;
21652
 
esac
21653
 
case $ac_abs_builddir in
21654
 
.) ac_abs_srcdir=$ac_srcdir;;
21655
 
*)
21656
 
  case $ac_srcdir in
21657
 
  .) ac_abs_srcdir=$ac_abs_builddir;;
21658
 
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21659
 
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21660
 
  esac;;
21661
 
esac
21662
 
case $ac_abs_builddir in
21663
 
.) ac_abs_top_srcdir=$ac_top_srcdir;;
21664
 
*)
21665
 
  case $ac_top_srcdir in
21666
 
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
21667
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21668
 
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21669
 
  esac;;
21670
 
esac
21671
 
 
21672
 
 
21673
 
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21674
 
echo "$as_me: executing $ac_dest commands" >&6;}
21675
 
  case $ac_dest in
21676
 
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21677
 
  # Strip MF so we end up with the name of the file.
21678
 
  mf=`echo "$mf" | sed -e 's/:.*$//'`
21679
 
  # Check whether this is an Automake generated Makefile or not.
21680
 
  # We used to match only the files named `Makefile.in', but
21681
 
  # some people rename them; so instead we look at the file content.
21682
 
  # Grep'ing the first line is not enough: some people post-process
21683
 
  # each Makefile.in and add a new line on top of each file to say so.
21684
 
  # So let's grep whole file.
21685
 
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21686
 
    dirpart=`(dirname "$mf") 2>/dev/null ||
21687
 
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21688
 
         X"$mf" : 'X\(//\)[^/]' \| \
21689
 
         X"$mf" : 'X\(//\)$' \| \
21690
 
         X"$mf" : 'X\(/\)' \| \
21691
 
         .     : '\(.\)' 2>/dev/null ||
21692
 
echo X"$mf" |
21693
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21694
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21695
 
          /^X\(\/\/\)$/{ s//\1/; q; }
21696
 
          /^X\(\/\).*/{ s//\1/; q; }
21697
 
          s/.*/./; q'`
21698
 
  else
21699
 
    continue
21700
 
  fi
21701
 
  # Extract the definition of DEPDIR, am__include, and am__quote
21702
 
  # from the Makefile without running `make'.
21703
 
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21704
 
  test -z "$DEPDIR" && continue
21705
 
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
21706
 
  test -z "am__include" && continue
21707
 
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21708
 
  # When using ansi2knr, U may be empty or an underscore; expand it
21709
 
  U=`sed -n 's/^U = //p' < "$mf"`
21710
 
  # Find all dependency output files, they are included files with
21711
 
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
21712
 
  # simplest approach to changing $(DEPDIR) to its actual value in the
21713
 
  # expansion.
21714
 
  for file in `sed -n "
21715
 
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21716
 
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21717
 
    # Make sure the directory exists.
21718
 
    test -f "$dirpart/$file" && continue
21719
 
    fdir=`(dirname "$file") 2>/dev/null ||
21720
 
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21721
 
         X"$file" : 'X\(//\)[^/]' \| \
21722
 
         X"$file" : 'X\(//\)$' \| \
21723
 
         X"$file" : 'X\(/\)' \| \
21724
 
         .     : '\(.\)' 2>/dev/null ||
21725
 
echo X"$file" |
21726
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21727
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21728
 
          /^X\(\/\/\)$/{ s//\1/; q; }
21729
 
          /^X\(\/\).*/{ s//\1/; q; }
21730
 
          s/.*/./; q'`
21731
 
    { if $as_mkdir_p; then
21732
 
    mkdir -p $dirpart/$fdir
21733
 
  else
21734
 
    as_dir=$dirpart/$fdir
21735
 
    as_dirs=
21736
 
    while test ! -d "$as_dir"; do
21737
 
      as_dirs="$as_dir $as_dirs"
21738
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21739
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21740
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
21741
 
         X"$as_dir" : 'X\(//\)$' \| \
21742
 
         X"$as_dir" : 'X\(/\)' \| \
21743
 
         .     : '\(.\)' 2>/dev/null ||
21744
 
echo X"$as_dir" |
21745
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21746
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21747
 
          /^X\(\/\/\)$/{ s//\1/; q; }
21748
 
          /^X\(\/\).*/{ s//\1/; q; }
21749
 
          s/.*/./; q'`
21750
 
    done
21751
 
    test ! -n "$as_dirs" || mkdir $as_dirs
21752
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21753
 
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21754
 
   { (exit 1); exit 1; }; }; }
21755
 
 
21756
 
    # echo "creating $dirpart/$file"
21757
 
    echo '# dummy' > "$dirpart/$file"
21758
 
  done
21759
 
done
21760
 
 ;;
21761
 
  esac
21762
 
done
21763
 
_ACEOF
21764
 
 
21765
 
cat >>$CONFIG_STATUS <<\_ACEOF
21766
 
 
21767
 
{ (exit 0); exit 0; }
21768
 
_ACEOF
21769
 
chmod +x $CONFIG_STATUS
21770
 
ac_clean_files=$ac_clean_files_save
21771
 
 
21772
 
 
21773
 
# configure is writing to config.log, and then calls config.status.
21774
 
# config.status does its own redirection, appending to config.log.
21775
 
# Unfortunately, on DOS this fails, as config.log is still kept open
21776
 
# by configure, so config.status won't be able to write to it; its
21777
 
# output is simply discarded.  So we exec the FD to /dev/null,
21778
 
# effectively closing config.log, so it can be properly (re)opened and
21779
 
# appended to by config.status.  When coming back to configure, we
21780
 
# need to make the FD available again.
21781
 
if test "$no_create" != yes; then
21782
 
  ac_cs_success=:
21783
 
  ac_config_status_args=
21784
 
  test "$silent" = yes &&
21785
 
    ac_config_status_args="$ac_config_status_args --quiet"
21786
 
  exec 5>/dev/null
21787
 
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21788
 
  exec 5>>config.log
21789
 
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21790
 
  # would make configure fail if this is the last instruction.
21791
 
  $ac_cs_success || { (exit 1); exit 1; }
21792
 
fi
21793
 
 
21794
 
 
21795
 
echo "CFLAGS=$CFLAGS"
21796