~ubuntu-branches/ubuntu/natty/libofx/natty

« back to all changes in this revision

Viewing changes to autom4te.cache/output.1

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Bushnell, BSG
  • Date: 2005-11-29 00:12:00 UTC
  • mfrom: (1.2.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20051129001200-aplj8zbj80f68xby
Tags: 1:0.8.0-9
Generate autotools using Debian libtool (rerun libtoolize --copy
--force, aclocal-1.9, autoconf). (Closes: #341190)

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.
 
4
@%:@ 
 
5
@%:@ Copyright (C) 2003 Free Software Foundation, Inc.
 
6
@%:@ This configure script is free software; the Free Software Foundation
 
7
@%:@ gives unlimited permission to copy, distribute and modify it.
 
8
## --------------------- ##
 
9
## M4sh Initialization.  ##
 
10
## --------------------- ##
 
11
 
 
12
# Be Bourne compatible
 
13
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
14
  emulate sh
 
15
  NULLCMD=:
 
16
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
17
  # is contrary to our usage.  Disable this feature.
 
18
  alias -g '${1+"$@"}'='"$@"'
 
19
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
20
  set -o posix
 
21
fi
 
22
DUALCASE=1; export DUALCASE # for MKS sh
 
23
 
 
24
# Support unset when possible.
 
25
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
26
  as_unset=unset
 
27
else
 
28
  as_unset=false
 
29
fi
 
30
 
 
31
 
 
32
# Work around bugs in pre-3.0 UWIN ksh.
 
33
$as_unset ENV MAIL MAILPATH
 
34
PS1='$ '
 
35
PS2='> '
 
36
PS4='+ '
 
37
 
 
38
# NLS nuisances.
 
39
for as_var in \
 
40
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
41
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
42
  LC_TELEPHONE LC_TIME
 
43
do
 
44
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
45
    eval $as_var=C; export $as_var
 
46
  else
 
47
    $as_unset $as_var
 
48
  fi
 
49
done
 
50
 
 
51
# Required to use basename.
 
52
if expr a : '\(a\)' >/dev/null 2>&1; then
 
53
  as_expr=expr
 
54
else
 
55
  as_expr=false
 
56
fi
 
57
 
 
58
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
59
  as_basename=basename
 
60
else
 
61
  as_basename=false
 
62
fi
 
63
 
 
64
 
 
65
# Name of the executable.
 
66
as_me=`$as_basename "$0" ||
 
67
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
68
         X"$0" : 'X\(//\)$' \| \
 
69
         X"$0" : 'X\(/\)$' \| \
 
70
         .     : '\(.\)' 2>/dev/null ||
 
71
echo X/"$0" |
 
72
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
73
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
74
          /^X\/\(\/\).*/{ s//\1/; q; }
 
75
          s/.*/./; q'`
 
76
 
 
77
 
 
78
# PATH needs CR, and LINENO needs CR and PATH.
 
79
# Avoid depending upon Character Ranges.
 
80
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
81
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
82
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
83
as_cr_digits='0123456789'
 
84
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
85
 
 
86
# The user is always right.
 
87
if test "${PATH_SEPARATOR+set}" != set; then
 
88
  echo "#! /bin/sh" >conf$$.sh
 
89
  echo  "exit 0"   >>conf$$.sh
 
90
  chmod +x conf$$.sh
 
91
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
92
    PATH_SEPARATOR=';'
 
93
  else
 
94
    PATH_SEPARATOR=:
 
95
  fi
 
96
  rm -f conf$$.sh
 
97
fi
 
98
 
 
99
 
 
100
  as_lineno_1=$LINENO
 
101
  as_lineno_2=$LINENO
 
102
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
103
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
104
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
105
  # Find who we are.  Look in the path if we contain no path at all
 
106
  # relative or not.
 
107
  case $0 in
 
108
    *[\\/]* ) as_myself=$0 ;;
 
109
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
110
for as_dir in $PATH
 
111
do
 
112
  IFS=$as_save_IFS
 
113
  test -z "$as_dir" && as_dir=.
 
114
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
115
done
 
116
 
 
117
       ;;
 
118
  esac
 
119
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
120
  # in which case we are not to be found in the path.
 
121
  if test "x$as_myself" = x; then
 
122
    as_myself=$0
 
123
  fi
 
124
  if test ! -f "$as_myself"; then
 
125
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
 
126
   { (exit 1); exit 1; }; }
 
127
  fi
 
128
  case $CONFIG_SHELL in
 
129
  '')
 
130
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
131
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
132
do
 
133
  IFS=$as_save_IFS
 
134
  test -z "$as_dir" && as_dir=.
 
135
  for as_base in sh bash ksh sh5; do
 
136
         case $as_dir in
 
137
         /*)
 
138
           if ("$as_dir/$as_base" -c '
 
139
  as_lineno_1=$LINENO
 
140
  as_lineno_2=$LINENO
 
141
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
142
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
143
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
144
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
145
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
146
             CONFIG_SHELL=$as_dir/$as_base
 
147
             export CONFIG_SHELL
 
148
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
149
           fi;;
 
150
         esac
 
151
       done
 
152
done
 
153
;;
 
154
  esac
 
155
 
 
156
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
157
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
158
  # line-number line before each line; the second 'sed' does the real
 
159
  # work.  The second script uses 'N' to pair each line-number line
 
160
  # with the numbered line, and appends trailing '-' during
 
161
  # substitution so that $LINENO is not a special case at line end.
 
162
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
163
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
164
  sed '=' <$as_myself |
 
165
    sed '
 
166
      N
 
167
      s,$,-,
 
168
      : loop
 
169
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
170
      t loop
 
171
      s,-$,,
 
172
      s,^['$as_cr_digits']*\n,,
 
173
    ' >$as_me.lineno &&
 
174
  chmod +x $as_me.lineno ||
 
175
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
176
   { (exit 1); exit 1; }; }
 
177
 
 
178
  # Don't try to exec as it changes $[0], causing all sort of problems
 
179
  # (the dirname of $[0] is not the place where we might find the
 
180
  # original and so on.  Autoconf is especially sensible to this).
 
181
  . ./$as_me.lineno
 
182
  # Exit status is that of the last command.
 
183
  exit
 
184
}
 
185
 
 
186
 
 
187
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
188
  *c*,-n*) ECHO_N= ECHO_C='
 
189
' ECHO_T='      ' ;;
 
190
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
191
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
192
esac
 
193
 
 
194
if expr a : '\(a\)' >/dev/null 2>&1; then
 
195
  as_expr=expr
 
196
else
 
197
  as_expr=false
 
198
fi
 
199
 
 
200
rm -f conf$$ conf$$.exe conf$$.file
 
201
echo >conf$$.file
 
202
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
203
  # We could just check for DJGPP; but this test a) works b) is more generic
 
204
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
205
  if test -f conf$$.exe; then
 
206
    # Don't use ln at all; we don't have any links
 
207
    as_ln_s='cp -p'
 
208
  else
 
209
    as_ln_s='ln -s'
 
210
  fi
 
211
elif ln conf$$.file conf$$ 2>/dev/null; then
 
212
  as_ln_s=ln
 
213
else
 
214
  as_ln_s='cp -p'
 
215
fi
 
216
rm -f conf$$ conf$$.exe conf$$.file
 
217
 
 
218
if mkdir -p . 2>/dev/null; then
 
219
  as_mkdir_p=:
 
220
else
 
221
  test -d ./-p && rmdir ./-p
 
222
  as_mkdir_p=false
 
223
fi
 
224
 
 
225
as_executable_p="test -f"
 
226
 
 
227
# Sed expression to map a string onto a valid CPP name.
 
228
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
229
 
 
230
# Sed expression to map a string onto a valid variable name.
 
231
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
232
 
 
233
 
 
234
# IFS
 
235
# We need space, tab and new line, in precisely that order.
 
236
as_nl='
 
237
'
 
238
IFS="   $as_nl"
 
239
 
 
240
# CDPATH.
 
241
$as_unset CDPATH
 
242
 
 
243
 
 
244
 
 
245
# Check that we are running under the correct shell.
 
246
SHELL=${CONFIG_SHELL-/bin/sh}
 
247
 
 
248
case X$ECHO in
 
249
X*--fallback-echo)
 
250
  # Remove one level of quotation (which was required for Make).
 
251
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
252
  ;;
 
253
esac
 
254
 
 
255
echo=${ECHO-echo}
 
256
if test "X$1" = X--no-reexec; then
 
257
  # Discard the --no-reexec flag, and continue.
 
258
  shift
 
259
elif test "X$1" = X--fallback-echo; then
 
260
  # Avoid inline document here, it may be left over
 
261
  :
 
262
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
 
263
  # Yippee, $echo works!
 
264
  :
 
265
else
 
266
  # Restart under the correct shell.
 
267
  exec $SHELL "$0" --no-reexec ${1+"$@"}
 
268
fi
 
269
 
 
270
if test "X$1" = X--fallback-echo; then
 
271
  # used as fallback echo
 
272
  shift
 
273
  cat <<EOF
 
274
$*
 
275
EOF
 
276
  exit 0
 
277
fi
 
278
 
 
279
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
280
# if CDPATH is set.
 
281
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
282
 
 
283
if test -z "$ECHO"; then
 
284
if test "X${echo_test_string+set}" != Xset; then
 
285
# find a string as large as possible, as long as the shell can cope with it
 
286
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
287
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
288
    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
 
289
       echo_test_string=`eval $cmd` &&
 
290
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
 
291
    then
 
292
      break
 
293
    fi
 
294
  done
 
295
fi
 
296
 
 
297
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
298
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
299
   test "X$echo_testing_string" = "X$echo_test_string"; then
 
300
  :
 
301
else
 
302
  # The Solaris, AIX, and Digital Unix default echo programs unquote
 
303
  # backslashes.  This makes it impossible to quote backslashes using
 
304
  #   echo "$something" | sed 's/\\/\\\\/g'
 
305
  #
 
306
  # So, first we look for a working echo in the user's PATH.
 
307
 
 
308
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
309
  for dir in $PATH /usr/ucb; do
 
310
    IFS="$lt_save_ifs"
 
311
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
312
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
313
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
314
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
315
      echo="$dir/echo"
 
316
      break
 
317
    fi
 
318
  done
 
319
  IFS="$lt_save_ifs"
 
320
 
 
321
  if test "X$echo" = Xecho; then
 
322
    # We didn't find a better echo, so look for alternatives.
 
323
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
 
324
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
 
325
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
326
      # This shell has a builtin print -r that does the trick.
 
327
      echo='print -r'
 
328
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
 
329
         test "X$CONFIG_SHELL" != X/bin/ksh; then
 
330
      # If we have ksh, try running configure again with it.
 
331
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
332
      export ORIGINAL_CONFIG_SHELL
 
333
      CONFIG_SHELL=/bin/ksh
 
334
      export CONFIG_SHELL
 
335
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
336
    else
 
337
      # Try using printf.
 
338
      echo='printf %s\n'
 
339
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
340
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
341
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
342
        # Cool, printf works
 
343
        :
 
344
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
345
           test "X$echo_testing_string" = 'X\t' &&
 
346
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
347
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
348
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
349
        export CONFIG_SHELL
 
350
        SHELL="$CONFIG_SHELL"
 
351
        export SHELL
 
352
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
353
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
354
           test "X$echo_testing_string" = 'X\t' &&
 
355
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
356
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
357
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
358
      else
 
359
        # maybe with a smaller string...
 
360
        prev=:
 
361
 
 
362
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
363
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
 
364
          then
 
365
            break
 
366
          fi
 
367
          prev="$cmd"
 
368
        done
 
369
 
 
370
        if test "$prev" != 'sed 50q "$0"'; then
 
371
          echo_test_string=`eval $prev`
 
372
          export echo_test_string
 
373
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
374
        else
 
375
          # Oops.  We lost completely, so just stick with echo.
 
376
          echo=echo
 
377
        fi
 
378
      fi
 
379
    fi
 
380
  fi
 
381
fi
 
382
fi
 
383
 
 
384
# Copy echo and quote the copy suitably for passing to libtool from
 
385
# the Makefile, instead of quoting the original, which is used later.
 
386
ECHO=$echo
 
387
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
388
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
389
fi
 
390
 
 
391
 
 
392
 
 
393
 
 
394
tagnames=${tagnames+${tagnames},}CXX
 
395
 
 
396
tagnames=${tagnames+${tagnames},}F77
 
397
 
 
398
# Name of the host.
 
399
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
400
# so uname gets run too.
 
401
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
402
 
 
403
exec 6>&1
 
404
 
 
405
#
 
406
# Initializations.
 
407
#
 
408
ac_default_prefix=/usr/local
 
409
ac_config_libobj_dir=.
 
410
cross_compiling=no
 
411
subdirs=
 
412
MFLAGS=
 
413
MAKEFLAGS=
 
414
SHELL=${CONFIG_SHELL-/bin/sh}
 
415
 
 
416
# Maximum number of lines to put in a shell here document.
 
417
# This variable seems obsolete.  It should probably be removed, and
 
418
# only ac_max_sed_lines should be used.
 
419
: ${ac_max_here_lines=38}
 
420
 
 
421
# Identity of this package.
 
422
PACKAGE_NAME=
 
423
PACKAGE_TARNAME=
 
424
PACKAGE_VERSION=
 
425
PACKAGE_STRING=
 
426
PACKAGE_BUGREPORT=
 
427
 
 
428
ac_unique_file="inc/libofx.h"
 
429
# Factoring default headers for most tests.
 
430
ac_includes_default="\
 
431
#include <stdio.h>
 
432
#if HAVE_SYS_TYPES_H
 
433
# include <sys/types.h>
 
434
#endif
 
435
#if HAVE_SYS_STAT_H
 
436
# include <sys/stat.h>
 
437
#endif
 
438
#if STDC_HEADERS
 
439
# include <stdlib.h>
 
440
# include <stddef.h>
 
441
#else
 
442
# if HAVE_STDLIB_H
 
443
#  include <stdlib.h>
 
444
# endif
 
445
#endif
 
446
#if HAVE_STRING_H
 
447
# if !STDC_HEADERS && HAVE_MEMORY_H
 
448
#  include <memory.h>
 
449
# endif
 
450
# include <string.h>
 
451
#endif
 
452
#if HAVE_STRINGS_H
 
453
# include <strings.h>
 
454
#endif
 
455
#if HAVE_INTTYPES_H
 
456
# include <inttypes.h>
 
457
#else
 
458
# if HAVE_STDINT_H
 
459
#  include <stdint.h>
 
460
# endif
 
461
#endif
 
462
#if HAVE_UNISTD_H
 
463
# include <unistd.h>
 
464
#endif"
 
465
 
 
466
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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX LIBOFX_MAJOR_VERSION LIBOFX_MINOR_VERSION LIBOFX_MICRO_VERSION LIBOFX_VERSION 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 DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE LIBOFX_SO_CURRENT LIBOFX_SO_REVISION LIBOFX_SO_AGE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL DOXYGEN DOT DOC_TRUE DOC_FALSE ENABLE_DOXYGEN_TRUE ENABLE_DOXYGEN_FALSE enable_dot enable_html_docs enable_latex_docs LIB@&t@OBJS NO_GETOPTLONG_TRUE NO_GETOPTLONG_FALSE have_gengetopt USE_GENGETOPT_TRUE USE_GENGETOPT_FALSE OPENSPINCLUDES OPENSPLIBS LIBOFX_DTD_DIR LTLIBOBJS'
 
467
ac_subst_files=''
 
468
 
 
469
# Initialize some variables set by options.
 
470
ac_init_help=
 
471
ac_init_version=false
 
472
# The variables have the same names as the options, with
 
473
# dashes changed to underlines.
 
474
cache_file=/dev/null
 
475
exec_prefix=NONE
 
476
no_create=
 
477
no_recursion=
 
478
prefix=NONE
 
479
program_prefix=NONE
 
480
program_suffix=NONE
 
481
program_transform_name=s,x,x,
 
482
silent=
 
483
site=
 
484
srcdir=
 
485
verbose=
 
486
x_includes=NONE
 
487
x_libraries=NONE
 
488
 
 
489
# Installation directory options.
 
490
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
491
# and all the variables that are supposed to be based on exec_prefix
 
492
# by default will actually change.
 
493
# Use braces instead of parens because sh, perl, etc. also accept them.
 
494
bindir='${exec_prefix}/bin'
 
495
sbindir='${exec_prefix}/sbin'
 
496
libexecdir='${exec_prefix}/libexec'
 
497
datadir='${prefix}/share'
 
498
sysconfdir='${prefix}/etc'
 
499
sharedstatedir='${prefix}/com'
 
500
localstatedir='${prefix}/var'
 
501
libdir='${exec_prefix}/lib'
 
502
includedir='${prefix}/include'
 
503
oldincludedir='/usr/include'
 
504
infodir='${prefix}/info'
 
505
mandir='${prefix}/man'
 
506
 
 
507
ac_prev=
 
508
for ac_option
 
509
do
 
510
  # If the previous option needs an argument, assign it.
 
511
  if test -n "$ac_prev"; then
 
512
    eval "$ac_prev=\$ac_option"
 
513
    ac_prev=
 
514
    continue
 
515
  fi
 
516
 
 
517
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
 
518
 
 
519
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
520
 
 
521
  case $ac_option in
 
522
 
 
523
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
524
    ac_prev=bindir ;;
 
525
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
526
    bindir=$ac_optarg ;;
 
527
 
 
528
  -build | --build | --buil | --bui | --bu)
 
529
    ac_prev=build_alias ;;
 
530
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
531
    build_alias=$ac_optarg ;;
 
532
 
 
533
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
534
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
535
    ac_prev=cache_file ;;
 
536
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
537
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
538
    cache_file=$ac_optarg ;;
 
539
 
 
540
  --config-cache | -C)
 
541
    cache_file=config.cache ;;
 
542
 
 
543
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
544
    ac_prev=datadir ;;
 
545
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 
546
  | --da=*)
 
547
    datadir=$ac_optarg ;;
 
548
 
 
549
  -disable-* | --disable-*)
 
550
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
551
    # Reject names that are not valid shell variable names.
 
552
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
553
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
554
   { (exit 1); exit 1; }; }
 
555
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
556
    eval "enable_$ac_feature=no" ;;
 
557
 
 
558
  -enable-* | --enable-*)
 
559
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
560
    # Reject names that are not valid shell variable names.
 
561
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
562
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
563
   { (exit 1); exit 1; }; }
 
564
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
565
    case $ac_option in
 
566
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
567
      *) ac_optarg=yes ;;
 
568
    esac
 
569
    eval "enable_$ac_feature='$ac_optarg'" ;;
 
570
 
 
571
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
572
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
573
  | --exec | --exe | --ex)
 
574
    ac_prev=exec_prefix ;;
 
575
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
576
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
577
  | --exec=* | --exe=* | --ex=*)
 
578
    exec_prefix=$ac_optarg ;;
 
579
 
 
580
  -gas | --gas | --ga | --g)
 
581
    # Obsolete; use --with-gas.
 
582
    with_gas=yes ;;
 
583
 
 
584
  -help | --help | --hel | --he | -h)
 
585
    ac_init_help=long ;;
 
586
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
587
    ac_init_help=recursive ;;
 
588
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
589
    ac_init_help=short ;;
 
590
 
 
591
  -host | --host | --hos | --ho)
 
592
    ac_prev=host_alias ;;
 
593
  -host=* | --host=* | --hos=* | --ho=*)
 
594
    host_alias=$ac_optarg ;;
 
595
 
 
596
  -includedir | --includedir | --includedi | --included | --include \
 
597
  | --includ | --inclu | --incl | --inc)
 
598
    ac_prev=includedir ;;
 
599
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
600
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
601
    includedir=$ac_optarg ;;
 
602
 
 
603
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
604
    ac_prev=infodir ;;
 
605
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
606
    infodir=$ac_optarg ;;
 
607
 
 
608
  -libdir | --libdir | --libdi | --libd)
 
609
    ac_prev=libdir ;;
 
610
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
611
    libdir=$ac_optarg ;;
 
612
 
 
613
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
614
  | --libexe | --libex | --libe)
 
615
    ac_prev=libexecdir ;;
 
616
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
617
  | --libexe=* | --libex=* | --libe=*)
 
618
    libexecdir=$ac_optarg ;;
 
619
 
 
620
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
621
  | --localstate | --localstat | --localsta | --localst \
 
622
  | --locals | --local | --loca | --loc | --lo)
 
623
    ac_prev=localstatedir ;;
 
624
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
625
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
 
626
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
627
    localstatedir=$ac_optarg ;;
 
628
 
 
629
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
630
    ac_prev=mandir ;;
 
631
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
632
    mandir=$ac_optarg ;;
 
633
 
 
634
  -nfp | --nfp | --nf)
 
635
    # Obsolete; use --without-fp.
 
636
    with_fp=no ;;
 
637
 
 
638
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
639
  | --no-cr | --no-c | -n)
 
640
    no_create=yes ;;
 
641
 
 
642
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
643
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
644
    no_recursion=yes ;;
 
645
 
 
646
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
647
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
648
  | --oldin | --oldi | --old | --ol | --o)
 
649
    ac_prev=oldincludedir ;;
 
650
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
651
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
652
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
653
    oldincludedir=$ac_optarg ;;
 
654
 
 
655
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
656
    ac_prev=prefix ;;
 
657
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
658
    prefix=$ac_optarg ;;
 
659
 
 
660
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
661
  | --program-pre | --program-pr | --program-p)
 
662
    ac_prev=program_prefix ;;
 
663
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
664
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
665
    program_prefix=$ac_optarg ;;
 
666
 
 
667
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
668
  | --program-suf | --program-su | --program-s)
 
669
    ac_prev=program_suffix ;;
 
670
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
671
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
672
    program_suffix=$ac_optarg ;;
 
673
 
 
674
  -program-transform-name | --program-transform-name \
 
675
  | --program-transform-nam | --program-transform-na \
 
676
  | --program-transform-n | --program-transform- \
 
677
  | --program-transform | --program-transfor \
 
678
  | --program-transfo | --program-transf \
 
679
  | --program-trans | --program-tran \
 
680
  | --progr-tra | --program-tr | --program-t)
 
681
    ac_prev=program_transform_name ;;
 
682
  -program-transform-name=* | --program-transform-name=* \
 
683
  | --program-transform-nam=* | --program-transform-na=* \
 
684
  | --program-transform-n=* | --program-transform-=* \
 
685
  | --program-transform=* | --program-transfor=* \
 
686
  | --program-transfo=* | --program-transf=* \
 
687
  | --program-trans=* | --program-tran=* \
 
688
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
689
    program_transform_name=$ac_optarg ;;
 
690
 
 
691
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
692
  | -silent | --silent | --silen | --sile | --sil)
 
693
    silent=yes ;;
 
694
 
 
695
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
696
    ac_prev=sbindir ;;
 
697
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
698
  | --sbi=* | --sb=*)
 
699
    sbindir=$ac_optarg ;;
 
700
 
 
701
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
702
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
703
  | --sharedst | --shareds | --shared | --share | --shar \
 
704
  | --sha | --sh)
 
705
    ac_prev=sharedstatedir ;;
 
706
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
707
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
708
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
709
  | --sha=* | --sh=*)
 
710
    sharedstatedir=$ac_optarg ;;
 
711
 
 
712
  -site | --site | --sit)
 
713
    ac_prev=site ;;
 
714
  -site=* | --site=* | --sit=*)
 
715
    site=$ac_optarg ;;
 
716
 
 
717
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
718
    ac_prev=srcdir ;;
 
719
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
720
    srcdir=$ac_optarg ;;
 
721
 
 
722
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
723
  | --syscon | --sysco | --sysc | --sys | --sy)
 
724
    ac_prev=sysconfdir ;;
 
725
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
726
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
727
    sysconfdir=$ac_optarg ;;
 
728
 
 
729
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
730
    ac_prev=target_alias ;;
 
731
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
732
    target_alias=$ac_optarg ;;
 
733
 
 
734
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
735
    verbose=yes ;;
 
736
 
 
737
  -version | --version | --versio | --versi | --vers | -V)
 
738
    ac_init_version=: ;;
 
739
 
 
740
  -with-* | --with-*)
 
741
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
742
    # Reject names that are not valid shell variable names.
 
743
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
744
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
745
   { (exit 1); exit 1; }; }
 
746
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
747
    case $ac_option in
 
748
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
749
      *) ac_optarg=yes ;;
 
750
    esac
 
751
    eval "with_$ac_package='$ac_optarg'" ;;
 
752
 
 
753
  -without-* | --without-*)
 
754
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
755
    # Reject names that are not valid shell variable names.
 
756
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
757
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
758
   { (exit 1); exit 1; }; }
 
759
    ac_package=`echo $ac_package | sed 's/-/_/g'`
 
760
    eval "with_$ac_package=no" ;;
 
761
 
 
762
  --x)
 
763
    # Obsolete; use --with-x.
 
764
    with_x=yes ;;
 
765
 
 
766
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
767
  | --x-incl | --x-inc | --x-in | --x-i)
 
768
    ac_prev=x_includes ;;
 
769
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
770
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
771
    x_includes=$ac_optarg ;;
 
772
 
 
773
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
774
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
775
    ac_prev=x_libraries ;;
 
776
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
777
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
778
    x_libraries=$ac_optarg ;;
 
779
 
 
780
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
781
Try \`$0 --help' for more information." >&2
 
782
   { (exit 1); exit 1; }; }
 
783
    ;;
 
784
 
 
785
  *=*)
 
786
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
787
    # Reject names that are not valid shell variable names.
 
788
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
789
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
790
   { (exit 1); exit 1; }; }
 
791
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
 
792
    eval "$ac_envvar='$ac_optarg'"
 
793
    export $ac_envvar ;;
 
794
 
 
795
  *)
 
796
    # FIXME: should be removed in autoconf 3.0.
 
797
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
798
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
799
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
800
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
801
    ;;
 
802
 
 
803
  esac
 
804
done
 
805
 
 
806
if test -n "$ac_prev"; then
 
807
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
808
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
809
   { (exit 1); exit 1; }; }
 
810
fi
 
811
 
 
812
# Be sure to have absolute paths.
 
813
for ac_var in exec_prefix prefix
 
814
do
 
815
  eval ac_val=$`echo $ac_var`
 
816
  case $ac_val in
 
817
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
 
818
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
819
   { (exit 1); exit 1; }; };;
 
820
  esac
 
821
done
 
822
 
 
823
# Be sure to have absolute paths.
 
824
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
 
825
              localstatedir libdir includedir oldincludedir infodir mandir
 
826
do
 
827
  eval ac_val=$`echo $ac_var`
 
828
  case $ac_val in
 
829
    [\\/$]* | ?:[\\/]* ) ;;
 
830
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
831
   { (exit 1); exit 1; }; };;
 
832
  esac
 
833
done
 
834
 
 
835
# There might be people who depend on the old broken behavior: `$host'
 
836
# used to hold the argument of --host etc.
 
837
# FIXME: To remove some day.
 
838
build=$build_alias
 
839
host=$host_alias
 
840
target=$target_alias
 
841
 
 
842
# FIXME: To remove some day.
 
843
if test "x$host_alias" != x; then
 
844
  if test "x$build_alias" = x; then
 
845
    cross_compiling=maybe
 
846
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
847
    If a cross compiler is detected then cross compile mode will be used." >&2
 
848
  elif test "x$build_alias" != "x$host_alias"; then
 
849
    cross_compiling=yes
 
850
  fi
 
851
fi
 
852
 
 
853
ac_tool_prefix=
 
854
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
855
 
 
856
test "$silent" = yes && exec 6>/dev/null
 
857
 
 
858
 
 
859
# Find the source files, if location was not specified.
 
860
if test -z "$srcdir"; then
 
861
  ac_srcdir_defaulted=yes
 
862
  # Try the directory containing this script, then its parent.
 
863
  ac_confdir=`(dirname "$0") 2>/dev/null ||
 
864
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
865
         X"$0" : 'X\(//\)[^/]' \| \
 
866
         X"$0" : 'X\(//\)$' \| \
 
867
         X"$0" : 'X\(/\)' \| \
 
868
         .     : '\(.\)' 2>/dev/null ||
 
869
echo X"$0" |
 
870
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
871
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
872
          /^X\(\/\/\)$/{ s//\1/; q; }
 
873
          /^X\(\/\).*/{ s//\1/; q; }
 
874
          s/.*/./; q'`
 
875
  srcdir=$ac_confdir
 
876
  if test ! -r $srcdir/$ac_unique_file; then
 
877
    srcdir=..
 
878
  fi
 
879
else
 
880
  ac_srcdir_defaulted=no
 
881
fi
 
882
if test ! -r $srcdir/$ac_unique_file; then
 
883
  if test "$ac_srcdir_defaulted" = yes; then
 
884
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
 
885
   { (exit 1); exit 1; }; }
 
886
  else
 
887
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
888
   { (exit 1); exit 1; }; }
 
889
  fi
 
890
fi
 
891
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
 
892
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
 
893
   { (exit 1); exit 1; }; }
 
894
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
 
895
ac_env_build_alias_set=${build_alias+set}
 
896
ac_env_build_alias_value=$build_alias
 
897
ac_cv_env_build_alias_set=${build_alias+set}
 
898
ac_cv_env_build_alias_value=$build_alias
 
899
ac_env_host_alias_set=${host_alias+set}
 
900
ac_env_host_alias_value=$host_alias
 
901
ac_cv_env_host_alias_set=${host_alias+set}
 
902
ac_cv_env_host_alias_value=$host_alias
 
903
ac_env_target_alias_set=${target_alias+set}
 
904
ac_env_target_alias_value=$target_alias
 
905
ac_cv_env_target_alias_set=${target_alias+set}
 
906
ac_cv_env_target_alias_value=$target_alias
 
907
ac_env_CC_set=${CC+set}
 
908
ac_env_CC_value=$CC
 
909
ac_cv_env_CC_set=${CC+set}
 
910
ac_cv_env_CC_value=$CC
 
911
ac_env_CFLAGS_set=${CFLAGS+set}
 
912
ac_env_CFLAGS_value=$CFLAGS
 
913
ac_cv_env_CFLAGS_set=${CFLAGS+set}
 
914
ac_cv_env_CFLAGS_value=$CFLAGS
 
915
ac_env_LDFLAGS_set=${LDFLAGS+set}
 
916
ac_env_LDFLAGS_value=$LDFLAGS
 
917
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
 
918
ac_cv_env_LDFLAGS_value=$LDFLAGS
 
919
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
 
920
ac_env_CPPFLAGS_value=$CPPFLAGS
 
921
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
 
922
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
 
923
ac_env_CXX_set=${CXX+set}
 
924
ac_env_CXX_value=$CXX
 
925
ac_cv_env_CXX_set=${CXX+set}
 
926
ac_cv_env_CXX_value=$CXX
 
927
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
 
928
ac_env_CXXFLAGS_value=$CXXFLAGS
 
929
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
 
930
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
 
931
ac_env_CPP_set=${CPP+set}
 
932
ac_env_CPP_value=$CPP
 
933
ac_cv_env_CPP_set=${CPP+set}
 
934
ac_cv_env_CPP_value=$CPP
 
935
ac_env_CXXCPP_set=${CXXCPP+set}
 
936
ac_env_CXXCPP_value=$CXXCPP
 
937
ac_cv_env_CXXCPP_set=${CXXCPP+set}
 
938
ac_cv_env_CXXCPP_value=$CXXCPP
 
939
ac_env_F77_set=${F77+set}
 
940
ac_env_F77_value=$F77
 
941
ac_cv_env_F77_set=${F77+set}
 
942
ac_cv_env_F77_value=$F77
 
943
ac_env_FFLAGS_set=${FFLAGS+set}
 
944
ac_env_FFLAGS_value=$FFLAGS
 
945
ac_cv_env_FFLAGS_set=${FFLAGS+set}
 
946
ac_cv_env_FFLAGS_value=$FFLAGS
 
947
 
 
948
#
 
949
# Report the --help message.
 
950
#
 
951
if test "$ac_init_help" = "long"; then
 
952
  # Omit some internal or obsolete options to make the list less imposing.
 
953
  # This message is too long to be a string in the A/UX 3.1 sh.
 
954
  cat <<_ACEOF
 
955
\`configure' configures this package to adapt to many kinds of systems.
 
956
 
 
957
Usage: $0 [OPTION]... [VAR=VALUE]...
 
958
 
 
959
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
960
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
961
 
 
962
Defaults for the options are specified in brackets.
 
963
 
 
964
Configuration:
 
965
  -h, --help              display this help and exit
 
966
      --help=short        display options specific to this package
 
967
      --help=recursive    display the short help of all the included packages
 
968
  -V, --version           display version information and exit
 
969
  -q, --quiet, --silent   do not print \`checking...' messages
 
970
      --cache-file=FILE   cache test results in FILE [disabled]
 
971
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
972
  -n, --no-create         do not create output files
 
973
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
974
 
 
975
_ACEOF
 
976
 
 
977
  cat <<_ACEOF
 
978
Installation directories:
 
979
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
980
                          [$ac_default_prefix]
 
981
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
982
                          [PREFIX]
 
983
 
 
984
By default, \`make install' will install all the files in
 
985
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
986
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
987
for instance \`--prefix=\$HOME'.
 
988
 
 
989
For better control, use the options below.
 
990
 
 
991
Fine tuning of the installation directories:
 
992
  --bindir=DIR           user executables [EPREFIX/bin]
 
993
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
994
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
995
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
 
996
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
997
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
998
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
999
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
1000
  --includedir=DIR       C header files [PREFIX/include]
 
1001
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
1002
  --infodir=DIR          info documentation [PREFIX/info]
 
1003
  --mandir=DIR           man documentation [PREFIX/man]
 
1004
_ACEOF
 
1005
 
 
1006
  cat <<\_ACEOF
 
1007
 
 
1008
Program names:
 
1009
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1010
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1011
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1012
 
 
1013
System types:
 
1014
  --build=BUILD     configure for building on BUILD [guessed]
 
1015
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1016
_ACEOF
 
1017
fi
 
1018
 
 
1019
if test -n "$ac_init_help"; then
 
1020
 
 
1021
  cat <<\_ACEOF
 
1022
 
 
1023
Optional Features:
 
1024
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1025
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1026
  --disable-dependency-tracking  speeds up one-time build
 
1027
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1028
  --enable-maintainer-mode  enable make rules and dependencies not useful
 
1029
                          (and sometimes confusing) to the casual installer
 
1030
  --enable-shared@<:@=PKGS@:>@ 
 
1031
                          build shared libraries @<:@default=yes@:>@
 
1032
  --enable-static@<:@=PKGS@:>@ 
 
1033
                          build static libraries @<:@default=yes@:>@
 
1034
  --enable-fast-install@<:@=PKGS@:>@ 
 
1035
                          optimize for fast installation @<:@default=yes@:>@
 
1036
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1037
  --enable-doxygen        enable documentation generation with doxygen (auto)
 
1038
  --enable-dot            use 'dot' to generate graphs in doxygen (auto)
 
1039
  --enable-html-docs      enable HTML generation with doxygen (yes)
 
1040
  --enable-latex-docs     enable LaTeX documentation generation with doxygen (no)
 
1041
  --disable-gengetopt     Disable rebuilding of command line parser with
 
1042
                          gengetopt
 
1043
 
 
1044
Optional Packages:
 
1045
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1046
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1047
  --with-gnu-ld           assume the C compiler uses GNU ld @<:@default=no@:>@
 
1048
  --with-pic              try to use only PIC/non-PIC objects @<:@default=use
 
1049
                          both@:>@
 
1050
  --with-tags@<:@=TAGS@:>@ 
 
1051
                          include additional configurations @<:@automatic@:>@
 
1052
  --with-opensp-includes=PATH     specify where to look for OpenSP includes  
 
1053
                                  - default is /usr/include/OpenSP)
 
1054
  --with-opensp-libs=PATH         specify where to look for libosp 
 
1055
                                  - default is /usr/lib
 
1056
  --with-no-opensp-multibyte     Force libofx to compile with the assumption that OpenSP was NOT compiled with SP_MULTI_BYTE defined
 
1057
 
 
1058
Some influential environment variables:
 
1059
  CC          C compiler command
 
1060
  CFLAGS      C compiler flags
 
1061
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1062
              nonstandard directory <lib dir>
 
1063
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
 
1064
              headers in a nonstandard directory <include dir>
 
1065
  CXX         C++ compiler command
 
1066
  CXXFLAGS    C++ compiler flags
 
1067
  CPP         C preprocessor
 
1068
  CXXCPP      C++ preprocessor
 
1069
  F77         Fortran 77 compiler command
 
1070
  FFLAGS      Fortran 77 compiler flags
 
1071
 
 
1072
Use these variables to override the choices made by `configure' or to help
 
1073
it to find libraries and programs with nonstandard names/locations.
 
1074
 
 
1075
_ACEOF
 
1076
fi
 
1077
 
 
1078
if test "$ac_init_help" = "recursive"; then
 
1079
  # If there are subdirs, report their specific --help.
 
1080
  ac_popdir=`pwd`
 
1081
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1082
    test -d $ac_dir || continue
 
1083
    ac_builddir=.
 
1084
 
 
1085
if test "$ac_dir" != .; then
 
1086
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1087
  # A "../" for each directory in $ac_dir_suffix.
 
1088
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
1089
else
 
1090
  ac_dir_suffix= ac_top_builddir=
 
1091
fi
 
1092
 
 
1093
case $srcdir in
 
1094
  .)  # No --srcdir option.  We are building in place.
 
1095
    ac_srcdir=.
 
1096
    if test -z "$ac_top_builddir"; then
 
1097
       ac_top_srcdir=.
 
1098
    else
 
1099
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
1100
    fi ;;
 
1101
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
1102
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1103
    ac_top_srcdir=$srcdir ;;
 
1104
  *) # Relative path.
 
1105
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
1106
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
1107
esac
 
1108
 
 
1109
# Do not use `cd foo && pwd` to compute absolute paths, because
 
1110
# the directories may not exist.
 
1111
case `pwd` in
 
1112
.) ac_abs_builddir="$ac_dir";;
 
1113
*)
 
1114
  case "$ac_dir" in
 
1115
  .) ac_abs_builddir=`pwd`;;
 
1116
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
1117
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
1118
  esac;;
 
1119
esac
 
1120
case $ac_abs_builddir in
 
1121
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1122
*)
 
1123
  case ${ac_top_builddir}. in
 
1124
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
1125
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1126
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
1127
  esac;;
 
1128
esac
 
1129
case $ac_abs_builddir in
 
1130
.) ac_abs_srcdir=$ac_srcdir;;
 
1131
*)
 
1132
  case $ac_srcdir in
 
1133
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
1134
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
1135
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
1136
  esac;;
 
1137
esac
 
1138
case $ac_abs_builddir in
 
1139
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1140
*)
 
1141
  case $ac_top_srcdir in
 
1142
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
1143
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1144
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
1145
  esac;;
 
1146
esac
 
1147
 
 
1148
    cd $ac_dir
 
1149
    # Check for guested configure; otherwise get Cygnus style configure.
 
1150
    if test -f $ac_srcdir/configure.gnu; then
 
1151
      echo
 
1152
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
 
1153
    elif test -f $ac_srcdir/configure; then
 
1154
      echo
 
1155
      $SHELL $ac_srcdir/configure  --help=recursive
 
1156
    elif test -f $ac_srcdir/configure.ac ||
 
1157
           test -f $ac_srcdir/configure.in; then
 
1158
      echo
 
1159
      $ac_configure --help
 
1160
    else
 
1161
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1162
    fi
 
1163
    cd "$ac_popdir"
 
1164
  done
 
1165
fi
 
1166
 
 
1167
test -n "$ac_init_help" && exit 0
 
1168
if $ac_init_version; then
 
1169
  cat <<\_ACEOF
 
1170
 
 
1171
Copyright (C) 2003 Free Software Foundation, Inc.
 
1172
This configure script is free software; the Free Software Foundation
 
1173
gives unlimited permission to copy, distribute and modify it.
 
1174
_ACEOF
 
1175
  exit 0
 
1176
fi
 
1177
exec 5>config.log
 
1178
cat >&5 <<_ACEOF
 
1179
This file contains any messages produced by compilers while
 
1180
running configure, to aid debugging if configure makes a mistake.
 
1181
 
 
1182
It was created by $as_me, which was
 
1183
generated by GNU Autoconf 2.59.  Invocation command line was
 
1184
 
 
1185
  $ $0 $@
 
1186
 
 
1187
_ACEOF
 
1188
{
 
1189
cat <<_ASUNAME
 
1190
@%:@@%:@ --------- @%:@@%:@
 
1191
@%:@@%:@ Platform. @%:@@%:@
 
1192
@%:@@%:@ --------- @%:@@%:@
 
1193
 
 
1194
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1195
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1196
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1197
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1198
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1199
 
 
1200
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1201
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1202
 
 
1203
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1204
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1205
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1206
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
1207
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1208
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1209
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1210
 
 
1211
_ASUNAME
 
1212
 
 
1213
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1214
for as_dir in $PATH
 
1215
do
 
1216
  IFS=$as_save_IFS
 
1217
  test -z "$as_dir" && as_dir=.
 
1218
  echo "PATH: $as_dir"
 
1219
done
 
1220
 
 
1221
} >&5
 
1222
 
 
1223
cat >&5 <<_ACEOF
 
1224
 
 
1225
 
 
1226
@%:@@%:@ ----------- @%:@@%:@
 
1227
@%:@@%:@ Core tests. @%:@@%:@
 
1228
@%:@@%:@ ----------- @%:@@%:@
 
1229
 
 
1230
_ACEOF
 
1231
 
 
1232
 
 
1233
# Keep a trace of the command line.
 
1234
# Strip out --no-create and --no-recursion so they do not pile up.
 
1235
# Strip out --silent because we don't want to record it for future runs.
 
1236
# Also quote any args containing shell meta-characters.
 
1237
# Make two passes to allow for proper duplicate-argument suppression.
 
1238
ac_configure_args=
 
1239
ac_configure_args0=
 
1240
ac_configure_args1=
 
1241
ac_sep=
 
1242
ac_must_keep_next=false
 
1243
for ac_pass in 1 2
 
1244
do
 
1245
  for ac_arg
 
1246
  do
 
1247
    case $ac_arg in
 
1248
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1249
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1250
    | -silent | --silent | --silen | --sile | --sil)
 
1251
      continue ;;
 
1252
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1253
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1254
    esac
 
1255
    case $ac_pass in
 
1256
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1257
    2)
 
1258
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1259
      if test $ac_must_keep_next = true; then
 
1260
        ac_must_keep_next=false # Got value, back to normal.
 
1261
      else
 
1262
        case $ac_arg in
 
1263
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1264
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1265
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1266
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1267
            case "$ac_configure_args0 " in
 
1268
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1269
            esac
 
1270
            ;;
 
1271
          -* ) ac_must_keep_next=true ;;
 
1272
        esac
 
1273
      fi
 
1274
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
1275
      # Get rid of the leading space.
 
1276
      ac_sep=" "
 
1277
      ;;
 
1278
    esac
 
1279
  done
 
1280
done
 
1281
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1282
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1283
 
 
1284
# When interrupted or exit'd, cleanup temporary files, and complete
 
1285
# config.log.  We remove comments because anyway the quotes in there
 
1286
# would cause problems or look ugly.
 
1287
# WARNING: Be sure not to use single quotes in there, as some shells,
 
1288
# such as our DU 5.0 friend, will then `close' the trap.
 
1289
trap 'exit_status=$?
 
1290
  # Save into config.log some information that might help in debugging.
 
1291
  {
 
1292
    echo
 
1293
 
 
1294
    cat <<\_ASBOX
 
1295
@%:@@%:@ ---------------- @%:@@%:@
 
1296
@%:@@%:@ Cache variables. @%:@@%:@
 
1297
@%:@@%:@ ---------------- @%:@@%:@
 
1298
_ASBOX
 
1299
    echo
 
1300
    # The following way of writing the cache mishandles newlines in values,
 
1301
{
 
1302
  (set) 2>&1 |
 
1303
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
 
1304
    *ac_space=\ *)
 
1305
      sed -n \
 
1306
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1307
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1308
      ;;
 
1309
    *)
 
1310
      sed -n \
 
1311
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1312
      ;;
 
1313
    esac;
 
1314
}
 
1315
    echo
 
1316
 
 
1317
    cat <<\_ASBOX
 
1318
@%:@@%:@ ----------------- @%:@@%:@
 
1319
@%:@@%:@ Output variables. @%:@@%:@
 
1320
@%:@@%:@ ----------------- @%:@@%:@
 
1321
_ASBOX
 
1322
    echo
 
1323
    for ac_var in $ac_subst_vars
 
1324
    do
 
1325
      eval ac_val=$`echo $ac_var`
 
1326
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1327
    done | sort
 
1328
    echo
 
1329
 
 
1330
    if test -n "$ac_subst_files"; then
 
1331
      cat <<\_ASBOX
 
1332
@%:@@%:@ ------------- @%:@@%:@
 
1333
@%:@@%:@ Output files. @%:@@%:@
 
1334
@%:@@%:@ ------------- @%:@@%:@
 
1335
_ASBOX
 
1336
      echo
 
1337
      for ac_var in $ac_subst_files
 
1338
      do
 
1339
        eval ac_val=$`echo $ac_var`
 
1340
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1341
      done | sort
 
1342
      echo
 
1343
    fi
 
1344
 
 
1345
    if test -s confdefs.h; then
 
1346
      cat <<\_ASBOX
 
1347
@%:@@%:@ ----------- @%:@@%:@
 
1348
@%:@@%:@ confdefs.h. @%:@@%:@
 
1349
@%:@@%:@ ----------- @%:@@%:@
 
1350
_ASBOX
 
1351
      echo
 
1352
      sed "/^$/d" confdefs.h | sort
 
1353
      echo
 
1354
    fi
 
1355
    test "$ac_signal" != 0 &&
 
1356
      echo "$as_me: caught signal $ac_signal"
 
1357
    echo "$as_me: exit $exit_status"
 
1358
  } >&5
 
1359
  rm -f core *.core &&
 
1360
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
1361
    exit $exit_status
 
1362
     ' 0
 
1363
for ac_signal in 1 2 13 15; do
 
1364
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1365
done
 
1366
ac_signal=0
 
1367
 
 
1368
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1369
rm -rf conftest* confdefs.h
 
1370
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
1371
echo >confdefs.h
 
1372
 
 
1373
# Predefined preprocessor variables.
 
1374
 
 
1375
cat >>confdefs.h <<_ACEOF
 
1376
@%:@define PACKAGE_NAME "$PACKAGE_NAME"
 
1377
_ACEOF
 
1378
 
 
1379
 
 
1380
cat >>confdefs.h <<_ACEOF
 
1381
@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1382
_ACEOF
 
1383
 
 
1384
 
 
1385
cat >>confdefs.h <<_ACEOF
 
1386
@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1387
_ACEOF
 
1388
 
 
1389
 
 
1390
cat >>confdefs.h <<_ACEOF
 
1391
@%:@define PACKAGE_STRING "$PACKAGE_STRING"
 
1392
_ACEOF
 
1393
 
 
1394
 
 
1395
cat >>confdefs.h <<_ACEOF
 
1396
@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1397
_ACEOF
 
1398
 
 
1399
 
 
1400
# Let the site file select an alternate cache file if it wants to.
 
1401
# Prefer explicitly selected file to automatically selected ones.
 
1402
if test -z "$CONFIG_SITE"; then
 
1403
  if test "x$prefix" != xNONE; then
 
1404
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
 
1405
  else
 
1406
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
1407
  fi
 
1408
fi
 
1409
for ac_site_file in $CONFIG_SITE; do
 
1410
  if test -r "$ac_site_file"; then
 
1411
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1412
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1413
    sed 's/^/| /' "$ac_site_file" >&5
 
1414
    . "$ac_site_file"
 
1415
  fi
 
1416
done
 
1417
 
 
1418
if test -r "$cache_file"; then
 
1419
  # Some versions of bash will fail to source /dev/null (special
 
1420
  # files actually), so we avoid doing that.
 
1421
  if test -f "$cache_file"; then
 
1422
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1423
echo "$as_me: loading cache $cache_file" >&6;}
 
1424
    case $cache_file in
 
1425
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
1426
      *)                      . ./$cache_file;;
 
1427
    esac
 
1428
  fi
 
1429
else
 
1430
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1431
echo "$as_me: creating cache $cache_file" >&6;}
 
1432
  >$cache_file
 
1433
fi
 
1434
 
 
1435
# Check that the precious variables saved in the cache have kept the same
 
1436
# value.
 
1437
ac_cache_corrupted=false
 
1438
for ac_var in `(set) 2>&1 |
 
1439
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1440
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1441
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1442
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
 
1443
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
1444
  case $ac_old_set,$ac_new_set in
 
1445
    set,)
 
1446
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1447
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1448
      ac_cache_corrupted=: ;;
 
1449
    ,set)
 
1450
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1451
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1452
      ac_cache_corrupted=: ;;
 
1453
    ,);;
 
1454
    *)
 
1455
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1456
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1457
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1458
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1459
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1460
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1461
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1462
        ac_cache_corrupted=:
 
1463
      fi;;
 
1464
  esac
 
1465
  # Pass precious variables to config.status.
 
1466
  if test "$ac_new_set" = set; then
 
1467
    case $ac_new_val in
 
1468
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1469
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1470
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1471
    esac
 
1472
    case " $ac_configure_args " in
 
1473
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1474
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1475
    esac
 
1476
  fi
 
1477
done
 
1478
if $ac_cache_corrupted; then
 
1479
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1480
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1481
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1482
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1483
   { (exit 1); exit 1; }; }
 
1484
fi
 
1485
 
 
1486
ac_ext=c
 
1487
ac_cpp='$CPP $CPPFLAGS'
 
1488
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1489
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1490
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1491
 
 
1492
 
 
1493
 
 
1494
 
 
1495
 
 
1496
 
 
1497
 
 
1498
 
 
1499
 
 
1500
 
 
1501
 
 
1502
 
 
1503
 
 
1504
 
 
1505
 
 
1506
 
 
1507
 
 
1508
 
 
1509
 
 
1510
          ac_config_headers="$ac_config_headers config.h"
 
1511
 
 
1512
ac_aux_dir=
 
1513
for ac_dir in config $srcdir/config; do
 
1514
  if test -f $ac_dir/install-sh; then
 
1515
    ac_aux_dir=$ac_dir
 
1516
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
1517
    break
 
1518
  elif test -f $ac_dir/install.sh; then
 
1519
    ac_aux_dir=$ac_dir
 
1520
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
1521
    break
 
1522
  elif test -f $ac_dir/shtool; then
 
1523
    ac_aux_dir=$ac_dir
 
1524
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1525
    break
 
1526
  fi
 
1527
done
 
1528
if test -z "$ac_aux_dir"; then
 
1529
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
 
1530
echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
 
1531
   { (exit 1); exit 1; }; }
 
1532
fi
 
1533
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
 
1534
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
 
1535
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 
1536
 
 
1537
ac_ext=c
 
1538
ac_cpp='$CPP $CPPFLAGS'
 
1539
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1540
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1541
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1542
if test -n "$ac_tool_prefix"; then
 
1543
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
1544
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
1545
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1546
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1547
if test "${ac_cv_prog_CC+set}" = set; then
 
1548
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1549
else
 
1550
  if test -n "$CC"; then
 
1551
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1552
else
 
1553
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1554
for as_dir in $PATH
 
1555
do
 
1556
  IFS=$as_save_IFS
 
1557
  test -z "$as_dir" && as_dir=.
 
1558
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1559
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1560
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
1561
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1562
    break 2
 
1563
  fi
 
1564
done
 
1565
done
 
1566
 
 
1567
fi
 
1568
fi
 
1569
CC=$ac_cv_prog_CC
 
1570
if test -n "$CC"; then
 
1571
  echo "$as_me:$LINENO: result: $CC" >&5
 
1572
echo "${ECHO_T}$CC" >&6
 
1573
else
 
1574
  echo "$as_me:$LINENO: result: no" >&5
 
1575
echo "${ECHO_T}no" >&6
 
1576
fi
 
1577
 
 
1578
fi
 
1579
if test -z "$ac_cv_prog_CC"; then
 
1580
  ac_ct_CC=$CC
 
1581
  # Extract the first word of "gcc", so it can be a program name with args.
 
1582
set dummy gcc; ac_word=$2
 
1583
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1584
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1585
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1586
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1587
else
 
1588
  if test -n "$ac_ct_CC"; then
 
1589
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1590
else
 
1591
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1592
for as_dir in $PATH
 
1593
do
 
1594
  IFS=$as_save_IFS
 
1595
  test -z "$as_dir" && as_dir=.
 
1596
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1597
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1598
    ac_cv_prog_ac_ct_CC="gcc"
 
1599
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1600
    break 2
 
1601
  fi
 
1602
done
 
1603
done
 
1604
 
 
1605
fi
 
1606
fi
 
1607
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1608
if test -n "$ac_ct_CC"; then
 
1609
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
1610
echo "${ECHO_T}$ac_ct_CC" >&6
 
1611
else
 
1612
  echo "$as_me:$LINENO: result: no" >&5
 
1613
echo "${ECHO_T}no" >&6
 
1614
fi
 
1615
 
 
1616
  CC=$ac_ct_CC
 
1617
else
 
1618
  CC="$ac_cv_prog_CC"
 
1619
fi
 
1620
 
 
1621
if test -z "$CC"; then
 
1622
  if test -n "$ac_tool_prefix"; then
 
1623
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
1624
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
1625
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1626
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1627
if test "${ac_cv_prog_CC+set}" = set; then
 
1628
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1629
else
 
1630
  if test -n "$CC"; then
 
1631
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1632
else
 
1633
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1634
for as_dir in $PATH
 
1635
do
 
1636
  IFS=$as_save_IFS
 
1637
  test -z "$as_dir" && as_dir=.
 
1638
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1639
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1640
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
1641
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1642
    break 2
 
1643
  fi
 
1644
done
 
1645
done
 
1646
 
 
1647
fi
 
1648
fi
 
1649
CC=$ac_cv_prog_CC
 
1650
if test -n "$CC"; then
 
1651
  echo "$as_me:$LINENO: result: $CC" >&5
 
1652
echo "${ECHO_T}$CC" >&6
 
1653
else
 
1654
  echo "$as_me:$LINENO: result: no" >&5
 
1655
echo "${ECHO_T}no" >&6
 
1656
fi
 
1657
 
 
1658
fi
 
1659
if test -z "$ac_cv_prog_CC"; then
 
1660
  ac_ct_CC=$CC
 
1661
  # Extract the first word of "cc", so it can be a program name with args.
 
1662
set dummy cc; ac_word=$2
 
1663
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1664
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1665
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1666
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1667
else
 
1668
  if test -n "$ac_ct_CC"; then
 
1669
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1670
else
 
1671
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1672
for as_dir in $PATH
 
1673
do
 
1674
  IFS=$as_save_IFS
 
1675
  test -z "$as_dir" && as_dir=.
 
1676
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1677
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1678
    ac_cv_prog_ac_ct_CC="cc"
 
1679
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1680
    break 2
 
1681
  fi
 
1682
done
 
1683
done
 
1684
 
 
1685
fi
 
1686
fi
 
1687
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1688
if test -n "$ac_ct_CC"; then
 
1689
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
1690
echo "${ECHO_T}$ac_ct_CC" >&6
 
1691
else
 
1692
  echo "$as_me:$LINENO: result: no" >&5
 
1693
echo "${ECHO_T}no" >&6
 
1694
fi
 
1695
 
 
1696
  CC=$ac_ct_CC
 
1697
else
 
1698
  CC="$ac_cv_prog_CC"
 
1699
fi
 
1700
 
 
1701
fi
 
1702
if test -z "$CC"; then
 
1703
  # Extract the first word of "cc", so it can be a program name with args.
 
1704
set dummy cc; ac_word=$2
 
1705
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1706
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1707
if test "${ac_cv_prog_CC+set}" = set; then
 
1708
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1709
else
 
1710
  if test -n "$CC"; then
 
1711
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1712
else
 
1713
  ac_prog_rejected=no
 
1714
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1715
for as_dir in $PATH
 
1716
do
 
1717
  IFS=$as_save_IFS
 
1718
  test -z "$as_dir" && as_dir=.
 
1719
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1720
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1721
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
1722
       ac_prog_rejected=yes
 
1723
       continue
 
1724
     fi
 
1725
    ac_cv_prog_CC="cc"
 
1726
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1727
    break 2
 
1728
  fi
 
1729
done
 
1730
done
 
1731
 
 
1732
if test $ac_prog_rejected = yes; then
 
1733
  # We found a bogon in the path, so make sure we never use it.
 
1734
  set dummy $ac_cv_prog_CC
 
1735
  shift
 
1736
  if test $@%:@ != 0; then
 
1737
    # We chose a different compiler from the bogus one.
 
1738
    # However, it has the same basename, so the bogon will be chosen
 
1739
    # first if we set CC to just the basename; use the full file name.
 
1740
    shift
 
1741
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
1742
  fi
 
1743
fi
 
1744
fi
 
1745
fi
 
1746
CC=$ac_cv_prog_CC
 
1747
if test -n "$CC"; then
 
1748
  echo "$as_me:$LINENO: result: $CC" >&5
 
1749
echo "${ECHO_T}$CC" >&6
 
1750
else
 
1751
  echo "$as_me:$LINENO: result: no" >&5
 
1752
echo "${ECHO_T}no" >&6
 
1753
fi
 
1754
 
 
1755
fi
 
1756
if test -z "$CC"; then
 
1757
  if test -n "$ac_tool_prefix"; then
 
1758
  for ac_prog in cl
 
1759
  do
 
1760
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
1761
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
1762
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1763
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1764
if test "${ac_cv_prog_CC+set}" = set; then
 
1765
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1766
else
 
1767
  if test -n "$CC"; then
 
1768
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1769
else
 
1770
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1771
for as_dir in $PATH
 
1772
do
 
1773
  IFS=$as_save_IFS
 
1774
  test -z "$as_dir" && as_dir=.
 
1775
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1776
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1777
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
1778
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1779
    break 2
 
1780
  fi
 
1781
done
 
1782
done
 
1783
 
 
1784
fi
 
1785
fi
 
1786
CC=$ac_cv_prog_CC
 
1787
if test -n "$CC"; then
 
1788
  echo "$as_me:$LINENO: result: $CC" >&5
 
1789
echo "${ECHO_T}$CC" >&6
 
1790
else
 
1791
  echo "$as_me:$LINENO: result: no" >&5
 
1792
echo "${ECHO_T}no" >&6
 
1793
fi
 
1794
 
 
1795
    test -n "$CC" && break
 
1796
  done
 
1797
fi
 
1798
if test -z "$CC"; then
 
1799
  ac_ct_CC=$CC
 
1800
  for ac_prog in cl
 
1801
do
 
1802
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
1803
set dummy $ac_prog; ac_word=$2
 
1804
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1805
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1806
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
1807
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1808
else
 
1809
  if test -n "$ac_ct_CC"; then
 
1810
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1811
else
 
1812
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1813
for as_dir in $PATH
 
1814
do
 
1815
  IFS=$as_save_IFS
 
1816
  test -z "$as_dir" && as_dir=.
 
1817
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1818
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1819
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
1820
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1821
    break 2
 
1822
  fi
 
1823
done
 
1824
done
 
1825
 
 
1826
fi
 
1827
fi
 
1828
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
1829
if test -n "$ac_ct_CC"; then
 
1830
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
1831
echo "${ECHO_T}$ac_ct_CC" >&6
 
1832
else
 
1833
  echo "$as_me:$LINENO: result: no" >&5
 
1834
echo "${ECHO_T}no" >&6
 
1835
fi
 
1836
 
 
1837
  test -n "$ac_ct_CC" && break
 
1838
done
 
1839
 
 
1840
  CC=$ac_ct_CC
 
1841
fi
 
1842
 
 
1843
fi
 
1844
 
 
1845
 
 
1846
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
1847
See \`config.log' for more details." >&5
 
1848
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
1849
See \`config.log' for more details." >&2;}
 
1850
   { (exit 1); exit 1; }; }
 
1851
 
 
1852
# Provide some information about the compiler.
 
1853
echo "$as_me:$LINENO:" \
 
1854
     "checking for C compiler version" >&5
 
1855
ac_compiler=`set X $ac_compile; echo $2`
 
1856
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
1857
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
1858
  ac_status=$?
 
1859
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1860
  (exit $ac_status); }
 
1861
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
1862
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
1863
  ac_status=$?
 
1864
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1865
  (exit $ac_status); }
 
1866
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
1867
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
1868
  ac_status=$?
 
1869
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1870
  (exit $ac_status); }
 
1871
 
 
1872
cat >conftest.$ac_ext <<_ACEOF
 
1873
/* confdefs.h.  */
 
1874
_ACEOF
 
1875
cat confdefs.h >>conftest.$ac_ext
 
1876
cat >>conftest.$ac_ext <<_ACEOF
 
1877
/* end confdefs.h.  */
 
1878
 
 
1879
int
 
1880
main ()
 
1881
{
 
1882
 
 
1883
  ;
 
1884
  return 0;
 
1885
}
 
1886
_ACEOF
 
1887
ac_clean_files_save=$ac_clean_files
 
1888
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
1889
# Try to create an executable without -o first, disregard a.out.
 
1890
# It will help us diagnose broken compilers, and finding out an intuition
 
1891
# of exeext.
 
1892
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
1893
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
 
1894
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
1895
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
 
1896
  (eval $ac_link_default) 2>&5
 
1897
  ac_status=$?
 
1898
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1899
  (exit $ac_status); }; then
 
1900
  # Find the output, starting from the most likely.  This scheme is
 
1901
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
 
1902
# resort.
 
1903
 
 
1904
# Be careful to initialize this variable, since it used to be cached.
 
1905
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
 
1906
ac_cv_exeext=
 
1907
# b.out is created by i960 compilers.
 
1908
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
1909
do
 
1910
  test -f "$ac_file" || continue
 
1911
  case $ac_file in
 
1912
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
 
1913
        ;;
 
1914
    conftest.$ac_ext )
 
1915
        # This is the source file.
 
1916
        ;;
 
1917
    [ab].out )
 
1918
        # We found the default executable, but exeext='' is most
 
1919
        # certainly right.
 
1920
        break;;
 
1921
    *.* )
 
1922
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
1923
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
1924
        # but it would be cool to find out if it's true.  Does anybody
 
1925
        # maintain Libtool? --akim.
 
1926
        export ac_cv_exeext
 
1927
        break;;
 
1928
    * )
 
1929
        break;;
 
1930
  esac
 
1931
done
 
1932
else
 
1933
  echo "$as_me: failed program was:" >&5
 
1934
sed 's/^/| /' conftest.$ac_ext >&5
 
1935
 
 
1936
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
1937
See \`config.log' for more details." >&5
 
1938
echo "$as_me: error: C compiler cannot create executables
 
1939
See \`config.log' for more details." >&2;}
 
1940
   { (exit 77); exit 77; }; }
 
1941
fi
 
1942
 
 
1943
ac_exeext=$ac_cv_exeext
 
1944
echo "$as_me:$LINENO: result: $ac_file" >&5
 
1945
echo "${ECHO_T}$ac_file" >&6
 
1946
 
 
1947
# Check the compiler produces executables we can run.  If not, either
 
1948
# the compiler is broken, or we cross compile.
 
1949
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
1950
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 
1951
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
1952
# If not cross compiling, check that we can run a simple program.
 
1953
if test "$cross_compiling" != yes; then
 
1954
  if { ac_try='./$ac_file'
 
1955
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
1956
  (eval $ac_try) 2>&5
 
1957
  ac_status=$?
 
1958
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1959
  (exit $ac_status); }; }; then
 
1960
    cross_compiling=no
 
1961
  else
 
1962
    if test "$cross_compiling" = maybe; then
 
1963
        cross_compiling=yes
 
1964
    else
 
1965
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
1966
If you meant to cross compile, use \`--host'.
 
1967
See \`config.log' for more details." >&5
 
1968
echo "$as_me: error: cannot run C compiled programs.
 
1969
If you meant to cross compile, use \`--host'.
 
1970
See \`config.log' for more details." >&2;}
 
1971
   { (exit 1); exit 1; }; }
 
1972
    fi
 
1973
  fi
 
1974
fi
 
1975
echo "$as_me:$LINENO: result: yes" >&5
 
1976
echo "${ECHO_T}yes" >&6
 
1977
 
 
1978
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
1979
ac_clean_files=$ac_clean_files_save
 
1980
# Check the compiler produces executables we can run.  If not, either
 
1981
# the compiler is broken, or we cross compile.
 
1982
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
1983
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
 
1984
echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
1985
echo "${ECHO_T}$cross_compiling" >&6
 
1986
 
 
1987
echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
1988
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
 
1989
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
1990
  (eval $ac_link) 2>&5
 
1991
  ac_status=$?
 
1992
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
1993
  (exit $ac_status); }; then
 
1994
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
1995
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
1996
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
1997
# `rm'.
 
1998
for ac_file in conftest.exe conftest conftest.*; do
 
1999
  test -f "$ac_file" || continue
 
2000
  case $ac_file in
 
2001
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
2002
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2003
          export ac_cv_exeext
 
2004
          break;;
 
2005
    * ) break;;
 
2006
  esac
 
2007
done
 
2008
else
 
2009
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
2010
See \`config.log' for more details." >&5
 
2011
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
2012
See \`config.log' for more details." >&2;}
 
2013
   { (exit 1); exit 1; }; }
 
2014
fi
 
2015
 
 
2016
rm -f conftest$ac_cv_exeext
 
2017
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
2018
echo "${ECHO_T}$ac_cv_exeext" >&6
 
2019
 
 
2020
rm -f conftest.$ac_ext
 
2021
EXEEXT=$ac_cv_exeext
 
2022
ac_exeext=$EXEEXT
 
2023
echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
2024
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
 
2025
if test "${ac_cv_objext+set}" = set; then
 
2026
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2027
else
 
2028
  cat >conftest.$ac_ext <<_ACEOF
 
2029
/* confdefs.h.  */
 
2030
_ACEOF
 
2031
cat confdefs.h >>conftest.$ac_ext
 
2032
cat >>conftest.$ac_ext <<_ACEOF
 
2033
/* end confdefs.h.  */
 
2034
 
 
2035
int
 
2036
main ()
 
2037
{
 
2038
 
 
2039
  ;
 
2040
  return 0;
 
2041
}
 
2042
_ACEOF
 
2043
rm -f conftest.o conftest.obj
 
2044
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2045
  (eval $ac_compile) 2>&5
 
2046
  ac_status=$?
 
2047
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2048
  (exit $ac_status); }; then
 
2049
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
2050
  case $ac_file in
 
2051
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
2052
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
2053
       break;;
 
2054
  esac
 
2055
done
 
2056
else
 
2057
  echo "$as_me: failed program was:" >&5
 
2058
sed 's/^/| /' conftest.$ac_ext >&5
 
2059
 
 
2060
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
2061
See \`config.log' for more details." >&5
 
2062
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
2063
See \`config.log' for more details." >&2;}
 
2064
   { (exit 1); exit 1; }; }
 
2065
fi
 
2066
 
 
2067
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
2068
fi
 
2069
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
2070
echo "${ECHO_T}$ac_cv_objext" >&6
 
2071
OBJEXT=$ac_cv_objext
 
2072
ac_objext=$OBJEXT
 
2073
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
2074
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
2075
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
2076
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2077
else
 
2078
  cat >conftest.$ac_ext <<_ACEOF
 
2079
/* confdefs.h.  */
 
2080
_ACEOF
 
2081
cat confdefs.h >>conftest.$ac_ext
 
2082
cat >>conftest.$ac_ext <<_ACEOF
 
2083
/* end confdefs.h.  */
 
2084
 
 
2085
int
 
2086
main ()
 
2087
{
 
2088
#ifndef __GNUC__
 
2089
       choke me
 
2090
#endif
 
2091
 
 
2092
  ;
 
2093
  return 0;
 
2094
}
 
2095
_ACEOF
 
2096
rm -f conftest.$ac_objext
 
2097
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2098
  (eval $ac_compile) 2>conftest.er1
 
2099
  ac_status=$?
 
2100
  grep -v '^ *+' conftest.er1 >conftest.err
 
2101
  rm -f conftest.er1
 
2102
  cat conftest.err >&5
 
2103
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2104
  (exit $ac_status); } &&
 
2105
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2106
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2107
  (eval $ac_try) 2>&5
 
2108
  ac_status=$?
 
2109
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2110
  (exit $ac_status); }; } &&
 
2111
         { ac_try='test -s conftest.$ac_objext'
 
2112
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2113
  (eval $ac_try) 2>&5
 
2114
  ac_status=$?
 
2115
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2116
  (exit $ac_status); }; }; then
 
2117
  ac_compiler_gnu=yes
 
2118
else
 
2119
  echo "$as_me: failed program was:" >&5
 
2120
sed 's/^/| /' conftest.$ac_ext >&5
 
2121
 
 
2122
ac_compiler_gnu=no
 
2123
fi
 
2124
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2125
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
2126
 
 
2127
fi
 
2128
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
2129
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
2130
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
2131
ac_test_CFLAGS=${CFLAGS+set}
 
2132
ac_save_CFLAGS=$CFLAGS
 
2133
CFLAGS="-g"
 
2134
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
2135
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
2136
if test "${ac_cv_prog_cc_g+set}" = set; then
 
2137
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2138
else
 
2139
  cat >conftest.$ac_ext <<_ACEOF
 
2140
/* confdefs.h.  */
 
2141
_ACEOF
 
2142
cat confdefs.h >>conftest.$ac_ext
 
2143
cat >>conftest.$ac_ext <<_ACEOF
 
2144
/* end confdefs.h.  */
 
2145
 
 
2146
int
 
2147
main ()
 
2148
{
 
2149
 
 
2150
  ;
 
2151
  return 0;
 
2152
}
 
2153
_ACEOF
 
2154
rm -f conftest.$ac_objext
 
2155
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2156
  (eval $ac_compile) 2>conftest.er1
 
2157
  ac_status=$?
 
2158
  grep -v '^ *+' conftest.er1 >conftest.err
 
2159
  rm -f conftest.er1
 
2160
  cat conftest.err >&5
 
2161
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2162
  (exit $ac_status); } &&
 
2163
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2164
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2165
  (eval $ac_try) 2>&5
 
2166
  ac_status=$?
 
2167
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2168
  (exit $ac_status); }; } &&
 
2169
         { ac_try='test -s conftest.$ac_objext'
 
2170
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2171
  (eval $ac_try) 2>&5
 
2172
  ac_status=$?
 
2173
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2174
  (exit $ac_status); }; }; then
 
2175
  ac_cv_prog_cc_g=yes
 
2176
else
 
2177
  echo "$as_me: failed program was:" >&5
 
2178
sed 's/^/| /' conftest.$ac_ext >&5
 
2179
 
 
2180
ac_cv_prog_cc_g=no
 
2181
fi
 
2182
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2183
fi
 
2184
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
2185
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
2186
if test "$ac_test_CFLAGS" = set; then
 
2187
  CFLAGS=$ac_save_CFLAGS
 
2188
elif test $ac_cv_prog_cc_g = yes; then
 
2189
  if test "$GCC" = yes; then
 
2190
    CFLAGS="-g -O2"
 
2191
  else
 
2192
    CFLAGS="-g"
 
2193
  fi
 
2194
else
 
2195
  if test "$GCC" = yes; then
 
2196
    CFLAGS="-O2"
 
2197
  else
 
2198
    CFLAGS=
 
2199
  fi
 
2200
fi
 
2201
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
2202
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
2203
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
2204
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2205
else
 
2206
  ac_cv_prog_cc_stdc=no
 
2207
ac_save_CC=$CC
 
2208
cat >conftest.$ac_ext <<_ACEOF
 
2209
/* confdefs.h.  */
 
2210
_ACEOF
 
2211
cat confdefs.h >>conftest.$ac_ext
 
2212
cat >>conftest.$ac_ext <<_ACEOF
 
2213
/* end confdefs.h.  */
 
2214
#include <stdarg.h>
 
2215
#include <stdio.h>
 
2216
#include <sys/types.h>
 
2217
#include <sys/stat.h>
 
2218
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
2219
struct buf { int x; };
 
2220
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
2221
static char *e (p, i)
 
2222
     char **p;
 
2223
     int i;
 
2224
{
 
2225
  return p[i];
 
2226
}
 
2227
static char *f (char * (*g) (char **, int), char **p, ...)
 
2228
{
 
2229
  char *s;
 
2230
  va_list v;
 
2231
  va_start (v,p);
 
2232
  s = g (p, va_arg (v,int));
 
2233
  va_end (v);
 
2234
  return s;
 
2235
}
 
2236
 
 
2237
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
2238
   function prototypes and stuff, but not '\xHH' hex character constants.
 
2239
   These don't provoke an error unfortunately, instead are silently treated
 
2240
   as 'x'.  The following induces an error, until -std1 is added to get
 
2241
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
2242
   array size at least.  It's necessary to write '\x00'==0 to get something
 
2243
   that's true only with -std1.  */
 
2244
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
2245
 
 
2246
int test (int i, double x);
 
2247
struct s1 {int (*f) (int a);};
 
2248
struct s2 {int (*f) (double a);};
 
2249
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
2250
int argc;
 
2251
char **argv;
 
2252
int
 
2253
main ()
 
2254
{
 
2255
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
2256
  ;
 
2257
  return 0;
 
2258
}
 
2259
_ACEOF
 
2260
# Don't try gcc -ansi; that turns off useful extensions and
 
2261
# breaks some systems' header files.
 
2262
# AIX                   -qlanglvl=ansi
 
2263
# Ultrix and OSF/1      -std1
 
2264
# HP-UX 10.20 and later -Ae
 
2265
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
2266
# SVR4                  -Xc -D__EXTENSIONS__
 
2267
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
2268
do
 
2269
  CC="$ac_save_CC $ac_arg"
 
2270
  rm -f conftest.$ac_objext
 
2271
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2272
  (eval $ac_compile) 2>conftest.er1
 
2273
  ac_status=$?
 
2274
  grep -v '^ *+' conftest.er1 >conftest.err
 
2275
  rm -f conftest.er1
 
2276
  cat conftest.err >&5
 
2277
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2278
  (exit $ac_status); } &&
 
2279
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2280
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2281
  (eval $ac_try) 2>&5
 
2282
  ac_status=$?
 
2283
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2284
  (exit $ac_status); }; } &&
 
2285
         { ac_try='test -s conftest.$ac_objext'
 
2286
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2287
  (eval $ac_try) 2>&5
 
2288
  ac_status=$?
 
2289
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2290
  (exit $ac_status); }; }; then
 
2291
  ac_cv_prog_cc_stdc=$ac_arg
 
2292
break
 
2293
else
 
2294
  echo "$as_me: failed program was:" >&5
 
2295
sed 's/^/| /' conftest.$ac_ext >&5
 
2296
 
 
2297
fi
 
2298
rm -f conftest.err conftest.$ac_objext 
 
2299
done
 
2300
rm -f conftest.$ac_ext conftest.$ac_objext
 
2301
CC=$ac_save_CC
 
2302
 
 
2303
fi
 
2304
 
 
2305
case "x$ac_cv_prog_cc_stdc" in
 
2306
  x|xno)
 
2307
    echo "$as_me:$LINENO: result: none needed" >&5
 
2308
echo "${ECHO_T}none needed" >&6 ;;
 
2309
  *)
 
2310
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
2311
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
2312
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
2313
esac
 
2314
 
 
2315
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
2316
# in C++ we need to declare it.  In case someone uses the same compiler
 
2317
# for both compiling C and C++ we need to have the C++ compiler decide
 
2318
# the declaration of exit, since it's the most demanding environment.
 
2319
cat >conftest.$ac_ext <<_ACEOF
 
2320
@%:@ifndef __cplusplus
 
2321
  choke me
 
2322
@%:@endif
 
2323
_ACEOF
 
2324
rm -f conftest.$ac_objext
 
2325
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2326
  (eval $ac_compile) 2>conftest.er1
 
2327
  ac_status=$?
 
2328
  grep -v '^ *+' conftest.er1 >conftest.err
 
2329
  rm -f conftest.er1
 
2330
  cat conftest.err >&5
 
2331
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2332
  (exit $ac_status); } &&
 
2333
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2334
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2335
  (eval $ac_try) 2>&5
 
2336
  ac_status=$?
 
2337
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2338
  (exit $ac_status); }; } &&
 
2339
         { ac_try='test -s conftest.$ac_objext'
 
2340
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2341
  (eval $ac_try) 2>&5
 
2342
  ac_status=$?
 
2343
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2344
  (exit $ac_status); }; }; then
 
2345
  for ac_declaration in \
 
2346
   '' \
 
2347
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
2348
   'extern "C" void std::exit (int); using std::exit;' \
 
2349
   'extern "C" void exit (int) throw ();' \
 
2350
   'extern "C" void exit (int);' \
 
2351
   'void exit (int);'
 
2352
do
 
2353
  cat >conftest.$ac_ext <<_ACEOF
 
2354
/* confdefs.h.  */
 
2355
_ACEOF
 
2356
cat confdefs.h >>conftest.$ac_ext
 
2357
cat >>conftest.$ac_ext <<_ACEOF
 
2358
/* end confdefs.h.  */
 
2359
$ac_declaration
 
2360
@%:@include <stdlib.h>
 
2361
int
 
2362
main ()
 
2363
{
 
2364
exit (42);
 
2365
  ;
 
2366
  return 0;
 
2367
}
 
2368
_ACEOF
 
2369
rm -f conftest.$ac_objext
 
2370
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2371
  (eval $ac_compile) 2>conftest.er1
 
2372
  ac_status=$?
 
2373
  grep -v '^ *+' conftest.er1 >conftest.err
 
2374
  rm -f conftest.er1
 
2375
  cat conftest.err >&5
 
2376
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2377
  (exit $ac_status); } &&
 
2378
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2379
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2380
  (eval $ac_try) 2>&5
 
2381
  ac_status=$?
 
2382
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2383
  (exit $ac_status); }; } &&
 
2384
         { ac_try='test -s conftest.$ac_objext'
 
2385
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2386
  (eval $ac_try) 2>&5
 
2387
  ac_status=$?
 
2388
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2389
  (exit $ac_status); }; }; then
 
2390
  :
 
2391
else
 
2392
  echo "$as_me: failed program was:" >&5
 
2393
sed 's/^/| /' conftest.$ac_ext >&5
 
2394
 
 
2395
continue
 
2396
fi
 
2397
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2398
  cat >conftest.$ac_ext <<_ACEOF
 
2399
/* confdefs.h.  */
 
2400
_ACEOF
 
2401
cat confdefs.h >>conftest.$ac_ext
 
2402
cat >>conftest.$ac_ext <<_ACEOF
 
2403
/* end confdefs.h.  */
 
2404
$ac_declaration
 
2405
int
 
2406
main ()
 
2407
{
 
2408
exit (42);
 
2409
  ;
 
2410
  return 0;
 
2411
}
 
2412
_ACEOF
 
2413
rm -f conftest.$ac_objext
 
2414
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2415
  (eval $ac_compile) 2>conftest.er1
 
2416
  ac_status=$?
 
2417
  grep -v '^ *+' conftest.er1 >conftest.err
 
2418
  rm -f conftest.er1
 
2419
  cat conftest.err >&5
 
2420
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2421
  (exit $ac_status); } &&
 
2422
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2423
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2424
  (eval $ac_try) 2>&5
 
2425
  ac_status=$?
 
2426
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2427
  (exit $ac_status); }; } &&
 
2428
         { ac_try='test -s conftest.$ac_objext'
 
2429
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2430
  (eval $ac_try) 2>&5
 
2431
  ac_status=$?
 
2432
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2433
  (exit $ac_status); }; }; then
 
2434
  break
 
2435
else
 
2436
  echo "$as_me: failed program was:" >&5
 
2437
sed 's/^/| /' conftest.$ac_ext >&5
 
2438
 
 
2439
fi
 
2440
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2441
done
 
2442
rm -f conftest*
 
2443
if test -n "$ac_declaration"; then
 
2444
  echo '#ifdef __cplusplus' >>confdefs.h
 
2445
  echo $ac_declaration      >>confdefs.h
 
2446
  echo '#endif'             >>confdefs.h
 
2447
fi
 
2448
 
 
2449
else
 
2450
  echo "$as_me: failed program was:" >&5
 
2451
sed 's/^/| /' conftest.$ac_ext >&5
 
2452
 
 
2453
fi
 
2454
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2455
ac_ext=c
 
2456
ac_cpp='$CPP $CPPFLAGS'
 
2457
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2458
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2459
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2460
 
 
2461
ac_ext=cc
 
2462
ac_cpp='$CXXCPP $CPPFLAGS'
 
2463
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2464
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2465
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
2466
if test -n "$ac_tool_prefix"; then
 
2467
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
2468
  do
 
2469
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2470
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2471
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2472
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2473
if test "${ac_cv_prog_CXX+set}" = set; then
 
2474
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2475
else
 
2476
  if test -n "$CXX"; then
 
2477
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
2478
else
 
2479
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2480
for as_dir in $PATH
 
2481
do
 
2482
  IFS=$as_save_IFS
 
2483
  test -z "$as_dir" && as_dir=.
 
2484
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2485
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2486
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
2487
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2488
    break 2
 
2489
  fi
 
2490
done
 
2491
done
 
2492
 
 
2493
fi
 
2494
fi
 
2495
CXX=$ac_cv_prog_CXX
 
2496
if test -n "$CXX"; then
 
2497
  echo "$as_me:$LINENO: result: $CXX" >&5
 
2498
echo "${ECHO_T}$CXX" >&6
 
2499
else
 
2500
  echo "$as_me:$LINENO: result: no" >&5
 
2501
echo "${ECHO_T}no" >&6
 
2502
fi
 
2503
 
 
2504
    test -n "$CXX" && break
 
2505
  done
 
2506
fi
 
2507
if test -z "$CXX"; then
 
2508
  ac_ct_CXX=$CXX
 
2509
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
2510
do
 
2511
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2512
set dummy $ac_prog; ac_word=$2
 
2513
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2514
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2515
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
2516
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2517
else
 
2518
  if test -n "$ac_ct_CXX"; then
 
2519
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
2520
else
 
2521
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2522
for as_dir in $PATH
 
2523
do
 
2524
  IFS=$as_save_IFS
 
2525
  test -z "$as_dir" && as_dir=.
 
2526
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2527
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2528
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
2529
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2530
    break 2
 
2531
  fi
 
2532
done
 
2533
done
 
2534
 
 
2535
fi
 
2536
fi
 
2537
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
2538
if test -n "$ac_ct_CXX"; then
 
2539
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
2540
echo "${ECHO_T}$ac_ct_CXX" >&6
 
2541
else
 
2542
  echo "$as_me:$LINENO: result: no" >&5
 
2543
echo "${ECHO_T}no" >&6
 
2544
fi
 
2545
 
 
2546
  test -n "$ac_ct_CXX" && break
 
2547
done
 
2548
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
 
2549
 
 
2550
  CXX=$ac_ct_CXX
 
2551
fi
 
2552
 
 
2553
 
 
2554
# Provide some information about the compiler.
 
2555
echo "$as_me:$LINENO:" \
 
2556
     "checking for C++ compiler version" >&5
 
2557
ac_compiler=`set X $ac_compile; echo $2`
 
2558
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
2559
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
2560
  ac_status=$?
 
2561
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2562
  (exit $ac_status); }
 
2563
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
2564
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
2565
  ac_status=$?
 
2566
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2567
  (exit $ac_status); }
 
2568
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
2569
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
2570
  ac_status=$?
 
2571
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2572
  (exit $ac_status); }
 
2573
 
 
2574
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
2575
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
 
2576
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
2577
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2578
else
 
2579
  cat >conftest.$ac_ext <<_ACEOF
 
2580
/* confdefs.h.  */
 
2581
_ACEOF
 
2582
cat confdefs.h >>conftest.$ac_ext
 
2583
cat >>conftest.$ac_ext <<_ACEOF
 
2584
/* end confdefs.h.  */
 
2585
 
 
2586
int
 
2587
main ()
 
2588
{
 
2589
#ifndef __GNUC__
 
2590
       choke me
 
2591
#endif
 
2592
 
 
2593
  ;
 
2594
  return 0;
 
2595
}
 
2596
_ACEOF
 
2597
rm -f conftest.$ac_objext
 
2598
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2599
  (eval $ac_compile) 2>conftest.er1
 
2600
  ac_status=$?
 
2601
  grep -v '^ *+' conftest.er1 >conftest.err
 
2602
  rm -f conftest.er1
 
2603
  cat conftest.err >&5
 
2604
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2605
  (exit $ac_status); } &&
 
2606
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
2607
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2608
  (eval $ac_try) 2>&5
 
2609
  ac_status=$?
 
2610
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2611
  (exit $ac_status); }; } &&
 
2612
         { ac_try='test -s conftest.$ac_objext'
 
2613
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2614
  (eval $ac_try) 2>&5
 
2615
  ac_status=$?
 
2616
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2617
  (exit $ac_status); }; }; then
 
2618
  ac_compiler_gnu=yes
 
2619
else
 
2620
  echo "$as_me: failed program was:" >&5
 
2621
sed 's/^/| /' conftest.$ac_ext >&5
 
2622
 
 
2623
ac_compiler_gnu=no
 
2624
fi
 
2625
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2626
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
2627
 
 
2628
fi
 
2629
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
2630
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
 
2631
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
2632
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
2633
ac_save_CXXFLAGS=$CXXFLAGS
 
2634
CXXFLAGS="-g"
 
2635
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
2636
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
 
2637
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
2638
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2639
else
 
2640
  cat >conftest.$ac_ext <<_ACEOF
 
2641
/* confdefs.h.  */
 
2642
_ACEOF
 
2643
cat confdefs.h >>conftest.$ac_ext
 
2644
cat >>conftest.$ac_ext <<_ACEOF
 
2645
/* end confdefs.h.  */
 
2646
 
 
2647
int
 
2648
main ()
 
2649
{
 
2650
 
 
2651
  ;
 
2652
  return 0;
 
2653
}
 
2654
_ACEOF
 
2655
rm -f conftest.$ac_objext
 
2656
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2657
  (eval $ac_compile) 2>conftest.er1
 
2658
  ac_status=$?
 
2659
  grep -v '^ *+' conftest.er1 >conftest.err
 
2660
  rm -f conftest.er1
 
2661
  cat conftest.err >&5
 
2662
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2663
  (exit $ac_status); } &&
 
2664
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
2665
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2666
  (eval $ac_try) 2>&5
 
2667
  ac_status=$?
 
2668
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2669
  (exit $ac_status); }; } &&
 
2670
         { ac_try='test -s conftest.$ac_objext'
 
2671
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2672
  (eval $ac_try) 2>&5
 
2673
  ac_status=$?
 
2674
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2675
  (exit $ac_status); }; }; then
 
2676
  ac_cv_prog_cxx_g=yes
 
2677
else
 
2678
  echo "$as_me: failed program was:" >&5
 
2679
sed 's/^/| /' conftest.$ac_ext >&5
 
2680
 
 
2681
ac_cv_prog_cxx_g=no
 
2682
fi
 
2683
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2684
fi
 
2685
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
2686
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
 
2687
if test "$ac_test_CXXFLAGS" = set; then
 
2688
  CXXFLAGS=$ac_save_CXXFLAGS
 
2689
elif test $ac_cv_prog_cxx_g = yes; then
 
2690
  if test "$GXX" = yes; then
 
2691
    CXXFLAGS="-g -O2"
 
2692
  else
 
2693
    CXXFLAGS="-g"
 
2694
  fi
 
2695
else
 
2696
  if test "$GXX" = yes; then
 
2697
    CXXFLAGS="-O2"
 
2698
  else
 
2699
    CXXFLAGS=
 
2700
  fi
 
2701
fi
 
2702
for ac_declaration in \
 
2703
   '' \
 
2704
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
2705
   'extern "C" void std::exit (int); using std::exit;' \
 
2706
   'extern "C" void exit (int) throw ();' \
 
2707
   'extern "C" void exit (int);' \
 
2708
   'void exit (int);'
 
2709
do
 
2710
  cat >conftest.$ac_ext <<_ACEOF
 
2711
/* confdefs.h.  */
 
2712
_ACEOF
 
2713
cat confdefs.h >>conftest.$ac_ext
 
2714
cat >>conftest.$ac_ext <<_ACEOF
 
2715
/* end confdefs.h.  */
 
2716
$ac_declaration
 
2717
@%:@include <stdlib.h>
 
2718
int
 
2719
main ()
 
2720
{
 
2721
exit (42);
 
2722
  ;
 
2723
  return 0;
 
2724
}
 
2725
_ACEOF
 
2726
rm -f conftest.$ac_objext
 
2727
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2728
  (eval $ac_compile) 2>conftest.er1
 
2729
  ac_status=$?
 
2730
  grep -v '^ *+' conftest.er1 >conftest.err
 
2731
  rm -f conftest.er1
 
2732
  cat conftest.err >&5
 
2733
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2734
  (exit $ac_status); } &&
 
2735
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
2736
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2737
  (eval $ac_try) 2>&5
 
2738
  ac_status=$?
 
2739
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2740
  (exit $ac_status); }; } &&
 
2741
         { ac_try='test -s conftest.$ac_objext'
 
2742
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2743
  (eval $ac_try) 2>&5
 
2744
  ac_status=$?
 
2745
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2746
  (exit $ac_status); }; }; then
 
2747
  :
 
2748
else
 
2749
  echo "$as_me: failed program was:" >&5
 
2750
sed 's/^/| /' conftest.$ac_ext >&5
 
2751
 
 
2752
continue
 
2753
fi
 
2754
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2755
  cat >conftest.$ac_ext <<_ACEOF
 
2756
/* confdefs.h.  */
 
2757
_ACEOF
 
2758
cat confdefs.h >>conftest.$ac_ext
 
2759
cat >>conftest.$ac_ext <<_ACEOF
 
2760
/* end confdefs.h.  */
 
2761
$ac_declaration
 
2762
int
 
2763
main ()
 
2764
{
 
2765
exit (42);
 
2766
  ;
 
2767
  return 0;
 
2768
}
 
2769
_ACEOF
 
2770
rm -f conftest.$ac_objext
 
2771
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2772
  (eval $ac_compile) 2>conftest.er1
 
2773
  ac_status=$?
 
2774
  grep -v '^ *+' conftest.er1 >conftest.err
 
2775
  rm -f conftest.er1
 
2776
  cat conftest.err >&5
 
2777
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2778
  (exit $ac_status); } &&
 
2779
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
2780
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2781
  (eval $ac_try) 2>&5
 
2782
  ac_status=$?
 
2783
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2784
  (exit $ac_status); }; } &&
 
2785
         { ac_try='test -s conftest.$ac_objext'
 
2786
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2787
  (eval $ac_try) 2>&5
 
2788
  ac_status=$?
 
2789
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2790
  (exit $ac_status); }; }; then
 
2791
  break
 
2792
else
 
2793
  echo "$as_me: failed program was:" >&5
 
2794
sed 's/^/| /' conftest.$ac_ext >&5
 
2795
 
 
2796
fi
 
2797
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2798
done
 
2799
rm -f conftest*
 
2800
if test -n "$ac_declaration"; then
 
2801
  echo '#ifdef __cplusplus' >>confdefs.h
 
2802
  echo $ac_declaration      >>confdefs.h
 
2803
  echo '#endif'             >>confdefs.h
 
2804
fi
 
2805
 
 
2806
ac_ext=c
 
2807
ac_cpp='$CPP $CPPFLAGS'
 
2808
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2809
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2810
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2811
 
 
2812
#AC_PROG_RANLIB
 
2813
 
 
2814
LIBOFX_MAJOR_VERSION=0
 
2815
LIBOFX_MINOR_VERSION=8
 
2816
LIBOFX_MICRO_VERSION=0
 
2817
LIBOFX_VERSION=$LIBOFX_MAJOR_VERSION.$LIBOFX_MINOR_VERSION.$LIBOFX_MICRO_VERSION
 
2818
 
 
2819
 
 
2820
 
 
2821
 
 
2822
 
 
2823
am__api_version="1.9"
 
2824
# Find a good install program.  We prefer a C program (faster),
 
2825
# so one script is as good as another.  But avoid the broken or
 
2826
# incompatible versions:
 
2827
# SysV /etc/install, /usr/sbin/install
 
2828
# SunOS /usr/etc/install
 
2829
# IRIX /sbin/install
 
2830
# AIX /bin/install
 
2831
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
2832
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
2833
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
2834
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
2835
# OS/2's system install, which has a completely different semantic
 
2836
# ./install, which can be erroneously created by make from ./install.sh.
 
2837
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
2838
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
2839
if test -z "$INSTALL"; then
 
2840
if test "${ac_cv_path_install+set}" = set; then
 
2841
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2842
else
 
2843
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2844
for as_dir in $PATH
 
2845
do
 
2846
  IFS=$as_save_IFS
 
2847
  test -z "$as_dir" && as_dir=.
 
2848
  # Account for people who put trailing slashes in PATH elements.
 
2849
case $as_dir/ in
 
2850
  ./ | .// | /cC/* | \
 
2851
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
2852
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
2853
  /usr/ucb/* ) ;;
 
2854
  *)
 
2855
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
2856
    # Don't use installbsd from OSF since it installs stuff as root
 
2857
    # by default.
 
2858
    for ac_prog in ginstall scoinst install; do
 
2859
      for ac_exec_ext in '' $ac_executable_extensions; do
 
2860
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
2861
          if test $ac_prog = install &&
 
2862
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2863
            # AIX install.  It has an incompatible calling convention.
 
2864
            :
 
2865
          elif test $ac_prog = install &&
 
2866
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
2867
            # program-specific install script used by HP pwplus--don't use.
 
2868
            :
 
2869
          else
 
2870
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
2871
            break 3
 
2872
          fi
 
2873
        fi
 
2874
      done
 
2875
    done
 
2876
    ;;
 
2877
esac
 
2878
done
 
2879
 
 
2880
 
 
2881
fi
 
2882
  if test "${ac_cv_path_install+set}" = set; then
 
2883
    INSTALL=$ac_cv_path_install
 
2884
  else
 
2885
    # As a last resort, use the slow shell script.  We don't cache a
 
2886
    # path for INSTALL within a source directory, because that will
 
2887
    # break other packages using the cache if that directory is
 
2888
    # removed, or if the path is relative.
 
2889
    INSTALL=$ac_install_sh
 
2890
  fi
 
2891
fi
 
2892
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
2893
echo "${ECHO_T}$INSTALL" >&6
 
2894
 
 
2895
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
2896
# It thinks the first close brace ends the variable substitution.
 
2897
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
2898
 
 
2899
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
2900
 
 
2901
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
2902
 
 
2903
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
2904
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
 
2905
# Just in case
 
2906
sleep 1
 
2907
echo timestamp > conftest.file
 
2908
# Do `set' in a subshell so we don't clobber the current shell's
 
2909
# arguments.  Must try -L first in case configure is actually a
 
2910
# symlink; some systems play weird games with the mod time of symlinks
 
2911
# (eg FreeBSD returns the mod time of the symlink's containing
 
2912
# directory).
 
2913
if (
 
2914
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
2915
   if test "$*" = "X"; then
 
2916
      # -L didn't work.
 
2917
      set X `ls -t $srcdir/configure conftest.file`
 
2918
   fi
 
2919
   rm -f conftest.file
 
2920
   if test "$*" != "X $srcdir/configure conftest.file" \
 
2921
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
2922
 
 
2923
      # If neither matched, then we have a broken ls.  This can happen
 
2924
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
2925
      # broken ls alias from the environment.  This has actually
 
2926
      # happened.  Such a system could not be considered "sane".
 
2927
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
2928
alias in your environment" >&5
 
2929
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
2930
alias in your environment" >&2;}
 
2931
   { (exit 1); exit 1; }; }
 
2932
   fi
 
2933
 
 
2934
   test "$2" = conftest.file
 
2935
   )
 
2936
then
 
2937
   # Ok.
 
2938
   :
 
2939
else
 
2940
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
2941
Check your system clock" >&5
 
2942
echo "$as_me: error: newly created file is older than distributed files!
 
2943
Check your system clock" >&2;}
 
2944
   { (exit 1); exit 1; }; }
 
2945
fi
 
2946
echo "$as_me:$LINENO: result: yes" >&5
 
2947
echo "${ECHO_T}yes" >&6
 
2948
test "$program_prefix" != NONE &&
 
2949
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
 
2950
# Use a double $ so make ignores it.
 
2951
test "$program_suffix" != NONE &&
 
2952
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
 
2953
# Double any \ or $.  echo might interpret backslashes.
 
2954
# By default was `s,x,x', remove it if useless.
 
2955
cat <<\_ACEOF >conftest.sed
 
2956
s/[\\$]/&&/g;s/;s,x,x,$//
 
2957
_ACEOF
 
2958
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 
2959
rm conftest.sed
 
2960
 
 
2961
# expand $ac_aux_dir to an absolute path
 
2962
am_aux_dir=`cd $ac_aux_dir && pwd`
 
2963
 
 
2964
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
2965
# Use eval to expand $SHELL
 
2966
if eval "$MISSING --run true"; then
 
2967
  am_missing_run="$MISSING --run "
 
2968
else
 
2969
  am_missing_run=
 
2970
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
2971
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
2972
fi
 
2973
 
 
2974
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
 
2975
  # We used to keeping the `.' as first argument, in order to
 
2976
  # allow $(mkdir_p) to be used without argument.  As in
 
2977
  #   $(mkdir_p) $(somedir)
 
2978
  # where $(somedir) is conditionally defined.  However this is wrong
 
2979
  # for two reasons:
 
2980
  #  1. if the package is installed by a user who cannot write `.'
 
2981
  #     make install will fail,
 
2982
  #  2. the above comment should most certainly read
 
2983
  #     $(mkdir_p) $(DESTDIR)$(somedir)
 
2984
  #     so it does not work when $(somedir) is undefined and
 
2985
  #     $(DESTDIR) is not.
 
2986
  #  To support the latter case, we have to write
 
2987
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
 
2988
  #  so the `.' trick is pointless.
 
2989
  mkdir_p='mkdir -p --'
 
2990
else
 
2991
  # On NextStep and OpenStep, the `mkdir' command does not
 
2992
  # recognize any option.  It will interpret all options as
 
2993
  # directories to create, and then abort because `.' already
 
2994
  # exists.
 
2995
  for d in ./-p ./--version;
 
2996
  do
 
2997
    test -d $d && rmdir $d
 
2998
  done
 
2999
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
 
3000
  if test -f "$ac_aux_dir/mkinstalldirs"; then
 
3001
    mkdir_p='$(mkinstalldirs)'
 
3002
  else
 
3003
    mkdir_p='$(install_sh) -d'
 
3004
  fi
 
3005
fi
 
3006
 
 
3007
for ac_prog in gawk mawk nawk awk
 
3008
do
 
3009
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3010
set dummy $ac_prog; ac_word=$2
 
3011
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3012
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3013
if test "${ac_cv_prog_AWK+set}" = set; then
 
3014
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3015
else
 
3016
  if test -n "$AWK"; then
 
3017
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
3018
else
 
3019
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3020
for as_dir in $PATH
 
3021
do
 
3022
  IFS=$as_save_IFS
 
3023
  test -z "$as_dir" && as_dir=.
 
3024
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3025
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3026
    ac_cv_prog_AWK="$ac_prog"
 
3027
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3028
    break 2
 
3029
  fi
 
3030
done
 
3031
done
 
3032
 
 
3033
fi
 
3034
fi
 
3035
AWK=$ac_cv_prog_AWK
 
3036
if test -n "$AWK"; then
 
3037
  echo "$as_me:$LINENO: result: $AWK" >&5
 
3038
echo "${ECHO_T}$AWK" >&6
 
3039
else
 
3040
  echo "$as_me:$LINENO: result: no" >&5
 
3041
echo "${ECHO_T}no" >&6
 
3042
fi
 
3043
 
 
3044
  test -n "$AWK" && break
 
3045
done
 
3046
 
 
3047
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
3048
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
3049
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
 
3050
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
3051
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3052
else
 
3053
  cat >conftest.make <<\_ACEOF
 
3054
all:
 
3055
        @echo 'ac_maketemp="$(MAKE)"'
 
3056
_ACEOF
 
3057
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
3058
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
3059
if test -n "$ac_maketemp"; then
 
3060
  eval ac_cv_prog_make_${ac_make}_set=yes
 
3061
else
 
3062
  eval ac_cv_prog_make_${ac_make}_set=no
 
3063
fi
 
3064
rm -f conftest.make
 
3065
fi
 
3066
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
3067
  echo "$as_me:$LINENO: result: yes" >&5
 
3068
echo "${ECHO_T}yes" >&6
 
3069
  SET_MAKE=
 
3070
else
 
3071
  echo "$as_me:$LINENO: result: no" >&5
 
3072
echo "${ECHO_T}no" >&6
 
3073
  SET_MAKE="MAKE=${MAKE-make}"
 
3074
fi
 
3075
 
 
3076
rm -rf .tst 2>/dev/null
 
3077
mkdir .tst 2>/dev/null
 
3078
if test -d .tst; then
 
3079
  am__leading_dot=.
 
3080
else
 
3081
  am__leading_dot=_
 
3082
fi
 
3083
rmdir .tst 2>/dev/null
 
3084
 
 
3085
DEPDIR="${am__leading_dot}deps"
 
3086
 
 
3087
          ac_config_commands="$ac_config_commands depfiles"
 
3088
 
 
3089
 
 
3090
am_make=${MAKE-make}
 
3091
cat > confinc << 'END'
 
3092
am__doit:
 
3093
        @echo done
 
3094
.PHONY: am__doit
 
3095
END
 
3096
# If we don't find an include directive, just comment out the code.
 
3097
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
3098
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
 
3099
am__include="#"
 
3100
am__quote=
 
3101
_am_result=none
 
3102
# First try GNU make style include.
 
3103
echo "include confinc" > confmf
 
3104
# We grep out `Entering directory' and `Leaving directory'
 
3105
# messages which can occur if `w' ends up in MAKEFLAGS.
 
3106
# In particular we don't look at `^make:' because GNU make might
 
3107
# be invoked under some other name (usually "gmake"), in which
 
3108
# case it prints its new name instead of `make'.
 
3109
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
3110
   am__include=include
 
3111
   am__quote=
 
3112
   _am_result=GNU
 
3113
fi
 
3114
# Now try BSD make style include.
 
3115
if test "$am__include" = "#"; then
 
3116
   echo '.include "confinc"' > confmf
 
3117
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
3118
      am__include=.include
 
3119
      am__quote="\""
 
3120
      _am_result=BSD
 
3121
   fi
 
3122
fi
 
3123
 
 
3124
 
 
3125
echo "$as_me:$LINENO: result: $_am_result" >&5
 
3126
echo "${ECHO_T}$_am_result" >&6
 
3127
rm -f confinc confmf
 
3128
 
 
3129
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
 
3130
if test "${enable_dependency_tracking+set}" = set; then
 
3131
  enableval="$enable_dependency_tracking"
 
3132
  
 
3133
fi; 
 
3134
if test "x$enable_dependency_tracking" != xno; then
 
3135
  am_depcomp="$ac_aux_dir/depcomp"
 
3136
  AMDEPBACKSLASH='\'
 
3137
fi
 
3138
 
 
3139
 
 
3140
if test "x$enable_dependency_tracking" != xno; then
 
3141
  AMDEP_TRUE=
 
3142
  AMDEP_FALSE='#'
 
3143
else
 
3144
  AMDEP_TRUE='#'
 
3145
  AMDEP_FALSE=
 
3146
fi
 
3147
 
 
3148
 
 
3149
 
 
3150
# test to see if srcdir already configured
 
3151
if test "`cd $srcdir && pwd`" != "`pwd`" &&
 
3152
   test -f $srcdir/config.status; then
 
3153
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
3154
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
3155
   { (exit 1); exit 1; }; }
 
3156
fi
 
3157
 
 
3158
# test whether we have cygpath
 
3159
if test -z "$CYGPATH_W"; then
 
3160
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
3161
    CYGPATH_W='cygpath -w'
 
3162
  else
 
3163
    CYGPATH_W=echo
 
3164
  fi
 
3165
fi
 
3166
 
 
3167
 
 
3168
# Define the identity of the package.
 
3169
 PACKAGE=libofx
 
3170
 VERSION=$LIBOFX_VERSION
 
3171
 
 
3172
 
 
3173
cat >>confdefs.h <<_ACEOF
 
3174
@%:@define PACKAGE "$PACKAGE"
 
3175
_ACEOF
 
3176
 
 
3177
 
 
3178
cat >>confdefs.h <<_ACEOF
 
3179
@%:@define VERSION "$VERSION"
 
3180
_ACEOF
 
3181
 
 
3182
# Some tools Automake needs.
 
3183
 
 
3184
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
3185
 
 
3186
 
 
3187
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
3188
 
 
3189
 
 
3190
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
3191
 
 
3192
 
 
3193
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
3194
 
 
3195
 
 
3196
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
3197
 
 
3198
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
3199
 
 
3200
# Installed binaries are usually stripped using `strip' when the user
 
3201
# run `make install-strip'.  However `strip' might not be the right
 
3202
# tool to use in cross-compilation environments, therefore Automake
 
3203
# will honor the `STRIP' environment variable to overrule this program.
 
3204
if test "$cross_compiling" != no; then
 
3205
  if test -n "$ac_tool_prefix"; then
 
3206
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
3207
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
3208
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3209
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3210
if test "${ac_cv_prog_STRIP+set}" = set; then
 
3211
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3212
else
 
3213
  if test -n "$STRIP"; then
 
3214
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
3215
else
 
3216
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3217
for as_dir in $PATH
 
3218
do
 
3219
  IFS=$as_save_IFS
 
3220
  test -z "$as_dir" && as_dir=.
 
3221
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3222
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3223
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
3224
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3225
    break 2
 
3226
  fi
 
3227
done
 
3228
done
 
3229
 
 
3230
fi
 
3231
fi
 
3232
STRIP=$ac_cv_prog_STRIP
 
3233
if test -n "$STRIP"; then
 
3234
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
3235
echo "${ECHO_T}$STRIP" >&6
 
3236
else
 
3237
  echo "$as_me:$LINENO: result: no" >&5
 
3238
echo "${ECHO_T}no" >&6
 
3239
fi
 
3240
 
 
3241
fi
 
3242
if test -z "$ac_cv_prog_STRIP"; then
 
3243
  ac_ct_STRIP=$STRIP
 
3244
  # Extract the first word of "strip", so it can be a program name with args.
 
3245
set dummy strip; ac_word=$2
 
3246
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3247
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3248
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
3249
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3250
else
 
3251
  if test -n "$ac_ct_STRIP"; then
 
3252
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
3253
else
 
3254
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3255
for as_dir in $PATH
 
3256
do
 
3257
  IFS=$as_save_IFS
 
3258
  test -z "$as_dir" && as_dir=.
 
3259
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3260
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3261
    ac_cv_prog_ac_ct_STRIP="strip"
 
3262
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3263
    break 2
 
3264
  fi
 
3265
done
 
3266
done
 
3267
 
 
3268
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
3269
fi
 
3270
fi
 
3271
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
3272
if test -n "$ac_ct_STRIP"; then
 
3273
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
3274
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
3275
else
 
3276
  echo "$as_me:$LINENO: result: no" >&5
 
3277
echo "${ECHO_T}no" >&6
 
3278
fi
 
3279
 
 
3280
  STRIP=$ac_ct_STRIP
 
3281
else
 
3282
  STRIP="$ac_cv_prog_STRIP"
 
3283
fi
 
3284
 
 
3285
fi
 
3286
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
3287
 
 
3288
# We need awk for the "check" target.  The system "awk" is bad on
 
3289
# some platforms.
 
3290
# Always define AMTAR for backward compatibility.
 
3291
 
 
3292
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
3293
 
 
3294
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
3295
 
 
3296
 
 
3297
 
 
3298
 
 
3299
depcc="$CC"   am_compiler_list=
 
3300
 
 
3301
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
3302
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
3303
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
3304
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3305
else
 
3306
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3307
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3308
  # making bogus files that we don't know about and never remove.  For
 
3309
  # instance it was reported that on HP-UX the gcc test will end up
 
3310
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3311
  # in D'.
 
3312
  mkdir conftest.dir
 
3313
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3314
  # using a relative directory.
 
3315
  cp "$am_depcomp" conftest.dir
 
3316
  cd conftest.dir
 
3317
  # We will build objects and dependencies in a subdirectory because
 
3318
  # it helps to detect inapplicable dependency modes.  For instance
 
3319
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3320
  # side effect of compilation, but ICC will put the dependencies in
 
3321
  # the current directory while Tru64 will put them in the object
 
3322
  # directory.
 
3323
  mkdir sub
 
3324
 
 
3325
  am_cv_CC_dependencies_compiler_type=none
 
3326
  if test "$am_compiler_list" = ""; then
 
3327
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3328
  fi
 
3329
  for depmode in $am_compiler_list; do
 
3330
    # Setup a source with many dependencies, because some compilers
 
3331
    # like to wrap large dependency lists on column 80 (with \), and
 
3332
    # we should not choose a depcomp mode which is confused by this.
 
3333
    #
 
3334
    # We need to recreate these files for each test, as the compiler may
 
3335
    # overwrite some of them when testing with obscure command lines.
 
3336
    # This happens at least with the AIX C compiler.
 
3337
    : > sub/conftest.c
 
3338
    for i in 1 2 3 4 5 6; do
 
3339
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3340
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3341
      # Solaris 8's {/usr,}/bin/sh.
 
3342
      touch sub/conftst$i.h
 
3343
    done
 
3344
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3345
 
 
3346
    case $depmode in
 
3347
    nosideeffect)
 
3348
      # after this tag, mechanisms are not by side-effect, so they'll
 
3349
      # only be used when explicitly requested
 
3350
      if test "x$enable_dependency_tracking" = xyes; then
 
3351
        continue
 
3352
      else
 
3353
        break
 
3354
      fi
 
3355
      ;;
 
3356
    none) break ;;
 
3357
    esac
 
3358
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3359
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3360
    # handle `-M -o', and we need to detect this.
 
3361
    if depmode=$depmode \
 
3362
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
3363
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3364
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
3365
         >/dev/null 2>conftest.err &&
 
3366
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3367
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
3368
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3369
      # icc doesn't choke on unknown options, it will just issue warnings
 
3370
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3371
      # that says an option was ignored or not supported.
 
3372
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3373
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3374
      # The diagnosis changed in icc 8.0:
 
3375
      #   icc: Command line remark: option '-MP' not supported
 
3376
      if (grep 'ignoring option' conftest.err ||
 
3377
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3378
        am_cv_CC_dependencies_compiler_type=$depmode
 
3379
        break
 
3380
      fi
 
3381
    fi
 
3382
  done
 
3383
 
 
3384
  cd ..
 
3385
  rm -rf conftest.dir
 
3386
else
 
3387
  am_cv_CC_dependencies_compiler_type=none
 
3388
fi
 
3389
 
 
3390
fi
 
3391
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3392
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
 
3393
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
3394
 
 
3395
 
 
3396
 
 
3397
if 
 
3398
  test "x$enable_dependency_tracking" != xno \
 
3399
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
3400
  am__fastdepCC_TRUE=
 
3401
  am__fastdepCC_FALSE='#'
 
3402
else
 
3403
  am__fastdepCC_TRUE='#'
 
3404
  am__fastdepCC_FALSE=
 
3405
fi
 
3406
 
 
3407
 
 
3408
depcc="$CXX"  am_compiler_list=
 
3409
 
 
3410
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
3411
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
3412
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
3413
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3414
else
 
3415
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3416
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3417
  # making bogus files that we don't know about and never remove.  For
 
3418
  # instance it was reported that on HP-UX the gcc test will end up
 
3419
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3420
  # in D'.
 
3421
  mkdir conftest.dir
 
3422
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3423
  # using a relative directory.
 
3424
  cp "$am_depcomp" conftest.dir
 
3425
  cd conftest.dir
 
3426
  # We will build objects and dependencies in a subdirectory because
 
3427
  # it helps to detect inapplicable dependency modes.  For instance
 
3428
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3429
  # side effect of compilation, but ICC will put the dependencies in
 
3430
  # the current directory while Tru64 will put them in the object
 
3431
  # directory.
 
3432
  mkdir sub
 
3433
 
 
3434
  am_cv_CXX_dependencies_compiler_type=none
 
3435
  if test "$am_compiler_list" = ""; then
 
3436
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3437
  fi
 
3438
  for depmode in $am_compiler_list; do
 
3439
    # Setup a source with many dependencies, because some compilers
 
3440
    # like to wrap large dependency lists on column 80 (with \), and
 
3441
    # we should not choose a depcomp mode which is confused by this.
 
3442
    #
 
3443
    # We need to recreate these files for each test, as the compiler may
 
3444
    # overwrite some of them when testing with obscure command lines.
 
3445
    # This happens at least with the AIX C compiler.
 
3446
    : > sub/conftest.c
 
3447
    for i in 1 2 3 4 5 6; do
 
3448
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3449
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3450
      # Solaris 8's {/usr,}/bin/sh.
 
3451
      touch sub/conftst$i.h
 
3452
    done
 
3453
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3454
 
 
3455
    case $depmode in
 
3456
    nosideeffect)
 
3457
      # after this tag, mechanisms are not by side-effect, so they'll
 
3458
      # only be used when explicitly requested
 
3459
      if test "x$enable_dependency_tracking" = xyes; then
 
3460
        continue
 
3461
      else
 
3462
        break
 
3463
      fi
 
3464
      ;;
 
3465
    none) break ;;
 
3466
    esac
 
3467
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3468
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3469
    # handle `-M -o', and we need to detect this.
 
3470
    if depmode=$depmode \
 
3471
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
3472
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3473
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
3474
         >/dev/null 2>conftest.err &&
 
3475
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3476
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
3477
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3478
      # icc doesn't choke on unknown options, it will just issue warnings
 
3479
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3480
      # that says an option was ignored or not supported.
 
3481
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3482
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3483
      # The diagnosis changed in icc 8.0:
 
3484
      #   icc: Command line remark: option '-MP' not supported
 
3485
      if (grep 'ignoring option' conftest.err ||
 
3486
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3487
        am_cv_CXX_dependencies_compiler_type=$depmode
 
3488
        break
 
3489
      fi
 
3490
    fi
 
3491
  done
 
3492
 
 
3493
  cd ..
 
3494
  rm -rf conftest.dir
 
3495
else
 
3496
  am_cv_CXX_dependencies_compiler_type=none
 
3497
fi
 
3498
 
 
3499
fi
 
3500
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
3501
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
 
3502
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
3503
 
 
3504
 
 
3505
 
 
3506
if 
 
3507
  test "x$enable_dependency_tracking" != xno \
 
3508
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
3509
  am__fastdepCXX_TRUE=
 
3510
  am__fastdepCXX_FALSE='#'
 
3511
else
 
3512
  am__fastdepCXX_TRUE='#'
 
3513
  am__fastdepCXX_FALSE=
 
3514
fi
 
3515
 
 
3516
 
 
3517
 
 
3518
 
 
3519
LIBOFX_SO_CURRENT=2
 
3520
LIBOFX_SO_REVISION=0
 
3521
LIBOFX_SO_AGE=0
 
3522
LIBOFX_SO_EFFECTIVE="`echo \$(($LIBOFX_SO_CURRENT-$LIBOFX_SO_AGE))`"
 
3523
 
 
3524
 
 
3525
 
 
3526
 
 
3527
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
 
3528
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
 
3529
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
 
3530
if test "${enable_maintainer_mode+set}" = set; then
 
3531
  enableval="$enable_maintainer_mode"
 
3532
  USE_MAINTAINER_MODE=$enableval
 
3533
else
 
3534
  USE_MAINTAINER_MODE=no
 
3535
fi; 
 
3536
  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
 
3537
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
 
3538
   
 
3539
 
 
3540
if test $USE_MAINTAINER_MODE = yes; then
 
3541
  MAINTAINER_MODE_TRUE=
 
3542
  MAINTAINER_MODE_FALSE='#'
 
3543
else
 
3544
  MAINTAINER_MODE_TRUE='#'
 
3545
  MAINTAINER_MODE_FALSE=
 
3546
fi
 
3547
 
 
3548
  MAINT=$MAINTAINER_MODE_TRUE
 
3549
  
 
3550
 
 
3551
 
 
3552
# Find a good install program.  We prefer a C program (faster),
 
3553
# so one script is as good as another.  But avoid the broken or
 
3554
# incompatible versions:
 
3555
# SysV /etc/install, /usr/sbin/install
 
3556
# SunOS /usr/etc/install
 
3557
# IRIX /sbin/install
 
3558
# AIX /bin/install
 
3559
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
3560
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
3561
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
3562
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
3563
# OS/2's system install, which has a completely different semantic
 
3564
# ./install, which can be erroneously created by make from ./install.sh.
 
3565
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
3566
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
3567
if test -z "$INSTALL"; then
 
3568
if test "${ac_cv_path_install+set}" = set; then
 
3569
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3570
else
 
3571
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3572
for as_dir in $PATH
 
3573
do
 
3574
  IFS=$as_save_IFS
 
3575
  test -z "$as_dir" && as_dir=.
 
3576
  # Account for people who put trailing slashes in PATH elements.
 
3577
case $as_dir/ in
 
3578
  ./ | .// | /cC/* | \
 
3579
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
3580
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
3581
  /usr/ucb/* ) ;;
 
3582
  *)
 
3583
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
3584
    # Don't use installbsd from OSF since it installs stuff as root
 
3585
    # by default.
 
3586
    for ac_prog in ginstall scoinst install; do
 
3587
      for ac_exec_ext in '' $ac_executable_extensions; do
 
3588
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
3589
          if test $ac_prog = install &&
 
3590
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
3591
            # AIX install.  It has an incompatible calling convention.
 
3592
            :
 
3593
          elif test $ac_prog = install &&
 
3594
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
3595
            # program-specific install script used by HP pwplus--don't use.
 
3596
            :
 
3597
          else
 
3598
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
3599
            break 3
 
3600
          fi
 
3601
        fi
 
3602
      done
 
3603
    done
 
3604
    ;;
 
3605
esac
 
3606
done
 
3607
 
 
3608
 
 
3609
fi
 
3610
  if test "${ac_cv_path_install+set}" = set; then
 
3611
    INSTALL=$ac_cv_path_install
 
3612
  else
 
3613
    # As a last resort, use the slow shell script.  We don't cache a
 
3614
    # path for INSTALL within a source directory, because that will
 
3615
    # break other packages using the cache if that directory is
 
3616
    # removed, or if the path is relative.
 
3617
    INSTALL=$ac_install_sh
 
3618
  fi
 
3619
fi
 
3620
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
3621
echo "${ECHO_T}$INSTALL" >&6
 
3622
 
 
3623
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
3624
# It thinks the first close brace ends the variable substitution.
 
3625
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
3626
 
 
3627
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
3628
 
 
3629
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
3630
 
 
3631
 
 
3632
 
 
3633
 
 
3634
# Check whether --enable-shared or --disable-shared was given.
 
3635
if test "${enable_shared+set}" = set; then
 
3636
  enableval="$enable_shared"
 
3637
  p=${PACKAGE-default}
 
3638
    case $enableval in
 
3639
    yes) enable_shared=yes ;;
 
3640
    no) enable_shared=no ;;
 
3641
    *)
 
3642
      enable_shared=no
 
3643
      # Look at the argument we got.  We use all the common list separators.
 
3644
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3645
      for pkg in $enableval; do
 
3646
        IFS="$lt_save_ifs"
 
3647
        if test "X$pkg" = "X$p"; then
 
3648
          enable_shared=yes
 
3649
        fi
 
3650
      done
 
3651
      IFS="$lt_save_ifs"
 
3652
      ;;
 
3653
    esac
 
3654
else
 
3655
  enable_shared=yes
 
3656
fi; 
 
3657
 
 
3658
# Check whether --enable-static or --disable-static was given.
 
3659
if test "${enable_static+set}" = set; then
 
3660
  enableval="$enable_static"
 
3661
  p=${PACKAGE-default}
 
3662
    case $enableval in
 
3663
    yes) enable_static=yes ;;
 
3664
    no) enable_static=no ;;
 
3665
    *)
 
3666
     enable_static=no
 
3667
      # Look at the argument we got.  We use all the common list separators.
 
3668
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3669
      for pkg in $enableval; do
 
3670
        IFS="$lt_save_ifs"
 
3671
        if test "X$pkg" = "X$p"; then
 
3672
          enable_static=yes
 
3673
        fi
 
3674
      done
 
3675
      IFS="$lt_save_ifs"
 
3676
      ;;
 
3677
    esac
 
3678
else
 
3679
  enable_static=yes
 
3680
fi; 
 
3681
 
 
3682
# Check whether --enable-fast-install or --disable-fast-install was given.
 
3683
if test "${enable_fast_install+set}" = set; then
 
3684
  enableval="$enable_fast_install"
 
3685
  p=${PACKAGE-default}
 
3686
    case $enableval in
 
3687
    yes) enable_fast_install=yes ;;
 
3688
    no) enable_fast_install=no ;;
 
3689
    *)
 
3690
      enable_fast_install=no
 
3691
      # Look at the argument we got.  We use all the common list separators.
 
3692
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
3693
      for pkg in $enableval; do
 
3694
        IFS="$lt_save_ifs"
 
3695
        if test "X$pkg" = "X$p"; then
 
3696
          enable_fast_install=yes
 
3697
        fi
 
3698
      done
 
3699
      IFS="$lt_save_ifs"
 
3700
      ;;
 
3701
    esac
 
3702
else
 
3703
  enable_fast_install=yes
 
3704
fi; 
 
3705
 
 
3706
# Make sure we can run config.sub.
 
3707
$ac_config_sub sun4 >/dev/null 2>&1 ||
 
3708
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
 
3709
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
 
3710
   { (exit 1); exit 1; }; }
 
3711
 
 
3712
echo "$as_me:$LINENO: checking build system type" >&5
 
3713
echo $ECHO_N "checking build system type... $ECHO_C" >&6
 
3714
if test "${ac_cv_build+set}" = set; then
 
3715
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3716
else
 
3717
  ac_cv_build_alias=$build_alias
 
3718
test -z "$ac_cv_build_alias" &&
 
3719
  ac_cv_build_alias=`$ac_config_guess`
 
3720
test -z "$ac_cv_build_alias" &&
 
3721
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
3722
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
3723
   { (exit 1); exit 1; }; }
 
3724
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
 
3725
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
 
3726
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
 
3727
   { (exit 1); exit 1; }; }
 
3728
 
 
3729
fi
 
3730
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
3731
echo "${ECHO_T}$ac_cv_build" >&6
 
3732
build=$ac_cv_build
 
3733
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
3734
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
3735
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
3736
 
 
3737
 
 
3738
echo "$as_me:$LINENO: checking host system type" >&5
 
3739
echo $ECHO_N "checking host system type... $ECHO_C" >&6
 
3740
if test "${ac_cv_host+set}" = set; then
 
3741
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3742
else
 
3743
  ac_cv_host_alias=$host_alias
 
3744
test -z "$ac_cv_host_alias" &&
 
3745
  ac_cv_host_alias=$ac_cv_build_alias
 
3746
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
 
3747
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
 
3748
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
 
3749
   { (exit 1); exit 1; }; }
 
3750
 
 
3751
fi
 
3752
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
3753
echo "${ECHO_T}$ac_cv_host" >&6
 
3754
host=$ac_cv_host
 
3755
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
3756
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
3757
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
3758
 
 
3759
 
 
3760
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
3761
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
 
3762
if test "${lt_cv_path_SED+set}" = set; then
 
3763
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3764
else
 
3765
  # Loop through the user's path and test for sed and gsed.
 
3766
# Then use that list of sed's as ones to test for truncation.
 
3767
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3768
for as_dir in $PATH
 
3769
do
 
3770
  IFS=$as_save_IFS
 
3771
  test -z "$as_dir" && as_dir=.
 
3772
  for lt_ac_prog in sed gsed; do
 
3773
    for ac_exec_ext in '' $ac_executable_extensions; do
 
3774
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
3775
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
3776
      fi
 
3777
    done
 
3778
  done
 
3779
done
 
3780
lt_ac_max=0
 
3781
lt_ac_count=0
 
3782
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
3783
# along with /bin/sed that truncates output.
 
3784
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
3785
  test ! -f $lt_ac_sed && continue
 
3786
  cat /dev/null > conftest.in
 
3787
  lt_ac_count=0
 
3788
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
3789
  # Check for GNU sed and select it if it is found.
 
3790
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
3791
    lt_cv_path_SED=$lt_ac_sed
 
3792
    break
 
3793
  fi
 
3794
  while true; do
 
3795
    cat conftest.in conftest.in >conftest.tmp
 
3796
    mv conftest.tmp conftest.in
 
3797
    cp conftest.in conftest.nl
 
3798
    echo >>conftest.nl
 
3799
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
3800
    cmp -s conftest.out conftest.nl || break
 
3801
    # 10000 chars as input seems more than enough
 
3802
    test $lt_ac_count -gt 10 && break
 
3803
    lt_ac_count=`expr $lt_ac_count + 1`
 
3804
    if test $lt_ac_count -gt $lt_ac_max; then
 
3805
      lt_ac_max=$lt_ac_count
 
3806
      lt_cv_path_SED=$lt_ac_sed
 
3807
    fi
 
3808
  done
 
3809
done
 
3810
 
 
3811
fi
 
3812
 
 
3813
SED=$lt_cv_path_SED
 
3814
echo "$as_me:$LINENO: result: $SED" >&5
 
3815
echo "${ECHO_T}$SED" >&6
 
3816
 
 
3817
echo "$as_me:$LINENO: checking for egrep" >&5
 
3818
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
 
3819
if test "${ac_cv_prog_egrep+set}" = set; then
 
3820
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3821
else
 
3822
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
3823
    then ac_cv_prog_egrep='grep -E'
 
3824
    else ac_cv_prog_egrep='egrep'
 
3825
    fi
 
3826
fi
 
3827
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
 
3828
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 
3829
 EGREP=$ac_cv_prog_egrep
 
3830
 
 
3831
 
 
3832
 
 
3833
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
3834
if test "${with_gnu_ld+set}" = set; then
 
3835
  withval="$with_gnu_ld"
 
3836
  test "$withval" = no || with_gnu_ld=yes
 
3837
else
 
3838
  with_gnu_ld=no
 
3839
fi; 
 
3840
ac_prog=ld
 
3841
if test "$GCC" = yes; then
 
3842
  # Check if gcc -print-prog-name=ld gives a path.
 
3843
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
3844
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
3845
  case $host in
 
3846
  *-*-mingw*)
 
3847
    # gcc leaves a trailing carriage return which upsets mingw
 
3848
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
3849
  *)
 
3850
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
3851
  esac
 
3852
  case $ac_prog in
 
3853
    # Accept absolute paths.
 
3854
    [\\/]* | ?:[\\/]*)
 
3855
      re_direlt='/[^/][^/]*/\.\./'
 
3856
      # Canonicalize the pathname of ld
 
3857
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
3858
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
3859
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
3860
      done
 
3861
      test -z "$LD" && LD="$ac_prog"
 
3862
      ;;
 
3863
  "")
 
3864
    # If it fails, then pretend we aren't using GCC.
 
3865
    ac_prog=ld
 
3866
    ;;
 
3867
  *)
 
3868
    # If it is relative, then search for the first ld in PATH.
 
3869
    with_gnu_ld=unknown
 
3870
    ;;
 
3871
  esac
 
3872
elif test "$with_gnu_ld" = yes; then
 
3873
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
3874
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
3875
else
 
3876
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
3877
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
3878
fi
 
3879
if test "${lt_cv_path_LD+set}" = set; then
 
3880
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3881
else
 
3882
  if test -z "$LD"; then
 
3883
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
3884
  for ac_dir in $PATH; do
 
3885
    IFS="$lt_save_ifs"
 
3886
    test -z "$ac_dir" && ac_dir=.
 
3887
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
3888
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
3889
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
3890
      # but apparently some variants of GNU ld only accept -v.
 
3891
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
3892
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
3893
      *GNU* | *'with BFD'*)
 
3894
        test "$with_gnu_ld" != no && break
 
3895
        ;;
 
3896
      *)
 
3897
        test "$with_gnu_ld" != yes && break
 
3898
        ;;
 
3899
      esac
 
3900
    fi
 
3901
  done
 
3902
  IFS="$lt_save_ifs"
 
3903
else
 
3904
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
3905
fi
 
3906
fi
 
3907
 
 
3908
LD="$lt_cv_path_LD"
 
3909
if test -n "$LD"; then
 
3910
  echo "$as_me:$LINENO: result: $LD" >&5
 
3911
echo "${ECHO_T}$LD" >&6
 
3912
else
 
3913
  echo "$as_me:$LINENO: result: no" >&5
 
3914
echo "${ECHO_T}no" >&6
 
3915
fi
 
3916
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
3917
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
3918
   { (exit 1); exit 1; }; }
 
3919
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
3920
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
3921
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
3922
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3923
else
 
3924
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
3925
case `$LD -v 2>&1 </dev/null` in
 
3926
*GNU* | *'with BFD'*)
 
3927
  lt_cv_prog_gnu_ld=yes
 
3928
  ;;
 
3929
*)
 
3930
  lt_cv_prog_gnu_ld=no
 
3931
  ;;
 
3932
esac
 
3933
fi
 
3934
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
3935
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
3936
with_gnu_ld=$lt_cv_prog_gnu_ld
 
3937
 
 
3938
 
 
3939
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
3940
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
 
3941
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
3942
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3943
else
 
3944
  lt_cv_ld_reload_flag='-r'
 
3945
fi
 
3946
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
3947
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
 
3948
reload_flag=$lt_cv_ld_reload_flag
 
3949
case $reload_flag in
 
3950
"" | " "*) ;;
 
3951
*) reload_flag=" $reload_flag" ;;
 
3952
esac
 
3953
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
3954
case $host_os in
 
3955
  darwin*)
 
3956
    if test "$GCC" = yes; then
 
3957
      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
 
3958
    else
 
3959
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
3960
    fi
 
3961
    ;;
 
3962
esac
 
3963
 
 
3964
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
3965
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
 
3966
if test "${lt_cv_path_NM+set}" = set; then
 
3967
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3968
else
 
3969
  if test -n "$NM"; then
 
3970
  # Let the user override the test.
 
3971
  lt_cv_path_NM="$NM"
 
3972
else
 
3973
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
3974
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
 
3975
    IFS="$lt_save_ifs"
 
3976
    test -z "$ac_dir" && ac_dir=.
 
3977
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
 
3978
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
3979
      # Check to see if the nm accepts a BSD-compat flag.
 
3980
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
3981
      #   nm: unknown option "B" ignored
 
3982
      # Tru64's nm complains that /dev/null is an invalid object file
 
3983
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
3984
      */dev/null* | *'Invalid file or object type'*)
 
3985
        lt_cv_path_NM="$tmp_nm -B"
 
3986
        break
 
3987
        ;;
 
3988
      *)
 
3989
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
3990
        */dev/null*)
 
3991
          lt_cv_path_NM="$tmp_nm -p"
 
3992
          break
 
3993
          ;;
 
3994
        *)
 
3995
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
3996
          continue # so that we can try to find one that supports BSD flags
 
3997
          ;;
 
3998
        esac
 
3999
      esac
 
4000
    fi
 
4001
  done
 
4002
  IFS="$lt_save_ifs"
 
4003
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
4004
fi
 
4005
fi
 
4006
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
4007
echo "${ECHO_T}$lt_cv_path_NM" >&6
 
4008
NM="$lt_cv_path_NM"
 
4009
 
 
4010
echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
4011
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
 
4012
LN_S=$as_ln_s
 
4013
if test "$LN_S" = "ln -s"; then
 
4014
  echo "$as_me:$LINENO: result: yes" >&5
 
4015
echo "${ECHO_T}yes" >&6
 
4016
else
 
4017
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
4018
echo "${ECHO_T}no, using $LN_S" >&6
 
4019
fi
 
4020
 
 
4021
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
 
4022
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
 
4023
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
4024
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4025
else
 
4026
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
4027
lt_cv_file_magic_test_file=
 
4028
lt_cv_deplibs_check_method='unknown'
 
4029
# Need to set the preceding variable on all platforms that support
 
4030
# interlibrary dependencies.
 
4031
# 'none' -- dependencies not supported.
 
4032
# `unknown' -- same as none, but documents that we really don't know.
 
4033
# 'pass_all' -- all dependencies passed with no checks.
 
4034
# 'test_compile' -- check by making test program.
 
4035
# 'file_magic [[regex]]' -- check by looking for files in library path
 
4036
# which responds to the $file_magic_cmd with a given extended regex.
 
4037
# If you have `file' or equivalent on your system and you're not sure
 
4038
# whether `pass_all' will *always* work, you probably want this one.
 
4039
 
 
4040
case $host_os in
 
4041
aix4* | aix5*)
 
4042
  lt_cv_deplibs_check_method=pass_all
 
4043
  ;;
 
4044
 
 
4045
beos*)
 
4046
  lt_cv_deplibs_check_method=pass_all
 
4047
  ;;
 
4048
 
 
4049
bsdi[45]*)
 
4050
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
4051
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
4052
  lt_cv_file_magic_test_file=/shlib/libc.so
 
4053
  ;;
 
4054
 
 
4055
cygwin*)
 
4056
  # func_win32_libid is a shell function defined in ltmain.sh
 
4057
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
4058
  lt_cv_file_magic_cmd='func_win32_libid'
 
4059
  ;;
 
4060
 
 
4061
mingw* | pw32*)
 
4062
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
4063
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
 
4064
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
4065
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
4066
  ;;
 
4067
 
 
4068
darwin* | rhapsody*)
 
4069
  lt_cv_deplibs_check_method=pass_all
 
4070
  ;;
 
4071
 
 
4072
freebsd* | kfreebsd*-gnu | dragonfly*)
 
4073
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
4074
    case $host_cpu in
 
4075
    i*86 )
 
4076
      # Not sure whether the presence of OpenBSD here was a mistake.
 
4077
      # Let's accept both of them until this is cleared up.
 
4078
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
 
4079
      lt_cv_file_magic_cmd=/usr/bin/file
 
4080
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
4081
      ;;
 
4082
    esac
 
4083
  else
 
4084
    lt_cv_deplibs_check_method=pass_all
 
4085
  fi
 
4086
  ;;
 
4087
 
 
4088
gnu*)
 
4089
  lt_cv_deplibs_check_method=pass_all
 
4090
  ;;
 
4091
 
 
4092
hpux10.20* | hpux11*)
 
4093
  lt_cv_file_magic_cmd=/usr/bin/file
 
4094
  case $host_cpu in
 
4095
  ia64*)
 
4096
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
4097
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
4098
    ;;
 
4099
  hppa*64*)
 
4100
    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]'
 
4101
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
4102
    ;;
 
4103
  *)
 
4104
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
4105
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
4106
    ;;
 
4107
  esac
 
4108
  ;;
 
4109
 
 
4110
irix5* | irix6* | nonstopux*)
 
4111
  case $LD in
 
4112
  *-32|*"-32 ") libmagic=32-bit;;
 
4113
  *-n32|*"-n32 ") libmagic=N32;;
 
4114
  *-64|*"-64 ") libmagic=64-bit;;
 
4115
  *) libmagic=never-match;;
 
4116
  esac
 
4117
  lt_cv_deplibs_check_method=pass_all
 
4118
  ;;
 
4119
 
 
4120
# This must be Linux ELF.
 
4121
linux*)
 
4122
  lt_cv_deplibs_check_method=pass_all
 
4123
  ;;
 
4124
 
 
4125
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
4126
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
4127
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
4128
  else
 
4129
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
4130
  fi
 
4131
  ;;
 
4132
 
 
4133
newos6*)
 
4134
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
4135
  lt_cv_file_magic_cmd=/usr/bin/file
 
4136
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
4137
  ;;
 
4138
 
 
4139
nto-qnx*)
 
4140
  lt_cv_deplibs_check_method=unknown
 
4141
  ;;
 
4142
 
 
4143
openbsd*)
 
4144
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
4145
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
4146
  else
 
4147
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
4148
  fi
 
4149
  ;;
 
4150
 
 
4151
osf3* | osf4* | osf5*)
 
4152
  lt_cv_deplibs_check_method=pass_all
 
4153
  ;;
 
4154
 
 
4155
sco3.2v5*)
 
4156
  lt_cv_deplibs_check_method=pass_all
 
4157
  ;;
 
4158
 
 
4159
solaris*)
 
4160
  lt_cv_deplibs_check_method=pass_all
 
4161
  ;;
 
4162
 
 
4163
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
4164
  case $host_vendor in
 
4165
  motorola)
 
4166
    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]'
 
4167
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
4168
    ;;
 
4169
  ncr)
 
4170
    lt_cv_deplibs_check_method=pass_all
 
4171
    ;;
 
4172
  sequent)
 
4173
    lt_cv_file_magic_cmd='/bin/file'
 
4174
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
4175
    ;;
 
4176
  sni)
 
4177
    lt_cv_file_magic_cmd='/bin/file'
 
4178
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
4179
    lt_cv_file_magic_test_file=/lib/libc.so
 
4180
    ;;
 
4181
  siemens)
 
4182
    lt_cv_deplibs_check_method=pass_all
 
4183
    ;;
 
4184
  esac
 
4185
  ;;
 
4186
 
 
4187
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
 
4188
  lt_cv_deplibs_check_method=pass_all
 
4189
  ;;
 
4190
esac
 
4191
 
 
4192
fi
 
4193
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
4194
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
 
4195
file_magic_cmd=$lt_cv_file_magic_cmd
 
4196
deplibs_check_method=$lt_cv_deplibs_check_method
 
4197
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
4198
 
 
4199
 
 
4200
 
 
4201
 
 
4202
# If no C compiler was specified, use CC.
 
4203
LTCC=${LTCC-"$CC"}
 
4204
 
 
4205
# Allow CC to be a program name with arguments.
 
4206
compiler=$CC
 
4207
 
 
4208
 
 
4209
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
4210
if test "${enable_libtool_lock+set}" = set; then
 
4211
  enableval="$enable_libtool_lock"
 
4212
  
 
4213
fi; 
 
4214
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
4215
 
 
4216
# Some flags need to be propagated to the compiler or linker for good
 
4217
# libtool support.
 
4218
case $host in
 
4219
ia64-*-hpux*)
 
4220
  # Find out which ABI we are using.
 
4221
  echo 'int i;' > conftest.$ac_ext
 
4222
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4223
  (eval $ac_compile) 2>&5
 
4224
  ac_status=$?
 
4225
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4226
  (exit $ac_status); }; then
 
4227
    case `/usr/bin/file conftest.$ac_objext` in
 
4228
    *ELF-32*)
 
4229
      HPUX_IA64_MODE="32"
 
4230
      ;;
 
4231
    *ELF-64*)
 
4232
      HPUX_IA64_MODE="64"
 
4233
      ;;
 
4234
    esac
 
4235
  fi
 
4236
  rm -rf conftest*
 
4237
  ;;
 
4238
*-*-irix6*)
 
4239
  # Find out which ABI we are using.
 
4240
  echo '#line __oline__ "configure"' > conftest.$ac_ext
 
4241
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4242
  (eval $ac_compile) 2>&5
 
4243
  ac_status=$?
 
4244
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4245
  (exit $ac_status); }; then
 
4246
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
4247
    case `/usr/bin/file conftest.$ac_objext` in
 
4248
    *32-bit*)
 
4249
      LD="${LD-ld} -melf32bsmip"
 
4250
      ;;
 
4251
    *N32*)
 
4252
      LD="${LD-ld} -melf32bmipn32"
 
4253
      ;;
 
4254
    *64-bit*)
 
4255
      LD="${LD-ld} -melf64bmip"
 
4256
      ;;
 
4257
    esac
 
4258
   else
 
4259
    case `/usr/bin/file conftest.$ac_objext` in
 
4260
    *32-bit*)
 
4261
      LD="${LD-ld} -32"
 
4262
      ;;
 
4263
    *N32*)
 
4264
      LD="${LD-ld} -n32"
 
4265
      ;;
 
4266
    *64-bit*)
 
4267
      LD="${LD-ld} -64"
 
4268
      ;;
 
4269
    esac
 
4270
   fi
 
4271
  fi
 
4272
  rm -rf conftest*
 
4273
  ;;
 
4274
 
 
4275
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
4276
  # Find out which ABI we are using.
 
4277
  echo 'int i;' > conftest.$ac_ext
 
4278
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4279
  (eval $ac_compile) 2>&5
 
4280
  ac_status=$?
 
4281
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4282
  (exit $ac_status); }; then
 
4283
    case `/usr/bin/file conftest.o` in
 
4284
    *32-bit*)
 
4285
      case $host in
 
4286
        x86_64-*linux*)
 
4287
          LD="${LD-ld} -m elf_i386"
 
4288
          ;;
 
4289
        ppc64-*linux*|powerpc64-*linux*)
 
4290
          LD="${LD-ld} -m elf32ppclinux"
 
4291
          ;;
 
4292
        s390x-*linux*)
 
4293
          LD="${LD-ld} -m elf_s390"
 
4294
          ;;
 
4295
        sparc64-*linux*)
 
4296
          LD="${LD-ld} -m elf32_sparc"
 
4297
          ;;
 
4298
      esac
 
4299
      ;;
 
4300
    *64-bit*)
 
4301
      case $host in
 
4302
        x86_64-*linux*)
 
4303
          LD="${LD-ld} -m elf_x86_64"
 
4304
          ;;
 
4305
        ppc*-*linux*|powerpc*-*linux*)
 
4306
          LD="${LD-ld} -m elf64ppc"
 
4307
          ;;
 
4308
        s390*-*linux*)
 
4309
          LD="${LD-ld} -m elf64_s390"
 
4310
          ;;
 
4311
        sparc*-*linux*)
 
4312
          LD="${LD-ld} -m elf64_sparc"
 
4313
          ;;
 
4314
      esac
 
4315
      ;;
 
4316
    esac
 
4317
  fi
 
4318
  rm -rf conftest*
 
4319
  ;;
 
4320
 
 
4321
*-*-sco3.2v5*)
 
4322
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
4323
  SAVE_CFLAGS="$CFLAGS"
 
4324
  CFLAGS="$CFLAGS -belf"
 
4325
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
4326
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
 
4327
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
4328
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4329
else
 
4330
  ac_ext=c
 
4331
ac_cpp='$CPP $CPPFLAGS'
 
4332
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4333
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4334
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4335
 
 
4336
     cat >conftest.$ac_ext <<_ACEOF
 
4337
/* confdefs.h.  */
 
4338
_ACEOF
 
4339
cat confdefs.h >>conftest.$ac_ext
 
4340
cat >>conftest.$ac_ext <<_ACEOF
 
4341
/* end confdefs.h.  */
 
4342
 
 
4343
int
 
4344
main ()
 
4345
{
 
4346
 
 
4347
  ;
 
4348
  return 0;
 
4349
}
 
4350
_ACEOF
 
4351
rm -f conftest.$ac_objext conftest$ac_exeext
 
4352
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4353
  (eval $ac_link) 2>conftest.er1
 
4354
  ac_status=$?
 
4355
  grep -v '^ *+' conftest.er1 >conftest.err
 
4356
  rm -f conftest.er1
 
4357
  cat conftest.err >&5
 
4358
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4359
  (exit $ac_status); } &&
 
4360
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4361
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4362
  (eval $ac_try) 2>&5
 
4363
  ac_status=$?
 
4364
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4365
  (exit $ac_status); }; } &&
 
4366
         { ac_try='test -s conftest$ac_exeext'
 
4367
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4368
  (eval $ac_try) 2>&5
 
4369
  ac_status=$?
 
4370
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4371
  (exit $ac_status); }; }; then
 
4372
  lt_cv_cc_needs_belf=yes
 
4373
else
 
4374
  echo "$as_me: failed program was:" >&5
 
4375
sed 's/^/| /' conftest.$ac_ext >&5
 
4376
 
 
4377
lt_cv_cc_needs_belf=no
 
4378
fi
 
4379
rm -f conftest.err conftest.$ac_objext \
 
4380
      conftest$ac_exeext conftest.$ac_ext
 
4381
     ac_ext=c
 
4382
ac_cpp='$CPP $CPPFLAGS'
 
4383
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4384
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4385
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4386
 
 
4387
fi
 
4388
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
4389
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
 
4390
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
4391
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
4392
    CFLAGS="$SAVE_CFLAGS"
 
4393
  fi
 
4394
  ;;
 
4395
 
 
4396
esac
 
4397
 
 
4398
need_locks="$enable_libtool_lock"
 
4399
 
 
4400
 
 
4401
ac_ext=c
 
4402
ac_cpp='$CPP $CPPFLAGS'
 
4403
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4404
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4405
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4406
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
4407
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 
4408
# On Suns, sometimes $CPP names a directory.
 
4409
if test -n "$CPP" && test -d "$CPP"; then
 
4410
  CPP=
 
4411
fi
 
4412
if test -z "$CPP"; then
 
4413
  if test "${ac_cv_prog_CPP+set}" = set; then
 
4414
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4415
else
 
4416
      # Double quotes because CPP needs to be expanded
 
4417
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
4418
    do
 
4419
      ac_preproc_ok=false
 
4420
for ac_c_preproc_warn_flag in '' yes
 
4421
do
 
4422
  # Use a header file that comes with gcc, so configuring glibc
 
4423
  # with a fresh cross-compiler works.
 
4424
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4425
  # <limits.h> exists even on freestanding compilers.
 
4426
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4427
  # not just through cpp. "Syntax error" is here to catch this case.
 
4428
  cat >conftest.$ac_ext <<_ACEOF
 
4429
/* confdefs.h.  */
 
4430
_ACEOF
 
4431
cat confdefs.h >>conftest.$ac_ext
 
4432
cat >>conftest.$ac_ext <<_ACEOF
 
4433
/* end confdefs.h.  */
 
4434
@%:@ifdef __STDC__
 
4435
@%:@ include <limits.h>
 
4436
@%:@else
 
4437
@%:@ include <assert.h>
 
4438
@%:@endif
 
4439
                     Syntax error
 
4440
_ACEOF
 
4441
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4442
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4443
  ac_status=$?
 
4444
  grep -v '^ *+' conftest.er1 >conftest.err
 
4445
  rm -f conftest.er1
 
4446
  cat conftest.err >&5
 
4447
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4448
  (exit $ac_status); } >/dev/null; then
 
4449
  if test -s conftest.err; then
 
4450
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4451
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4452
  else
 
4453
    ac_cpp_err=
 
4454
  fi
 
4455
else
 
4456
  ac_cpp_err=yes
 
4457
fi
 
4458
if test -z "$ac_cpp_err"; then
 
4459
  :
 
4460
else
 
4461
  echo "$as_me: failed program was:" >&5
 
4462
sed 's/^/| /' conftest.$ac_ext >&5
 
4463
 
 
4464
  # Broken: fails on valid input.
 
4465
continue
 
4466
fi
 
4467
rm -f conftest.err conftest.$ac_ext
 
4468
 
 
4469
  # OK, works on sane cases.  Now check whether non-existent headers
 
4470
  # can be detected and how.
 
4471
  cat >conftest.$ac_ext <<_ACEOF
 
4472
/* confdefs.h.  */
 
4473
_ACEOF
 
4474
cat confdefs.h >>conftest.$ac_ext
 
4475
cat >>conftest.$ac_ext <<_ACEOF
 
4476
/* end confdefs.h.  */
 
4477
@%:@include <ac_nonexistent.h>
 
4478
_ACEOF
 
4479
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4480
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4481
  ac_status=$?
 
4482
  grep -v '^ *+' conftest.er1 >conftest.err
 
4483
  rm -f conftest.er1
 
4484
  cat conftest.err >&5
 
4485
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4486
  (exit $ac_status); } >/dev/null; then
 
4487
  if test -s conftest.err; then
 
4488
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4489
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4490
  else
 
4491
    ac_cpp_err=
 
4492
  fi
 
4493
else
 
4494
  ac_cpp_err=yes
 
4495
fi
 
4496
if test -z "$ac_cpp_err"; then
 
4497
  # Broken: success on invalid input.
 
4498
continue
 
4499
else
 
4500
  echo "$as_me: failed program was:" >&5
 
4501
sed 's/^/| /' conftest.$ac_ext >&5
 
4502
 
 
4503
  # Passes both tests.
 
4504
ac_preproc_ok=:
 
4505
break
 
4506
fi
 
4507
rm -f conftest.err conftest.$ac_ext
 
4508
 
 
4509
done
 
4510
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4511
rm -f conftest.err conftest.$ac_ext
 
4512
if $ac_preproc_ok; then
 
4513
  break
 
4514
fi
 
4515
 
 
4516
    done
 
4517
    ac_cv_prog_CPP=$CPP
 
4518
  
 
4519
fi
 
4520
  CPP=$ac_cv_prog_CPP
 
4521
else
 
4522
  ac_cv_prog_CPP=$CPP
 
4523
fi
 
4524
echo "$as_me:$LINENO: result: $CPP" >&5
 
4525
echo "${ECHO_T}$CPP" >&6
 
4526
ac_preproc_ok=false
 
4527
for ac_c_preproc_warn_flag in '' yes
 
4528
do
 
4529
  # Use a header file that comes with gcc, so configuring glibc
 
4530
  # with a fresh cross-compiler works.
 
4531
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4532
  # <limits.h> exists even on freestanding compilers.
 
4533
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4534
  # not just through cpp. "Syntax error" is here to catch this case.
 
4535
  cat >conftest.$ac_ext <<_ACEOF
 
4536
/* confdefs.h.  */
 
4537
_ACEOF
 
4538
cat confdefs.h >>conftest.$ac_ext
 
4539
cat >>conftest.$ac_ext <<_ACEOF
 
4540
/* end confdefs.h.  */
 
4541
@%:@ifdef __STDC__
 
4542
@%:@ include <limits.h>
 
4543
@%:@else
 
4544
@%:@ include <assert.h>
 
4545
@%:@endif
 
4546
                     Syntax error
 
4547
_ACEOF
 
4548
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4549
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4550
  ac_status=$?
 
4551
  grep -v '^ *+' conftest.er1 >conftest.err
 
4552
  rm -f conftest.er1
 
4553
  cat conftest.err >&5
 
4554
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4555
  (exit $ac_status); } >/dev/null; then
 
4556
  if test -s conftest.err; then
 
4557
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4558
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4559
  else
 
4560
    ac_cpp_err=
 
4561
  fi
 
4562
else
 
4563
  ac_cpp_err=yes
 
4564
fi
 
4565
if test -z "$ac_cpp_err"; then
 
4566
  :
 
4567
else
 
4568
  echo "$as_me: failed program was:" >&5
 
4569
sed 's/^/| /' conftest.$ac_ext >&5
 
4570
 
 
4571
  # Broken: fails on valid input.
 
4572
continue
 
4573
fi
 
4574
rm -f conftest.err conftest.$ac_ext
 
4575
 
 
4576
  # OK, works on sane cases.  Now check whether non-existent headers
 
4577
  # can be detected and how.
 
4578
  cat >conftest.$ac_ext <<_ACEOF
 
4579
/* confdefs.h.  */
 
4580
_ACEOF
 
4581
cat confdefs.h >>conftest.$ac_ext
 
4582
cat >>conftest.$ac_ext <<_ACEOF
 
4583
/* end confdefs.h.  */
 
4584
@%:@include <ac_nonexistent.h>
 
4585
_ACEOF
 
4586
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4587
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4588
  ac_status=$?
 
4589
  grep -v '^ *+' conftest.er1 >conftest.err
 
4590
  rm -f conftest.er1
 
4591
  cat conftest.err >&5
 
4592
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4593
  (exit $ac_status); } >/dev/null; then
 
4594
  if test -s conftest.err; then
 
4595
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4596
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4597
  else
 
4598
    ac_cpp_err=
 
4599
  fi
 
4600
else
 
4601
  ac_cpp_err=yes
 
4602
fi
 
4603
if test -z "$ac_cpp_err"; then
 
4604
  # Broken: success on invalid input.
 
4605
continue
 
4606
else
 
4607
  echo "$as_me: failed program was:" >&5
 
4608
sed 's/^/| /' conftest.$ac_ext >&5
 
4609
 
 
4610
  # Passes both tests.
 
4611
ac_preproc_ok=:
 
4612
break
 
4613
fi
 
4614
rm -f conftest.err conftest.$ac_ext
 
4615
 
 
4616
done
 
4617
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4618
rm -f conftest.err conftest.$ac_ext
 
4619
if $ac_preproc_ok; then
 
4620
  :
 
4621
else
 
4622
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
4623
See \`config.log' for more details." >&5
 
4624
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
4625
See \`config.log' for more details." >&2;}
 
4626
   { (exit 1); exit 1; }; }
 
4627
fi
 
4628
 
 
4629
ac_ext=c
 
4630
ac_cpp='$CPP $CPPFLAGS'
 
4631
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4632
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4633
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4634
 
 
4635
 
 
4636
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
4637
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
4638
if test "${ac_cv_header_stdc+set}" = set; then
 
4639
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4640
else
 
4641
  cat >conftest.$ac_ext <<_ACEOF
 
4642
/* confdefs.h.  */
 
4643
_ACEOF
 
4644
cat confdefs.h >>conftest.$ac_ext
 
4645
cat >>conftest.$ac_ext <<_ACEOF
 
4646
/* end confdefs.h.  */
 
4647
#include <stdlib.h>
 
4648
#include <stdarg.h>
 
4649
#include <string.h>
 
4650
#include <float.h>
 
4651
 
 
4652
int
 
4653
main ()
 
4654
{
 
4655
 
 
4656
  ;
 
4657
  return 0;
 
4658
}
 
4659
_ACEOF
 
4660
rm -f conftest.$ac_objext
 
4661
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4662
  (eval $ac_compile) 2>conftest.er1
 
4663
  ac_status=$?
 
4664
  grep -v '^ *+' conftest.er1 >conftest.err
 
4665
  rm -f conftest.er1
 
4666
  cat conftest.err >&5
 
4667
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4668
  (exit $ac_status); } &&
 
4669
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4670
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4671
  (eval $ac_try) 2>&5
 
4672
  ac_status=$?
 
4673
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4674
  (exit $ac_status); }; } &&
 
4675
         { ac_try='test -s conftest.$ac_objext'
 
4676
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4677
  (eval $ac_try) 2>&5
 
4678
  ac_status=$?
 
4679
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4680
  (exit $ac_status); }; }; then
 
4681
  ac_cv_header_stdc=yes
 
4682
else
 
4683
  echo "$as_me: failed program was:" >&5
 
4684
sed 's/^/| /' conftest.$ac_ext >&5
 
4685
 
 
4686
ac_cv_header_stdc=no
 
4687
fi
 
4688
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4689
 
 
4690
if test $ac_cv_header_stdc = yes; then
 
4691
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
4692
  cat >conftest.$ac_ext <<_ACEOF
 
4693
/* confdefs.h.  */
 
4694
_ACEOF
 
4695
cat confdefs.h >>conftest.$ac_ext
 
4696
cat >>conftest.$ac_ext <<_ACEOF
 
4697
/* end confdefs.h.  */
 
4698
#include <string.h>
 
4699
 
 
4700
_ACEOF
 
4701
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4702
  $EGREP "memchr" >/dev/null 2>&1; then
 
4703
  :
 
4704
else
 
4705
  ac_cv_header_stdc=no
 
4706
fi
 
4707
rm -f conftest*
 
4708
 
 
4709
fi
 
4710
 
 
4711
if test $ac_cv_header_stdc = yes; then
 
4712
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
4713
  cat >conftest.$ac_ext <<_ACEOF
 
4714
/* confdefs.h.  */
 
4715
_ACEOF
 
4716
cat confdefs.h >>conftest.$ac_ext
 
4717
cat >>conftest.$ac_ext <<_ACEOF
 
4718
/* end confdefs.h.  */
 
4719
#include <stdlib.h>
 
4720
 
 
4721
_ACEOF
 
4722
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4723
  $EGREP "free" >/dev/null 2>&1; then
 
4724
  :
 
4725
else
 
4726
  ac_cv_header_stdc=no
 
4727
fi
 
4728
rm -f conftest*
 
4729
 
 
4730
fi
 
4731
 
 
4732
if test $ac_cv_header_stdc = yes; then
 
4733
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
4734
  if test "$cross_compiling" = yes; then
 
4735
  :
 
4736
else
 
4737
  cat >conftest.$ac_ext <<_ACEOF
 
4738
/* confdefs.h.  */
 
4739
_ACEOF
 
4740
cat confdefs.h >>conftest.$ac_ext
 
4741
cat >>conftest.$ac_ext <<_ACEOF
 
4742
/* end confdefs.h.  */
 
4743
#include <ctype.h>
 
4744
#if ((' ' & 0x0FF) == 0x020)
 
4745
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
4746
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
4747
#else
 
4748
# define ISLOWER(c) \
 
4749
                   (('a' <= (c) && (c) <= 'i') \
 
4750
                     || ('j' <= (c) && (c) <= 'r') \
 
4751
                     || ('s' <= (c) && (c) <= 'z'))
 
4752
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
4753
#endif
 
4754
 
 
4755
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
4756
int
 
4757
main ()
 
4758
{
 
4759
  int i;
 
4760
  for (i = 0; i < 256; i++)
 
4761
    if (XOR (islower (i), ISLOWER (i))
 
4762
        || toupper (i) != TOUPPER (i))
 
4763
      exit(2);
 
4764
  exit (0);
 
4765
}
 
4766
_ACEOF
 
4767
rm -f conftest$ac_exeext
 
4768
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4769
  (eval $ac_link) 2>&5
 
4770
  ac_status=$?
 
4771
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4772
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
4773
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4774
  (eval $ac_try) 2>&5
 
4775
  ac_status=$?
 
4776
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4777
  (exit $ac_status); }; }; then
 
4778
  :
 
4779
else
 
4780
  echo "$as_me: program exited with status $ac_status" >&5
 
4781
echo "$as_me: failed program was:" >&5
 
4782
sed 's/^/| /' conftest.$ac_ext >&5
 
4783
 
 
4784
( exit $ac_status )
 
4785
ac_cv_header_stdc=no
 
4786
fi
 
4787
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4788
fi
 
4789
fi
 
4790
fi
 
4791
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
4792
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
4793
if test $ac_cv_header_stdc = yes; then
 
4794
  
 
4795
cat >>confdefs.h <<\_ACEOF
 
4796
@%:@define STDC_HEADERS 1
 
4797
_ACEOF
 
4798
 
 
4799
fi
 
4800
 
 
4801
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
4802
 
 
4803
 
 
4804
 
 
4805
 
 
4806
 
 
4807
 
 
4808
 
 
4809
 
 
4810
 
 
4811
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
4812
                  inttypes.h stdint.h unistd.h
 
4813
do
 
4814
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4815
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4816
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4817
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4818
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4819
else
 
4820
  cat >conftest.$ac_ext <<_ACEOF
 
4821
/* confdefs.h.  */
 
4822
_ACEOF
 
4823
cat confdefs.h >>conftest.$ac_ext
 
4824
cat >>conftest.$ac_ext <<_ACEOF
 
4825
/* end confdefs.h.  */
 
4826
$ac_includes_default
 
4827
 
 
4828
@%:@include <$ac_header>
 
4829
_ACEOF
 
4830
rm -f conftest.$ac_objext
 
4831
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4832
  (eval $ac_compile) 2>conftest.er1
 
4833
  ac_status=$?
 
4834
  grep -v '^ *+' conftest.er1 >conftest.err
 
4835
  rm -f conftest.er1
 
4836
  cat conftest.err >&5
 
4837
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4838
  (exit $ac_status); } &&
 
4839
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4840
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4841
  (eval $ac_try) 2>&5
 
4842
  ac_status=$?
 
4843
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4844
  (exit $ac_status); }; } &&
 
4845
         { ac_try='test -s conftest.$ac_objext'
 
4846
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4847
  (eval $ac_try) 2>&5
 
4848
  ac_status=$?
 
4849
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4850
  (exit $ac_status); }; }; then
 
4851
  eval "$as_ac_Header=yes"
 
4852
else
 
4853
  echo "$as_me: failed program was:" >&5
 
4854
sed 's/^/| /' conftest.$ac_ext >&5
 
4855
 
 
4856
eval "$as_ac_Header=no"
 
4857
fi
 
4858
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4859
fi
 
4860
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4861
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4862
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4863
  cat >>confdefs.h <<_ACEOF
 
4864
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4865
_ACEOF
 
4866
 
 
4867
fi
 
4868
 
 
4869
done
 
4870
 
 
4871
 
 
4872
 
 
4873
for ac_header in dlfcn.h
 
4874
do
 
4875
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4876
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4877
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4878
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
4879
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
4880
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4881
fi
 
4882
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4883
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4884
else
 
4885
  # Is the header compilable?
 
4886
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
4887
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
4888
cat >conftest.$ac_ext <<_ACEOF
 
4889
/* confdefs.h.  */
 
4890
_ACEOF
 
4891
cat confdefs.h >>conftest.$ac_ext
 
4892
cat >>conftest.$ac_ext <<_ACEOF
 
4893
/* end confdefs.h.  */
 
4894
$ac_includes_default
 
4895
@%:@include <$ac_header>
 
4896
_ACEOF
 
4897
rm -f conftest.$ac_objext
 
4898
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4899
  (eval $ac_compile) 2>conftest.er1
 
4900
  ac_status=$?
 
4901
  grep -v '^ *+' conftest.er1 >conftest.err
 
4902
  rm -f conftest.er1
 
4903
  cat conftest.err >&5
 
4904
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4905
  (exit $ac_status); } &&
 
4906
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4907
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4908
  (eval $ac_try) 2>&5
 
4909
  ac_status=$?
 
4910
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4911
  (exit $ac_status); }; } &&
 
4912
         { ac_try='test -s conftest.$ac_objext'
 
4913
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4914
  (eval $ac_try) 2>&5
 
4915
  ac_status=$?
 
4916
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4917
  (exit $ac_status); }; }; then
 
4918
  ac_header_compiler=yes
 
4919
else
 
4920
  echo "$as_me: failed program was:" >&5
 
4921
sed 's/^/| /' conftest.$ac_ext >&5
 
4922
 
 
4923
ac_header_compiler=no
 
4924
fi
 
4925
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4926
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
4927
echo "${ECHO_T}$ac_header_compiler" >&6
 
4928
 
 
4929
# Is the header present?
 
4930
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
4931
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
4932
cat >conftest.$ac_ext <<_ACEOF
 
4933
/* confdefs.h.  */
 
4934
_ACEOF
 
4935
cat confdefs.h >>conftest.$ac_ext
 
4936
cat >>conftest.$ac_ext <<_ACEOF
 
4937
/* end confdefs.h.  */
 
4938
@%:@include <$ac_header>
 
4939
_ACEOF
 
4940
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4941
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4942
  ac_status=$?
 
4943
  grep -v '^ *+' conftest.er1 >conftest.err
 
4944
  rm -f conftest.er1
 
4945
  cat conftest.err >&5
 
4946
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4947
  (exit $ac_status); } >/dev/null; then
 
4948
  if test -s conftest.err; then
 
4949
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4950
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4951
  else
 
4952
    ac_cpp_err=
 
4953
  fi
 
4954
else
 
4955
  ac_cpp_err=yes
 
4956
fi
 
4957
if test -z "$ac_cpp_err"; then
 
4958
  ac_header_preproc=yes
 
4959
else
 
4960
  echo "$as_me: failed program was:" >&5
 
4961
sed 's/^/| /' conftest.$ac_ext >&5
 
4962
 
 
4963
  ac_header_preproc=no
 
4964
fi
 
4965
rm -f conftest.err conftest.$ac_ext
 
4966
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
4967
echo "${ECHO_T}$ac_header_preproc" >&6
 
4968
 
 
4969
# So?  What about this header?
 
4970
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
4971
  yes:no: )
 
4972
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
4973
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
4974
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
4975
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
4976
    ac_header_preproc=yes
 
4977
    ;;
 
4978
  no:yes:* )
 
4979
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
4980
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
4981
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
4982
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
4983
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
4984
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
4985
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
4986
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
4987
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
4988
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
4989
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
4990
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
4991
    (
 
4992
      cat <<\_ASBOX
 
4993
@%:@@%:@ ------------------------------------------ @%:@@%:@
 
4994
@%:@@%:@ Report this to the AC_PACKAGE_NAME lists.  @%:@@%:@
 
4995
@%:@@%:@ ------------------------------------------ @%:@@%:@
 
4996
_ASBOX
 
4997
    ) |
 
4998
      sed "s/^/$as_me: WARNING:     /" >&2
 
4999
    ;;
 
5000
esac
 
5001
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5002
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
5003
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5004
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5005
else
 
5006
  eval "$as_ac_Header=\$ac_header_preproc"
 
5007
fi
 
5008
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5009
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5010
 
 
5011
fi
 
5012
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5013
  cat >>confdefs.h <<_ACEOF
 
5014
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5015
_ACEOF
 
5016
 
 
5017
fi
 
5018
 
 
5019
done
 
5020
 
 
5021
 
 
5022
 
 
5023
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
5024
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
5025
    (test "X$CXX" != "Xg++"))) ; then
 
5026
  ac_ext=cc
 
5027
ac_cpp='$CXXCPP $CPPFLAGS'
 
5028
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5029
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5030
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5031
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
5032
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
 
5033
if test -z "$CXXCPP"; then
 
5034
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
5035
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5036
else
 
5037
      # Double quotes because CXXCPP needs to be expanded
 
5038
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
5039
    do
 
5040
      ac_preproc_ok=false
 
5041
for ac_cxx_preproc_warn_flag in '' yes
 
5042
do
 
5043
  # Use a header file that comes with gcc, so configuring glibc
 
5044
  # with a fresh cross-compiler works.
 
5045
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5046
  # <limits.h> exists even on freestanding compilers.
 
5047
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5048
  # not just through cpp. "Syntax error" is here to catch this case.
 
5049
  cat >conftest.$ac_ext <<_ACEOF
 
5050
/* confdefs.h.  */
 
5051
_ACEOF
 
5052
cat confdefs.h >>conftest.$ac_ext
 
5053
cat >>conftest.$ac_ext <<_ACEOF
 
5054
/* end confdefs.h.  */
 
5055
@%:@ifdef __STDC__
 
5056
@%:@ include <limits.h>
 
5057
@%:@else
 
5058
@%:@ include <assert.h>
 
5059
@%:@endif
 
5060
                     Syntax error
 
5061
_ACEOF
 
5062
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5063
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5064
  ac_status=$?
 
5065
  grep -v '^ *+' conftest.er1 >conftest.err
 
5066
  rm -f conftest.er1
 
5067
  cat conftest.err >&5
 
5068
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5069
  (exit $ac_status); } >/dev/null; then
 
5070
  if test -s conftest.err; then
 
5071
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
5072
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
5073
  else
 
5074
    ac_cpp_err=
 
5075
  fi
 
5076
else
 
5077
  ac_cpp_err=yes
 
5078
fi
 
5079
if test -z "$ac_cpp_err"; then
 
5080
  :
 
5081
else
 
5082
  echo "$as_me: failed program was:" >&5
 
5083
sed 's/^/| /' conftest.$ac_ext >&5
 
5084
 
 
5085
  # Broken: fails on valid input.
 
5086
continue
 
5087
fi
 
5088
rm -f conftest.err conftest.$ac_ext
 
5089
 
 
5090
  # OK, works on sane cases.  Now check whether non-existent headers
 
5091
  # can be detected and how.
 
5092
  cat >conftest.$ac_ext <<_ACEOF
 
5093
/* confdefs.h.  */
 
5094
_ACEOF
 
5095
cat confdefs.h >>conftest.$ac_ext
 
5096
cat >>conftest.$ac_ext <<_ACEOF
 
5097
/* end confdefs.h.  */
 
5098
@%:@include <ac_nonexistent.h>
 
5099
_ACEOF
 
5100
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5101
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5102
  ac_status=$?
 
5103
  grep -v '^ *+' conftest.er1 >conftest.err
 
5104
  rm -f conftest.er1
 
5105
  cat conftest.err >&5
 
5106
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5107
  (exit $ac_status); } >/dev/null; then
 
5108
  if test -s conftest.err; then
 
5109
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
5110
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
5111
  else
 
5112
    ac_cpp_err=
 
5113
  fi
 
5114
else
 
5115
  ac_cpp_err=yes
 
5116
fi
 
5117
if test -z "$ac_cpp_err"; then
 
5118
  # Broken: success on invalid input.
 
5119
continue
 
5120
else
 
5121
  echo "$as_me: failed program was:" >&5
 
5122
sed 's/^/| /' conftest.$ac_ext >&5
 
5123
 
 
5124
  # Passes both tests.
 
5125
ac_preproc_ok=:
 
5126
break
 
5127
fi
 
5128
rm -f conftest.err conftest.$ac_ext
 
5129
 
 
5130
done
 
5131
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5132
rm -f conftest.err conftest.$ac_ext
 
5133
if $ac_preproc_ok; then
 
5134
  break
 
5135
fi
 
5136
 
 
5137
    done
 
5138
    ac_cv_prog_CXXCPP=$CXXCPP
 
5139
  
 
5140
fi
 
5141
  CXXCPP=$ac_cv_prog_CXXCPP
 
5142
else
 
5143
  ac_cv_prog_CXXCPP=$CXXCPP
 
5144
fi
 
5145
echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
5146
echo "${ECHO_T}$CXXCPP" >&6
 
5147
ac_preproc_ok=false
 
5148
for ac_cxx_preproc_warn_flag in '' yes
 
5149
do
 
5150
  # Use a header file that comes with gcc, so configuring glibc
 
5151
  # with a fresh cross-compiler works.
 
5152
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5153
  # <limits.h> exists even on freestanding compilers.
 
5154
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5155
  # not just through cpp. "Syntax error" is here to catch this case.
 
5156
  cat >conftest.$ac_ext <<_ACEOF
 
5157
/* confdefs.h.  */
 
5158
_ACEOF
 
5159
cat confdefs.h >>conftest.$ac_ext
 
5160
cat >>conftest.$ac_ext <<_ACEOF
 
5161
/* end confdefs.h.  */
 
5162
@%:@ifdef __STDC__
 
5163
@%:@ include <limits.h>
 
5164
@%:@else
 
5165
@%:@ include <assert.h>
 
5166
@%:@endif
 
5167
                     Syntax error
 
5168
_ACEOF
 
5169
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5170
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5171
  ac_status=$?
 
5172
  grep -v '^ *+' conftest.er1 >conftest.err
 
5173
  rm -f conftest.er1
 
5174
  cat conftest.err >&5
 
5175
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5176
  (exit $ac_status); } >/dev/null; then
 
5177
  if test -s conftest.err; then
 
5178
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
5179
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
5180
  else
 
5181
    ac_cpp_err=
 
5182
  fi
 
5183
else
 
5184
  ac_cpp_err=yes
 
5185
fi
 
5186
if test -z "$ac_cpp_err"; then
 
5187
  :
 
5188
else
 
5189
  echo "$as_me: failed program was:" >&5
 
5190
sed 's/^/| /' conftest.$ac_ext >&5
 
5191
 
 
5192
  # Broken: fails on valid input.
 
5193
continue
 
5194
fi
 
5195
rm -f conftest.err conftest.$ac_ext
 
5196
 
 
5197
  # OK, works on sane cases.  Now check whether non-existent headers
 
5198
  # can be detected and how.
 
5199
  cat >conftest.$ac_ext <<_ACEOF
 
5200
/* confdefs.h.  */
 
5201
_ACEOF
 
5202
cat confdefs.h >>conftest.$ac_ext
 
5203
cat >>conftest.$ac_ext <<_ACEOF
 
5204
/* end confdefs.h.  */
 
5205
@%:@include <ac_nonexistent.h>
 
5206
_ACEOF
 
5207
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5208
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5209
  ac_status=$?
 
5210
  grep -v '^ *+' conftest.er1 >conftest.err
 
5211
  rm -f conftest.er1
 
5212
  cat conftest.err >&5
 
5213
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5214
  (exit $ac_status); } >/dev/null; then
 
5215
  if test -s conftest.err; then
 
5216
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
5217
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
5218
  else
 
5219
    ac_cpp_err=
 
5220
  fi
 
5221
else
 
5222
  ac_cpp_err=yes
 
5223
fi
 
5224
if test -z "$ac_cpp_err"; then
 
5225
  # Broken: success on invalid input.
 
5226
continue
 
5227
else
 
5228
  echo "$as_me: failed program was:" >&5
 
5229
sed 's/^/| /' conftest.$ac_ext >&5
 
5230
 
 
5231
  # Passes both tests.
 
5232
ac_preproc_ok=:
 
5233
break
 
5234
fi
 
5235
rm -f conftest.err conftest.$ac_ext
 
5236
 
 
5237
done
 
5238
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5239
rm -f conftest.err conftest.$ac_ext
 
5240
if $ac_preproc_ok; then
 
5241
  :
 
5242
else
 
5243
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
5244
See \`config.log' for more details." >&5
 
5245
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
5246
See \`config.log' for more details." >&2;}
 
5247
   { (exit 1); exit 1; }; }
 
5248
fi
 
5249
 
 
5250
ac_ext=cc
 
5251
ac_cpp='$CXXCPP $CPPFLAGS'
 
5252
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5253
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5254
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5255
 
 
5256
fi
 
5257
 
 
5258
 
 
5259
ac_ext=f
 
5260
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
5261
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5262
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
5263
if test -n "$ac_tool_prefix"; then
 
5264
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
5265
  do
 
5266
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5267
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5268
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5269
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5270
if test "${ac_cv_prog_F77+set}" = set; then
 
5271
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5272
else
 
5273
  if test -n "$F77"; then
 
5274
  ac_cv_prog_F77="$F77" # Let the user override the test.
 
5275
else
 
5276
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5277
for as_dir in $PATH
 
5278
do
 
5279
  IFS=$as_save_IFS
 
5280
  test -z "$as_dir" && as_dir=.
 
5281
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5282
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5283
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
 
5284
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5285
    break 2
 
5286
  fi
 
5287
done
 
5288
done
 
5289
 
 
5290
fi
 
5291
fi
 
5292
F77=$ac_cv_prog_F77
 
5293
if test -n "$F77"; then
 
5294
  echo "$as_me:$LINENO: result: $F77" >&5
 
5295
echo "${ECHO_T}$F77" >&6
 
5296
else
 
5297
  echo "$as_me:$LINENO: result: no" >&5
 
5298
echo "${ECHO_T}no" >&6
 
5299
fi
 
5300
 
 
5301
    test -n "$F77" && break
 
5302
  done
 
5303
fi
 
5304
if test -z "$F77"; then
 
5305
  ac_ct_F77=$F77
 
5306
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
5307
do
 
5308
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5309
set dummy $ac_prog; ac_word=$2
 
5310
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5311
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5312
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
 
5313
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5314
else
 
5315
  if test -n "$ac_ct_F77"; then
 
5316
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
 
5317
else
 
5318
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5319
for as_dir in $PATH
 
5320
do
 
5321
  IFS=$as_save_IFS
 
5322
  test -z "$as_dir" && as_dir=.
 
5323
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5324
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5325
    ac_cv_prog_ac_ct_F77="$ac_prog"
 
5326
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5327
    break 2
 
5328
  fi
 
5329
done
 
5330
done
 
5331
 
 
5332
fi
 
5333
fi
 
5334
ac_ct_F77=$ac_cv_prog_ac_ct_F77
 
5335
if test -n "$ac_ct_F77"; then
 
5336
  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
5337
echo "${ECHO_T}$ac_ct_F77" >&6
 
5338
else
 
5339
  echo "$as_me:$LINENO: result: no" >&5
 
5340
echo "${ECHO_T}no" >&6
 
5341
fi
 
5342
 
 
5343
  test -n "$ac_ct_F77" && break
 
5344
done
 
5345
 
 
5346
  F77=$ac_ct_F77
 
5347
fi
 
5348
 
 
5349
 
 
5350
# Provide some information about the compiler.
 
5351
echo "$as_me:__oline__:" \
 
5352
     "checking for Fortran 77 compiler version" >&5
 
5353
ac_compiler=`set X $ac_compile; echo $2`
 
5354
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
5355
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
5356
  ac_status=$?
 
5357
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5358
  (exit $ac_status); }
 
5359
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
5360
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
5361
  ac_status=$?
 
5362
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5363
  (exit $ac_status); }
 
5364
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
5365
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
5366
  ac_status=$?
 
5367
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5368
  (exit $ac_status); }
 
5369
rm -f a.out
 
5370
 
 
5371
# If we don't use `.F' as extension, the preprocessor is not run on the
 
5372
# input file.  (Note that this only needs to work for GNU compilers.)
 
5373
ac_save_ext=$ac_ext
 
5374
ac_ext=F
 
5375
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
5376
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
 
5377
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
 
5378
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5379
else
 
5380
  cat >conftest.$ac_ext <<_ACEOF
 
5381
      program main
 
5382
#ifndef __GNUC__
 
5383
       choke me
 
5384
#endif
 
5385
 
 
5386
      end
 
5387
_ACEOF
 
5388
rm -f conftest.$ac_objext
 
5389
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5390
  (eval $ac_compile) 2>conftest.er1
 
5391
  ac_status=$?
 
5392
  grep -v '^ *+' conftest.er1 >conftest.err
 
5393
  rm -f conftest.er1
 
5394
  cat conftest.err >&5
 
5395
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5396
  (exit $ac_status); } &&
 
5397
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
5398
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5399
  (eval $ac_try) 2>&5
 
5400
  ac_status=$?
 
5401
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5402
  (exit $ac_status); }; } &&
 
5403
         { ac_try='test -s conftest.$ac_objext'
 
5404
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5405
  (eval $ac_try) 2>&5
 
5406
  ac_status=$?
 
5407
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5408
  (exit $ac_status); }; }; then
 
5409
  ac_compiler_gnu=yes
 
5410
else
 
5411
  echo "$as_me: failed program was:" >&5
 
5412
sed 's/^/| /' conftest.$ac_ext >&5
 
5413
 
 
5414
ac_compiler_gnu=no
 
5415
fi
 
5416
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5417
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
 
5418
 
 
5419
fi
 
5420
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
5421
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
 
5422
ac_ext=$ac_save_ext
 
5423
ac_test_FFLAGS=${FFLAGS+set}
 
5424
ac_save_FFLAGS=$FFLAGS
 
5425
FFLAGS=
 
5426
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
5427
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
 
5428
if test "${ac_cv_prog_f77_g+set}" = set; then
 
5429
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5430
else
 
5431
  FFLAGS=-g
 
5432
cat >conftest.$ac_ext <<_ACEOF
 
5433
      program main
 
5434
 
 
5435
      end
 
5436
_ACEOF
 
5437
rm -f conftest.$ac_objext
 
5438
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5439
  (eval $ac_compile) 2>conftest.er1
 
5440
  ac_status=$?
 
5441
  grep -v '^ *+' conftest.er1 >conftest.err
 
5442
  rm -f conftest.er1
 
5443
  cat conftest.err >&5
 
5444
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5445
  (exit $ac_status); } &&
 
5446
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
5447
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5448
  (eval $ac_try) 2>&5
 
5449
  ac_status=$?
 
5450
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5451
  (exit $ac_status); }; } &&
 
5452
         { ac_try='test -s conftest.$ac_objext'
 
5453
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5454
  (eval $ac_try) 2>&5
 
5455
  ac_status=$?
 
5456
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5457
  (exit $ac_status); }; }; then
 
5458
  ac_cv_prog_f77_g=yes
 
5459
else
 
5460
  echo "$as_me: failed program was:" >&5
 
5461
sed 's/^/| /' conftest.$ac_ext >&5
 
5462
 
 
5463
ac_cv_prog_f77_g=no
 
5464
fi
 
5465
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5466
 
 
5467
fi
 
5468
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
5469
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
 
5470
if test "$ac_test_FFLAGS" = set; then
 
5471
  FFLAGS=$ac_save_FFLAGS
 
5472
elif test $ac_cv_prog_f77_g = yes; then
 
5473
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
5474
    FFLAGS="-g -O2"
 
5475
  else
 
5476
    FFLAGS="-g"
 
5477
  fi
 
5478
else
 
5479
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
5480
    FFLAGS="-O2"
 
5481
  else
 
5482
    FFLAGS=
 
5483
  fi
 
5484
fi
 
5485
 
 
5486
G77=`test $ac_compiler_gnu = yes && echo yes`
 
5487
ac_ext=c
 
5488
ac_cpp='$CPP $CPPFLAGS'
 
5489
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5490
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5491
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5492
 
 
5493
 
 
5494
 
 
5495
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
5496
 
 
5497
# find the maximum length of command line arguments
 
5498
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
5499
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
 
5500
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
5501
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5502
else
 
5503
    i=0
 
5504
  teststring="ABCD"
 
5505
 
 
5506
  case $build_os in
 
5507
  msdosdjgpp*)
 
5508
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
5509
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
5510
    # during glob expansion).  Even if it were fixed, the result of this
 
5511
    # check would be larger than it should be.
 
5512
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
5513
    ;;
 
5514
 
 
5515
  gnu*)
 
5516
    # Under GNU Hurd, this test is not required because there is
 
5517
    # no limit to the length of command line arguments.
 
5518
    # Libtool will interpret -1 as no limit whatsoever
 
5519
    lt_cv_sys_max_cmd_len=-1;
 
5520
    ;;
 
5521
 
 
5522
  cygwin* | mingw*)
 
5523
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
5524
    # about 5 minutes as the teststring grows exponentially.
 
5525
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
5526
    # you end up with a "frozen" computer, even though with patience
 
5527
    # the test eventually succeeds (with a max line length of 256k).
 
5528
    # Instead, let's just punt: use the minimum linelength reported by
 
5529
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
5530
    lt_cv_sys_max_cmd_len=8192;
 
5531
    ;;
 
5532
 
 
5533
  amigaos*)
 
5534
    # On AmigaOS with pdksh, this test takes hours, literally.
 
5535
    # So we just punt and use a minimum line length of 8192.
 
5536
    lt_cv_sys_max_cmd_len=8192;
 
5537
    ;;
 
5538
 
 
5539
  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 
5540
    # This has been around since 386BSD, at least.  Likely further.
 
5541
    if test -x /sbin/sysctl; then
 
5542
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
5543
    elif test -x /usr/sbin/sysctl; then
 
5544
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
5545
    else
 
5546
      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
 
5547
    fi
 
5548
    # And add a safety zone
 
5549
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
5550
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
 
5551
    ;;
 
5552
  osf*)
 
5553
    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
 
5554
    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
 
5555
    # nice to cause kernel panics so lets avoid the loop below.
 
5556
    # First set a reasonable default.
 
5557
    lt_cv_sys_max_cmd_len=16384
 
5558
    #
 
5559
    if test -x /sbin/sysconfig; then
 
5560
      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
 
5561
        *1*) lt_cv_sys_max_cmd_len=-1 ;;
 
5562
      esac
 
5563
    fi
 
5564
    ;;
 
5565
  *)
 
5566
    # If test is not a shell built-in, we'll probably end up computing a
 
5567
    # maximum length that is only half of the actual maximum length, but
 
5568
    # we can't tell.
 
5569
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
5570
    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
5571
               = "XX$teststring") >/dev/null 2>&1 &&
 
5572
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
5573
            lt_cv_sys_max_cmd_len=$new_result &&
 
5574
            test $i != 17 # 1/2 MB should be enough
 
5575
    do
 
5576
      i=`expr $i + 1`
 
5577
      teststring=$teststring$teststring
 
5578
    done
 
5579
    teststring=
 
5580
    # Add a significant safety factor because C++ compilers can tack on massive
 
5581
    # amounts of additional arguments before passing them to the linker.
 
5582
    # It appears as though 1/2 is a usable value.
 
5583
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
5584
    ;;
 
5585
  esac
 
5586
 
 
5587
fi
 
5588
 
 
5589
if test -n $lt_cv_sys_max_cmd_len ; then
 
5590
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
5591
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
 
5592
else
 
5593
  echo "$as_me:$LINENO: result: none" >&5
 
5594
echo "${ECHO_T}none" >&6
 
5595
fi
 
5596
 
 
5597
 
 
5598
 
 
5599
 
 
5600
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
5601
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
5602
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
 
5603
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
5604
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5605
else
 
5606
  
 
5607
# These are sane defaults that work on at least a few old systems.
 
5608
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
5609
 
 
5610
# Character class describing NM global symbol codes.
 
5611
symcode='[BCDEGRST]'
 
5612
 
 
5613
# Regexp to match symbols that can be accessed directly from C.
 
5614
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
5615
 
 
5616
# Transform an extracted symbol line into a proper C declaration
 
5617
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
5618
 
 
5619
# Transform an extracted symbol line into symbol name and symbol address
 
5620
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'"
 
5621
 
 
5622
# Define system-specific variables.
 
5623
case $host_os in
 
5624
aix*)
 
5625
  symcode='[BCDT]'
 
5626
  ;;
 
5627
cygwin* | mingw* | pw32*)
 
5628
  symcode='[ABCDGISTW]'
 
5629
  ;;
 
5630
hpux*) # Its linker distinguishes data from code symbols
 
5631
  if test "$host_cpu" = ia64; then
 
5632
    symcode='[ABCDEGRST]'
 
5633
  fi
 
5634
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
5635
  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'"
 
5636
  ;;
 
5637
linux*)
 
5638
  if test "$host_cpu" = ia64; then
 
5639
    symcode='[ABCDGIRSTW]'
 
5640
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
5641
    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'"
 
5642
  fi
 
5643
  ;;
 
5644
irix* | nonstopux*)
 
5645
  symcode='[BCDEGRST]'
 
5646
  ;;
 
5647
osf*)
 
5648
  symcode='[BCDEGQRST]'
 
5649
  ;;
 
5650
solaris* | sysv5*)
 
5651
  symcode='[BDRT]'
 
5652
  ;;
 
5653
sysv4)
 
5654
  symcode='[DFNSTU]'
 
5655
  ;;
 
5656
esac
 
5657
 
 
5658
# Handle CRLF in mingw tool chain
 
5659
opt_cr=
 
5660
case $build_os in
 
5661
mingw*)
 
5662
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
5663
  ;;
 
5664
esac
 
5665
 
 
5666
# If we're using GNU nm, then use its standard symbol codes.
 
5667
case `$NM -V 2>&1` in
 
5668
*GNU* | *'with BFD'*)
 
5669
  symcode='[ABCDGIRSTW]' ;;
 
5670
esac
 
5671
 
 
5672
# Try without a prefix undercore, then with it.
 
5673
for ac_symprfx in "" "_"; do
 
5674
 
 
5675
  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
 
5676
  symxfrm="\\1 $ac_symprfx\\2 \\2"
 
5677
 
 
5678
  # Write the raw and C identifiers.
 
5679
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
 
5680
 
 
5681
  # Check to see that the pipe works correctly.
 
5682
  pipe_works=no
 
5683
 
 
5684
  rm -f conftest*
 
5685
  cat > conftest.$ac_ext <<EOF
 
5686
#ifdef __cplusplus
 
5687
extern "C" {
 
5688
#endif
 
5689
char nm_test_var;
 
5690
void nm_test_func(){}
 
5691
#ifdef __cplusplus
 
5692
}
 
5693
#endif
 
5694
int main(){nm_test_var='a';nm_test_func();return(0);}
 
5695
EOF
 
5696
 
 
5697
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5698
  (eval $ac_compile) 2>&5
 
5699
  ac_status=$?
 
5700
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5701
  (exit $ac_status); }; then
 
5702
    # Now try to grab the symbols.
 
5703
    nlist=conftest.nm
 
5704
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
5705
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
5706
  ac_status=$?
 
5707
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5708
  (exit $ac_status); } && test -s "$nlist"; then
 
5709
      # Try sorting and uniquifying the output.
 
5710
      if sort "$nlist" | uniq > "$nlist"T; then
 
5711
        mv -f "$nlist"T "$nlist"
 
5712
      else
 
5713
        rm -f "$nlist"T
 
5714
      fi
 
5715
 
 
5716
      # Make sure that we snagged all the symbols we need.
 
5717
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
5718
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
 
5719
          cat <<EOF > conftest.$ac_ext
 
5720
#ifdef __cplusplus
 
5721
extern "C" {
 
5722
#endif
 
5723
 
 
5724
EOF
 
5725
          # Now generate the symbol file.
 
5726
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 
5727
 
 
5728
          cat <<EOF >> conftest.$ac_ext
 
5729
#if defined (__STDC__) && __STDC__
 
5730
# define lt_ptr_t void *
 
5731
#else
 
5732
# define lt_ptr_t char *
 
5733
# define const
 
5734
#endif
 
5735
 
 
5736
/* The mapping between symbol names and symbols. */
 
5737
const struct {
 
5738
  const char *name;
 
5739
  lt_ptr_t address;
 
5740
}
 
5741
lt_preloaded_symbols[] =
 
5742
{
 
5743
EOF
 
5744
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 
5745
          cat <<\EOF >> conftest.$ac_ext
 
5746
  {0, (lt_ptr_t) 0}
 
5747
};
 
5748
 
 
5749
#ifdef __cplusplus
 
5750
}
 
5751
#endif
 
5752
EOF
 
5753
          # Now try linking the two files.
 
5754
          mv conftest.$ac_objext conftstm.$ac_objext
 
5755
          lt_save_LIBS="$LIBS"
 
5756
          lt_save_CFLAGS="$CFLAGS"
 
5757
          LIBS="conftstm.$ac_objext"
 
5758
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
5759
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5760
  (eval $ac_link) 2>&5
 
5761
  ac_status=$?
 
5762
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5763
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
 
5764
            pipe_works=yes
 
5765
          fi
 
5766
          LIBS="$lt_save_LIBS"
 
5767
          CFLAGS="$lt_save_CFLAGS"
 
5768
        else
 
5769
          echo "cannot find nm_test_func in $nlist" >&5
 
5770
        fi
 
5771
      else
 
5772
        echo "cannot find nm_test_var in $nlist" >&5
 
5773
      fi
 
5774
    else
 
5775
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
5776
    fi
 
5777
  else
 
5778
    echo "$progname: failed program was:" >&5
 
5779
    cat conftest.$ac_ext >&5
 
5780
  fi
 
5781
  rm -f conftest* conftst*
 
5782
 
 
5783
  # Do not use the global_symbol_pipe unless it works.
 
5784
  if test "$pipe_works" = yes; then
 
5785
    break
 
5786
  else
 
5787
    lt_cv_sys_global_symbol_pipe=
 
5788
  fi
 
5789
done
 
5790
 
 
5791
fi
 
5792
 
 
5793
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
5794
  lt_cv_sys_global_symbol_to_cdecl=
 
5795
fi
 
5796
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
5797
  echo "$as_me:$LINENO: result: failed" >&5
 
5798
echo "${ECHO_T}failed" >&6
 
5799
else
 
5800
  echo "$as_me:$LINENO: result: ok" >&5
 
5801
echo "${ECHO_T}ok" >&6
 
5802
fi
 
5803
 
 
5804
echo "$as_me:$LINENO: checking for objdir" >&5
 
5805
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
 
5806
if test "${lt_cv_objdir+set}" = set; then
 
5807
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5808
else
 
5809
  rm -f .libs 2>/dev/null
 
5810
mkdir .libs 2>/dev/null
 
5811
if test -d .libs; then
 
5812
  lt_cv_objdir=.libs
 
5813
else
 
5814
  # MS-DOS does not allow filenames that begin with a dot.
 
5815
  lt_cv_objdir=_libs
 
5816
fi
 
5817
rmdir .libs 2>/dev/null
 
5818
fi
 
5819
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
5820
echo "${ECHO_T}$lt_cv_objdir" >&6
 
5821
objdir=$lt_cv_objdir
 
5822
 
 
5823
 
 
5824
 
 
5825
 
 
5826
 
 
5827
case $host_os in
 
5828
aix3*)
 
5829
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
5830
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
5831
  # vanish in a puff of smoke.
 
5832
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
5833
    COLLECT_NAMES=
 
5834
    export COLLECT_NAMES
 
5835
  fi
 
5836
  ;;
 
5837
esac
 
5838
 
 
5839
# Sed substitution that helps us do robust quoting.  It backslashifies
 
5840
# metacharacters that are still active within double-quoted strings.
 
5841
Xsed='sed -e 1s/^X//'
 
5842
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
5843
 
 
5844
# Same as above, but do not quote variable references.
 
5845
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
5846
 
 
5847
# Sed substitution to delay expansion of an escaped shell variable in a
 
5848
# double_quote_subst'ed string.
 
5849
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
5850
 
 
5851
# Sed substitution to avoid accidental globbing in evaled expressions
 
5852
no_glob_subst='s/\*/\\\*/g'
 
5853
 
 
5854
# Constants:
 
5855
rm="rm -f"
 
5856
 
 
5857
# Global variables:
 
5858
default_ofile=libtool
 
5859
can_build_shared=yes
 
5860
 
 
5861
# All known linkers require a `.a' archive for static linking (except MSVC,
 
5862
# which needs '.lib').
 
5863
libext=a
 
5864
ltmain="$ac_aux_dir/ltmain.sh"
 
5865
ofile="$default_ofile"
 
5866
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
5867
 
 
5868
if test -n "$ac_tool_prefix"; then
 
5869
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
5870
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
5871
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5872
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5873
if test "${ac_cv_prog_AR+set}" = set; then
 
5874
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5875
else
 
5876
  if test -n "$AR"; then
 
5877
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
5878
else
 
5879
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5880
for as_dir in $PATH
 
5881
do
 
5882
  IFS=$as_save_IFS
 
5883
  test -z "$as_dir" && as_dir=.
 
5884
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5885
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5886
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
5887
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5888
    break 2
 
5889
  fi
 
5890
done
 
5891
done
 
5892
 
 
5893
fi
 
5894
fi
 
5895
AR=$ac_cv_prog_AR
 
5896
if test -n "$AR"; then
 
5897
  echo "$as_me:$LINENO: result: $AR" >&5
 
5898
echo "${ECHO_T}$AR" >&6
 
5899
else
 
5900
  echo "$as_me:$LINENO: result: no" >&5
 
5901
echo "${ECHO_T}no" >&6
 
5902
fi
 
5903
 
 
5904
fi
 
5905
if test -z "$ac_cv_prog_AR"; then
 
5906
  ac_ct_AR=$AR
 
5907
  # Extract the first word of "ar", so it can be a program name with args.
 
5908
set dummy ar; ac_word=$2
 
5909
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5910
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5911
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
5912
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5913
else
 
5914
  if test -n "$ac_ct_AR"; then
 
5915
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
5916
else
 
5917
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5918
for as_dir in $PATH
 
5919
do
 
5920
  IFS=$as_save_IFS
 
5921
  test -z "$as_dir" && as_dir=.
 
5922
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5923
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5924
    ac_cv_prog_ac_ct_AR="ar"
 
5925
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5926
    break 2
 
5927
  fi
 
5928
done
 
5929
done
 
5930
 
 
5931
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
 
5932
fi
 
5933
fi
 
5934
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
5935
if test -n "$ac_ct_AR"; then
 
5936
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
5937
echo "${ECHO_T}$ac_ct_AR" >&6
 
5938
else
 
5939
  echo "$as_me:$LINENO: result: no" >&5
 
5940
echo "${ECHO_T}no" >&6
 
5941
fi
 
5942
 
 
5943
  AR=$ac_ct_AR
 
5944
else
 
5945
  AR="$ac_cv_prog_AR"
 
5946
fi
 
5947
 
 
5948
if test -n "$ac_tool_prefix"; then
 
5949
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
5950
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
5951
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5952
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5953
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
5954
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5955
else
 
5956
  if test -n "$RANLIB"; then
 
5957
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
5958
else
 
5959
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5960
for as_dir in $PATH
 
5961
do
 
5962
  IFS=$as_save_IFS
 
5963
  test -z "$as_dir" && as_dir=.
 
5964
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5965
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5966
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
5967
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5968
    break 2
 
5969
  fi
 
5970
done
 
5971
done
 
5972
 
 
5973
fi
 
5974
fi
 
5975
RANLIB=$ac_cv_prog_RANLIB
 
5976
if test -n "$RANLIB"; then
 
5977
  echo "$as_me:$LINENO: result: $RANLIB" >&5
 
5978
echo "${ECHO_T}$RANLIB" >&6
 
5979
else
 
5980
  echo "$as_me:$LINENO: result: no" >&5
 
5981
echo "${ECHO_T}no" >&6
 
5982
fi
 
5983
 
 
5984
fi
 
5985
if test -z "$ac_cv_prog_RANLIB"; then
 
5986
  ac_ct_RANLIB=$RANLIB
 
5987
  # Extract the first word of "ranlib", so it can be a program name with args.
 
5988
set dummy ranlib; ac_word=$2
 
5989
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5990
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5991
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
5992
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5993
else
 
5994
  if test -n "$ac_ct_RANLIB"; then
 
5995
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
5996
else
 
5997
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5998
for as_dir in $PATH
 
5999
do
 
6000
  IFS=$as_save_IFS
 
6001
  test -z "$as_dir" && as_dir=.
 
6002
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6003
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6004
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
6005
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6006
    break 2
 
6007
  fi
 
6008
done
 
6009
done
 
6010
 
 
6011
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
 
6012
fi
 
6013
fi
 
6014
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
6015
if test -n "$ac_ct_RANLIB"; then
 
6016
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
6017
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
6018
else
 
6019
  echo "$as_me:$LINENO: result: no" >&5
 
6020
echo "${ECHO_T}no" >&6
 
6021
fi
 
6022
 
 
6023
  RANLIB=$ac_ct_RANLIB
 
6024
else
 
6025
  RANLIB="$ac_cv_prog_RANLIB"
 
6026
fi
 
6027
 
 
6028
if test -n "$ac_tool_prefix"; then
 
6029
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
6030
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
6031
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6032
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6033
if test "${ac_cv_prog_STRIP+set}" = set; then
 
6034
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6035
else
 
6036
  if test -n "$STRIP"; then
 
6037
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
6038
else
 
6039
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6040
for as_dir in $PATH
 
6041
do
 
6042
  IFS=$as_save_IFS
 
6043
  test -z "$as_dir" && as_dir=.
 
6044
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6045
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6046
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
6047
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6048
    break 2
 
6049
  fi
 
6050
done
 
6051
done
 
6052
 
 
6053
fi
 
6054
fi
 
6055
STRIP=$ac_cv_prog_STRIP
 
6056
if test -n "$STRIP"; then
 
6057
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
6058
echo "${ECHO_T}$STRIP" >&6
 
6059
else
 
6060
  echo "$as_me:$LINENO: result: no" >&5
 
6061
echo "${ECHO_T}no" >&6
 
6062
fi
 
6063
 
 
6064
fi
 
6065
if test -z "$ac_cv_prog_STRIP"; then
 
6066
  ac_ct_STRIP=$STRIP
 
6067
  # Extract the first word of "strip", so it can be a program name with args.
 
6068
set dummy strip; ac_word=$2
 
6069
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6070
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6071
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
6072
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6073
else
 
6074
  if test -n "$ac_ct_STRIP"; then
 
6075
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
6076
else
 
6077
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6078
for as_dir in $PATH
 
6079
do
 
6080
  IFS=$as_save_IFS
 
6081
  test -z "$as_dir" && as_dir=.
 
6082
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6083
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6084
    ac_cv_prog_ac_ct_STRIP="strip"
 
6085
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6086
    break 2
 
6087
  fi
 
6088
done
 
6089
done
 
6090
 
 
6091
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
6092
fi
 
6093
fi
 
6094
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
6095
if test -n "$ac_ct_STRIP"; then
 
6096
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
6097
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
6098
else
 
6099
  echo "$as_me:$LINENO: result: no" >&5
 
6100
echo "${ECHO_T}no" >&6
 
6101
fi
 
6102
 
 
6103
  STRIP=$ac_ct_STRIP
 
6104
else
 
6105
  STRIP="$ac_cv_prog_STRIP"
 
6106
fi
 
6107
 
 
6108
 
 
6109
old_CC="$CC"
 
6110
old_CFLAGS="$CFLAGS"
 
6111
 
 
6112
# Set sane defaults for various variables
 
6113
test -z "$AR" && AR=ar
 
6114
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
6115
test -z "$AS" && AS=as
 
6116
test -z "$CC" && CC=cc
 
6117
test -z "$LTCC" && LTCC=$CC
 
6118
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
6119
test -z "$LD" && LD=ld
 
6120
test -z "$LN_S" && LN_S="ln -s"
 
6121
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
6122
test -z "$NM" && NM=nm
 
6123
test -z "$SED" && SED=sed
 
6124
test -z "$OBJDUMP" && OBJDUMP=objdump
 
6125
test -z "$RANLIB" && RANLIB=:
 
6126
test -z "$STRIP" && STRIP=:
 
6127
test -z "$ac_objext" && ac_objext=o
 
6128
 
 
6129
# Determine commands to create old-style static archives.
 
6130
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
6131
old_postinstall_cmds='chmod 644 $oldlib'
 
6132
old_postuninstall_cmds=
 
6133
 
 
6134
if test -n "$RANLIB"; then
 
6135
  case $host_os in
 
6136
  openbsd*)
 
6137
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 
6138
    ;;
 
6139
  *)
 
6140
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 
6141
    ;;
 
6142
  esac
 
6143
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
6144
fi
 
6145
 
 
6146
for cc_temp in $compiler""; do
 
6147
  case $cc_temp in
 
6148
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
6149
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
6150
    \-*) ;;
 
6151
    *) break;;
 
6152
  esac
 
6153
done
 
6154
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
6155
 
 
6156
 
 
6157
# Only perform the check for file, if the check method requires it
 
6158
case $deplibs_check_method in
 
6159
file_magic*)
 
6160
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
6161
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
6162
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
 
6163
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
6164
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6165
else
 
6166
  case $MAGIC_CMD in
 
6167
[\\/*] |  ?:[\\/]*)
 
6168
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
6169
  ;;
 
6170
*)
 
6171
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
6172
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
6173
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
6174
  for ac_dir in $ac_dummy; do
 
6175
    IFS="$lt_save_ifs"
 
6176
    test -z "$ac_dir" && ac_dir=.
 
6177
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
6178
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
6179
      if test -n "$file_magic_test_file"; then
 
6180
        case $deplibs_check_method in
 
6181
        "file_magic "*)
 
6182
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
6183
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6184
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
6185
            $EGREP "$file_magic_regex" > /dev/null; then
 
6186
            :
 
6187
          else
 
6188
            cat <<EOF 1>&2
 
6189
 
 
6190
*** Warning: the command libtool uses to detect shared libraries,
 
6191
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
6192
*** The result is that libtool may fail to recognize shared libraries
 
6193
*** as such.  This will affect the creation of libtool libraries that
 
6194
*** depend on shared libraries, but programs linked with such libtool
 
6195
*** libraries will work regardless of this problem.  Nevertheless, you
 
6196
*** may want to report the problem to your system manager and/or to
 
6197
*** bug-libtool@gnu.org
 
6198
 
 
6199
EOF
 
6200
          fi ;;
 
6201
        esac
 
6202
      fi
 
6203
      break
 
6204
    fi
 
6205
  done
 
6206
  IFS="$lt_save_ifs"
 
6207
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
6208
  ;;
 
6209
esac
 
6210
fi
 
6211
 
 
6212
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6213
if test -n "$MAGIC_CMD"; then
 
6214
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
6215
echo "${ECHO_T}$MAGIC_CMD" >&6
 
6216
else
 
6217
  echo "$as_me:$LINENO: result: no" >&5
 
6218
echo "${ECHO_T}no" >&6
 
6219
fi
 
6220
 
 
6221
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
6222
  if test -n "$ac_tool_prefix"; then
 
6223
    echo "$as_me:$LINENO: checking for file" >&5
 
6224
echo $ECHO_N "checking for file... $ECHO_C" >&6
 
6225
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
6226
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6227
else
 
6228
  case $MAGIC_CMD in
 
6229
[\\/*] |  ?:[\\/]*)
 
6230
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
6231
  ;;
 
6232
*)
 
6233
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
6234
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
6235
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
6236
  for ac_dir in $ac_dummy; do
 
6237
    IFS="$lt_save_ifs"
 
6238
    test -z "$ac_dir" && ac_dir=.
 
6239
    if test -f $ac_dir/file; then
 
6240
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
6241
      if test -n "$file_magic_test_file"; then
 
6242
        case $deplibs_check_method in
 
6243
        "file_magic "*)
 
6244
          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
 
6245
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6246
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
6247
            $EGREP "$file_magic_regex" > /dev/null; then
 
6248
            :
 
6249
          else
 
6250
            cat <<EOF 1>&2
 
6251
 
 
6252
*** Warning: the command libtool uses to detect shared libraries,
 
6253
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
6254
*** The result is that libtool may fail to recognize shared libraries
 
6255
*** as such.  This will affect the creation of libtool libraries that
 
6256
*** depend on shared libraries, but programs linked with such libtool
 
6257
*** libraries will work regardless of this problem.  Nevertheless, you
 
6258
*** may want to report the problem to your system manager and/or to
 
6259
*** bug-libtool@gnu.org
 
6260
 
 
6261
EOF
 
6262
          fi ;;
 
6263
        esac
 
6264
      fi
 
6265
      break
 
6266
    fi
 
6267
  done
 
6268
  IFS="$lt_save_ifs"
 
6269
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
6270
  ;;
 
6271
esac
 
6272
fi
 
6273
 
 
6274
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6275
if test -n "$MAGIC_CMD"; then
 
6276
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
6277
echo "${ECHO_T}$MAGIC_CMD" >&6
 
6278
else
 
6279
  echo "$as_me:$LINENO: result: no" >&5
 
6280
echo "${ECHO_T}no" >&6
 
6281
fi
 
6282
 
 
6283
  else
 
6284
    MAGIC_CMD=:
 
6285
  fi
 
6286
fi
 
6287
 
 
6288
  fi
 
6289
  ;;
 
6290
esac
 
6291
 
 
6292
enable_dlopen=yes
 
6293
enable_win32_dll=no
 
6294
 
 
6295
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
6296
if test "${enable_libtool_lock+set}" = set; then
 
6297
  enableval="$enable_libtool_lock"
 
6298
  
 
6299
fi; 
 
6300
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
6301
 
 
6302
 
 
6303
# Check whether --with-pic or --without-pic was given.
 
6304
if test "${with_pic+set}" = set; then
 
6305
  withval="$with_pic"
 
6306
  pic_mode="$withval"
 
6307
else
 
6308
  pic_mode=default
 
6309
fi; 
 
6310
test -z "$pic_mode" && pic_mode=default
 
6311
 
 
6312
# Use C for the default configuration in the libtool script
 
6313
tagname=
 
6314
lt_save_CC="$CC"
 
6315
ac_ext=c
 
6316
ac_cpp='$CPP $CPPFLAGS'
 
6317
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6318
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6319
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6320
 
 
6321
 
 
6322
# Source file extension for C test sources.
 
6323
ac_ext=c
 
6324
 
 
6325
# Object file extension for compiled C test sources.
 
6326
objext=o
 
6327
objext=$objext
 
6328
 
 
6329
# Code to be used in simple compile tests
 
6330
lt_simple_compile_test_code="int some_variable = 0;\n"
 
6331
 
 
6332
# Code to be used in simple link tests
 
6333
lt_simple_link_test_code='int main(){return(0);}\n'
 
6334
 
 
6335
 
 
6336
# If no C compiler was specified, use CC.
 
6337
LTCC=${LTCC-"$CC"}
 
6338
 
 
6339
# Allow CC to be a program name with arguments.
 
6340
compiler=$CC
 
6341
 
 
6342
 
 
6343
# save warnings/boilerplate of simple test code
 
6344
ac_outfile=conftest.$ac_objext
 
6345
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
6346
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
6347
_lt_compiler_boilerplate=`cat conftest.err`
 
6348
$rm conftest*
 
6349
 
 
6350
ac_outfile=conftest.$ac_objext
 
6351
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
6352
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
6353
_lt_linker_boilerplate=`cat conftest.err`
 
6354
$rm conftest*
 
6355
 
 
6356
 
 
6357
#
 
6358
# Check for any special shared library compilation flags.
 
6359
#
 
6360
lt_prog_cc_shlib=
 
6361
if test "$GCC" = no; then
 
6362
  case $host_os in
 
6363
  sco3.2v5*)
 
6364
    lt_prog_cc_shlib='-belf'
 
6365
    ;;
 
6366
  esac
 
6367
fi
 
6368
if test -n "$lt_prog_cc_shlib"; then
 
6369
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
 
6370
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
 
6371
  if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
 
6372
  else
 
6373
    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
 
6374
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
 
6375
    lt_cv_prog_cc_can_build_shared=no
 
6376
  fi
 
6377
fi
 
6378
 
 
6379
 
 
6380
#
 
6381
# Check to make sure the static flag actually works.
 
6382
#
 
6383
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
 
6384
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
 
6385
if test "${lt_prog_compiler_static_works+set}" = set; then
 
6386
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6387
else
 
6388
  lt_prog_compiler_static_works=no
 
6389
   save_LDFLAGS="$LDFLAGS"
 
6390
   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
 
6391
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
6392
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
6393
     # The linker can only warn and ignore the option if not recognized
 
6394
     # So say no if there are warnings
 
6395
     if test -s conftest.err; then
 
6396
       # Append any errors to the config.log.
 
6397
       cat conftest.err 1>&5
 
6398
       $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
 
6399
       $SED '/^$/d' conftest.err >conftest.er2
 
6400
       if diff conftest.exp conftest.er2 >/dev/null; then
 
6401
         lt_prog_compiler_static_works=yes
 
6402
       fi
 
6403
     else
 
6404
       lt_prog_compiler_static_works=yes
 
6405
     fi
 
6406
   fi
 
6407
   $rm conftest*
 
6408
   LDFLAGS="$save_LDFLAGS"
 
6409
 
 
6410
fi
 
6411
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
 
6412
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
 
6413
 
 
6414
if test x"$lt_prog_compiler_static_works" = xyes; then
 
6415
    :
 
6416
else
 
6417
    lt_prog_compiler_static=
 
6418
fi
 
6419
 
 
6420
 
 
6421
 
 
6422
 
 
6423
lt_prog_compiler_no_builtin_flag=
 
6424
 
 
6425
if test "$GCC" = yes; then
 
6426
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
6427
 
 
6428
  
 
6429
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
6430
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
6431
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
6432
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6433
else
 
6434
  lt_cv_prog_compiler_rtti_exceptions=no
 
6435
  ac_outfile=conftest.$ac_objext
 
6436
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6437
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
6438
   # Insert the option either (1) after the last *FLAGS variable, or
 
6439
   # (2) before a word containing "conftest.", or (3) at the end.
 
6440
   # Note that $ac_compile itself does not contain backslashes and begins
 
6441
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
6442
   # The option is referenced via a variable to avoid confusing sed.
 
6443
   lt_compile=`echo "$ac_compile" | $SED \
 
6444
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
6445
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
6446
   -e 's:$: $lt_compiler_flag:'`
 
6447
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 
6448
   (eval "$lt_compile" 2>conftest.err)
 
6449
   ac_status=$?
 
6450
   cat conftest.err >&5
 
6451
   echo "$as_me:__oline__: \$? = $ac_status" >&5
 
6452
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
6453
     # The compiler can only warn and ignore the option if not recognized
 
6454
     # So say no if there are warnings other than the usual output.
 
6455
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
6456
     $SED '/^$/d' conftest.err >conftest.er2
 
6457
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
 
6458
       lt_cv_prog_compiler_rtti_exceptions=yes
 
6459
     fi
 
6460
   fi
 
6461
   $rm conftest*
 
6462
 
 
6463
fi
 
6464
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
6465
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
6466
 
 
6467
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
6468
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
6469
else
 
6470
    :
 
6471
fi
 
6472
 
 
6473
fi
 
6474
 
 
6475
lt_prog_compiler_wl=
 
6476
lt_prog_compiler_pic=
 
6477
lt_prog_compiler_static=
 
6478
 
 
6479
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
6480
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
6481
 
 
6482
  if test "$GCC" = yes; then
 
6483
    lt_prog_compiler_wl='-Wl,'
 
6484
    lt_prog_compiler_static='-static'
 
6485
 
 
6486
    case $host_os in
 
6487
      aix*)
 
6488
      # All AIX code is PIC.
 
6489
      if test "$host_cpu" = ia64; then
 
6490
        # AIX 5 now supports IA64 processor
 
6491
        lt_prog_compiler_static='-Bstatic'
 
6492
      fi
 
6493
      ;;
 
6494
 
 
6495
    amigaos*)
 
6496
      # FIXME: we need at least 68020 code to build shared libraries, but
 
6497
      # adding the `-m68020' flag to GCC prevents building anything better,
 
6498
      # like `-m68040'.
 
6499
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
6500
      ;;
 
6501
 
 
6502
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
6503
      # PIC is the default for these OSes.
 
6504
      ;;
 
6505
 
 
6506
    mingw* | pw32* | os2*)
 
6507
      # This hack is so that the source file can tell whether it is being
 
6508
      # built for inclusion in a dll (and should export symbols for example).
 
6509
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
6510
      ;;
 
6511
 
 
6512
    darwin* | rhapsody*)
 
6513
      # PIC is the default on this platform
 
6514
      # Common symbols not allowed in MH_DYLIB files
 
6515
      lt_prog_compiler_pic='-fno-common'
 
6516
      ;;
 
6517
 
 
6518
    msdosdjgpp*)
 
6519
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
6520
      # on systems that don't support them.
 
6521
      lt_prog_compiler_can_build_shared=no
 
6522
      enable_shared=no
 
6523
      ;;
 
6524
 
 
6525
    sysv4*MP*)
 
6526
      if test -d /usr/nec; then
 
6527
        lt_prog_compiler_pic=-Kconform_pic
 
6528
      fi
 
6529
      ;;
 
6530
 
 
6531
    hpux*)
 
6532
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
6533
      # not for PA HP-UX.
 
6534
      case $host_cpu in
 
6535
      hppa*64*|ia64*)
 
6536
        # +Z the default
 
6537
        ;;
 
6538
      *)
 
6539
        lt_prog_compiler_pic='-fPIC'
 
6540
        ;;
 
6541
      esac
 
6542
      ;;
 
6543
 
 
6544
    *)
 
6545
      lt_prog_compiler_pic='-fPIC'
 
6546
      ;;
 
6547
    esac
 
6548
  else
 
6549
    # PORTME Check for flag to pass linker flags through the system compiler.
 
6550
    case $host_os in
 
6551
    aix*)
 
6552
      lt_prog_compiler_wl='-Wl,'
 
6553
      if test "$host_cpu" = ia64; then
 
6554
        # AIX 5 now supports IA64 processor
 
6555
        lt_prog_compiler_static='-Bstatic'
 
6556
      else
 
6557
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
6558
      fi
 
6559
      ;;
 
6560
      darwin*)
 
6561
        # PIC is the default on this platform
 
6562
        # Common symbols not allowed in MH_DYLIB files
 
6563
       case $cc_basename in
 
6564
         xlc*)
 
6565
         lt_prog_compiler_pic='-qnocommon'
 
6566
         lt_prog_compiler_wl='-Wl,'
 
6567
         ;;
 
6568
       esac
 
6569
       ;;
 
6570
 
 
6571
    mingw* | pw32* | os2*)
 
6572
      # This hack is so that the source file can tell whether it is being
 
6573
      # built for inclusion in a dll (and should export symbols for example).
 
6574
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
6575
      ;;
 
6576
 
 
6577
    hpux9* | hpux10* | hpux11*)
 
6578
      lt_prog_compiler_wl='-Wl,'
 
6579
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
6580
      # not for PA HP-UX.
 
6581
      case $host_cpu in
 
6582
      hppa*64*|ia64*)
 
6583
        # +Z the default
 
6584
        ;;
 
6585
      *)
 
6586
        lt_prog_compiler_pic='+Z'
 
6587
        ;;
 
6588
      esac
 
6589
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
6590
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
6591
      ;;
 
6592
 
 
6593
    irix5* | irix6* | nonstopux*)
 
6594
      lt_prog_compiler_wl='-Wl,'
 
6595
      # PIC (with -KPIC) is the default.
 
6596
      lt_prog_compiler_static='-non_shared'
 
6597
      ;;
 
6598
 
 
6599
    newsos6)
 
6600
      lt_prog_compiler_pic='-KPIC'
 
6601
      lt_prog_compiler_static='-Bstatic'
 
6602
      ;;
 
6603
 
 
6604
    linux*)
 
6605
      case $cc_basename in
 
6606
      icc* | ecc*)
 
6607
        lt_prog_compiler_wl='-Wl,'
 
6608
        lt_prog_compiler_pic='-KPIC'
 
6609
        lt_prog_compiler_static='-static'
 
6610
        ;;
 
6611
      pgcc* | pgf77* | pgf90* | pgf95*)
 
6612
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
6613
        # which looks to be a dead project)
 
6614
        lt_prog_compiler_wl='-Wl,'
 
6615
        lt_prog_compiler_pic='-fpic'
 
6616
        lt_prog_compiler_static='-Bstatic'
 
6617
        ;;
 
6618
      ccc*)
 
6619
        lt_prog_compiler_wl='-Wl,'
 
6620
        # All Alpha code is PIC.
 
6621
        lt_prog_compiler_static='-non_shared'
 
6622
        ;;
 
6623
      esac
 
6624
      ;;
 
6625
 
 
6626
    osf3* | osf4* | osf5*)
 
6627
      lt_prog_compiler_wl='-Wl,'
 
6628
      # All OSF/1 code is PIC.
 
6629
      lt_prog_compiler_static='-non_shared'
 
6630
      ;;
 
6631
 
 
6632
    sco3.2v5*)
 
6633
      lt_prog_compiler_pic='-Kpic'
 
6634
      lt_prog_compiler_static='-dn'
 
6635
      ;;
 
6636
 
 
6637
    solaris*)
 
6638
      lt_prog_compiler_pic='-KPIC'
 
6639
      lt_prog_compiler_static='-Bstatic'
 
6640
      case $cc_basename in
 
6641
      f77* | f90* | f95*)
 
6642
        lt_prog_compiler_wl='-Qoption ld ';;
 
6643
      *)
 
6644
        lt_prog_compiler_wl='-Wl,';;
 
6645
      esac
 
6646
      ;;
 
6647
 
 
6648
    sunos4*)
 
6649
      lt_prog_compiler_wl='-Qoption ld '
 
6650
      lt_prog_compiler_pic='-PIC'
 
6651
      lt_prog_compiler_static='-Bstatic'
 
6652
      ;;
 
6653
 
 
6654
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
6655
      lt_prog_compiler_wl='-Wl,'
 
6656
      lt_prog_compiler_pic='-KPIC'
 
6657
      lt_prog_compiler_static='-Bstatic'
 
6658
      ;;
 
6659
 
 
6660
    sysv4*MP*)
 
6661
      if test -d /usr/nec ;then
 
6662
        lt_prog_compiler_pic='-Kconform_pic'
 
6663
        lt_prog_compiler_static='-Bstatic'
 
6664
      fi
 
6665
      ;;
 
6666
 
 
6667
    unicos*)
 
6668
      lt_prog_compiler_wl='-Wl,'
 
6669
      lt_prog_compiler_can_build_shared=no
 
6670
      ;;
 
6671
 
 
6672
    uts4*)
 
6673
      lt_prog_compiler_pic='-pic'
 
6674
      lt_prog_compiler_static='-Bstatic'
 
6675
      ;;
 
6676
 
 
6677
    *)
 
6678
      lt_prog_compiler_can_build_shared=no
 
6679
      ;;
 
6680
    esac
 
6681
  fi
 
6682
 
 
6683
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
6684
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
 
6685
 
 
6686
#
 
6687
# Check to make sure the PIC flag actually works.
 
6688
#
 
6689
if test -n "$lt_prog_compiler_pic"; then
 
6690
  
 
6691
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
6692
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
 
6693
if test "${lt_prog_compiler_pic_works+set}" = set; then
 
6694
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6695
else
 
6696
  lt_prog_compiler_pic_works=no
 
6697
  ac_outfile=conftest.$ac_objext
 
6698
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6699
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
6700
   # Insert the option either (1) after the last *FLAGS variable, or
 
6701
   # (2) before a word containing "conftest.", or (3) at the end.
 
6702
   # Note that $ac_compile itself does not contain backslashes and begins
 
6703
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
6704
   # The option is referenced via a variable to avoid confusing sed.
 
6705
   lt_compile=`echo "$ac_compile" | $SED \
 
6706
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
6707
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
6708
   -e 's:$: $lt_compiler_flag:'`
 
6709
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 
6710
   (eval "$lt_compile" 2>conftest.err)
 
6711
   ac_status=$?
 
6712
   cat conftest.err >&5
 
6713
   echo "$as_me:__oline__: \$? = $ac_status" >&5
 
6714
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
6715
     # The compiler can only warn and ignore the option if not recognized
 
6716
     # So say no if there are warnings other than the usual output.
 
6717
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
6718
     $SED '/^$/d' conftest.err >conftest.er2
 
6719
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
 
6720
       lt_prog_compiler_pic_works=yes
 
6721
     fi
 
6722
   fi
 
6723
   $rm conftest*
 
6724
 
 
6725
fi
 
6726
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
 
6727
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
 
6728
 
 
6729
if test x"$lt_prog_compiler_pic_works" = xyes; then
 
6730
    case $lt_prog_compiler_pic in
 
6731
     "" | " "*) ;;
 
6732
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
6733
     esac
 
6734
else
 
6735
    lt_prog_compiler_pic=
 
6736
     lt_prog_compiler_can_build_shared=no
 
6737
fi
 
6738
 
 
6739
fi
 
6740
case $host_os in
 
6741
  # For platforms which do not support PIC, -DPIC is meaningless:
 
6742
  *djgpp*)
 
6743
    lt_prog_compiler_pic=
 
6744
    ;;
 
6745
  *)
 
6746
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
6747
    ;;
 
6748
esac
 
6749
 
 
6750
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
6751
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
6752
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
6753
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6754
else
 
6755
  lt_cv_prog_compiler_c_o=no
 
6756
   $rm -r conftest 2>/dev/null
 
6757
   mkdir conftest
 
6758
   cd conftest
 
6759
   mkdir out
 
6760
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
6761
 
 
6762
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
6763
   # Insert the option either (1) after the last *FLAGS variable, or
 
6764
   # (2) before a word containing "conftest.", or (3) at the end.
 
6765
   # Note that $ac_compile itself does not contain backslashes and begins
 
6766
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
6767
   lt_compile=`echo "$ac_compile" | $SED \
 
6768
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
6769
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
6770
   -e 's:$: $lt_compiler_flag:'`
 
6771
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 
6772
   (eval "$lt_compile" 2>out/conftest.err)
 
6773
   ac_status=$?
 
6774
   cat out/conftest.err >&5
 
6775
   echo "$as_me:__oline__: \$? = $ac_status" >&5
 
6776
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
6777
   then
 
6778
     # The compiler can only warn and ignore the option if not recognized
 
6779
     # So say no if there are warnings
 
6780
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
 
6781
     $SED '/^$/d' out/conftest.err >out/conftest.er2
 
6782
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
6783
       lt_cv_prog_compiler_c_o=yes
 
6784
     fi
 
6785
   fi
 
6786
   chmod u+w . 2>&5
 
6787
   $rm conftest*
 
6788
   # SGI C++ compiler will create directory out/ii_files/ for
 
6789
   # template instantiation
 
6790
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
6791
   $rm out/* && rmdir out
 
6792
   cd ..
 
6793
   rmdir conftest
 
6794
   $rm conftest*
 
6795
 
 
6796
fi
 
6797
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
6798
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
 
6799
 
 
6800
 
 
6801
hard_links="nottested"
 
6802
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
6803
  # do not overwrite the value of need_locks provided by the user
 
6804
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
6805
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
6806
  hard_links=yes
 
6807
  $rm conftest*
 
6808
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
6809
  touch conftest.a
 
6810
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
6811
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
6812
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
6813
echo "${ECHO_T}$hard_links" >&6
 
6814
  if test "$hard_links" = no; then
 
6815
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
6816
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
6817
    need_locks=warn
 
6818
  fi
 
6819
else
 
6820
  need_locks=no
 
6821
fi
 
6822
 
 
6823
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
6824
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
6825
 
 
6826
  runpath_var=
 
6827
  allow_undefined_flag=
 
6828
  enable_shared_with_static_runtimes=no
 
6829
  archive_cmds=
 
6830
  archive_expsym_cmds=
 
6831
  old_archive_From_new_cmds=
 
6832
  old_archive_from_expsyms_cmds=
 
6833
  export_dynamic_flag_spec=
 
6834
  whole_archive_flag_spec=
 
6835
  thread_safe_flag_spec=
 
6836
  hardcode_libdir_flag_spec=
 
6837
  hardcode_libdir_flag_spec_ld=
 
6838
  hardcode_libdir_separator=
 
6839
  hardcode_direct=no
 
6840
  hardcode_minus_L=no
 
6841
  hardcode_shlibpath_var=unsupported
 
6842
  link_all_deplibs=unknown
 
6843
  hardcode_automatic=no
 
6844
  module_cmds=
 
6845
  module_expsym_cmds=
 
6846
  always_export_symbols=no
 
6847
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
6848
  # include_expsyms should be a list of space-separated symbols to be *always*
 
6849
  # included in the symbol list
 
6850
  include_expsyms=
 
6851
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
6852
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
6853
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
6854
  # as well as any symbol that contains `d'.
 
6855
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 
6856
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
6857
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
6858
  # the symbol is explicitly referenced.  Since portable code cannot
 
6859
  # rely on this symbol name, it's probably fine to never include it in
 
6860
  # preloaded symbol tables.
 
6861
  extract_expsyms_cmds=
 
6862
  # Just being paranoid about ensuring that cc_basename is set.
 
6863
  for cc_temp in $compiler""; do
 
6864
  case $cc_temp in
 
6865
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
6866
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
6867
    \-*) ;;
 
6868
    *) break;;
 
6869
  esac
 
6870
done
 
6871
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
6872
 
 
6873
  case $host_os in
 
6874
  cygwin* | mingw* | pw32*)
 
6875
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
6876
    # When not using gcc, we currently assume that we are using
 
6877
    # Microsoft Visual C++.
 
6878
    if test "$GCC" != yes; then
 
6879
      with_gnu_ld=no
 
6880
    fi
 
6881
    ;;
 
6882
  openbsd*)
 
6883
    with_gnu_ld=no
 
6884
    ;;
 
6885
  esac
 
6886
 
 
6887
  ld_shlibs=yes
 
6888
  if test "$with_gnu_ld" = yes; then
 
6889
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
6890
    wlarc='${wl}'
 
6891
 
 
6892
    # Set some defaults for GNU ld with shared library support. These
 
6893
    # are reset later if shared libraries are not supported. Putting them
 
6894
    # here allows them to be overridden if necessary.
 
6895
    runpath_var=LD_RUN_PATH
 
6896
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
6897
    export_dynamic_flag_spec='${wl}--export-dynamic'
 
6898
    # ancient GNU ld didn't support --whole-archive et. al.
 
6899
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
6900
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
6901
      else
 
6902
        whole_archive_flag_spec=
 
6903
    fi
 
6904
    supports_anon_versioning=no
 
6905
    case `$LD -v 2>/dev/null` in
 
6906
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
6907
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
6908
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
6909
      *\ 2.11.*) ;; # other 2.11 versions
 
6910
      *) supports_anon_versioning=yes ;;
 
6911
    esac
 
6912
 
 
6913
    # See if GNU ld supports shared libraries.
 
6914
    case $host_os in
 
6915
    aix3* | aix4* | aix5*)
 
6916
      # On AIX/PPC, the GNU linker is very broken
 
6917
      if test "$host_cpu" != ia64; then
 
6918
        ld_shlibs=no
 
6919
        cat <<EOF 1>&2
 
6920
 
 
6921
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
6922
*** to be unable to reliably create shared libraries on AIX.
 
6923
*** Therefore, libtool is disabling shared libraries support.  If you
 
6924
*** really care for shared libraries, you may want to modify your PATH
 
6925
*** so that a non-GNU linker is found, and then restart.
 
6926
 
 
6927
EOF
 
6928
      fi
 
6929
      ;;
 
6930
 
 
6931
    amigaos*)
 
6932
      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)'
 
6933
      hardcode_libdir_flag_spec='-L$libdir'
 
6934
      hardcode_minus_L=yes
 
6935
 
 
6936
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
6937
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
6938
      # to version 4, is to share data among multiple programs linked
 
6939
      # with the same dynamic library.  Since this doesn't match the
 
6940
      # behavior of shared libraries on other platforms, we can't use
 
6941
      # them.
 
6942
      ld_shlibs=no
 
6943
      ;;
 
6944
 
 
6945
    beos*)
 
6946
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6947
        allow_undefined_flag=unsupported
 
6948
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
6949
        # support --undefined.  This deserves some investigation.  FIXME
 
6950
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
6951
      else
 
6952
        ld_shlibs=no
 
6953
      fi
 
6954
      ;;
 
6955
 
 
6956
    cygwin* | mingw* | pw32*)
 
6957
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
6958
      # as there is no search path for DLLs.
 
6959
      hardcode_libdir_flag_spec='-L$libdir'
 
6960
      allow_undefined_flag=unsupported
 
6961
      always_export_symbols=no
 
6962
      enable_shared_with_static_runtimes=yes
 
6963
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
6964
 
 
6965
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
6966
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
6967
        # If the export-symbols file already is a .def file (1st line
 
6968
        # is EXPORTS), use it as is; otherwise, prepend...
 
6969
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
6970
          cp $export_symbols $output_objdir/$soname.def;
 
6971
        else
 
6972
          echo EXPORTS > $output_objdir/$soname.def;
 
6973
          cat $export_symbols >> $output_objdir/$soname.def;
 
6974
        fi~
 
6975
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
6976
      else
 
6977
        ld_shlibs=no
 
6978
      fi
 
6979
      ;;
 
6980
 
 
6981
    linux*)
 
6982
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
6983
        tmp_addflag=
 
6984
        case $cc_basename,$host_cpu in
 
6985
        pgcc*)                          # Portland Group C compiler
 
6986
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
6987
          tmp_addflag=' $pic_flag'
 
6988
          ;;
 
6989
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
6990
          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
6991
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
6992
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
6993
          tmp_addflag=' -i_dynamic' ;;
 
6994
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
6995
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
6996
        ifc* | ifort*)                  # Intel Fortran compiler
 
6997
          tmp_addflag=' -nofor_main' ;;
 
6998
        esac
 
6999
        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7000
 
 
7001
        if test $supports_anon_versioning = yes; then
 
7002
          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
7003
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
7004
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
7005
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
7006
        fi
 
7007
        link_all_deplibs=no
 
7008
      else
 
7009
        ld_shlibs=no
 
7010
      fi
 
7011
      ;;
 
7012
 
 
7013
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
7014
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
7015
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
7016
        wlarc=
 
7017
      else
 
7018
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7019
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7020
      fi
 
7021
      ;;
 
7022
 
 
7023
    solaris* | sysv5*)
 
7024
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
7025
        ld_shlibs=no
 
7026
        cat <<EOF 1>&2
 
7027
 
 
7028
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
7029
*** create shared libraries on Solaris systems.  Therefore, libtool
 
7030
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
7031
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
7032
*** your PATH or compiler configuration so that the native linker is
 
7033
*** used, and then restart.
 
7034
 
 
7035
EOF
 
7036
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7037
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7038
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7039
      else
 
7040
        ld_shlibs=no
 
7041
      fi
 
7042
      ;;
 
7043
 
 
7044
    sunos4*)
 
7045
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7046
      wlarc=
 
7047
      hardcode_direct=yes
 
7048
      hardcode_shlibpath_var=no
 
7049
      ;;
 
7050
 
 
7051
    *)
 
7052
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7053
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7054
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7055
      else
 
7056
        ld_shlibs=no
 
7057
      fi
 
7058
      ;;
 
7059
    esac
 
7060
 
 
7061
    if test "$ld_shlibs" = no; then
 
7062
      runpath_var=
 
7063
      hardcode_libdir_flag_spec=
 
7064
      export_dynamic_flag_spec=
 
7065
      whole_archive_flag_spec=
 
7066
    fi
 
7067
  else
 
7068
    # PORTME fill in a description of your system's linker (not GNU ld)
 
7069
    case $host_os in
 
7070
    aix3*)
 
7071
      allow_undefined_flag=unsupported
 
7072
      always_export_symbols=yes
 
7073
      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'
 
7074
      # Note: this linker hardcodes the directories in LIBPATH if there
 
7075
      # are no directories specified by -L.
 
7076
      hardcode_minus_L=yes
 
7077
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
7078
        # Neither direct hardcoding nor static linking is supported with a
 
7079
        # broken collect2.
 
7080
        hardcode_direct=unsupported
 
7081
      fi
 
7082
      ;;
 
7083
 
 
7084
    aix4* | aix5*)
 
7085
      if test "$host_cpu" = ia64; then
 
7086
        # On IA64, the linker does run time linking by default, so we don't
 
7087
        # have to do anything special.
 
7088
        aix_use_runtimelinking=no
 
7089
        exp_sym_flag='-Bexport'
 
7090
        no_entry_flag=""
 
7091
      else
 
7092
        # If we're using GNU nm, then we don't want the "-C" option.
 
7093
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
7094
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
7095
          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'
 
7096
        else
 
7097
          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'
 
7098
        fi
 
7099
        aix_use_runtimelinking=no
 
7100
 
 
7101
        # Test if we are trying to use run time linking or normal
 
7102
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
7103
        # need to do runtime linking.
 
7104
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
7105
          for ld_flag in $LDFLAGS; do
 
7106
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
7107
            aix_use_runtimelinking=yes
 
7108
            break
 
7109
          fi
 
7110
          done
 
7111
        esac
 
7112
 
 
7113
        exp_sym_flag='-bexport'
 
7114
        no_entry_flag='-bnoentry'
 
7115
      fi
 
7116
 
 
7117
      # When large executables or shared objects are built, AIX ld can
 
7118
      # have problems creating the table of contents.  If linking a library
 
7119
      # or program results in "error TOC overflow" add -mminimal-toc to
 
7120
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
7121
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
7122
 
 
7123
      archive_cmds=''
 
7124
      hardcode_direct=yes
 
7125
      hardcode_libdir_separator=':'
 
7126
      link_all_deplibs=yes
 
7127
 
 
7128
      if test "$GCC" = yes; then
 
7129
        case $host_os in aix4.[012]|aix4.[012].*)
 
7130
        # We only want to do this on AIX 4.2 and lower, the check
 
7131
        # below for broken collect2 doesn't work under 4.3+
 
7132
          collect2name=`${CC} -print-prog-name=collect2`
 
7133
          if test -f "$collect2name" && \
 
7134
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
7135
          then
 
7136
          # We have reworked collect2
 
7137
          hardcode_direct=yes
 
7138
          else
 
7139
          # We have old collect2
 
7140
          hardcode_direct=unsupported
 
7141
          # It fails to find uninstalled libraries when the uninstalled
 
7142
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
7143
          # to unsupported forces relinking
 
7144
          hardcode_minus_L=yes
 
7145
          hardcode_libdir_flag_spec='-L$libdir'
 
7146
          hardcode_libdir_separator=
 
7147
          fi
 
7148
        esac
 
7149
        shared_flag='-shared'
 
7150
        if test "$aix_use_runtimelinking" = yes; then
 
7151
          shared_flag="$shared_flag "'${wl}-G'
 
7152
        fi
 
7153
      else
 
7154
        # not using gcc
 
7155
        if test "$host_cpu" = ia64; then
 
7156
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
7157
        # chokes on -Wl,-G. The following line is correct:
 
7158
          shared_flag='-G'
 
7159
        else
 
7160
        if test "$aix_use_runtimelinking" = yes; then
 
7161
            shared_flag='${wl}-G'
 
7162
          else
 
7163
            shared_flag='${wl}-bM:SRE'
 
7164
        fi
 
7165
        fi
 
7166
      fi
 
7167
 
 
7168
      # It seems that -bexpall does not export symbols beginning with
 
7169
      # underscore (_), so it is better to generate a list of symbols to export.
 
7170
      always_export_symbols=yes
 
7171
      if test "$aix_use_runtimelinking" = yes; then
 
7172
        # Warning - without using the other runtime loading flags (-brtl),
 
7173
        # -berok will link without error, but may produce a broken library.
 
7174
        allow_undefined_flag='-berok'
 
7175
       # Determine the default libpath from the value encoded in an empty executable.
 
7176
       cat >conftest.$ac_ext <<_ACEOF
 
7177
/* confdefs.h.  */
 
7178
_ACEOF
 
7179
cat confdefs.h >>conftest.$ac_ext
 
7180
cat >>conftest.$ac_ext <<_ACEOF
 
7181
/* end confdefs.h.  */
 
7182
 
 
7183
int
 
7184
main ()
 
7185
{
 
7186
 
 
7187
  ;
 
7188
  return 0;
 
7189
}
 
7190
_ACEOF
 
7191
rm -f conftest.$ac_objext conftest$ac_exeext
 
7192
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7193
  (eval $ac_link) 2>conftest.er1
 
7194
  ac_status=$?
 
7195
  grep -v '^ *+' conftest.er1 >conftest.err
 
7196
  rm -f conftest.er1
 
7197
  cat conftest.err >&5
 
7198
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7199
  (exit $ac_status); } &&
 
7200
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7201
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7202
  (eval $ac_try) 2>&5
 
7203
  ac_status=$?
 
7204
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7205
  (exit $ac_status); }; } &&
 
7206
         { ac_try='test -s conftest$ac_exeext'
 
7207
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7208
  (eval $ac_try) 2>&5
 
7209
  ac_status=$?
 
7210
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7211
  (exit $ac_status); }; }; then
 
7212
  
 
7213
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
7214
}'`
 
7215
# Check for a 64-bit object if we didn't find anything.
 
7216
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; }
 
7217
}'`; fi
 
7218
else
 
7219
  echo "$as_me: failed program was:" >&5
 
7220
sed 's/^/| /' conftest.$ac_ext >&5
 
7221
 
 
7222
fi
 
7223
rm -f conftest.err conftest.$ac_objext \
 
7224
      conftest$ac_exeext conftest.$ac_ext
 
7225
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
7226
 
 
7227
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
7228
        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"
 
7229
       else
 
7230
        if test "$host_cpu" = ia64; then
 
7231
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
7232
          allow_undefined_flag="-z nodefs"
 
7233
          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"
 
7234
        else
 
7235
         # Determine the default libpath from the value encoded in an empty executable.
 
7236
         cat >conftest.$ac_ext <<_ACEOF
 
7237
/* confdefs.h.  */
 
7238
_ACEOF
 
7239
cat confdefs.h >>conftest.$ac_ext
 
7240
cat >>conftest.$ac_ext <<_ACEOF
 
7241
/* end confdefs.h.  */
 
7242
 
 
7243
int
 
7244
main ()
 
7245
{
 
7246
 
 
7247
  ;
 
7248
  return 0;
 
7249
}
 
7250
_ACEOF
 
7251
rm -f conftest.$ac_objext conftest$ac_exeext
 
7252
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7253
  (eval $ac_link) 2>conftest.er1
 
7254
  ac_status=$?
 
7255
  grep -v '^ *+' conftest.er1 >conftest.err
 
7256
  rm -f conftest.er1
 
7257
  cat conftest.err >&5
 
7258
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7259
  (exit $ac_status); } &&
 
7260
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7261
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7262
  (eval $ac_try) 2>&5
 
7263
  ac_status=$?
 
7264
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7265
  (exit $ac_status); }; } &&
 
7266
         { ac_try='test -s conftest$ac_exeext'
 
7267
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7268
  (eval $ac_try) 2>&5
 
7269
  ac_status=$?
 
7270
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7271
  (exit $ac_status); }; }; then
 
7272
  
 
7273
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
7274
}'`
 
7275
# Check for a 64-bit object if we didn't find anything.
 
7276
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; }
 
7277
}'`; fi
 
7278
else
 
7279
  echo "$as_me: failed program was:" >&5
 
7280
sed 's/^/| /' conftest.$ac_ext >&5
 
7281
 
 
7282
fi
 
7283
rm -f conftest.err conftest.$ac_objext \
 
7284
      conftest$ac_exeext conftest.$ac_ext
 
7285
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
7286
 
 
7287
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
7288
          # Warning - without using the other run time loading flags,
 
7289
          # -berok will link without error, but may produce a broken library.
 
7290
          no_undefined_flag=' ${wl}-bernotok'
 
7291
          allow_undefined_flag=' ${wl}-berok'
 
7292
          # -bexpall does not export symbols beginning with underscore (_)
 
7293
          always_export_symbols=yes
 
7294
          # Exported symbols can be pulled into shared objects from archives
 
7295
          whole_archive_flag_spec=' '
 
7296
          archive_cmds_need_lc=yes
 
7297
          # This is similar to how AIX traditionally builds its shared libraries.
 
7298
          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'
 
7299
        fi
 
7300
      fi
 
7301
      ;;
 
7302
 
 
7303
    amigaos*)
 
7304
      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)'
 
7305
      hardcode_libdir_flag_spec='-L$libdir'
 
7306
      hardcode_minus_L=yes
 
7307
      # see comment about different semantics on the GNU ld section
 
7308
      ld_shlibs=no
 
7309
      ;;
 
7310
 
 
7311
    bsdi[45]*)
 
7312
      export_dynamic_flag_spec=-rdynamic
 
7313
      ;;
 
7314
 
 
7315
    cygwin* | mingw* | pw32*)
 
7316
      # When not using gcc, we currently assume that we are using
 
7317
      # Microsoft Visual C++.
 
7318
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
7319
      # no search path for DLLs.
 
7320
      hardcode_libdir_flag_spec=' '
 
7321
      allow_undefined_flag=unsupported
 
7322
      # Tell ltmain to make .lib files, not .a files.
 
7323
      libext=lib
 
7324
      # Tell ltmain to make .dll files, not .so files.
 
7325
      shrext_cmds=".dll"
 
7326
      # FIXME: Setting linknames here is a bad hack.
 
7327
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
7328
      # The linker will automatically build a .lib file if we build a DLL.
 
7329
      old_archive_From_new_cmds='true'
 
7330
      # FIXME: Should let the user specify the lib program.
 
7331
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
7332
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
7333
      enable_shared_with_static_runtimes=yes
 
7334
      ;;
 
7335
 
 
7336
    darwin* | rhapsody*)
 
7337
      case $host_os in
 
7338
        rhapsody* | darwin1.[012])
 
7339
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
 
7340
         ;;
 
7341
       *) # Darwin 1.3 on
 
7342
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
7343
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
7344
         else
 
7345
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
7346
             10.[012])
 
7347
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
7348
               ;;
 
7349
             10.*)
 
7350
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
 
7351
               ;;
 
7352
           esac
 
7353
         fi
 
7354
         ;;
 
7355
      esac
 
7356
      archive_cmds_need_lc=no
 
7357
      hardcode_direct=no
 
7358
      hardcode_automatic=yes
 
7359
      hardcode_shlibpath_var=unsupported
 
7360
      whole_archive_flag_spec=''
 
7361
      link_all_deplibs=yes
 
7362
    if test "$GCC" = yes ; then
 
7363
        output_verbose_link_cmd='echo'
 
7364
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
7365
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
7366
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
7367
      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}'
 
7368
      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}'
 
7369
    else
 
7370
      case $cc_basename in
 
7371
        xlc*)
 
7372
         output_verbose_link_cmd='echo'
 
7373
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
7374
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
7375
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
7376
         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}'
 
7377
          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}'
 
7378
          ;;
 
7379
       *)
 
7380
         ld_shlibs=no
 
7381
          ;;
 
7382
      esac
 
7383
    fi
 
7384
      ;;
 
7385
 
 
7386
    dgux*)
 
7387
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7388
      hardcode_libdir_flag_spec='-L$libdir'
 
7389
      hardcode_shlibpath_var=no
 
7390
      ;;
 
7391
 
 
7392
    freebsd1*)
 
7393
      ld_shlibs=no
 
7394
      ;;
 
7395
 
 
7396
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
7397
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
7398
    # does not break anything, and helps significantly (at the cost of a little
 
7399
    # extra space).
 
7400
    freebsd2.2*)
 
7401
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
7402
      hardcode_libdir_flag_spec='-R$libdir'
 
7403
      hardcode_direct=yes
 
7404
      hardcode_shlibpath_var=no
 
7405
      ;;
 
7406
 
 
7407
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
7408
    freebsd2*)
 
7409
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7410
      hardcode_direct=yes
 
7411
      hardcode_minus_L=yes
 
7412
      hardcode_shlibpath_var=no
 
7413
      ;;
 
7414
 
 
7415
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
7416
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
7417
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
7418
      hardcode_libdir_flag_spec='-R$libdir'
 
7419
      hardcode_direct=yes
 
7420
      hardcode_shlibpath_var=no
 
7421
      ;;
 
7422
 
 
7423
    hpux9*)
 
7424
      if test "$GCC" = yes; then
 
7425
        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'
 
7426
      else
 
7427
        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'
 
7428
      fi
 
7429
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7430
      hardcode_libdir_separator=:
 
7431
      hardcode_direct=yes
 
7432
 
 
7433
      # hardcode_minus_L: Not really in the search PATH,
 
7434
      # but as the default location of the library.
 
7435
      hardcode_minus_L=yes
 
7436
      export_dynamic_flag_spec='${wl}-E'
 
7437
      ;;
 
7438
 
 
7439
    hpux10* | hpux11*)
 
7440
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
7441
        case $host_cpu in
 
7442
        hppa*64*|ia64*)
 
7443
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7444
          ;;
 
7445
        *)
 
7446
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
7447
          ;;
 
7448
        esac
 
7449
      else
 
7450
        case $host_cpu in
 
7451
        hppa*64*|ia64*)
 
7452
          archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7453
          ;;
 
7454
        *)
 
7455
          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
7456
          ;;
 
7457
        esac
 
7458
      fi
 
7459
      if test "$with_gnu_ld" = no; then
 
7460
        case $host_cpu in
 
7461
        hppa*64*)
 
7462
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7463
          hardcode_libdir_flag_spec_ld='+b $libdir'
 
7464
          hardcode_libdir_separator=:
 
7465
          hardcode_direct=no
 
7466
          hardcode_shlibpath_var=no
 
7467
          ;;
 
7468
        ia64*)
 
7469
          hardcode_libdir_flag_spec='-L$libdir'
 
7470
          hardcode_direct=no
 
7471
          hardcode_shlibpath_var=no
 
7472
 
 
7473
          # hardcode_minus_L: Not really in the search PATH,
 
7474
          # but as the default location of the library.
 
7475
          hardcode_minus_L=yes
 
7476
          ;;
 
7477
        *)
 
7478
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
7479
          hardcode_libdir_separator=:
 
7480
          hardcode_direct=yes
 
7481
          export_dynamic_flag_spec='${wl}-E'
 
7482
 
 
7483
          # hardcode_minus_L: Not really in the search PATH,
 
7484
          # but as the default location of the library.
 
7485
          hardcode_minus_L=yes
 
7486
          ;;
 
7487
        esac
 
7488
      fi
 
7489
      ;;
 
7490
 
 
7491
    irix5* | irix6* | nonstopux*)
 
7492
      if test "$GCC" = yes; then
 
7493
        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'
 
7494
      else
 
7495
        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'
 
7496
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
7497
      fi
 
7498
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7499
      hardcode_libdir_separator=:
 
7500
      link_all_deplibs=yes
 
7501
      ;;
 
7502
 
 
7503
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
7504
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
7505
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
7506
      else
 
7507
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
7508
      fi
 
7509
      hardcode_libdir_flag_spec='-R$libdir'
 
7510
      hardcode_direct=yes
 
7511
      hardcode_shlibpath_var=no
 
7512
      ;;
 
7513
 
 
7514
    newsos6)
 
7515
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7516
      hardcode_direct=yes
 
7517
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7518
      hardcode_libdir_separator=:
 
7519
      hardcode_shlibpath_var=no
 
7520
      ;;
 
7521
 
 
7522
    openbsd*)
 
7523
      hardcode_direct=yes
 
7524
      hardcode_shlibpath_var=no
 
7525
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
7526
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
7527
        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
7528
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
7529
        export_dynamic_flag_spec='${wl}-E'
 
7530
      else
 
7531
       case $host_os in
 
7532
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
7533
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7534
           hardcode_libdir_flag_spec='-R$libdir'
 
7535
           ;;
 
7536
         *)
 
7537
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
7538
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
7539
           ;;
 
7540
       esac
 
7541
      fi
 
7542
      ;;
 
7543
 
 
7544
    os2*)
 
7545
      hardcode_libdir_flag_spec='-L$libdir'
 
7546
      hardcode_minus_L=yes
 
7547
      allow_undefined_flag=unsupported
 
7548
      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'
 
7549
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
7550
      ;;
 
7551
 
 
7552
    osf3*)
 
7553
      if test "$GCC" = yes; then
 
7554
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
7555
        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'
 
7556
      else
 
7557
        allow_undefined_flag=' -expect_unresolved \*'
 
7558
        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'
 
7559
      fi
 
7560
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7561
      hardcode_libdir_separator=:
 
7562
      ;;
 
7563
 
 
7564
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
7565
      if test "$GCC" = yes; then
 
7566
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
7567
        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'
 
7568
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
7569
      else
 
7570
        allow_undefined_flag=' -expect_unresolved \*'
 
7571
        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'
 
7572
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
7573
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
7574
 
 
7575
        # Both c and cxx compiler support -rpath directly
 
7576
        hardcode_libdir_flag_spec='-rpath $libdir'
 
7577
      fi
 
7578
      hardcode_libdir_separator=:
 
7579
      ;;
 
7580
 
 
7581
    sco3.2v5*)
 
7582
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7583
      hardcode_shlibpath_var=no
 
7584
      export_dynamic_flag_spec='${wl}-Bexport'
 
7585
      runpath_var=LD_RUN_PATH
 
7586
      hardcode_runpath_var=yes
 
7587
      ;;
 
7588
 
 
7589
    solaris*)
 
7590
      no_undefined_flag=' -z text'
 
7591
      if test "$GCC" = yes; then
 
7592
        wlarc='${wl}'
 
7593
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7594
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
7595
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
7596
      else
 
7597
        wlarc=''
 
7598
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7599
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
7600
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
7601
      fi
 
7602
      hardcode_libdir_flag_spec='-R$libdir'
 
7603
      hardcode_shlibpath_var=no
 
7604
      case $host_os in
 
7605
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
7606
      *)
 
7607
        # The compiler driver will combine linker options so we
 
7608
        # cannot just pass the convience library names through
 
7609
        # without $wl, iff we do not link with $LD.
 
7610
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
7611
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
7612
        case $wlarc in
 
7613
        '')
 
7614
          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
7615
        *)
 
7616
          whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
7617
        esac ;;
 
7618
      esac
 
7619
      link_all_deplibs=yes
 
7620
      ;;
 
7621
 
 
7622
    sunos4*)
 
7623
      if test "x$host_vendor" = xsequent; then
 
7624
        # Use $CC to link under sequent, because it throws in some extra .o
 
7625
        # files that make .init and .fini sections work.
 
7626
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
7627
      else
 
7628
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
7629
      fi
 
7630
      hardcode_libdir_flag_spec='-L$libdir'
 
7631
      hardcode_direct=yes
 
7632
      hardcode_minus_L=yes
 
7633
      hardcode_shlibpath_var=no
 
7634
      ;;
 
7635
 
 
7636
    sysv4)
 
7637
      case $host_vendor in
 
7638
        sni)
 
7639
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7640
          hardcode_direct=yes # is this really true???
 
7641
        ;;
 
7642
        siemens)
 
7643
          ## LD is ld it makes a PLAMLIB
 
7644
          ## CC just makes a GrossModule.
 
7645
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
7646
          reload_cmds='$CC -r -o $output$reload_objs'
 
7647
          hardcode_direct=no
 
7648
        ;;
 
7649
        motorola)
 
7650
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7651
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
7652
        ;;
 
7653
      esac
 
7654
      runpath_var='LD_RUN_PATH'
 
7655
      hardcode_shlibpath_var=no
 
7656
      ;;
 
7657
 
 
7658
    sysv4.3*)
 
7659
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7660
      hardcode_shlibpath_var=no
 
7661
      export_dynamic_flag_spec='-Bexport'
 
7662
      ;;
 
7663
 
 
7664
    sysv4*MP*)
 
7665
      if test -d /usr/nec; then
 
7666
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7667
        hardcode_shlibpath_var=no
 
7668
        runpath_var=LD_RUN_PATH
 
7669
        hardcode_runpath_var=yes
 
7670
        ld_shlibs=yes
 
7671
      fi
 
7672
      ;;
 
7673
 
 
7674
    sysv4.2uw2*)
 
7675
      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
7676
      hardcode_direct=yes
 
7677
      hardcode_minus_L=no
 
7678
      hardcode_shlibpath_var=no
 
7679
      hardcode_runpath_var=yes
 
7680
      runpath_var=LD_RUN_PATH
 
7681
      ;;
 
7682
 
 
7683
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
7684
      no_undefined_flag='${wl}-z ${wl}text'
 
7685
      if test "$GCC" = yes; then
 
7686
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7687
      else
 
7688
        archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
7689
      fi
 
7690
      runpath_var='LD_RUN_PATH'
 
7691
      hardcode_shlibpath_var=no
 
7692
      ;;
 
7693
 
 
7694
    sysv5*)
 
7695
      no_undefined_flag=' -z text'
 
7696
      # $CC -shared without GNU ld will not create a library from C++
 
7697
      # object files and a static libstdc++, better avoid it by now
 
7698
      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7699
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
7700
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
7701
      hardcode_libdir_flag_spec=
 
7702
      hardcode_shlibpath_var=no
 
7703
      runpath_var='LD_RUN_PATH'
 
7704
      ;;
 
7705
 
 
7706
    uts4*)
 
7707
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
7708
      hardcode_libdir_flag_spec='-L$libdir'
 
7709
      hardcode_shlibpath_var=no
 
7710
      ;;
 
7711
 
 
7712
    *)
 
7713
      ld_shlibs=no
 
7714
      ;;
 
7715
    esac
 
7716
  fi
 
7717
 
 
7718
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
7719
echo "${ECHO_T}$ld_shlibs" >&6
 
7720
test "$ld_shlibs" = no && can_build_shared=no
 
7721
 
 
7722
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
7723
if test "$GCC" = yes; then
 
7724
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
7725
fi
 
7726
 
 
7727
#
 
7728
# Do we need to explicitly link libc?
 
7729
#
 
7730
case "x$archive_cmds_need_lc" in
 
7731
x|xyes)
 
7732
  # Assume -lc should be added
 
7733
  archive_cmds_need_lc=yes
 
7734
 
 
7735
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
7736
    case $archive_cmds in
 
7737
    *'~'*)
 
7738
      # FIXME: we may have to deal with multi-command sequences.
 
7739
      ;;
 
7740
    '$CC '*)
 
7741
      # Test whether the compiler implicitly links with -lc since on some
 
7742
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
7743
      # to ld, don't add -lc before -lgcc.
 
7744
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
7745
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
7746
      $rm conftest*
 
7747
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7748
 
 
7749
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7750
  (eval $ac_compile) 2>&5
 
7751
  ac_status=$?
 
7752
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7753
  (exit $ac_status); } 2>conftest.err; then
 
7754
        soname=conftest
 
7755
        lib=conftest
 
7756
        libobjs=conftest.$ac_objext
 
7757
        deplibs=
 
7758
        wl=$lt_prog_compiler_wl
 
7759
        compiler_flags=-v
 
7760
        linker_flags=-v
 
7761
        verstring=
 
7762
        output_objdir=.
 
7763
        libname=conftest
 
7764
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
7765
        allow_undefined_flag=
 
7766
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
7767
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
7768
  ac_status=$?
 
7769
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7770
  (exit $ac_status); }
 
7771
        then
 
7772
          archive_cmds_need_lc=no
 
7773
        else
 
7774
          archive_cmds_need_lc=yes
 
7775
        fi
 
7776
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
7777
      else
 
7778
        cat conftest.err 1>&5
 
7779
      fi
 
7780
      $rm conftest*
 
7781
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
7782
echo "${ECHO_T}$archive_cmds_need_lc" >&6
 
7783
      ;;
 
7784
    esac
 
7785
  fi
 
7786
  ;;
 
7787
esac
 
7788
 
 
7789
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
7790
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
7791
library_names_spec=
 
7792
libname_spec='lib$name'
 
7793
soname_spec=
 
7794
shrext_cmds=".so"
 
7795
postinstall_cmds=
 
7796
postuninstall_cmds=
 
7797
finish_cmds=
 
7798
finish_eval=
 
7799
shlibpath_var=
 
7800
shlibpath_overrides_runpath=unknown
 
7801
version_type=none
 
7802
dynamic_linker="$host_os ld.so"
 
7803
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
7804
if test "$GCC" = yes; then
 
7805
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
7806
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
7807
    # if the path contains ";" then we assume it to be the separator
 
7808
    # otherwise default to the standard path separator (i.e. ":") - it is
 
7809
    # assumed that no part of a normal pathname contains ";" but that should
 
7810
    # okay in the real world where ";" in dirpaths is itself problematic.
 
7811
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
7812
  else
 
7813
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
7814
  fi
 
7815
else
 
7816
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
7817
fi
 
7818
need_lib_prefix=unknown
 
7819
hardcode_into_libs=no
 
7820
 
 
7821
# when you set need_version to no, make sure it does not cause -set_version
 
7822
# flags to be left without arguments
 
7823
need_version=unknown
 
7824
 
 
7825
case $host_os in
 
7826
aix3*)
 
7827
  version_type=linux
 
7828
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
7829
  shlibpath_var=LIBPATH
 
7830
 
 
7831
  # AIX 3 has no versioning support, so we append a major version to the name.
 
7832
  soname_spec='${libname}${release}${shared_ext}$major'
 
7833
  ;;
 
7834
 
 
7835
aix4* | aix5*)
 
7836
  version_type=linux
 
7837
  need_lib_prefix=no
 
7838
  need_version=no
 
7839
  hardcode_into_libs=yes
 
7840
  if test "$host_cpu" = ia64; then
 
7841
    # AIX 5 supports IA64
 
7842
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
7843
    shlibpath_var=LD_LIBRARY_PATH
 
7844
  else
 
7845
    # With GCC up to 2.95.x, collect2 would create an import file
 
7846
    # for dependence libraries.  The import file would start with
 
7847
    # the line `#! .'.  This would cause the generated library to
 
7848
    # depend on `.', always an invalid library.  This was fixed in
 
7849
    # development snapshots of GCC prior to 3.0.
 
7850
    case $host_os in
 
7851
      aix4 | aix4.[01] | aix4.[01].*)
 
7852
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
7853
           echo ' yes '
 
7854
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
7855
        :
 
7856
      else
 
7857
        can_build_shared=no
 
7858
      fi
 
7859
      ;;
 
7860
    esac
 
7861
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
7862
    # soname into executable. Probably we can add versioning support to
 
7863
    # collect2, so additional links can be useful in future.
 
7864
    if test "$aix_use_runtimelinking" = yes; then
 
7865
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
7866
      # instead of lib<name>.a to let people know that these are not
 
7867
      # typical AIX shared libraries.
 
7868
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7869
    else
 
7870
      # We preserve .a as extension for shared libraries through AIX4.2
 
7871
      # and later when we are not doing run time linking.
 
7872
      library_names_spec='${libname}${release}.a $libname.a'
 
7873
      soname_spec='${libname}${release}${shared_ext}$major'
 
7874
    fi
 
7875
    shlibpath_var=LIBPATH
 
7876
  fi
 
7877
  ;;
 
7878
 
 
7879
amigaos*)
 
7880
  library_names_spec='$libname.ixlibrary $libname.a'
 
7881
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
7882
  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'
 
7883
  ;;
 
7884
 
 
7885
beos*)
 
7886
  library_names_spec='${libname}${shared_ext}'
 
7887
  dynamic_linker="$host_os ld.so"
 
7888
  shlibpath_var=LIBRARY_PATH
 
7889
  ;;
 
7890
 
 
7891
bsdi[45]*)
 
7892
  version_type=linux
 
7893
  need_version=no
 
7894
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
7895
  soname_spec='${libname}${release}${shared_ext}$major'
 
7896
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
7897
  shlibpath_var=LD_LIBRARY_PATH
 
7898
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
7899
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
7900
  # the default ld.so.conf also contains /usr/contrib/lib and
 
7901
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
7902
  # libtool to hard-code these into programs
 
7903
  ;;
 
7904
 
 
7905
cygwin* | mingw* | pw32*)
 
7906
  version_type=windows
 
7907
  shrext_cmds=".dll"
 
7908
  need_version=no
 
7909
  need_lib_prefix=no
 
7910
 
 
7911
  case $GCC,$host_os in
 
7912
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
7913
    library_names_spec='$libname.dll.a'
 
7914
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
7915
    postinstall_cmds='base_file=`basename \${file}`~
 
7916
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
7917
      dldir=$destdir/`dirname \$dlpath`~
 
7918
      test -d \$dldir || mkdir -p \$dldir~
 
7919
      $install_prog $dir/$dlname \$dldir/$dlname~
 
7920
      chmod a+x \$dldir/$dlname'
 
7921
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
7922
      dlpath=$dir/\$dldll~
 
7923
       $rm \$dlpath'
 
7924
    shlibpath_overrides_runpath=yes
 
7925
 
 
7926
    case $host_os in
 
7927
    cygwin*)
 
7928
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
7929
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
7930
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
7931
      ;;
 
7932
    mingw*)
 
7933
      # MinGW DLLs use traditional 'lib' prefix
 
7934
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
7935
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
7936
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
7937
        # It is most probably a Windows format PATH printed by
 
7938
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
7939
        # path with ; separators, and with drive letters. We can handle the
 
7940
        # drive letters (cygwin fileutils understands them), so leave them,
 
7941
        # especially as we might pass files found there to a mingw objdump,
 
7942
        # which wouldn't understand a cygwinified path. Ahh.
 
7943
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
7944
      else
 
7945
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
7946
      fi
 
7947
      ;;
 
7948
    pw32*)
 
7949
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
7950
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
7951
      ;;
 
7952
    esac
 
7953
    ;;
 
7954
 
 
7955
  *)
 
7956
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
7957
    ;;
 
7958
  esac
 
7959
  dynamic_linker='Win32 ld.exe'
 
7960
  # FIXME: first we should search . and the directory the executable is in
 
7961
  shlibpath_var=PATH
 
7962
  ;;
 
7963
 
 
7964
darwin* | rhapsody*)
 
7965
  dynamic_linker="$host_os dyld"
 
7966
  version_type=darwin
 
7967
  need_lib_prefix=no
 
7968
  need_version=no
 
7969
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
7970
  soname_spec='${libname}${release}${major}$shared_ext'
 
7971
  shlibpath_overrides_runpath=yes
 
7972
  shlibpath_var=DYLD_LIBRARY_PATH
 
7973
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
7974
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
7975
  if test "$GCC" = yes; then
 
7976
    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"`
 
7977
  else
 
7978
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
7979
  fi
 
7980
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
7981
  ;;
 
7982
 
 
7983
dgux*)
 
7984
  version_type=linux
 
7985
  need_lib_prefix=no
 
7986
  need_version=no
 
7987
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
7988
  soname_spec='${libname}${release}${shared_ext}$major'
 
7989
  shlibpath_var=LD_LIBRARY_PATH
 
7990
  ;;
 
7991
 
 
7992
freebsd1*)
 
7993
  dynamic_linker=no
 
7994
  ;;
 
7995
 
 
7996
kfreebsd*-gnu)
 
7997
  version_type=linux
 
7998
  need_lib_prefix=no
 
7999
  need_version=no
 
8000
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8001
  soname_spec='${libname}${release}${shared_ext}$major'
 
8002
  shlibpath_var=LD_LIBRARY_PATH
 
8003
  shlibpath_overrides_runpath=no
 
8004
  hardcode_into_libs=yes
 
8005
  dynamic_linker='GNU ld.so'
 
8006
  ;;
 
8007
 
 
8008
freebsd* | dragonfly*)
 
8009
  # DragonFly does not have aout.  When/if they implement a new
 
8010
  # versioning mechanism, adjust this.
 
8011
  if test -x /usr/bin/objformat; then
 
8012
    objformat=`/usr/bin/objformat`
 
8013
  else
 
8014
    case $host_os in
 
8015
    freebsd[123]*) objformat=aout ;;
 
8016
    *) objformat=elf ;;
 
8017
    esac
 
8018
  fi
 
8019
  version_type=freebsd-$objformat
 
8020
  case $version_type in
 
8021
    freebsd-elf*)
 
8022
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
8023
      need_version=no
 
8024
      need_lib_prefix=no
 
8025
      ;;
 
8026
    freebsd-*)
 
8027
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
8028
      need_version=yes
 
8029
      ;;
 
8030
  esac
 
8031
  shlibpath_var=LD_LIBRARY_PATH
 
8032
  case $host_os in
 
8033
  freebsd2*)
 
8034
    shlibpath_overrides_runpath=yes
 
8035
    ;;
 
8036
  freebsd3.[01]* | freebsdelf3.[01]*)
 
8037
    shlibpath_overrides_runpath=yes
 
8038
    hardcode_into_libs=yes
 
8039
    ;;
 
8040
  *) # from 3.2 on
 
8041
    shlibpath_overrides_runpath=no
 
8042
    hardcode_into_libs=yes
 
8043
    ;;
 
8044
  esac
 
8045
  ;;
 
8046
 
 
8047
gnu*)
 
8048
  version_type=linux
 
8049
  need_lib_prefix=no
 
8050
  need_version=no
 
8051
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
8052
  soname_spec='${libname}${release}${shared_ext}$major'
 
8053
  shlibpath_var=LD_LIBRARY_PATH
 
8054
  hardcode_into_libs=yes
 
8055
  ;;
 
8056
 
 
8057
hpux9* | hpux10* | hpux11*)
 
8058
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
8059
  # link against other versions.
 
8060
  version_type=sunos
 
8061
  need_lib_prefix=no
 
8062
  need_version=no
 
8063
  case $host_cpu in
 
8064
  ia64*)
 
8065
    shrext_cmds='.so'
 
8066
    hardcode_into_libs=yes
 
8067
    dynamic_linker="$host_os dld.so"
 
8068
    shlibpath_var=LD_LIBRARY_PATH
 
8069
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
8070
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8071
    soname_spec='${libname}${release}${shared_ext}$major'
 
8072
    if test "X$HPUX_IA64_MODE" = X32; then
 
8073
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
8074
    else
 
8075
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
8076
    fi
 
8077
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
8078
    ;;
 
8079
   hppa*64*)
 
8080
     shrext_cmds='.sl'
 
8081
     hardcode_into_libs=yes
 
8082
     dynamic_linker="$host_os dld.sl"
 
8083
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
8084
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
8085
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8086
     soname_spec='${libname}${release}${shared_ext}$major'
 
8087
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
8088
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
8089
     ;;
 
8090
   *)
 
8091
    shrext_cmds='.sl'
 
8092
    dynamic_linker="$host_os dld.sl"
 
8093
    shlibpath_var=SHLIB_PATH
 
8094
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
8095
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8096
    soname_spec='${libname}${release}${shared_ext}$major'
 
8097
    ;;
 
8098
  esac
 
8099
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
8100
  postinstall_cmds='chmod 555 $lib'
 
8101
  ;;
 
8102
 
 
8103
irix5* | irix6* | nonstopux*)
 
8104
  case $host_os in
 
8105
    nonstopux*) version_type=nonstopux ;;
 
8106
    *)
 
8107
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
8108
                version_type=linux
 
8109
        else
 
8110
                version_type=irix
 
8111
        fi ;;
 
8112
  esac
 
8113
  need_lib_prefix=no
 
8114
  need_version=no
 
8115
  soname_spec='${libname}${release}${shared_ext}$major'
 
8116
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
8117
  case $host_os in
 
8118
  irix5* | nonstopux*)
 
8119
    libsuff= shlibsuff=
 
8120
    ;;
 
8121
  *)
 
8122
    case $LD in # libtool.m4 will add one of these switches to LD
 
8123
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
8124
      libsuff= shlibsuff= libmagic=32-bit;;
 
8125
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
8126
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
8127
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
8128
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
8129
    *) libsuff= shlibsuff= libmagic=never-match;;
 
8130
    esac
 
8131
    ;;
 
8132
  esac
 
8133
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
8134
  shlibpath_overrides_runpath=no
 
8135
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
8136
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
8137
  hardcode_into_libs=yes
 
8138
  ;;
 
8139
 
 
8140
# No shared lib support for Linux oldld, aout, or coff.
 
8141
linux*oldld* | linux*aout* | linux*coff*)
 
8142
  dynamic_linker=no
 
8143
  ;;
 
8144
 
 
8145
# This must be Linux ELF.
 
8146
linux*)
 
8147
  version_type=linux
 
8148
  need_lib_prefix=no
 
8149
  need_version=no
 
8150
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8151
  soname_spec='${libname}${release}${shared_ext}$major'
 
8152
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
8153
  shlibpath_var=LD_LIBRARY_PATH
 
8154
  shlibpath_overrides_runpath=no
 
8155
  # This implies no fast_install, which is unacceptable.
 
8156
  # Some rework will be needed to allow for fast_install
 
8157
  # before this can be enabled.
 
8158
  hardcode_into_libs=yes
 
8159
 
 
8160
  # Append ld.so.conf contents to the search path
 
8161
  if test -f /etc/ld.so.conf; then
 
8162
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
8163
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
8164
  fi
 
8165
 
 
8166
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
8167
  # powerpc, because MkLinux only supported shared libraries with the
 
8168
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
8169
  # most powerpc-linux boxes support dynamic linking these days and
 
8170
  # people can always --disable-shared, the test was removed, and we
 
8171
  # assume the GNU/Linux dynamic linker is in use.
 
8172
  dynamic_linker='GNU/Linux ld.so'
 
8173
  ;;
 
8174
 
 
8175
netbsdelf*-gnu)
 
8176
  version_type=linux
 
8177
  need_lib_prefix=no
 
8178
  need_version=no
 
8179
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8180
  soname_spec='${libname}${release}${shared_ext}$major'
 
8181
  shlibpath_var=LD_LIBRARY_PATH
 
8182
  shlibpath_overrides_runpath=no
 
8183
  hardcode_into_libs=yes
 
8184
  dynamic_linker='NetBSD ld.elf_so'
 
8185
  ;;
 
8186
 
 
8187
knetbsd*-gnu)
 
8188
  version_type=linux
 
8189
  need_lib_prefix=no
 
8190
  need_version=no
 
8191
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8192
  soname_spec='${libname}${release}${shared_ext}$major'
 
8193
  shlibpath_var=LD_LIBRARY_PATH
 
8194
  shlibpath_overrides_runpath=no
 
8195
  hardcode_into_libs=yes
 
8196
  dynamic_linker='GNU ld.so'
 
8197
  ;;
 
8198
 
 
8199
netbsd*)
 
8200
  version_type=sunos
 
8201
  need_lib_prefix=no
 
8202
  need_version=no
 
8203
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
8204
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
8205
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
8206
    dynamic_linker='NetBSD (a.out) ld.so'
 
8207
  else
 
8208
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8209
    soname_spec='${libname}${release}${shared_ext}$major'
 
8210
    dynamic_linker='NetBSD ld.elf_so'
 
8211
  fi
 
8212
  shlibpath_var=LD_LIBRARY_PATH
 
8213
  shlibpath_overrides_runpath=yes
 
8214
  hardcode_into_libs=yes
 
8215
  ;;
 
8216
 
 
8217
newsos6)
 
8218
  version_type=linux
 
8219
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8220
  shlibpath_var=LD_LIBRARY_PATH
 
8221
  shlibpath_overrides_runpath=yes
 
8222
  ;;
 
8223
 
 
8224
nto-qnx*)
 
8225
  version_type=linux
 
8226
  need_lib_prefix=no
 
8227
  need_version=no
 
8228
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8229
  soname_spec='${libname}${release}${shared_ext}$major'
 
8230
  shlibpath_var=LD_LIBRARY_PATH
 
8231
  shlibpath_overrides_runpath=yes
 
8232
  ;;
 
8233
 
 
8234
openbsd*)
 
8235
  version_type=sunos
 
8236
  need_lib_prefix=no
 
8237
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
8238
  case $host_os in
 
8239
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
8240
    *)                         need_version=no  ;;
 
8241
  esac
 
8242
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
8243
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
8244
  shlibpath_var=LD_LIBRARY_PATH
 
8245
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
8246
    case $host_os in
 
8247
      openbsd2.[89] | openbsd2.[89].*)
 
8248
        shlibpath_overrides_runpath=no
 
8249
        ;;
 
8250
      *)
 
8251
        shlibpath_overrides_runpath=yes
 
8252
        ;;
 
8253
      esac
 
8254
  else
 
8255
    shlibpath_overrides_runpath=yes
 
8256
  fi
 
8257
  ;;
 
8258
 
 
8259
os2*)
 
8260
  libname_spec='$name'
 
8261
  shrext_cmds=".dll"
 
8262
  need_lib_prefix=no
 
8263
  library_names_spec='$libname${shared_ext} $libname.a'
 
8264
  dynamic_linker='OS/2 ld.exe'
 
8265
  shlibpath_var=LIBPATH
 
8266
  ;;
 
8267
 
 
8268
osf3* | osf4* | osf5*)
 
8269
  version_type=osf
 
8270
  need_lib_prefix=no
 
8271
  need_version=no
 
8272
  soname_spec='${libname}${release}${shared_ext}$major'
 
8273
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8274
  shlibpath_var=LD_LIBRARY_PATH
 
8275
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
8276
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
8277
  ;;
 
8278
 
 
8279
sco3.2v5*)
 
8280
  version_type=osf
 
8281
  soname_spec='${libname}${release}${shared_ext}$major'
 
8282
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8283
  shlibpath_var=LD_LIBRARY_PATH
 
8284
  ;;
 
8285
 
 
8286
solaris*)
 
8287
  version_type=linux
 
8288
  need_lib_prefix=no
 
8289
  need_version=no
 
8290
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8291
  soname_spec='${libname}${release}${shared_ext}$major'
 
8292
  shlibpath_var=LD_LIBRARY_PATH
 
8293
  shlibpath_overrides_runpath=yes
 
8294
  hardcode_into_libs=yes
 
8295
  # ldd complains unless libraries are executable
 
8296
  postinstall_cmds='chmod +x $lib'
 
8297
  ;;
 
8298
 
 
8299
sunos4*)
 
8300
  version_type=sunos
 
8301
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
8302
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
8303
  shlibpath_var=LD_LIBRARY_PATH
 
8304
  shlibpath_overrides_runpath=yes
 
8305
  if test "$with_gnu_ld" = yes; then
 
8306
    need_lib_prefix=no
 
8307
  fi
 
8308
  need_version=yes
 
8309
  ;;
 
8310
 
 
8311
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
8312
  version_type=linux
 
8313
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8314
  soname_spec='${libname}${release}${shared_ext}$major'
 
8315
  shlibpath_var=LD_LIBRARY_PATH
 
8316
  case $host_vendor in
 
8317
    sni)
 
8318
      shlibpath_overrides_runpath=no
 
8319
      need_lib_prefix=no
 
8320
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
8321
      runpath_var=LD_RUN_PATH
 
8322
      ;;
 
8323
    siemens)
 
8324
      need_lib_prefix=no
 
8325
      ;;
 
8326
    motorola)
 
8327
      need_lib_prefix=no
 
8328
      need_version=no
 
8329
      shlibpath_overrides_runpath=no
 
8330
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
8331
      ;;
 
8332
  esac
 
8333
  ;;
 
8334
 
 
8335
sysv4*MP*)
 
8336
  if test -d /usr/nec ;then
 
8337
    version_type=linux
 
8338
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
8339
    soname_spec='$libname${shared_ext}.$major'
 
8340
    shlibpath_var=LD_LIBRARY_PATH
 
8341
  fi
 
8342
  ;;
 
8343
 
 
8344
uts4*)
 
8345
  version_type=linux
 
8346
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8347
  soname_spec='${libname}${release}${shared_ext}$major'
 
8348
  shlibpath_var=LD_LIBRARY_PATH
 
8349
  ;;
 
8350
 
 
8351
*)
 
8352
  dynamic_linker=no
 
8353
  ;;
 
8354
esac
 
8355
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
8356
echo "${ECHO_T}$dynamic_linker" >&6
 
8357
test "$dynamic_linker" = no && can_build_shared=no
 
8358
 
 
8359
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
8360
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
8361
hardcode_action=
 
8362
if test -n "$hardcode_libdir_flag_spec" || \
 
8363
   test -n "$runpath_var" || \
 
8364
   test "X$hardcode_automatic" = "Xyes" ; then
 
8365
 
 
8366
  # We can hardcode non-existant directories.
 
8367
  if test "$hardcode_direct" != no &&
 
8368
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
8369
     # have to relink, otherwise we might link with an installed library
 
8370
     # when we should be linking with a yet-to-be-installed one
 
8371
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
8372
     test "$hardcode_minus_L" != no; then
 
8373
    # Linking always hardcodes the temporary library directory.
 
8374
    hardcode_action=relink
 
8375
  else
 
8376
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
8377
    hardcode_action=immediate
 
8378
  fi
 
8379
else
 
8380
  # We cannot hardcode anything, or else we can only hardcode existing
 
8381
  # directories.
 
8382
  hardcode_action=unsupported
 
8383
fi
 
8384
echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
8385
echo "${ECHO_T}$hardcode_action" >&6
 
8386
 
 
8387
if test "$hardcode_action" = relink; then
 
8388
  # Fast installation is not supported
 
8389
  enable_fast_install=no
 
8390
elif test "$shlibpath_overrides_runpath" = yes ||
 
8391
     test "$enable_shared" = no; then
 
8392
  # Fast installation is not necessary
 
8393
  enable_fast_install=needless
 
8394
fi
 
8395
 
 
8396
striplib=
 
8397
old_striplib=
 
8398
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
8399
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
8400
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
8401
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
8402
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
8403
  echo "$as_me:$LINENO: result: yes" >&5
 
8404
echo "${ECHO_T}yes" >&6
 
8405
else
 
8406
# FIXME - insert some real tests, host_os isn't really good enough
 
8407
  case $host_os in
 
8408
   darwin*)
 
8409
       if test -n "$STRIP" ; then
 
8410
         striplib="$STRIP -x"
 
8411
         echo "$as_me:$LINENO: result: yes" >&5
 
8412
echo "${ECHO_T}yes" >&6
 
8413
       else
 
8414
  echo "$as_me:$LINENO: result: no" >&5
 
8415
echo "${ECHO_T}no" >&6
 
8416
fi
 
8417
       ;;
 
8418
   *)
 
8419
  echo "$as_me:$LINENO: result: no" >&5
 
8420
echo "${ECHO_T}no" >&6
 
8421
    ;;
 
8422
  esac
 
8423
fi
 
8424
 
 
8425
if test "x$enable_dlopen" != xyes; then
 
8426
  enable_dlopen=unknown
 
8427
  enable_dlopen_self=unknown
 
8428
  enable_dlopen_self_static=unknown
 
8429
else
 
8430
  lt_cv_dlopen=no
 
8431
  lt_cv_dlopen_libs=
 
8432
 
 
8433
  case $host_os in
 
8434
  beos*)
 
8435
    lt_cv_dlopen="load_add_on"
 
8436
    lt_cv_dlopen_libs=
 
8437
    lt_cv_dlopen_self=yes
 
8438
    ;;
 
8439
 
 
8440
  mingw* | pw32*)
 
8441
    lt_cv_dlopen="LoadLibrary"
 
8442
    lt_cv_dlopen_libs=
 
8443
   ;;
 
8444
 
 
8445
  cygwin*)
 
8446
    lt_cv_dlopen="dlopen"
 
8447
    lt_cv_dlopen_libs=
 
8448
   ;;
 
8449
 
 
8450
  darwin*)
 
8451
  # if libdl is installed we need to link against it
 
8452
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
8453
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
8454
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
8455
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8456
else
 
8457
  ac_check_lib_save_LIBS=$LIBS
 
8458
LIBS="-ldl  $LIBS"
 
8459
cat >conftest.$ac_ext <<_ACEOF
 
8460
/* confdefs.h.  */
 
8461
_ACEOF
 
8462
cat confdefs.h >>conftest.$ac_ext
 
8463
cat >>conftest.$ac_ext <<_ACEOF
 
8464
/* end confdefs.h.  */
 
8465
 
 
8466
/* Override any gcc2 internal prototype to avoid an error.  */
 
8467
#ifdef __cplusplus
 
8468
extern "C"
 
8469
#endif
 
8470
/* We use char because int might match the return type of a gcc2
 
8471
   builtin and then its argument prototype would still apply.  */
 
8472
char dlopen ();
 
8473
int
 
8474
main ()
 
8475
{
 
8476
dlopen ();
 
8477
  ;
 
8478
  return 0;
 
8479
}
 
8480
_ACEOF
 
8481
rm -f conftest.$ac_objext conftest$ac_exeext
 
8482
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8483
  (eval $ac_link) 2>conftest.er1
 
8484
  ac_status=$?
 
8485
  grep -v '^ *+' conftest.er1 >conftest.err
 
8486
  rm -f conftest.er1
 
8487
  cat conftest.err >&5
 
8488
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8489
  (exit $ac_status); } &&
 
8490
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8491
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8492
  (eval $ac_try) 2>&5
 
8493
  ac_status=$?
 
8494
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8495
  (exit $ac_status); }; } &&
 
8496
         { ac_try='test -s conftest$ac_exeext'
 
8497
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8498
  (eval $ac_try) 2>&5
 
8499
  ac_status=$?
 
8500
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8501
  (exit $ac_status); }; }; then
 
8502
  ac_cv_lib_dl_dlopen=yes
 
8503
else
 
8504
  echo "$as_me: failed program was:" >&5
 
8505
sed 's/^/| /' conftest.$ac_ext >&5
 
8506
 
 
8507
ac_cv_lib_dl_dlopen=no
 
8508
fi
 
8509
rm -f conftest.err conftest.$ac_objext \
 
8510
      conftest$ac_exeext conftest.$ac_ext
 
8511
LIBS=$ac_check_lib_save_LIBS
 
8512
fi
 
8513
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
8514
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
8515
if test $ac_cv_lib_dl_dlopen = yes; then
 
8516
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
8517
else
 
8518
  
 
8519
    lt_cv_dlopen="dyld"
 
8520
    lt_cv_dlopen_libs=
 
8521
    lt_cv_dlopen_self=yes
 
8522
    
 
8523
fi
 
8524
 
 
8525
   ;;
 
8526
 
 
8527
  *)
 
8528
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
8529
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
8530
if test "${ac_cv_func_shl_load+set}" = set; then
 
8531
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8532
else
 
8533
  cat >conftest.$ac_ext <<_ACEOF
 
8534
/* confdefs.h.  */
 
8535
_ACEOF
 
8536
cat confdefs.h >>conftest.$ac_ext
 
8537
cat >>conftest.$ac_ext <<_ACEOF
 
8538
/* end confdefs.h.  */
 
8539
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
8540
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
8541
#define shl_load innocuous_shl_load
 
8542
 
 
8543
/* System header to define __stub macros and hopefully few prototypes,
 
8544
    which can conflict with char shl_load (); below.
 
8545
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
8546
    <limits.h> exists even on freestanding compilers.  */
 
8547
 
 
8548
#ifdef __STDC__
 
8549
# include <limits.h>
 
8550
#else
 
8551
# include <assert.h>
 
8552
#endif
 
8553
 
 
8554
#undef shl_load
 
8555
 
 
8556
/* Override any gcc2 internal prototype to avoid an error.  */
 
8557
#ifdef __cplusplus
 
8558
extern "C"
 
8559
{
 
8560
#endif
 
8561
/* We use char because int might match the return type of a gcc2
 
8562
   builtin and then its argument prototype would still apply.  */
 
8563
char shl_load ();
 
8564
/* The GNU C library defines this for functions which it implements
 
8565
    to always fail with ENOSYS.  Some functions are actually named
 
8566
    something starting with __ and the normal name is an alias.  */
 
8567
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
8568
choke me
 
8569
#else
 
8570
char (*f) () = shl_load;
 
8571
#endif
 
8572
#ifdef __cplusplus
 
8573
}
 
8574
#endif
 
8575
 
 
8576
int
 
8577
main ()
 
8578
{
 
8579
return f != shl_load;
 
8580
  ;
 
8581
  return 0;
 
8582
}
 
8583
_ACEOF
 
8584
rm -f conftest.$ac_objext conftest$ac_exeext
 
8585
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8586
  (eval $ac_link) 2>conftest.er1
 
8587
  ac_status=$?
 
8588
  grep -v '^ *+' conftest.er1 >conftest.err
 
8589
  rm -f conftest.er1
 
8590
  cat conftest.err >&5
 
8591
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8592
  (exit $ac_status); } &&
 
8593
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8594
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8595
  (eval $ac_try) 2>&5
 
8596
  ac_status=$?
 
8597
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8598
  (exit $ac_status); }; } &&
 
8599
         { ac_try='test -s conftest$ac_exeext'
 
8600
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8601
  (eval $ac_try) 2>&5
 
8602
  ac_status=$?
 
8603
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8604
  (exit $ac_status); }; }; then
 
8605
  ac_cv_func_shl_load=yes
 
8606
else
 
8607
  echo "$as_me: failed program was:" >&5
 
8608
sed 's/^/| /' conftest.$ac_ext >&5
 
8609
 
 
8610
ac_cv_func_shl_load=no
 
8611
fi
 
8612
rm -f conftest.err conftest.$ac_objext \
 
8613
      conftest$ac_exeext conftest.$ac_ext
 
8614
fi
 
8615
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
8616
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
8617
if test $ac_cv_func_shl_load = yes; then
 
8618
  lt_cv_dlopen="shl_load"
 
8619
else
 
8620
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
8621
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
8622
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
8623
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8624
else
 
8625
  ac_check_lib_save_LIBS=$LIBS
 
8626
LIBS="-ldld  $LIBS"
 
8627
cat >conftest.$ac_ext <<_ACEOF
 
8628
/* confdefs.h.  */
 
8629
_ACEOF
 
8630
cat confdefs.h >>conftest.$ac_ext
 
8631
cat >>conftest.$ac_ext <<_ACEOF
 
8632
/* end confdefs.h.  */
 
8633
 
 
8634
/* Override any gcc2 internal prototype to avoid an error.  */
 
8635
#ifdef __cplusplus
 
8636
extern "C"
 
8637
#endif
 
8638
/* We use char because int might match the return type of a gcc2
 
8639
   builtin and then its argument prototype would still apply.  */
 
8640
char shl_load ();
 
8641
int
 
8642
main ()
 
8643
{
 
8644
shl_load ();
 
8645
  ;
 
8646
  return 0;
 
8647
}
 
8648
_ACEOF
 
8649
rm -f conftest.$ac_objext conftest$ac_exeext
 
8650
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8651
  (eval $ac_link) 2>conftest.er1
 
8652
  ac_status=$?
 
8653
  grep -v '^ *+' conftest.er1 >conftest.err
 
8654
  rm -f conftest.er1
 
8655
  cat conftest.err >&5
 
8656
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8657
  (exit $ac_status); } &&
 
8658
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8659
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8660
  (eval $ac_try) 2>&5
 
8661
  ac_status=$?
 
8662
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8663
  (exit $ac_status); }; } &&
 
8664
         { ac_try='test -s conftest$ac_exeext'
 
8665
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8666
  (eval $ac_try) 2>&5
 
8667
  ac_status=$?
 
8668
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8669
  (exit $ac_status); }; }; then
 
8670
  ac_cv_lib_dld_shl_load=yes
 
8671
else
 
8672
  echo "$as_me: failed program was:" >&5
 
8673
sed 's/^/| /' conftest.$ac_ext >&5
 
8674
 
 
8675
ac_cv_lib_dld_shl_load=no
 
8676
fi
 
8677
rm -f conftest.err conftest.$ac_objext \
 
8678
      conftest$ac_exeext conftest.$ac_ext
 
8679
LIBS=$ac_check_lib_save_LIBS
 
8680
fi
 
8681
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
8682
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
8683
if test $ac_cv_lib_dld_shl_load = yes; then
 
8684
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
8685
else
 
8686
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
8687
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
8688
if test "${ac_cv_func_dlopen+set}" = set; then
 
8689
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8690
else
 
8691
  cat >conftest.$ac_ext <<_ACEOF
 
8692
/* confdefs.h.  */
 
8693
_ACEOF
 
8694
cat confdefs.h >>conftest.$ac_ext
 
8695
cat >>conftest.$ac_ext <<_ACEOF
 
8696
/* end confdefs.h.  */
 
8697
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
8698
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
8699
#define dlopen innocuous_dlopen
 
8700
 
 
8701
/* System header to define __stub macros and hopefully few prototypes,
 
8702
    which can conflict with char dlopen (); below.
 
8703
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
8704
    <limits.h> exists even on freestanding compilers.  */
 
8705
 
 
8706
#ifdef __STDC__
 
8707
# include <limits.h>
 
8708
#else
 
8709
# include <assert.h>
 
8710
#endif
 
8711
 
 
8712
#undef dlopen
 
8713
 
 
8714
/* Override any gcc2 internal prototype to avoid an error.  */
 
8715
#ifdef __cplusplus
 
8716
extern "C"
 
8717
{
 
8718
#endif
 
8719
/* We use char because int might match the return type of a gcc2
 
8720
   builtin and then its argument prototype would still apply.  */
 
8721
char dlopen ();
 
8722
/* The GNU C library defines this for functions which it implements
 
8723
    to always fail with ENOSYS.  Some functions are actually named
 
8724
    something starting with __ and the normal name is an alias.  */
 
8725
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
8726
choke me
 
8727
#else
 
8728
char (*f) () = dlopen;
 
8729
#endif
 
8730
#ifdef __cplusplus
 
8731
}
 
8732
#endif
 
8733
 
 
8734
int
 
8735
main ()
 
8736
{
 
8737
return f != dlopen;
 
8738
  ;
 
8739
  return 0;
 
8740
}
 
8741
_ACEOF
 
8742
rm -f conftest.$ac_objext conftest$ac_exeext
 
8743
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8744
  (eval $ac_link) 2>conftest.er1
 
8745
  ac_status=$?
 
8746
  grep -v '^ *+' conftest.er1 >conftest.err
 
8747
  rm -f conftest.er1
 
8748
  cat conftest.err >&5
 
8749
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8750
  (exit $ac_status); } &&
 
8751
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8752
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8753
  (eval $ac_try) 2>&5
 
8754
  ac_status=$?
 
8755
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8756
  (exit $ac_status); }; } &&
 
8757
         { ac_try='test -s conftest$ac_exeext'
 
8758
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8759
  (eval $ac_try) 2>&5
 
8760
  ac_status=$?
 
8761
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8762
  (exit $ac_status); }; }; then
 
8763
  ac_cv_func_dlopen=yes
 
8764
else
 
8765
  echo "$as_me: failed program was:" >&5
 
8766
sed 's/^/| /' conftest.$ac_ext >&5
 
8767
 
 
8768
ac_cv_func_dlopen=no
 
8769
fi
 
8770
rm -f conftest.err conftest.$ac_objext \
 
8771
      conftest$ac_exeext conftest.$ac_ext
 
8772
fi
 
8773
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
8774
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
8775
if test $ac_cv_func_dlopen = yes; then
 
8776
  lt_cv_dlopen="dlopen"
 
8777
else
 
8778
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
8779
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
8780
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
8781
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8782
else
 
8783
  ac_check_lib_save_LIBS=$LIBS
 
8784
LIBS="-ldl  $LIBS"
 
8785
cat >conftest.$ac_ext <<_ACEOF
 
8786
/* confdefs.h.  */
 
8787
_ACEOF
 
8788
cat confdefs.h >>conftest.$ac_ext
 
8789
cat >>conftest.$ac_ext <<_ACEOF
 
8790
/* end confdefs.h.  */
 
8791
 
 
8792
/* Override any gcc2 internal prototype to avoid an error.  */
 
8793
#ifdef __cplusplus
 
8794
extern "C"
 
8795
#endif
 
8796
/* We use char because int might match the return type of a gcc2
 
8797
   builtin and then its argument prototype would still apply.  */
 
8798
char dlopen ();
 
8799
int
 
8800
main ()
 
8801
{
 
8802
dlopen ();
 
8803
  ;
 
8804
  return 0;
 
8805
}
 
8806
_ACEOF
 
8807
rm -f conftest.$ac_objext conftest$ac_exeext
 
8808
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8809
  (eval $ac_link) 2>conftest.er1
 
8810
  ac_status=$?
 
8811
  grep -v '^ *+' conftest.er1 >conftest.err
 
8812
  rm -f conftest.er1
 
8813
  cat conftest.err >&5
 
8814
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8815
  (exit $ac_status); } &&
 
8816
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8817
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8818
  (eval $ac_try) 2>&5
 
8819
  ac_status=$?
 
8820
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8821
  (exit $ac_status); }; } &&
 
8822
         { ac_try='test -s conftest$ac_exeext'
 
8823
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8824
  (eval $ac_try) 2>&5
 
8825
  ac_status=$?
 
8826
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8827
  (exit $ac_status); }; }; then
 
8828
  ac_cv_lib_dl_dlopen=yes
 
8829
else
 
8830
  echo "$as_me: failed program was:" >&5
 
8831
sed 's/^/| /' conftest.$ac_ext >&5
 
8832
 
 
8833
ac_cv_lib_dl_dlopen=no
 
8834
fi
 
8835
rm -f conftest.err conftest.$ac_objext \
 
8836
      conftest$ac_exeext conftest.$ac_ext
 
8837
LIBS=$ac_check_lib_save_LIBS
 
8838
fi
 
8839
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
8840
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
8841
if test $ac_cv_lib_dl_dlopen = yes; then
 
8842
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
8843
else
 
8844
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
8845
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
8846
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
8847
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8848
else
 
8849
  ac_check_lib_save_LIBS=$LIBS
 
8850
LIBS="-lsvld  $LIBS"
 
8851
cat >conftest.$ac_ext <<_ACEOF
 
8852
/* confdefs.h.  */
 
8853
_ACEOF
 
8854
cat confdefs.h >>conftest.$ac_ext
 
8855
cat >>conftest.$ac_ext <<_ACEOF
 
8856
/* end confdefs.h.  */
 
8857
 
 
8858
/* Override any gcc2 internal prototype to avoid an error.  */
 
8859
#ifdef __cplusplus
 
8860
extern "C"
 
8861
#endif
 
8862
/* We use char because int might match the return type of a gcc2
 
8863
   builtin and then its argument prototype would still apply.  */
 
8864
char dlopen ();
 
8865
int
 
8866
main ()
 
8867
{
 
8868
dlopen ();
 
8869
  ;
 
8870
  return 0;
 
8871
}
 
8872
_ACEOF
 
8873
rm -f conftest.$ac_objext conftest$ac_exeext
 
8874
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8875
  (eval $ac_link) 2>conftest.er1
 
8876
  ac_status=$?
 
8877
  grep -v '^ *+' conftest.er1 >conftest.err
 
8878
  rm -f conftest.er1
 
8879
  cat conftest.err >&5
 
8880
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8881
  (exit $ac_status); } &&
 
8882
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8883
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8884
  (eval $ac_try) 2>&5
 
8885
  ac_status=$?
 
8886
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8887
  (exit $ac_status); }; } &&
 
8888
         { ac_try='test -s conftest$ac_exeext'
 
8889
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8890
  (eval $ac_try) 2>&5
 
8891
  ac_status=$?
 
8892
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8893
  (exit $ac_status); }; }; then
 
8894
  ac_cv_lib_svld_dlopen=yes
 
8895
else
 
8896
  echo "$as_me: failed program was:" >&5
 
8897
sed 's/^/| /' conftest.$ac_ext >&5
 
8898
 
 
8899
ac_cv_lib_svld_dlopen=no
 
8900
fi
 
8901
rm -f conftest.err conftest.$ac_objext \
 
8902
      conftest$ac_exeext conftest.$ac_ext
 
8903
LIBS=$ac_check_lib_save_LIBS
 
8904
fi
 
8905
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
8906
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
8907
if test $ac_cv_lib_svld_dlopen = yes; then
 
8908
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
8909
else
 
8910
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
8911
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
8912
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
8913
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8914
else
 
8915
  ac_check_lib_save_LIBS=$LIBS
 
8916
LIBS="-ldld  $LIBS"
 
8917
cat >conftest.$ac_ext <<_ACEOF
 
8918
/* confdefs.h.  */
 
8919
_ACEOF
 
8920
cat confdefs.h >>conftest.$ac_ext
 
8921
cat >>conftest.$ac_ext <<_ACEOF
 
8922
/* end confdefs.h.  */
 
8923
 
 
8924
/* Override any gcc2 internal prototype to avoid an error.  */
 
8925
#ifdef __cplusplus
 
8926
extern "C"
 
8927
#endif
 
8928
/* We use char because int might match the return type of a gcc2
 
8929
   builtin and then its argument prototype would still apply.  */
 
8930
char dld_link ();
 
8931
int
 
8932
main ()
 
8933
{
 
8934
dld_link ();
 
8935
  ;
 
8936
  return 0;
 
8937
}
 
8938
_ACEOF
 
8939
rm -f conftest.$ac_objext conftest$ac_exeext
 
8940
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8941
  (eval $ac_link) 2>conftest.er1
 
8942
  ac_status=$?
 
8943
  grep -v '^ *+' conftest.er1 >conftest.err
 
8944
  rm -f conftest.er1
 
8945
  cat conftest.err >&5
 
8946
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8947
  (exit $ac_status); } &&
 
8948
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
8949
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8950
  (eval $ac_try) 2>&5
 
8951
  ac_status=$?
 
8952
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8953
  (exit $ac_status); }; } &&
 
8954
         { ac_try='test -s conftest$ac_exeext'
 
8955
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8956
  (eval $ac_try) 2>&5
 
8957
  ac_status=$?
 
8958
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8959
  (exit $ac_status); }; }; then
 
8960
  ac_cv_lib_dld_dld_link=yes
 
8961
else
 
8962
  echo "$as_me: failed program was:" >&5
 
8963
sed 's/^/| /' conftest.$ac_ext >&5
 
8964
 
 
8965
ac_cv_lib_dld_dld_link=no
 
8966
fi
 
8967
rm -f conftest.err conftest.$ac_objext \
 
8968
      conftest$ac_exeext conftest.$ac_ext
 
8969
LIBS=$ac_check_lib_save_LIBS
 
8970
fi
 
8971
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
8972
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
8973
if test $ac_cv_lib_dld_dld_link = yes; then
 
8974
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
8975
fi
 
8976
 
 
8977
              
 
8978
fi
 
8979
 
 
8980
            
 
8981
fi
 
8982
 
 
8983
          
 
8984
fi
 
8985
 
 
8986
        
 
8987
fi
 
8988
 
 
8989
      
 
8990
fi
 
8991
 
 
8992
    ;;
 
8993
  esac
 
8994
 
 
8995
  if test "x$lt_cv_dlopen" != xno; then
 
8996
    enable_dlopen=yes
 
8997
  else
 
8998
    enable_dlopen=no
 
8999
  fi
 
9000
 
 
9001
  case $lt_cv_dlopen in
 
9002
  dlopen)
 
9003
    save_CPPFLAGS="$CPPFLAGS"
 
9004
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
9005
 
 
9006
    save_LDFLAGS="$LDFLAGS"
 
9007
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
9008
 
 
9009
    save_LIBS="$LIBS"
 
9010
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
9011
 
 
9012
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
9013
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
9014
if test "${lt_cv_dlopen_self+set}" = set; then
 
9015
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9016
else
 
9017
          if test "$cross_compiling" = yes; then :
 
9018
  lt_cv_dlopen_self=cross
 
9019
else
 
9020
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
9021
  lt_status=$lt_dlunknown
 
9022
  cat > conftest.$ac_ext <<EOF
 
9023
#line __oline__ "configure"
 
9024
#include "confdefs.h"
 
9025
 
 
9026
#if HAVE_DLFCN_H
 
9027
#include <dlfcn.h>
 
9028
#endif
 
9029
 
 
9030
#include <stdio.h>
 
9031
 
 
9032
#ifdef RTLD_GLOBAL
 
9033
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
9034
#else
 
9035
#  ifdef DL_GLOBAL
 
9036
#    define LT_DLGLOBAL         DL_GLOBAL
 
9037
#  else
 
9038
#    define LT_DLGLOBAL         0
 
9039
#  endif
 
9040
#endif
 
9041
 
 
9042
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
9043
   find out it does not work in some platform. */
 
9044
#ifndef LT_DLLAZY_OR_NOW
 
9045
#  ifdef RTLD_LAZY
 
9046
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
9047
#  else
 
9048
#    ifdef DL_LAZY
 
9049
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
9050
#    else
 
9051
#      ifdef RTLD_NOW
 
9052
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
9053
#      else
 
9054
#        ifdef DL_NOW
 
9055
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
9056
#        else
 
9057
#          define LT_DLLAZY_OR_NOW      0
 
9058
#        endif
 
9059
#      endif
 
9060
#    endif
 
9061
#  endif
 
9062
#endif
 
9063
 
 
9064
#ifdef __cplusplus
 
9065
extern "C" void exit (int);
 
9066
#endif
 
9067
 
 
9068
void fnord() { int i=42;}
 
9069
int main ()
 
9070
{
 
9071
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
9072
  int status = $lt_dlunknown;
 
9073
 
 
9074
  if (self)
 
9075
    {
 
9076
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
9077
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
9078
      /* dlclose (self); */
 
9079
    }
 
9080
 
 
9081
    exit (status);
 
9082
}
 
9083
EOF
 
9084
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9085
  (eval $ac_link) 2>&5
 
9086
  ac_status=$?
 
9087
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9088
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
9089
    (./conftest; exit; ) >&5 2>/dev/null
 
9090
    lt_status=$?
 
9091
    case x$lt_status in
 
9092
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
9093
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
9094
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
9095
    esac
 
9096
  else :
 
9097
    # compilation failed
 
9098
    lt_cv_dlopen_self=no
 
9099
  fi
 
9100
fi
 
9101
rm -fr conftest*
 
9102
 
 
9103
    
 
9104
fi
 
9105
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
9106
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
9107
 
 
9108
    if test "x$lt_cv_dlopen_self" = xyes; then
 
9109
      LDFLAGS="$LDFLAGS $link_static_flag"
 
9110
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
9111
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
9112
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
9113
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9114
else
 
9115
          if test "$cross_compiling" = yes; then :
 
9116
  lt_cv_dlopen_self_static=cross
 
9117
else
 
9118
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
9119
  lt_status=$lt_dlunknown
 
9120
  cat > conftest.$ac_ext <<EOF
 
9121
#line __oline__ "configure"
 
9122
#include "confdefs.h"
 
9123
 
 
9124
#if HAVE_DLFCN_H
 
9125
#include <dlfcn.h>
 
9126
#endif
 
9127
 
 
9128
#include <stdio.h>
 
9129
 
 
9130
#ifdef RTLD_GLOBAL
 
9131
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
9132
#else
 
9133
#  ifdef DL_GLOBAL
 
9134
#    define LT_DLGLOBAL         DL_GLOBAL
 
9135
#  else
 
9136
#    define LT_DLGLOBAL         0
 
9137
#  endif
 
9138
#endif
 
9139
 
 
9140
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
9141
   find out it does not work in some platform. */
 
9142
#ifndef LT_DLLAZY_OR_NOW
 
9143
#  ifdef RTLD_LAZY
 
9144
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
9145
#  else
 
9146
#    ifdef DL_LAZY
 
9147
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
9148
#    else
 
9149
#      ifdef RTLD_NOW
 
9150
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
9151
#      else
 
9152
#        ifdef DL_NOW
 
9153
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
9154
#        else
 
9155
#          define LT_DLLAZY_OR_NOW      0
 
9156
#        endif
 
9157
#      endif
 
9158
#    endif
 
9159
#  endif
 
9160
#endif
 
9161
 
 
9162
#ifdef __cplusplus
 
9163
extern "C" void exit (int);
 
9164
#endif
 
9165
 
 
9166
void fnord() { int i=42;}
 
9167
int main ()
 
9168
{
 
9169
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
9170
  int status = $lt_dlunknown;
 
9171
 
 
9172
  if (self)
 
9173
    {
 
9174
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
9175
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
9176
      /* dlclose (self); */
 
9177
    }
 
9178
 
 
9179
    exit (status);
 
9180
}
 
9181
EOF
 
9182
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9183
  (eval $ac_link) 2>&5
 
9184
  ac_status=$?
 
9185
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9186
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
9187
    (./conftest; exit; ) >&5 2>/dev/null
 
9188
    lt_status=$?
 
9189
    case x$lt_status in
 
9190
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
9191
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
9192
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
9193
    esac
 
9194
  else :
 
9195
    # compilation failed
 
9196
    lt_cv_dlopen_self_static=no
 
9197
  fi
 
9198
fi
 
9199
rm -fr conftest*
 
9200
 
 
9201
      
 
9202
fi
 
9203
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
9204
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
9205
    fi
 
9206
 
 
9207
    CPPFLAGS="$save_CPPFLAGS"
 
9208
    LDFLAGS="$save_LDFLAGS"
 
9209
    LIBS="$save_LIBS"
 
9210
    ;;
 
9211
  esac
 
9212
 
 
9213
  case $lt_cv_dlopen_self in
 
9214
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
9215
  *) enable_dlopen_self=unknown ;;
 
9216
  esac
 
9217
 
 
9218
  case $lt_cv_dlopen_self_static in
 
9219
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
9220
  *) enable_dlopen_self_static=unknown ;;
 
9221
  esac
 
9222
fi
 
9223
 
 
9224
 
 
9225
# Report which librarie types wil actually be built
 
9226
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
9227
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
9228
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
9229
echo "${ECHO_T}$can_build_shared" >&6
 
9230
 
 
9231
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
9232
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
9233
test "$can_build_shared" = "no" && enable_shared=no
 
9234
 
 
9235
# On AIX, shared libraries and static libraries use the same namespace, and
 
9236
# are all built from PIC.
 
9237
case $host_os in
 
9238
aix3*)
 
9239
  test "$enable_shared" = yes && enable_static=no
 
9240
  if test -n "$RANLIB"; then
 
9241
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
9242
    postinstall_cmds='$RANLIB $lib'
 
9243
  fi
 
9244
  ;;
 
9245
 
 
9246
aix4* | aix5*)
 
9247
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
9248
    test "$enable_shared" = yes && enable_static=no
 
9249
  fi
 
9250
    ;;
 
9251
esac
 
9252
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
9253
echo "${ECHO_T}$enable_shared" >&6
 
9254
 
 
9255
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
9256
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
9257
# Make sure either enable_shared or enable_static is yes.
 
9258
test "$enable_shared" = yes || enable_static=yes
 
9259
echo "$as_me:$LINENO: result: $enable_static" >&5
 
9260
echo "${ECHO_T}$enable_static" >&6
 
9261
 
 
9262
# The else clause should only fire when bootstrapping the
 
9263
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
9264
# with your package, and you will get complaints that there are
 
9265
# no rules to generate ltmain.sh.
 
9266
if test -f "$ltmain"; then
 
9267
  # See if we are running on zsh, and set the options which allow our commands through
 
9268
  # without removal of \ escapes.
 
9269
  if test -n "${ZSH_VERSION+set}" ; then
 
9270
    setopt NO_GLOB_SUBST
 
9271
  fi
 
9272
  # Now quote all the things that may contain metacharacters while being
 
9273
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
9274
  # variables and quote the copies for generation of the libtool script.
 
9275
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
9276
    SED SHELL STRIP \
 
9277
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
9278
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
9279
    deplibs_check_method reload_flag reload_cmds need_locks \
 
9280
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
9281
    lt_cv_sys_global_symbol_to_c_name_address \
 
9282
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
9283
    old_postinstall_cmds old_postuninstall_cmds \
 
9284
    compiler \
 
9285
    CC \
 
9286
    LD \
 
9287
    lt_prog_compiler_wl \
 
9288
    lt_prog_compiler_pic \
 
9289
    lt_prog_compiler_static \
 
9290
    lt_prog_compiler_no_builtin_flag \
 
9291
    export_dynamic_flag_spec \
 
9292
    thread_safe_flag_spec \
 
9293
    whole_archive_flag_spec \
 
9294
    enable_shared_with_static_runtimes \
 
9295
    old_archive_cmds \
 
9296
    old_archive_from_new_cmds \
 
9297
    predep_objects \
 
9298
    postdep_objects \
 
9299
    predeps \
 
9300
    postdeps \
 
9301
    compiler_lib_search_path \
 
9302
    archive_cmds \
 
9303
    archive_expsym_cmds \
 
9304
    postinstall_cmds \
 
9305
    postuninstall_cmds \
 
9306
    old_archive_from_expsyms_cmds \
 
9307
    allow_undefined_flag \
 
9308
    no_undefined_flag \
 
9309
    export_symbols_cmds \
 
9310
    hardcode_libdir_flag_spec \
 
9311
    hardcode_libdir_flag_spec_ld \
 
9312
    hardcode_libdir_separator \
 
9313
    hardcode_automatic \
 
9314
    module_cmds \
 
9315
    module_expsym_cmds \
 
9316
    lt_cv_prog_compiler_c_o \
 
9317
    exclude_expsyms \
 
9318
    include_expsyms; do
 
9319
 
 
9320
    case $var in
 
9321
    old_archive_cmds | \
 
9322
    old_archive_from_new_cmds | \
 
9323
    archive_cmds | \
 
9324
    archive_expsym_cmds | \
 
9325
    module_cmds | \
 
9326
    module_expsym_cmds | \
 
9327
    old_archive_from_expsyms_cmds | \
 
9328
    export_symbols_cmds | \
 
9329
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
9330
    postinstall_cmds | postuninstall_cmds | \
 
9331
    old_postinstall_cmds | old_postuninstall_cmds | \
 
9332
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
9333
      # Double-quote double-evaled strings.
 
9334
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
9335
      ;;
 
9336
    *)
 
9337
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
9338
      ;;
 
9339
    esac
 
9340
  done
 
9341
 
 
9342
  case $lt_echo in
 
9343
  *'\$0 --fallback-echo"')
 
9344
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
9345
    ;;
 
9346
  esac
 
9347
 
 
9348
cfgfile="${ofile}T"
 
9349
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
9350
  $rm -f "$cfgfile"
 
9351
  { echo "$as_me:$LINENO: creating $ofile" >&5
 
9352
echo "$as_me: creating $ofile" >&6;}
 
9353
 
 
9354
  cat <<__EOF__ >> "$cfgfile"
 
9355
#! $SHELL
 
9356
 
 
9357
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
9358
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
9359
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
9360
#
 
9361
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
9362
# Free Software Foundation, Inc.
 
9363
#
 
9364
# This file is part of GNU Libtool:
 
9365
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
9366
#
 
9367
# This program is free software; you can redistribute it and/or modify
 
9368
# it under the terms of the GNU General Public License as published by
 
9369
# the Free Software Foundation; either version 2 of the License, or
 
9370
# (at your option) any later version.
 
9371
#
 
9372
# This program is distributed in the hope that it will be useful, but
 
9373
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
9374
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
9375
# General Public License for more details.
 
9376
#
 
9377
# You should have received a copy of the GNU General Public License
 
9378
# along with this program; if not, write to the Free Software
 
9379
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 
9380
#
 
9381
# As a special exception to the GNU General Public License, if you
 
9382
# distribute this file as part of a program that contains a
 
9383
# configuration script generated by Autoconf, you may include it under
 
9384
# the same distribution terms that you use for the rest of that program.
 
9385
 
 
9386
# A sed program that does not truncate output.
 
9387
SED=$lt_SED
 
9388
 
 
9389
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
9390
Xsed="$SED -e 1s/^X//"
 
9391
 
 
9392
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
9393
# if CDPATH is set.
 
9394
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
9395
 
 
9396
# The names of the tagged configurations supported by this script.
 
9397
available_tags=
 
9398
 
 
9399
# ### BEGIN LIBTOOL CONFIG
 
9400
 
 
9401
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
9402
 
 
9403
# Shell to use when invoking shell scripts.
 
9404
SHELL=$lt_SHELL
 
9405
 
 
9406
# Whether or not to build shared libraries.
 
9407
build_libtool_libs=$enable_shared
 
9408
 
 
9409
# Whether or not to build static libraries.
 
9410
build_old_libs=$enable_static
 
9411
 
 
9412
# Whether or not to add -lc for building shared libraries.
 
9413
build_libtool_need_lc=$archive_cmds_need_lc
 
9414
 
 
9415
# Whether or not to disallow shared libs when runtime libs are static
 
9416
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
9417
 
 
9418
# Whether or not to optimize for fast installation.
 
9419
fast_install=$enable_fast_install
 
9420
 
 
9421
# The host system.
 
9422
host_alias=$host_alias
 
9423
host=$host
 
9424
host_os=$host_os
 
9425
 
 
9426
# The build system.
 
9427
build_alias=$build_alias
 
9428
build=$build
 
9429
build_os=$build_os
 
9430
 
 
9431
# An echo program that does not interpret backslashes.
 
9432
echo=$lt_echo
 
9433
 
 
9434
# The archiver.
 
9435
AR=$lt_AR
 
9436
AR_FLAGS=$lt_AR_FLAGS
 
9437
 
 
9438
# A C compiler.
 
9439
LTCC=$lt_LTCC
 
9440
 
 
9441
# A language-specific compiler.
 
9442
CC=$lt_compiler
 
9443
 
 
9444
# Is the compiler the GNU C compiler?
 
9445
with_gcc=$GCC
 
9446
 
 
9447
# An ERE matcher.
 
9448
EGREP=$lt_EGREP
 
9449
 
 
9450
# The linker used to build libraries.
 
9451
LD=$lt_LD
 
9452
 
 
9453
# Whether we need hard or soft links.
 
9454
LN_S=$lt_LN_S
 
9455
 
 
9456
# A BSD-compatible nm program.
 
9457
NM=$lt_NM
 
9458
 
 
9459
# A symbol stripping program
 
9460
STRIP=$lt_STRIP
 
9461
 
 
9462
# Used to examine libraries when file_magic_cmd begins "file"
 
9463
MAGIC_CMD=$MAGIC_CMD
 
9464
 
 
9465
# Used on cygwin: DLL creation program.
 
9466
DLLTOOL="$DLLTOOL"
 
9467
 
 
9468
# Used on cygwin: object dumper.
 
9469
OBJDUMP="$OBJDUMP"
 
9470
 
 
9471
# Used on cygwin: assembler.
 
9472
AS="$AS"
 
9473
 
 
9474
# The name of the directory that contains temporary libtool files.
 
9475
objdir=$objdir
 
9476
 
 
9477
# How to create reloadable object files.
 
9478
reload_flag=$lt_reload_flag
 
9479
reload_cmds=$lt_reload_cmds
 
9480
 
 
9481
# How to pass a linker flag through the compiler.
 
9482
wl=$lt_lt_prog_compiler_wl
 
9483
 
 
9484
# Object file suffix (normally "o").
 
9485
objext="$ac_objext"
 
9486
 
 
9487
# Old archive suffix (normally "a").
 
9488
libext="$libext"
 
9489
 
 
9490
# Shared library suffix (normally ".so").
 
9491
shrext_cmds='$shrext_cmds'
 
9492
 
 
9493
# Executable file suffix (normally "").
 
9494
exeext="$exeext"
 
9495
 
 
9496
# Additional compiler flags for building library objects.
 
9497
pic_flag=$lt_lt_prog_compiler_pic
 
9498
pic_mode=$pic_mode
 
9499
 
 
9500
# What is the maximum length of a command?
 
9501
max_cmd_len=$lt_cv_sys_max_cmd_len
 
9502
 
 
9503
# Does compiler simultaneously support -c and -o options?
 
9504
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
9505
 
 
9506
# Must we lock files when doing compilation?
 
9507
need_locks=$lt_need_locks
 
9508
 
 
9509
# Do we need the lib prefix for modules?
 
9510
need_lib_prefix=$need_lib_prefix
 
9511
 
 
9512
# Do we need a version for libraries?
 
9513
need_version=$need_version
 
9514
 
 
9515
# Whether dlopen is supported.
 
9516
dlopen_support=$enable_dlopen
 
9517
 
 
9518
# Whether dlopen of programs is supported.
 
9519
dlopen_self=$enable_dlopen_self
 
9520
 
 
9521
# Whether dlopen of statically linked programs is supported.
 
9522
dlopen_self_static=$enable_dlopen_self_static
 
9523
 
 
9524
# Compiler flag to prevent dynamic linking.
 
9525
link_static_flag=$lt_lt_prog_compiler_static
 
9526
 
 
9527
# Compiler flag to turn off builtin functions.
 
9528
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
9529
 
 
9530
# Compiler flag to allow reflexive dlopens.
 
9531
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
9532
 
 
9533
# Compiler flag to generate shared objects directly from archives.
 
9534
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
9535
 
 
9536
# Compiler flag to generate thread-safe objects.
 
9537
thread_safe_flag_spec=$lt_thread_safe_flag_spec
 
9538
 
 
9539
# Library versioning type.
 
9540
version_type=$version_type
 
9541
 
 
9542
# Format of library name prefix.
 
9543
libname_spec=$lt_libname_spec
 
9544
 
 
9545
# List of archive names.  First name is the real one, the rest are links.
 
9546
# The last name is the one that the linker finds with -lNAME.
 
9547
library_names_spec=$lt_library_names_spec
 
9548
 
 
9549
# The coded name of the library, if different from the real name.
 
9550
soname_spec=$lt_soname_spec
 
9551
 
 
9552
# Commands used to build and install an old-style archive.
 
9553
RANLIB=$lt_RANLIB
 
9554
old_archive_cmds=$lt_old_archive_cmds
 
9555
old_postinstall_cmds=$lt_old_postinstall_cmds
 
9556
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
9557
 
 
9558
# Create an old-style archive from a shared archive.
 
9559
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
9560
 
 
9561
# Create a temporary old-style archive to link instead of a shared archive.
 
9562
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
9563
 
 
9564
# Commands used to build and install a shared archive.
 
9565
archive_cmds=$lt_archive_cmds
 
9566
archive_expsym_cmds=$lt_archive_expsym_cmds
 
9567
postinstall_cmds=$lt_postinstall_cmds
 
9568
postuninstall_cmds=$lt_postuninstall_cmds
 
9569
 
 
9570
# Commands used to build a loadable module (assumed same as above if empty)
 
9571
module_cmds=$lt_module_cmds
 
9572
module_expsym_cmds=$lt_module_expsym_cmds
 
9573
 
 
9574
# Commands to strip libraries.
 
9575
old_striplib=$lt_old_striplib
 
9576
striplib=$lt_striplib
 
9577
 
 
9578
# Dependencies to place before the objects being linked to create a
 
9579
# shared library.
 
9580
predep_objects=$lt_predep_objects
 
9581
 
 
9582
# Dependencies to place after the objects being linked to create a
 
9583
# shared library.
 
9584
postdep_objects=$lt_postdep_objects
 
9585
 
 
9586
# Dependencies to place before the objects being linked to create a
 
9587
# shared library.
 
9588
predeps=$lt_predeps
 
9589
 
 
9590
# Dependencies to place after the objects being linked to create a
 
9591
# shared library.
 
9592
postdeps=$lt_postdeps
 
9593
 
 
9594
# The library search path used internally by the compiler when linking
 
9595
# a shared library.
 
9596
compiler_lib_search_path=$lt_compiler_lib_search_path
 
9597
 
 
9598
# Method to check whether dependent libraries are shared objects.
 
9599
deplibs_check_method=$lt_deplibs_check_method
 
9600
 
 
9601
# Command to use when deplibs_check_method == file_magic.
 
9602
file_magic_cmd=$lt_file_magic_cmd
 
9603
 
 
9604
# Flag that allows shared libraries with undefined symbols to be built.
 
9605
allow_undefined_flag=$lt_allow_undefined_flag
 
9606
 
 
9607
# Flag that forces no undefined symbols.
 
9608
no_undefined_flag=$lt_no_undefined_flag
 
9609
 
 
9610
# Commands used to finish a libtool library installation in a directory.
 
9611
finish_cmds=$lt_finish_cmds
 
9612
 
 
9613
# Same as above, but a single script fragment to be evaled but not shown.
 
9614
finish_eval=$lt_finish_eval
 
9615
 
 
9616
# Take the output of nm and produce a listing of raw symbols and C names.
 
9617
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
9618
 
 
9619
# Transform the output of nm in a proper C declaration
 
9620
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
9621
 
 
9622
# Transform the output of nm in a C name address pair
 
9623
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
9624
 
 
9625
# This is the shared library runtime path variable.
 
9626
runpath_var=$runpath_var
 
9627
 
 
9628
# This is the shared library path variable.
 
9629
shlibpath_var=$shlibpath_var
 
9630
 
 
9631
# Is shlibpath searched before the hard-coded library search path?
 
9632
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
9633
 
 
9634
# How to hardcode a shared library path into an executable.
 
9635
hardcode_action=$hardcode_action
 
9636
 
 
9637
# Whether we should hardcode library paths into libraries.
 
9638
hardcode_into_libs=$hardcode_into_libs
 
9639
 
 
9640
# Flag to hardcode \$libdir into a binary during linking.
 
9641
# This must work even if \$libdir does not exist.
 
9642
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
9643
 
 
9644
# If ld is used when linking, flag to hardcode \$libdir into
 
9645
# a binary during linking. This must work even if \$libdir does
 
9646
# not exist.
 
9647
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
9648
 
 
9649
# Whether we need a single -rpath flag with a separated argument.
 
9650
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
9651
 
 
9652
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
9653
# resulting binary.
 
9654
hardcode_direct=$hardcode_direct
 
9655
 
 
9656
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
9657
# resulting binary.
 
9658
hardcode_minus_L=$hardcode_minus_L
 
9659
 
 
9660
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
9661
# the resulting binary.
 
9662
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
9663
 
 
9664
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
9665
# and all subsequent libraries and executables linked against it.
 
9666
hardcode_automatic=$hardcode_automatic
 
9667
 
 
9668
# Variables whose values should be saved in libtool wrapper scripts and
 
9669
# restored at relink time.
 
9670
variables_saved_for_relink="$variables_saved_for_relink"
 
9671
 
 
9672
# Whether libtool must link a program against all its dependency libraries.
 
9673
link_all_deplibs=$link_all_deplibs
 
9674
 
 
9675
# Compile-time system search path for libraries
 
9676
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
9677
 
 
9678
# Run-time system search path for libraries
 
9679
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
9680
 
 
9681
# Fix the shell variable \$srcfile for the compiler.
 
9682
fix_srcfile_path="$fix_srcfile_path"
 
9683
 
 
9684
# Set to yes if exported symbols are required.
 
9685
always_export_symbols=$always_export_symbols
 
9686
 
 
9687
# The commands to list exported symbols.
 
9688
export_symbols_cmds=$lt_export_symbols_cmds
 
9689
 
 
9690
# The commands to extract the exported symbol list from a shared archive.
 
9691
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
9692
 
 
9693
# Symbols that should not be listed in the preloaded symbols.
 
9694
exclude_expsyms=$lt_exclude_expsyms
 
9695
 
 
9696
# Symbols that must always be exported.
 
9697
include_expsyms=$lt_include_expsyms
 
9698
 
 
9699
# ### END LIBTOOL CONFIG
 
9700
 
 
9701
__EOF__
 
9702
 
 
9703
 
 
9704
  case $host_os in
 
9705
  aix3*)
 
9706
    cat <<\EOF >> "$cfgfile"
 
9707
 
 
9708
# AIX sometimes has problems with the GCC collect2 program.  For some
 
9709
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
9710
# vanish in a puff of smoke.
 
9711
if test "X${COLLECT_NAMES+set}" != Xset; then
 
9712
  COLLECT_NAMES=
 
9713
  export COLLECT_NAMES
 
9714
fi
 
9715
EOF
 
9716
    ;;
 
9717
  esac
 
9718
 
 
9719
  # We use sed instead of cat because bash on DJGPP gets confused if
 
9720
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
9721
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
9722
  # is reportedly fixed, but why not run on old versions too?
 
9723
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 
9724
 
 
9725
  mv -f "$cfgfile" "$ofile" || \
 
9726
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
9727
  chmod +x "$ofile"
 
9728
 
 
9729
else
 
9730
  # If there is no Makefile yet, we rely on a make rule to execute
 
9731
  # `config.status --recheck' to rerun these tests and create the
 
9732
  # libtool script then.
 
9733
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
9734
  if test -f "$ltmain_in"; then
 
9735
    test -f Makefile && make "$ltmain"
 
9736
  fi
 
9737
fi
 
9738
 
 
9739
 
 
9740
ac_ext=c
 
9741
ac_cpp='$CPP $CPPFLAGS'
 
9742
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
9743
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
9744
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
9745
 
 
9746
CC="$lt_save_CC"
 
9747
 
 
9748
 
 
9749
# Check whether --with-tags or --without-tags was given.
 
9750
if test "${with_tags+set}" = set; then
 
9751
  withval="$with_tags"
 
9752
  tagnames="$withval"
 
9753
fi; 
 
9754
 
 
9755
if test -f "$ltmain" && test -n "$tagnames"; then
 
9756
  if test ! -f "${ofile}"; then
 
9757
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
 
9758
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
 
9759
  fi
 
9760
 
 
9761
  if test -z "$LTCC"; then
 
9762
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
9763
    if test -z "$LTCC"; then
 
9764
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
 
9765
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
 
9766
    else
 
9767
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
 
9768
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
 
9769
    fi
 
9770
  fi
 
9771
 
 
9772
  # Extract list of available tagged configurations in $ofile.
 
9773
  # Note that this assumes the entire list is on one line.
 
9774
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
9775
 
 
9776
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
9777
  for tagname in $tagnames; do
 
9778
    IFS="$lt_save_ifs"
 
9779
    # Check whether tagname contains only valid characters
 
9780
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
 
9781
    "") ;;
 
9782
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
 
9783
echo "$as_me: error: invalid tag name: $tagname" >&2;}
 
9784
   { (exit 1); exit 1; }; }
 
9785
        ;;
 
9786
    esac
 
9787
 
 
9788
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
9789
    then
 
9790
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
 
9791
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
 
9792
   { (exit 1); exit 1; }; }
 
9793
    fi
 
9794
 
 
9795
    # Update the list of available tags.
 
9796
    if test -n "$tagname"; then
 
9797
      echo appending configuration tag \"$tagname\" to $ofile
 
9798
 
 
9799
      case $tagname in
 
9800
      CXX)
 
9801
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
9802
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
9803
            (test "X$CXX" != "Xg++"))) ; then
 
9804
          ac_ext=cc
 
9805
ac_cpp='$CXXCPP $CPPFLAGS'
 
9806
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
9807
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
9808
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
9809
 
 
9810
 
 
9811
 
 
9812
 
 
9813
archive_cmds_need_lc_CXX=no
 
9814
allow_undefined_flag_CXX=
 
9815
always_export_symbols_CXX=no
 
9816
archive_expsym_cmds_CXX=
 
9817
export_dynamic_flag_spec_CXX=
 
9818
hardcode_direct_CXX=no
 
9819
hardcode_libdir_flag_spec_CXX=
 
9820
hardcode_libdir_flag_spec_ld_CXX=
 
9821
hardcode_libdir_separator_CXX=
 
9822
hardcode_minus_L_CXX=no
 
9823
hardcode_automatic_CXX=no
 
9824
module_cmds_CXX=
 
9825
module_expsym_cmds_CXX=
 
9826
link_all_deplibs_CXX=unknown
 
9827
old_archive_cmds_CXX=$old_archive_cmds
 
9828
no_undefined_flag_CXX=
 
9829
whole_archive_flag_spec_CXX=
 
9830
enable_shared_with_static_runtimes_CXX=no
 
9831
 
 
9832
# Dependencies to place before and after the object being linked:
 
9833
predep_objects_CXX=
 
9834
postdep_objects_CXX=
 
9835
predeps_CXX=
 
9836
postdeps_CXX=
 
9837
compiler_lib_search_path_CXX=
 
9838
 
 
9839
# Source file extension for C++ test sources.
 
9840
ac_ext=cpp
 
9841
 
 
9842
# Object file extension for compiled C++ test sources.
 
9843
objext=o
 
9844
objext_CXX=$objext
 
9845
 
 
9846
# Code to be used in simple compile tests
 
9847
lt_simple_compile_test_code="int some_variable = 0;\n"
 
9848
 
 
9849
# Code to be used in simple link tests
 
9850
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
 
9851
 
 
9852
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
9853
 
 
9854
# If no C compiler was specified, use CC.
 
9855
LTCC=${LTCC-"$CC"}
 
9856
 
 
9857
# Allow CC to be a program name with arguments.
 
9858
compiler=$CC
 
9859
 
 
9860
 
 
9861
# save warnings/boilerplate of simple test code
 
9862
ac_outfile=conftest.$ac_objext
 
9863
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
9864
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
9865
_lt_compiler_boilerplate=`cat conftest.err`
 
9866
$rm conftest*
 
9867
 
 
9868
ac_outfile=conftest.$ac_objext
 
9869
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
9870
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
9871
_lt_linker_boilerplate=`cat conftest.err`
 
9872
$rm conftest*
 
9873
 
 
9874
 
 
9875
# Allow CC to be a program name with arguments.
 
9876
lt_save_CC=$CC
 
9877
lt_save_LD=$LD
 
9878
lt_save_GCC=$GCC
 
9879
GCC=$GXX
 
9880
lt_save_with_gnu_ld=$with_gnu_ld
 
9881
lt_save_path_LD=$lt_cv_path_LD
 
9882
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
9883
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
9884
else
 
9885
  unset lt_cv_prog_gnu_ld
 
9886
fi
 
9887
if test -n "${lt_cv_path_LDCXX+set}"; then
 
9888
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
9889
else
 
9890
  unset lt_cv_path_LD
 
9891
fi
 
9892
test -z "${LDCXX+set}" || LD=$LDCXX
 
9893
CC=${CXX-"c++"}
 
9894
compiler=$CC
 
9895
compiler_CXX=$CC
 
9896
for cc_temp in $compiler""; do
 
9897
  case $cc_temp in
 
9898
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
9899
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
9900
    \-*) ;;
 
9901
    *) break;;
 
9902
  esac
 
9903
done
 
9904
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
9905
 
 
9906
 
 
9907
# We don't want -fno-exception wen compiling C++ code, so set the
 
9908
# no_builtin_flag separately
 
9909
if test "$GXX" = yes; then
 
9910
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
9911
else
 
9912
  lt_prog_compiler_no_builtin_flag_CXX=
 
9913
fi
 
9914
 
 
9915
if test "$GXX" = yes; then
 
9916
  # Set up default GNU C++ configuration
 
9917
 
 
9918
  
 
9919
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
9920
if test "${with_gnu_ld+set}" = set; then
 
9921
  withval="$with_gnu_ld"
 
9922
  test "$withval" = no || with_gnu_ld=yes
 
9923
else
 
9924
  with_gnu_ld=no
 
9925
fi; 
 
9926
ac_prog=ld
 
9927
if test "$GCC" = yes; then
 
9928
  # Check if gcc -print-prog-name=ld gives a path.
 
9929
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
9930
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
9931
  case $host in
 
9932
  *-*-mingw*)
 
9933
    # gcc leaves a trailing carriage return which upsets mingw
 
9934
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
9935
  *)
 
9936
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
9937
  esac
 
9938
  case $ac_prog in
 
9939
    # Accept absolute paths.
 
9940
    [\\/]* | ?:[\\/]*)
 
9941
      re_direlt='/[^/][^/]*/\.\./'
 
9942
      # Canonicalize the pathname of ld
 
9943
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
9944
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
9945
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
9946
      done
 
9947
      test -z "$LD" && LD="$ac_prog"
 
9948
      ;;
 
9949
  "")
 
9950
    # If it fails, then pretend we aren't using GCC.
 
9951
    ac_prog=ld
 
9952
    ;;
 
9953
  *)
 
9954
    # If it is relative, then search for the first ld in PATH.
 
9955
    with_gnu_ld=unknown
 
9956
    ;;
 
9957
  esac
 
9958
elif test "$with_gnu_ld" = yes; then
 
9959
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
9960
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
9961
else
 
9962
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
9963
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
9964
fi
 
9965
if test "${lt_cv_path_LD+set}" = set; then
 
9966
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9967
else
 
9968
  if test -z "$LD"; then
 
9969
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
9970
  for ac_dir in $PATH; do
 
9971
    IFS="$lt_save_ifs"
 
9972
    test -z "$ac_dir" && ac_dir=.
 
9973
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
9974
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
9975
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
9976
      # but apparently some variants of GNU ld only accept -v.
 
9977
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
9978
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
9979
      *GNU* | *'with BFD'*)
 
9980
        test "$with_gnu_ld" != no && break
 
9981
        ;;
 
9982
      *)
 
9983
        test "$with_gnu_ld" != yes && break
 
9984
        ;;
 
9985
      esac
 
9986
    fi
 
9987
  done
 
9988
  IFS="$lt_save_ifs"
 
9989
else
 
9990
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
9991
fi
 
9992
fi
 
9993
 
 
9994
LD="$lt_cv_path_LD"
 
9995
if test -n "$LD"; then
 
9996
  echo "$as_me:$LINENO: result: $LD" >&5
 
9997
echo "${ECHO_T}$LD" >&6
 
9998
else
 
9999
  echo "$as_me:$LINENO: result: no" >&5
 
10000
echo "${ECHO_T}no" >&6
 
10001
fi
 
10002
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
10003
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
10004
   { (exit 1); exit 1; }; }
 
10005
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
10006
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
10007
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
10008
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10009
else
 
10010
  # I'd rather use --version here, but apparently some GNU lds only accept -v.
 
10011
case `$LD -v 2>&1 </dev/null` in
 
10012
*GNU* | *'with BFD'*)
 
10013
  lt_cv_prog_gnu_ld=yes
 
10014
  ;;
 
10015
*)
 
10016
  lt_cv_prog_gnu_ld=no
 
10017
  ;;
 
10018
esac
 
10019
fi
 
10020
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
10021
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
10022
with_gnu_ld=$lt_cv_prog_gnu_ld
 
10023
 
 
10024
 
 
10025
 
 
10026
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
10027
  # archiving commands below assume that GNU ld is being used.
 
10028
  if test "$with_gnu_ld" = yes; then
 
10029
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10030
    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'
 
10031
 
 
10032
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
10033
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
10034
 
 
10035
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
10036
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
10037
    #     investigate it a little bit more. (MM)
 
10038
    wlarc='${wl}'
 
10039
 
 
10040
    # ancient GNU ld didn't support --whole-archive et. al.
 
10041
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
10042
        grep 'no-whole-archive' > /dev/null; then
 
10043
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
10044
    else
 
10045
      whole_archive_flag_spec_CXX=
 
10046
    fi
 
10047
  else
 
10048
    with_gnu_ld=no
 
10049
    wlarc=
 
10050
 
 
10051
    # A generic and very simple default shared library creation
 
10052
    # command for GNU C++ for the case where it uses the native
 
10053
    # linker, instead of GNU ld.  If possible, this setting should
 
10054
    # overridden to take advantage of the native linker features on
 
10055
    # the platform it is being used on.
 
10056
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
10057
  fi
 
10058
 
 
10059
  # Commands to make compiler produce verbose output that lists
 
10060
  # what "hidden" libraries, object files and flags are used when
 
10061
  # linking a shared library.
 
10062
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
10063
 
 
10064
else
 
10065
  GXX=no
 
10066
  with_gnu_ld=no
 
10067
  wlarc=
 
10068
fi
 
10069
 
 
10070
# PORTME: fill in a description of your system's C++ link characteristics
 
10071
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
10072
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
10073
ld_shlibs_CXX=yes
 
10074
case $host_os in
 
10075
  aix3*)
 
10076
    # FIXME: insert proper C++ library support
 
10077
    ld_shlibs_CXX=no
 
10078
    ;;
 
10079
  aix4* | aix5*)
 
10080
    if test "$host_cpu" = ia64; then
 
10081
      # On IA64, the linker does run time linking by default, so we don't
 
10082
      # have to do anything special.
 
10083
      aix_use_runtimelinking=no
 
10084
      exp_sym_flag='-Bexport'
 
10085
      no_entry_flag=""
 
10086
    else
 
10087
      aix_use_runtimelinking=no
 
10088
 
 
10089
      # Test if we are trying to use run time linking or normal
 
10090
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
10091
      # need to do runtime linking.
 
10092
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
10093
        for ld_flag in $LDFLAGS; do
 
10094
          case $ld_flag in
 
10095
          *-brtl*)
 
10096
            aix_use_runtimelinking=yes
 
10097
            break
 
10098
            ;;
 
10099
          esac
 
10100
        done
 
10101
      esac
 
10102
 
 
10103
      exp_sym_flag='-bexport'
 
10104
      no_entry_flag='-bnoentry'
 
10105
    fi
 
10106
 
 
10107
    # When large executables or shared objects are built, AIX ld can
 
10108
    # have problems creating the table of contents.  If linking a library
 
10109
    # or program results in "error TOC overflow" add -mminimal-toc to
 
10110
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
10111
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
10112
 
 
10113
    archive_cmds_CXX=''
 
10114
    hardcode_direct_CXX=yes
 
10115
    hardcode_libdir_separator_CXX=':'
 
10116
    link_all_deplibs_CXX=yes
 
10117
 
 
10118
    if test "$GXX" = yes; then
 
10119
      case $host_os in aix4.[012]|aix4.[012].*)
 
10120
      # We only want to do this on AIX 4.2 and lower, the check
 
10121
      # below for broken collect2 doesn't work under 4.3+
 
10122
        collect2name=`${CC} -print-prog-name=collect2`
 
10123
        if test -f "$collect2name" && \
 
10124
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
10125
        then
 
10126
          # We have reworked collect2
 
10127
          hardcode_direct_CXX=yes
 
10128
        else
 
10129
          # We have old collect2
 
10130
          hardcode_direct_CXX=unsupported
 
10131
          # It fails to find uninstalled libraries when the uninstalled
 
10132
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
10133
          # to unsupported forces relinking
 
10134
          hardcode_minus_L_CXX=yes
 
10135
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
10136
          hardcode_libdir_separator_CXX=
 
10137
        fi
 
10138
      esac
 
10139
      shared_flag='-shared'
 
10140
      if test "$aix_use_runtimelinking" = yes; then
 
10141
        shared_flag="$shared_flag "'${wl}-G'
 
10142
      fi
 
10143
    else
 
10144
      # not using gcc
 
10145
      if test "$host_cpu" = ia64; then
 
10146
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
10147
        # chokes on -Wl,-G. The following line is correct:
 
10148
        shared_flag='-G'
 
10149
      else
 
10150
        if test "$aix_use_runtimelinking" = yes; then
 
10151
          shared_flag='${wl}-G'
 
10152
        else
 
10153
          shared_flag='${wl}-bM:SRE'
 
10154
        fi
 
10155
      fi
 
10156
    fi
 
10157
 
 
10158
    # It seems that -bexpall does not export symbols beginning with
 
10159
    # underscore (_), so it is better to generate a list of symbols to export.
 
10160
    always_export_symbols_CXX=yes
 
10161
    if test "$aix_use_runtimelinking" = yes; then
 
10162
      # Warning - without using the other runtime loading flags (-brtl),
 
10163
      # -berok will link without error, but may produce a broken library.
 
10164
      allow_undefined_flag_CXX='-berok'
 
10165
      # Determine the default libpath from the value encoded in an empty executable.
 
10166
      cat >conftest.$ac_ext <<_ACEOF
 
10167
/* confdefs.h.  */
 
10168
_ACEOF
 
10169
cat confdefs.h >>conftest.$ac_ext
 
10170
cat >>conftest.$ac_ext <<_ACEOF
 
10171
/* end confdefs.h.  */
 
10172
 
 
10173
int
 
10174
main ()
 
10175
{
 
10176
 
 
10177
  ;
 
10178
  return 0;
 
10179
}
 
10180
_ACEOF
 
10181
rm -f conftest.$ac_objext conftest$ac_exeext
 
10182
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10183
  (eval $ac_link) 2>conftest.er1
 
10184
  ac_status=$?
 
10185
  grep -v '^ *+' conftest.er1 >conftest.err
 
10186
  rm -f conftest.er1
 
10187
  cat conftest.err >&5
 
10188
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10189
  (exit $ac_status); } &&
 
10190
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
10191
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10192
  (eval $ac_try) 2>&5
 
10193
  ac_status=$?
 
10194
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10195
  (exit $ac_status); }; } &&
 
10196
         { ac_try='test -s conftest$ac_exeext'
 
10197
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10198
  (eval $ac_try) 2>&5
 
10199
  ac_status=$?
 
10200
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10201
  (exit $ac_status); }; }; then
 
10202
  
 
10203
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
10204
}'`
 
10205
# Check for a 64-bit object if we didn't find anything.
 
10206
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; }
 
10207
}'`; fi
 
10208
else
 
10209
  echo "$as_me: failed program was:" >&5
 
10210
sed 's/^/| /' conftest.$ac_ext >&5
 
10211
 
 
10212
fi
 
10213
rm -f conftest.err conftest.$ac_objext \
 
10214
      conftest$ac_exeext conftest.$ac_ext
 
10215
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
10216
 
 
10217
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
10218
 
 
10219
      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"
 
10220
     else
 
10221
      if test "$host_cpu" = ia64; then
 
10222
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
10223
        allow_undefined_flag_CXX="-z nodefs"
 
10224
        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"
 
10225
      else
 
10226
        # Determine the default libpath from the value encoded in an empty executable.
 
10227
        cat >conftest.$ac_ext <<_ACEOF
 
10228
/* confdefs.h.  */
 
10229
_ACEOF
 
10230
cat confdefs.h >>conftest.$ac_ext
 
10231
cat >>conftest.$ac_ext <<_ACEOF
 
10232
/* end confdefs.h.  */
 
10233
 
 
10234
int
 
10235
main ()
 
10236
{
 
10237
 
 
10238
  ;
 
10239
  return 0;
 
10240
}
 
10241
_ACEOF
 
10242
rm -f conftest.$ac_objext conftest$ac_exeext
 
10243
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10244
  (eval $ac_link) 2>conftest.er1
 
10245
  ac_status=$?
 
10246
  grep -v '^ *+' conftest.er1 >conftest.err
 
10247
  rm -f conftest.er1
 
10248
  cat conftest.err >&5
 
10249
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10250
  (exit $ac_status); } &&
 
10251
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
10252
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10253
  (eval $ac_try) 2>&5
 
10254
  ac_status=$?
 
10255
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10256
  (exit $ac_status); }; } &&
 
10257
         { ac_try='test -s conftest$ac_exeext'
 
10258
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10259
  (eval $ac_try) 2>&5
 
10260
  ac_status=$?
 
10261
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10262
  (exit $ac_status); }; }; then
 
10263
  
 
10264
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
10265
}'`
 
10266
# Check for a 64-bit object if we didn't find anything.
 
10267
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; }
 
10268
}'`; fi
 
10269
else
 
10270
  echo "$as_me: failed program was:" >&5
 
10271
sed 's/^/| /' conftest.$ac_ext >&5
 
10272
 
 
10273
fi
 
10274
rm -f conftest.err conftest.$ac_objext \
 
10275
      conftest$ac_exeext conftest.$ac_ext
 
10276
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
10277
 
 
10278
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
10279
        # Warning - without using the other run time loading flags,
 
10280
        # -berok will link without error, but may produce a broken library.
 
10281
        no_undefined_flag_CXX=' ${wl}-bernotok'
 
10282
        allow_undefined_flag_CXX=' ${wl}-berok'
 
10283
        # -bexpall does not export symbols beginning with underscore (_)
 
10284
        always_export_symbols_CXX=yes
 
10285
        # Exported symbols can be pulled into shared objects from archives
 
10286
        whole_archive_flag_spec_CXX=' '
 
10287
        archive_cmds_need_lc_CXX=yes
 
10288
        # This is similar to how AIX traditionally builds its shared libraries.
 
10289
        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'
 
10290
      fi
 
10291
    fi
 
10292
    ;;
 
10293
  chorus*)
 
10294
    case $cc_basename in
 
10295
      *)
 
10296
        # FIXME: insert proper C++ library support
 
10297
        ld_shlibs_CXX=no
 
10298
        ;;
 
10299
    esac
 
10300
    ;;
 
10301
 
 
10302
 
 
10303
  cygwin* | mingw* | pw32*)
 
10304
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
10305
    # as there is no search path for DLLs.
 
10306
    hardcode_libdir_flag_spec_CXX='-L$libdir'
 
10307
    allow_undefined_flag_CXX=unsupported
 
10308
    always_export_symbols_CXX=no
 
10309
    enable_shared_with_static_runtimes_CXX=yes
 
10310
 
 
10311
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
10312
      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'
 
10313
      # If the export-symbols file already is a .def file (1st line
 
10314
      # is EXPORTS), use it as is; otherwise, prepend...
 
10315
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
10316
        cp $export_symbols $output_objdir/$soname.def;
 
10317
      else
 
10318
        echo EXPORTS > $output_objdir/$soname.def;
 
10319
        cat $export_symbols >> $output_objdir/$soname.def;
 
10320
      fi~
 
10321
      $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'
 
10322
    else
 
10323
      ld_shlibs_CXX=no
 
10324
    fi
 
10325
  ;;
 
10326
      darwin* | rhapsody*)
 
10327
        case $host_os in
 
10328
        rhapsody* | darwin1.[012])
 
10329
         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
 
10330
         ;;
 
10331
       *) # Darwin 1.3 on
 
10332
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
10333
           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
10334
         else
 
10335
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
10336
             10.[012])
 
10337
               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
10338
               ;;
 
10339
             10.*)
 
10340
               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
 
10341
               ;;
 
10342
           esac
 
10343
         fi
 
10344
         ;;
 
10345
        esac
 
10346
      archive_cmds_need_lc_CXX=no
 
10347
      hardcode_direct_CXX=no
 
10348
      hardcode_automatic_CXX=yes
 
10349
      hardcode_shlibpath_var_CXX=unsupported
 
10350
      whole_archive_flag_spec_CXX=''
 
10351
      link_all_deplibs_CXX=yes
 
10352
 
 
10353
    if test "$GXX" = yes ; then
 
10354
      lt_int_apple_cc_single_mod=no
 
10355
      output_verbose_link_cmd='echo'
 
10356
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
 
10357
       lt_int_apple_cc_single_mod=yes
 
10358
      fi
 
10359
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
10360
       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
10361
      else
 
10362
          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'
 
10363
        fi
 
10364
        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
10365
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
10366
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
10367
            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}'
 
10368
          else
 
10369
            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}'
 
10370
          fi
 
10371
            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}'
 
10372
      else
 
10373
      case $cc_basename in
 
10374
        xlc*)
 
10375
         output_verbose_link_cmd='echo'
 
10376
          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'
 
10377
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
10378
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
10379
          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}'
 
10380
          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}'
 
10381
          ;;
 
10382
       *)
 
10383
         ld_shlibs_CXX=no
 
10384
          ;;
 
10385
      esac
 
10386
      fi
 
10387
        ;;
 
10388
 
 
10389
  dgux*)
 
10390
    case $cc_basename in
 
10391
      ec++*)
 
10392
        # FIXME: insert proper C++ library support
 
10393
        ld_shlibs_CXX=no
 
10394
        ;;
 
10395
      ghcx*)
 
10396
        # Green Hills C++ Compiler
 
10397
        # FIXME: insert proper C++ library support
 
10398
        ld_shlibs_CXX=no
 
10399
        ;;
 
10400
      *)
 
10401
        # FIXME: insert proper C++ library support
 
10402
        ld_shlibs_CXX=no
 
10403
        ;;
 
10404
    esac
 
10405
    ;;
 
10406
  freebsd[12]*)
 
10407
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
10408
    ld_shlibs_CXX=no
 
10409
    ;;
 
10410
  freebsd-elf*)
 
10411
    archive_cmds_need_lc_CXX=no
 
10412
    ;;
 
10413
  freebsd* | kfreebsd*-gnu | dragonfly*)
 
10414
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
10415
    # conventions
 
10416
    ld_shlibs_CXX=yes
 
10417
    ;;
 
10418
  gnu*)
 
10419
    ;;
 
10420
  hpux9*)
 
10421
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
10422
    hardcode_libdir_separator_CXX=:
 
10423
    export_dynamic_flag_spec_CXX='${wl}-E'
 
10424
    hardcode_direct_CXX=yes
 
10425
    hardcode_minus_L_CXX=yes # Not in the search PATH,
 
10426
                                # but as the default
 
10427
                                # location of the library.
 
10428
 
 
10429
    case $cc_basename in
 
10430
    CC*)
 
10431
      # FIXME: insert proper C++ library support
 
10432
      ld_shlibs_CXX=no
 
10433
      ;;
 
10434
    aCC*)
 
10435
      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'
 
10436
      # Commands to make compiler produce verbose output that lists
 
10437
      # what "hidden" libraries, object files and flags are used when
 
10438
      # linking a shared library.
 
10439
      #
 
10440
      # There doesn't appear to be a way to prevent this compiler from
 
10441
      # explicitly linking system object files so we need to strip them
 
10442
      # from the output so that they don't get included in the library
 
10443
      # dependencies.
 
10444
      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'
 
10445
      ;;
 
10446
    *)
 
10447
      if test "$GXX" = yes; then
 
10448
        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'
 
10449
      else
 
10450
        # FIXME: insert proper C++ library support
 
10451
        ld_shlibs_CXX=no
 
10452
      fi
 
10453
      ;;
 
10454
    esac
 
10455
    ;;
 
10456
  hpux10*|hpux11*)
 
10457
    if test $with_gnu_ld = no; then
 
10458
      case $host_cpu in
 
10459
      hppa*64*)
 
10460
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
10461
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
 
10462
        hardcode_libdir_separator_CXX=:
 
10463
        ;;
 
10464
      ia64*)
 
10465
        hardcode_libdir_flag_spec_CXX='-L$libdir'
 
10466
        ;;
 
10467
      *)
 
10468
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
10469
        hardcode_libdir_separator_CXX=:
 
10470
        export_dynamic_flag_spec_CXX='${wl}-E'
 
10471
        ;;
 
10472
      esac
 
10473
    fi
 
10474
    case $host_cpu in
 
10475
    hppa*64*)
 
10476
      hardcode_direct_CXX=no
 
10477
      hardcode_shlibpath_var_CXX=no
 
10478
      ;;
 
10479
    ia64*)
 
10480
      hardcode_direct_CXX=no
 
10481
      hardcode_shlibpath_var_CXX=no
 
10482
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
10483
                                              # but as the default
 
10484
                                              # location of the library.
 
10485
      ;;
 
10486
    *)
 
10487
      hardcode_direct_CXX=yes
 
10488
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
10489
                                              # but as the default
 
10490
                                              # location of the library.
 
10491
      ;;
 
10492
    esac
 
10493
 
 
10494
    case $cc_basename in
 
10495
      CC*)
 
10496
        # FIXME: insert proper C++ library support
 
10497
        ld_shlibs_CXX=no
 
10498
        ;;
 
10499
      aCC*)
 
10500
        case $host_cpu in
 
10501
        hppa*64*|ia64*)
 
10502
          archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
10503
          ;;
 
10504
        *)
 
10505
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10506
          ;;
 
10507
        esac
 
10508
        # Commands to make compiler produce verbose output that lists
 
10509
        # what "hidden" libraries, object files and flags are used when
 
10510
        # linking a shared library.
 
10511
        #
 
10512
        # There doesn't appear to be a way to prevent this compiler from
 
10513
        # explicitly linking system object files so we need to strip them
 
10514
        # from the output so that they don't get included in the library
 
10515
        # dependencies.
 
10516
        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'
 
10517
        ;;
 
10518
      *)
 
10519
        if test "$GXX" = yes; then
 
10520
          if test $with_gnu_ld = no; then
 
10521
            case $host_cpu in
 
10522
            ia64*|hppa*64*)
 
10523
              archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
10524
              ;;
 
10525
            *)
 
10526
              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'
 
10527
              ;;
 
10528
            esac
 
10529
          fi
 
10530
        else
 
10531
          # FIXME: insert proper C++ library support
 
10532
          ld_shlibs_CXX=no
 
10533
        fi
 
10534
        ;;
 
10535
    esac
 
10536
    ;;
 
10537
  irix5* | irix6*)
 
10538
    case $cc_basename in
 
10539
      CC*)
 
10540
        # SGI C++
 
10541
        archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
10542
 
 
10543
        # Archives containing C++ object files must be created using
 
10544
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
10545
        # necessary to make sure instantiated templates are included
 
10546
        # in the archive.
 
10547
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
10548
        ;;
 
10549
      *)
 
10550
        if test "$GXX" = yes; then
 
10551
          if test "$with_gnu_ld" = no; then
 
10552
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
10553
          else
 
10554
            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'
 
10555
          fi
 
10556
        fi
 
10557
        link_all_deplibs_CXX=yes
 
10558
        ;;
 
10559
    esac
 
10560
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
10561
    hardcode_libdir_separator_CXX=:
 
10562
    ;;
 
10563
  linux*)
 
10564
    case $cc_basename in
 
10565
      KCC*)
 
10566
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
10567
 
 
10568
        # KCC will only create a shared library if the output file
 
10569
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
10570
        # to its proper name (with version) after linking.
 
10571
        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'
 
10572
        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'
 
10573
        # Commands to make compiler produce verbose output that lists
 
10574
        # what "hidden" libraries, object files and flags are used when
 
10575
        # linking a shared library.
 
10576
        #
 
10577
        # There doesn't appear to be a way to prevent this compiler from
 
10578
        # explicitly linking system object files so we need to strip them
 
10579
        # from the output so that they don't get included in the library
 
10580
        # dependencies.
 
10581
        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'
 
10582
 
 
10583
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
 
10584
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
10585
 
 
10586
        # Archives containing C++ object files must be created using
 
10587
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
10588
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
10589
        ;;
 
10590
      icpc*)
 
10591
        # Intel C++
 
10592
        with_gnu_ld=yes
 
10593
        # version 8.0 and above of icpc choke on multiply defined symbols
 
10594
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
10595
        # earlier do not add the objects themselves.
 
10596
        case `$CC -V 2>&1` in
 
10597
        *"Version 7."*)
 
10598
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10599
          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'
 
10600
          ;;
 
10601
        *)  # Version 8.0 or newer
 
10602
          tmp_idyn=
 
10603
          case $host_cpu in
 
10604
            ia64*) tmp_idyn=' -i_dynamic';;
 
10605
          esac
 
10606
          archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10607
          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'
 
10608
          ;;
 
10609
        esac
 
10610
        archive_cmds_need_lc_CXX=no
 
10611
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10612
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
10613
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
10614
        ;;
 
10615
      pgCC*)
 
10616
        # Portland Group C++ compiler
 
10617
        archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
 
10618
        archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
 
10619
 
 
10620
        hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
10621
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
10622
        whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
10623
        ;;
 
10624
      cxx*)
 
10625
        # Compaq C++
 
10626
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10627
        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'
 
10628
 
 
10629
        runpath_var=LD_RUN_PATH
 
10630
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
10631
        hardcode_libdir_separator_CXX=:
 
10632
 
 
10633
        # Commands to make compiler produce verbose output that lists
 
10634
        # what "hidden" libraries, object files and flags are used when
 
10635
        # linking a shared library.
 
10636
        #
 
10637
        # There doesn't appear to be a way to prevent this compiler from
 
10638
        # explicitly linking system object files so we need to strip them
 
10639
        # from the output so that they don't get included in the library
 
10640
        # dependencies.
 
10641
        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'
 
10642
        ;;
 
10643
    esac
 
10644
    ;;
 
10645
  lynxos*)
 
10646
    # FIXME: insert proper C++ library support
 
10647
    ld_shlibs_CXX=no
 
10648
    ;;
 
10649
  m88k*)
 
10650
    # FIXME: insert proper C++ library support
 
10651
    ld_shlibs_CXX=no
 
10652
    ;;
 
10653
  mvs*)
 
10654
    case $cc_basename in
 
10655
      cxx*)
 
10656
        # FIXME: insert proper C++ library support
 
10657
        ld_shlibs_CXX=no
 
10658
        ;;
 
10659
      *)
 
10660
        # FIXME: insert proper C++ library support
 
10661
        ld_shlibs_CXX=no
 
10662
        ;;
 
10663
    esac
 
10664
    ;;
 
10665
  netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
10666
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
10667
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
10668
      wlarc=
 
10669
      hardcode_libdir_flag_spec_CXX='-R$libdir'
 
10670
      hardcode_direct_CXX=yes
 
10671
      hardcode_shlibpath_var_CXX=no
 
10672
    fi
 
10673
    # Workaround some broken pre-1.5 toolchains
 
10674
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
10675
    ;;
 
10676
  openbsd2*)
 
10677
    # C++ shared libraries are fairly broken
 
10678
    ld_shlibs_CXX=no
 
10679
    ;;
 
10680
  openbsd*)
 
10681
    hardcode_direct_CXX=yes
 
10682
    hardcode_shlibpath_var_CXX=no
 
10683
    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
10684
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10685
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
10686
      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
10687
      export_dynamic_flag_spec_CXX='${wl}-E'
 
10688
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
10689
    fi
 
10690
    output_verbose_link_cmd='echo'
 
10691
    ;;
 
10692
  osf3*)
 
10693
    case $cc_basename in
 
10694
      KCC*)
 
10695
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
10696
 
 
10697
        # KCC will only create a shared library if the output file
 
10698
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
10699
        # to its proper name (with version) after linking.
 
10700
        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'
 
10701
 
 
10702
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10703
        hardcode_libdir_separator_CXX=:
 
10704
 
 
10705
        # Archives containing C++ object files must be created using
 
10706
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
10707
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
10708
 
 
10709
        ;;
 
10710
      RCC*)
 
10711
        # Rational C++ 2.4.1
 
10712
        # FIXME: insert proper C++ library support
 
10713
        ld_shlibs_CXX=no
 
10714
        ;;
 
10715
      cxx*)
 
10716
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
10717
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
10718
 
 
10719
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
10720
        hardcode_libdir_separator_CXX=:
 
10721
 
 
10722
        # Commands to make compiler produce verbose output that lists
 
10723
        # what "hidden" libraries, object files and flags are used when
 
10724
        # linking a shared library.
 
10725
        #
 
10726
        # There doesn't appear to be a way to prevent this compiler from
 
10727
        # explicitly linking system object files so we need to strip them
 
10728
        # from the output so that they don't get included in the library
 
10729
        # dependencies.
 
10730
        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'
 
10731
        ;;
 
10732
      *)
 
10733
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
10734
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
10735
          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
10736
 
 
10737
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
10738
          hardcode_libdir_separator_CXX=:
 
10739
 
 
10740
          # Commands to make compiler produce verbose output that lists
 
10741
          # what "hidden" libraries, object files and flags are used when
 
10742
          # linking a shared library.
 
10743
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
10744
 
 
10745
        else
 
10746
          # FIXME: insert proper C++ library support
 
10747
          ld_shlibs_CXX=no
 
10748
        fi
 
10749
        ;;
 
10750
    esac
 
10751
    ;;
 
10752
  osf4* | osf5*)
 
10753
    case $cc_basename in
 
10754
      KCC*)
 
10755
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
10756
 
 
10757
        # KCC will only create a shared library if the output file
 
10758
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
10759
        # to its proper name (with version) after linking.
 
10760
        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'
 
10761
 
 
10762
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
10763
        hardcode_libdir_separator_CXX=:
 
10764
 
 
10765
        # Archives containing C++ object files must be created using
 
10766
        # the KAI C++ compiler.
 
10767
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
 
10768
        ;;
 
10769
      RCC*)
 
10770
        # Rational C++ 2.4.1
 
10771
        # FIXME: insert proper C++ library support
 
10772
        ld_shlibs_CXX=no
 
10773
        ;;
 
10774
      cxx*)
 
10775
        allow_undefined_flag_CXX=' -expect_unresolved \*'
 
10776
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
10777
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
10778
          echo "-hidden">> $lib.exp~
 
10779
          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
 
10780
          $rm $lib.exp'
 
10781
 
 
10782
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
10783
        hardcode_libdir_separator_CXX=:
 
10784
 
 
10785
        # Commands to make compiler produce verbose output that lists
 
10786
        # what "hidden" libraries, object files and flags are used when
 
10787
        # linking a shared library.
 
10788
        #
 
10789
        # There doesn't appear to be a way to prevent this compiler from
 
10790
        # explicitly linking system object files so we need to strip them
 
10791
        # from the output so that they don't get included in the library
 
10792
        # dependencies.
 
10793
        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'
 
10794
        ;;
 
10795
      *)
 
10796
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
10797
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
10798
         archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
10799
 
 
10800
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
10801
          hardcode_libdir_separator_CXX=:
 
10802
 
 
10803
          # Commands to make compiler produce verbose output that lists
 
10804
          # what "hidden" libraries, object files and flags are used when
 
10805
          # linking a shared library.
 
10806
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
10807
 
 
10808
        else
 
10809
          # FIXME: insert proper C++ library support
 
10810
          ld_shlibs_CXX=no
 
10811
        fi
 
10812
        ;;
 
10813
    esac
 
10814
    ;;
 
10815
  psos*)
 
10816
    # FIXME: insert proper C++ library support
 
10817
    ld_shlibs_CXX=no
 
10818
    ;;
 
10819
  sco*)
 
10820
    archive_cmds_need_lc_CXX=no
 
10821
    case $cc_basename in
 
10822
      CC*)
 
10823
        # FIXME: insert proper C++ library support
 
10824
        ld_shlibs_CXX=no
 
10825
        ;;
 
10826
      *)
 
10827
        # FIXME: insert proper C++ library support
 
10828
        ld_shlibs_CXX=no
 
10829
        ;;
 
10830
    esac
 
10831
    ;;
 
10832
  sunos4*)
 
10833
    case $cc_basename in
 
10834
      CC*)
 
10835
        # Sun C++ 4.x
 
10836
        # FIXME: insert proper C++ library support
 
10837
        ld_shlibs_CXX=no
 
10838
        ;;
 
10839
      lcc*)
 
10840
        # Lucid
 
10841
        # FIXME: insert proper C++ library support
 
10842
        ld_shlibs_CXX=no
 
10843
        ;;
 
10844
      *)
 
10845
        # FIXME: insert proper C++ library support
 
10846
        ld_shlibs_CXX=no
 
10847
        ;;
 
10848
    esac
 
10849
    ;;
 
10850
  solaris*)
 
10851
    case $cc_basename in
 
10852
      CC*)
 
10853
        # Sun C++ 4.2, 5.x and Centerline C++
 
10854
        archive_cmds_need_lc_CXX=yes
 
10855
        no_undefined_flag_CXX=' -zdefs'
 
10856
        archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
10857
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
10858
        $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
10859
 
 
10860
        hardcode_libdir_flag_spec_CXX='-R$libdir'
 
10861
        hardcode_shlibpath_var_CXX=no
 
10862
        case $host_os in
 
10863
          solaris2.[0-5] | solaris2.[0-5].*) ;;
 
10864
          *)
 
10865
            # The C++ compiler is used as linker so we must use $wl
 
10866
            # flag to pass the commands to the underlying system
 
10867
            # linker. We must also pass each convience library through
 
10868
            # to the system linker between allextract/defaultextract.
 
10869
            # The C++ compiler will combine linker options so we
 
10870
            # cannot just pass the convience library names through
 
10871
            # without $wl.
 
10872
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
10873
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
 
10874
            ;;
 
10875
        esac
 
10876
        link_all_deplibs_CXX=yes
 
10877
 
 
10878
        output_verbose_link_cmd='echo'
 
10879
 
 
10880
        # Archives containing C++ object files must be created using
 
10881
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
10882
        # necessary to make sure instantiated templates are included
 
10883
        # in the archive.
 
10884
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
10885
        ;;
 
10886
      gcx*)
 
10887
        # Green Hills C++ Compiler
 
10888
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
10889
 
 
10890
        # The C++ compiler must be used to create the archive.
 
10891
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
10892
        ;;
 
10893
      *)
 
10894
        # GNU C++ compiler with Solaris linker
 
10895
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
10896
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
10897
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
10898
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
10899
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
10900
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
10901
 
 
10902
            # Commands to make compiler produce verbose output that lists
 
10903
            # what "hidden" libraries, object files and flags are used when
 
10904
            # linking a shared library.
 
10905
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
10906
          else
 
10907
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
10908
            # platform.
 
10909
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
10910
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
10911
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
10912
 
 
10913
            # Commands to make compiler produce verbose output that lists
 
10914
            # what "hidden" libraries, object files and flags are used when
 
10915
            # linking a shared library.
 
10916
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
10917
          fi
 
10918
 
 
10919
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
10920
        fi
 
10921
        ;;
 
10922
    esac
 
10923
    ;;
 
10924
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
 
10925
    archive_cmds_need_lc_CXX=no
 
10926
    ;;
 
10927
  tandem*)
 
10928
    case $cc_basename in
 
10929
      NCC*)
 
10930
        # NonStop-UX NCC 3.20
 
10931
        # FIXME: insert proper C++ library support
 
10932
        ld_shlibs_CXX=no
 
10933
        ;;
 
10934
      *)
 
10935
        # FIXME: insert proper C++ library support
 
10936
        ld_shlibs_CXX=no
 
10937
        ;;
 
10938
    esac
 
10939
    ;;
 
10940
  vxworks*)
 
10941
    # FIXME: insert proper C++ library support
 
10942
    ld_shlibs_CXX=no
 
10943
    ;;
 
10944
  *)
 
10945
    # FIXME: insert proper C++ library support
 
10946
    ld_shlibs_CXX=no
 
10947
    ;;
 
10948
esac
 
10949
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
10950
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
10951
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
10952
 
 
10953
GCC_CXX="$GXX"
 
10954
LD_CXX="$LD"
 
10955
 
 
10956
 
 
10957
cat > conftest.$ac_ext <<EOF
 
10958
class Foo
 
10959
{
 
10960
public:
 
10961
  Foo (void) { a = 0; }
 
10962
private:
 
10963
  int a;
 
10964
};
 
10965
EOF
 
10966
 
 
10967
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
10968
  (eval $ac_compile) 2>&5
 
10969
  ac_status=$?
 
10970
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10971
  (exit $ac_status); }; then
 
10972
  # Parse the compiler output and extract the necessary
 
10973
  # objects, libraries and library flags.
 
10974
 
 
10975
  # Sentinel used to keep track of whether or not we are before
 
10976
  # the conftest object file.
 
10977
  pre_test_object_deps_done=no
 
10978
 
 
10979
  # The `*' in the case matches for architectures that use `case' in
 
10980
  # $output_verbose_cmd can trigger glob expansion during the loop
 
10981
  # eval without this substitution.
 
10982
  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
 
10983
 
 
10984
  for p in `eval $output_verbose_link_cmd`; do
 
10985
    case $p in
 
10986
 
 
10987
    -L* | -R* | -l*)
 
10988
       # Some compilers place space between "-{L,R}" and the path.
 
10989
       # Remove the space.
 
10990
       if test $p = "-L" \
 
10991
          || test $p = "-R"; then
 
10992
         prev=$p
 
10993
         continue
 
10994
       else
 
10995
         prev=
 
10996
       fi
 
10997
 
 
10998
       if test "$pre_test_object_deps_done" = no; then
 
10999
         case $p in
 
11000
         -L* | -R*)
 
11001
           # Internal compiler library paths should come after those
 
11002
           # provided the user.  The postdeps already come after the
 
11003
           # user supplied libs so there is no need to process them.
 
11004
           if test -z "$compiler_lib_search_path_CXX"; then
 
11005
             compiler_lib_search_path_CXX="${prev}${p}"
 
11006
           else
 
11007
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
11008
           fi
 
11009
           ;;
 
11010
         # The "-l" case would never come before the object being
 
11011
         # linked, so don't bother handling this case.
 
11012
         esac
 
11013
       else
 
11014
         if test -z "$postdeps_CXX"; then
 
11015
           postdeps_CXX="${prev}${p}"
 
11016
         else
 
11017
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
11018
         fi
 
11019
       fi
 
11020
       ;;
 
11021
 
 
11022
    *.$objext)
 
11023
       # This assumes that the test object file only shows up
 
11024
       # once in the compiler output.
 
11025
       if test "$p" = "conftest.$objext"; then
 
11026
         pre_test_object_deps_done=yes
 
11027
         continue
 
11028
       fi
 
11029
 
 
11030
       if test "$pre_test_object_deps_done" = no; then
 
11031
         if test -z "$predep_objects_CXX"; then
 
11032
           predep_objects_CXX="$p"
 
11033
         else
 
11034
           predep_objects_CXX="$predep_objects_CXX $p"
 
11035
         fi
 
11036
       else
 
11037
         if test -z "$postdep_objects_CXX"; then
 
11038
           postdep_objects_CXX="$p"
 
11039
         else
 
11040
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
11041
         fi
 
11042
       fi
 
11043
       ;;
 
11044
 
 
11045
    *) ;; # Ignore the rest.
 
11046
 
 
11047
    esac
 
11048
  done
 
11049
 
 
11050
  # Clean up.
 
11051
  rm -f a.out a.exe
 
11052
else
 
11053
  echo "libtool.m4: error: problem compiling CXX test program"
 
11054
fi
 
11055
 
 
11056
$rm -f confest.$objext
 
11057
 
 
11058
# PORTME: override above test on systems where it is broken
 
11059
case $host_os in
 
11060
solaris*)
 
11061
  case $cc_basename in
 
11062
  CC*)
 
11063
    # Adding this requires a known-good setup of shared libraries for
 
11064
    # Sun compiler versions before 5.6, else PIC objects from an old
 
11065
    # archive will be linked into the output, leading to subtle bugs.
 
11066
    postdeps_CXX='-lCstd -lCrun'
 
11067
    ;;
 
11068
  esac
 
11069
esac
 
11070
 
 
11071
 
 
11072
case " $postdeps_CXX " in
 
11073
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
11074
esac
 
11075
 
 
11076
lt_prog_compiler_wl_CXX=
 
11077
lt_prog_compiler_pic_CXX=
 
11078
lt_prog_compiler_static_CXX=
 
11079
 
 
11080
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
11081
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
11082
 
 
11083
  # C++ specific cases for pic, static, wl, etc.
 
11084
  if test "$GXX" = yes; then
 
11085
    lt_prog_compiler_wl_CXX='-Wl,'
 
11086
    lt_prog_compiler_static_CXX='-static'
 
11087
 
 
11088
    case $host_os in
 
11089
    aix*)
 
11090
      # All AIX code is PIC.
 
11091
      if test "$host_cpu" = ia64; then
 
11092
        # AIX 5 now supports IA64 processor
 
11093
        lt_prog_compiler_static_CXX='-Bstatic'
 
11094
      fi
 
11095
      ;;
 
11096
    amigaos*)
 
11097
      # FIXME: we need at least 68020 code to build shared libraries, but
 
11098
      # adding the `-m68020' flag to GCC prevents building anything better,
 
11099
      # like `-m68040'.
 
11100
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
11101
      ;;
 
11102
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
11103
      # PIC is the default for these OSes.
 
11104
      ;;
 
11105
    mingw* | os2* | pw32*)
 
11106
      # This hack is so that the source file can tell whether it is being
 
11107
      # built for inclusion in a dll (and should export symbols for example).
 
11108
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
11109
      ;;
 
11110
    darwin* | rhapsody*)
 
11111
      # PIC is the default on this platform
 
11112
      # Common symbols not allowed in MH_DYLIB files
 
11113
      lt_prog_compiler_pic_CXX='-fno-common'
 
11114
      ;;
 
11115
    *djgpp*)
 
11116
      # DJGPP does not support shared libraries at all
 
11117
      lt_prog_compiler_pic_CXX=
 
11118
      ;;
 
11119
    sysv4*MP*)
 
11120
      if test -d /usr/nec; then
 
11121
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
11122
      fi
 
11123
      ;;
 
11124
    hpux*)
 
11125
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
11126
      # not for PA HP-UX.
 
11127
      case $host_cpu in
 
11128
      hppa*64*|ia64*)
 
11129
        ;;
 
11130
      *)
 
11131
        lt_prog_compiler_pic_CXX='-fPIC'
 
11132
        ;;
 
11133
      esac
 
11134
      ;;
 
11135
    *)
 
11136
      lt_prog_compiler_pic_CXX='-fPIC'
 
11137
      ;;
 
11138
    esac
 
11139
  else
 
11140
    case $host_os in
 
11141
      aix4* | aix5*)
 
11142
        # All AIX code is PIC.
 
11143
        if test "$host_cpu" = ia64; then
 
11144
          # AIX 5 now supports IA64 processor
 
11145
          lt_prog_compiler_static_CXX='-Bstatic'
 
11146
        else
 
11147
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
11148
        fi
 
11149
        ;;
 
11150
      chorus*)
 
11151
        case $cc_basename in
 
11152
        cxch68*)
 
11153
          # Green Hills C++ Compiler
 
11154
          # _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"
 
11155
          ;;
 
11156
        esac
 
11157
        ;;
 
11158
       darwin*)
 
11159
         # PIC is the default on this platform
 
11160
         # Common symbols not allowed in MH_DYLIB files
 
11161
         case $cc_basename in
 
11162
           xlc*)
 
11163
           lt_prog_compiler_pic_CXX='-qnocommon'
 
11164
           lt_prog_compiler_wl_CXX='-Wl,'
 
11165
           ;;
 
11166
         esac
 
11167
       ;;
 
11168
      dgux*)
 
11169
        case $cc_basename in
 
11170
          ec++*)
 
11171
            lt_prog_compiler_pic_CXX='-KPIC'
 
11172
            ;;
 
11173
          ghcx*)
 
11174
            # Green Hills C++ Compiler
 
11175
            lt_prog_compiler_pic_CXX='-pic'
 
11176
            ;;
 
11177
          *)
 
11178
            ;;
 
11179
        esac
 
11180
        ;;
 
11181
      freebsd* | kfreebsd*-gnu | dragonfly*)
 
11182
        # FreeBSD uses GNU C++
 
11183
        ;;
 
11184
      hpux9* | hpux10* | hpux11*)
 
11185
        case $cc_basename in
 
11186
          CC*)
 
11187
            lt_prog_compiler_wl_CXX='-Wl,'
 
11188
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
11189
            if test "$host_cpu" != ia64; then
 
11190
              lt_prog_compiler_pic_CXX='+Z'
 
11191
            fi
 
11192
            ;;
 
11193
          aCC*)
 
11194
            lt_prog_compiler_wl_CXX='-Wl,'
 
11195
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
11196
            case $host_cpu in
 
11197
            hppa*64*|ia64*)
 
11198
              # +Z the default
 
11199
              ;;
 
11200
            *)
 
11201
              lt_prog_compiler_pic_CXX='+Z'
 
11202
              ;;
 
11203
            esac
 
11204
            ;;
 
11205
          *)
 
11206
            ;;
 
11207
        esac
 
11208
        ;;
 
11209
      irix5* | irix6* | nonstopux*)
 
11210
        case $cc_basename in
 
11211
          CC*)
 
11212
            lt_prog_compiler_wl_CXX='-Wl,'
 
11213
            lt_prog_compiler_static_CXX='-non_shared'
 
11214
            # CC pic flag -KPIC is the default.
 
11215
            ;;
 
11216
          *)
 
11217
            ;;
 
11218
        esac
 
11219
        ;;
 
11220
      linux*)
 
11221
        case $cc_basename in
 
11222
          KCC*)
 
11223
            # KAI C++ Compiler
 
11224
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
11225
            lt_prog_compiler_pic_CXX='-fPIC'
 
11226
            ;;
 
11227
          icpc* | ecpc*)
 
11228
            # Intel C++
 
11229
            lt_prog_compiler_wl_CXX='-Wl,'
 
11230
            lt_prog_compiler_pic_CXX='-KPIC'
 
11231
            lt_prog_compiler_static_CXX='-static'
 
11232
            ;;
 
11233
          pgCC*)
 
11234
            # Portland Group C++ compiler.
 
11235
            lt_prog_compiler_wl_CXX='-Wl,'
 
11236
            lt_prog_compiler_pic_CXX='-fpic'
 
11237
            lt_prog_compiler_static_CXX='-Bstatic'
 
11238
            ;;
 
11239
          cxx*)
 
11240
            # Compaq C++
 
11241
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
11242
            # Linux and Compaq Tru64 Unix objects are PIC.
 
11243
            lt_prog_compiler_pic_CXX=
 
11244
            lt_prog_compiler_static_CXX='-non_shared'
 
11245
            ;;
 
11246
          *)
 
11247
            ;;
 
11248
        esac
 
11249
        ;;
 
11250
      lynxos*)
 
11251
        ;;
 
11252
      m88k*)
 
11253
        ;;
 
11254
      mvs*)
 
11255
        case $cc_basename in
 
11256
          cxx*)
 
11257
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
11258
            ;;
 
11259
          *)
 
11260
            ;;
 
11261
        esac
 
11262
        ;;
 
11263
      netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
11264
        ;;
 
11265
      osf3* | osf4* | osf5*)
 
11266
        case $cc_basename in
 
11267
          KCC*)
 
11268
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
11269
            ;;
 
11270
          RCC*)
 
11271
            # Rational C++ 2.4.1
 
11272
            lt_prog_compiler_pic_CXX='-pic'
 
11273
            ;;
 
11274
          cxx*)
 
11275
            # Digital/Compaq C++
 
11276
            lt_prog_compiler_wl_CXX='-Wl,'
 
11277
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
11278
            # Linux and Compaq Tru64 Unix objects are PIC.
 
11279
            lt_prog_compiler_pic_CXX=
 
11280
            lt_prog_compiler_static_CXX='-non_shared'
 
11281
            ;;
 
11282
          *)
 
11283
            ;;
 
11284
        esac
 
11285
        ;;
 
11286
      psos*)
 
11287
        ;;
 
11288
      sco*)
 
11289
        case $cc_basename in
 
11290
          CC*)
 
11291
            lt_prog_compiler_pic_CXX='-fPIC'
 
11292
            ;;
 
11293
          *)
 
11294
            ;;
 
11295
        esac
 
11296
        ;;
 
11297
      solaris*)
 
11298
        case $cc_basename in
 
11299
          CC*)
 
11300
            # Sun C++ 4.2, 5.x and Centerline C++
 
11301
            lt_prog_compiler_pic_CXX='-KPIC'
 
11302
            lt_prog_compiler_static_CXX='-Bstatic'
 
11303
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
11304
            ;;
 
11305
          gcx*)
 
11306
            # Green Hills C++ Compiler
 
11307
            lt_prog_compiler_pic_CXX='-PIC'
 
11308
            ;;
 
11309
          *)
 
11310
            ;;
 
11311
        esac
 
11312
        ;;
 
11313
      sunos4*)
 
11314
        case $cc_basename in
 
11315
          CC*)
 
11316
            # Sun C++ 4.x
 
11317
            lt_prog_compiler_pic_CXX='-pic'
 
11318
            lt_prog_compiler_static_CXX='-Bstatic'
 
11319
            ;;
 
11320
          lcc*)
 
11321
            # Lucid
 
11322
            lt_prog_compiler_pic_CXX='-pic'
 
11323
            ;;
 
11324
          *)
 
11325
            ;;
 
11326
        esac
 
11327
        ;;
 
11328
      tandem*)
 
11329
        case $cc_basename in
 
11330
          NCC*)
 
11331
            # NonStop-UX NCC 3.20
 
11332
            lt_prog_compiler_pic_CXX='-KPIC'
 
11333
            ;;
 
11334
          *)
 
11335
            ;;
 
11336
        esac
 
11337
        ;;
 
11338
      unixware*)
 
11339
        ;;
 
11340
      vxworks*)
 
11341
        ;;
 
11342
      *)
 
11343
        lt_prog_compiler_can_build_shared_CXX=no
 
11344
        ;;
 
11345
    esac
 
11346
  fi
 
11347
 
 
11348
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
11349
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
 
11350
 
 
11351
#
 
11352
# Check to make sure the PIC flag actually works.
 
11353
#
 
11354
if test -n "$lt_prog_compiler_pic_CXX"; then
 
11355
  
 
11356
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
11357
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
 
11358
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
 
11359
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11360
else
 
11361
  lt_prog_compiler_pic_works_CXX=no
 
11362
  ac_outfile=conftest.$ac_objext
 
11363
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
11364
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
11365
   # Insert the option either (1) after the last *FLAGS variable, or
 
11366
   # (2) before a word containing "conftest.", or (3) at the end.
 
11367
   # Note that $ac_compile itself does not contain backslashes and begins
 
11368
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
11369
   # The option is referenced via a variable to avoid confusing sed.
 
11370
   lt_compile=`echo "$ac_compile" | $SED \
 
11371
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
11372
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
11373
   -e 's:$: $lt_compiler_flag:'`
 
11374
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 
11375
   (eval "$lt_compile" 2>conftest.err)
 
11376
   ac_status=$?
 
11377
   cat conftest.err >&5
 
11378
   echo "$as_me:__oline__: \$? = $ac_status" >&5
 
11379
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
11380
     # The compiler can only warn and ignore the option if not recognized
 
11381
     # So say no if there are warnings other than the usual output.
 
11382
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
11383
     $SED '/^$/d' conftest.err >conftest.er2
 
11384
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
 
11385
       lt_prog_compiler_pic_works_CXX=yes
 
11386
     fi
 
11387
   fi
 
11388
   $rm conftest*
 
11389
 
 
11390
fi
 
11391
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
 
11392
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
 
11393
 
 
11394
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
 
11395
    case $lt_prog_compiler_pic_CXX in
 
11396
     "" | " "*) ;;
 
11397
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
11398
     esac
 
11399
else
 
11400
    lt_prog_compiler_pic_CXX=
 
11401
     lt_prog_compiler_can_build_shared_CXX=no
 
11402
fi
 
11403
 
 
11404
fi
 
11405
case $host_os in
 
11406
  # For platforms which do not support PIC, -DPIC is meaningless:
 
11407
  *djgpp*)
 
11408
    lt_prog_compiler_pic_CXX=
 
11409
    ;;
 
11410
  *)
 
11411
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
11412
    ;;
 
11413
esac
 
11414
 
 
11415
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
11416
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
11417
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
11418
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11419
else
 
11420
  lt_cv_prog_compiler_c_o_CXX=no
 
11421
   $rm -r conftest 2>/dev/null
 
11422
   mkdir conftest
 
11423
   cd conftest
 
11424
   mkdir out
 
11425
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
11426
 
 
11427
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
11428
   # Insert the option either (1) after the last *FLAGS variable, or
 
11429
   # (2) before a word containing "conftest.", or (3) at the end.
 
11430
   # Note that $ac_compile itself does not contain backslashes and begins
 
11431
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
11432
   lt_compile=`echo "$ac_compile" | $SED \
 
11433
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
11434
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
11435
   -e 's:$: $lt_compiler_flag:'`
 
11436
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 
11437
   (eval "$lt_compile" 2>out/conftest.err)
 
11438
   ac_status=$?
 
11439
   cat out/conftest.err >&5
 
11440
   echo "$as_me:__oline__: \$? = $ac_status" >&5
 
11441
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
11442
   then
 
11443
     # The compiler can only warn and ignore the option if not recognized
 
11444
     # So say no if there are warnings
 
11445
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
 
11446
     $SED '/^$/d' out/conftest.err >out/conftest.er2
 
11447
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
11448
       lt_cv_prog_compiler_c_o_CXX=yes
 
11449
     fi
 
11450
   fi
 
11451
   chmod u+w . 2>&5
 
11452
   $rm conftest*
 
11453
   # SGI C++ compiler will create directory out/ii_files/ for
 
11454
   # template instantiation
 
11455
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
11456
   $rm out/* && rmdir out
 
11457
   cd ..
 
11458
   rmdir conftest
 
11459
   $rm conftest*
 
11460
 
 
11461
fi
 
11462
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
11463
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
 
11464
 
 
11465
 
 
11466
hard_links="nottested"
 
11467
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
11468
  # do not overwrite the value of need_locks provided by the user
 
11469
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
11470
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
11471
  hard_links=yes
 
11472
  $rm conftest*
 
11473
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
11474
  touch conftest.a
 
11475
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
11476
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
11477
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
11478
echo "${ECHO_T}$hard_links" >&6
 
11479
  if test "$hard_links" = no; then
 
11480
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
11481
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
11482
    need_locks=warn
 
11483
  fi
 
11484
else
 
11485
  need_locks=no
 
11486
fi
 
11487
 
 
11488
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
11489
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
11490
 
 
11491
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
11492
  case $host_os in
 
11493
  aix4* | aix5*)
 
11494
    # If we're using GNU nm, then we don't want the "-C" option.
 
11495
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
11496
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
11497
      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'
 
11498
    else
 
11499
      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'
 
11500
    fi
 
11501
    ;;
 
11502
  pw32*)
 
11503
    export_symbols_cmds_CXX="$ltdll_cmds"
 
11504
  ;;
 
11505
  cygwin* | mingw*)
 
11506
    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'
 
11507
  ;;
 
11508
  linux*)
 
11509
    link_all_deplibs_CXX=no
 
11510
  ;;
 
11511
  *)
 
11512
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
11513
  ;;
 
11514
  esac
 
11515
 
 
11516
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
11517
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
11518
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
11519
 
 
11520
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
11521
if test "$GCC" = yes; then
 
11522
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
11523
fi
 
11524
 
 
11525
#
 
11526
# Do we need to explicitly link libc?
 
11527
#
 
11528
case "x$archive_cmds_need_lc_CXX" in
 
11529
x|xyes)
 
11530
  # Assume -lc should be added
 
11531
  archive_cmds_need_lc_CXX=yes
 
11532
 
 
11533
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
11534
    case $archive_cmds_CXX in
 
11535
    *'~'*)
 
11536
      # FIXME: we may have to deal with multi-command sequences.
 
11537
      ;;
 
11538
    '$CC '*)
 
11539
      # Test whether the compiler implicitly links with -lc since on some
 
11540
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
11541
      # to ld, don't add -lc before -lgcc.
 
11542
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
11543
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
11544
      $rm conftest*
 
11545
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
11546
 
 
11547
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11548
  (eval $ac_compile) 2>&5
 
11549
  ac_status=$?
 
11550
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11551
  (exit $ac_status); } 2>conftest.err; then
 
11552
        soname=conftest
 
11553
        lib=conftest
 
11554
        libobjs=conftest.$ac_objext
 
11555
        deplibs=
 
11556
        wl=$lt_prog_compiler_wl_CXX
 
11557
        compiler_flags=-v
 
11558
        linker_flags=-v
 
11559
        verstring=
 
11560
        output_objdir=.
 
11561
        libname=conftest
 
11562
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
11563
        allow_undefined_flag_CXX=
 
11564
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
11565
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
11566
  ac_status=$?
 
11567
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11568
  (exit $ac_status); }
 
11569
        then
 
11570
          archive_cmds_need_lc_CXX=no
 
11571
        else
 
11572
          archive_cmds_need_lc_CXX=yes
 
11573
        fi
 
11574
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
11575
      else
 
11576
        cat conftest.err 1>&5
 
11577
      fi
 
11578
      $rm conftest*
 
11579
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
11580
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
 
11581
      ;;
 
11582
    esac
 
11583
  fi
 
11584
  ;;
 
11585
esac
 
11586
 
 
11587
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
11588
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
11589
library_names_spec=
 
11590
libname_spec='lib$name'
 
11591
soname_spec=
 
11592
shrext_cmds=".so"
 
11593
postinstall_cmds=
 
11594
postuninstall_cmds=
 
11595
finish_cmds=
 
11596
finish_eval=
 
11597
shlibpath_var=
 
11598
shlibpath_overrides_runpath=unknown
 
11599
version_type=none
 
11600
dynamic_linker="$host_os ld.so"
 
11601
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
11602
if test "$GCC" = yes; then
 
11603
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
11604
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
11605
    # if the path contains ";" then we assume it to be the separator
 
11606
    # otherwise default to the standard path separator (i.e. ":") - it is
 
11607
    # assumed that no part of a normal pathname contains ";" but that should
 
11608
    # okay in the real world where ";" in dirpaths is itself problematic.
 
11609
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
11610
  else
 
11611
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
11612
  fi
 
11613
else
 
11614
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
11615
fi
 
11616
need_lib_prefix=unknown
 
11617
hardcode_into_libs=no
 
11618
 
 
11619
# when you set need_version to no, make sure it does not cause -set_version
 
11620
# flags to be left without arguments
 
11621
need_version=unknown
 
11622
 
 
11623
case $host_os in
 
11624
aix3*)
 
11625
  version_type=linux
 
11626
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
11627
  shlibpath_var=LIBPATH
 
11628
 
 
11629
  # AIX 3 has no versioning support, so we append a major version to the name.
 
11630
  soname_spec='${libname}${release}${shared_ext}$major'
 
11631
  ;;
 
11632
 
 
11633
aix4* | aix5*)
 
11634
  version_type=linux
 
11635
  need_lib_prefix=no
 
11636
  need_version=no
 
11637
  hardcode_into_libs=yes
 
11638
  if test "$host_cpu" = ia64; then
 
11639
    # AIX 5 supports IA64
 
11640
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
11641
    shlibpath_var=LD_LIBRARY_PATH
 
11642
  else
 
11643
    # With GCC up to 2.95.x, collect2 would create an import file
 
11644
    # for dependence libraries.  The import file would start with
 
11645
    # the line `#! .'.  This would cause the generated library to
 
11646
    # depend on `.', always an invalid library.  This was fixed in
 
11647
    # development snapshots of GCC prior to 3.0.
 
11648
    case $host_os in
 
11649
      aix4 | aix4.[01] | aix4.[01].*)
 
11650
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
11651
           echo ' yes '
 
11652
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
11653
        :
 
11654
      else
 
11655
        can_build_shared=no
 
11656
      fi
 
11657
      ;;
 
11658
    esac
 
11659
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
11660
    # soname into executable. Probably we can add versioning support to
 
11661
    # collect2, so additional links can be useful in future.
 
11662
    if test "$aix_use_runtimelinking" = yes; then
 
11663
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
11664
      # instead of lib<name>.a to let people know that these are not
 
11665
      # typical AIX shared libraries.
 
11666
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11667
    else
 
11668
      # We preserve .a as extension for shared libraries through AIX4.2
 
11669
      # and later when we are not doing run time linking.
 
11670
      library_names_spec='${libname}${release}.a $libname.a'
 
11671
      soname_spec='${libname}${release}${shared_ext}$major'
 
11672
    fi
 
11673
    shlibpath_var=LIBPATH
 
11674
  fi
 
11675
  ;;
 
11676
 
 
11677
amigaos*)
 
11678
  library_names_spec='$libname.ixlibrary $libname.a'
 
11679
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
11680
  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'
 
11681
  ;;
 
11682
 
 
11683
beos*)
 
11684
  library_names_spec='${libname}${shared_ext}'
 
11685
  dynamic_linker="$host_os ld.so"
 
11686
  shlibpath_var=LIBRARY_PATH
 
11687
  ;;
 
11688
 
 
11689
bsdi[45]*)
 
11690
  version_type=linux
 
11691
  need_version=no
 
11692
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11693
  soname_spec='${libname}${release}${shared_ext}$major'
 
11694
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
11695
  shlibpath_var=LD_LIBRARY_PATH
 
11696
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
11697
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
11698
  # the default ld.so.conf also contains /usr/contrib/lib and
 
11699
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
11700
  # libtool to hard-code these into programs
 
11701
  ;;
 
11702
 
 
11703
cygwin* | mingw* | pw32*)
 
11704
  version_type=windows
 
11705
  shrext_cmds=".dll"
 
11706
  need_version=no
 
11707
  need_lib_prefix=no
 
11708
 
 
11709
  case $GCC,$host_os in
 
11710
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
11711
    library_names_spec='$libname.dll.a'
 
11712
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
11713
    postinstall_cmds='base_file=`basename \${file}`~
 
11714
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
11715
      dldir=$destdir/`dirname \$dlpath`~
 
11716
      test -d \$dldir || mkdir -p \$dldir~
 
11717
      $install_prog $dir/$dlname \$dldir/$dlname~
 
11718
      chmod a+x \$dldir/$dlname'
 
11719
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
11720
      dlpath=$dir/\$dldll~
 
11721
       $rm \$dlpath'
 
11722
    shlibpath_overrides_runpath=yes
 
11723
 
 
11724
    case $host_os in
 
11725
    cygwin*)
 
11726
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
11727
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
11728
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
11729
      ;;
 
11730
    mingw*)
 
11731
      # MinGW DLLs use traditional 'lib' prefix
 
11732
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
11733
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
11734
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
11735
        # It is most probably a Windows format PATH printed by
 
11736
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
11737
        # path with ; separators, and with drive letters. We can handle the
 
11738
        # drive letters (cygwin fileutils understands them), so leave them,
 
11739
        # especially as we might pass files found there to a mingw objdump,
 
11740
        # which wouldn't understand a cygwinified path. Ahh.
 
11741
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
11742
      else
 
11743
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
11744
      fi
 
11745
      ;;
 
11746
    pw32*)
 
11747
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
11748
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
11749
      ;;
 
11750
    esac
 
11751
    ;;
 
11752
 
 
11753
  *)
 
11754
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
11755
    ;;
 
11756
  esac
 
11757
  dynamic_linker='Win32 ld.exe'
 
11758
  # FIXME: first we should search . and the directory the executable is in
 
11759
  shlibpath_var=PATH
 
11760
  ;;
 
11761
 
 
11762
darwin* | rhapsody*)
 
11763
  dynamic_linker="$host_os dyld"
 
11764
  version_type=darwin
 
11765
  need_lib_prefix=no
 
11766
  need_version=no
 
11767
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
11768
  soname_spec='${libname}${release}${major}$shared_ext'
 
11769
  shlibpath_overrides_runpath=yes
 
11770
  shlibpath_var=DYLD_LIBRARY_PATH
 
11771
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
11772
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
11773
  if test "$GCC" = yes; then
 
11774
    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"`
 
11775
  else
 
11776
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
11777
  fi
 
11778
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
11779
  ;;
 
11780
 
 
11781
dgux*)
 
11782
  version_type=linux
 
11783
  need_lib_prefix=no
 
11784
  need_version=no
 
11785
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
11786
  soname_spec='${libname}${release}${shared_ext}$major'
 
11787
  shlibpath_var=LD_LIBRARY_PATH
 
11788
  ;;
 
11789
 
 
11790
freebsd1*)
 
11791
  dynamic_linker=no
 
11792
  ;;
 
11793
 
 
11794
kfreebsd*-gnu)
 
11795
  version_type=linux
 
11796
  need_lib_prefix=no
 
11797
  need_version=no
 
11798
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11799
  soname_spec='${libname}${release}${shared_ext}$major'
 
11800
  shlibpath_var=LD_LIBRARY_PATH
 
11801
  shlibpath_overrides_runpath=no
 
11802
  hardcode_into_libs=yes
 
11803
  dynamic_linker='GNU ld.so'
 
11804
  ;;
 
11805
 
 
11806
freebsd* | dragonfly*)
 
11807
  # DragonFly does not have aout.  When/if they implement a new
 
11808
  # versioning mechanism, adjust this.
 
11809
  if test -x /usr/bin/objformat; then
 
11810
    objformat=`/usr/bin/objformat`
 
11811
  else
 
11812
    case $host_os in
 
11813
    freebsd[123]*) objformat=aout ;;
 
11814
    *) objformat=elf ;;
 
11815
    esac
 
11816
  fi
 
11817
  version_type=freebsd-$objformat
 
11818
  case $version_type in
 
11819
    freebsd-elf*)
 
11820
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
11821
      need_version=no
 
11822
      need_lib_prefix=no
 
11823
      ;;
 
11824
    freebsd-*)
 
11825
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
11826
      need_version=yes
 
11827
      ;;
 
11828
  esac
 
11829
  shlibpath_var=LD_LIBRARY_PATH
 
11830
  case $host_os in
 
11831
  freebsd2*)
 
11832
    shlibpath_overrides_runpath=yes
 
11833
    ;;
 
11834
  freebsd3.[01]* | freebsdelf3.[01]*)
 
11835
    shlibpath_overrides_runpath=yes
 
11836
    hardcode_into_libs=yes
 
11837
    ;;
 
11838
  *) # from 3.2 on
 
11839
    shlibpath_overrides_runpath=no
 
11840
    hardcode_into_libs=yes
 
11841
    ;;
 
11842
  esac
 
11843
  ;;
 
11844
 
 
11845
gnu*)
 
11846
  version_type=linux
 
11847
  need_lib_prefix=no
 
11848
  need_version=no
 
11849
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
11850
  soname_spec='${libname}${release}${shared_ext}$major'
 
11851
  shlibpath_var=LD_LIBRARY_PATH
 
11852
  hardcode_into_libs=yes
 
11853
  ;;
 
11854
 
 
11855
hpux9* | hpux10* | hpux11*)
 
11856
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
11857
  # link against other versions.
 
11858
  version_type=sunos
 
11859
  need_lib_prefix=no
 
11860
  need_version=no
 
11861
  case $host_cpu in
 
11862
  ia64*)
 
11863
    shrext_cmds='.so'
 
11864
    hardcode_into_libs=yes
 
11865
    dynamic_linker="$host_os dld.so"
 
11866
    shlibpath_var=LD_LIBRARY_PATH
 
11867
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
11868
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11869
    soname_spec='${libname}${release}${shared_ext}$major'
 
11870
    if test "X$HPUX_IA64_MODE" = X32; then
 
11871
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
11872
    else
 
11873
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
11874
    fi
 
11875
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
11876
    ;;
 
11877
   hppa*64*)
 
11878
     shrext_cmds='.sl'
 
11879
     hardcode_into_libs=yes
 
11880
     dynamic_linker="$host_os dld.sl"
 
11881
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
11882
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
11883
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11884
     soname_spec='${libname}${release}${shared_ext}$major'
 
11885
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
11886
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
11887
     ;;
 
11888
   *)
 
11889
    shrext_cmds='.sl'
 
11890
    dynamic_linker="$host_os dld.sl"
 
11891
    shlibpath_var=SHLIB_PATH
 
11892
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
11893
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11894
    soname_spec='${libname}${release}${shared_ext}$major'
 
11895
    ;;
 
11896
  esac
 
11897
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
11898
  postinstall_cmds='chmod 555 $lib'
 
11899
  ;;
 
11900
 
 
11901
irix5* | irix6* | nonstopux*)
 
11902
  case $host_os in
 
11903
    nonstopux*) version_type=nonstopux ;;
 
11904
    *)
 
11905
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
11906
                version_type=linux
 
11907
        else
 
11908
                version_type=irix
 
11909
        fi ;;
 
11910
  esac
 
11911
  need_lib_prefix=no
 
11912
  need_version=no
 
11913
  soname_spec='${libname}${release}${shared_ext}$major'
 
11914
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
11915
  case $host_os in
 
11916
  irix5* | nonstopux*)
 
11917
    libsuff= shlibsuff=
 
11918
    ;;
 
11919
  *)
 
11920
    case $LD in # libtool.m4 will add one of these switches to LD
 
11921
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
11922
      libsuff= shlibsuff= libmagic=32-bit;;
 
11923
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
11924
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
11925
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
11926
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
11927
    *) libsuff= shlibsuff= libmagic=never-match;;
 
11928
    esac
 
11929
    ;;
 
11930
  esac
 
11931
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
11932
  shlibpath_overrides_runpath=no
 
11933
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
11934
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
11935
  hardcode_into_libs=yes
 
11936
  ;;
 
11937
 
 
11938
# No shared lib support for Linux oldld, aout, or coff.
 
11939
linux*oldld* | linux*aout* | linux*coff*)
 
11940
  dynamic_linker=no
 
11941
  ;;
 
11942
 
 
11943
# This must be Linux ELF.
 
11944
linux*)
 
11945
  version_type=linux
 
11946
  need_lib_prefix=no
 
11947
  need_version=no
 
11948
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
11949
  soname_spec='${libname}${release}${shared_ext}$major'
 
11950
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
11951
  shlibpath_var=LD_LIBRARY_PATH
 
11952
  shlibpath_overrides_runpath=no
 
11953
  # This implies no fast_install, which is unacceptable.
 
11954
  # Some rework will be needed to allow for fast_install
 
11955
  # before this can be enabled.
 
11956
  hardcode_into_libs=yes
 
11957
 
 
11958
  # Append ld.so.conf contents to the search path
 
11959
  if test -f /etc/ld.so.conf; then
 
11960
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
11961
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
11962
  fi
 
11963
 
 
11964
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
11965
  # powerpc, because MkLinux only supported shared libraries with the
 
11966
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
11967
  # most powerpc-linux boxes support dynamic linking these days and
 
11968
  # people can always --disable-shared, the test was removed, and we
 
11969
  # assume the GNU/Linux dynamic linker is in use.
 
11970
  dynamic_linker='GNU/Linux ld.so'
 
11971
  ;;
 
11972
 
 
11973
netbsdelf*-gnu)
 
11974
  version_type=linux
 
11975
  need_lib_prefix=no
 
11976
  need_version=no
 
11977
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11978
  soname_spec='${libname}${release}${shared_ext}$major'
 
11979
  shlibpath_var=LD_LIBRARY_PATH
 
11980
  shlibpath_overrides_runpath=no
 
11981
  hardcode_into_libs=yes
 
11982
  dynamic_linker='NetBSD ld.elf_so'
 
11983
  ;;
 
11984
 
 
11985
knetbsd*-gnu)
 
11986
  version_type=linux
 
11987
  need_lib_prefix=no
 
11988
  need_version=no
 
11989
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
11990
  soname_spec='${libname}${release}${shared_ext}$major'
 
11991
  shlibpath_var=LD_LIBRARY_PATH
 
11992
  shlibpath_overrides_runpath=no
 
11993
  hardcode_into_libs=yes
 
11994
  dynamic_linker='GNU ld.so'
 
11995
  ;;
 
11996
 
 
11997
netbsd*)
 
11998
  version_type=sunos
 
11999
  need_lib_prefix=no
 
12000
  need_version=no
 
12001
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
12002
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
12003
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
12004
    dynamic_linker='NetBSD (a.out) ld.so'
 
12005
  else
 
12006
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12007
    soname_spec='${libname}${release}${shared_ext}$major'
 
12008
    dynamic_linker='NetBSD ld.elf_so'
 
12009
  fi
 
12010
  shlibpath_var=LD_LIBRARY_PATH
 
12011
  shlibpath_overrides_runpath=yes
 
12012
  hardcode_into_libs=yes
 
12013
  ;;
 
12014
 
 
12015
newsos6)
 
12016
  version_type=linux
 
12017
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12018
  shlibpath_var=LD_LIBRARY_PATH
 
12019
  shlibpath_overrides_runpath=yes
 
12020
  ;;
 
12021
 
 
12022
nto-qnx*)
 
12023
  version_type=linux
 
12024
  need_lib_prefix=no
 
12025
  need_version=no
 
12026
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12027
  soname_spec='${libname}${release}${shared_ext}$major'
 
12028
  shlibpath_var=LD_LIBRARY_PATH
 
12029
  shlibpath_overrides_runpath=yes
 
12030
  ;;
 
12031
 
 
12032
openbsd*)
 
12033
  version_type=sunos
 
12034
  need_lib_prefix=no
 
12035
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
12036
  case $host_os in
 
12037
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
12038
    *)                         need_version=no  ;;
 
12039
  esac
 
12040
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
12041
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
12042
  shlibpath_var=LD_LIBRARY_PATH
 
12043
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
12044
    case $host_os in
 
12045
      openbsd2.[89] | openbsd2.[89].*)
 
12046
        shlibpath_overrides_runpath=no
 
12047
        ;;
 
12048
      *)
 
12049
        shlibpath_overrides_runpath=yes
 
12050
        ;;
 
12051
      esac
 
12052
  else
 
12053
    shlibpath_overrides_runpath=yes
 
12054
  fi
 
12055
  ;;
 
12056
 
 
12057
os2*)
 
12058
  libname_spec='$name'
 
12059
  shrext_cmds=".dll"
 
12060
  need_lib_prefix=no
 
12061
  library_names_spec='$libname${shared_ext} $libname.a'
 
12062
  dynamic_linker='OS/2 ld.exe'
 
12063
  shlibpath_var=LIBPATH
 
12064
  ;;
 
12065
 
 
12066
osf3* | osf4* | osf5*)
 
12067
  version_type=osf
 
12068
  need_lib_prefix=no
 
12069
  need_version=no
 
12070
  soname_spec='${libname}${release}${shared_ext}$major'
 
12071
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12072
  shlibpath_var=LD_LIBRARY_PATH
 
12073
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
12074
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
12075
  ;;
 
12076
 
 
12077
sco3.2v5*)
 
12078
  version_type=osf
 
12079
  soname_spec='${libname}${release}${shared_ext}$major'
 
12080
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12081
  shlibpath_var=LD_LIBRARY_PATH
 
12082
  ;;
 
12083
 
 
12084
solaris*)
 
12085
  version_type=linux
 
12086
  need_lib_prefix=no
 
12087
  need_version=no
 
12088
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12089
  soname_spec='${libname}${release}${shared_ext}$major'
 
12090
  shlibpath_var=LD_LIBRARY_PATH
 
12091
  shlibpath_overrides_runpath=yes
 
12092
  hardcode_into_libs=yes
 
12093
  # ldd complains unless libraries are executable
 
12094
  postinstall_cmds='chmod +x $lib'
 
12095
  ;;
 
12096
 
 
12097
sunos4*)
 
12098
  version_type=sunos
 
12099
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
12100
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
12101
  shlibpath_var=LD_LIBRARY_PATH
 
12102
  shlibpath_overrides_runpath=yes
 
12103
  if test "$with_gnu_ld" = yes; then
 
12104
    need_lib_prefix=no
 
12105
  fi
 
12106
  need_version=yes
 
12107
  ;;
 
12108
 
 
12109
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
12110
  version_type=linux
 
12111
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12112
  soname_spec='${libname}${release}${shared_ext}$major'
 
12113
  shlibpath_var=LD_LIBRARY_PATH
 
12114
  case $host_vendor in
 
12115
    sni)
 
12116
      shlibpath_overrides_runpath=no
 
12117
      need_lib_prefix=no
 
12118
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
12119
      runpath_var=LD_RUN_PATH
 
12120
      ;;
 
12121
    siemens)
 
12122
      need_lib_prefix=no
 
12123
      ;;
 
12124
    motorola)
 
12125
      need_lib_prefix=no
 
12126
      need_version=no
 
12127
      shlibpath_overrides_runpath=no
 
12128
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
12129
      ;;
 
12130
  esac
 
12131
  ;;
 
12132
 
 
12133
sysv4*MP*)
 
12134
  if test -d /usr/nec ;then
 
12135
    version_type=linux
 
12136
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
12137
    soname_spec='$libname${shared_ext}.$major'
 
12138
    shlibpath_var=LD_LIBRARY_PATH
 
12139
  fi
 
12140
  ;;
 
12141
 
 
12142
uts4*)
 
12143
  version_type=linux
 
12144
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12145
  soname_spec='${libname}${release}${shared_ext}$major'
 
12146
  shlibpath_var=LD_LIBRARY_PATH
 
12147
  ;;
 
12148
 
 
12149
*)
 
12150
  dynamic_linker=no
 
12151
  ;;
 
12152
esac
 
12153
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
12154
echo "${ECHO_T}$dynamic_linker" >&6
 
12155
test "$dynamic_linker" = no && can_build_shared=no
 
12156
 
 
12157
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
12158
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
12159
hardcode_action_CXX=
 
12160
if test -n "$hardcode_libdir_flag_spec_CXX" || \
 
12161
   test -n "$runpath_var_CXX" || \
 
12162
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
 
12163
 
 
12164
  # We can hardcode non-existant directories.
 
12165
  if test "$hardcode_direct_CXX" != no &&
 
12166
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
12167
     # have to relink, otherwise we might link with an installed library
 
12168
     # when we should be linking with a yet-to-be-installed one
 
12169
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
12170
     test "$hardcode_minus_L_CXX" != no; then
 
12171
    # Linking always hardcodes the temporary library directory.
 
12172
    hardcode_action_CXX=relink
 
12173
  else
 
12174
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
12175
    hardcode_action_CXX=immediate
 
12176
  fi
 
12177
else
 
12178
  # We cannot hardcode anything, or else we can only hardcode existing
 
12179
  # directories.
 
12180
  hardcode_action_CXX=unsupported
 
12181
fi
 
12182
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
12183
echo "${ECHO_T}$hardcode_action_CXX" >&6
 
12184
 
 
12185
if test "$hardcode_action_CXX" = relink; then
 
12186
  # Fast installation is not supported
 
12187
  enable_fast_install=no
 
12188
elif test "$shlibpath_overrides_runpath" = yes ||
 
12189
     test "$enable_shared" = no; then
 
12190
  # Fast installation is not necessary
 
12191
  enable_fast_install=needless
 
12192
fi
 
12193
 
 
12194
striplib=
 
12195
old_striplib=
 
12196
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
12197
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
12198
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
12199
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
12200
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
12201
  echo "$as_me:$LINENO: result: yes" >&5
 
12202
echo "${ECHO_T}yes" >&6
 
12203
else
 
12204
# FIXME - insert some real tests, host_os isn't really good enough
 
12205
  case $host_os in
 
12206
   darwin*)
 
12207
       if test -n "$STRIP" ; then
 
12208
         striplib="$STRIP -x"
 
12209
         echo "$as_me:$LINENO: result: yes" >&5
 
12210
echo "${ECHO_T}yes" >&6
 
12211
       else
 
12212
  echo "$as_me:$LINENO: result: no" >&5
 
12213
echo "${ECHO_T}no" >&6
 
12214
fi
 
12215
       ;;
 
12216
   *)
 
12217
  echo "$as_me:$LINENO: result: no" >&5
 
12218
echo "${ECHO_T}no" >&6
 
12219
    ;;
 
12220
  esac
 
12221
fi
 
12222
 
 
12223
if test "x$enable_dlopen" != xyes; then
 
12224
  enable_dlopen=unknown
 
12225
  enable_dlopen_self=unknown
 
12226
  enable_dlopen_self_static=unknown
 
12227
else
 
12228
  lt_cv_dlopen=no
 
12229
  lt_cv_dlopen_libs=
 
12230
 
 
12231
  case $host_os in
 
12232
  beos*)
 
12233
    lt_cv_dlopen="load_add_on"
 
12234
    lt_cv_dlopen_libs=
 
12235
    lt_cv_dlopen_self=yes
 
12236
    ;;
 
12237
 
 
12238
  mingw* | pw32*)
 
12239
    lt_cv_dlopen="LoadLibrary"
 
12240
    lt_cv_dlopen_libs=
 
12241
   ;;
 
12242
 
 
12243
  cygwin*)
 
12244
    lt_cv_dlopen="dlopen"
 
12245
    lt_cv_dlopen_libs=
 
12246
   ;;
 
12247
 
 
12248
  darwin*)
 
12249
  # if libdl is installed we need to link against it
 
12250
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
12251
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
12252
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
12253
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12254
else
 
12255
  ac_check_lib_save_LIBS=$LIBS
 
12256
LIBS="-ldl  $LIBS"
 
12257
cat >conftest.$ac_ext <<_ACEOF
 
12258
/* confdefs.h.  */
 
12259
_ACEOF
 
12260
cat confdefs.h >>conftest.$ac_ext
 
12261
cat >>conftest.$ac_ext <<_ACEOF
 
12262
/* end confdefs.h.  */
 
12263
 
 
12264
/* Override any gcc2 internal prototype to avoid an error.  */
 
12265
#ifdef __cplusplus
 
12266
extern "C"
 
12267
#endif
 
12268
/* We use char because int might match the return type of a gcc2
 
12269
   builtin and then its argument prototype would still apply.  */
 
12270
char dlopen ();
 
12271
int
 
12272
main ()
 
12273
{
 
12274
dlopen ();
 
12275
  ;
 
12276
  return 0;
 
12277
}
 
12278
_ACEOF
 
12279
rm -f conftest.$ac_objext conftest$ac_exeext
 
12280
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12281
  (eval $ac_link) 2>conftest.er1
 
12282
  ac_status=$?
 
12283
  grep -v '^ *+' conftest.er1 >conftest.err
 
12284
  rm -f conftest.er1
 
12285
  cat conftest.err >&5
 
12286
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12287
  (exit $ac_status); } &&
 
12288
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12289
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12290
  (eval $ac_try) 2>&5
 
12291
  ac_status=$?
 
12292
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12293
  (exit $ac_status); }; } &&
 
12294
         { ac_try='test -s conftest$ac_exeext'
 
12295
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12296
  (eval $ac_try) 2>&5
 
12297
  ac_status=$?
 
12298
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12299
  (exit $ac_status); }; }; then
 
12300
  ac_cv_lib_dl_dlopen=yes
 
12301
else
 
12302
  echo "$as_me: failed program was:" >&5
 
12303
sed 's/^/| /' conftest.$ac_ext >&5
 
12304
 
 
12305
ac_cv_lib_dl_dlopen=no
 
12306
fi
 
12307
rm -f conftest.err conftest.$ac_objext \
 
12308
      conftest$ac_exeext conftest.$ac_ext
 
12309
LIBS=$ac_check_lib_save_LIBS
 
12310
fi
 
12311
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
12312
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
12313
if test $ac_cv_lib_dl_dlopen = yes; then
 
12314
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
12315
else
 
12316
  
 
12317
    lt_cv_dlopen="dyld"
 
12318
    lt_cv_dlopen_libs=
 
12319
    lt_cv_dlopen_self=yes
 
12320
    
 
12321
fi
 
12322
 
 
12323
   ;;
 
12324
 
 
12325
  *)
 
12326
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
12327
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
12328
if test "${ac_cv_func_shl_load+set}" = set; then
 
12329
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12330
else
 
12331
  cat >conftest.$ac_ext <<_ACEOF
 
12332
/* confdefs.h.  */
 
12333
_ACEOF
 
12334
cat confdefs.h >>conftest.$ac_ext
 
12335
cat >>conftest.$ac_ext <<_ACEOF
 
12336
/* end confdefs.h.  */
 
12337
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
12338
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
12339
#define shl_load innocuous_shl_load
 
12340
 
 
12341
/* System header to define __stub macros and hopefully few prototypes,
 
12342
    which can conflict with char shl_load (); below.
 
12343
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
12344
    <limits.h> exists even on freestanding compilers.  */
 
12345
 
 
12346
#ifdef __STDC__
 
12347
# include <limits.h>
 
12348
#else
 
12349
# include <assert.h>
 
12350
#endif
 
12351
 
 
12352
#undef shl_load
 
12353
 
 
12354
/* Override any gcc2 internal prototype to avoid an error.  */
 
12355
#ifdef __cplusplus
 
12356
extern "C"
 
12357
{
 
12358
#endif
 
12359
/* We use char because int might match the return type of a gcc2
 
12360
   builtin and then its argument prototype would still apply.  */
 
12361
char shl_load ();
 
12362
/* The GNU C library defines this for functions which it implements
 
12363
    to always fail with ENOSYS.  Some functions are actually named
 
12364
    something starting with __ and the normal name is an alias.  */
 
12365
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
12366
choke me
 
12367
#else
 
12368
char (*f) () = shl_load;
 
12369
#endif
 
12370
#ifdef __cplusplus
 
12371
}
 
12372
#endif
 
12373
 
 
12374
int
 
12375
main ()
 
12376
{
 
12377
return f != shl_load;
 
12378
  ;
 
12379
  return 0;
 
12380
}
 
12381
_ACEOF
 
12382
rm -f conftest.$ac_objext conftest$ac_exeext
 
12383
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12384
  (eval $ac_link) 2>conftest.er1
 
12385
  ac_status=$?
 
12386
  grep -v '^ *+' conftest.er1 >conftest.err
 
12387
  rm -f conftest.er1
 
12388
  cat conftest.err >&5
 
12389
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12390
  (exit $ac_status); } &&
 
12391
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12392
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12393
  (eval $ac_try) 2>&5
 
12394
  ac_status=$?
 
12395
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12396
  (exit $ac_status); }; } &&
 
12397
         { ac_try='test -s conftest$ac_exeext'
 
12398
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12399
  (eval $ac_try) 2>&5
 
12400
  ac_status=$?
 
12401
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12402
  (exit $ac_status); }; }; then
 
12403
  ac_cv_func_shl_load=yes
 
12404
else
 
12405
  echo "$as_me: failed program was:" >&5
 
12406
sed 's/^/| /' conftest.$ac_ext >&5
 
12407
 
 
12408
ac_cv_func_shl_load=no
 
12409
fi
 
12410
rm -f conftest.err conftest.$ac_objext \
 
12411
      conftest$ac_exeext conftest.$ac_ext
 
12412
fi
 
12413
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
12414
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
12415
if test $ac_cv_func_shl_load = yes; then
 
12416
  lt_cv_dlopen="shl_load"
 
12417
else
 
12418
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
12419
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
12420
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
12421
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12422
else
 
12423
  ac_check_lib_save_LIBS=$LIBS
 
12424
LIBS="-ldld  $LIBS"
 
12425
cat >conftest.$ac_ext <<_ACEOF
 
12426
/* confdefs.h.  */
 
12427
_ACEOF
 
12428
cat confdefs.h >>conftest.$ac_ext
 
12429
cat >>conftest.$ac_ext <<_ACEOF
 
12430
/* end confdefs.h.  */
 
12431
 
 
12432
/* Override any gcc2 internal prototype to avoid an error.  */
 
12433
#ifdef __cplusplus
 
12434
extern "C"
 
12435
#endif
 
12436
/* We use char because int might match the return type of a gcc2
 
12437
   builtin and then its argument prototype would still apply.  */
 
12438
char shl_load ();
 
12439
int
 
12440
main ()
 
12441
{
 
12442
shl_load ();
 
12443
  ;
 
12444
  return 0;
 
12445
}
 
12446
_ACEOF
 
12447
rm -f conftest.$ac_objext conftest$ac_exeext
 
12448
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12449
  (eval $ac_link) 2>conftest.er1
 
12450
  ac_status=$?
 
12451
  grep -v '^ *+' conftest.er1 >conftest.err
 
12452
  rm -f conftest.er1
 
12453
  cat conftest.err >&5
 
12454
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12455
  (exit $ac_status); } &&
 
12456
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12457
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12458
  (eval $ac_try) 2>&5
 
12459
  ac_status=$?
 
12460
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12461
  (exit $ac_status); }; } &&
 
12462
         { ac_try='test -s conftest$ac_exeext'
 
12463
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12464
  (eval $ac_try) 2>&5
 
12465
  ac_status=$?
 
12466
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12467
  (exit $ac_status); }; }; then
 
12468
  ac_cv_lib_dld_shl_load=yes
 
12469
else
 
12470
  echo "$as_me: failed program was:" >&5
 
12471
sed 's/^/| /' conftest.$ac_ext >&5
 
12472
 
 
12473
ac_cv_lib_dld_shl_load=no
 
12474
fi
 
12475
rm -f conftest.err conftest.$ac_objext \
 
12476
      conftest$ac_exeext conftest.$ac_ext
 
12477
LIBS=$ac_check_lib_save_LIBS
 
12478
fi
 
12479
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
12480
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
12481
if test $ac_cv_lib_dld_shl_load = yes; then
 
12482
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
12483
else
 
12484
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
12485
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
12486
if test "${ac_cv_func_dlopen+set}" = set; then
 
12487
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12488
else
 
12489
  cat >conftest.$ac_ext <<_ACEOF
 
12490
/* confdefs.h.  */
 
12491
_ACEOF
 
12492
cat confdefs.h >>conftest.$ac_ext
 
12493
cat >>conftest.$ac_ext <<_ACEOF
 
12494
/* end confdefs.h.  */
 
12495
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
12496
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
12497
#define dlopen innocuous_dlopen
 
12498
 
 
12499
/* System header to define __stub macros and hopefully few prototypes,
 
12500
    which can conflict with char dlopen (); below.
 
12501
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
12502
    <limits.h> exists even on freestanding compilers.  */
 
12503
 
 
12504
#ifdef __STDC__
 
12505
# include <limits.h>
 
12506
#else
 
12507
# include <assert.h>
 
12508
#endif
 
12509
 
 
12510
#undef dlopen
 
12511
 
 
12512
/* Override any gcc2 internal prototype to avoid an error.  */
 
12513
#ifdef __cplusplus
 
12514
extern "C"
 
12515
{
 
12516
#endif
 
12517
/* We use char because int might match the return type of a gcc2
 
12518
   builtin and then its argument prototype would still apply.  */
 
12519
char dlopen ();
 
12520
/* The GNU C library defines this for functions which it implements
 
12521
    to always fail with ENOSYS.  Some functions are actually named
 
12522
    something starting with __ and the normal name is an alias.  */
 
12523
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
12524
choke me
 
12525
#else
 
12526
char (*f) () = dlopen;
 
12527
#endif
 
12528
#ifdef __cplusplus
 
12529
}
 
12530
#endif
 
12531
 
 
12532
int
 
12533
main ()
 
12534
{
 
12535
return f != dlopen;
 
12536
  ;
 
12537
  return 0;
 
12538
}
 
12539
_ACEOF
 
12540
rm -f conftest.$ac_objext conftest$ac_exeext
 
12541
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12542
  (eval $ac_link) 2>conftest.er1
 
12543
  ac_status=$?
 
12544
  grep -v '^ *+' conftest.er1 >conftest.err
 
12545
  rm -f conftest.er1
 
12546
  cat conftest.err >&5
 
12547
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12548
  (exit $ac_status); } &&
 
12549
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12550
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12551
  (eval $ac_try) 2>&5
 
12552
  ac_status=$?
 
12553
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12554
  (exit $ac_status); }; } &&
 
12555
         { ac_try='test -s conftest$ac_exeext'
 
12556
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12557
  (eval $ac_try) 2>&5
 
12558
  ac_status=$?
 
12559
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12560
  (exit $ac_status); }; }; then
 
12561
  ac_cv_func_dlopen=yes
 
12562
else
 
12563
  echo "$as_me: failed program was:" >&5
 
12564
sed 's/^/| /' conftest.$ac_ext >&5
 
12565
 
 
12566
ac_cv_func_dlopen=no
 
12567
fi
 
12568
rm -f conftest.err conftest.$ac_objext \
 
12569
      conftest$ac_exeext conftest.$ac_ext
 
12570
fi
 
12571
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
12572
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
12573
if test $ac_cv_func_dlopen = yes; then
 
12574
  lt_cv_dlopen="dlopen"
 
12575
else
 
12576
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
12577
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
12578
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
12579
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12580
else
 
12581
  ac_check_lib_save_LIBS=$LIBS
 
12582
LIBS="-ldl  $LIBS"
 
12583
cat >conftest.$ac_ext <<_ACEOF
 
12584
/* confdefs.h.  */
 
12585
_ACEOF
 
12586
cat confdefs.h >>conftest.$ac_ext
 
12587
cat >>conftest.$ac_ext <<_ACEOF
 
12588
/* end confdefs.h.  */
 
12589
 
 
12590
/* Override any gcc2 internal prototype to avoid an error.  */
 
12591
#ifdef __cplusplus
 
12592
extern "C"
 
12593
#endif
 
12594
/* We use char because int might match the return type of a gcc2
 
12595
   builtin and then its argument prototype would still apply.  */
 
12596
char dlopen ();
 
12597
int
 
12598
main ()
 
12599
{
 
12600
dlopen ();
 
12601
  ;
 
12602
  return 0;
 
12603
}
 
12604
_ACEOF
 
12605
rm -f conftest.$ac_objext conftest$ac_exeext
 
12606
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12607
  (eval $ac_link) 2>conftest.er1
 
12608
  ac_status=$?
 
12609
  grep -v '^ *+' conftest.er1 >conftest.err
 
12610
  rm -f conftest.er1
 
12611
  cat conftest.err >&5
 
12612
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12613
  (exit $ac_status); } &&
 
12614
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12615
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12616
  (eval $ac_try) 2>&5
 
12617
  ac_status=$?
 
12618
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12619
  (exit $ac_status); }; } &&
 
12620
         { ac_try='test -s conftest$ac_exeext'
 
12621
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12622
  (eval $ac_try) 2>&5
 
12623
  ac_status=$?
 
12624
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12625
  (exit $ac_status); }; }; then
 
12626
  ac_cv_lib_dl_dlopen=yes
 
12627
else
 
12628
  echo "$as_me: failed program was:" >&5
 
12629
sed 's/^/| /' conftest.$ac_ext >&5
 
12630
 
 
12631
ac_cv_lib_dl_dlopen=no
 
12632
fi
 
12633
rm -f conftest.err conftest.$ac_objext \
 
12634
      conftest$ac_exeext conftest.$ac_ext
 
12635
LIBS=$ac_check_lib_save_LIBS
 
12636
fi
 
12637
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
12638
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
12639
if test $ac_cv_lib_dl_dlopen = yes; then
 
12640
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
12641
else
 
12642
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
12643
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
12644
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
12645
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12646
else
 
12647
  ac_check_lib_save_LIBS=$LIBS
 
12648
LIBS="-lsvld  $LIBS"
 
12649
cat >conftest.$ac_ext <<_ACEOF
 
12650
/* confdefs.h.  */
 
12651
_ACEOF
 
12652
cat confdefs.h >>conftest.$ac_ext
 
12653
cat >>conftest.$ac_ext <<_ACEOF
 
12654
/* end confdefs.h.  */
 
12655
 
 
12656
/* Override any gcc2 internal prototype to avoid an error.  */
 
12657
#ifdef __cplusplus
 
12658
extern "C"
 
12659
#endif
 
12660
/* We use char because int might match the return type of a gcc2
 
12661
   builtin and then its argument prototype would still apply.  */
 
12662
char dlopen ();
 
12663
int
 
12664
main ()
 
12665
{
 
12666
dlopen ();
 
12667
  ;
 
12668
  return 0;
 
12669
}
 
12670
_ACEOF
 
12671
rm -f conftest.$ac_objext conftest$ac_exeext
 
12672
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12673
  (eval $ac_link) 2>conftest.er1
 
12674
  ac_status=$?
 
12675
  grep -v '^ *+' conftest.er1 >conftest.err
 
12676
  rm -f conftest.er1
 
12677
  cat conftest.err >&5
 
12678
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12679
  (exit $ac_status); } &&
 
12680
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12681
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12682
  (eval $ac_try) 2>&5
 
12683
  ac_status=$?
 
12684
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12685
  (exit $ac_status); }; } &&
 
12686
         { ac_try='test -s conftest$ac_exeext'
 
12687
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12688
  (eval $ac_try) 2>&5
 
12689
  ac_status=$?
 
12690
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12691
  (exit $ac_status); }; }; then
 
12692
  ac_cv_lib_svld_dlopen=yes
 
12693
else
 
12694
  echo "$as_me: failed program was:" >&5
 
12695
sed 's/^/| /' conftest.$ac_ext >&5
 
12696
 
 
12697
ac_cv_lib_svld_dlopen=no
 
12698
fi
 
12699
rm -f conftest.err conftest.$ac_objext \
 
12700
      conftest$ac_exeext conftest.$ac_ext
 
12701
LIBS=$ac_check_lib_save_LIBS
 
12702
fi
 
12703
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
12704
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
12705
if test $ac_cv_lib_svld_dlopen = yes; then
 
12706
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
12707
else
 
12708
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
12709
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
12710
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
12711
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12712
else
 
12713
  ac_check_lib_save_LIBS=$LIBS
 
12714
LIBS="-ldld  $LIBS"
 
12715
cat >conftest.$ac_ext <<_ACEOF
 
12716
/* confdefs.h.  */
 
12717
_ACEOF
 
12718
cat confdefs.h >>conftest.$ac_ext
 
12719
cat >>conftest.$ac_ext <<_ACEOF
 
12720
/* end confdefs.h.  */
 
12721
 
 
12722
/* Override any gcc2 internal prototype to avoid an error.  */
 
12723
#ifdef __cplusplus
 
12724
extern "C"
 
12725
#endif
 
12726
/* We use char because int might match the return type of a gcc2
 
12727
   builtin and then its argument prototype would still apply.  */
 
12728
char dld_link ();
 
12729
int
 
12730
main ()
 
12731
{
 
12732
dld_link ();
 
12733
  ;
 
12734
  return 0;
 
12735
}
 
12736
_ACEOF
 
12737
rm -f conftest.$ac_objext conftest$ac_exeext
 
12738
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12739
  (eval $ac_link) 2>conftest.er1
 
12740
  ac_status=$?
 
12741
  grep -v '^ *+' conftest.er1 >conftest.err
 
12742
  rm -f conftest.er1
 
12743
  cat conftest.err >&5
 
12744
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12745
  (exit $ac_status); } &&
 
12746
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12747
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12748
  (eval $ac_try) 2>&5
 
12749
  ac_status=$?
 
12750
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12751
  (exit $ac_status); }; } &&
 
12752
         { ac_try='test -s conftest$ac_exeext'
 
12753
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12754
  (eval $ac_try) 2>&5
 
12755
  ac_status=$?
 
12756
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12757
  (exit $ac_status); }; }; then
 
12758
  ac_cv_lib_dld_dld_link=yes
 
12759
else
 
12760
  echo "$as_me: failed program was:" >&5
 
12761
sed 's/^/| /' conftest.$ac_ext >&5
 
12762
 
 
12763
ac_cv_lib_dld_dld_link=no
 
12764
fi
 
12765
rm -f conftest.err conftest.$ac_objext \
 
12766
      conftest$ac_exeext conftest.$ac_ext
 
12767
LIBS=$ac_check_lib_save_LIBS
 
12768
fi
 
12769
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
12770
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
12771
if test $ac_cv_lib_dld_dld_link = yes; then
 
12772
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
12773
fi
 
12774
 
 
12775
              
 
12776
fi
 
12777
 
 
12778
            
 
12779
fi
 
12780
 
 
12781
          
 
12782
fi
 
12783
 
 
12784
        
 
12785
fi
 
12786
 
 
12787
      
 
12788
fi
 
12789
 
 
12790
    ;;
 
12791
  esac
 
12792
 
 
12793
  if test "x$lt_cv_dlopen" != xno; then
 
12794
    enable_dlopen=yes
 
12795
  else
 
12796
    enable_dlopen=no
 
12797
  fi
 
12798
 
 
12799
  case $lt_cv_dlopen in
 
12800
  dlopen)
 
12801
    save_CPPFLAGS="$CPPFLAGS"
 
12802
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
12803
 
 
12804
    save_LDFLAGS="$LDFLAGS"
 
12805
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
12806
 
 
12807
    save_LIBS="$LIBS"
 
12808
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
12809
 
 
12810
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
12811
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
12812
if test "${lt_cv_dlopen_self+set}" = set; then
 
12813
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12814
else
 
12815
          if test "$cross_compiling" = yes; then :
 
12816
  lt_cv_dlopen_self=cross
 
12817
else
 
12818
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
12819
  lt_status=$lt_dlunknown
 
12820
  cat > conftest.$ac_ext <<EOF
 
12821
#line __oline__ "configure"
 
12822
#include "confdefs.h"
 
12823
 
 
12824
#if HAVE_DLFCN_H
 
12825
#include <dlfcn.h>
 
12826
#endif
 
12827
 
 
12828
#include <stdio.h>
 
12829
 
 
12830
#ifdef RTLD_GLOBAL
 
12831
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
12832
#else
 
12833
#  ifdef DL_GLOBAL
 
12834
#    define LT_DLGLOBAL         DL_GLOBAL
 
12835
#  else
 
12836
#    define LT_DLGLOBAL         0
 
12837
#  endif
 
12838
#endif
 
12839
 
 
12840
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
12841
   find out it does not work in some platform. */
 
12842
#ifndef LT_DLLAZY_OR_NOW
 
12843
#  ifdef RTLD_LAZY
 
12844
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
12845
#  else
 
12846
#    ifdef DL_LAZY
 
12847
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
12848
#    else
 
12849
#      ifdef RTLD_NOW
 
12850
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
12851
#      else
 
12852
#        ifdef DL_NOW
 
12853
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
12854
#        else
 
12855
#          define LT_DLLAZY_OR_NOW      0
 
12856
#        endif
 
12857
#      endif
 
12858
#    endif
 
12859
#  endif
 
12860
#endif
 
12861
 
 
12862
#ifdef __cplusplus
 
12863
extern "C" void exit (int);
 
12864
#endif
 
12865
 
 
12866
void fnord() { int i=42;}
 
12867
int main ()
 
12868
{
 
12869
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
12870
  int status = $lt_dlunknown;
 
12871
 
 
12872
  if (self)
 
12873
    {
 
12874
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
12875
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
12876
      /* dlclose (self); */
 
12877
    }
 
12878
 
 
12879
    exit (status);
 
12880
}
 
12881
EOF
 
12882
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12883
  (eval $ac_link) 2>&5
 
12884
  ac_status=$?
 
12885
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12886
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
12887
    (./conftest; exit; ) >&5 2>/dev/null
 
12888
    lt_status=$?
 
12889
    case x$lt_status in
 
12890
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
12891
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
12892
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
12893
    esac
 
12894
  else :
 
12895
    # compilation failed
 
12896
    lt_cv_dlopen_self=no
 
12897
  fi
 
12898
fi
 
12899
rm -fr conftest*
 
12900
 
 
12901
    
 
12902
fi
 
12903
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
12904
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
12905
 
 
12906
    if test "x$lt_cv_dlopen_self" = xyes; then
 
12907
      LDFLAGS="$LDFLAGS $link_static_flag"
 
12908
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
12909
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
12910
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
12911
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12912
else
 
12913
          if test "$cross_compiling" = yes; then :
 
12914
  lt_cv_dlopen_self_static=cross
 
12915
else
 
12916
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
12917
  lt_status=$lt_dlunknown
 
12918
  cat > conftest.$ac_ext <<EOF
 
12919
#line __oline__ "configure"
 
12920
#include "confdefs.h"
 
12921
 
 
12922
#if HAVE_DLFCN_H
 
12923
#include <dlfcn.h>
 
12924
#endif
 
12925
 
 
12926
#include <stdio.h>
 
12927
 
 
12928
#ifdef RTLD_GLOBAL
 
12929
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
12930
#else
 
12931
#  ifdef DL_GLOBAL
 
12932
#    define LT_DLGLOBAL         DL_GLOBAL
 
12933
#  else
 
12934
#    define LT_DLGLOBAL         0
 
12935
#  endif
 
12936
#endif
 
12937
 
 
12938
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
12939
   find out it does not work in some platform. */
 
12940
#ifndef LT_DLLAZY_OR_NOW
 
12941
#  ifdef RTLD_LAZY
 
12942
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
12943
#  else
 
12944
#    ifdef DL_LAZY
 
12945
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
12946
#    else
 
12947
#      ifdef RTLD_NOW
 
12948
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
12949
#      else
 
12950
#        ifdef DL_NOW
 
12951
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
12952
#        else
 
12953
#          define LT_DLLAZY_OR_NOW      0
 
12954
#        endif
 
12955
#      endif
 
12956
#    endif
 
12957
#  endif
 
12958
#endif
 
12959
 
 
12960
#ifdef __cplusplus
 
12961
extern "C" void exit (int);
 
12962
#endif
 
12963
 
 
12964
void fnord() { int i=42;}
 
12965
int main ()
 
12966
{
 
12967
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
12968
  int status = $lt_dlunknown;
 
12969
 
 
12970
  if (self)
 
12971
    {
 
12972
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
12973
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
12974
      /* dlclose (self); */
 
12975
    }
 
12976
 
 
12977
    exit (status);
 
12978
}
 
12979
EOF
 
12980
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12981
  (eval $ac_link) 2>&5
 
12982
  ac_status=$?
 
12983
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12984
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
12985
    (./conftest; exit; ) >&5 2>/dev/null
 
12986
    lt_status=$?
 
12987
    case x$lt_status in
 
12988
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
12989
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
12990
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
12991
    esac
 
12992
  else :
 
12993
    # compilation failed
 
12994
    lt_cv_dlopen_self_static=no
 
12995
  fi
 
12996
fi
 
12997
rm -fr conftest*
 
12998
 
 
12999
      
 
13000
fi
 
13001
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
13002
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
13003
    fi
 
13004
 
 
13005
    CPPFLAGS="$save_CPPFLAGS"
 
13006
    LDFLAGS="$save_LDFLAGS"
 
13007
    LIBS="$save_LIBS"
 
13008
    ;;
 
13009
  esac
 
13010
 
 
13011
  case $lt_cv_dlopen_self in
 
13012
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
13013
  *) enable_dlopen_self=unknown ;;
 
13014
  esac
 
13015
 
 
13016
  case $lt_cv_dlopen_self_static in
 
13017
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
13018
  *) enable_dlopen_self_static=unknown ;;
 
13019
  esac
 
13020
fi
 
13021
 
 
13022
 
 
13023
# The else clause should only fire when bootstrapping the
 
13024
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
13025
# with your package, and you will get complaints that there are
 
13026
# no rules to generate ltmain.sh.
 
13027
if test -f "$ltmain"; then
 
13028
  # See if we are running on zsh, and set the options which allow our commands through
 
13029
  # without removal of \ escapes.
 
13030
  if test -n "${ZSH_VERSION+set}" ; then
 
13031
    setopt NO_GLOB_SUBST
 
13032
  fi
 
13033
  # Now quote all the things that may contain metacharacters while being
 
13034
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
13035
  # variables and quote the copies for generation of the libtool script.
 
13036
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
13037
    SED SHELL STRIP \
 
13038
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
13039
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
13040
    deplibs_check_method reload_flag reload_cmds need_locks \
 
13041
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
13042
    lt_cv_sys_global_symbol_to_c_name_address \
 
13043
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
13044
    old_postinstall_cmds old_postuninstall_cmds \
 
13045
    compiler_CXX \
 
13046
    CC_CXX \
 
13047
    LD_CXX \
 
13048
    lt_prog_compiler_wl_CXX \
 
13049
    lt_prog_compiler_pic_CXX \
 
13050
    lt_prog_compiler_static_CXX \
 
13051
    lt_prog_compiler_no_builtin_flag_CXX \
 
13052
    export_dynamic_flag_spec_CXX \
 
13053
    thread_safe_flag_spec_CXX \
 
13054
    whole_archive_flag_spec_CXX \
 
13055
    enable_shared_with_static_runtimes_CXX \
 
13056
    old_archive_cmds_CXX \
 
13057
    old_archive_from_new_cmds_CXX \
 
13058
    predep_objects_CXX \
 
13059
    postdep_objects_CXX \
 
13060
    predeps_CXX \
 
13061
    postdeps_CXX \
 
13062
    compiler_lib_search_path_CXX \
 
13063
    archive_cmds_CXX \
 
13064
    archive_expsym_cmds_CXX \
 
13065
    postinstall_cmds_CXX \
 
13066
    postuninstall_cmds_CXX \
 
13067
    old_archive_from_expsyms_cmds_CXX \
 
13068
    allow_undefined_flag_CXX \
 
13069
    no_undefined_flag_CXX \
 
13070
    export_symbols_cmds_CXX \
 
13071
    hardcode_libdir_flag_spec_CXX \
 
13072
    hardcode_libdir_flag_spec_ld_CXX \
 
13073
    hardcode_libdir_separator_CXX \
 
13074
    hardcode_automatic_CXX \
 
13075
    module_cmds_CXX \
 
13076
    module_expsym_cmds_CXX \
 
13077
    lt_cv_prog_compiler_c_o_CXX \
 
13078
    exclude_expsyms_CXX \
 
13079
    include_expsyms_CXX; do
 
13080
 
 
13081
    case $var in
 
13082
    old_archive_cmds_CXX | \
 
13083
    old_archive_from_new_cmds_CXX | \
 
13084
    archive_cmds_CXX | \
 
13085
    archive_expsym_cmds_CXX | \
 
13086
    module_cmds_CXX | \
 
13087
    module_expsym_cmds_CXX | \
 
13088
    old_archive_from_expsyms_cmds_CXX | \
 
13089
    export_symbols_cmds_CXX | \
 
13090
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
13091
    postinstall_cmds | postuninstall_cmds | \
 
13092
    old_postinstall_cmds | old_postuninstall_cmds | \
 
13093
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
13094
      # Double-quote double-evaled strings.
 
13095
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
13096
      ;;
 
13097
    *)
 
13098
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
13099
      ;;
 
13100
    esac
 
13101
  done
 
13102
 
 
13103
  case $lt_echo in
 
13104
  *'\$0 --fallback-echo"')
 
13105
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
13106
    ;;
 
13107
  esac
 
13108
 
 
13109
cfgfile="$ofile"
 
13110
 
 
13111
  cat <<__EOF__ >> "$cfgfile"
 
13112
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
13113
 
 
13114
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
13115
 
 
13116
# Shell to use when invoking shell scripts.
 
13117
SHELL=$lt_SHELL
 
13118
 
 
13119
# Whether or not to build shared libraries.
 
13120
build_libtool_libs=$enable_shared
 
13121
 
 
13122
# Whether or not to build static libraries.
 
13123
build_old_libs=$enable_static
 
13124
 
 
13125
# Whether or not to add -lc for building shared libraries.
 
13126
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
13127
 
 
13128
# Whether or not to disallow shared libs when runtime libs are static
 
13129
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
13130
 
 
13131
# Whether or not to optimize for fast installation.
 
13132
fast_install=$enable_fast_install
 
13133
 
 
13134
# The host system.
 
13135
host_alias=$host_alias
 
13136
host=$host
 
13137
host_os=$host_os
 
13138
 
 
13139
# The build system.
 
13140
build_alias=$build_alias
 
13141
build=$build
 
13142
build_os=$build_os
 
13143
 
 
13144
# An echo program that does not interpret backslashes.
 
13145
echo=$lt_echo
 
13146
 
 
13147
# The archiver.
 
13148
AR=$lt_AR
 
13149
AR_FLAGS=$lt_AR_FLAGS
 
13150
 
 
13151
# A C compiler.
 
13152
LTCC=$lt_LTCC
 
13153
 
 
13154
# A language-specific compiler.
 
13155
CC=$lt_compiler_CXX
 
13156
 
 
13157
# Is the compiler the GNU C compiler?
 
13158
with_gcc=$GCC_CXX
 
13159
 
 
13160
# An ERE matcher.
 
13161
EGREP=$lt_EGREP
 
13162
 
 
13163
# The linker used to build libraries.
 
13164
LD=$lt_LD_CXX
 
13165
 
 
13166
# Whether we need hard or soft links.
 
13167
LN_S=$lt_LN_S
 
13168
 
 
13169
# A BSD-compatible nm program.
 
13170
NM=$lt_NM
 
13171
 
 
13172
# A symbol stripping program
 
13173
STRIP=$lt_STRIP
 
13174
 
 
13175
# Used to examine libraries when file_magic_cmd begins "file"
 
13176
MAGIC_CMD=$MAGIC_CMD
 
13177
 
 
13178
# Used on cygwin: DLL creation program.
 
13179
DLLTOOL="$DLLTOOL"
 
13180
 
 
13181
# Used on cygwin: object dumper.
 
13182
OBJDUMP="$OBJDUMP"
 
13183
 
 
13184
# Used on cygwin: assembler.
 
13185
AS="$AS"
 
13186
 
 
13187
# The name of the directory that contains temporary libtool files.
 
13188
objdir=$objdir
 
13189
 
 
13190
# How to create reloadable object files.
 
13191
reload_flag=$lt_reload_flag
 
13192
reload_cmds=$lt_reload_cmds
 
13193
 
 
13194
# How to pass a linker flag through the compiler.
 
13195
wl=$lt_lt_prog_compiler_wl_CXX
 
13196
 
 
13197
# Object file suffix (normally "o").
 
13198
objext="$ac_objext"
 
13199
 
 
13200
# Old archive suffix (normally "a").
 
13201
libext="$libext"
 
13202
 
 
13203
# Shared library suffix (normally ".so").
 
13204
shrext_cmds='$shrext_cmds'
 
13205
 
 
13206
# Executable file suffix (normally "").
 
13207
exeext="$exeext"
 
13208
 
 
13209
# Additional compiler flags for building library objects.
 
13210
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
13211
pic_mode=$pic_mode
 
13212
 
 
13213
# What is the maximum length of a command?
 
13214
max_cmd_len=$lt_cv_sys_max_cmd_len
 
13215
 
 
13216
# Does compiler simultaneously support -c and -o options?
 
13217
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
13218
 
 
13219
# Must we lock files when doing compilation?
 
13220
need_locks=$lt_need_locks
 
13221
 
 
13222
# Do we need the lib prefix for modules?
 
13223
need_lib_prefix=$need_lib_prefix
 
13224
 
 
13225
# Do we need a version for libraries?
 
13226
need_version=$need_version
 
13227
 
 
13228
# Whether dlopen is supported.
 
13229
dlopen_support=$enable_dlopen
 
13230
 
 
13231
# Whether dlopen of programs is supported.
 
13232
dlopen_self=$enable_dlopen_self
 
13233
 
 
13234
# Whether dlopen of statically linked programs is supported.
 
13235
dlopen_self_static=$enable_dlopen_self_static
 
13236
 
 
13237
# Compiler flag to prevent dynamic linking.
 
13238
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
13239
 
 
13240
# Compiler flag to turn off builtin functions.
 
13241
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
13242
 
 
13243
# Compiler flag to allow reflexive dlopens.
 
13244
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
13245
 
 
13246
# Compiler flag to generate shared objects directly from archives.
 
13247
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
13248
 
 
13249
# Compiler flag to generate thread-safe objects.
 
13250
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
 
13251
 
 
13252
# Library versioning type.
 
13253
version_type=$version_type
 
13254
 
 
13255
# Format of library name prefix.
 
13256
libname_spec=$lt_libname_spec
 
13257
 
 
13258
# List of archive names.  First name is the real one, the rest are links.
 
13259
# The last name is the one that the linker finds with -lNAME.
 
13260
library_names_spec=$lt_library_names_spec
 
13261
 
 
13262
# The coded name of the library, if different from the real name.
 
13263
soname_spec=$lt_soname_spec
 
13264
 
 
13265
# Commands used to build and install an old-style archive.
 
13266
RANLIB=$lt_RANLIB
 
13267
old_archive_cmds=$lt_old_archive_cmds_CXX
 
13268
old_postinstall_cmds=$lt_old_postinstall_cmds
 
13269
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
13270
 
 
13271
# Create an old-style archive from a shared archive.
 
13272
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
13273
 
 
13274
# Create a temporary old-style archive to link instead of a shared archive.
 
13275
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
13276
 
 
13277
# Commands used to build and install a shared archive.
 
13278
archive_cmds=$lt_archive_cmds_CXX
 
13279
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
13280
postinstall_cmds=$lt_postinstall_cmds
 
13281
postuninstall_cmds=$lt_postuninstall_cmds
 
13282
 
 
13283
# Commands used to build a loadable module (assumed same as above if empty)
 
13284
module_cmds=$lt_module_cmds_CXX
 
13285
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
13286
 
 
13287
# Commands to strip libraries.
 
13288
old_striplib=$lt_old_striplib
 
13289
striplib=$lt_striplib
 
13290
 
 
13291
# Dependencies to place before the objects being linked to create a
 
13292
# shared library.
 
13293
predep_objects=$lt_predep_objects_CXX
 
13294
 
 
13295
# Dependencies to place after the objects being linked to create a
 
13296
# shared library.
 
13297
postdep_objects=$lt_postdep_objects_CXX
 
13298
 
 
13299
# Dependencies to place before the objects being linked to create a
 
13300
# shared library.
 
13301
predeps=$lt_predeps_CXX
 
13302
 
 
13303
# Dependencies to place after the objects being linked to create a
 
13304
# shared library.
 
13305
postdeps=$lt_postdeps_CXX
 
13306
 
 
13307
# The library search path used internally by the compiler when linking
 
13308
# a shared library.
 
13309
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
13310
 
 
13311
# Method to check whether dependent libraries are shared objects.
 
13312
deplibs_check_method=$lt_deplibs_check_method
 
13313
 
 
13314
# Command to use when deplibs_check_method == file_magic.
 
13315
file_magic_cmd=$lt_file_magic_cmd
 
13316
 
 
13317
# Flag that allows shared libraries with undefined symbols to be built.
 
13318
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
13319
 
 
13320
# Flag that forces no undefined symbols.
 
13321
no_undefined_flag=$lt_no_undefined_flag_CXX
 
13322
 
 
13323
# Commands used to finish a libtool library installation in a directory.
 
13324
finish_cmds=$lt_finish_cmds
 
13325
 
 
13326
# Same as above, but a single script fragment to be evaled but not shown.
 
13327
finish_eval=$lt_finish_eval
 
13328
 
 
13329
# Take the output of nm and produce a listing of raw symbols and C names.
 
13330
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
13331
 
 
13332
# Transform the output of nm in a proper C declaration
 
13333
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
13334
 
 
13335
# Transform the output of nm in a C name address pair
 
13336
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
13337
 
 
13338
# This is the shared library runtime path variable.
 
13339
runpath_var=$runpath_var
 
13340
 
 
13341
# This is the shared library path variable.
 
13342
shlibpath_var=$shlibpath_var
 
13343
 
 
13344
# Is shlibpath searched before the hard-coded library search path?
 
13345
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
13346
 
 
13347
# How to hardcode a shared library path into an executable.
 
13348
hardcode_action=$hardcode_action_CXX
 
13349
 
 
13350
# Whether we should hardcode library paths into libraries.
 
13351
hardcode_into_libs=$hardcode_into_libs
 
13352
 
 
13353
# Flag to hardcode \$libdir into a binary during linking.
 
13354
# This must work even if \$libdir does not exist.
 
13355
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
13356
 
 
13357
# If ld is used when linking, flag to hardcode \$libdir into
 
13358
# a binary during linking. This must work even if \$libdir does
 
13359
# not exist.
 
13360
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
13361
 
 
13362
# Whether we need a single -rpath flag with a separated argument.
 
13363
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
13364
 
 
13365
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
13366
# resulting binary.
 
13367
hardcode_direct=$hardcode_direct_CXX
 
13368
 
 
13369
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
13370
# resulting binary.
 
13371
hardcode_minus_L=$hardcode_minus_L_CXX
 
13372
 
 
13373
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
13374
# the resulting binary.
 
13375
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
13376
 
 
13377
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
13378
# and all subsequent libraries and executables linked against it.
 
13379
hardcode_automatic=$hardcode_automatic_CXX
 
13380
 
 
13381
# Variables whose values should be saved in libtool wrapper scripts and
 
13382
# restored at relink time.
 
13383
variables_saved_for_relink="$variables_saved_for_relink"
 
13384
 
 
13385
# Whether libtool must link a program against all its dependency libraries.
 
13386
link_all_deplibs=$link_all_deplibs_CXX
 
13387
 
 
13388
# Compile-time system search path for libraries
 
13389
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
13390
 
 
13391
# Run-time system search path for libraries
 
13392
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
13393
 
 
13394
# Fix the shell variable \$srcfile for the compiler.
 
13395
fix_srcfile_path="$fix_srcfile_path_CXX"
 
13396
 
 
13397
# Set to yes if exported symbols are required.
 
13398
always_export_symbols=$always_export_symbols_CXX
 
13399
 
 
13400
# The commands to list exported symbols.
 
13401
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
13402
 
 
13403
# The commands to extract the exported symbol list from a shared archive.
 
13404
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
13405
 
 
13406
# Symbols that should not be listed in the preloaded symbols.
 
13407
exclude_expsyms=$lt_exclude_expsyms_CXX
 
13408
 
 
13409
# Symbols that must always be exported.
 
13410
include_expsyms=$lt_include_expsyms_CXX
 
13411
 
 
13412
# ### END LIBTOOL TAG CONFIG: $tagname
 
13413
 
 
13414
__EOF__
 
13415
 
 
13416
 
 
13417
else
 
13418
  # If there is no Makefile yet, we rely on a make rule to execute
 
13419
  # `config.status --recheck' to rerun these tests and create the
 
13420
  # libtool script then.
 
13421
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
13422
  if test -f "$ltmain_in"; then
 
13423
    test -f Makefile && make "$ltmain"
 
13424
  fi
 
13425
fi
 
13426
 
 
13427
 
 
13428
ac_ext=c
 
13429
ac_cpp='$CPP $CPPFLAGS'
 
13430
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
13431
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13432
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
13433
 
 
13434
CC=$lt_save_CC
 
13435
LDCXX=$LD
 
13436
LD=$lt_save_LD
 
13437
GCC=$lt_save_GCC
 
13438
with_gnu_ldcxx=$with_gnu_ld
 
13439
with_gnu_ld=$lt_save_with_gnu_ld
 
13440
lt_cv_path_LDCXX=$lt_cv_path_LD
 
13441
lt_cv_path_LD=$lt_save_path_LD
 
13442
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
13443
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
13444
 
 
13445
        else
 
13446
          tagname=""
 
13447
        fi
 
13448
        ;;
 
13449
 
 
13450
      F77)
 
13451
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
13452
          
 
13453
ac_ext=f
 
13454
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
13455
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13456
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
13457
 
 
13458
 
 
13459
archive_cmds_need_lc_F77=no
 
13460
allow_undefined_flag_F77=
 
13461
always_export_symbols_F77=no
 
13462
archive_expsym_cmds_F77=
 
13463
export_dynamic_flag_spec_F77=
 
13464
hardcode_direct_F77=no
 
13465
hardcode_libdir_flag_spec_F77=
 
13466
hardcode_libdir_flag_spec_ld_F77=
 
13467
hardcode_libdir_separator_F77=
 
13468
hardcode_minus_L_F77=no
 
13469
hardcode_automatic_F77=no
 
13470
module_cmds_F77=
 
13471
module_expsym_cmds_F77=
 
13472
link_all_deplibs_F77=unknown
 
13473
old_archive_cmds_F77=$old_archive_cmds
 
13474
no_undefined_flag_F77=
 
13475
whole_archive_flag_spec_F77=
 
13476
enable_shared_with_static_runtimes_F77=no
 
13477
 
 
13478
# Source file extension for f77 test sources.
 
13479
ac_ext=f
 
13480
 
 
13481
# Object file extension for compiled f77 test sources.
 
13482
objext=o
 
13483
objext_F77=$objext
 
13484
 
 
13485
# Code to be used in simple compile tests
 
13486
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
13487
 
 
13488
# Code to be used in simple link tests
 
13489
lt_simple_link_test_code="      program t\n      end\n"
 
13490
 
 
13491
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
13492
 
 
13493
# If no C compiler was specified, use CC.
 
13494
LTCC=${LTCC-"$CC"}
 
13495
 
 
13496
# Allow CC to be a program name with arguments.
 
13497
compiler=$CC
 
13498
 
 
13499
 
 
13500
# save warnings/boilerplate of simple test code
 
13501
ac_outfile=conftest.$ac_objext
 
13502
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
13503
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
13504
_lt_compiler_boilerplate=`cat conftest.err`
 
13505
$rm conftest*
 
13506
 
 
13507
ac_outfile=conftest.$ac_objext
 
13508
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
13509
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
13510
_lt_linker_boilerplate=`cat conftest.err`
 
13511
$rm conftest*
 
13512
 
 
13513
 
 
13514
# Allow CC to be a program name with arguments.
 
13515
lt_save_CC="$CC"
 
13516
CC=${F77-"f77"}
 
13517
compiler=$CC
 
13518
compiler_F77=$CC
 
13519
for cc_temp in $compiler""; do
 
13520
  case $cc_temp in
 
13521
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
13522
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
13523
    \-*) ;;
 
13524
    *) break;;
 
13525
  esac
 
13526
done
 
13527
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
13528
 
 
13529
 
 
13530
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
13531
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
13532
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
13533
echo "${ECHO_T}$can_build_shared" >&6
 
13534
 
 
13535
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
13536
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
13537
test "$can_build_shared" = "no" && enable_shared=no
 
13538
 
 
13539
# On AIX, shared libraries and static libraries use the same namespace, and
 
13540
# are all built from PIC.
 
13541
case $host_os in
 
13542
aix3*)
 
13543
  test "$enable_shared" = yes && enable_static=no
 
13544
  if test -n "$RANLIB"; then
 
13545
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
13546
    postinstall_cmds='$RANLIB $lib'
 
13547
  fi
 
13548
  ;;
 
13549
aix4* | aix5*)
 
13550
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
13551
    test "$enable_shared" = yes && enable_static=no
 
13552
  fi
 
13553
  ;;
 
13554
esac
 
13555
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
13556
echo "${ECHO_T}$enable_shared" >&6
 
13557
 
 
13558
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
13559
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
13560
# Make sure either enable_shared or enable_static is yes.
 
13561
test "$enable_shared" = yes || enable_static=yes
 
13562
echo "$as_me:$LINENO: result: $enable_static" >&5
 
13563
echo "${ECHO_T}$enable_static" >&6
 
13564
 
 
13565
test "$ld_shlibs_F77" = no && can_build_shared=no
 
13566
 
 
13567
GCC_F77="$G77"
 
13568
LD_F77="$LD"
 
13569
 
 
13570
lt_prog_compiler_wl_F77=
 
13571
lt_prog_compiler_pic_F77=
 
13572
lt_prog_compiler_static_F77=
 
13573
 
 
13574
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
13575
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
13576
 
 
13577
  if test "$GCC" = yes; then
 
13578
    lt_prog_compiler_wl_F77='-Wl,'
 
13579
    lt_prog_compiler_static_F77='-static'
 
13580
 
 
13581
    case $host_os in
 
13582
      aix*)
 
13583
      # All AIX code is PIC.
 
13584
      if test "$host_cpu" = ia64; then
 
13585
        # AIX 5 now supports IA64 processor
 
13586
        lt_prog_compiler_static_F77='-Bstatic'
 
13587
      fi
 
13588
      ;;
 
13589
 
 
13590
    amigaos*)
 
13591
      # FIXME: we need at least 68020 code to build shared libraries, but
 
13592
      # adding the `-m68020' flag to GCC prevents building anything better,
 
13593
      # like `-m68040'.
 
13594
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
 
13595
      ;;
 
13596
 
 
13597
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
13598
      # PIC is the default for these OSes.
 
13599
      ;;
 
13600
 
 
13601
    mingw* | pw32* | os2*)
 
13602
      # This hack is so that the source file can tell whether it is being
 
13603
      # built for inclusion in a dll (and should export symbols for example).
 
13604
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
13605
      ;;
 
13606
 
 
13607
    darwin* | rhapsody*)
 
13608
      # PIC is the default on this platform
 
13609
      # Common symbols not allowed in MH_DYLIB files
 
13610
      lt_prog_compiler_pic_F77='-fno-common'
 
13611
      ;;
 
13612
 
 
13613
    msdosdjgpp*)
 
13614
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
13615
      # on systems that don't support them.
 
13616
      lt_prog_compiler_can_build_shared_F77=no
 
13617
      enable_shared=no
 
13618
      ;;
 
13619
 
 
13620
    sysv4*MP*)
 
13621
      if test -d /usr/nec; then
 
13622
        lt_prog_compiler_pic_F77=-Kconform_pic
 
13623
      fi
 
13624
      ;;
 
13625
 
 
13626
    hpux*)
 
13627
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
13628
      # not for PA HP-UX.
 
13629
      case $host_cpu in
 
13630
      hppa*64*|ia64*)
 
13631
        # +Z the default
 
13632
        ;;
 
13633
      *)
 
13634
        lt_prog_compiler_pic_F77='-fPIC'
 
13635
        ;;
 
13636
      esac
 
13637
      ;;
 
13638
 
 
13639
    *)
 
13640
      lt_prog_compiler_pic_F77='-fPIC'
 
13641
      ;;
 
13642
    esac
 
13643
  else
 
13644
    # PORTME Check for flag to pass linker flags through the system compiler.
 
13645
    case $host_os in
 
13646
    aix*)
 
13647
      lt_prog_compiler_wl_F77='-Wl,'
 
13648
      if test "$host_cpu" = ia64; then
 
13649
        # AIX 5 now supports IA64 processor
 
13650
        lt_prog_compiler_static_F77='-Bstatic'
 
13651
      else
 
13652
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
 
13653
      fi
 
13654
      ;;
 
13655
      darwin*)
 
13656
        # PIC is the default on this platform
 
13657
        # Common symbols not allowed in MH_DYLIB files
 
13658
       case $cc_basename in
 
13659
         xlc*)
 
13660
         lt_prog_compiler_pic_F77='-qnocommon'
 
13661
         lt_prog_compiler_wl_F77='-Wl,'
 
13662
         ;;
 
13663
       esac
 
13664
       ;;
 
13665
 
 
13666
    mingw* | pw32* | os2*)
 
13667
      # This hack is so that the source file can tell whether it is being
 
13668
      # built for inclusion in a dll (and should export symbols for example).
 
13669
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
13670
      ;;
 
13671
 
 
13672
    hpux9* | hpux10* | hpux11*)
 
13673
      lt_prog_compiler_wl_F77='-Wl,'
 
13674
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
13675
      # not for PA HP-UX.
 
13676
      case $host_cpu in
 
13677
      hppa*64*|ia64*)
 
13678
        # +Z the default
 
13679
        ;;
 
13680
      *)
 
13681
        lt_prog_compiler_pic_F77='+Z'
 
13682
        ;;
 
13683
      esac
 
13684
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
13685
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
 
13686
      ;;
 
13687
 
 
13688
    irix5* | irix6* | nonstopux*)
 
13689
      lt_prog_compiler_wl_F77='-Wl,'
 
13690
      # PIC (with -KPIC) is the default.
 
13691
      lt_prog_compiler_static_F77='-non_shared'
 
13692
      ;;
 
13693
 
 
13694
    newsos6)
 
13695
      lt_prog_compiler_pic_F77='-KPIC'
 
13696
      lt_prog_compiler_static_F77='-Bstatic'
 
13697
      ;;
 
13698
 
 
13699
    linux*)
 
13700
      case $cc_basename in
 
13701
      icc* | ecc*)
 
13702
        lt_prog_compiler_wl_F77='-Wl,'
 
13703
        lt_prog_compiler_pic_F77='-KPIC'
 
13704
        lt_prog_compiler_static_F77='-static'
 
13705
        ;;
 
13706
      pgcc* | pgf77* | pgf90* | pgf95*)
 
13707
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
13708
        # which looks to be a dead project)
 
13709
        lt_prog_compiler_wl_F77='-Wl,'
 
13710
        lt_prog_compiler_pic_F77='-fpic'
 
13711
        lt_prog_compiler_static_F77='-Bstatic'
 
13712
        ;;
 
13713
      ccc*)
 
13714
        lt_prog_compiler_wl_F77='-Wl,'
 
13715
        # All Alpha code is PIC.
 
13716
        lt_prog_compiler_static_F77='-non_shared'
 
13717
        ;;
 
13718
      esac
 
13719
      ;;
 
13720
 
 
13721
    osf3* | osf4* | osf5*)
 
13722
      lt_prog_compiler_wl_F77='-Wl,'
 
13723
      # All OSF/1 code is PIC.
 
13724
      lt_prog_compiler_static_F77='-non_shared'
 
13725
      ;;
 
13726
 
 
13727
    sco3.2v5*)
 
13728
      lt_prog_compiler_pic_F77='-Kpic'
 
13729
      lt_prog_compiler_static_F77='-dn'
 
13730
      ;;
 
13731
 
 
13732
    solaris*)
 
13733
      lt_prog_compiler_pic_F77='-KPIC'
 
13734
      lt_prog_compiler_static_F77='-Bstatic'
 
13735
      case $cc_basename in
 
13736
      f77* | f90* | f95*)
 
13737
        lt_prog_compiler_wl_F77='-Qoption ld ';;
 
13738
      *)
 
13739
        lt_prog_compiler_wl_F77='-Wl,';;
 
13740
      esac
 
13741
      ;;
 
13742
 
 
13743
    sunos4*)
 
13744
      lt_prog_compiler_wl_F77='-Qoption ld '
 
13745
      lt_prog_compiler_pic_F77='-PIC'
 
13746
      lt_prog_compiler_static_F77='-Bstatic'
 
13747
      ;;
 
13748
 
 
13749
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
13750
      lt_prog_compiler_wl_F77='-Wl,'
 
13751
      lt_prog_compiler_pic_F77='-KPIC'
 
13752
      lt_prog_compiler_static_F77='-Bstatic'
 
13753
      ;;
 
13754
 
 
13755
    sysv4*MP*)
 
13756
      if test -d /usr/nec ;then
 
13757
        lt_prog_compiler_pic_F77='-Kconform_pic'
 
13758
        lt_prog_compiler_static_F77='-Bstatic'
 
13759
      fi
 
13760
      ;;
 
13761
 
 
13762
    unicos*)
 
13763
      lt_prog_compiler_wl_F77='-Wl,'
 
13764
      lt_prog_compiler_can_build_shared_F77=no
 
13765
      ;;
 
13766
 
 
13767
    uts4*)
 
13768
      lt_prog_compiler_pic_F77='-pic'
 
13769
      lt_prog_compiler_static_F77='-Bstatic'
 
13770
      ;;
 
13771
 
 
13772
    *)
 
13773
      lt_prog_compiler_can_build_shared_F77=no
 
13774
      ;;
 
13775
    esac
 
13776
  fi
 
13777
 
 
13778
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
13779
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
 
13780
 
 
13781
#
 
13782
# Check to make sure the PIC flag actually works.
 
13783
#
 
13784
if test -n "$lt_prog_compiler_pic_F77"; then
 
13785
  
 
13786
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
13787
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
 
13788
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
 
13789
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13790
else
 
13791
  lt_prog_compiler_pic_works_F77=no
 
13792
  ac_outfile=conftest.$ac_objext
 
13793
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13794
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
 
13795
   # Insert the option either (1) after the last *FLAGS variable, or
 
13796
   # (2) before a word containing "conftest.", or (3) at the end.
 
13797
   # Note that $ac_compile itself does not contain backslashes and begins
 
13798
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13799
   # The option is referenced via a variable to avoid confusing sed.
 
13800
   lt_compile=`echo "$ac_compile" | $SED \
 
13801
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
13802
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13803
   -e 's:$: $lt_compiler_flag:'`
 
13804
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 
13805
   (eval "$lt_compile" 2>conftest.err)
 
13806
   ac_status=$?
 
13807
   cat conftest.err >&5
 
13808
   echo "$as_me:__oline__: \$? = $ac_status" >&5
 
13809
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
13810
     # The compiler can only warn and ignore the option if not recognized
 
13811
     # So say no if there are warnings other than the usual output.
 
13812
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
13813
     $SED '/^$/d' conftest.err >conftest.er2
 
13814
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
 
13815
       lt_prog_compiler_pic_works_F77=yes
 
13816
     fi
 
13817
   fi
 
13818
   $rm conftest*
 
13819
 
 
13820
fi
 
13821
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
 
13822
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
 
13823
 
 
13824
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
 
13825
    case $lt_prog_compiler_pic_F77 in
 
13826
     "" | " "*) ;;
 
13827
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
 
13828
     esac
 
13829
else
 
13830
    lt_prog_compiler_pic_F77=
 
13831
     lt_prog_compiler_can_build_shared_F77=no
 
13832
fi
 
13833
 
 
13834
fi
 
13835
case $host_os in
 
13836
  # For platforms which do not support PIC, -DPIC is meaningless:
 
13837
  *djgpp*)
 
13838
    lt_prog_compiler_pic_F77=
 
13839
    ;;
 
13840
  *)
 
13841
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
 
13842
    ;;
 
13843
esac
 
13844
 
 
13845
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
13846
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
13847
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
 
13848
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13849
else
 
13850
  lt_cv_prog_compiler_c_o_F77=no
 
13851
   $rm -r conftest 2>/dev/null
 
13852
   mkdir conftest
 
13853
   cd conftest
 
13854
   mkdir out
 
13855
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13856
 
 
13857
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
13858
   # Insert the option either (1) after the last *FLAGS variable, or
 
13859
   # (2) before a word containing "conftest.", or (3) at the end.
 
13860
   # Note that $ac_compile itself does not contain backslashes and begins
 
13861
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13862
   lt_compile=`echo "$ac_compile" | $SED \
 
13863
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
13864
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13865
   -e 's:$: $lt_compiler_flag:'`
 
13866
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 
13867
   (eval "$lt_compile" 2>out/conftest.err)
 
13868
   ac_status=$?
 
13869
   cat out/conftest.err >&5
 
13870
   echo "$as_me:__oline__: \$? = $ac_status" >&5
 
13871
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
13872
   then
 
13873
     # The compiler can only warn and ignore the option if not recognized
 
13874
     # So say no if there are warnings
 
13875
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
 
13876
     $SED '/^$/d' out/conftest.err >out/conftest.er2
 
13877
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
13878
       lt_cv_prog_compiler_c_o_F77=yes
 
13879
     fi
 
13880
   fi
 
13881
   chmod u+w . 2>&5
 
13882
   $rm conftest*
 
13883
   # SGI C++ compiler will create directory out/ii_files/ for
 
13884
   # template instantiation
 
13885
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
13886
   $rm out/* && rmdir out
 
13887
   cd ..
 
13888
   rmdir conftest
 
13889
   $rm conftest*
 
13890
 
 
13891
fi
 
13892
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
13893
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
 
13894
 
 
13895
 
 
13896
hard_links="nottested"
 
13897
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
 
13898
  # do not overwrite the value of need_locks provided by the user
 
13899
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
13900
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
13901
  hard_links=yes
 
13902
  $rm conftest*
 
13903
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13904
  touch conftest.a
 
13905
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
13906
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13907
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
13908
echo "${ECHO_T}$hard_links" >&6
 
13909
  if test "$hard_links" = no; then
 
13910
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
13911
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
13912
    need_locks=warn
 
13913
  fi
 
13914
else
 
13915
  need_locks=no
 
13916
fi
 
13917
 
 
13918
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
13919
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
13920
 
 
13921
  runpath_var=
 
13922
  allow_undefined_flag_F77=
 
13923
  enable_shared_with_static_runtimes_F77=no
 
13924
  archive_cmds_F77=
 
13925
  archive_expsym_cmds_F77=
 
13926
  old_archive_From_new_cmds_F77=
 
13927
  old_archive_from_expsyms_cmds_F77=
 
13928
  export_dynamic_flag_spec_F77=
 
13929
  whole_archive_flag_spec_F77=
 
13930
  thread_safe_flag_spec_F77=
 
13931
  hardcode_libdir_flag_spec_F77=
 
13932
  hardcode_libdir_flag_spec_ld_F77=
 
13933
  hardcode_libdir_separator_F77=
 
13934
  hardcode_direct_F77=no
 
13935
  hardcode_minus_L_F77=no
 
13936
  hardcode_shlibpath_var_F77=unsupported
 
13937
  link_all_deplibs_F77=unknown
 
13938
  hardcode_automatic_F77=no
 
13939
  module_cmds_F77=
 
13940
  module_expsym_cmds_F77=
 
13941
  always_export_symbols_F77=no
 
13942
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
13943
  # include_expsyms should be a list of space-separated symbols to be *always*
 
13944
  # included in the symbol list
 
13945
  include_expsyms_F77=
 
13946
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
13947
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
13948
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
13949
  # as well as any symbol that contains `d'.
 
13950
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
 
13951
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
13952
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
13953
  # the symbol is explicitly referenced.  Since portable code cannot
 
13954
  # rely on this symbol name, it's probably fine to never include it in
 
13955
  # preloaded symbol tables.
 
13956
  extract_expsyms_cmds=
 
13957
  # Just being paranoid about ensuring that cc_basename is set.
 
13958
  for cc_temp in $compiler""; do
 
13959
  case $cc_temp in
 
13960
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
13961
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
13962
    \-*) ;;
 
13963
    *) break;;
 
13964
  esac
 
13965
done
 
13966
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
13967
 
 
13968
  case $host_os in
 
13969
  cygwin* | mingw* | pw32*)
 
13970
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
13971
    # When not using gcc, we currently assume that we are using
 
13972
    # Microsoft Visual C++.
 
13973
    if test "$GCC" != yes; then
 
13974
      with_gnu_ld=no
 
13975
    fi
 
13976
    ;;
 
13977
  openbsd*)
 
13978
    with_gnu_ld=no
 
13979
    ;;
 
13980
  esac
 
13981
 
 
13982
  ld_shlibs_F77=yes
 
13983
  if test "$with_gnu_ld" = yes; then
 
13984
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
13985
    wlarc='${wl}'
 
13986
 
 
13987
    # Set some defaults for GNU ld with shared library support. These
 
13988
    # are reset later if shared libraries are not supported. Putting them
 
13989
    # here allows them to be overridden if necessary.
 
13990
    runpath_var=LD_RUN_PATH
 
13991
    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
13992
    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
13993
    # ancient GNU ld didn't support --whole-archive et. al.
 
13994
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
13995
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
13996
      else
 
13997
        whole_archive_flag_spec_F77=
 
13998
    fi
 
13999
    supports_anon_versioning=no
 
14000
    case `$LD -v 2>/dev/null` in
 
14001
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
14002
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
14003
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
14004
      *\ 2.11.*) ;; # other 2.11 versions
 
14005
      *) supports_anon_versioning=yes ;;
 
14006
    esac
 
14007
 
 
14008
    # See if GNU ld supports shared libraries.
 
14009
    case $host_os in
 
14010
    aix3* | aix4* | aix5*)
 
14011
      # On AIX/PPC, the GNU linker is very broken
 
14012
      if test "$host_cpu" != ia64; then
 
14013
        ld_shlibs_F77=no
 
14014
        cat <<EOF 1>&2
 
14015
 
 
14016
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
14017
*** to be unable to reliably create shared libraries on AIX.
 
14018
*** Therefore, libtool is disabling shared libraries support.  If you
 
14019
*** really care for shared libraries, you may want to modify your PATH
 
14020
*** so that a non-GNU linker is found, and then restart.
 
14021
 
 
14022
EOF
 
14023
      fi
 
14024
      ;;
 
14025
 
 
14026
    amigaos*)
 
14027
      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)'
 
14028
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14029
      hardcode_minus_L_F77=yes
 
14030
 
 
14031
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
14032
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
14033
      # to version 4, is to share data among multiple programs linked
 
14034
      # with the same dynamic library.  Since this doesn't match the
 
14035
      # behavior of shared libraries on other platforms, we can't use
 
14036
      # them.
 
14037
      ld_shlibs_F77=no
 
14038
      ;;
 
14039
 
 
14040
    beos*)
 
14041
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14042
        allow_undefined_flag_F77=unsupported
 
14043
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
14044
        # support --undefined.  This deserves some investigation.  FIXME
 
14045
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14046
      else
 
14047
        ld_shlibs_F77=no
 
14048
      fi
 
14049
      ;;
 
14050
 
 
14051
    cygwin* | mingw* | pw32*)
 
14052
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
 
14053
      # as there is no search path for DLLs.
 
14054
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14055
      allow_undefined_flag_F77=unsupported
 
14056
      always_export_symbols_F77=no
 
14057
      enable_shared_with_static_runtimes_F77=yes
 
14058
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
14059
 
 
14060
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
14061
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
14062
        # If the export-symbols file already is a .def file (1st line
 
14063
        # is EXPORTS), use it as is; otherwise, prepend...
 
14064
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
14065
          cp $export_symbols $output_objdir/$soname.def;
 
14066
        else
 
14067
          echo EXPORTS > $output_objdir/$soname.def;
 
14068
          cat $export_symbols >> $output_objdir/$soname.def;
 
14069
        fi~
 
14070
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
14071
      else
 
14072
        ld_shlibs_F77=no
 
14073
      fi
 
14074
      ;;
 
14075
 
 
14076
    linux*)
 
14077
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14078
        tmp_addflag=
 
14079
        case $cc_basename,$host_cpu in
 
14080
        pgcc*)                          # Portland Group C compiler
 
14081
          whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
14082
          tmp_addflag=' $pic_flag'
 
14083
          ;;
 
14084
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
14085
          whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
14086
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
14087
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
14088
          tmp_addflag=' -i_dynamic' ;;
 
14089
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
14090
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
14091
        ifc* | ifort*)                  # Intel Fortran compiler
 
14092
          tmp_addflag=' -nofor_main' ;;
 
14093
        esac
 
14094
        archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14095
 
 
14096
        if test $supports_anon_versioning = yes; then
 
14097
          archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
14098
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
14099
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
14100
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
14101
        fi
 
14102
        link_all_deplibs_F77=no
 
14103
      else
 
14104
        ld_shlibs_F77=no
 
14105
      fi
 
14106
      ;;
 
14107
 
 
14108
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
14109
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14110
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
14111
        wlarc=
 
14112
      else
 
14113
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14114
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14115
      fi
 
14116
      ;;
 
14117
 
 
14118
    solaris* | sysv5*)
 
14119
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
14120
        ld_shlibs_F77=no
 
14121
        cat <<EOF 1>&2
 
14122
 
 
14123
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
14124
*** create shared libraries on Solaris systems.  Therefore, libtool
 
14125
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
14126
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
14127
*** your PATH or compiler configuration so that the native linker is
 
14128
*** used, and then restart.
 
14129
 
 
14130
EOF
 
14131
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14132
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14133
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14134
      else
 
14135
        ld_shlibs_F77=no
 
14136
      fi
 
14137
      ;;
 
14138
 
 
14139
    sunos4*)
 
14140
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14141
      wlarc=
 
14142
      hardcode_direct_F77=yes
 
14143
      hardcode_shlibpath_var_F77=no
 
14144
      ;;
 
14145
 
 
14146
    *)
 
14147
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14148
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14149
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14150
      else
 
14151
        ld_shlibs_F77=no
 
14152
      fi
 
14153
      ;;
 
14154
    esac
 
14155
 
 
14156
    if test "$ld_shlibs_F77" = no; then
 
14157
      runpath_var=
 
14158
      hardcode_libdir_flag_spec_F77=
 
14159
      export_dynamic_flag_spec_F77=
 
14160
      whole_archive_flag_spec_F77=
 
14161
    fi
 
14162
  else
 
14163
    # PORTME fill in a description of your system's linker (not GNU ld)
 
14164
    case $host_os in
 
14165
    aix3*)
 
14166
      allow_undefined_flag_F77=unsupported
 
14167
      always_export_symbols_F77=yes
 
14168
      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'
 
14169
      # Note: this linker hardcodes the directories in LIBPATH if there
 
14170
      # are no directories specified by -L.
 
14171
      hardcode_minus_L_F77=yes
 
14172
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
14173
        # Neither direct hardcoding nor static linking is supported with a
 
14174
        # broken collect2.
 
14175
        hardcode_direct_F77=unsupported
 
14176
      fi
 
14177
      ;;
 
14178
 
 
14179
    aix4* | aix5*)
 
14180
      if test "$host_cpu" = ia64; then
 
14181
        # On IA64, the linker does run time linking by default, so we don't
 
14182
        # have to do anything special.
 
14183
        aix_use_runtimelinking=no
 
14184
        exp_sym_flag='-Bexport'
 
14185
        no_entry_flag=""
 
14186
      else
 
14187
        # If we're using GNU nm, then we don't want the "-C" option.
 
14188
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
14189
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
14190
          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'
 
14191
        else
 
14192
          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'
 
14193
        fi
 
14194
        aix_use_runtimelinking=no
 
14195
 
 
14196
        # Test if we are trying to use run time linking or normal
 
14197
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
14198
        # need to do runtime linking.
 
14199
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
14200
          for ld_flag in $LDFLAGS; do
 
14201
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
14202
            aix_use_runtimelinking=yes
 
14203
            break
 
14204
          fi
 
14205
          done
 
14206
        esac
 
14207
 
 
14208
        exp_sym_flag='-bexport'
 
14209
        no_entry_flag='-bnoentry'
 
14210
      fi
 
14211
 
 
14212
      # When large executables or shared objects are built, AIX ld can
 
14213
      # have problems creating the table of contents.  If linking a library
 
14214
      # or program results in "error TOC overflow" add -mminimal-toc to
 
14215
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
14216
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
14217
 
 
14218
      archive_cmds_F77=''
 
14219
      hardcode_direct_F77=yes
 
14220
      hardcode_libdir_separator_F77=':'
 
14221
      link_all_deplibs_F77=yes
 
14222
 
 
14223
      if test "$GCC" = yes; then
 
14224
        case $host_os in aix4.[012]|aix4.[012].*)
 
14225
        # We only want to do this on AIX 4.2 and lower, the check
 
14226
        # below for broken collect2 doesn't work under 4.3+
 
14227
          collect2name=`${CC} -print-prog-name=collect2`
 
14228
          if test -f "$collect2name" && \
 
14229
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
14230
          then
 
14231
          # We have reworked collect2
 
14232
          hardcode_direct_F77=yes
 
14233
          else
 
14234
          # We have old collect2
 
14235
          hardcode_direct_F77=unsupported
 
14236
          # It fails to find uninstalled libraries when the uninstalled
 
14237
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
14238
          # to unsupported forces relinking
 
14239
          hardcode_minus_L_F77=yes
 
14240
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
14241
          hardcode_libdir_separator_F77=
 
14242
          fi
 
14243
        esac
 
14244
        shared_flag='-shared'
 
14245
        if test "$aix_use_runtimelinking" = yes; then
 
14246
          shared_flag="$shared_flag "'${wl}-G'
 
14247
        fi
 
14248
      else
 
14249
        # not using gcc
 
14250
        if test "$host_cpu" = ia64; then
 
14251
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
14252
        # chokes on -Wl,-G. The following line is correct:
 
14253
          shared_flag='-G'
 
14254
        else
 
14255
        if test "$aix_use_runtimelinking" = yes; then
 
14256
            shared_flag='${wl}-G'
 
14257
          else
 
14258
            shared_flag='${wl}-bM:SRE'
 
14259
        fi
 
14260
        fi
 
14261
      fi
 
14262
 
 
14263
      # It seems that -bexpall does not export symbols beginning with
 
14264
      # underscore (_), so it is better to generate a list of symbols to export.
 
14265
      always_export_symbols_F77=yes
 
14266
      if test "$aix_use_runtimelinking" = yes; then
 
14267
        # Warning - without using the other runtime loading flags (-brtl),
 
14268
        # -berok will link without error, but may produce a broken library.
 
14269
        allow_undefined_flag_F77='-berok'
 
14270
       # Determine the default libpath from the value encoded in an empty executable.
 
14271
       cat >conftest.$ac_ext <<_ACEOF
 
14272
      program main
 
14273
 
 
14274
      end
 
14275
_ACEOF
 
14276
rm -f conftest.$ac_objext conftest$ac_exeext
 
14277
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14278
  (eval $ac_link) 2>conftest.er1
 
14279
  ac_status=$?
 
14280
  grep -v '^ *+' conftest.er1 >conftest.err
 
14281
  rm -f conftest.er1
 
14282
  cat conftest.err >&5
 
14283
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14284
  (exit $ac_status); } &&
 
14285
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
14286
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14287
  (eval $ac_try) 2>&5
 
14288
  ac_status=$?
 
14289
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14290
  (exit $ac_status); }; } &&
 
14291
         { ac_try='test -s conftest$ac_exeext'
 
14292
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14293
  (eval $ac_try) 2>&5
 
14294
  ac_status=$?
 
14295
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14296
  (exit $ac_status); }; }; then
 
14297
  
 
14298
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
14299
}'`
 
14300
# Check for a 64-bit object if we didn't find anything.
 
14301
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; }
 
14302
}'`; fi
 
14303
else
 
14304
  echo "$as_me: failed program was:" >&5
 
14305
sed 's/^/| /' conftest.$ac_ext >&5
 
14306
 
 
14307
fi
 
14308
rm -f conftest.err conftest.$ac_objext \
 
14309
      conftest$ac_exeext conftest.$ac_ext
 
14310
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
14311
 
 
14312
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
14313
        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"
 
14314
       else
 
14315
        if test "$host_cpu" = ia64; then
 
14316
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
 
14317
          allow_undefined_flag_F77="-z nodefs"
 
14318
          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"
 
14319
        else
 
14320
         # Determine the default libpath from the value encoded in an empty executable.
 
14321
         cat >conftest.$ac_ext <<_ACEOF
 
14322
      program main
 
14323
 
 
14324
      end
 
14325
_ACEOF
 
14326
rm -f conftest.$ac_objext conftest$ac_exeext
 
14327
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14328
  (eval $ac_link) 2>conftest.er1
 
14329
  ac_status=$?
 
14330
  grep -v '^ *+' conftest.er1 >conftest.err
 
14331
  rm -f conftest.er1
 
14332
  cat conftest.err >&5
 
14333
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14334
  (exit $ac_status); } &&
 
14335
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
14336
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14337
  (eval $ac_try) 2>&5
 
14338
  ac_status=$?
 
14339
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14340
  (exit $ac_status); }; } &&
 
14341
         { ac_try='test -s conftest$ac_exeext'
 
14342
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14343
  (eval $ac_try) 2>&5
 
14344
  ac_status=$?
 
14345
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14346
  (exit $ac_status); }; }; then
 
14347
  
 
14348
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
14349
}'`
 
14350
# Check for a 64-bit object if we didn't find anything.
 
14351
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; }
 
14352
}'`; fi
 
14353
else
 
14354
  echo "$as_me: failed program was:" >&5
 
14355
sed 's/^/| /' conftest.$ac_ext >&5
 
14356
 
 
14357
fi
 
14358
rm -f conftest.err conftest.$ac_objext \
 
14359
      conftest$ac_exeext conftest.$ac_ext
 
14360
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
14361
 
 
14362
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
14363
          # Warning - without using the other run time loading flags,
 
14364
          # -berok will link without error, but may produce a broken library.
 
14365
          no_undefined_flag_F77=' ${wl}-bernotok'
 
14366
          allow_undefined_flag_F77=' ${wl}-berok'
 
14367
          # -bexpall does not export symbols beginning with underscore (_)
 
14368
          always_export_symbols_F77=yes
 
14369
          # Exported symbols can be pulled into shared objects from archives
 
14370
          whole_archive_flag_spec_F77=' '
 
14371
          archive_cmds_need_lc_F77=yes
 
14372
          # This is similar to how AIX traditionally builds its shared libraries.
 
14373
          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'
 
14374
        fi
 
14375
      fi
 
14376
      ;;
 
14377
 
 
14378
    amigaos*)
 
14379
      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)'
 
14380
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14381
      hardcode_minus_L_F77=yes
 
14382
      # see comment about different semantics on the GNU ld section
 
14383
      ld_shlibs_F77=no
 
14384
      ;;
 
14385
 
 
14386
    bsdi[45]*)
 
14387
      export_dynamic_flag_spec_F77=-rdynamic
 
14388
      ;;
 
14389
 
 
14390
    cygwin* | mingw* | pw32*)
 
14391
      # When not using gcc, we currently assume that we are using
 
14392
      # Microsoft Visual C++.
 
14393
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
14394
      # no search path for DLLs.
 
14395
      hardcode_libdir_flag_spec_F77=' '
 
14396
      allow_undefined_flag_F77=unsupported
 
14397
      # Tell ltmain to make .lib files, not .a files.
 
14398
      libext=lib
 
14399
      # Tell ltmain to make .dll files, not .so files.
 
14400
      shrext_cmds=".dll"
 
14401
      # FIXME: Setting linknames here is a bad hack.
 
14402
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
14403
      # The linker will automatically build a .lib file if we build a DLL.
 
14404
      old_archive_From_new_cmds_F77='true'
 
14405
      # FIXME: Should let the user specify the lib program.
 
14406
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
14407
      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
 
14408
      enable_shared_with_static_runtimes_F77=yes
 
14409
      ;;
 
14410
 
 
14411
    darwin* | rhapsody*)
 
14412
      case $host_os in
 
14413
        rhapsody* | darwin1.[012])
 
14414
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
 
14415
         ;;
 
14416
       *) # Darwin 1.3 on
 
14417
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
14418
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
14419
         else
 
14420
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
14421
             10.[012])
 
14422
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
14423
               ;;
 
14424
             10.*)
 
14425
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
 
14426
               ;;
 
14427
           esac
 
14428
         fi
 
14429
         ;;
 
14430
      esac
 
14431
      archive_cmds_need_lc_F77=no
 
14432
      hardcode_direct_F77=no
 
14433
      hardcode_automatic_F77=yes
 
14434
      hardcode_shlibpath_var_F77=unsupported
 
14435
      whole_archive_flag_spec_F77=''
 
14436
      link_all_deplibs_F77=yes
 
14437
    if test "$GCC" = yes ; then
 
14438
        output_verbose_link_cmd='echo'
 
14439
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
14440
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
14441
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
14442
      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}'
 
14443
      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}'
 
14444
    else
 
14445
      case $cc_basename in
 
14446
        xlc*)
 
14447
         output_verbose_link_cmd='echo'
 
14448
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
14449
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
14450
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
14451
         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}'
 
14452
          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}'
 
14453
          ;;
 
14454
       *)
 
14455
         ld_shlibs_F77=no
 
14456
          ;;
 
14457
      esac
 
14458
    fi
 
14459
      ;;
 
14460
 
 
14461
    dgux*)
 
14462
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14463
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14464
      hardcode_shlibpath_var_F77=no
 
14465
      ;;
 
14466
 
 
14467
    freebsd1*)
 
14468
      ld_shlibs_F77=no
 
14469
      ;;
 
14470
 
 
14471
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
14472
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
14473
    # does not break anything, and helps significantly (at the cost of a little
 
14474
    # extra space).
 
14475
    freebsd2.2*)
 
14476
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
14477
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14478
      hardcode_direct_F77=yes
 
14479
      hardcode_shlibpath_var_F77=no
 
14480
      ;;
 
14481
 
 
14482
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
14483
    freebsd2*)
 
14484
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14485
      hardcode_direct_F77=yes
 
14486
      hardcode_minus_L_F77=yes
 
14487
      hardcode_shlibpath_var_F77=no
 
14488
      ;;
 
14489
 
 
14490
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
14491
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
14492
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
14493
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14494
      hardcode_direct_F77=yes
 
14495
      hardcode_shlibpath_var_F77=no
 
14496
      ;;
 
14497
 
 
14498
    hpux9*)
 
14499
      if test "$GCC" = yes; then
 
14500
        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'
 
14501
      else
 
14502
        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'
 
14503
      fi
 
14504
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14505
      hardcode_libdir_separator_F77=:
 
14506
      hardcode_direct_F77=yes
 
14507
 
 
14508
      # hardcode_minus_L: Not really in the search PATH,
 
14509
      # but as the default location of the library.
 
14510
      hardcode_minus_L_F77=yes
 
14511
      export_dynamic_flag_spec_F77='${wl}-E'
 
14512
      ;;
 
14513
 
 
14514
    hpux10* | hpux11*)
 
14515
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
14516
        case $host_cpu in
 
14517
        hppa*64*|ia64*)
 
14518
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14519
          ;;
 
14520
        *)
 
14521
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
14522
          ;;
 
14523
        esac
 
14524
      else
 
14525
        case $host_cpu in
 
14526
        hppa*64*|ia64*)
 
14527
          archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14528
          ;;
 
14529
        *)
 
14530
          archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
14531
          ;;
 
14532
        esac
 
14533
      fi
 
14534
      if test "$with_gnu_ld" = no; then
 
14535
        case $host_cpu in
 
14536
        hppa*64*)
 
14537
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14538
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
 
14539
          hardcode_libdir_separator_F77=:
 
14540
          hardcode_direct_F77=no
 
14541
          hardcode_shlibpath_var_F77=no
 
14542
          ;;
 
14543
        ia64*)
 
14544
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
14545
          hardcode_direct_F77=no
 
14546
          hardcode_shlibpath_var_F77=no
 
14547
 
 
14548
          # hardcode_minus_L: Not really in the search PATH,
 
14549
          # but as the default location of the library.
 
14550
          hardcode_minus_L_F77=yes
 
14551
          ;;
 
14552
        *)
 
14553
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14554
          hardcode_libdir_separator_F77=:
 
14555
          hardcode_direct_F77=yes
 
14556
          export_dynamic_flag_spec_F77='${wl}-E'
 
14557
 
 
14558
          # hardcode_minus_L: Not really in the search PATH,
 
14559
          # but as the default location of the library.
 
14560
          hardcode_minus_L_F77=yes
 
14561
          ;;
 
14562
        esac
 
14563
      fi
 
14564
      ;;
 
14565
 
 
14566
    irix5* | irix6* | nonstopux*)
 
14567
      if test "$GCC" = yes; then
 
14568
        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'
 
14569
      else
 
14570
        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'
 
14571
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
 
14572
      fi
 
14573
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14574
      hardcode_libdir_separator_F77=:
 
14575
      link_all_deplibs_F77=yes
 
14576
      ;;
 
14577
 
 
14578
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
14579
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14580
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
14581
      else
 
14582
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
14583
      fi
 
14584
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14585
      hardcode_direct_F77=yes
 
14586
      hardcode_shlibpath_var_F77=no
 
14587
      ;;
 
14588
 
 
14589
    newsos6)
 
14590
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14591
      hardcode_direct_F77=yes
 
14592
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14593
      hardcode_libdir_separator_F77=:
 
14594
      hardcode_shlibpath_var_F77=no
 
14595
      ;;
 
14596
 
 
14597
    openbsd*)
 
14598
      hardcode_direct_F77=yes
 
14599
      hardcode_shlibpath_var_F77=no
 
14600
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
14601
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
14602
        archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
14603
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
14604
        export_dynamic_flag_spec_F77='${wl}-E'
 
14605
      else
 
14606
       case $host_os in
 
14607
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
14608
           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14609
           hardcode_libdir_flag_spec_F77='-R$libdir'
 
14610
           ;;
 
14611
         *)
 
14612
           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
14613
           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
14614
           ;;
 
14615
       esac
 
14616
      fi
 
14617
      ;;
 
14618
 
 
14619
    os2*)
 
14620
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14621
      hardcode_minus_L_F77=yes
 
14622
      allow_undefined_flag_F77=unsupported
 
14623
      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'
 
14624
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
14625
      ;;
 
14626
 
 
14627
    osf3*)
 
14628
      if test "$GCC" = yes; then
 
14629
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
14630
        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'
 
14631
      else
 
14632
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
14633
        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'
 
14634
      fi
 
14635
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14636
      hardcode_libdir_separator_F77=:
 
14637
      ;;
 
14638
 
 
14639
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
14640
      if test "$GCC" = yes; then
 
14641
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
14642
        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'
 
14643
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
14644
      else
 
14645
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
14646
        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'
 
14647
        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~
 
14648
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
14649
 
 
14650
        # Both c and cxx compiler support -rpath directly
 
14651
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
 
14652
      fi
 
14653
      hardcode_libdir_separator_F77=:
 
14654
      ;;
 
14655
 
 
14656
    sco3.2v5*)
 
14657
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14658
      hardcode_shlibpath_var_F77=no
 
14659
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
14660
      runpath_var=LD_RUN_PATH
 
14661
      hardcode_runpath_var=yes
 
14662
      ;;
 
14663
 
 
14664
    solaris*)
 
14665
      no_undefined_flag_F77=' -z text'
 
14666
      if test "$GCC" = yes; then
 
14667
        wlarc='${wl}'
 
14668
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14669
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
14670
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
14671
      else
 
14672
        wlarc=''
 
14673
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14674
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
14675
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
14676
      fi
 
14677
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14678
      hardcode_shlibpath_var_F77=no
 
14679
      case $host_os in
 
14680
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
14681
      *)
 
14682
        # The compiler driver will combine linker options so we
 
14683
        # cannot just pass the convience library names through
 
14684
        # without $wl, iff we do not link with $LD.
 
14685
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
14686
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
14687
        case $wlarc in
 
14688
        '')
 
14689
          whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
14690
        *)
 
14691
          whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
14692
        esac ;;
 
14693
      esac
 
14694
      link_all_deplibs_F77=yes
 
14695
      ;;
 
14696
 
 
14697
    sunos4*)
 
14698
      if test "x$host_vendor" = xsequent; then
 
14699
        # Use $CC to link under sequent, because it throws in some extra .o
 
14700
        # files that make .init and .fini sections work.
 
14701
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
14702
      else
 
14703
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
14704
      fi
 
14705
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14706
      hardcode_direct_F77=yes
 
14707
      hardcode_minus_L_F77=yes
 
14708
      hardcode_shlibpath_var_F77=no
 
14709
      ;;
 
14710
 
 
14711
    sysv4)
 
14712
      case $host_vendor in
 
14713
        sni)
 
14714
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14715
          hardcode_direct_F77=yes # is this really true???
 
14716
        ;;
 
14717
        siemens)
 
14718
          ## LD is ld it makes a PLAMLIB
 
14719
          ## CC just makes a GrossModule.
 
14720
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
14721
          reload_cmds_F77='$CC -r -o $output$reload_objs'
 
14722
          hardcode_direct_F77=no
 
14723
        ;;
 
14724
        motorola)
 
14725
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14726
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
 
14727
        ;;
 
14728
      esac
 
14729
      runpath_var='LD_RUN_PATH'
 
14730
      hardcode_shlibpath_var_F77=no
 
14731
      ;;
 
14732
 
 
14733
    sysv4.3*)
 
14734
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14735
      hardcode_shlibpath_var_F77=no
 
14736
      export_dynamic_flag_spec_F77='-Bexport'
 
14737
      ;;
 
14738
 
 
14739
    sysv4*MP*)
 
14740
      if test -d /usr/nec; then
 
14741
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14742
        hardcode_shlibpath_var_F77=no
 
14743
        runpath_var=LD_RUN_PATH
 
14744
        hardcode_runpath_var=yes
 
14745
        ld_shlibs_F77=yes
 
14746
      fi
 
14747
      ;;
 
14748
 
 
14749
    sysv4.2uw2*)
 
14750
      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
14751
      hardcode_direct_F77=yes
 
14752
      hardcode_minus_L_F77=no
 
14753
      hardcode_shlibpath_var_F77=no
 
14754
      hardcode_runpath_var=yes
 
14755
      runpath_var=LD_RUN_PATH
 
14756
      ;;
 
14757
 
 
14758
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
14759
      no_undefined_flag_F77='${wl}-z ${wl}text'
 
14760
      if test "$GCC" = yes; then
 
14761
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14762
      else
 
14763
        archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14764
      fi
 
14765
      runpath_var='LD_RUN_PATH'
 
14766
      hardcode_shlibpath_var_F77=no
 
14767
      ;;
 
14768
 
 
14769
    sysv5*)
 
14770
      no_undefined_flag_F77=' -z text'
 
14771
      # $CC -shared without GNU ld will not create a library from C++
 
14772
      # object files and a static libstdc++, better avoid it by now
 
14773
      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14774
      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
14775
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
14776
      hardcode_libdir_flag_spec_F77=
 
14777
      hardcode_shlibpath_var_F77=no
 
14778
      runpath_var='LD_RUN_PATH'
 
14779
      ;;
 
14780
 
 
14781
    uts4*)
 
14782
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14783
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14784
      hardcode_shlibpath_var_F77=no
 
14785
      ;;
 
14786
 
 
14787
    *)
 
14788
      ld_shlibs_F77=no
 
14789
      ;;
 
14790
    esac
 
14791
  fi
 
14792
 
 
14793
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
14794
echo "${ECHO_T}$ld_shlibs_F77" >&6
 
14795
test "$ld_shlibs_F77" = no && can_build_shared=no
 
14796
 
 
14797
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
14798
if test "$GCC" = yes; then
 
14799
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
14800
fi
 
14801
 
 
14802
#
 
14803
# Do we need to explicitly link libc?
 
14804
#
 
14805
case "x$archive_cmds_need_lc_F77" in
 
14806
x|xyes)
 
14807
  # Assume -lc should be added
 
14808
  archive_cmds_need_lc_F77=yes
 
14809
 
 
14810
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
14811
    case $archive_cmds_F77 in
 
14812
    *'~'*)
 
14813
      # FIXME: we may have to deal with multi-command sequences.
 
14814
      ;;
 
14815
    '$CC '*)
 
14816
      # Test whether the compiler implicitly links with -lc since on some
 
14817
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
14818
      # to ld, don't add -lc before -lgcc.
 
14819
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
14820
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
14821
      $rm conftest*
 
14822
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14823
 
 
14824
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
14825
  (eval $ac_compile) 2>&5
 
14826
  ac_status=$?
 
14827
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14828
  (exit $ac_status); } 2>conftest.err; then
 
14829
        soname=conftest
 
14830
        lib=conftest
 
14831
        libobjs=conftest.$ac_objext
 
14832
        deplibs=
 
14833
        wl=$lt_prog_compiler_wl_F77
 
14834
        compiler_flags=-v
 
14835
        linker_flags=-v
 
14836
        verstring=
 
14837
        output_objdir=.
 
14838
        libname=conftest
 
14839
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
 
14840
        allow_undefined_flag_F77=
 
14841
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
14842
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
14843
  ac_status=$?
 
14844
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14845
  (exit $ac_status); }
 
14846
        then
 
14847
          archive_cmds_need_lc_F77=no
 
14848
        else
 
14849
          archive_cmds_need_lc_F77=yes
 
14850
        fi
 
14851
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
 
14852
      else
 
14853
        cat conftest.err 1>&5
 
14854
      fi
 
14855
      $rm conftest*
 
14856
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
14857
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
 
14858
      ;;
 
14859
    esac
 
14860
  fi
 
14861
  ;;
 
14862
esac
 
14863
 
 
14864
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
14865
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
14866
library_names_spec=
 
14867
libname_spec='lib$name'
 
14868
soname_spec=
 
14869
shrext_cmds=".so"
 
14870
postinstall_cmds=
 
14871
postuninstall_cmds=
 
14872
finish_cmds=
 
14873
finish_eval=
 
14874
shlibpath_var=
 
14875
shlibpath_overrides_runpath=unknown
 
14876
version_type=none
 
14877
dynamic_linker="$host_os ld.so"
 
14878
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
14879
if test "$GCC" = yes; then
 
14880
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
14881
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
14882
    # if the path contains ";" then we assume it to be the separator
 
14883
    # otherwise default to the standard path separator (i.e. ":") - it is
 
14884
    # assumed that no part of a normal pathname contains ";" but that should
 
14885
    # okay in the real world where ";" in dirpaths is itself problematic.
 
14886
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
14887
  else
 
14888
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
14889
  fi
 
14890
else
 
14891
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
14892
fi
 
14893
need_lib_prefix=unknown
 
14894
hardcode_into_libs=no
 
14895
 
 
14896
# when you set need_version to no, make sure it does not cause -set_version
 
14897
# flags to be left without arguments
 
14898
need_version=unknown
 
14899
 
 
14900
case $host_os in
 
14901
aix3*)
 
14902
  version_type=linux
 
14903
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
14904
  shlibpath_var=LIBPATH
 
14905
 
 
14906
  # AIX 3 has no versioning support, so we append a major version to the name.
 
14907
  soname_spec='${libname}${release}${shared_ext}$major'
 
14908
  ;;
 
14909
 
 
14910
aix4* | aix5*)
 
14911
  version_type=linux
 
14912
  need_lib_prefix=no
 
14913
  need_version=no
 
14914
  hardcode_into_libs=yes
 
14915
  if test "$host_cpu" = ia64; then
 
14916
    # AIX 5 supports IA64
 
14917
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
14918
    shlibpath_var=LD_LIBRARY_PATH
 
14919
  else
 
14920
    # With GCC up to 2.95.x, collect2 would create an import file
 
14921
    # for dependence libraries.  The import file would start with
 
14922
    # the line `#! .'.  This would cause the generated library to
 
14923
    # depend on `.', always an invalid library.  This was fixed in
 
14924
    # development snapshots of GCC prior to 3.0.
 
14925
    case $host_os in
 
14926
      aix4 | aix4.[01] | aix4.[01].*)
 
14927
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
14928
           echo ' yes '
 
14929
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
14930
        :
 
14931
      else
 
14932
        can_build_shared=no
 
14933
      fi
 
14934
      ;;
 
14935
    esac
 
14936
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
14937
    # soname into executable. Probably we can add versioning support to
 
14938
    # collect2, so additional links can be useful in future.
 
14939
    if test "$aix_use_runtimelinking" = yes; then
 
14940
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
14941
      # instead of lib<name>.a to let people know that these are not
 
14942
      # typical AIX shared libraries.
 
14943
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14944
    else
 
14945
      # We preserve .a as extension for shared libraries through AIX4.2
 
14946
      # and later when we are not doing run time linking.
 
14947
      library_names_spec='${libname}${release}.a $libname.a'
 
14948
      soname_spec='${libname}${release}${shared_ext}$major'
 
14949
    fi
 
14950
    shlibpath_var=LIBPATH
 
14951
  fi
 
14952
  ;;
 
14953
 
 
14954
amigaos*)
 
14955
  library_names_spec='$libname.ixlibrary $libname.a'
 
14956
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
14957
  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'
 
14958
  ;;
 
14959
 
 
14960
beos*)
 
14961
  library_names_spec='${libname}${shared_ext}'
 
14962
  dynamic_linker="$host_os ld.so"
 
14963
  shlibpath_var=LIBRARY_PATH
 
14964
  ;;
 
14965
 
 
14966
bsdi[45]*)
 
14967
  version_type=linux
 
14968
  need_version=no
 
14969
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
14970
  soname_spec='${libname}${release}${shared_ext}$major'
 
14971
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
14972
  shlibpath_var=LD_LIBRARY_PATH
 
14973
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
14974
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
14975
  # the default ld.so.conf also contains /usr/contrib/lib and
 
14976
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
14977
  # libtool to hard-code these into programs
 
14978
  ;;
 
14979
 
 
14980
cygwin* | mingw* | pw32*)
 
14981
  version_type=windows
 
14982
  shrext_cmds=".dll"
 
14983
  need_version=no
 
14984
  need_lib_prefix=no
 
14985
 
 
14986
  case $GCC,$host_os in
 
14987
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
14988
    library_names_spec='$libname.dll.a'
 
14989
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
14990
    postinstall_cmds='base_file=`basename \${file}`~
 
14991
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
14992
      dldir=$destdir/`dirname \$dlpath`~
 
14993
      test -d \$dldir || mkdir -p \$dldir~
 
14994
      $install_prog $dir/$dlname \$dldir/$dlname~
 
14995
      chmod a+x \$dldir/$dlname'
 
14996
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
14997
      dlpath=$dir/\$dldll~
 
14998
       $rm \$dlpath'
 
14999
    shlibpath_overrides_runpath=yes
 
15000
 
 
15001
    case $host_os in
 
15002
    cygwin*)
 
15003
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
15004
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15005
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
15006
      ;;
 
15007
    mingw*)
 
15008
      # MinGW DLLs use traditional 'lib' prefix
 
15009
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15010
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
15011
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
15012
        # It is most probably a Windows format PATH printed by
 
15013
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
15014
        # path with ; separators, and with drive letters. We can handle the
 
15015
        # drive letters (cygwin fileutils understands them), so leave them,
 
15016
        # especially as we might pass files found there to a mingw objdump,
 
15017
        # which wouldn't understand a cygwinified path. Ahh.
 
15018
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
15019
      else
 
15020
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
15021
      fi
 
15022
      ;;
 
15023
    pw32*)
 
15024
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
15025
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15026
      ;;
 
15027
    esac
 
15028
    ;;
 
15029
 
 
15030
  *)
 
15031
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
15032
    ;;
 
15033
  esac
 
15034
  dynamic_linker='Win32 ld.exe'
 
15035
  # FIXME: first we should search . and the directory the executable is in
 
15036
  shlibpath_var=PATH
 
15037
  ;;
 
15038
 
 
15039
darwin* | rhapsody*)
 
15040
  dynamic_linker="$host_os dyld"
 
15041
  version_type=darwin
 
15042
  need_lib_prefix=no
 
15043
  need_version=no
 
15044
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
15045
  soname_spec='${libname}${release}${major}$shared_ext'
 
15046
  shlibpath_overrides_runpath=yes
 
15047
  shlibpath_var=DYLD_LIBRARY_PATH
 
15048
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
15049
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
15050
  if test "$GCC" = yes; then
 
15051
    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"`
 
15052
  else
 
15053
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
15054
  fi
 
15055
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
15056
  ;;
 
15057
 
 
15058
dgux*)
 
15059
  version_type=linux
 
15060
  need_lib_prefix=no
 
15061
  need_version=no
 
15062
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
15063
  soname_spec='${libname}${release}${shared_ext}$major'
 
15064
  shlibpath_var=LD_LIBRARY_PATH
 
15065
  ;;
 
15066
 
 
15067
freebsd1*)
 
15068
  dynamic_linker=no
 
15069
  ;;
 
15070
 
 
15071
kfreebsd*-gnu)
 
15072
  version_type=linux
 
15073
  need_lib_prefix=no
 
15074
  need_version=no
 
15075
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15076
  soname_spec='${libname}${release}${shared_ext}$major'
 
15077
  shlibpath_var=LD_LIBRARY_PATH
 
15078
  shlibpath_overrides_runpath=no
 
15079
  hardcode_into_libs=yes
 
15080
  dynamic_linker='GNU ld.so'
 
15081
  ;;
 
15082
 
 
15083
freebsd* | dragonfly*)
 
15084
  # DragonFly does not have aout.  When/if they implement a new
 
15085
  # versioning mechanism, adjust this.
 
15086
  if test -x /usr/bin/objformat; then
 
15087
    objformat=`/usr/bin/objformat`
 
15088
  else
 
15089
    case $host_os in
 
15090
    freebsd[123]*) objformat=aout ;;
 
15091
    *) objformat=elf ;;
 
15092
    esac
 
15093
  fi
 
15094
  version_type=freebsd-$objformat
 
15095
  case $version_type in
 
15096
    freebsd-elf*)
 
15097
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15098
      need_version=no
 
15099
      need_lib_prefix=no
 
15100
      ;;
 
15101
    freebsd-*)
 
15102
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
15103
      need_version=yes
 
15104
      ;;
 
15105
  esac
 
15106
  shlibpath_var=LD_LIBRARY_PATH
 
15107
  case $host_os in
 
15108
  freebsd2*)
 
15109
    shlibpath_overrides_runpath=yes
 
15110
    ;;
 
15111
  freebsd3.[01]* | freebsdelf3.[01]*)
 
15112
    shlibpath_overrides_runpath=yes
 
15113
    hardcode_into_libs=yes
 
15114
    ;;
 
15115
  *) # from 3.2 on
 
15116
    shlibpath_overrides_runpath=no
 
15117
    hardcode_into_libs=yes
 
15118
    ;;
 
15119
  esac
 
15120
  ;;
 
15121
 
 
15122
gnu*)
 
15123
  version_type=linux
 
15124
  need_lib_prefix=no
 
15125
  need_version=no
 
15126
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
15127
  soname_spec='${libname}${release}${shared_ext}$major'
 
15128
  shlibpath_var=LD_LIBRARY_PATH
 
15129
  hardcode_into_libs=yes
 
15130
  ;;
 
15131
 
 
15132
hpux9* | hpux10* | hpux11*)
 
15133
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
15134
  # link against other versions.
 
15135
  version_type=sunos
 
15136
  need_lib_prefix=no
 
15137
  need_version=no
 
15138
  case $host_cpu in
 
15139
  ia64*)
 
15140
    shrext_cmds='.so'
 
15141
    hardcode_into_libs=yes
 
15142
    dynamic_linker="$host_os dld.so"
 
15143
    shlibpath_var=LD_LIBRARY_PATH
 
15144
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
15145
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15146
    soname_spec='${libname}${release}${shared_ext}$major'
 
15147
    if test "X$HPUX_IA64_MODE" = X32; then
 
15148
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
15149
    else
 
15150
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
15151
    fi
 
15152
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
15153
    ;;
 
15154
   hppa*64*)
 
15155
     shrext_cmds='.sl'
 
15156
     hardcode_into_libs=yes
 
15157
     dynamic_linker="$host_os dld.sl"
 
15158
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
15159
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
15160
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15161
     soname_spec='${libname}${release}${shared_ext}$major'
 
15162
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
15163
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
15164
     ;;
 
15165
   *)
 
15166
    shrext_cmds='.sl'
 
15167
    dynamic_linker="$host_os dld.sl"
 
15168
    shlibpath_var=SHLIB_PATH
 
15169
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
15170
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15171
    soname_spec='${libname}${release}${shared_ext}$major'
 
15172
    ;;
 
15173
  esac
 
15174
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
15175
  postinstall_cmds='chmod 555 $lib'
 
15176
  ;;
 
15177
 
 
15178
irix5* | irix6* | nonstopux*)
 
15179
  case $host_os in
 
15180
    nonstopux*) version_type=nonstopux ;;
 
15181
    *)
 
15182
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
15183
                version_type=linux
 
15184
        else
 
15185
                version_type=irix
 
15186
        fi ;;
 
15187
  esac
 
15188
  need_lib_prefix=no
 
15189
  need_version=no
 
15190
  soname_spec='${libname}${release}${shared_ext}$major'
 
15191
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15192
  case $host_os in
 
15193
  irix5* | nonstopux*)
 
15194
    libsuff= shlibsuff=
 
15195
    ;;
 
15196
  *)
 
15197
    case $LD in # libtool.m4 will add one of these switches to LD
 
15198
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
15199
      libsuff= shlibsuff= libmagic=32-bit;;
 
15200
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
15201
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
15202
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
15203
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
15204
    *) libsuff= shlibsuff= libmagic=never-match;;
 
15205
    esac
 
15206
    ;;
 
15207
  esac
 
15208
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
15209
  shlibpath_overrides_runpath=no
 
15210
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
15211
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
15212
  hardcode_into_libs=yes
 
15213
  ;;
 
15214
 
 
15215
# No shared lib support for Linux oldld, aout, or coff.
 
15216
linux*oldld* | linux*aout* | linux*coff*)
 
15217
  dynamic_linker=no
 
15218
  ;;
 
15219
 
 
15220
# This must be Linux ELF.
 
15221
linux*)
 
15222
  version_type=linux
 
15223
  need_lib_prefix=no
 
15224
  need_version=no
 
15225
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15226
  soname_spec='${libname}${release}${shared_ext}$major'
 
15227
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
15228
  shlibpath_var=LD_LIBRARY_PATH
 
15229
  shlibpath_overrides_runpath=no
 
15230
  # This implies no fast_install, which is unacceptable.
 
15231
  # Some rework will be needed to allow for fast_install
 
15232
  # before this can be enabled.
 
15233
  hardcode_into_libs=yes
 
15234
 
 
15235
  # Append ld.so.conf contents to the search path
 
15236
  if test -f /etc/ld.so.conf; then
 
15237
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
15238
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
15239
  fi
 
15240
 
 
15241
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
15242
  # powerpc, because MkLinux only supported shared libraries with the
 
15243
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
15244
  # most powerpc-linux boxes support dynamic linking these days and
 
15245
  # people can always --disable-shared, the test was removed, and we
 
15246
  # assume the GNU/Linux dynamic linker is in use.
 
15247
  dynamic_linker='GNU/Linux ld.so'
 
15248
  ;;
 
15249
 
 
15250
netbsdelf*-gnu)
 
15251
  version_type=linux
 
15252
  need_lib_prefix=no
 
15253
  need_version=no
 
15254
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15255
  soname_spec='${libname}${release}${shared_ext}$major'
 
15256
  shlibpath_var=LD_LIBRARY_PATH
 
15257
  shlibpath_overrides_runpath=no
 
15258
  hardcode_into_libs=yes
 
15259
  dynamic_linker='NetBSD ld.elf_so'
 
15260
  ;;
 
15261
 
 
15262
knetbsd*-gnu)
 
15263
  version_type=linux
 
15264
  need_lib_prefix=no
 
15265
  need_version=no
 
15266
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15267
  soname_spec='${libname}${release}${shared_ext}$major'
 
15268
  shlibpath_var=LD_LIBRARY_PATH
 
15269
  shlibpath_overrides_runpath=no
 
15270
  hardcode_into_libs=yes
 
15271
  dynamic_linker='GNU ld.so'
 
15272
  ;;
 
15273
 
 
15274
netbsd*)
 
15275
  version_type=sunos
 
15276
  need_lib_prefix=no
 
15277
  need_version=no
 
15278
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15279
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15280
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
15281
    dynamic_linker='NetBSD (a.out) ld.so'
 
15282
  else
 
15283
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15284
    soname_spec='${libname}${release}${shared_ext}$major'
 
15285
    dynamic_linker='NetBSD ld.elf_so'
 
15286
  fi
 
15287
  shlibpath_var=LD_LIBRARY_PATH
 
15288
  shlibpath_overrides_runpath=yes
 
15289
  hardcode_into_libs=yes
 
15290
  ;;
 
15291
 
 
15292
newsos6)
 
15293
  version_type=linux
 
15294
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15295
  shlibpath_var=LD_LIBRARY_PATH
 
15296
  shlibpath_overrides_runpath=yes
 
15297
  ;;
 
15298
 
 
15299
nto-qnx*)
 
15300
  version_type=linux
 
15301
  need_lib_prefix=no
 
15302
  need_version=no
 
15303
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15304
  soname_spec='${libname}${release}${shared_ext}$major'
 
15305
  shlibpath_var=LD_LIBRARY_PATH
 
15306
  shlibpath_overrides_runpath=yes
 
15307
  ;;
 
15308
 
 
15309
openbsd*)
 
15310
  version_type=sunos
 
15311
  need_lib_prefix=no
 
15312
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
15313
  case $host_os in
 
15314
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
15315
    *)                         need_version=no  ;;
 
15316
  esac
 
15317
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15318
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
15319
  shlibpath_var=LD_LIBRARY_PATH
 
15320
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
15321
    case $host_os in
 
15322
      openbsd2.[89] | openbsd2.[89].*)
 
15323
        shlibpath_overrides_runpath=no
 
15324
        ;;
 
15325
      *)
 
15326
        shlibpath_overrides_runpath=yes
 
15327
        ;;
 
15328
      esac
 
15329
  else
 
15330
    shlibpath_overrides_runpath=yes
 
15331
  fi
 
15332
  ;;
 
15333
 
 
15334
os2*)
 
15335
  libname_spec='$name'
 
15336
  shrext_cmds=".dll"
 
15337
  need_lib_prefix=no
 
15338
  library_names_spec='$libname${shared_ext} $libname.a'
 
15339
  dynamic_linker='OS/2 ld.exe'
 
15340
  shlibpath_var=LIBPATH
 
15341
  ;;
 
15342
 
 
15343
osf3* | osf4* | osf5*)
 
15344
  version_type=osf
 
15345
  need_lib_prefix=no
 
15346
  need_version=no
 
15347
  soname_spec='${libname}${release}${shared_ext}$major'
 
15348
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15349
  shlibpath_var=LD_LIBRARY_PATH
 
15350
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
15351
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
15352
  ;;
 
15353
 
 
15354
sco3.2v5*)
 
15355
  version_type=osf
 
15356
  soname_spec='${libname}${release}${shared_ext}$major'
 
15357
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15358
  shlibpath_var=LD_LIBRARY_PATH
 
15359
  ;;
 
15360
 
 
15361
solaris*)
 
15362
  version_type=linux
 
15363
  need_lib_prefix=no
 
15364
  need_version=no
 
15365
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15366
  soname_spec='${libname}${release}${shared_ext}$major'
 
15367
  shlibpath_var=LD_LIBRARY_PATH
 
15368
  shlibpath_overrides_runpath=yes
 
15369
  hardcode_into_libs=yes
 
15370
  # ldd complains unless libraries are executable
 
15371
  postinstall_cmds='chmod +x $lib'
 
15372
  ;;
 
15373
 
 
15374
sunos4*)
 
15375
  version_type=sunos
 
15376
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15377
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
15378
  shlibpath_var=LD_LIBRARY_PATH
 
15379
  shlibpath_overrides_runpath=yes
 
15380
  if test "$with_gnu_ld" = yes; then
 
15381
    need_lib_prefix=no
 
15382
  fi
 
15383
  need_version=yes
 
15384
  ;;
 
15385
 
 
15386
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
15387
  version_type=linux
 
15388
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15389
  soname_spec='${libname}${release}${shared_ext}$major'
 
15390
  shlibpath_var=LD_LIBRARY_PATH
 
15391
  case $host_vendor in
 
15392
    sni)
 
15393
      shlibpath_overrides_runpath=no
 
15394
      need_lib_prefix=no
 
15395
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
15396
      runpath_var=LD_RUN_PATH
 
15397
      ;;
 
15398
    siemens)
 
15399
      need_lib_prefix=no
 
15400
      ;;
 
15401
    motorola)
 
15402
      need_lib_prefix=no
 
15403
      need_version=no
 
15404
      shlibpath_overrides_runpath=no
 
15405
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
15406
      ;;
 
15407
  esac
 
15408
  ;;
 
15409
 
 
15410
sysv4*MP*)
 
15411
  if test -d /usr/nec ;then
 
15412
    version_type=linux
 
15413
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
15414
    soname_spec='$libname${shared_ext}.$major'
 
15415
    shlibpath_var=LD_LIBRARY_PATH
 
15416
  fi
 
15417
  ;;
 
15418
 
 
15419
uts4*)
 
15420
  version_type=linux
 
15421
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15422
  soname_spec='${libname}${release}${shared_ext}$major'
 
15423
  shlibpath_var=LD_LIBRARY_PATH
 
15424
  ;;
 
15425
 
 
15426
*)
 
15427
  dynamic_linker=no
 
15428
  ;;
 
15429
esac
 
15430
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
15431
echo "${ECHO_T}$dynamic_linker" >&6
 
15432
test "$dynamic_linker" = no && can_build_shared=no
 
15433
 
 
15434
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
15435
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
15436
hardcode_action_F77=
 
15437
if test -n "$hardcode_libdir_flag_spec_F77" || \
 
15438
   test -n "$runpath_var_F77" || \
 
15439
   test "X$hardcode_automatic_F77" = "Xyes" ; then
 
15440
 
 
15441
  # We can hardcode non-existant directories.
 
15442
  if test "$hardcode_direct_F77" != no &&
 
15443
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
15444
     # have to relink, otherwise we might link with an installed library
 
15445
     # when we should be linking with a yet-to-be-installed one
 
15446
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
 
15447
     test "$hardcode_minus_L_F77" != no; then
 
15448
    # Linking always hardcodes the temporary library directory.
 
15449
    hardcode_action_F77=relink
 
15450
  else
 
15451
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
15452
    hardcode_action_F77=immediate
 
15453
  fi
 
15454
else
 
15455
  # We cannot hardcode anything, or else we can only hardcode existing
 
15456
  # directories.
 
15457
  hardcode_action_F77=unsupported
 
15458
fi
 
15459
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
15460
echo "${ECHO_T}$hardcode_action_F77" >&6
 
15461
 
 
15462
if test "$hardcode_action_F77" = relink; then
 
15463
  # Fast installation is not supported
 
15464
  enable_fast_install=no
 
15465
elif test "$shlibpath_overrides_runpath" = yes ||
 
15466
     test "$enable_shared" = no; then
 
15467
  # Fast installation is not necessary
 
15468
  enable_fast_install=needless
 
15469
fi
 
15470
 
 
15471
striplib=
 
15472
old_striplib=
 
15473
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
15474
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
15475
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
15476
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
15477
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
15478
  echo "$as_me:$LINENO: result: yes" >&5
 
15479
echo "${ECHO_T}yes" >&6
 
15480
else
 
15481
# FIXME - insert some real tests, host_os isn't really good enough
 
15482
  case $host_os in
 
15483
   darwin*)
 
15484
       if test -n "$STRIP" ; then
 
15485
         striplib="$STRIP -x"
 
15486
         echo "$as_me:$LINENO: result: yes" >&5
 
15487
echo "${ECHO_T}yes" >&6
 
15488
       else
 
15489
  echo "$as_me:$LINENO: result: no" >&5
 
15490
echo "${ECHO_T}no" >&6
 
15491
fi
 
15492
       ;;
 
15493
   *)
 
15494
  echo "$as_me:$LINENO: result: no" >&5
 
15495
echo "${ECHO_T}no" >&6
 
15496
    ;;
 
15497
  esac
 
15498
fi
 
15499
 
 
15500
 
 
15501
 
 
15502
# The else clause should only fire when bootstrapping the
 
15503
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
15504
# with your package, and you will get complaints that there are
 
15505
# no rules to generate ltmain.sh.
 
15506
if test -f "$ltmain"; then
 
15507
  # See if we are running on zsh, and set the options which allow our commands through
 
15508
  # without removal of \ escapes.
 
15509
  if test -n "${ZSH_VERSION+set}" ; then
 
15510
    setopt NO_GLOB_SUBST
 
15511
  fi
 
15512
  # Now quote all the things that may contain metacharacters while being
 
15513
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
15514
  # variables and quote the copies for generation of the libtool script.
 
15515
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
15516
    SED SHELL STRIP \
 
15517
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
15518
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
15519
    deplibs_check_method reload_flag reload_cmds need_locks \
 
15520
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
15521
    lt_cv_sys_global_symbol_to_c_name_address \
 
15522
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
15523
    old_postinstall_cmds old_postuninstall_cmds \
 
15524
    compiler_F77 \
 
15525
    CC_F77 \
 
15526
    LD_F77 \
 
15527
    lt_prog_compiler_wl_F77 \
 
15528
    lt_prog_compiler_pic_F77 \
 
15529
    lt_prog_compiler_static_F77 \
 
15530
    lt_prog_compiler_no_builtin_flag_F77 \
 
15531
    export_dynamic_flag_spec_F77 \
 
15532
    thread_safe_flag_spec_F77 \
 
15533
    whole_archive_flag_spec_F77 \
 
15534
    enable_shared_with_static_runtimes_F77 \
 
15535
    old_archive_cmds_F77 \
 
15536
    old_archive_from_new_cmds_F77 \
 
15537
    predep_objects_F77 \
 
15538
    postdep_objects_F77 \
 
15539
    predeps_F77 \
 
15540
    postdeps_F77 \
 
15541
    compiler_lib_search_path_F77 \
 
15542
    archive_cmds_F77 \
 
15543
    archive_expsym_cmds_F77 \
 
15544
    postinstall_cmds_F77 \
 
15545
    postuninstall_cmds_F77 \
 
15546
    old_archive_from_expsyms_cmds_F77 \
 
15547
    allow_undefined_flag_F77 \
 
15548
    no_undefined_flag_F77 \
 
15549
    export_symbols_cmds_F77 \
 
15550
    hardcode_libdir_flag_spec_F77 \
 
15551
    hardcode_libdir_flag_spec_ld_F77 \
 
15552
    hardcode_libdir_separator_F77 \
 
15553
    hardcode_automatic_F77 \
 
15554
    module_cmds_F77 \
 
15555
    module_expsym_cmds_F77 \
 
15556
    lt_cv_prog_compiler_c_o_F77 \
 
15557
    exclude_expsyms_F77 \
 
15558
    include_expsyms_F77; do
 
15559
 
 
15560
    case $var in
 
15561
    old_archive_cmds_F77 | \
 
15562
    old_archive_from_new_cmds_F77 | \
 
15563
    archive_cmds_F77 | \
 
15564
    archive_expsym_cmds_F77 | \
 
15565
    module_cmds_F77 | \
 
15566
    module_expsym_cmds_F77 | \
 
15567
    old_archive_from_expsyms_cmds_F77 | \
 
15568
    export_symbols_cmds_F77 | \
 
15569
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
15570
    postinstall_cmds | postuninstall_cmds | \
 
15571
    old_postinstall_cmds | old_postuninstall_cmds | \
 
15572
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
15573
      # Double-quote double-evaled strings.
 
15574
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
15575
      ;;
 
15576
    *)
 
15577
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
15578
      ;;
 
15579
    esac
 
15580
  done
 
15581
 
 
15582
  case $lt_echo in
 
15583
  *'\$0 --fallback-echo"')
 
15584
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
15585
    ;;
 
15586
  esac
 
15587
 
 
15588
cfgfile="$ofile"
 
15589
 
 
15590
  cat <<__EOF__ >> "$cfgfile"
 
15591
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
15592
 
 
15593
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
15594
 
 
15595
# Shell to use when invoking shell scripts.
 
15596
SHELL=$lt_SHELL
 
15597
 
 
15598
# Whether or not to build shared libraries.
 
15599
build_libtool_libs=$enable_shared
 
15600
 
 
15601
# Whether or not to build static libraries.
 
15602
build_old_libs=$enable_static
 
15603
 
 
15604
# Whether or not to add -lc for building shared libraries.
 
15605
build_libtool_need_lc=$archive_cmds_need_lc_F77
 
15606
 
 
15607
# Whether or not to disallow shared libs when runtime libs are static
 
15608
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
 
15609
 
 
15610
# Whether or not to optimize for fast installation.
 
15611
fast_install=$enable_fast_install
 
15612
 
 
15613
# The host system.
 
15614
host_alias=$host_alias
 
15615
host=$host
 
15616
host_os=$host_os
 
15617
 
 
15618
# The build system.
 
15619
build_alias=$build_alias
 
15620
build=$build
 
15621
build_os=$build_os
 
15622
 
 
15623
# An echo program that does not interpret backslashes.
 
15624
echo=$lt_echo
 
15625
 
 
15626
# The archiver.
 
15627
AR=$lt_AR
 
15628
AR_FLAGS=$lt_AR_FLAGS
 
15629
 
 
15630
# A C compiler.
 
15631
LTCC=$lt_LTCC
 
15632
 
 
15633
# A language-specific compiler.
 
15634
CC=$lt_compiler_F77
 
15635
 
 
15636
# Is the compiler the GNU C compiler?
 
15637
with_gcc=$GCC_F77
 
15638
 
 
15639
# An ERE matcher.
 
15640
EGREP=$lt_EGREP
 
15641
 
 
15642
# The linker used to build libraries.
 
15643
LD=$lt_LD_F77
 
15644
 
 
15645
# Whether we need hard or soft links.
 
15646
LN_S=$lt_LN_S
 
15647
 
 
15648
# A BSD-compatible nm program.
 
15649
NM=$lt_NM
 
15650
 
 
15651
# A symbol stripping program
 
15652
STRIP=$lt_STRIP
 
15653
 
 
15654
# Used to examine libraries when file_magic_cmd begins "file"
 
15655
MAGIC_CMD=$MAGIC_CMD
 
15656
 
 
15657
# Used on cygwin: DLL creation program.
 
15658
DLLTOOL="$DLLTOOL"
 
15659
 
 
15660
# Used on cygwin: object dumper.
 
15661
OBJDUMP="$OBJDUMP"
 
15662
 
 
15663
# Used on cygwin: assembler.
 
15664
AS="$AS"
 
15665
 
 
15666
# The name of the directory that contains temporary libtool files.
 
15667
objdir=$objdir
 
15668
 
 
15669
# How to create reloadable object files.
 
15670
reload_flag=$lt_reload_flag
 
15671
reload_cmds=$lt_reload_cmds
 
15672
 
 
15673
# How to pass a linker flag through the compiler.
 
15674
wl=$lt_lt_prog_compiler_wl_F77
 
15675
 
 
15676
# Object file suffix (normally "o").
 
15677
objext="$ac_objext"
 
15678
 
 
15679
# Old archive suffix (normally "a").
 
15680
libext="$libext"
 
15681
 
 
15682
# Shared library suffix (normally ".so").
 
15683
shrext_cmds='$shrext_cmds'
 
15684
 
 
15685
# Executable file suffix (normally "").
 
15686
exeext="$exeext"
 
15687
 
 
15688
# Additional compiler flags for building library objects.
 
15689
pic_flag=$lt_lt_prog_compiler_pic_F77
 
15690
pic_mode=$pic_mode
 
15691
 
 
15692
# What is the maximum length of a command?
 
15693
max_cmd_len=$lt_cv_sys_max_cmd_len
 
15694
 
 
15695
# Does compiler simultaneously support -c and -o options?
 
15696
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
 
15697
 
 
15698
# Must we lock files when doing compilation?
 
15699
need_locks=$lt_need_locks
 
15700
 
 
15701
# Do we need the lib prefix for modules?
 
15702
need_lib_prefix=$need_lib_prefix
 
15703
 
 
15704
# Do we need a version for libraries?
 
15705
need_version=$need_version
 
15706
 
 
15707
# Whether dlopen is supported.
 
15708
dlopen_support=$enable_dlopen
 
15709
 
 
15710
# Whether dlopen of programs is supported.
 
15711
dlopen_self=$enable_dlopen_self
 
15712
 
 
15713
# Whether dlopen of statically linked programs is supported.
 
15714
dlopen_self_static=$enable_dlopen_self_static
 
15715
 
 
15716
# Compiler flag to prevent dynamic linking.
 
15717
link_static_flag=$lt_lt_prog_compiler_static_F77
 
15718
 
 
15719
# Compiler flag to turn off builtin functions.
 
15720
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
 
15721
 
 
15722
# Compiler flag to allow reflexive dlopens.
 
15723
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
 
15724
 
 
15725
# Compiler flag to generate shared objects directly from archives.
 
15726
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
 
15727
 
 
15728
# Compiler flag to generate thread-safe objects.
 
15729
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
 
15730
 
 
15731
# Library versioning type.
 
15732
version_type=$version_type
 
15733
 
 
15734
# Format of library name prefix.
 
15735
libname_spec=$lt_libname_spec
 
15736
 
 
15737
# List of archive names.  First name is the real one, the rest are links.
 
15738
# The last name is the one that the linker finds with -lNAME.
 
15739
library_names_spec=$lt_library_names_spec
 
15740
 
 
15741
# The coded name of the library, if different from the real name.
 
15742
soname_spec=$lt_soname_spec
 
15743
 
 
15744
# Commands used to build and install an old-style archive.
 
15745
RANLIB=$lt_RANLIB
 
15746
old_archive_cmds=$lt_old_archive_cmds_F77
 
15747
old_postinstall_cmds=$lt_old_postinstall_cmds
 
15748
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
15749
 
 
15750
# Create an old-style archive from a shared archive.
 
15751
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
 
15752
 
 
15753
# Create a temporary old-style archive to link instead of a shared archive.
 
15754
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
 
15755
 
 
15756
# Commands used to build and install a shared archive.
 
15757
archive_cmds=$lt_archive_cmds_F77
 
15758
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
 
15759
postinstall_cmds=$lt_postinstall_cmds
 
15760
postuninstall_cmds=$lt_postuninstall_cmds
 
15761
 
 
15762
# Commands used to build a loadable module (assumed same as above if empty)
 
15763
module_cmds=$lt_module_cmds_F77
 
15764
module_expsym_cmds=$lt_module_expsym_cmds_F77
 
15765
 
 
15766
# Commands to strip libraries.
 
15767
old_striplib=$lt_old_striplib
 
15768
striplib=$lt_striplib
 
15769
 
 
15770
# Dependencies to place before the objects being linked to create a
 
15771
# shared library.
 
15772
predep_objects=$lt_predep_objects_F77
 
15773
 
 
15774
# Dependencies to place after the objects being linked to create a
 
15775
# shared library.
 
15776
postdep_objects=$lt_postdep_objects_F77
 
15777
 
 
15778
# Dependencies to place before the objects being linked to create a
 
15779
# shared library.
 
15780
predeps=$lt_predeps_F77
 
15781
 
 
15782
# Dependencies to place after the objects being linked to create a
 
15783
# shared library.
 
15784
postdeps=$lt_postdeps_F77
 
15785
 
 
15786
# The library search path used internally by the compiler when linking
 
15787
# a shared library.
 
15788
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
 
15789
 
 
15790
# Method to check whether dependent libraries are shared objects.
 
15791
deplibs_check_method=$lt_deplibs_check_method
 
15792
 
 
15793
# Command to use when deplibs_check_method == file_magic.
 
15794
file_magic_cmd=$lt_file_magic_cmd
 
15795
 
 
15796
# Flag that allows shared libraries with undefined symbols to be built.
 
15797
allow_undefined_flag=$lt_allow_undefined_flag_F77
 
15798
 
 
15799
# Flag that forces no undefined symbols.
 
15800
no_undefined_flag=$lt_no_undefined_flag_F77
 
15801
 
 
15802
# Commands used to finish a libtool library installation in a directory.
 
15803
finish_cmds=$lt_finish_cmds
 
15804
 
 
15805
# Same as above, but a single script fragment to be evaled but not shown.
 
15806
finish_eval=$lt_finish_eval
 
15807
 
 
15808
# Take the output of nm and produce a listing of raw symbols and C names.
 
15809
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
15810
 
 
15811
# Transform the output of nm in a proper C declaration
 
15812
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
15813
 
 
15814
# Transform the output of nm in a C name address pair
 
15815
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
15816
 
 
15817
# This is the shared library runtime path variable.
 
15818
runpath_var=$runpath_var
 
15819
 
 
15820
# This is the shared library path variable.
 
15821
shlibpath_var=$shlibpath_var
 
15822
 
 
15823
# Is shlibpath searched before the hard-coded library search path?
 
15824
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
15825
 
 
15826
# How to hardcode a shared library path into an executable.
 
15827
hardcode_action=$hardcode_action_F77
 
15828
 
 
15829
# Whether we should hardcode library paths into libraries.
 
15830
hardcode_into_libs=$hardcode_into_libs
 
15831
 
 
15832
# Flag to hardcode \$libdir into a binary during linking.
 
15833
# This must work even if \$libdir does not exist.
 
15834
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
 
15835
 
 
15836
# If ld is used when linking, flag to hardcode \$libdir into
 
15837
# a binary during linking. This must work even if \$libdir does
 
15838
# not exist.
 
15839
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
 
15840
 
 
15841
# Whether we need a single -rpath flag with a separated argument.
 
15842
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
 
15843
 
 
15844
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
15845
# resulting binary.
 
15846
hardcode_direct=$hardcode_direct_F77
 
15847
 
 
15848
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
15849
# resulting binary.
 
15850
hardcode_minus_L=$hardcode_minus_L_F77
 
15851
 
 
15852
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
15853
# the resulting binary.
 
15854
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
 
15855
 
 
15856
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
15857
# and all subsequent libraries and executables linked against it.
 
15858
hardcode_automatic=$hardcode_automatic_F77
 
15859
 
 
15860
# Variables whose values should be saved in libtool wrapper scripts and
 
15861
# restored at relink time.
 
15862
variables_saved_for_relink="$variables_saved_for_relink"
 
15863
 
 
15864
# Whether libtool must link a program against all its dependency libraries.
 
15865
link_all_deplibs=$link_all_deplibs_F77
 
15866
 
 
15867
# Compile-time system search path for libraries
 
15868
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
15869
 
 
15870
# Run-time system search path for libraries
 
15871
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
15872
 
 
15873
# Fix the shell variable \$srcfile for the compiler.
 
15874
fix_srcfile_path="$fix_srcfile_path_F77"
 
15875
 
 
15876
# Set to yes if exported symbols are required.
 
15877
always_export_symbols=$always_export_symbols_F77
 
15878
 
 
15879
# The commands to list exported symbols.
 
15880
export_symbols_cmds=$lt_export_symbols_cmds_F77
 
15881
 
 
15882
# The commands to extract the exported symbol list from a shared archive.
 
15883
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
15884
 
 
15885
# Symbols that should not be listed in the preloaded symbols.
 
15886
exclude_expsyms=$lt_exclude_expsyms_F77
 
15887
 
 
15888
# Symbols that must always be exported.
 
15889
include_expsyms=$lt_include_expsyms_F77
 
15890
 
 
15891
# ### END LIBTOOL TAG CONFIG: $tagname
 
15892
 
 
15893
__EOF__
 
15894
 
 
15895
 
 
15896
else
 
15897
  # If there is no Makefile yet, we rely on a make rule to execute
 
15898
  # `config.status --recheck' to rerun these tests and create the
 
15899
  # libtool script then.
 
15900
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
15901
  if test -f "$ltmain_in"; then
 
15902
    test -f Makefile && make "$ltmain"
 
15903
  fi
 
15904
fi
 
15905
 
 
15906
 
 
15907
ac_ext=c
 
15908
ac_cpp='$CPP $CPPFLAGS'
 
15909
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
15910
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15911
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
15912
 
 
15913
CC="$lt_save_CC"
 
15914
 
 
15915
        else
 
15916
          tagname=""
 
15917
        fi
 
15918
        ;;
 
15919
 
 
15920
      GCJ)
 
15921
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
15922
          
 
15923
 
 
15924
 
 
15925
# Source file extension for Java test sources.
 
15926
ac_ext=java
 
15927
 
 
15928
# Object file extension for compiled Java test sources.
 
15929
objext=o
 
15930
objext_GCJ=$objext
 
15931
 
 
15932
# Code to be used in simple compile tests
 
15933
lt_simple_compile_test_code="class foo {}\n"
 
15934
 
 
15935
# Code to be used in simple link tests
 
15936
lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
 
15937
 
 
15938
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
15939
 
 
15940
# If no C compiler was specified, use CC.
 
15941
LTCC=${LTCC-"$CC"}
 
15942
 
 
15943
# Allow CC to be a program name with arguments.
 
15944
compiler=$CC
 
15945
 
 
15946
 
 
15947
# save warnings/boilerplate of simple test code
 
15948
ac_outfile=conftest.$ac_objext
 
15949
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
15950
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
15951
_lt_compiler_boilerplate=`cat conftest.err`
 
15952
$rm conftest*
 
15953
 
 
15954
ac_outfile=conftest.$ac_objext
 
15955
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
15956
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
15957
_lt_linker_boilerplate=`cat conftest.err`
 
15958
$rm conftest*
 
15959
 
 
15960
 
 
15961
# Allow CC to be a program name with arguments.
 
15962
lt_save_CC="$CC"
 
15963
CC=${GCJ-"gcj"}
 
15964
compiler=$CC
 
15965
compiler_GCJ=$CC
 
15966
for cc_temp in $compiler""; do
 
15967
  case $cc_temp in
 
15968
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
15969
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
15970
    \-*) ;;
 
15971
    *) break;;
 
15972
  esac
 
15973
done
 
15974
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
15975
 
 
15976
 
 
15977
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
15978
archive_cmds_need_lc_GCJ=no
 
15979
 
 
15980
old_archive_cmds_GCJ=$old_archive_cmds
 
15981
 
 
15982
 
 
15983
lt_prog_compiler_no_builtin_flag_GCJ=
 
15984
 
 
15985
if test "$GCC" = yes; then
 
15986
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
 
15987
 
 
15988
  
 
15989
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
15990
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
15991
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
15992
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15993
else
 
15994
  lt_cv_prog_compiler_rtti_exceptions=no
 
15995
  ac_outfile=conftest.$ac_objext
 
15996
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15997
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
15998
   # Insert the option either (1) after the last *FLAGS variable, or
 
15999
   # (2) before a word containing "conftest.", or (3) at the end.
 
16000
   # Note that $ac_compile itself does not contain backslashes and begins
 
16001
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16002
   # The option is referenced via a variable to avoid confusing sed.
 
16003
   lt_compile=`echo "$ac_compile" | $SED \
 
16004
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
16005
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16006
   -e 's:$: $lt_compiler_flag:'`
 
16007
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 
16008
   (eval "$lt_compile" 2>conftest.err)
 
16009
   ac_status=$?
 
16010
   cat conftest.err >&5
 
16011
   echo "$as_me:__oline__: \$? = $ac_status" >&5
 
16012
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
16013
     # The compiler can only warn and ignore the option if not recognized
 
16014
     # So say no if there are warnings other than the usual output.
 
16015
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
16016
     $SED '/^$/d' conftest.err >conftest.er2
 
16017
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
 
16018
       lt_cv_prog_compiler_rtti_exceptions=yes
 
16019
     fi
 
16020
   fi
 
16021
   $rm conftest*
 
16022
 
 
16023
fi
 
16024
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
16025
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
16026
 
 
16027
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
16028
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
 
16029
else
 
16030
    :
 
16031
fi
 
16032
 
 
16033
fi
 
16034
 
 
16035
lt_prog_compiler_wl_GCJ=
 
16036
lt_prog_compiler_pic_GCJ=
 
16037
lt_prog_compiler_static_GCJ=
 
16038
 
 
16039
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
16040
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
16041
 
 
16042
  if test "$GCC" = yes; then
 
16043
    lt_prog_compiler_wl_GCJ='-Wl,'
 
16044
    lt_prog_compiler_static_GCJ='-static'
 
16045
 
 
16046
    case $host_os in
 
16047
      aix*)
 
16048
      # All AIX code is PIC.
 
16049
      if test "$host_cpu" = ia64; then
 
16050
        # AIX 5 now supports IA64 processor
 
16051
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16052
      fi
 
16053
      ;;
 
16054
 
 
16055
    amigaos*)
 
16056
      # FIXME: we need at least 68020 code to build shared libraries, but
 
16057
      # adding the `-m68020' flag to GCC prevents building anything better,
 
16058
      # like `-m68040'.
 
16059
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
 
16060
      ;;
 
16061
 
 
16062
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
16063
      # PIC is the default for these OSes.
 
16064
      ;;
 
16065
 
 
16066
    mingw* | pw32* | os2*)
 
16067
      # This hack is so that the source file can tell whether it is being
 
16068
      # built for inclusion in a dll (and should export symbols for example).
 
16069
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
16070
      ;;
 
16071
 
 
16072
    darwin* | rhapsody*)
 
16073
      # PIC is the default on this platform
 
16074
      # Common symbols not allowed in MH_DYLIB files
 
16075
      lt_prog_compiler_pic_GCJ='-fno-common'
 
16076
      ;;
 
16077
 
 
16078
    msdosdjgpp*)
 
16079
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
16080
      # on systems that don't support them.
 
16081
      lt_prog_compiler_can_build_shared_GCJ=no
 
16082
      enable_shared=no
 
16083
      ;;
 
16084
 
 
16085
    sysv4*MP*)
 
16086
      if test -d /usr/nec; then
 
16087
        lt_prog_compiler_pic_GCJ=-Kconform_pic
 
16088
      fi
 
16089
      ;;
 
16090
 
 
16091
    hpux*)
 
16092
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
16093
      # not for PA HP-UX.
 
16094
      case $host_cpu in
 
16095
      hppa*64*|ia64*)
 
16096
        # +Z the default
 
16097
        ;;
 
16098
      *)
 
16099
        lt_prog_compiler_pic_GCJ='-fPIC'
 
16100
        ;;
 
16101
      esac
 
16102
      ;;
 
16103
 
 
16104
    *)
 
16105
      lt_prog_compiler_pic_GCJ='-fPIC'
 
16106
      ;;
 
16107
    esac
 
16108
  else
 
16109
    # PORTME Check for flag to pass linker flags through the system compiler.
 
16110
    case $host_os in
 
16111
    aix*)
 
16112
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16113
      if test "$host_cpu" = ia64; then
 
16114
        # AIX 5 now supports IA64 processor
 
16115
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16116
      else
 
16117
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
 
16118
      fi
 
16119
      ;;
 
16120
      darwin*)
 
16121
        # PIC is the default on this platform
 
16122
        # Common symbols not allowed in MH_DYLIB files
 
16123
       case $cc_basename in
 
16124
         xlc*)
 
16125
         lt_prog_compiler_pic_GCJ='-qnocommon'
 
16126
         lt_prog_compiler_wl_GCJ='-Wl,'
 
16127
         ;;
 
16128
       esac
 
16129
       ;;
 
16130
 
 
16131
    mingw* | pw32* | os2*)
 
16132
      # This hack is so that the source file can tell whether it is being
 
16133
      # built for inclusion in a dll (and should export symbols for example).
 
16134
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
16135
      ;;
 
16136
 
 
16137
    hpux9* | hpux10* | hpux11*)
 
16138
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16139
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
16140
      # not for PA HP-UX.
 
16141
      case $host_cpu in
 
16142
      hppa*64*|ia64*)
 
16143
        # +Z the default
 
16144
        ;;
 
16145
      *)
 
16146
        lt_prog_compiler_pic_GCJ='+Z'
 
16147
        ;;
 
16148
      esac
 
16149
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
16150
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
 
16151
      ;;
 
16152
 
 
16153
    irix5* | irix6* | nonstopux*)
 
16154
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16155
      # PIC (with -KPIC) is the default.
 
16156
      lt_prog_compiler_static_GCJ='-non_shared'
 
16157
      ;;
 
16158
 
 
16159
    newsos6)
 
16160
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16161
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16162
      ;;
 
16163
 
 
16164
    linux*)
 
16165
      case $cc_basename in
 
16166
      icc* | ecc*)
 
16167
        lt_prog_compiler_wl_GCJ='-Wl,'
 
16168
        lt_prog_compiler_pic_GCJ='-KPIC'
 
16169
        lt_prog_compiler_static_GCJ='-static'
 
16170
        ;;
 
16171
      pgcc* | pgf77* | pgf90* | pgf95*)
 
16172
        # Portland Group compilers (*not* the Pentium gcc compiler,
 
16173
        # which looks to be a dead project)
 
16174
        lt_prog_compiler_wl_GCJ='-Wl,'
 
16175
        lt_prog_compiler_pic_GCJ='-fpic'
 
16176
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16177
        ;;
 
16178
      ccc*)
 
16179
        lt_prog_compiler_wl_GCJ='-Wl,'
 
16180
        # All Alpha code is PIC.
 
16181
        lt_prog_compiler_static_GCJ='-non_shared'
 
16182
        ;;
 
16183
      esac
 
16184
      ;;
 
16185
 
 
16186
    osf3* | osf4* | osf5*)
 
16187
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16188
      # All OSF/1 code is PIC.
 
16189
      lt_prog_compiler_static_GCJ='-non_shared'
 
16190
      ;;
 
16191
 
 
16192
    sco3.2v5*)
 
16193
      lt_prog_compiler_pic_GCJ='-Kpic'
 
16194
      lt_prog_compiler_static_GCJ='-dn'
 
16195
      ;;
 
16196
 
 
16197
    solaris*)
 
16198
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16199
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16200
      case $cc_basename in
 
16201
      f77* | f90* | f95*)
 
16202
        lt_prog_compiler_wl_GCJ='-Qoption ld ';;
 
16203
      *)
 
16204
        lt_prog_compiler_wl_GCJ='-Wl,';;
 
16205
      esac
 
16206
      ;;
 
16207
 
 
16208
    sunos4*)
 
16209
      lt_prog_compiler_wl_GCJ='-Qoption ld '
 
16210
      lt_prog_compiler_pic_GCJ='-PIC'
 
16211
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16212
      ;;
 
16213
 
 
16214
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
16215
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16216
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16217
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16218
      ;;
 
16219
 
 
16220
    sysv4*MP*)
 
16221
      if test -d /usr/nec ;then
 
16222
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
 
16223
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16224
      fi
 
16225
      ;;
 
16226
 
 
16227
    unicos*)
 
16228
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16229
      lt_prog_compiler_can_build_shared_GCJ=no
 
16230
      ;;
 
16231
 
 
16232
    uts4*)
 
16233
      lt_prog_compiler_pic_GCJ='-pic'
 
16234
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16235
      ;;
 
16236
 
 
16237
    *)
 
16238
      lt_prog_compiler_can_build_shared_GCJ=no
 
16239
      ;;
 
16240
    esac
 
16241
  fi
 
16242
 
 
16243
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
16244
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
 
16245
 
 
16246
#
 
16247
# Check to make sure the PIC flag actually works.
 
16248
#
 
16249
if test -n "$lt_prog_compiler_pic_GCJ"; then
 
16250
  
 
16251
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
16252
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
 
16253
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
 
16254
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16255
else
 
16256
  lt_prog_compiler_pic_works_GCJ=no
 
16257
  ac_outfile=conftest.$ac_objext
 
16258
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16259
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
 
16260
   # Insert the option either (1) after the last *FLAGS variable, or
 
16261
   # (2) before a word containing "conftest.", or (3) at the end.
 
16262
   # Note that $ac_compile itself does not contain backslashes and begins
 
16263
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16264
   # The option is referenced via a variable to avoid confusing sed.
 
16265
   lt_compile=`echo "$ac_compile" | $SED \
 
16266
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
16267
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16268
   -e 's:$: $lt_compiler_flag:'`
 
16269
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 
16270
   (eval "$lt_compile" 2>conftest.err)
 
16271
   ac_status=$?
 
16272
   cat conftest.err >&5
 
16273
   echo "$as_me:__oline__: \$? = $ac_status" >&5
 
16274
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
16275
     # The compiler can only warn and ignore the option if not recognized
 
16276
     # So say no if there are warnings other than the usual output.
 
16277
     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
 
16278
     $SED '/^$/d' conftest.err >conftest.er2
 
16279
     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
 
16280
       lt_prog_compiler_pic_works_GCJ=yes
 
16281
     fi
 
16282
   fi
 
16283
   $rm conftest*
 
16284
 
 
16285
fi
 
16286
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
 
16287
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
 
16288
 
 
16289
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
 
16290
    case $lt_prog_compiler_pic_GCJ in
 
16291
     "" | " "*) ;;
 
16292
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
 
16293
     esac
 
16294
else
 
16295
    lt_prog_compiler_pic_GCJ=
 
16296
     lt_prog_compiler_can_build_shared_GCJ=no
 
16297
fi
 
16298
 
 
16299
fi
 
16300
case $host_os in
 
16301
  # For platforms which do not support PIC, -DPIC is meaningless:
 
16302
  *djgpp*)
 
16303
    lt_prog_compiler_pic_GCJ=
 
16304
    ;;
 
16305
  *)
 
16306
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
 
16307
    ;;
 
16308
esac
 
16309
 
 
16310
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
16311
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
16312
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
 
16313
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16314
else
 
16315
  lt_cv_prog_compiler_c_o_GCJ=no
 
16316
   $rm -r conftest 2>/dev/null
 
16317
   mkdir conftest
 
16318
   cd conftest
 
16319
   mkdir out
 
16320
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16321
 
 
16322
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
16323
   # Insert the option either (1) after the last *FLAGS variable, or
 
16324
   # (2) before a word containing "conftest.", or (3) at the end.
 
16325
   # Note that $ac_compile itself does not contain backslashes and begins
 
16326
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16327
   lt_compile=`echo "$ac_compile" | $SED \
 
16328
   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
 
16329
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16330
   -e 's:$: $lt_compiler_flag:'`
 
16331
   (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 
16332
   (eval "$lt_compile" 2>out/conftest.err)
 
16333
   ac_status=$?
 
16334
   cat out/conftest.err >&5
 
16335
   echo "$as_me:__oline__: \$? = $ac_status" >&5
 
16336
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
16337
   then
 
16338
     # The compiler can only warn and ignore the option if not recognized
 
16339
     # So say no if there are warnings
 
16340
     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
 
16341
     $SED '/^$/d' out/conftest.err >out/conftest.er2
 
16342
     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
 
16343
       lt_cv_prog_compiler_c_o_GCJ=yes
 
16344
     fi
 
16345
   fi
 
16346
   chmod u+w . 2>&5
 
16347
   $rm conftest*
 
16348
   # SGI C++ compiler will create directory out/ii_files/ for
 
16349
   # template instantiation
 
16350
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
16351
   $rm out/* && rmdir out
 
16352
   cd ..
 
16353
   rmdir conftest
 
16354
   $rm conftest*
 
16355
 
 
16356
fi
 
16357
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
16358
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
 
16359
 
 
16360
 
 
16361
hard_links="nottested"
 
16362
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
 
16363
  # do not overwrite the value of need_locks provided by the user
 
16364
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
16365
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
16366
  hard_links=yes
 
16367
  $rm conftest*
 
16368
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
16369
  touch conftest.a
 
16370
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
16371
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
16372
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
16373
echo "${ECHO_T}$hard_links" >&6
 
16374
  if test "$hard_links" = no; then
 
16375
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
16376
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
16377
    need_locks=warn
 
16378
  fi
 
16379
else
 
16380
  need_locks=no
 
16381
fi
 
16382
 
 
16383
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
16384
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
16385
 
 
16386
  runpath_var=
 
16387
  allow_undefined_flag_GCJ=
 
16388
  enable_shared_with_static_runtimes_GCJ=no
 
16389
  archive_cmds_GCJ=
 
16390
  archive_expsym_cmds_GCJ=
 
16391
  old_archive_From_new_cmds_GCJ=
 
16392
  old_archive_from_expsyms_cmds_GCJ=
 
16393
  export_dynamic_flag_spec_GCJ=
 
16394
  whole_archive_flag_spec_GCJ=
 
16395
  thread_safe_flag_spec_GCJ=
 
16396
  hardcode_libdir_flag_spec_GCJ=
 
16397
  hardcode_libdir_flag_spec_ld_GCJ=
 
16398
  hardcode_libdir_separator_GCJ=
 
16399
  hardcode_direct_GCJ=no
 
16400
  hardcode_minus_L_GCJ=no
 
16401
  hardcode_shlibpath_var_GCJ=unsupported
 
16402
  link_all_deplibs_GCJ=unknown
 
16403
  hardcode_automatic_GCJ=no
 
16404
  module_cmds_GCJ=
 
16405
  module_expsym_cmds_GCJ=
 
16406
  always_export_symbols_GCJ=no
 
16407
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
16408
  # include_expsyms should be a list of space-separated symbols to be *always*
 
16409
  # included in the symbol list
 
16410
  include_expsyms_GCJ=
 
16411
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
16412
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
16413
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
16414
  # as well as any symbol that contains `d'.
 
16415
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
 
16416
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
16417
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
16418
  # the symbol is explicitly referenced.  Since portable code cannot
 
16419
  # rely on this symbol name, it's probably fine to never include it in
 
16420
  # preloaded symbol tables.
 
16421
  extract_expsyms_cmds=
 
16422
  # Just being paranoid about ensuring that cc_basename is set.
 
16423
  for cc_temp in $compiler""; do
 
16424
  case $cc_temp in
 
16425
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
16426
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
16427
    \-*) ;;
 
16428
    *) break;;
 
16429
  esac
 
16430
done
 
16431
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
16432
 
 
16433
  case $host_os in
 
16434
  cygwin* | mingw* | pw32*)
 
16435
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
16436
    # When not using gcc, we currently assume that we are using
 
16437
    # Microsoft Visual C++.
 
16438
    if test "$GCC" != yes; then
 
16439
      with_gnu_ld=no
 
16440
    fi
 
16441
    ;;
 
16442
  openbsd*)
 
16443
    with_gnu_ld=no
 
16444
    ;;
 
16445
  esac
 
16446
 
 
16447
  ld_shlibs_GCJ=yes
 
16448
  if test "$with_gnu_ld" = yes; then
 
16449
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
16450
    wlarc='${wl}'
 
16451
 
 
16452
    # Set some defaults for GNU ld with shared library support. These
 
16453
    # are reset later if shared libraries are not supported. Putting them
 
16454
    # here allows them to be overridden if necessary.
 
16455
    runpath_var=LD_RUN_PATH
 
16456
    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
16457
    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
16458
    # ancient GNU ld didn't support --whole-archive et. al.
 
16459
    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
16460
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
16461
      else
 
16462
        whole_archive_flag_spec_GCJ=
 
16463
    fi
 
16464
    supports_anon_versioning=no
 
16465
    case `$LD -v 2>/dev/null` in
 
16466
      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
16467
      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
16468
      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
16469
      *\ 2.11.*) ;; # other 2.11 versions
 
16470
      *) supports_anon_versioning=yes ;;
 
16471
    esac
 
16472
 
 
16473
    # See if GNU ld supports shared libraries.
 
16474
    case $host_os in
 
16475
    aix3* | aix4* | aix5*)
 
16476
      # On AIX/PPC, the GNU linker is very broken
 
16477
      if test "$host_cpu" != ia64; then
 
16478
        ld_shlibs_GCJ=no
 
16479
        cat <<EOF 1>&2
 
16480
 
 
16481
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
16482
*** to be unable to reliably create shared libraries on AIX.
 
16483
*** Therefore, libtool is disabling shared libraries support.  If you
 
16484
*** really care for shared libraries, you may want to modify your PATH
 
16485
*** so that a non-GNU linker is found, and then restart.
 
16486
 
 
16487
EOF
 
16488
      fi
 
16489
      ;;
 
16490
 
 
16491
    amigaos*)
 
16492
      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)'
 
16493
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16494
      hardcode_minus_L_GCJ=yes
 
16495
 
 
16496
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
16497
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
16498
      # to version 4, is to share data among multiple programs linked
 
16499
      # with the same dynamic library.  Since this doesn't match the
 
16500
      # behavior of shared libraries on other platforms, we can't use
 
16501
      # them.
 
16502
      ld_shlibs_GCJ=no
 
16503
      ;;
 
16504
 
 
16505
    beos*)
 
16506
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16507
        allow_undefined_flag_GCJ=unsupported
 
16508
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
16509
        # support --undefined.  This deserves some investigation.  FIXME
 
16510
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16511
      else
 
16512
        ld_shlibs_GCJ=no
 
16513
      fi
 
16514
      ;;
 
16515
 
 
16516
    cygwin* | mingw* | pw32*)
 
16517
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
 
16518
      # as there is no search path for DLLs.
 
16519
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16520
      allow_undefined_flag_GCJ=unsupported
 
16521
      always_export_symbols_GCJ=no
 
16522
      enable_shared_with_static_runtimes_GCJ=yes
 
16523
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
16524
 
 
16525
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
16526
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
16527
        # If the export-symbols file already is a .def file (1st line
 
16528
        # is EXPORTS), use it as is; otherwise, prepend...
 
16529
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
16530
          cp $export_symbols $output_objdir/$soname.def;
 
16531
        else
 
16532
          echo EXPORTS > $output_objdir/$soname.def;
 
16533
          cat $export_symbols >> $output_objdir/$soname.def;
 
16534
        fi~
 
16535
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
16536
      else
 
16537
        ld_shlibs_GCJ=no
 
16538
      fi
 
16539
      ;;
 
16540
 
 
16541
    linux*)
 
16542
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16543
        tmp_addflag=
 
16544
        case $cc_basename,$host_cpu in
 
16545
        pgcc*)                          # Portland Group C compiler
 
16546
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
16547
          tmp_addflag=' $pic_flag'
 
16548
          ;;
 
16549
        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
 
16550
          whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
 
16551
          tmp_addflag=' $pic_flag -Mnomain' ;;
 
16552
        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
 
16553
          tmp_addflag=' -i_dynamic' ;;
 
16554
        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
 
16555
          tmp_addflag=' -i_dynamic -nofor_main' ;;
 
16556
        ifc* | ifort*)                  # Intel Fortran compiler
 
16557
          tmp_addflag=' -nofor_main' ;;
 
16558
        esac
 
16559
        archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16560
 
 
16561
        if test $supports_anon_versioning = yes; then
 
16562
          archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
16563
  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
16564
  $echo "local: *; };" >> $output_objdir/$libname.ver~
 
16565
          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
16566
        fi
 
16567
        link_all_deplibs_GCJ=no
 
16568
      else
 
16569
        ld_shlibs_GCJ=no
 
16570
      fi
 
16571
      ;;
 
16572
 
 
16573
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
16574
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16575
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
16576
        wlarc=
 
16577
      else
 
16578
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16579
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16580
      fi
 
16581
      ;;
 
16582
 
 
16583
    solaris* | sysv5*)
 
16584
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
16585
        ld_shlibs_GCJ=no
 
16586
        cat <<EOF 1>&2
 
16587
 
 
16588
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
16589
*** create shared libraries on Solaris systems.  Therefore, libtool
 
16590
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
16591
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
16592
*** your PATH or compiler configuration so that the native linker is
 
16593
*** used, and then restart.
 
16594
 
 
16595
EOF
 
16596
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16597
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16598
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16599
      else
 
16600
        ld_shlibs_GCJ=no
 
16601
      fi
 
16602
      ;;
 
16603
 
 
16604
    sunos4*)
 
16605
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16606
      wlarc=
 
16607
      hardcode_direct_GCJ=yes
 
16608
      hardcode_shlibpath_var_GCJ=no
 
16609
      ;;
 
16610
 
 
16611
    *)
 
16612
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16613
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16614
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16615
      else
 
16616
        ld_shlibs_GCJ=no
 
16617
      fi
 
16618
      ;;
 
16619
    esac
 
16620
 
 
16621
    if test "$ld_shlibs_GCJ" = no; then
 
16622
      runpath_var=
 
16623
      hardcode_libdir_flag_spec_GCJ=
 
16624
      export_dynamic_flag_spec_GCJ=
 
16625
      whole_archive_flag_spec_GCJ=
 
16626
    fi
 
16627
  else
 
16628
    # PORTME fill in a description of your system's linker (not GNU ld)
 
16629
    case $host_os in
 
16630
    aix3*)
 
16631
      allow_undefined_flag_GCJ=unsupported
 
16632
      always_export_symbols_GCJ=yes
 
16633
      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'
 
16634
      # Note: this linker hardcodes the directories in LIBPATH if there
 
16635
      # are no directories specified by -L.
 
16636
      hardcode_minus_L_GCJ=yes
 
16637
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
16638
        # Neither direct hardcoding nor static linking is supported with a
 
16639
        # broken collect2.
 
16640
        hardcode_direct_GCJ=unsupported
 
16641
      fi
 
16642
      ;;
 
16643
 
 
16644
    aix4* | aix5*)
 
16645
      if test "$host_cpu" = ia64; then
 
16646
        # On IA64, the linker does run time linking by default, so we don't
 
16647
        # have to do anything special.
 
16648
        aix_use_runtimelinking=no
 
16649
        exp_sym_flag='-Bexport'
 
16650
        no_entry_flag=""
 
16651
      else
 
16652
        # If we're using GNU nm, then we don't want the "-C" option.
 
16653
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
16654
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
16655
          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'
 
16656
        else
 
16657
          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'
 
16658
        fi
 
16659
        aix_use_runtimelinking=no
 
16660
 
 
16661
        # Test if we are trying to use run time linking or normal
 
16662
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
16663
        # need to do runtime linking.
 
16664
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
16665
          for ld_flag in $LDFLAGS; do
 
16666
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
16667
            aix_use_runtimelinking=yes
 
16668
            break
 
16669
          fi
 
16670
          done
 
16671
        esac
 
16672
 
 
16673
        exp_sym_flag='-bexport'
 
16674
        no_entry_flag='-bnoentry'
 
16675
      fi
 
16676
 
 
16677
      # When large executables or shared objects are built, AIX ld can
 
16678
      # have problems creating the table of contents.  If linking a library
 
16679
      # or program results in "error TOC overflow" add -mminimal-toc to
 
16680
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
16681
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
16682
 
 
16683
      archive_cmds_GCJ=''
 
16684
      hardcode_direct_GCJ=yes
 
16685
      hardcode_libdir_separator_GCJ=':'
 
16686
      link_all_deplibs_GCJ=yes
 
16687
 
 
16688
      if test "$GCC" = yes; then
 
16689
        case $host_os in aix4.[012]|aix4.[012].*)
 
16690
        # We only want to do this on AIX 4.2 and lower, the check
 
16691
        # below for broken collect2 doesn't work under 4.3+
 
16692
          collect2name=`${CC} -print-prog-name=collect2`
 
16693
          if test -f "$collect2name" && \
 
16694
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
16695
          then
 
16696
          # We have reworked collect2
 
16697
          hardcode_direct_GCJ=yes
 
16698
          else
 
16699
          # We have old collect2
 
16700
          hardcode_direct_GCJ=unsupported
 
16701
          # It fails to find uninstalled libraries when the uninstalled
 
16702
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
16703
          # to unsupported forces relinking
 
16704
          hardcode_minus_L_GCJ=yes
 
16705
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16706
          hardcode_libdir_separator_GCJ=
 
16707
          fi
 
16708
        esac
 
16709
        shared_flag='-shared'
 
16710
        if test "$aix_use_runtimelinking" = yes; then
 
16711
          shared_flag="$shared_flag "'${wl}-G'
 
16712
        fi
 
16713
      else
 
16714
        # not using gcc
 
16715
        if test "$host_cpu" = ia64; then
 
16716
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
16717
        # chokes on -Wl,-G. The following line is correct:
 
16718
          shared_flag='-G'
 
16719
        else
 
16720
        if test "$aix_use_runtimelinking" = yes; then
 
16721
            shared_flag='${wl}-G'
 
16722
          else
 
16723
            shared_flag='${wl}-bM:SRE'
 
16724
        fi
 
16725
        fi
 
16726
      fi
 
16727
 
 
16728
      # It seems that -bexpall does not export symbols beginning with
 
16729
      # underscore (_), so it is better to generate a list of symbols to export.
 
16730
      always_export_symbols_GCJ=yes
 
16731
      if test "$aix_use_runtimelinking" = yes; then
 
16732
        # Warning - without using the other runtime loading flags (-brtl),
 
16733
        # -berok will link without error, but may produce a broken library.
 
16734
        allow_undefined_flag_GCJ='-berok'
 
16735
       # Determine the default libpath from the value encoded in an empty executable.
 
16736
       cat >conftest.$ac_ext <<_ACEOF
 
16737
/* confdefs.h.  */
 
16738
_ACEOF
 
16739
cat confdefs.h >>conftest.$ac_ext
 
16740
cat >>conftest.$ac_ext <<_ACEOF
 
16741
/* end confdefs.h.  */
 
16742
 
 
16743
int
 
16744
main ()
 
16745
{
 
16746
 
 
16747
  ;
 
16748
  return 0;
 
16749
}
 
16750
_ACEOF
 
16751
rm -f conftest.$ac_objext conftest$ac_exeext
 
16752
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16753
  (eval $ac_link) 2>conftest.er1
 
16754
  ac_status=$?
 
16755
  grep -v '^ *+' conftest.er1 >conftest.err
 
16756
  rm -f conftest.er1
 
16757
  cat conftest.err >&5
 
16758
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16759
  (exit $ac_status); } &&
 
16760
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
16761
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16762
  (eval $ac_try) 2>&5
 
16763
  ac_status=$?
 
16764
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16765
  (exit $ac_status); }; } &&
 
16766
         { ac_try='test -s conftest$ac_exeext'
 
16767
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16768
  (eval $ac_try) 2>&5
 
16769
  ac_status=$?
 
16770
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16771
  (exit $ac_status); }; }; then
 
16772
  
 
16773
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
16774
}'`
 
16775
# Check for a 64-bit object if we didn't find anything.
 
16776
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; }
 
16777
}'`; fi
 
16778
else
 
16779
  echo "$as_me: failed program was:" >&5
 
16780
sed 's/^/| /' conftest.$ac_ext >&5
 
16781
 
 
16782
fi
 
16783
rm -f conftest.err conftest.$ac_objext \
 
16784
      conftest$ac_exeext conftest.$ac_ext
 
16785
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
16786
 
 
16787
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
16788
        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"
 
16789
       else
 
16790
        if test "$host_cpu" = ia64; then
 
16791
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
 
16792
          allow_undefined_flag_GCJ="-z nodefs"
 
16793
          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"
 
16794
        else
 
16795
         # Determine the default libpath from the value encoded in an empty executable.
 
16796
         cat >conftest.$ac_ext <<_ACEOF
 
16797
/* confdefs.h.  */
 
16798
_ACEOF
 
16799
cat confdefs.h >>conftest.$ac_ext
 
16800
cat >>conftest.$ac_ext <<_ACEOF
 
16801
/* end confdefs.h.  */
 
16802
 
 
16803
int
 
16804
main ()
 
16805
{
 
16806
 
 
16807
  ;
 
16808
  return 0;
 
16809
}
 
16810
_ACEOF
 
16811
rm -f conftest.$ac_objext conftest$ac_exeext
 
16812
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
16813
  (eval $ac_link) 2>conftest.er1
 
16814
  ac_status=$?
 
16815
  grep -v '^ *+' conftest.er1 >conftest.err
 
16816
  rm -f conftest.er1
 
16817
  cat conftest.err >&5
 
16818
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16819
  (exit $ac_status); } &&
 
16820
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
16821
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16822
  (eval $ac_try) 2>&5
 
16823
  ac_status=$?
 
16824
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16825
  (exit $ac_status); }; } &&
 
16826
         { ac_try='test -s conftest$ac_exeext'
 
16827
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
16828
  (eval $ac_try) 2>&5
 
16829
  ac_status=$?
 
16830
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16831
  (exit $ac_status); }; }; then
 
16832
  
 
16833
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
16834
}'`
 
16835
# Check for a 64-bit object if we didn't find anything.
 
16836
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; }
 
16837
}'`; fi
 
16838
else
 
16839
  echo "$as_me: failed program was:" >&5
 
16840
sed 's/^/| /' conftest.$ac_ext >&5
 
16841
 
 
16842
fi
 
16843
rm -f conftest.err conftest.$ac_objext \
 
16844
      conftest$ac_exeext conftest.$ac_ext
 
16845
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
16846
 
 
16847
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
16848
          # Warning - without using the other run time loading flags,
 
16849
          # -berok will link without error, but may produce a broken library.
 
16850
          no_undefined_flag_GCJ=' ${wl}-bernotok'
 
16851
          allow_undefined_flag_GCJ=' ${wl}-berok'
 
16852
          # -bexpall does not export symbols beginning with underscore (_)
 
16853
          always_export_symbols_GCJ=yes
 
16854
          # Exported symbols can be pulled into shared objects from archives
 
16855
          whole_archive_flag_spec_GCJ=' '
 
16856
          archive_cmds_need_lc_GCJ=yes
 
16857
          # This is similar to how AIX traditionally builds its shared libraries.
 
16858
          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'
 
16859
        fi
 
16860
      fi
 
16861
      ;;
 
16862
 
 
16863
    amigaos*)
 
16864
      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)'
 
16865
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16866
      hardcode_minus_L_GCJ=yes
 
16867
      # see comment about different semantics on the GNU ld section
 
16868
      ld_shlibs_GCJ=no
 
16869
      ;;
 
16870
 
 
16871
    bsdi[45]*)
 
16872
      export_dynamic_flag_spec_GCJ=-rdynamic
 
16873
      ;;
 
16874
 
 
16875
    cygwin* | mingw* | pw32*)
 
16876
      # When not using gcc, we currently assume that we are using
 
16877
      # Microsoft Visual C++.
 
16878
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
16879
      # no search path for DLLs.
 
16880
      hardcode_libdir_flag_spec_GCJ=' '
 
16881
      allow_undefined_flag_GCJ=unsupported
 
16882
      # Tell ltmain to make .lib files, not .a files.
 
16883
      libext=lib
 
16884
      # Tell ltmain to make .dll files, not .so files.
 
16885
      shrext_cmds=".dll"
 
16886
      # FIXME: Setting linknames here is a bad hack.
 
16887
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
16888
      # The linker will automatically build a .lib file if we build a DLL.
 
16889
      old_archive_From_new_cmds_GCJ='true'
 
16890
      # FIXME: Should let the user specify the lib program.
 
16891
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
16892
      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
 
16893
      enable_shared_with_static_runtimes_GCJ=yes
 
16894
      ;;
 
16895
 
 
16896
    darwin* | rhapsody*)
 
16897
      case $host_os in
 
16898
        rhapsody* | darwin1.[012])
 
16899
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
 
16900
         ;;
 
16901
       *) # Darwin 1.3 on
 
16902
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
16903
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
16904
         else
 
16905
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
16906
             10.[012])
 
16907
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
16908
               ;;
 
16909
             10.*)
 
16910
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
 
16911
               ;;
 
16912
           esac
 
16913
         fi
 
16914
         ;;
 
16915
      esac
 
16916
      archive_cmds_need_lc_GCJ=no
 
16917
      hardcode_direct_GCJ=no
 
16918
      hardcode_automatic_GCJ=yes
 
16919
      hardcode_shlibpath_var_GCJ=unsupported
 
16920
      whole_archive_flag_spec_GCJ=''
 
16921
      link_all_deplibs_GCJ=yes
 
16922
    if test "$GCC" = yes ; then
 
16923
        output_verbose_link_cmd='echo'
 
16924
        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
16925
      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
16926
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
16927
      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}'
 
16928
      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}'
 
16929
    else
 
16930
      case $cc_basename in
 
16931
        xlc*)
 
16932
         output_verbose_link_cmd='echo'
 
16933
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
16934
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
16935
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
 
16936
         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}'
 
16937
          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}'
 
16938
          ;;
 
16939
       *)
 
16940
         ld_shlibs_GCJ=no
 
16941
          ;;
 
16942
      esac
 
16943
    fi
 
16944
      ;;
 
16945
 
 
16946
    dgux*)
 
16947
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16948
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16949
      hardcode_shlibpath_var_GCJ=no
 
16950
      ;;
 
16951
 
 
16952
    freebsd1*)
 
16953
      ld_shlibs_GCJ=no
 
16954
      ;;
 
16955
 
 
16956
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
16957
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
16958
    # does not break anything, and helps significantly (at the cost of a little
 
16959
    # extra space).
 
16960
    freebsd2.2*)
 
16961
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
16962
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16963
      hardcode_direct_GCJ=yes
 
16964
      hardcode_shlibpath_var_GCJ=no
 
16965
      ;;
 
16966
 
 
16967
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
16968
    freebsd2*)
 
16969
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16970
      hardcode_direct_GCJ=yes
 
16971
      hardcode_minus_L_GCJ=yes
 
16972
      hardcode_shlibpath_var_GCJ=no
 
16973
      ;;
 
16974
 
 
16975
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
16976
    freebsd* | kfreebsd*-gnu | dragonfly*)
 
16977
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
16978
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
16979
      hardcode_direct_GCJ=yes
 
16980
      hardcode_shlibpath_var_GCJ=no
 
16981
      ;;
 
16982
 
 
16983
    hpux9*)
 
16984
      if test "$GCC" = yes; then
 
16985
        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'
 
16986
      else
 
16987
        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'
 
16988
      fi
 
16989
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
16990
      hardcode_libdir_separator_GCJ=:
 
16991
      hardcode_direct_GCJ=yes
 
16992
 
 
16993
      # hardcode_minus_L: Not really in the search PATH,
 
16994
      # but as the default location of the library.
 
16995
      hardcode_minus_L_GCJ=yes
 
16996
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
16997
      ;;
 
16998
 
 
16999
    hpux10* | hpux11*)
 
17000
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
17001
        case $host_cpu in
 
17002
        hppa*64*|ia64*)
 
17003
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17004
          ;;
 
17005
        *)
 
17006
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
17007
          ;;
 
17008
        esac
 
17009
      else
 
17010
        case $host_cpu in
 
17011
        hppa*64*|ia64*)
 
17012
          archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17013
          ;;
 
17014
        *)
 
17015
          archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
17016
          ;;
 
17017
        esac
 
17018
      fi
 
17019
      if test "$with_gnu_ld" = no; then
 
17020
        case $host_cpu in
 
17021
        hppa*64*)
 
17022
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17023
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
 
17024
          hardcode_libdir_separator_GCJ=:
 
17025
          hardcode_direct_GCJ=no
 
17026
          hardcode_shlibpath_var_GCJ=no
 
17027
          ;;
 
17028
        ia64*)
 
17029
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17030
          hardcode_direct_GCJ=no
 
17031
          hardcode_shlibpath_var_GCJ=no
 
17032
 
 
17033
          # hardcode_minus_L: Not really in the search PATH,
 
17034
          # but as the default location of the library.
 
17035
          hardcode_minus_L_GCJ=yes
 
17036
          ;;
 
17037
        *)
 
17038
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17039
          hardcode_libdir_separator_GCJ=:
 
17040
          hardcode_direct_GCJ=yes
 
17041
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
17042
 
 
17043
          # hardcode_minus_L: Not really in the search PATH,
 
17044
          # but as the default location of the library.
 
17045
          hardcode_minus_L_GCJ=yes
 
17046
          ;;
 
17047
        esac
 
17048
      fi
 
17049
      ;;
 
17050
 
 
17051
    irix5* | irix6* | nonstopux*)
 
17052
      if test "$GCC" = yes; then
 
17053
        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'
 
17054
      else
 
17055
        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'
 
17056
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
 
17057
      fi
 
17058
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17059
      hardcode_libdir_separator_GCJ=:
 
17060
      link_all_deplibs_GCJ=yes
 
17061
      ;;
 
17062
 
 
17063
    netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 
17064
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17065
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
17066
      else
 
17067
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
17068
      fi
 
17069
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17070
      hardcode_direct_GCJ=yes
 
17071
      hardcode_shlibpath_var_GCJ=no
 
17072
      ;;
 
17073
 
 
17074
    newsos6)
 
17075
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17076
      hardcode_direct_GCJ=yes
 
17077
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17078
      hardcode_libdir_separator_GCJ=:
 
17079
      hardcode_shlibpath_var_GCJ=no
 
17080
      ;;
 
17081
 
 
17082
    openbsd*)
 
17083
      hardcode_direct_GCJ=yes
 
17084
      hardcode_shlibpath_var_GCJ=no
 
17085
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
17086
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
17087
        archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
17088
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17089
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
17090
      else
 
17091
       case $host_os in
 
17092
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
17093
           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17094
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17095
           ;;
 
17096
         *)
 
17097
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
17098
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17099
           ;;
 
17100
       esac
 
17101
      fi
 
17102
      ;;
 
17103
 
 
17104
    os2*)
 
17105
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17106
      hardcode_minus_L_GCJ=yes
 
17107
      allow_undefined_flag_GCJ=unsupported
 
17108
      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'
 
17109
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
17110
      ;;
 
17111
 
 
17112
    osf3*)
 
17113
      if test "$GCC" = yes; then
 
17114
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
17115
        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'
 
17116
      else
 
17117
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
17118
        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'
 
17119
      fi
 
17120
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17121
      hardcode_libdir_separator_GCJ=:
 
17122
      ;;
 
17123
 
 
17124
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
17125
      if test "$GCC" = yes; then
 
17126
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
17127
        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'
 
17128
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17129
      else
 
17130
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
17131
        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'
 
17132
        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~
 
17133
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
 
17134
 
 
17135
        # Both c and cxx compiler support -rpath directly
 
17136
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
 
17137
      fi
 
17138
      hardcode_libdir_separator_GCJ=:
 
17139
      ;;
 
17140
 
 
17141
    sco3.2v5*)
 
17142
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17143
      hardcode_shlibpath_var_GCJ=no
 
17144
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
17145
      runpath_var=LD_RUN_PATH
 
17146
      hardcode_runpath_var=yes
 
17147
      ;;
 
17148
 
 
17149
    solaris*)
 
17150
      no_undefined_flag_GCJ=' -z text'
 
17151
      if test "$GCC" = yes; then
 
17152
        wlarc='${wl}'
 
17153
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17154
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
17155
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
17156
      else
 
17157
        wlarc=''
 
17158
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17159
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
17160
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
17161
      fi
 
17162
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17163
      hardcode_shlibpath_var_GCJ=no
 
17164
      case $host_os in
 
17165
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
17166
      *)
 
17167
        # The compiler driver will combine linker options so we
 
17168
        # cannot just pass the convience library names through
 
17169
        # without $wl, iff we do not link with $LD.
 
17170
        # Luckily, gcc supports the same syntax we need for Sun Studio.
 
17171
        # Supported since Solaris 2.6 (maybe 2.5.1?)
 
17172
        case $wlarc in
 
17173
        '')
 
17174
          whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
17175
        *)
 
17176
          whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
 
17177
        esac ;;
 
17178
      esac
 
17179
      link_all_deplibs_GCJ=yes
 
17180
      ;;
 
17181
 
 
17182
    sunos4*)
 
17183
      if test "x$host_vendor" = xsequent; then
 
17184
        # Use $CC to link under sequent, because it throws in some extra .o
 
17185
        # files that make .init and .fini sections work.
 
17186
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
17187
      else
 
17188
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
17189
      fi
 
17190
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17191
      hardcode_direct_GCJ=yes
 
17192
      hardcode_minus_L_GCJ=yes
 
17193
      hardcode_shlibpath_var_GCJ=no
 
17194
      ;;
 
17195
 
 
17196
    sysv4)
 
17197
      case $host_vendor in
 
17198
        sni)
 
17199
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17200
          hardcode_direct_GCJ=yes # is this really true???
 
17201
        ;;
 
17202
        siemens)
 
17203
          ## LD is ld it makes a PLAMLIB
 
17204
          ## CC just makes a GrossModule.
 
17205
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
17206
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
 
17207
          hardcode_direct_GCJ=no
 
17208
        ;;
 
17209
        motorola)
 
17210
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17211
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
 
17212
        ;;
 
17213
      esac
 
17214
      runpath_var='LD_RUN_PATH'
 
17215
      hardcode_shlibpath_var_GCJ=no
 
17216
      ;;
 
17217
 
 
17218
    sysv4.3*)
 
17219
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17220
      hardcode_shlibpath_var_GCJ=no
 
17221
      export_dynamic_flag_spec_GCJ='-Bexport'
 
17222
      ;;
 
17223
 
 
17224
    sysv4*MP*)
 
17225
      if test -d /usr/nec; then
 
17226
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17227
        hardcode_shlibpath_var_GCJ=no
 
17228
        runpath_var=LD_RUN_PATH
 
17229
        hardcode_runpath_var=yes
 
17230
        ld_shlibs_GCJ=yes
 
17231
      fi
 
17232
      ;;
 
17233
 
 
17234
    sysv4.2uw2*)
 
17235
      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
17236
      hardcode_direct_GCJ=yes
 
17237
      hardcode_minus_L_GCJ=no
 
17238
      hardcode_shlibpath_var_GCJ=no
 
17239
      hardcode_runpath_var=yes
 
17240
      runpath_var=LD_RUN_PATH
 
17241
      ;;
 
17242
 
 
17243
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
17244
      no_undefined_flag_GCJ='${wl}-z ${wl}text'
 
17245
      if test "$GCC" = yes; then
 
17246
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17247
      else
 
17248
        archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17249
      fi
 
17250
      runpath_var='LD_RUN_PATH'
 
17251
      hardcode_shlibpath_var_GCJ=no
 
17252
      ;;
 
17253
 
 
17254
    sysv5*)
 
17255
      no_undefined_flag_GCJ=' -z text'
 
17256
      # $CC -shared without GNU ld will not create a library from C++
 
17257
      # object files and a static libstdc++, better avoid it by now
 
17258
      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17259
      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
17260
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
17261
      hardcode_libdir_flag_spec_GCJ=
 
17262
      hardcode_shlibpath_var_GCJ=no
 
17263
      runpath_var='LD_RUN_PATH'
 
17264
      ;;
 
17265
 
 
17266
    uts4*)
 
17267
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17268
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17269
      hardcode_shlibpath_var_GCJ=no
 
17270
      ;;
 
17271
 
 
17272
    *)
 
17273
      ld_shlibs_GCJ=no
 
17274
      ;;
 
17275
    esac
 
17276
  fi
 
17277
 
 
17278
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
17279
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
 
17280
test "$ld_shlibs_GCJ" = no && can_build_shared=no
 
17281
 
 
17282
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
17283
if test "$GCC" = yes; then
 
17284
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
17285
fi
 
17286
 
 
17287
#
 
17288
# Do we need to explicitly link libc?
 
17289
#
 
17290
case "x$archive_cmds_need_lc_GCJ" in
 
17291
x|xyes)
 
17292
  # Assume -lc should be added
 
17293
  archive_cmds_need_lc_GCJ=yes
 
17294
 
 
17295
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
17296
    case $archive_cmds_GCJ in
 
17297
    *'~'*)
 
17298
      # FIXME: we may have to deal with multi-command sequences.
 
17299
      ;;
 
17300
    '$CC '*)
 
17301
      # Test whether the compiler implicitly links with -lc since on some
 
17302
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
17303
      # to ld, don't add -lc before -lgcc.
 
17304
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
17305
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
17306
      $rm conftest*
 
17307
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17308
 
 
17309
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
17310
  (eval $ac_compile) 2>&5
 
17311
  ac_status=$?
 
17312
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17313
  (exit $ac_status); } 2>conftest.err; then
 
17314
        soname=conftest
 
17315
        lib=conftest
 
17316
        libobjs=conftest.$ac_objext
 
17317
        deplibs=
 
17318
        wl=$lt_prog_compiler_wl_GCJ
 
17319
        compiler_flags=-v
 
17320
        linker_flags=-v
 
17321
        verstring=
 
17322
        output_objdir=.
 
17323
        libname=conftest
 
17324
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
 
17325
        allow_undefined_flag_GCJ=
 
17326
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
17327
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
17328
  ac_status=$?
 
17329
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17330
  (exit $ac_status); }
 
17331
        then
 
17332
          archive_cmds_need_lc_GCJ=no
 
17333
        else
 
17334
          archive_cmds_need_lc_GCJ=yes
 
17335
        fi
 
17336
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
 
17337
      else
 
17338
        cat conftest.err 1>&5
 
17339
      fi
 
17340
      $rm conftest*
 
17341
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
17342
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
 
17343
      ;;
 
17344
    esac
 
17345
  fi
 
17346
  ;;
 
17347
esac
 
17348
 
 
17349
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
17350
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
17351
library_names_spec=
 
17352
libname_spec='lib$name'
 
17353
soname_spec=
 
17354
shrext_cmds=".so"
 
17355
postinstall_cmds=
 
17356
postuninstall_cmds=
 
17357
finish_cmds=
 
17358
finish_eval=
 
17359
shlibpath_var=
 
17360
shlibpath_overrides_runpath=unknown
 
17361
version_type=none
 
17362
dynamic_linker="$host_os ld.so"
 
17363
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
17364
if test "$GCC" = yes; then
 
17365
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
17366
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
17367
    # if the path contains ";" then we assume it to be the separator
 
17368
    # otherwise default to the standard path separator (i.e. ":") - it is
 
17369
    # assumed that no part of a normal pathname contains ";" but that should
 
17370
    # okay in the real world where ";" in dirpaths is itself problematic.
 
17371
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
17372
  else
 
17373
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
17374
  fi
 
17375
else
 
17376
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
17377
fi
 
17378
need_lib_prefix=unknown
 
17379
hardcode_into_libs=no
 
17380
 
 
17381
# when you set need_version to no, make sure it does not cause -set_version
 
17382
# flags to be left without arguments
 
17383
need_version=unknown
 
17384
 
 
17385
case $host_os in
 
17386
aix3*)
 
17387
  version_type=linux
 
17388
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
17389
  shlibpath_var=LIBPATH
 
17390
 
 
17391
  # AIX 3 has no versioning support, so we append a major version to the name.
 
17392
  soname_spec='${libname}${release}${shared_ext}$major'
 
17393
  ;;
 
17394
 
 
17395
aix4* | aix5*)
 
17396
  version_type=linux
 
17397
  need_lib_prefix=no
 
17398
  need_version=no
 
17399
  hardcode_into_libs=yes
 
17400
  if test "$host_cpu" = ia64; then
 
17401
    # AIX 5 supports IA64
 
17402
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
17403
    shlibpath_var=LD_LIBRARY_PATH
 
17404
  else
 
17405
    # With GCC up to 2.95.x, collect2 would create an import file
 
17406
    # for dependence libraries.  The import file would start with
 
17407
    # the line `#! .'.  This would cause the generated library to
 
17408
    # depend on `.', always an invalid library.  This was fixed in
 
17409
    # development snapshots of GCC prior to 3.0.
 
17410
    case $host_os in
 
17411
      aix4 | aix4.[01] | aix4.[01].*)
 
17412
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
17413
           echo ' yes '
 
17414
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
17415
        :
 
17416
      else
 
17417
        can_build_shared=no
 
17418
      fi
 
17419
      ;;
 
17420
    esac
 
17421
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
17422
    # soname into executable. Probably we can add versioning support to
 
17423
    # collect2, so additional links can be useful in future.
 
17424
    if test "$aix_use_runtimelinking" = yes; then
 
17425
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
17426
      # instead of lib<name>.a to let people know that these are not
 
17427
      # typical AIX shared libraries.
 
17428
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17429
    else
 
17430
      # We preserve .a as extension for shared libraries through AIX4.2
 
17431
      # and later when we are not doing run time linking.
 
17432
      library_names_spec='${libname}${release}.a $libname.a'
 
17433
      soname_spec='${libname}${release}${shared_ext}$major'
 
17434
    fi
 
17435
    shlibpath_var=LIBPATH
 
17436
  fi
 
17437
  ;;
 
17438
 
 
17439
amigaos*)
 
17440
  library_names_spec='$libname.ixlibrary $libname.a'
 
17441
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
17442
  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'
 
17443
  ;;
 
17444
 
 
17445
beos*)
 
17446
  library_names_spec='${libname}${shared_ext}'
 
17447
  dynamic_linker="$host_os ld.so"
 
17448
  shlibpath_var=LIBRARY_PATH
 
17449
  ;;
 
17450
 
 
17451
bsdi[45]*)
 
17452
  version_type=linux
 
17453
  need_version=no
 
17454
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17455
  soname_spec='${libname}${release}${shared_ext}$major'
 
17456
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
17457
  shlibpath_var=LD_LIBRARY_PATH
 
17458
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
17459
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
17460
  # the default ld.so.conf also contains /usr/contrib/lib and
 
17461
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
17462
  # libtool to hard-code these into programs
 
17463
  ;;
 
17464
 
 
17465
cygwin* | mingw* | pw32*)
 
17466
  version_type=windows
 
17467
  shrext_cmds=".dll"
 
17468
  need_version=no
 
17469
  need_lib_prefix=no
 
17470
 
 
17471
  case $GCC,$host_os in
 
17472
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
17473
    library_names_spec='$libname.dll.a'
 
17474
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
17475
    postinstall_cmds='base_file=`basename \${file}`~
 
17476
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
17477
      dldir=$destdir/`dirname \$dlpath`~
 
17478
      test -d \$dldir || mkdir -p \$dldir~
 
17479
      $install_prog $dir/$dlname \$dldir/$dlname~
 
17480
      chmod a+x \$dldir/$dlname'
 
17481
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
17482
      dlpath=$dir/\$dldll~
 
17483
       $rm \$dlpath'
 
17484
    shlibpath_overrides_runpath=yes
 
17485
 
 
17486
    case $host_os in
 
17487
    cygwin*)
 
17488
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
17489
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
17490
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
17491
      ;;
 
17492
    mingw*)
 
17493
      # MinGW DLLs use traditional 'lib' prefix
 
17494
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
17495
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
17496
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
17497
        # It is most probably a Windows format PATH printed by
 
17498
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
17499
        # path with ; separators, and with drive letters. We can handle the
 
17500
        # drive letters (cygwin fileutils understands them), so leave them,
 
17501
        # especially as we might pass files found there to a mingw objdump,
 
17502
        # which wouldn't understand a cygwinified path. Ahh.
 
17503
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
17504
      else
 
17505
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
17506
      fi
 
17507
      ;;
 
17508
    pw32*)
 
17509
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
17510
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
17511
      ;;
 
17512
    esac
 
17513
    ;;
 
17514
 
 
17515
  *)
 
17516
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
17517
    ;;
 
17518
  esac
 
17519
  dynamic_linker='Win32 ld.exe'
 
17520
  # FIXME: first we should search . and the directory the executable is in
 
17521
  shlibpath_var=PATH
 
17522
  ;;
 
17523
 
 
17524
darwin* | rhapsody*)
 
17525
  dynamic_linker="$host_os dyld"
 
17526
  version_type=darwin
 
17527
  need_lib_prefix=no
 
17528
  need_version=no
 
17529
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
17530
  soname_spec='${libname}${release}${major}$shared_ext'
 
17531
  shlibpath_overrides_runpath=yes
 
17532
  shlibpath_var=DYLD_LIBRARY_PATH
 
17533
  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
 
17534
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
17535
  if test "$GCC" = yes; then
 
17536
    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"`
 
17537
  else
 
17538
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
17539
  fi
 
17540
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
17541
  ;;
 
17542
 
 
17543
dgux*)
 
17544
  version_type=linux
 
17545
  need_lib_prefix=no
 
17546
  need_version=no
 
17547
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
17548
  soname_spec='${libname}${release}${shared_ext}$major'
 
17549
  shlibpath_var=LD_LIBRARY_PATH
 
17550
  ;;
 
17551
 
 
17552
freebsd1*)
 
17553
  dynamic_linker=no
 
17554
  ;;
 
17555
 
 
17556
kfreebsd*-gnu)
 
17557
  version_type=linux
 
17558
  need_lib_prefix=no
 
17559
  need_version=no
 
17560
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17561
  soname_spec='${libname}${release}${shared_ext}$major'
 
17562
  shlibpath_var=LD_LIBRARY_PATH
 
17563
  shlibpath_overrides_runpath=no
 
17564
  hardcode_into_libs=yes
 
17565
  dynamic_linker='GNU ld.so'
 
17566
  ;;
 
17567
 
 
17568
freebsd* | dragonfly*)
 
17569
  # DragonFly does not have aout.  When/if they implement a new
 
17570
  # versioning mechanism, adjust this.
 
17571
  if test -x /usr/bin/objformat; then
 
17572
    objformat=`/usr/bin/objformat`
 
17573
  else
 
17574
    case $host_os in
 
17575
    freebsd[123]*) objformat=aout ;;
 
17576
    *) objformat=elf ;;
 
17577
    esac
 
17578
  fi
 
17579
  version_type=freebsd-$objformat
 
17580
  case $version_type in
 
17581
    freebsd-elf*)
 
17582
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
17583
      need_version=no
 
17584
      need_lib_prefix=no
 
17585
      ;;
 
17586
    freebsd-*)
 
17587
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
17588
      need_version=yes
 
17589
      ;;
 
17590
  esac
 
17591
  shlibpath_var=LD_LIBRARY_PATH
 
17592
  case $host_os in
 
17593
  freebsd2*)
 
17594
    shlibpath_overrides_runpath=yes
 
17595
    ;;
 
17596
  freebsd3.[01]* | freebsdelf3.[01]*)
 
17597
    shlibpath_overrides_runpath=yes
 
17598
    hardcode_into_libs=yes
 
17599
    ;;
 
17600
  *) # from 3.2 on
 
17601
    shlibpath_overrides_runpath=no
 
17602
    hardcode_into_libs=yes
 
17603
    ;;
 
17604
  esac
 
17605
  ;;
 
17606
 
 
17607
gnu*)
 
17608
  version_type=linux
 
17609
  need_lib_prefix=no
 
17610
  need_version=no
 
17611
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
17612
  soname_spec='${libname}${release}${shared_ext}$major'
 
17613
  shlibpath_var=LD_LIBRARY_PATH
 
17614
  hardcode_into_libs=yes
 
17615
  ;;
 
17616
 
 
17617
hpux9* | hpux10* | hpux11*)
 
17618
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
17619
  # link against other versions.
 
17620
  version_type=sunos
 
17621
  need_lib_prefix=no
 
17622
  need_version=no
 
17623
  case $host_cpu in
 
17624
  ia64*)
 
17625
    shrext_cmds='.so'
 
17626
    hardcode_into_libs=yes
 
17627
    dynamic_linker="$host_os dld.so"
 
17628
    shlibpath_var=LD_LIBRARY_PATH
 
17629
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
17630
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17631
    soname_spec='${libname}${release}${shared_ext}$major'
 
17632
    if test "X$HPUX_IA64_MODE" = X32; then
 
17633
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
17634
    else
 
17635
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
17636
    fi
 
17637
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
17638
    ;;
 
17639
   hppa*64*)
 
17640
     shrext_cmds='.sl'
 
17641
     hardcode_into_libs=yes
 
17642
     dynamic_linker="$host_os dld.sl"
 
17643
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
17644
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
17645
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17646
     soname_spec='${libname}${release}${shared_ext}$major'
 
17647
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
17648
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
17649
     ;;
 
17650
   *)
 
17651
    shrext_cmds='.sl'
 
17652
    dynamic_linker="$host_os dld.sl"
 
17653
    shlibpath_var=SHLIB_PATH
 
17654
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
17655
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17656
    soname_spec='${libname}${release}${shared_ext}$major'
 
17657
    ;;
 
17658
  esac
 
17659
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
17660
  postinstall_cmds='chmod 555 $lib'
 
17661
  ;;
 
17662
 
 
17663
irix5* | irix6* | nonstopux*)
 
17664
  case $host_os in
 
17665
    nonstopux*) version_type=nonstopux ;;
 
17666
    *)
 
17667
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
17668
                version_type=linux
 
17669
        else
 
17670
                version_type=irix
 
17671
        fi ;;
 
17672
  esac
 
17673
  need_lib_prefix=no
 
17674
  need_version=no
 
17675
  soname_spec='${libname}${release}${shared_ext}$major'
 
17676
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
17677
  case $host_os in
 
17678
  irix5* | nonstopux*)
 
17679
    libsuff= shlibsuff=
 
17680
    ;;
 
17681
  *)
 
17682
    case $LD in # libtool.m4 will add one of these switches to LD
 
17683
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
17684
      libsuff= shlibsuff= libmagic=32-bit;;
 
17685
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
17686
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
17687
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
17688
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
17689
    *) libsuff= shlibsuff= libmagic=never-match;;
 
17690
    esac
 
17691
    ;;
 
17692
  esac
 
17693
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
17694
  shlibpath_overrides_runpath=no
 
17695
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
17696
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
17697
  hardcode_into_libs=yes
 
17698
  ;;
 
17699
 
 
17700
# No shared lib support for Linux oldld, aout, or coff.
 
17701
linux*oldld* | linux*aout* | linux*coff*)
 
17702
  dynamic_linker=no
 
17703
  ;;
 
17704
 
 
17705
# This must be Linux ELF.
 
17706
linux*)
 
17707
  version_type=linux
 
17708
  need_lib_prefix=no
 
17709
  need_version=no
 
17710
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17711
  soname_spec='${libname}${release}${shared_ext}$major'
 
17712
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
17713
  shlibpath_var=LD_LIBRARY_PATH
 
17714
  shlibpath_overrides_runpath=no
 
17715
  # This implies no fast_install, which is unacceptable.
 
17716
  # Some rework will be needed to allow for fast_install
 
17717
  # before this can be enabled.
 
17718
  hardcode_into_libs=yes
 
17719
 
 
17720
  # Append ld.so.conf contents to the search path
 
17721
  if test -f /etc/ld.so.conf; then
 
17722
    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
 
17723
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
17724
  fi
 
17725
 
 
17726
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
17727
  # powerpc, because MkLinux only supported shared libraries with the
 
17728
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
17729
  # most powerpc-linux boxes support dynamic linking these days and
 
17730
  # people can always --disable-shared, the test was removed, and we
 
17731
  # assume the GNU/Linux dynamic linker is in use.
 
17732
  dynamic_linker='GNU/Linux ld.so'
 
17733
  ;;
 
17734
 
 
17735
netbsdelf*-gnu)
 
17736
  version_type=linux
 
17737
  need_lib_prefix=no
 
17738
  need_version=no
 
17739
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17740
  soname_spec='${libname}${release}${shared_ext}$major'
 
17741
  shlibpath_var=LD_LIBRARY_PATH
 
17742
  shlibpath_overrides_runpath=no
 
17743
  hardcode_into_libs=yes
 
17744
  dynamic_linker='NetBSD ld.elf_so'
 
17745
  ;;
 
17746
 
 
17747
knetbsd*-gnu)
 
17748
  version_type=linux
 
17749
  need_lib_prefix=no
 
17750
  need_version=no
 
17751
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17752
  soname_spec='${libname}${release}${shared_ext}$major'
 
17753
  shlibpath_var=LD_LIBRARY_PATH
 
17754
  shlibpath_overrides_runpath=no
 
17755
  hardcode_into_libs=yes
 
17756
  dynamic_linker='GNU ld.so'
 
17757
  ;;
 
17758
 
 
17759
netbsd*)
 
17760
  version_type=sunos
 
17761
  need_lib_prefix=no
 
17762
  need_version=no
 
17763
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17764
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17765
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
17766
    dynamic_linker='NetBSD (a.out) ld.so'
 
17767
  else
 
17768
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17769
    soname_spec='${libname}${release}${shared_ext}$major'
 
17770
    dynamic_linker='NetBSD ld.elf_so'
 
17771
  fi
 
17772
  shlibpath_var=LD_LIBRARY_PATH
 
17773
  shlibpath_overrides_runpath=yes
 
17774
  hardcode_into_libs=yes
 
17775
  ;;
 
17776
 
 
17777
newsos6)
 
17778
  version_type=linux
 
17779
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17780
  shlibpath_var=LD_LIBRARY_PATH
 
17781
  shlibpath_overrides_runpath=yes
 
17782
  ;;
 
17783
 
 
17784
nto-qnx*)
 
17785
  version_type=linux
 
17786
  need_lib_prefix=no
 
17787
  need_version=no
 
17788
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17789
  soname_spec='${libname}${release}${shared_ext}$major'
 
17790
  shlibpath_var=LD_LIBRARY_PATH
 
17791
  shlibpath_overrides_runpath=yes
 
17792
  ;;
 
17793
 
 
17794
openbsd*)
 
17795
  version_type=sunos
 
17796
  need_lib_prefix=no
 
17797
  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
 
17798
  case $host_os in
 
17799
    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
 
17800
    *)                         need_version=no  ;;
 
17801
  esac
 
17802
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17803
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
17804
  shlibpath_var=LD_LIBRARY_PATH
 
17805
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
17806
    case $host_os in
 
17807
      openbsd2.[89] | openbsd2.[89].*)
 
17808
        shlibpath_overrides_runpath=no
 
17809
        ;;
 
17810
      *)
 
17811
        shlibpath_overrides_runpath=yes
 
17812
        ;;
 
17813
      esac
 
17814
  else
 
17815
    shlibpath_overrides_runpath=yes
 
17816
  fi
 
17817
  ;;
 
17818
 
 
17819
os2*)
 
17820
  libname_spec='$name'
 
17821
  shrext_cmds=".dll"
 
17822
  need_lib_prefix=no
 
17823
  library_names_spec='$libname${shared_ext} $libname.a'
 
17824
  dynamic_linker='OS/2 ld.exe'
 
17825
  shlibpath_var=LIBPATH
 
17826
  ;;
 
17827
 
 
17828
osf3* | osf4* | osf5*)
 
17829
  version_type=osf
 
17830
  need_lib_prefix=no
 
17831
  need_version=no
 
17832
  soname_spec='${libname}${release}${shared_ext}$major'
 
17833
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17834
  shlibpath_var=LD_LIBRARY_PATH
 
17835
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
17836
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
17837
  ;;
 
17838
 
 
17839
sco3.2v5*)
 
17840
  version_type=osf
 
17841
  soname_spec='${libname}${release}${shared_ext}$major'
 
17842
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17843
  shlibpath_var=LD_LIBRARY_PATH
 
17844
  ;;
 
17845
 
 
17846
solaris*)
 
17847
  version_type=linux
 
17848
  need_lib_prefix=no
 
17849
  need_version=no
 
17850
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17851
  soname_spec='${libname}${release}${shared_ext}$major'
 
17852
  shlibpath_var=LD_LIBRARY_PATH
 
17853
  shlibpath_overrides_runpath=yes
 
17854
  hardcode_into_libs=yes
 
17855
  # ldd complains unless libraries are executable
 
17856
  postinstall_cmds='chmod +x $lib'
 
17857
  ;;
 
17858
 
 
17859
sunos4*)
 
17860
  version_type=sunos
 
17861
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
17862
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
17863
  shlibpath_var=LD_LIBRARY_PATH
 
17864
  shlibpath_overrides_runpath=yes
 
17865
  if test "$with_gnu_ld" = yes; then
 
17866
    need_lib_prefix=no
 
17867
  fi
 
17868
  need_version=yes
 
17869
  ;;
 
17870
 
 
17871
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
17872
  version_type=linux
 
17873
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17874
  soname_spec='${libname}${release}${shared_ext}$major'
 
17875
  shlibpath_var=LD_LIBRARY_PATH
 
17876
  case $host_vendor in
 
17877
    sni)
 
17878
      shlibpath_overrides_runpath=no
 
17879
      need_lib_prefix=no
 
17880
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
17881
      runpath_var=LD_RUN_PATH
 
17882
      ;;
 
17883
    siemens)
 
17884
      need_lib_prefix=no
 
17885
      ;;
 
17886
    motorola)
 
17887
      need_lib_prefix=no
 
17888
      need_version=no
 
17889
      shlibpath_overrides_runpath=no
 
17890
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
17891
      ;;
 
17892
  esac
 
17893
  ;;
 
17894
 
 
17895
sysv4*MP*)
 
17896
  if test -d /usr/nec ;then
 
17897
    version_type=linux
 
17898
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
17899
    soname_spec='$libname${shared_ext}.$major'
 
17900
    shlibpath_var=LD_LIBRARY_PATH
 
17901
  fi
 
17902
  ;;
 
17903
 
 
17904
uts4*)
 
17905
  version_type=linux
 
17906
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17907
  soname_spec='${libname}${release}${shared_ext}$major'
 
17908
  shlibpath_var=LD_LIBRARY_PATH
 
17909
  ;;
 
17910
 
 
17911
*)
 
17912
  dynamic_linker=no
 
17913
  ;;
 
17914
esac
 
17915
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
17916
echo "${ECHO_T}$dynamic_linker" >&6
 
17917
test "$dynamic_linker" = no && can_build_shared=no
 
17918
 
 
17919
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
17920
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
17921
hardcode_action_GCJ=
 
17922
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
 
17923
   test -n "$runpath_var_GCJ" || \
 
17924
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
 
17925
 
 
17926
  # We can hardcode non-existant directories.
 
17927
  if test "$hardcode_direct_GCJ" != no &&
 
17928
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
17929
     # have to relink, otherwise we might link with an installed library
 
17930
     # when we should be linking with a yet-to-be-installed one
 
17931
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
 
17932
     test "$hardcode_minus_L_GCJ" != no; then
 
17933
    # Linking always hardcodes the temporary library directory.
 
17934
    hardcode_action_GCJ=relink
 
17935
  else
 
17936
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
17937
    hardcode_action_GCJ=immediate
 
17938
  fi
 
17939
else
 
17940
  # We cannot hardcode anything, or else we can only hardcode existing
 
17941
  # directories.
 
17942
  hardcode_action_GCJ=unsupported
 
17943
fi
 
17944
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
17945
echo "${ECHO_T}$hardcode_action_GCJ" >&6
 
17946
 
 
17947
if test "$hardcode_action_GCJ" = relink; then
 
17948
  # Fast installation is not supported
 
17949
  enable_fast_install=no
 
17950
elif test "$shlibpath_overrides_runpath" = yes ||
 
17951
     test "$enable_shared" = no; then
 
17952
  # Fast installation is not necessary
 
17953
  enable_fast_install=needless
 
17954
fi
 
17955
 
 
17956
striplib=
 
17957
old_striplib=
 
17958
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
17959
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
17960
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
17961
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
17962
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
17963
  echo "$as_me:$LINENO: result: yes" >&5
 
17964
echo "${ECHO_T}yes" >&6
 
17965
else
 
17966
# FIXME - insert some real tests, host_os isn't really good enough
 
17967
  case $host_os in
 
17968
   darwin*)
 
17969
       if test -n "$STRIP" ; then
 
17970
         striplib="$STRIP -x"
 
17971
         echo "$as_me:$LINENO: result: yes" >&5
 
17972
echo "${ECHO_T}yes" >&6
 
17973
       else
 
17974
  echo "$as_me:$LINENO: result: no" >&5
 
17975
echo "${ECHO_T}no" >&6
 
17976
fi
 
17977
       ;;
 
17978
   *)
 
17979
  echo "$as_me:$LINENO: result: no" >&5
 
17980
echo "${ECHO_T}no" >&6
 
17981
    ;;
 
17982
  esac
 
17983
fi
 
17984
 
 
17985
if test "x$enable_dlopen" != xyes; then
 
17986
  enable_dlopen=unknown
 
17987
  enable_dlopen_self=unknown
 
17988
  enable_dlopen_self_static=unknown
 
17989
else
 
17990
  lt_cv_dlopen=no
 
17991
  lt_cv_dlopen_libs=
 
17992
 
 
17993
  case $host_os in
 
17994
  beos*)
 
17995
    lt_cv_dlopen="load_add_on"
 
17996
    lt_cv_dlopen_libs=
 
17997
    lt_cv_dlopen_self=yes
 
17998
    ;;
 
17999
 
 
18000
  mingw* | pw32*)
 
18001
    lt_cv_dlopen="LoadLibrary"
 
18002
    lt_cv_dlopen_libs=
 
18003
   ;;
 
18004
 
 
18005
  cygwin*)
 
18006
    lt_cv_dlopen="dlopen"
 
18007
    lt_cv_dlopen_libs=
 
18008
   ;;
 
18009
 
 
18010
  darwin*)
 
18011
  # if libdl is installed we need to link against it
 
18012
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
18013
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
18014
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
18015
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18016
else
 
18017
  ac_check_lib_save_LIBS=$LIBS
 
18018
LIBS="-ldl  $LIBS"
 
18019
cat >conftest.$ac_ext <<_ACEOF
 
18020
/* confdefs.h.  */
 
18021
_ACEOF
 
18022
cat confdefs.h >>conftest.$ac_ext
 
18023
cat >>conftest.$ac_ext <<_ACEOF
 
18024
/* end confdefs.h.  */
 
18025
 
 
18026
/* Override any gcc2 internal prototype to avoid an error.  */
 
18027
#ifdef __cplusplus
 
18028
extern "C"
 
18029
#endif
 
18030
/* We use char because int might match the return type of a gcc2
 
18031
   builtin and then its argument prototype would still apply.  */
 
18032
char dlopen ();
 
18033
int
 
18034
main ()
 
18035
{
 
18036
dlopen ();
 
18037
  ;
 
18038
  return 0;
 
18039
}
 
18040
_ACEOF
 
18041
rm -f conftest.$ac_objext conftest$ac_exeext
 
18042
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18043
  (eval $ac_link) 2>conftest.er1
 
18044
  ac_status=$?
 
18045
  grep -v '^ *+' conftest.er1 >conftest.err
 
18046
  rm -f conftest.er1
 
18047
  cat conftest.err >&5
 
18048
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18049
  (exit $ac_status); } &&
 
18050
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18051
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18052
  (eval $ac_try) 2>&5
 
18053
  ac_status=$?
 
18054
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18055
  (exit $ac_status); }; } &&
 
18056
         { ac_try='test -s conftest$ac_exeext'
 
18057
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18058
  (eval $ac_try) 2>&5
 
18059
  ac_status=$?
 
18060
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18061
  (exit $ac_status); }; }; then
 
18062
  ac_cv_lib_dl_dlopen=yes
 
18063
else
 
18064
  echo "$as_me: failed program was:" >&5
 
18065
sed 's/^/| /' conftest.$ac_ext >&5
 
18066
 
 
18067
ac_cv_lib_dl_dlopen=no
 
18068
fi
 
18069
rm -f conftest.err conftest.$ac_objext \
 
18070
      conftest$ac_exeext conftest.$ac_ext
 
18071
LIBS=$ac_check_lib_save_LIBS
 
18072
fi
 
18073
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
18074
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
18075
if test $ac_cv_lib_dl_dlopen = yes; then
 
18076
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
18077
else
 
18078
  
 
18079
    lt_cv_dlopen="dyld"
 
18080
    lt_cv_dlopen_libs=
 
18081
    lt_cv_dlopen_self=yes
 
18082
    
 
18083
fi
 
18084
 
 
18085
   ;;
 
18086
 
 
18087
  *)
 
18088
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
18089
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
18090
if test "${ac_cv_func_shl_load+set}" = set; then
 
18091
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18092
else
 
18093
  cat >conftest.$ac_ext <<_ACEOF
 
18094
/* confdefs.h.  */
 
18095
_ACEOF
 
18096
cat confdefs.h >>conftest.$ac_ext
 
18097
cat >>conftest.$ac_ext <<_ACEOF
 
18098
/* end confdefs.h.  */
 
18099
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
18100
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
18101
#define shl_load innocuous_shl_load
 
18102
 
 
18103
/* System header to define __stub macros and hopefully few prototypes,
 
18104
    which can conflict with char shl_load (); below.
 
18105
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
18106
    <limits.h> exists even on freestanding compilers.  */
 
18107
 
 
18108
#ifdef __STDC__
 
18109
# include <limits.h>
 
18110
#else
 
18111
# include <assert.h>
 
18112
#endif
 
18113
 
 
18114
#undef shl_load
 
18115
 
 
18116
/* Override any gcc2 internal prototype to avoid an error.  */
 
18117
#ifdef __cplusplus
 
18118
extern "C"
 
18119
{
 
18120
#endif
 
18121
/* We use char because int might match the return type of a gcc2
 
18122
   builtin and then its argument prototype would still apply.  */
 
18123
char shl_load ();
 
18124
/* The GNU C library defines this for functions which it implements
 
18125
    to always fail with ENOSYS.  Some functions are actually named
 
18126
    something starting with __ and the normal name is an alias.  */
 
18127
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
18128
choke me
 
18129
#else
 
18130
char (*f) () = shl_load;
 
18131
#endif
 
18132
#ifdef __cplusplus
 
18133
}
 
18134
#endif
 
18135
 
 
18136
int
 
18137
main ()
 
18138
{
 
18139
return f != shl_load;
 
18140
  ;
 
18141
  return 0;
 
18142
}
 
18143
_ACEOF
 
18144
rm -f conftest.$ac_objext conftest$ac_exeext
 
18145
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18146
  (eval $ac_link) 2>conftest.er1
 
18147
  ac_status=$?
 
18148
  grep -v '^ *+' conftest.er1 >conftest.err
 
18149
  rm -f conftest.er1
 
18150
  cat conftest.err >&5
 
18151
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18152
  (exit $ac_status); } &&
 
18153
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18154
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18155
  (eval $ac_try) 2>&5
 
18156
  ac_status=$?
 
18157
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18158
  (exit $ac_status); }; } &&
 
18159
         { ac_try='test -s conftest$ac_exeext'
 
18160
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18161
  (eval $ac_try) 2>&5
 
18162
  ac_status=$?
 
18163
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18164
  (exit $ac_status); }; }; then
 
18165
  ac_cv_func_shl_load=yes
 
18166
else
 
18167
  echo "$as_me: failed program was:" >&5
 
18168
sed 's/^/| /' conftest.$ac_ext >&5
 
18169
 
 
18170
ac_cv_func_shl_load=no
 
18171
fi
 
18172
rm -f conftest.err conftest.$ac_objext \
 
18173
      conftest$ac_exeext conftest.$ac_ext
 
18174
fi
 
18175
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
18176
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
18177
if test $ac_cv_func_shl_load = yes; then
 
18178
  lt_cv_dlopen="shl_load"
 
18179
else
 
18180
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
18181
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
18182
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
18183
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18184
else
 
18185
  ac_check_lib_save_LIBS=$LIBS
 
18186
LIBS="-ldld  $LIBS"
 
18187
cat >conftest.$ac_ext <<_ACEOF
 
18188
/* confdefs.h.  */
 
18189
_ACEOF
 
18190
cat confdefs.h >>conftest.$ac_ext
 
18191
cat >>conftest.$ac_ext <<_ACEOF
 
18192
/* end confdefs.h.  */
 
18193
 
 
18194
/* Override any gcc2 internal prototype to avoid an error.  */
 
18195
#ifdef __cplusplus
 
18196
extern "C"
 
18197
#endif
 
18198
/* We use char because int might match the return type of a gcc2
 
18199
   builtin and then its argument prototype would still apply.  */
 
18200
char shl_load ();
 
18201
int
 
18202
main ()
 
18203
{
 
18204
shl_load ();
 
18205
  ;
 
18206
  return 0;
 
18207
}
 
18208
_ACEOF
 
18209
rm -f conftest.$ac_objext conftest$ac_exeext
 
18210
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18211
  (eval $ac_link) 2>conftest.er1
 
18212
  ac_status=$?
 
18213
  grep -v '^ *+' conftest.er1 >conftest.err
 
18214
  rm -f conftest.er1
 
18215
  cat conftest.err >&5
 
18216
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18217
  (exit $ac_status); } &&
 
18218
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18219
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18220
  (eval $ac_try) 2>&5
 
18221
  ac_status=$?
 
18222
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18223
  (exit $ac_status); }; } &&
 
18224
         { ac_try='test -s conftest$ac_exeext'
 
18225
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18226
  (eval $ac_try) 2>&5
 
18227
  ac_status=$?
 
18228
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18229
  (exit $ac_status); }; }; then
 
18230
  ac_cv_lib_dld_shl_load=yes
 
18231
else
 
18232
  echo "$as_me: failed program was:" >&5
 
18233
sed 's/^/| /' conftest.$ac_ext >&5
 
18234
 
 
18235
ac_cv_lib_dld_shl_load=no
 
18236
fi
 
18237
rm -f conftest.err conftest.$ac_objext \
 
18238
      conftest$ac_exeext conftest.$ac_ext
 
18239
LIBS=$ac_check_lib_save_LIBS
 
18240
fi
 
18241
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
18242
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
18243
if test $ac_cv_lib_dld_shl_load = yes; then
 
18244
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
18245
else
 
18246
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
18247
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
18248
if test "${ac_cv_func_dlopen+set}" = set; then
 
18249
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18250
else
 
18251
  cat >conftest.$ac_ext <<_ACEOF
 
18252
/* confdefs.h.  */
 
18253
_ACEOF
 
18254
cat confdefs.h >>conftest.$ac_ext
 
18255
cat >>conftest.$ac_ext <<_ACEOF
 
18256
/* end confdefs.h.  */
 
18257
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
18258
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
18259
#define dlopen innocuous_dlopen
 
18260
 
 
18261
/* System header to define __stub macros and hopefully few prototypes,
 
18262
    which can conflict with char dlopen (); below.
 
18263
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
18264
    <limits.h> exists even on freestanding compilers.  */
 
18265
 
 
18266
#ifdef __STDC__
 
18267
# include <limits.h>
 
18268
#else
 
18269
# include <assert.h>
 
18270
#endif
 
18271
 
 
18272
#undef dlopen
 
18273
 
 
18274
/* Override any gcc2 internal prototype to avoid an error.  */
 
18275
#ifdef __cplusplus
 
18276
extern "C"
 
18277
{
 
18278
#endif
 
18279
/* We use char because int might match the return type of a gcc2
 
18280
   builtin and then its argument prototype would still apply.  */
 
18281
char dlopen ();
 
18282
/* The GNU C library defines this for functions which it implements
 
18283
    to always fail with ENOSYS.  Some functions are actually named
 
18284
    something starting with __ and the normal name is an alias.  */
 
18285
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
18286
choke me
 
18287
#else
 
18288
char (*f) () = dlopen;
 
18289
#endif
 
18290
#ifdef __cplusplus
 
18291
}
 
18292
#endif
 
18293
 
 
18294
int
 
18295
main ()
 
18296
{
 
18297
return f != dlopen;
 
18298
  ;
 
18299
  return 0;
 
18300
}
 
18301
_ACEOF
 
18302
rm -f conftest.$ac_objext conftest$ac_exeext
 
18303
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18304
  (eval $ac_link) 2>conftest.er1
 
18305
  ac_status=$?
 
18306
  grep -v '^ *+' conftest.er1 >conftest.err
 
18307
  rm -f conftest.er1
 
18308
  cat conftest.err >&5
 
18309
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18310
  (exit $ac_status); } &&
 
18311
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18312
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18313
  (eval $ac_try) 2>&5
 
18314
  ac_status=$?
 
18315
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18316
  (exit $ac_status); }; } &&
 
18317
         { ac_try='test -s conftest$ac_exeext'
 
18318
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18319
  (eval $ac_try) 2>&5
 
18320
  ac_status=$?
 
18321
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18322
  (exit $ac_status); }; }; then
 
18323
  ac_cv_func_dlopen=yes
 
18324
else
 
18325
  echo "$as_me: failed program was:" >&5
 
18326
sed 's/^/| /' conftest.$ac_ext >&5
 
18327
 
 
18328
ac_cv_func_dlopen=no
 
18329
fi
 
18330
rm -f conftest.err conftest.$ac_objext \
 
18331
      conftest$ac_exeext conftest.$ac_ext
 
18332
fi
 
18333
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
18334
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
18335
if test $ac_cv_func_dlopen = yes; then
 
18336
  lt_cv_dlopen="dlopen"
 
18337
else
 
18338
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
18339
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
18340
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
18341
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18342
else
 
18343
  ac_check_lib_save_LIBS=$LIBS
 
18344
LIBS="-ldl  $LIBS"
 
18345
cat >conftest.$ac_ext <<_ACEOF
 
18346
/* confdefs.h.  */
 
18347
_ACEOF
 
18348
cat confdefs.h >>conftest.$ac_ext
 
18349
cat >>conftest.$ac_ext <<_ACEOF
 
18350
/* end confdefs.h.  */
 
18351
 
 
18352
/* Override any gcc2 internal prototype to avoid an error.  */
 
18353
#ifdef __cplusplus
 
18354
extern "C"
 
18355
#endif
 
18356
/* We use char because int might match the return type of a gcc2
 
18357
   builtin and then its argument prototype would still apply.  */
 
18358
char dlopen ();
 
18359
int
 
18360
main ()
 
18361
{
 
18362
dlopen ();
 
18363
  ;
 
18364
  return 0;
 
18365
}
 
18366
_ACEOF
 
18367
rm -f conftest.$ac_objext conftest$ac_exeext
 
18368
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18369
  (eval $ac_link) 2>conftest.er1
 
18370
  ac_status=$?
 
18371
  grep -v '^ *+' conftest.er1 >conftest.err
 
18372
  rm -f conftest.er1
 
18373
  cat conftest.err >&5
 
18374
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18375
  (exit $ac_status); } &&
 
18376
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18377
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18378
  (eval $ac_try) 2>&5
 
18379
  ac_status=$?
 
18380
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18381
  (exit $ac_status); }; } &&
 
18382
         { ac_try='test -s conftest$ac_exeext'
 
18383
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18384
  (eval $ac_try) 2>&5
 
18385
  ac_status=$?
 
18386
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18387
  (exit $ac_status); }; }; then
 
18388
  ac_cv_lib_dl_dlopen=yes
 
18389
else
 
18390
  echo "$as_me: failed program was:" >&5
 
18391
sed 's/^/| /' conftest.$ac_ext >&5
 
18392
 
 
18393
ac_cv_lib_dl_dlopen=no
 
18394
fi
 
18395
rm -f conftest.err conftest.$ac_objext \
 
18396
      conftest$ac_exeext conftest.$ac_ext
 
18397
LIBS=$ac_check_lib_save_LIBS
 
18398
fi
 
18399
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
18400
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
18401
if test $ac_cv_lib_dl_dlopen = yes; then
 
18402
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
18403
else
 
18404
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
18405
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
18406
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
18407
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18408
else
 
18409
  ac_check_lib_save_LIBS=$LIBS
 
18410
LIBS="-lsvld  $LIBS"
 
18411
cat >conftest.$ac_ext <<_ACEOF
 
18412
/* confdefs.h.  */
 
18413
_ACEOF
 
18414
cat confdefs.h >>conftest.$ac_ext
 
18415
cat >>conftest.$ac_ext <<_ACEOF
 
18416
/* end confdefs.h.  */
 
18417
 
 
18418
/* Override any gcc2 internal prototype to avoid an error.  */
 
18419
#ifdef __cplusplus
 
18420
extern "C"
 
18421
#endif
 
18422
/* We use char because int might match the return type of a gcc2
 
18423
   builtin and then its argument prototype would still apply.  */
 
18424
char dlopen ();
 
18425
int
 
18426
main ()
 
18427
{
 
18428
dlopen ();
 
18429
  ;
 
18430
  return 0;
 
18431
}
 
18432
_ACEOF
 
18433
rm -f conftest.$ac_objext conftest$ac_exeext
 
18434
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18435
  (eval $ac_link) 2>conftest.er1
 
18436
  ac_status=$?
 
18437
  grep -v '^ *+' conftest.er1 >conftest.err
 
18438
  rm -f conftest.er1
 
18439
  cat conftest.err >&5
 
18440
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18441
  (exit $ac_status); } &&
 
18442
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18443
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18444
  (eval $ac_try) 2>&5
 
18445
  ac_status=$?
 
18446
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18447
  (exit $ac_status); }; } &&
 
18448
         { ac_try='test -s conftest$ac_exeext'
 
18449
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18450
  (eval $ac_try) 2>&5
 
18451
  ac_status=$?
 
18452
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18453
  (exit $ac_status); }; }; then
 
18454
  ac_cv_lib_svld_dlopen=yes
 
18455
else
 
18456
  echo "$as_me: failed program was:" >&5
 
18457
sed 's/^/| /' conftest.$ac_ext >&5
 
18458
 
 
18459
ac_cv_lib_svld_dlopen=no
 
18460
fi
 
18461
rm -f conftest.err conftest.$ac_objext \
 
18462
      conftest$ac_exeext conftest.$ac_ext
 
18463
LIBS=$ac_check_lib_save_LIBS
 
18464
fi
 
18465
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
18466
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
18467
if test $ac_cv_lib_svld_dlopen = yes; then
 
18468
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
18469
else
 
18470
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
18471
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
18472
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
18473
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18474
else
 
18475
  ac_check_lib_save_LIBS=$LIBS
 
18476
LIBS="-ldld  $LIBS"
 
18477
cat >conftest.$ac_ext <<_ACEOF
 
18478
/* confdefs.h.  */
 
18479
_ACEOF
 
18480
cat confdefs.h >>conftest.$ac_ext
 
18481
cat >>conftest.$ac_ext <<_ACEOF
 
18482
/* end confdefs.h.  */
 
18483
 
 
18484
/* Override any gcc2 internal prototype to avoid an error.  */
 
18485
#ifdef __cplusplus
 
18486
extern "C"
 
18487
#endif
 
18488
/* We use char because int might match the return type of a gcc2
 
18489
   builtin and then its argument prototype would still apply.  */
 
18490
char dld_link ();
 
18491
int
 
18492
main ()
 
18493
{
 
18494
dld_link ();
 
18495
  ;
 
18496
  return 0;
 
18497
}
 
18498
_ACEOF
 
18499
rm -f conftest.$ac_objext conftest$ac_exeext
 
18500
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18501
  (eval $ac_link) 2>conftest.er1
 
18502
  ac_status=$?
 
18503
  grep -v '^ *+' conftest.er1 >conftest.err
 
18504
  rm -f conftest.er1
 
18505
  cat conftest.err >&5
 
18506
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18507
  (exit $ac_status); } &&
 
18508
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18509
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18510
  (eval $ac_try) 2>&5
 
18511
  ac_status=$?
 
18512
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18513
  (exit $ac_status); }; } &&
 
18514
         { ac_try='test -s conftest$ac_exeext'
 
18515
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18516
  (eval $ac_try) 2>&5
 
18517
  ac_status=$?
 
18518
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18519
  (exit $ac_status); }; }; then
 
18520
  ac_cv_lib_dld_dld_link=yes
 
18521
else
 
18522
  echo "$as_me: failed program was:" >&5
 
18523
sed 's/^/| /' conftest.$ac_ext >&5
 
18524
 
 
18525
ac_cv_lib_dld_dld_link=no
 
18526
fi
 
18527
rm -f conftest.err conftest.$ac_objext \
 
18528
      conftest$ac_exeext conftest.$ac_ext
 
18529
LIBS=$ac_check_lib_save_LIBS
 
18530
fi
 
18531
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
18532
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
18533
if test $ac_cv_lib_dld_dld_link = yes; then
 
18534
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
18535
fi
 
18536
 
 
18537
              
 
18538
fi
 
18539
 
 
18540
            
 
18541
fi
 
18542
 
 
18543
          
 
18544
fi
 
18545
 
 
18546
        
 
18547
fi
 
18548
 
 
18549
      
 
18550
fi
 
18551
 
 
18552
    ;;
 
18553
  esac
 
18554
 
 
18555
  if test "x$lt_cv_dlopen" != xno; then
 
18556
    enable_dlopen=yes
 
18557
  else
 
18558
    enable_dlopen=no
 
18559
  fi
 
18560
 
 
18561
  case $lt_cv_dlopen in
 
18562
  dlopen)
 
18563
    save_CPPFLAGS="$CPPFLAGS"
 
18564
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
18565
 
 
18566
    save_LDFLAGS="$LDFLAGS"
 
18567
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
18568
 
 
18569
    save_LIBS="$LIBS"
 
18570
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
18571
 
 
18572
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
18573
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
18574
if test "${lt_cv_dlopen_self+set}" = set; then
 
18575
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18576
else
 
18577
          if test "$cross_compiling" = yes; then :
 
18578
  lt_cv_dlopen_self=cross
 
18579
else
 
18580
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
18581
  lt_status=$lt_dlunknown
 
18582
  cat > conftest.$ac_ext <<EOF
 
18583
#line __oline__ "configure"
 
18584
#include "confdefs.h"
 
18585
 
 
18586
#if HAVE_DLFCN_H
 
18587
#include <dlfcn.h>
 
18588
#endif
 
18589
 
 
18590
#include <stdio.h>
 
18591
 
 
18592
#ifdef RTLD_GLOBAL
 
18593
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
18594
#else
 
18595
#  ifdef DL_GLOBAL
 
18596
#    define LT_DLGLOBAL         DL_GLOBAL
 
18597
#  else
 
18598
#    define LT_DLGLOBAL         0
 
18599
#  endif
 
18600
#endif
 
18601
 
 
18602
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
18603
   find out it does not work in some platform. */
 
18604
#ifndef LT_DLLAZY_OR_NOW
 
18605
#  ifdef RTLD_LAZY
 
18606
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
18607
#  else
 
18608
#    ifdef DL_LAZY
 
18609
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
18610
#    else
 
18611
#      ifdef RTLD_NOW
 
18612
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
18613
#      else
 
18614
#        ifdef DL_NOW
 
18615
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
18616
#        else
 
18617
#          define LT_DLLAZY_OR_NOW      0
 
18618
#        endif
 
18619
#      endif
 
18620
#    endif
 
18621
#  endif
 
18622
#endif
 
18623
 
 
18624
#ifdef __cplusplus
 
18625
extern "C" void exit (int);
 
18626
#endif
 
18627
 
 
18628
void fnord() { int i=42;}
 
18629
int main ()
 
18630
{
 
18631
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
18632
  int status = $lt_dlunknown;
 
18633
 
 
18634
  if (self)
 
18635
    {
 
18636
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
18637
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
18638
      /* dlclose (self); */
 
18639
    }
 
18640
 
 
18641
    exit (status);
 
18642
}
 
18643
EOF
 
18644
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18645
  (eval $ac_link) 2>&5
 
18646
  ac_status=$?
 
18647
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18648
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
18649
    (./conftest; exit; ) >&5 2>/dev/null
 
18650
    lt_status=$?
 
18651
    case x$lt_status in
 
18652
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
18653
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
18654
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
18655
    esac
 
18656
  else :
 
18657
    # compilation failed
 
18658
    lt_cv_dlopen_self=no
 
18659
  fi
 
18660
fi
 
18661
rm -fr conftest*
 
18662
 
 
18663
    
 
18664
fi
 
18665
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
18666
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
18667
 
 
18668
    if test "x$lt_cv_dlopen_self" = xyes; then
 
18669
      LDFLAGS="$LDFLAGS $link_static_flag"
 
18670
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
18671
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
18672
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
18673
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18674
else
 
18675
          if test "$cross_compiling" = yes; then :
 
18676
  lt_cv_dlopen_self_static=cross
 
18677
else
 
18678
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
18679
  lt_status=$lt_dlunknown
 
18680
  cat > conftest.$ac_ext <<EOF
 
18681
#line __oline__ "configure"
 
18682
#include "confdefs.h"
 
18683
 
 
18684
#if HAVE_DLFCN_H
 
18685
#include <dlfcn.h>
 
18686
#endif
 
18687
 
 
18688
#include <stdio.h>
 
18689
 
 
18690
#ifdef RTLD_GLOBAL
 
18691
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
18692
#else
 
18693
#  ifdef DL_GLOBAL
 
18694
#    define LT_DLGLOBAL         DL_GLOBAL
 
18695
#  else
 
18696
#    define LT_DLGLOBAL         0
 
18697
#  endif
 
18698
#endif
 
18699
 
 
18700
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
18701
   find out it does not work in some platform. */
 
18702
#ifndef LT_DLLAZY_OR_NOW
 
18703
#  ifdef RTLD_LAZY
 
18704
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
18705
#  else
 
18706
#    ifdef DL_LAZY
 
18707
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
18708
#    else
 
18709
#      ifdef RTLD_NOW
 
18710
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
18711
#      else
 
18712
#        ifdef DL_NOW
 
18713
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
18714
#        else
 
18715
#          define LT_DLLAZY_OR_NOW      0
 
18716
#        endif
 
18717
#      endif
 
18718
#    endif
 
18719
#  endif
 
18720
#endif
 
18721
 
 
18722
#ifdef __cplusplus
 
18723
extern "C" void exit (int);
 
18724
#endif
 
18725
 
 
18726
void fnord() { int i=42;}
 
18727
int main ()
 
18728
{
 
18729
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
18730
  int status = $lt_dlunknown;
 
18731
 
 
18732
  if (self)
 
18733
    {
 
18734
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
18735
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
18736
      /* dlclose (self); */
 
18737
    }
 
18738
 
 
18739
    exit (status);
 
18740
}
 
18741
EOF
 
18742
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18743
  (eval $ac_link) 2>&5
 
18744
  ac_status=$?
 
18745
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18746
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
18747
    (./conftest; exit; ) >&5 2>/dev/null
 
18748
    lt_status=$?
 
18749
    case x$lt_status in
 
18750
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
18751
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
18752
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
18753
    esac
 
18754
  else :
 
18755
    # compilation failed
 
18756
    lt_cv_dlopen_self_static=no
 
18757
  fi
 
18758
fi
 
18759
rm -fr conftest*
 
18760
 
 
18761
      
 
18762
fi
 
18763
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
18764
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
18765
    fi
 
18766
 
 
18767
    CPPFLAGS="$save_CPPFLAGS"
 
18768
    LDFLAGS="$save_LDFLAGS"
 
18769
    LIBS="$save_LIBS"
 
18770
    ;;
 
18771
  esac
 
18772
 
 
18773
  case $lt_cv_dlopen_self in
 
18774
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
18775
  *) enable_dlopen_self=unknown ;;
 
18776
  esac
 
18777
 
 
18778
  case $lt_cv_dlopen_self_static in
 
18779
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
18780
  *) enable_dlopen_self_static=unknown ;;
 
18781
  esac
 
18782
fi
 
18783
 
 
18784
 
 
18785
# The else clause should only fire when bootstrapping the
 
18786
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
18787
# with your package, and you will get complaints that there are
 
18788
# no rules to generate ltmain.sh.
 
18789
if test -f "$ltmain"; then
 
18790
  # See if we are running on zsh, and set the options which allow our commands through
 
18791
  # without removal of \ escapes.
 
18792
  if test -n "${ZSH_VERSION+set}" ; then
 
18793
    setopt NO_GLOB_SUBST
 
18794
  fi
 
18795
  # Now quote all the things that may contain metacharacters while being
 
18796
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
18797
  # variables and quote the copies for generation of the libtool script.
 
18798
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
18799
    SED SHELL STRIP \
 
18800
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
18801
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
18802
    deplibs_check_method reload_flag reload_cmds need_locks \
 
18803
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
18804
    lt_cv_sys_global_symbol_to_c_name_address \
 
18805
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
18806
    old_postinstall_cmds old_postuninstall_cmds \
 
18807
    compiler_GCJ \
 
18808
    CC_GCJ \
 
18809
    LD_GCJ \
 
18810
    lt_prog_compiler_wl_GCJ \
 
18811
    lt_prog_compiler_pic_GCJ \
 
18812
    lt_prog_compiler_static_GCJ \
 
18813
    lt_prog_compiler_no_builtin_flag_GCJ \
 
18814
    export_dynamic_flag_spec_GCJ \
 
18815
    thread_safe_flag_spec_GCJ \
 
18816
    whole_archive_flag_spec_GCJ \
 
18817
    enable_shared_with_static_runtimes_GCJ \
 
18818
    old_archive_cmds_GCJ \
 
18819
    old_archive_from_new_cmds_GCJ \
 
18820
    predep_objects_GCJ \
 
18821
    postdep_objects_GCJ \
 
18822
    predeps_GCJ \
 
18823
    postdeps_GCJ \
 
18824
    compiler_lib_search_path_GCJ \
 
18825
    archive_cmds_GCJ \
 
18826
    archive_expsym_cmds_GCJ \
 
18827
    postinstall_cmds_GCJ \
 
18828
    postuninstall_cmds_GCJ \
 
18829
    old_archive_from_expsyms_cmds_GCJ \
 
18830
    allow_undefined_flag_GCJ \
 
18831
    no_undefined_flag_GCJ \
 
18832
    export_symbols_cmds_GCJ \
 
18833
    hardcode_libdir_flag_spec_GCJ \
 
18834
    hardcode_libdir_flag_spec_ld_GCJ \
 
18835
    hardcode_libdir_separator_GCJ \
 
18836
    hardcode_automatic_GCJ \
 
18837
    module_cmds_GCJ \
 
18838
    module_expsym_cmds_GCJ \
 
18839
    lt_cv_prog_compiler_c_o_GCJ \
 
18840
    exclude_expsyms_GCJ \
 
18841
    include_expsyms_GCJ; do
 
18842
 
 
18843
    case $var in
 
18844
    old_archive_cmds_GCJ | \
 
18845
    old_archive_from_new_cmds_GCJ | \
 
18846
    archive_cmds_GCJ | \
 
18847
    archive_expsym_cmds_GCJ | \
 
18848
    module_cmds_GCJ | \
 
18849
    module_expsym_cmds_GCJ | \
 
18850
    old_archive_from_expsyms_cmds_GCJ | \
 
18851
    export_symbols_cmds_GCJ | \
 
18852
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
18853
    postinstall_cmds | postuninstall_cmds | \
 
18854
    old_postinstall_cmds | old_postuninstall_cmds | \
 
18855
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
18856
      # Double-quote double-evaled strings.
 
18857
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
18858
      ;;
 
18859
    *)
 
18860
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
18861
      ;;
 
18862
    esac
 
18863
  done
 
18864
 
 
18865
  case $lt_echo in
 
18866
  *'\$0 --fallback-echo"')
 
18867
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
18868
    ;;
 
18869
  esac
 
18870
 
 
18871
cfgfile="$ofile"
 
18872
 
 
18873
  cat <<__EOF__ >> "$cfgfile"
 
18874
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
18875
 
 
18876
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
18877
 
 
18878
# Shell to use when invoking shell scripts.
 
18879
SHELL=$lt_SHELL
 
18880
 
 
18881
# Whether or not to build shared libraries.
 
18882
build_libtool_libs=$enable_shared
 
18883
 
 
18884
# Whether or not to build static libraries.
 
18885
build_old_libs=$enable_static
 
18886
 
 
18887
# Whether or not to add -lc for building shared libraries.
 
18888
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
 
18889
 
 
18890
# Whether or not to disallow shared libs when runtime libs are static
 
18891
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
 
18892
 
 
18893
# Whether or not to optimize for fast installation.
 
18894
fast_install=$enable_fast_install
 
18895
 
 
18896
# The host system.
 
18897
host_alias=$host_alias
 
18898
host=$host
 
18899
host_os=$host_os
 
18900
 
 
18901
# The build system.
 
18902
build_alias=$build_alias
 
18903
build=$build
 
18904
build_os=$build_os
 
18905
 
 
18906
# An echo program that does not interpret backslashes.
 
18907
echo=$lt_echo
 
18908
 
 
18909
# The archiver.
 
18910
AR=$lt_AR
 
18911
AR_FLAGS=$lt_AR_FLAGS
 
18912
 
 
18913
# A C compiler.
 
18914
LTCC=$lt_LTCC
 
18915
 
 
18916
# A language-specific compiler.
 
18917
CC=$lt_compiler_GCJ
 
18918
 
 
18919
# Is the compiler the GNU C compiler?
 
18920
with_gcc=$GCC_GCJ
 
18921
 
 
18922
# An ERE matcher.
 
18923
EGREP=$lt_EGREP
 
18924
 
 
18925
# The linker used to build libraries.
 
18926
LD=$lt_LD_GCJ
 
18927
 
 
18928
# Whether we need hard or soft links.
 
18929
LN_S=$lt_LN_S
 
18930
 
 
18931
# A BSD-compatible nm program.
 
18932
NM=$lt_NM
 
18933
 
 
18934
# A symbol stripping program
 
18935
STRIP=$lt_STRIP
 
18936
 
 
18937
# Used to examine libraries when file_magic_cmd begins "file"
 
18938
MAGIC_CMD=$MAGIC_CMD
 
18939
 
 
18940
# Used on cygwin: DLL creation program.
 
18941
DLLTOOL="$DLLTOOL"
 
18942
 
 
18943
# Used on cygwin: object dumper.
 
18944
OBJDUMP="$OBJDUMP"
 
18945
 
 
18946
# Used on cygwin: assembler.
 
18947
AS="$AS"
 
18948
 
 
18949
# The name of the directory that contains temporary libtool files.
 
18950
objdir=$objdir
 
18951
 
 
18952
# How to create reloadable object files.
 
18953
reload_flag=$lt_reload_flag
 
18954
reload_cmds=$lt_reload_cmds
 
18955
 
 
18956
# How to pass a linker flag through the compiler.
 
18957
wl=$lt_lt_prog_compiler_wl_GCJ
 
18958
 
 
18959
# Object file suffix (normally "o").
 
18960
objext="$ac_objext"
 
18961
 
 
18962
# Old archive suffix (normally "a").
 
18963
libext="$libext"
 
18964
 
 
18965
# Shared library suffix (normally ".so").
 
18966
shrext_cmds='$shrext_cmds'
 
18967
 
 
18968
# Executable file suffix (normally "").
 
18969
exeext="$exeext"
 
18970
 
 
18971
# Additional compiler flags for building library objects.
 
18972
pic_flag=$lt_lt_prog_compiler_pic_GCJ
 
18973
pic_mode=$pic_mode
 
18974
 
 
18975
# What is the maximum length of a command?
 
18976
max_cmd_len=$lt_cv_sys_max_cmd_len
 
18977
 
 
18978
# Does compiler simultaneously support -c and -o options?
 
18979
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
 
18980
 
 
18981
# Must we lock files when doing compilation?
 
18982
need_locks=$lt_need_locks
 
18983
 
 
18984
# Do we need the lib prefix for modules?
 
18985
need_lib_prefix=$need_lib_prefix
 
18986
 
 
18987
# Do we need a version for libraries?
 
18988
need_version=$need_version
 
18989
 
 
18990
# Whether dlopen is supported.
 
18991
dlopen_support=$enable_dlopen
 
18992
 
 
18993
# Whether dlopen of programs is supported.
 
18994
dlopen_self=$enable_dlopen_self
 
18995
 
 
18996
# Whether dlopen of statically linked programs is supported.
 
18997
dlopen_self_static=$enable_dlopen_self_static
 
18998
 
 
18999
# Compiler flag to prevent dynamic linking.
 
19000
link_static_flag=$lt_lt_prog_compiler_static_GCJ
 
19001
 
 
19002
# Compiler flag to turn off builtin functions.
 
19003
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
 
19004
 
 
19005
# Compiler flag to allow reflexive dlopens.
 
19006
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
 
19007
 
 
19008
# Compiler flag to generate shared objects directly from archives.
 
19009
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
 
19010
 
 
19011
# Compiler flag to generate thread-safe objects.
 
19012
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
 
19013
 
 
19014
# Library versioning type.
 
19015
version_type=$version_type
 
19016
 
 
19017
# Format of library name prefix.
 
19018
libname_spec=$lt_libname_spec
 
19019
 
 
19020
# List of archive names.  First name is the real one, the rest are links.
 
19021
# The last name is the one that the linker finds with -lNAME.
 
19022
library_names_spec=$lt_library_names_spec
 
19023
 
 
19024
# The coded name of the library, if different from the real name.
 
19025
soname_spec=$lt_soname_spec
 
19026
 
 
19027
# Commands used to build and install an old-style archive.
 
19028
RANLIB=$lt_RANLIB
 
19029
old_archive_cmds=$lt_old_archive_cmds_GCJ
 
19030
old_postinstall_cmds=$lt_old_postinstall_cmds
 
19031
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
19032
 
 
19033
# Create an old-style archive from a shared archive.
 
19034
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
 
19035
 
 
19036
# Create a temporary old-style archive to link instead of a shared archive.
 
19037
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
 
19038
 
 
19039
# Commands used to build and install a shared archive.
 
19040
archive_cmds=$lt_archive_cmds_GCJ
 
19041
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
 
19042
postinstall_cmds=$lt_postinstall_cmds
 
19043
postuninstall_cmds=$lt_postuninstall_cmds
 
19044
 
 
19045
# Commands used to build a loadable module (assumed same as above if empty)
 
19046
module_cmds=$lt_module_cmds_GCJ
 
19047
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
 
19048
 
 
19049
# Commands to strip libraries.
 
19050
old_striplib=$lt_old_striplib
 
19051
striplib=$lt_striplib
 
19052
 
 
19053
# Dependencies to place before the objects being linked to create a
 
19054
# shared library.
 
19055
predep_objects=$lt_predep_objects_GCJ
 
19056
 
 
19057
# Dependencies to place after the objects being linked to create a
 
19058
# shared library.
 
19059
postdep_objects=$lt_postdep_objects_GCJ
 
19060
 
 
19061
# Dependencies to place before the objects being linked to create a
 
19062
# shared library.
 
19063
predeps=$lt_predeps_GCJ
 
19064
 
 
19065
# Dependencies to place after the objects being linked to create a
 
19066
# shared library.
 
19067
postdeps=$lt_postdeps_GCJ
 
19068
 
 
19069
# The library search path used internally by the compiler when linking
 
19070
# a shared library.
 
19071
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
 
19072
 
 
19073
# Method to check whether dependent libraries are shared objects.
 
19074
deplibs_check_method=$lt_deplibs_check_method
 
19075
 
 
19076
# Command to use when deplibs_check_method == file_magic.
 
19077
file_magic_cmd=$lt_file_magic_cmd
 
19078
 
 
19079
# Flag that allows shared libraries with undefined symbols to be built.
 
19080
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
 
19081
 
 
19082
# Flag that forces no undefined symbols.
 
19083
no_undefined_flag=$lt_no_undefined_flag_GCJ
 
19084
 
 
19085
# Commands used to finish a libtool library installation in a directory.
 
19086
finish_cmds=$lt_finish_cmds
 
19087
 
 
19088
# Same as above, but a single script fragment to be evaled but not shown.
 
19089
finish_eval=$lt_finish_eval
 
19090
 
 
19091
# Take the output of nm and produce a listing of raw symbols and C names.
 
19092
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
19093
 
 
19094
# Transform the output of nm in a proper C declaration
 
19095
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
19096
 
 
19097
# Transform the output of nm in a C name address pair
 
19098
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
19099
 
 
19100
# This is the shared library runtime path variable.
 
19101
runpath_var=$runpath_var
 
19102
 
 
19103
# This is the shared library path variable.
 
19104
shlibpath_var=$shlibpath_var
 
19105
 
 
19106
# Is shlibpath searched before the hard-coded library search path?
 
19107
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
19108
 
 
19109
# How to hardcode a shared library path into an executable.
 
19110
hardcode_action=$hardcode_action_GCJ
 
19111
 
 
19112
# Whether we should hardcode library paths into libraries.
 
19113
hardcode_into_libs=$hardcode_into_libs
 
19114
 
 
19115
# Flag to hardcode \$libdir into a binary during linking.
 
19116
# This must work even if \$libdir does not exist.
 
19117
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
 
19118
 
 
19119
# If ld is used when linking, flag to hardcode \$libdir into
 
19120
# a binary during linking. This must work even if \$libdir does
 
19121
# not exist.
 
19122
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
 
19123
 
 
19124
# Whether we need a single -rpath flag with a separated argument.
 
19125
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
 
19126
 
 
19127
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
19128
# resulting binary.
 
19129
hardcode_direct=$hardcode_direct_GCJ
 
19130
 
 
19131
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
19132
# resulting binary.
 
19133
hardcode_minus_L=$hardcode_minus_L_GCJ
 
19134
 
 
19135
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
19136
# the resulting binary.
 
19137
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
 
19138
 
 
19139
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
19140
# and all subsequent libraries and executables linked against it.
 
19141
hardcode_automatic=$hardcode_automatic_GCJ
 
19142
 
 
19143
# Variables whose values should be saved in libtool wrapper scripts and
 
19144
# restored at relink time.
 
19145
variables_saved_for_relink="$variables_saved_for_relink"
 
19146
 
 
19147
# Whether libtool must link a program against all its dependency libraries.
 
19148
link_all_deplibs=$link_all_deplibs_GCJ
 
19149
 
 
19150
# Compile-time system search path for libraries
 
19151
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
19152
 
 
19153
# Run-time system search path for libraries
 
19154
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
19155
 
 
19156
# Fix the shell variable \$srcfile for the compiler.
 
19157
fix_srcfile_path="$fix_srcfile_path_GCJ"
 
19158
 
 
19159
# Set to yes if exported symbols are required.
 
19160
always_export_symbols=$always_export_symbols_GCJ
 
19161
 
 
19162
# The commands to list exported symbols.
 
19163
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
 
19164
 
 
19165
# The commands to extract the exported symbol list from a shared archive.
 
19166
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
19167
 
 
19168
# Symbols that should not be listed in the preloaded symbols.
 
19169
exclude_expsyms=$lt_exclude_expsyms_GCJ
 
19170
 
 
19171
# Symbols that must always be exported.
 
19172
include_expsyms=$lt_include_expsyms_GCJ
 
19173
 
 
19174
# ### END LIBTOOL TAG CONFIG: $tagname
 
19175
 
 
19176
__EOF__
 
19177
 
 
19178
 
 
19179
else
 
19180
  # If there is no Makefile yet, we rely on a make rule to execute
 
19181
  # `config.status --recheck' to rerun these tests and create the
 
19182
  # libtool script then.
 
19183
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
19184
  if test -f "$ltmain_in"; then
 
19185
    test -f Makefile && make "$ltmain"
 
19186
  fi
 
19187
fi
 
19188
 
 
19189
 
 
19190
ac_ext=c
 
19191
ac_cpp='$CPP $CPPFLAGS'
 
19192
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19193
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19194
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19195
 
 
19196
CC="$lt_save_CC"
 
19197
 
 
19198
        else
 
19199
          tagname=""
 
19200
        fi
 
19201
        ;;
 
19202
 
 
19203
      RC)
 
19204
        
 
19205
 
 
19206
 
 
19207
# Source file extension for RC test sources.
 
19208
ac_ext=rc
 
19209
 
 
19210
# Object file extension for compiled RC test sources.
 
19211
objext=o
 
19212
objext_RC=$objext
 
19213
 
 
19214
# Code to be used in simple compile tests
 
19215
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
19216
 
 
19217
# Code to be used in simple link tests
 
19218
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
19219
 
 
19220
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
19221
 
 
19222
# If no C compiler was specified, use CC.
 
19223
LTCC=${LTCC-"$CC"}
 
19224
 
 
19225
# Allow CC to be a program name with arguments.
 
19226
compiler=$CC
 
19227
 
 
19228
 
 
19229
# save warnings/boilerplate of simple test code
 
19230
ac_outfile=conftest.$ac_objext
 
19231
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
 
19232
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
19233
_lt_compiler_boilerplate=`cat conftest.err`
 
19234
$rm conftest*
 
19235
 
 
19236
ac_outfile=conftest.$ac_objext
 
19237
printf "$lt_simple_link_test_code" >conftest.$ac_ext
 
19238
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
 
19239
_lt_linker_boilerplate=`cat conftest.err`
 
19240
$rm conftest*
 
19241
 
 
19242
 
 
19243
# Allow CC to be a program name with arguments.
 
19244
lt_save_CC="$CC"
 
19245
CC=${RC-"windres"}
 
19246
compiler=$CC
 
19247
compiler_RC=$CC
 
19248
for cc_temp in $compiler""; do
 
19249
  case $cc_temp in
 
19250
    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
 
19251
    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
 
19252
    \-*) ;;
 
19253
    *) break;;
 
19254
  esac
 
19255
done
 
19256
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
 
19257
 
 
19258
lt_cv_prog_compiler_c_o_RC=yes
 
19259
 
 
19260
# The else clause should only fire when bootstrapping the
 
19261
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
19262
# with your package, and you will get complaints that there are
 
19263
# no rules to generate ltmain.sh.
 
19264
if test -f "$ltmain"; then
 
19265
  # See if we are running on zsh, and set the options which allow our commands through
 
19266
  # without removal of \ escapes.
 
19267
  if test -n "${ZSH_VERSION+set}" ; then
 
19268
    setopt NO_GLOB_SUBST
 
19269
  fi
 
19270
  # Now quote all the things that may contain metacharacters while being
 
19271
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
19272
  # variables and quote the copies for generation of the libtool script.
 
19273
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
19274
    SED SHELL STRIP \
 
19275
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
19276
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
19277
    deplibs_check_method reload_flag reload_cmds need_locks \
 
19278
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
19279
    lt_cv_sys_global_symbol_to_c_name_address \
 
19280
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
19281
    old_postinstall_cmds old_postuninstall_cmds \
 
19282
    compiler_RC \
 
19283
    CC_RC \
 
19284
    LD_RC \
 
19285
    lt_prog_compiler_wl_RC \
 
19286
    lt_prog_compiler_pic_RC \
 
19287
    lt_prog_compiler_static_RC \
 
19288
    lt_prog_compiler_no_builtin_flag_RC \
 
19289
    export_dynamic_flag_spec_RC \
 
19290
    thread_safe_flag_spec_RC \
 
19291
    whole_archive_flag_spec_RC \
 
19292
    enable_shared_with_static_runtimes_RC \
 
19293
    old_archive_cmds_RC \
 
19294
    old_archive_from_new_cmds_RC \
 
19295
    predep_objects_RC \
 
19296
    postdep_objects_RC \
 
19297
    predeps_RC \
 
19298
    postdeps_RC \
 
19299
    compiler_lib_search_path_RC \
 
19300
    archive_cmds_RC \
 
19301
    archive_expsym_cmds_RC \
 
19302
    postinstall_cmds_RC \
 
19303
    postuninstall_cmds_RC \
 
19304
    old_archive_from_expsyms_cmds_RC \
 
19305
    allow_undefined_flag_RC \
 
19306
    no_undefined_flag_RC \
 
19307
    export_symbols_cmds_RC \
 
19308
    hardcode_libdir_flag_spec_RC \
 
19309
    hardcode_libdir_flag_spec_ld_RC \
 
19310
    hardcode_libdir_separator_RC \
 
19311
    hardcode_automatic_RC \
 
19312
    module_cmds_RC \
 
19313
    module_expsym_cmds_RC \
 
19314
    lt_cv_prog_compiler_c_o_RC \
 
19315
    exclude_expsyms_RC \
 
19316
    include_expsyms_RC; do
 
19317
 
 
19318
    case $var in
 
19319
    old_archive_cmds_RC | \
 
19320
    old_archive_from_new_cmds_RC | \
 
19321
    archive_cmds_RC | \
 
19322
    archive_expsym_cmds_RC | \
 
19323
    module_cmds_RC | \
 
19324
    module_expsym_cmds_RC | \
 
19325
    old_archive_from_expsyms_cmds_RC | \
 
19326
    export_symbols_cmds_RC | \
 
19327
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
19328
    postinstall_cmds | postuninstall_cmds | \
 
19329
    old_postinstall_cmds | old_postuninstall_cmds | \
 
19330
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
19331
      # Double-quote double-evaled strings.
 
19332
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
19333
      ;;
 
19334
    *)
 
19335
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
19336
      ;;
 
19337
    esac
 
19338
  done
 
19339
 
 
19340
  case $lt_echo in
 
19341
  *'\$0 --fallback-echo"')
 
19342
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
19343
    ;;
 
19344
  esac
 
19345
 
 
19346
cfgfile="$ofile"
 
19347
 
 
19348
  cat <<__EOF__ >> "$cfgfile"
 
19349
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
19350
 
 
19351
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
19352
 
 
19353
# Shell to use when invoking shell scripts.
 
19354
SHELL=$lt_SHELL
 
19355
 
 
19356
# Whether or not to build shared libraries.
 
19357
build_libtool_libs=$enable_shared
 
19358
 
 
19359
# Whether or not to build static libraries.
 
19360
build_old_libs=$enable_static
 
19361
 
 
19362
# Whether or not to add -lc for building shared libraries.
 
19363
build_libtool_need_lc=$archive_cmds_need_lc_RC
 
19364
 
 
19365
# Whether or not to disallow shared libs when runtime libs are static
 
19366
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
 
19367
 
 
19368
# Whether or not to optimize for fast installation.
 
19369
fast_install=$enable_fast_install
 
19370
 
 
19371
# The host system.
 
19372
host_alias=$host_alias
 
19373
host=$host
 
19374
host_os=$host_os
 
19375
 
 
19376
# The build system.
 
19377
build_alias=$build_alias
 
19378
build=$build
 
19379
build_os=$build_os
 
19380
 
 
19381
# An echo program that does not interpret backslashes.
 
19382
echo=$lt_echo
 
19383
 
 
19384
# The archiver.
 
19385
AR=$lt_AR
 
19386
AR_FLAGS=$lt_AR_FLAGS
 
19387
 
 
19388
# A C compiler.
 
19389
LTCC=$lt_LTCC
 
19390
 
 
19391
# A language-specific compiler.
 
19392
CC=$lt_compiler_RC
 
19393
 
 
19394
# Is the compiler the GNU C compiler?
 
19395
with_gcc=$GCC_RC
 
19396
 
 
19397
# An ERE matcher.
 
19398
EGREP=$lt_EGREP
 
19399
 
 
19400
# The linker used to build libraries.
 
19401
LD=$lt_LD_RC
 
19402
 
 
19403
# Whether we need hard or soft links.
 
19404
LN_S=$lt_LN_S
 
19405
 
 
19406
# A BSD-compatible nm program.
 
19407
NM=$lt_NM
 
19408
 
 
19409
# A symbol stripping program
 
19410
STRIP=$lt_STRIP
 
19411
 
 
19412
# Used to examine libraries when file_magic_cmd begins "file"
 
19413
MAGIC_CMD=$MAGIC_CMD
 
19414
 
 
19415
# Used on cygwin: DLL creation program.
 
19416
DLLTOOL="$DLLTOOL"
 
19417
 
 
19418
# Used on cygwin: object dumper.
 
19419
OBJDUMP="$OBJDUMP"
 
19420
 
 
19421
# Used on cygwin: assembler.
 
19422
AS="$AS"
 
19423
 
 
19424
# The name of the directory that contains temporary libtool files.
 
19425
objdir=$objdir
 
19426
 
 
19427
# How to create reloadable object files.
 
19428
reload_flag=$lt_reload_flag
 
19429
reload_cmds=$lt_reload_cmds
 
19430
 
 
19431
# How to pass a linker flag through the compiler.
 
19432
wl=$lt_lt_prog_compiler_wl_RC
 
19433
 
 
19434
# Object file suffix (normally "o").
 
19435
objext="$ac_objext"
 
19436
 
 
19437
# Old archive suffix (normally "a").
 
19438
libext="$libext"
 
19439
 
 
19440
# Shared library suffix (normally ".so").
 
19441
shrext_cmds='$shrext_cmds'
 
19442
 
 
19443
# Executable file suffix (normally "").
 
19444
exeext="$exeext"
 
19445
 
 
19446
# Additional compiler flags for building library objects.
 
19447
pic_flag=$lt_lt_prog_compiler_pic_RC
 
19448
pic_mode=$pic_mode
 
19449
 
 
19450
# What is the maximum length of a command?
 
19451
max_cmd_len=$lt_cv_sys_max_cmd_len
 
19452
 
 
19453
# Does compiler simultaneously support -c and -o options?
 
19454
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
 
19455
 
 
19456
# Must we lock files when doing compilation?
 
19457
need_locks=$lt_need_locks
 
19458
 
 
19459
# Do we need the lib prefix for modules?
 
19460
need_lib_prefix=$need_lib_prefix
 
19461
 
 
19462
# Do we need a version for libraries?
 
19463
need_version=$need_version
 
19464
 
 
19465
# Whether dlopen is supported.
 
19466
dlopen_support=$enable_dlopen
 
19467
 
 
19468
# Whether dlopen of programs is supported.
 
19469
dlopen_self=$enable_dlopen_self
 
19470
 
 
19471
# Whether dlopen of statically linked programs is supported.
 
19472
dlopen_self_static=$enable_dlopen_self_static
 
19473
 
 
19474
# Compiler flag to prevent dynamic linking.
 
19475
link_static_flag=$lt_lt_prog_compiler_static_RC
 
19476
 
 
19477
# Compiler flag to turn off builtin functions.
 
19478
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
 
19479
 
 
19480
# Compiler flag to allow reflexive dlopens.
 
19481
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
 
19482
 
 
19483
# Compiler flag to generate shared objects directly from archives.
 
19484
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
 
19485
 
 
19486
# Compiler flag to generate thread-safe objects.
 
19487
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
 
19488
 
 
19489
# Library versioning type.
 
19490
version_type=$version_type
 
19491
 
 
19492
# Format of library name prefix.
 
19493
libname_spec=$lt_libname_spec
 
19494
 
 
19495
# List of archive names.  First name is the real one, the rest are links.
 
19496
# The last name is the one that the linker finds with -lNAME.
 
19497
library_names_spec=$lt_library_names_spec
 
19498
 
 
19499
# The coded name of the library, if different from the real name.
 
19500
soname_spec=$lt_soname_spec
 
19501
 
 
19502
# Commands used to build and install an old-style archive.
 
19503
RANLIB=$lt_RANLIB
 
19504
old_archive_cmds=$lt_old_archive_cmds_RC
 
19505
old_postinstall_cmds=$lt_old_postinstall_cmds
 
19506
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
19507
 
 
19508
# Create an old-style archive from a shared archive.
 
19509
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
 
19510
 
 
19511
# Create a temporary old-style archive to link instead of a shared archive.
 
19512
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
 
19513
 
 
19514
# Commands used to build and install a shared archive.
 
19515
archive_cmds=$lt_archive_cmds_RC
 
19516
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
 
19517
postinstall_cmds=$lt_postinstall_cmds
 
19518
postuninstall_cmds=$lt_postuninstall_cmds
 
19519
 
 
19520
# Commands used to build a loadable module (assumed same as above if empty)
 
19521
module_cmds=$lt_module_cmds_RC
 
19522
module_expsym_cmds=$lt_module_expsym_cmds_RC
 
19523
 
 
19524
# Commands to strip libraries.
 
19525
old_striplib=$lt_old_striplib
 
19526
striplib=$lt_striplib
 
19527
 
 
19528
# Dependencies to place before the objects being linked to create a
 
19529
# shared library.
 
19530
predep_objects=$lt_predep_objects_RC
 
19531
 
 
19532
# Dependencies to place after the objects being linked to create a
 
19533
# shared library.
 
19534
postdep_objects=$lt_postdep_objects_RC
 
19535
 
 
19536
# Dependencies to place before the objects being linked to create a
 
19537
# shared library.
 
19538
predeps=$lt_predeps_RC
 
19539
 
 
19540
# Dependencies to place after the objects being linked to create a
 
19541
# shared library.
 
19542
postdeps=$lt_postdeps_RC
 
19543
 
 
19544
# The library search path used internally by the compiler when linking
 
19545
# a shared library.
 
19546
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
 
19547
 
 
19548
# Method to check whether dependent libraries are shared objects.
 
19549
deplibs_check_method=$lt_deplibs_check_method
 
19550
 
 
19551
# Command to use when deplibs_check_method == file_magic.
 
19552
file_magic_cmd=$lt_file_magic_cmd
 
19553
 
 
19554
# Flag that allows shared libraries with undefined symbols to be built.
 
19555
allow_undefined_flag=$lt_allow_undefined_flag_RC
 
19556
 
 
19557
# Flag that forces no undefined symbols.
 
19558
no_undefined_flag=$lt_no_undefined_flag_RC
 
19559
 
 
19560
# Commands used to finish a libtool library installation in a directory.
 
19561
finish_cmds=$lt_finish_cmds
 
19562
 
 
19563
# Same as above, but a single script fragment to be evaled but not shown.
 
19564
finish_eval=$lt_finish_eval
 
19565
 
 
19566
# Take the output of nm and produce a listing of raw symbols and C names.
 
19567
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
19568
 
 
19569
# Transform the output of nm in a proper C declaration
 
19570
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
19571
 
 
19572
# Transform the output of nm in a C name address pair
 
19573
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
19574
 
 
19575
# This is the shared library runtime path variable.
 
19576
runpath_var=$runpath_var
 
19577
 
 
19578
# This is the shared library path variable.
 
19579
shlibpath_var=$shlibpath_var
 
19580
 
 
19581
# Is shlibpath searched before the hard-coded library search path?
 
19582
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
19583
 
 
19584
# How to hardcode a shared library path into an executable.
 
19585
hardcode_action=$hardcode_action_RC
 
19586
 
 
19587
# Whether we should hardcode library paths into libraries.
 
19588
hardcode_into_libs=$hardcode_into_libs
 
19589
 
 
19590
# Flag to hardcode \$libdir into a binary during linking.
 
19591
# This must work even if \$libdir does not exist.
 
19592
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
 
19593
 
 
19594
# If ld is used when linking, flag to hardcode \$libdir into
 
19595
# a binary during linking. This must work even if \$libdir does
 
19596
# not exist.
 
19597
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
 
19598
 
 
19599
# Whether we need a single -rpath flag with a separated argument.
 
19600
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
 
19601
 
 
19602
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
19603
# resulting binary.
 
19604
hardcode_direct=$hardcode_direct_RC
 
19605
 
 
19606
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
19607
# resulting binary.
 
19608
hardcode_minus_L=$hardcode_minus_L_RC
 
19609
 
 
19610
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
19611
# the resulting binary.
 
19612
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
 
19613
 
 
19614
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
19615
# and all subsequent libraries and executables linked against it.
 
19616
hardcode_automatic=$hardcode_automatic_RC
 
19617
 
 
19618
# Variables whose values should be saved in libtool wrapper scripts and
 
19619
# restored at relink time.
 
19620
variables_saved_for_relink="$variables_saved_for_relink"
 
19621
 
 
19622
# Whether libtool must link a program against all its dependency libraries.
 
19623
link_all_deplibs=$link_all_deplibs_RC
 
19624
 
 
19625
# Compile-time system search path for libraries
 
19626
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
19627
 
 
19628
# Run-time system search path for libraries
 
19629
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
19630
 
 
19631
# Fix the shell variable \$srcfile for the compiler.
 
19632
fix_srcfile_path="$fix_srcfile_path_RC"
 
19633
 
 
19634
# Set to yes if exported symbols are required.
 
19635
always_export_symbols=$always_export_symbols_RC
 
19636
 
 
19637
# The commands to list exported symbols.
 
19638
export_symbols_cmds=$lt_export_symbols_cmds_RC
 
19639
 
 
19640
# The commands to extract the exported symbol list from a shared archive.
 
19641
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
19642
 
 
19643
# Symbols that should not be listed in the preloaded symbols.
 
19644
exclude_expsyms=$lt_exclude_expsyms_RC
 
19645
 
 
19646
# Symbols that must always be exported.
 
19647
include_expsyms=$lt_include_expsyms_RC
 
19648
 
 
19649
# ### END LIBTOOL TAG CONFIG: $tagname
 
19650
 
 
19651
__EOF__
 
19652
 
 
19653
 
 
19654
else
 
19655
  # If there is no Makefile yet, we rely on a make rule to execute
 
19656
  # `config.status --recheck' to rerun these tests and create the
 
19657
  # libtool script then.
 
19658
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
19659
  if test -f "$ltmain_in"; then
 
19660
    test -f Makefile && make "$ltmain"
 
19661
  fi
 
19662
fi
 
19663
 
 
19664
 
 
19665
ac_ext=c
 
19666
ac_cpp='$CPP $CPPFLAGS'
 
19667
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19668
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19669
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19670
 
 
19671
CC="$lt_save_CC"
 
19672
 
 
19673
        ;;
 
19674
 
 
19675
      *)
 
19676
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
 
19677
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
 
19678
   { (exit 1); exit 1; }; }
 
19679
        ;;
 
19680
      esac
 
19681
 
 
19682
      # Append the new tag name to the list of available tags.
 
19683
      if test -n "$tagname" ; then
 
19684
      available_tags="$available_tags $tagname"
 
19685
    fi
 
19686
    fi
 
19687
  done
 
19688
  IFS="$lt_save_ifs"
 
19689
 
 
19690
  # Now substitute the updated list of available tags.
 
19691
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
19692
    mv "${ofile}T" "$ofile"
 
19693
    chmod +x "$ofile"
 
19694
  else
 
19695
    rm -f "${ofile}T"
 
19696
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
 
19697
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
 
19698
   { (exit 1); exit 1; }; }
 
19699
  fi
 
19700
fi
 
19701
 
 
19702
 
 
19703
 
 
19704
# This can be used to rebuild libtool when needed
 
19705
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
19706
 
 
19707
# Always use our own libtool.
 
19708
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
19709
 
 
19710
# Prevent multiple expansion
 
19711
 
 
19712
 
 
19713
 
 
19714
 
 
19715
 
 
19716
 
 
19717
 
 
19718
 
 
19719
 
 
19720
 
 
19721
 
 
19722
  
 
19723
 
 
19724
  
 
19725
 
 
19726
 
 
19727
  
 
19728
       
 
19729
       
 
19730
 
 
19731
 
 
19732
echo "$as_me:$LINENO: checking for library containing strerror" >&5
 
19733
echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
 
19734
if test "${ac_cv_search_strerror+set}" = set; then
 
19735
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19736
else
 
19737
  ac_func_search_save_LIBS=$LIBS
 
19738
ac_cv_search_strerror=no
 
19739
cat >conftest.$ac_ext <<_ACEOF
 
19740
/* confdefs.h.  */
 
19741
_ACEOF
 
19742
cat confdefs.h >>conftest.$ac_ext
 
19743
cat >>conftest.$ac_ext <<_ACEOF
 
19744
/* end confdefs.h.  */
 
19745
 
 
19746
/* Override any gcc2 internal prototype to avoid an error.  */
 
19747
#ifdef __cplusplus
 
19748
extern "C"
 
19749
#endif
 
19750
/* We use char because int might match the return type of a gcc2
 
19751
   builtin and then its argument prototype would still apply.  */
 
19752
char strerror ();
 
19753
int
 
19754
main ()
 
19755
{
 
19756
strerror ();
 
19757
  ;
 
19758
  return 0;
 
19759
}
 
19760
_ACEOF
 
19761
rm -f conftest.$ac_objext conftest$ac_exeext
 
19762
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19763
  (eval $ac_link) 2>conftest.er1
 
19764
  ac_status=$?
 
19765
  grep -v '^ *+' conftest.er1 >conftest.err
 
19766
  rm -f conftest.er1
 
19767
  cat conftest.err >&5
 
19768
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19769
  (exit $ac_status); } &&
 
19770
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19771
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19772
  (eval $ac_try) 2>&5
 
19773
  ac_status=$?
 
19774
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19775
  (exit $ac_status); }; } &&
 
19776
         { ac_try='test -s conftest$ac_exeext'
 
19777
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19778
  (eval $ac_try) 2>&5
 
19779
  ac_status=$?
 
19780
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19781
  (exit $ac_status); }; }; then
 
19782
  ac_cv_search_strerror="none required"
 
19783
else
 
19784
  echo "$as_me: failed program was:" >&5
 
19785
sed 's/^/| /' conftest.$ac_ext >&5
 
19786
 
 
19787
fi
 
19788
rm -f conftest.err conftest.$ac_objext \
 
19789
      conftest$ac_exeext conftest.$ac_ext
 
19790
if test "$ac_cv_search_strerror" = no; then
 
19791
  for ac_lib in cposix; do
 
19792
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
19793
    cat >conftest.$ac_ext <<_ACEOF
 
19794
/* confdefs.h.  */
 
19795
_ACEOF
 
19796
cat confdefs.h >>conftest.$ac_ext
 
19797
cat >>conftest.$ac_ext <<_ACEOF
 
19798
/* end confdefs.h.  */
 
19799
 
 
19800
/* Override any gcc2 internal prototype to avoid an error.  */
 
19801
#ifdef __cplusplus
 
19802
extern "C"
 
19803
#endif
 
19804
/* We use char because int might match the return type of a gcc2
 
19805
   builtin and then its argument prototype would still apply.  */
 
19806
char strerror ();
 
19807
int
 
19808
main ()
 
19809
{
 
19810
strerror ();
 
19811
  ;
 
19812
  return 0;
 
19813
}
 
19814
_ACEOF
 
19815
rm -f conftest.$ac_objext conftest$ac_exeext
 
19816
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19817
  (eval $ac_link) 2>conftest.er1
 
19818
  ac_status=$?
 
19819
  grep -v '^ *+' conftest.er1 >conftest.err
 
19820
  rm -f conftest.er1
 
19821
  cat conftest.err >&5
 
19822
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19823
  (exit $ac_status); } &&
 
19824
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19825
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19826
  (eval $ac_try) 2>&5
 
19827
  ac_status=$?
 
19828
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19829
  (exit $ac_status); }; } &&
 
19830
         { ac_try='test -s conftest$ac_exeext'
 
19831
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19832
  (eval $ac_try) 2>&5
 
19833
  ac_status=$?
 
19834
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19835
  (exit $ac_status); }; }; then
 
19836
  ac_cv_search_strerror="-l$ac_lib"
 
19837
break
 
19838
else
 
19839
  echo "$as_me: failed program was:" >&5
 
19840
sed 's/^/| /' conftest.$ac_ext >&5
 
19841
 
 
19842
fi
 
19843
rm -f conftest.err conftest.$ac_objext \
 
19844
      conftest$ac_exeext conftest.$ac_ext
 
19845
  done
 
19846
fi
 
19847
LIBS=$ac_func_search_save_LIBS
 
19848
fi
 
19849
echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
 
19850
echo "${ECHO_T}$ac_cv_search_strerror" >&6
 
19851
if test "$ac_cv_search_strerror" != no; then
 
19852
  test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
 
19853
  
 
19854
fi
 
19855
 
 
19856
echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
 
19857
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
 
19858
if test "${ac_cv_c_bigendian+set}" = set; then
 
19859
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19860
else
 
19861
  # See if sys/param.h defines the BYTE_ORDER macro.
 
19862
cat >conftest.$ac_ext <<_ACEOF
 
19863
/* confdefs.h.  */
 
19864
_ACEOF
 
19865
cat confdefs.h >>conftest.$ac_ext
 
19866
cat >>conftest.$ac_ext <<_ACEOF
 
19867
/* end confdefs.h.  */
 
19868
#include <sys/types.h>
 
19869
#include <sys/param.h>
 
19870
 
 
19871
int
 
19872
main ()
 
19873
{
 
19874
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
 
19875
 bogus endian macros
 
19876
#endif
 
19877
 
 
19878
  ;
 
19879
  return 0;
 
19880
}
 
19881
_ACEOF
 
19882
rm -f conftest.$ac_objext
 
19883
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19884
  (eval $ac_compile) 2>conftest.er1
 
19885
  ac_status=$?
 
19886
  grep -v '^ *+' conftest.er1 >conftest.err
 
19887
  rm -f conftest.er1
 
19888
  cat conftest.err >&5
 
19889
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19890
  (exit $ac_status); } &&
 
19891
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19892
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19893
  (eval $ac_try) 2>&5
 
19894
  ac_status=$?
 
19895
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19896
  (exit $ac_status); }; } &&
 
19897
         { ac_try='test -s conftest.$ac_objext'
 
19898
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19899
  (eval $ac_try) 2>&5
 
19900
  ac_status=$?
 
19901
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19902
  (exit $ac_status); }; }; then
 
19903
  # It does; now see whether it defined to BIG_ENDIAN or not.
 
19904
cat >conftest.$ac_ext <<_ACEOF
 
19905
/* confdefs.h.  */
 
19906
_ACEOF
 
19907
cat confdefs.h >>conftest.$ac_ext
 
19908
cat >>conftest.$ac_ext <<_ACEOF
 
19909
/* end confdefs.h.  */
 
19910
#include <sys/types.h>
 
19911
#include <sys/param.h>
 
19912
 
 
19913
int
 
19914
main ()
 
19915
{
 
19916
#if BYTE_ORDER != BIG_ENDIAN
 
19917
 not big endian
 
19918
#endif
 
19919
 
 
19920
  ;
 
19921
  return 0;
 
19922
}
 
19923
_ACEOF
 
19924
rm -f conftest.$ac_objext
 
19925
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19926
  (eval $ac_compile) 2>conftest.er1
 
19927
  ac_status=$?
 
19928
  grep -v '^ *+' conftest.er1 >conftest.err
 
19929
  rm -f conftest.er1
 
19930
  cat conftest.err >&5
 
19931
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19932
  (exit $ac_status); } &&
 
19933
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19934
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19935
  (eval $ac_try) 2>&5
 
19936
  ac_status=$?
 
19937
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19938
  (exit $ac_status); }; } &&
 
19939
         { ac_try='test -s conftest.$ac_objext'
 
19940
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19941
  (eval $ac_try) 2>&5
 
19942
  ac_status=$?
 
19943
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19944
  (exit $ac_status); }; }; then
 
19945
  ac_cv_c_bigendian=yes
 
19946
else
 
19947
  echo "$as_me: failed program was:" >&5
 
19948
sed 's/^/| /' conftest.$ac_ext >&5
 
19949
 
 
19950
ac_cv_c_bigendian=no
 
19951
fi
 
19952
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
19953
else
 
19954
  echo "$as_me: failed program was:" >&5
 
19955
sed 's/^/| /' conftest.$ac_ext >&5
 
19956
 
 
19957
# It does not; compile a test program.
 
19958
if test "$cross_compiling" = yes; then
 
19959
  # try to guess the endianness by grepping values into an object file
 
19960
  ac_cv_c_bigendian=unknown
 
19961
  cat >conftest.$ac_ext <<_ACEOF
 
19962
/* confdefs.h.  */
 
19963
_ACEOF
 
19964
cat confdefs.h >>conftest.$ac_ext
 
19965
cat >>conftest.$ac_ext <<_ACEOF
 
19966
/* end confdefs.h.  */
 
19967
short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
 
19968
short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
 
19969
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
 
19970
short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
 
19971
short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
 
19972
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
 
19973
int
 
19974
main ()
 
19975
{
 
19976
 _ascii (); _ebcdic (); 
 
19977
  ;
 
19978
  return 0;
 
19979
}
 
19980
_ACEOF
 
19981
rm -f conftest.$ac_objext
 
19982
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19983
  (eval $ac_compile) 2>conftest.er1
 
19984
  ac_status=$?
 
19985
  grep -v '^ *+' conftest.er1 >conftest.err
 
19986
  rm -f conftest.er1
 
19987
  cat conftest.err >&5
 
19988
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19989
  (exit $ac_status); } &&
 
19990
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
19991
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19992
  (eval $ac_try) 2>&5
 
19993
  ac_status=$?
 
19994
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19995
  (exit $ac_status); }; } &&
 
19996
         { ac_try='test -s conftest.$ac_objext'
 
19997
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19998
  (eval $ac_try) 2>&5
 
19999
  ac_status=$?
 
20000
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20001
  (exit $ac_status); }; }; then
 
20002
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
 
20003
  ac_cv_c_bigendian=yes
 
20004
fi
 
20005
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
 
20006
  if test "$ac_cv_c_bigendian" = unknown; then
 
20007
    ac_cv_c_bigendian=no
 
20008
  else
 
20009
    # finding both strings is unlikely to happen, but who knows?
 
20010
    ac_cv_c_bigendian=unknown
 
20011
  fi
 
20012
fi
 
20013
else
 
20014
  echo "$as_me: failed program was:" >&5
 
20015
sed 's/^/| /' conftest.$ac_ext >&5
 
20016
 
 
20017
fi
 
20018
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20019
else
 
20020
  cat >conftest.$ac_ext <<_ACEOF
 
20021
/* confdefs.h.  */
 
20022
_ACEOF
 
20023
cat confdefs.h >>conftest.$ac_ext
 
20024
cat >>conftest.$ac_ext <<_ACEOF
 
20025
/* end confdefs.h.  */
 
20026
int
 
20027
main ()
 
20028
{
 
20029
  /* Are we little or big endian?  From Harbison&Steele.  */
 
20030
  union
 
20031
  {
 
20032
    long l;
 
20033
    char c[sizeof (long)];
 
20034
  } u;
 
20035
  u.l = 1;
 
20036
  exit (u.c[sizeof (long) - 1] == 1);
 
20037
}
 
20038
_ACEOF
 
20039
rm -f conftest$ac_exeext
 
20040
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20041
  (eval $ac_link) 2>&5
 
20042
  ac_status=$?
 
20043
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20044
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
20045
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20046
  (eval $ac_try) 2>&5
 
20047
  ac_status=$?
 
20048
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20049
  (exit $ac_status); }; }; then
 
20050
  ac_cv_c_bigendian=no
 
20051
else
 
20052
  echo "$as_me: program exited with status $ac_status" >&5
 
20053
echo "$as_me: failed program was:" >&5
 
20054
sed 's/^/| /' conftest.$ac_ext >&5
 
20055
 
 
20056
( exit $ac_status )
 
20057
ac_cv_c_bigendian=yes
 
20058
fi
 
20059
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
20060
fi
 
20061
fi
 
20062
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20063
fi
 
20064
echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
 
20065
echo "${ECHO_T}$ac_cv_c_bigendian" >&6
 
20066
case $ac_cv_c_bigendian in
 
20067
  yes)
 
20068
    
 
20069
cat >>confdefs.h <<\_ACEOF
 
20070
@%:@define WORDS_BIGENDIAN 1
 
20071
_ACEOF
 
20072
 ;;
 
20073
  no)
 
20074
     ;;
 
20075
  *)
 
20076
    { { echo "$as_me:$LINENO: error: unknown endianness
 
20077
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
 
20078
echo "$as_me: error: unknown endianness
 
20079
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
 
20080
   { (exit 1); exit 1; }; } ;;
 
20081
esac
 
20082
 
 
20083
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
20084
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
20085
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
 
20086
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
20087
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20088
else
 
20089
  cat >conftest.make <<\_ACEOF
 
20090
all:
 
20091
        @echo 'ac_maketemp="$(MAKE)"'
 
20092
_ACEOF
 
20093
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
20094
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
20095
if test -n "$ac_maketemp"; then
 
20096
  eval ac_cv_prog_make_${ac_make}_set=yes
 
20097
else
 
20098
  eval ac_cv_prog_make_${ac_make}_set=no
 
20099
fi
 
20100
rm -f conftest.make
 
20101
fi
 
20102
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
20103
  echo "$as_me:$LINENO: result: yes" >&5
 
20104
echo "${ECHO_T}yes" >&6
 
20105
  SET_MAKE=
 
20106
else
 
20107
  echo "$as_me:$LINENO: result: no" >&5
 
20108
echo "${ECHO_T}no" >&6
 
20109
  SET_MAKE="MAKE=${MAKE-make}"
 
20110
fi
 
20111
 
 
20112
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
20113
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
20114
if test "${ac_cv_header_stdc+set}" = set; then
 
20115
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20116
else
 
20117
  cat >conftest.$ac_ext <<_ACEOF
 
20118
/* confdefs.h.  */
 
20119
_ACEOF
 
20120
cat confdefs.h >>conftest.$ac_ext
 
20121
cat >>conftest.$ac_ext <<_ACEOF
 
20122
/* end confdefs.h.  */
 
20123
#include <stdlib.h>
 
20124
#include <stdarg.h>
 
20125
#include <string.h>
 
20126
#include <float.h>
 
20127
 
 
20128
int
 
20129
main ()
 
20130
{
 
20131
 
 
20132
  ;
 
20133
  return 0;
 
20134
}
 
20135
_ACEOF
 
20136
rm -f conftest.$ac_objext
 
20137
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20138
  (eval $ac_compile) 2>conftest.er1
 
20139
  ac_status=$?
 
20140
  grep -v '^ *+' conftest.er1 >conftest.err
 
20141
  rm -f conftest.er1
 
20142
  cat conftest.err >&5
 
20143
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20144
  (exit $ac_status); } &&
 
20145
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20146
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20147
  (eval $ac_try) 2>&5
 
20148
  ac_status=$?
 
20149
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20150
  (exit $ac_status); }; } &&
 
20151
         { ac_try='test -s conftest.$ac_objext'
 
20152
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20153
  (eval $ac_try) 2>&5
 
20154
  ac_status=$?
 
20155
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20156
  (exit $ac_status); }; }; then
 
20157
  ac_cv_header_stdc=yes
 
20158
else
 
20159
  echo "$as_me: failed program was:" >&5
 
20160
sed 's/^/| /' conftest.$ac_ext >&5
 
20161
 
 
20162
ac_cv_header_stdc=no
 
20163
fi
 
20164
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20165
 
 
20166
if test $ac_cv_header_stdc = yes; then
 
20167
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
20168
  cat >conftest.$ac_ext <<_ACEOF
 
20169
/* confdefs.h.  */
 
20170
_ACEOF
 
20171
cat confdefs.h >>conftest.$ac_ext
 
20172
cat >>conftest.$ac_ext <<_ACEOF
 
20173
/* end confdefs.h.  */
 
20174
#include <string.h>
 
20175
 
 
20176
_ACEOF
 
20177
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
20178
  $EGREP "memchr" >/dev/null 2>&1; then
 
20179
  :
 
20180
else
 
20181
  ac_cv_header_stdc=no
 
20182
fi
 
20183
rm -f conftest*
 
20184
 
 
20185
fi
 
20186
 
 
20187
if test $ac_cv_header_stdc = yes; then
 
20188
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
20189
  cat >conftest.$ac_ext <<_ACEOF
 
20190
/* confdefs.h.  */
 
20191
_ACEOF
 
20192
cat confdefs.h >>conftest.$ac_ext
 
20193
cat >>conftest.$ac_ext <<_ACEOF
 
20194
/* end confdefs.h.  */
 
20195
#include <stdlib.h>
 
20196
 
 
20197
_ACEOF
 
20198
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
20199
  $EGREP "free" >/dev/null 2>&1; then
 
20200
  :
 
20201
else
 
20202
  ac_cv_header_stdc=no
 
20203
fi
 
20204
rm -f conftest*
 
20205
 
 
20206
fi
 
20207
 
 
20208
if test $ac_cv_header_stdc = yes; then
 
20209
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
20210
  if test "$cross_compiling" = yes; then
 
20211
  :
 
20212
else
 
20213
  cat >conftest.$ac_ext <<_ACEOF
 
20214
/* confdefs.h.  */
 
20215
_ACEOF
 
20216
cat confdefs.h >>conftest.$ac_ext
 
20217
cat >>conftest.$ac_ext <<_ACEOF
 
20218
/* end confdefs.h.  */
 
20219
#include <ctype.h>
 
20220
#if ((' ' & 0x0FF) == 0x020)
 
20221
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
20222
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
20223
#else
 
20224
# define ISLOWER(c) \
 
20225
                   (('a' <= (c) && (c) <= 'i') \
 
20226
                     || ('j' <= (c) && (c) <= 'r') \
 
20227
                     || ('s' <= (c) && (c) <= 'z'))
 
20228
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
20229
#endif
 
20230
 
 
20231
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
20232
int
 
20233
main ()
 
20234
{
 
20235
  int i;
 
20236
  for (i = 0; i < 256; i++)
 
20237
    if (XOR (islower (i), ISLOWER (i))
 
20238
        || toupper (i) != TOUPPER (i))
 
20239
      exit(2);
 
20240
  exit (0);
 
20241
}
 
20242
_ACEOF
 
20243
rm -f conftest$ac_exeext
 
20244
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20245
  (eval $ac_link) 2>&5
 
20246
  ac_status=$?
 
20247
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20248
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
20249
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20250
  (eval $ac_try) 2>&5
 
20251
  ac_status=$?
 
20252
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20253
  (exit $ac_status); }; }; then
 
20254
  :
 
20255
else
 
20256
  echo "$as_me: program exited with status $ac_status" >&5
 
20257
echo "$as_me: failed program was:" >&5
 
20258
sed 's/^/| /' conftest.$ac_ext >&5
 
20259
 
 
20260
( exit $ac_status )
 
20261
ac_cv_header_stdc=no
 
20262
fi
 
20263
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
20264
fi
 
20265
fi
 
20266
fi
 
20267
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
20268
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
20269
if test $ac_cv_header_stdc = yes; then
 
20270
  
 
20271
cat >>confdefs.h <<\_ACEOF
 
20272
@%:@define STDC_HEADERS 1
 
20273
_ACEOF
 
20274
 
 
20275
fi
 
20276
 
 
20277
 
 
20278
 
 
20279
# Check whether --with-opensp-includes or --without-opensp-includes was given.
 
20280
if test "${with_opensp_includes+set}" = set; then
 
20281
  withval="$with_opensp_includes"
 
20282
  OPENSPINCLUDES="$with_opensp_includes"
 
20283
else
 
20284
  OPENSPINCLUDES="" 
 
20285
fi; 
 
20286
 
 
20287
 
 
20288
# Check whether --with-opensp-libs or --without-opensp-libs was given.
 
20289
if test "${with_opensp_libs+set}" = set; then
 
20290
  withval="$with_opensp_libs"
 
20291
  OPENSPLIBPATH="$with_opensp_libs"
 
20292
else
 
20293
  OPENSPLIBPATH="/usr/lib"
 
20294
fi; 
 
20295
                        
 
20296
                        echo $OPENSPLIBPATH
 
20297
for d in /usr/include/OpenSP /usr/local/include/OpenSP /usr/include/sp/generic /usr/local/include/sp/generic; do
 
20298
    if test "x$OPENSPINCLUDES" = x; then
 
20299
        save_CPPFLAGS="$CPPFLAGS"
 
20300
        CPPFLAGS="$CPPFLAGS -I$d"
 
20301
        echo "$as_me:$LINENO: checking for ParserEventGenerator.h in $d" >&5
 
20302
echo $ECHO_N "checking for ParserEventGenerator.h in $d... $ECHO_C" >&6
 
20303
        cat >conftest.$ac_ext <<_ACEOF
 
20304
/* confdefs.h.  */
 
20305
_ACEOF
 
20306
cat confdefs.h >>conftest.$ac_ext
 
20307
cat >>conftest.$ac_ext <<_ACEOF
 
20308
/* end confdefs.h.  */
 
20309
#include <ParserEventGeneratorKit.h>
 
20310
_ACEOF
 
20311
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
20312
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
20313
  ac_status=$?
 
20314
  grep -v '^ *+' conftest.er1 >conftest.err
 
20315
  rm -f conftest.er1
 
20316
  cat conftest.err >&5
 
20317
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20318
  (exit $ac_status); } >/dev/null; then
 
20319
  if test -s conftest.err; then
 
20320
    ac_cpp_err=$ac_c_preproc_warn_flag
 
20321
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
20322
  else
 
20323
    ac_cpp_err=
 
20324
  fi
 
20325
else
 
20326
  ac_cpp_err=yes
 
20327
fi
 
20328
if test -z "$ac_cpp_err"; then
 
20329
   echo "$as_me:$LINENO: result: yes" >&5
 
20330
echo "${ECHO_T}yes" >&6; OPENSPINCLUDES=$d 
 
20331
else
 
20332
  echo "$as_me: failed program was:" >&5
 
20333
sed 's/^/| /' conftest.$ac_ext >&5
 
20334
 
 
20335
   echo "$as_me:$LINENO: result: no" >&5
 
20336
echo "${ECHO_T}no" >&6 
 
20337
fi
 
20338
rm -f conftest.err conftest.$ac_ext
 
20339
        CPPFLAGS="$save_CPPFLAGS"
 
20340
    fi
 
20341
done
 
20342
 
 
20343
 
 
20344
##Detect if OpenSP was compiled with SP_MULTI_BYTE, and put the result in config.h
 
20345
##
 
20346
 
 
20347
#if 0
 
20348
##This test works for me, but breaks for most distro because the config.h installed isn't really the one that was used tu compile OpenSP
 
20349
## So --with-opensp-multibyte is now the default.
 
20350
 
 
20351
#endif
 
20352
 
 
20353
 
 
20354
# Check whether --with-no-opensp-multibyte or --without-no-opensp-multibyte was given.
 
20355
if test "${with_no_opensp_multibyte+set}" = set; then
 
20356
  withval="$with_no_opensp_multibyte"
 
20357
  
 
20358
else
 
20359
  
 
20360
cat >>confdefs.h <<\_ACEOF
 
20361
@%:@define SP_MULTI_BYTE 1
 
20362
_ACEOF
 
20363
         
 
20364
fi; 
 
20365
                        
 
20366
##if test x"$SP_MULTI_BYTE" == x ;then
 
20367
##CHECK_SP_MULTI_BYTE
 
20368
##fi
 
20369
 
 
20370
ac_save_CPPFLAGS="$CPPFLAGS"
 
20371
if test "x$OPENSPINCLUDES" != x ; then
 
20372
  CPPFLAGS="-I$OPENSPINCLUDES $CPPFLAGS"
 
20373
fi
 
20374
ac_ext=cc
 
20375
ac_cpp='$CXXCPP $CPPFLAGS'
 
20376
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
20377
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
20378
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
20379
 
 
20380
 
 
20381
 
 
20382
 
 
20383
for ac_header in ParserEventGeneratorKit.h SGMLApplication.h EventGenerator.h
 
20384
do
 
20385
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
20386
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20387
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
20388
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20389
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20390
else
 
20391
  cat >conftest.$ac_ext <<_ACEOF
 
20392
/* confdefs.h.  */
 
20393
_ACEOF
 
20394
cat confdefs.h >>conftest.$ac_ext
 
20395
cat >>conftest.$ac_ext <<_ACEOF
 
20396
/* end confdefs.h.  */
 
20397
 
 
20398
 
 
20399
@%:@include <$ac_header>
 
20400
_ACEOF
 
20401
rm -f conftest.$ac_objext
 
20402
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20403
  (eval $ac_compile) 2>conftest.er1
 
20404
  ac_status=$?
 
20405
  grep -v '^ *+' conftest.er1 >conftest.err
 
20406
  rm -f conftest.er1
 
20407
  cat conftest.err >&5
 
20408
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20409
  (exit $ac_status); } &&
 
20410
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
20411
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20412
  (eval $ac_try) 2>&5
 
20413
  ac_status=$?
 
20414
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20415
  (exit $ac_status); }; } &&
 
20416
         { ac_try='test -s conftest.$ac_objext'
 
20417
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20418
  (eval $ac_try) 2>&5
 
20419
  ac_status=$?
 
20420
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20421
  (exit $ac_status); }; }; then
 
20422
  eval "$as_ac_Header=yes"
 
20423
else
 
20424
  echo "$as_me: failed program was:" >&5
 
20425
sed 's/^/| /' conftest.$ac_ext >&5
 
20426
 
 
20427
eval "$as_ac_Header=no"
 
20428
fi
 
20429
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20430
fi
 
20431
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
20432
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
20433
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
20434
  cat >>confdefs.h <<_ACEOF
 
20435
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
20436
_ACEOF
 
20437
  
 
20438
else
 
20439
   { { echo "$as_me:$LINENO: error: OpenSP includes not found" >&5
 
20440
echo "$as_me: error: OpenSP includes not found" >&2;}
 
20441
   { (exit 1); exit 1; }; } 
 
20442
fi
 
20443
 
 
20444
done
 
20445
 
 
20446
                                
 
20447
OPENSPLIBS="-L$OPENSPLIBPATH -losp"
 
20448
ac_save_LIBS="$LIBS"
 
20449
LIBS="$OPENSPLIBS $LIBS"
 
20450
 
 
20451
echo "$as_me:$LINENO: checking for libosp" >&5
 
20452
echo $ECHO_N "checking for libosp... $ECHO_C" >&6
 
20453
##dnl This is code from the opensp documentation, I modified it a little
 
20454
##dnl It is really just a link test rather than a run test, it does nothing
 
20455
ac_ext=cc
 
20456
ac_cpp='$CXXCPP $CPPFLAGS'
 
20457
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
20458
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
20459
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
20460
 
 
20461
        if test "$cross_compiling" = yes; then
 
20462
  echo "$as_me:$LINENO: result: unknown, assumed OK" >&5
 
20463
echo "${ECHO_T}unknown, assumed OK" >&6
 
20464
else
 
20465
  cat >conftest.$ac_ext <<_ACEOF
 
20466
/* confdefs.h.  */
 
20467
_ACEOF
 
20468
cat confdefs.h >>conftest.$ac_ext
 
20469
cat >>conftest.$ac_ext <<_ACEOF
 
20470
/* end confdefs.h.  */
 
20471
 
 
20472
                #include "ParserEventGeneratorKit.h"
 
20473
                using namespace std;
 
20474
                class OutlineApplication : public SGMLApplication {
 
20475
                public:
 
20476
                  OutlineApplication() { }
 
20477
                  void startElement(const StartElementEvent &event) {
 
20478
                  }
 
20479
                  void endElement(const EndElementEvent &) { }
 
20480
 
 
20481
                };
 
20482
                int main(int argc, char **argv)
 
20483
                {
 
20484
                  ParserEventGeneratorKit parserKit;
 
20485
                  EventGenerator *egp = parserKit.makeEventGenerator(argc - 1, argv + 1);
 
20486
                  OutlineApplication app;
 
20487
                }
 
20488
        
 
20489
_ACEOF
 
20490
rm -f conftest$ac_exeext
 
20491
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20492
  (eval $ac_link) 2>&5
 
20493
  ac_status=$?
 
20494
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20495
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
20496
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20497
  (eval $ac_try) 2>&5
 
20498
  ac_status=$?
 
20499
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20500
  (exit $ac_status); }; }; then
 
20501
  echo "$as_me:$LINENO: result: yes" >&5
 
20502
echo "${ECHO_T}yes" >&6
 
20503
else
 
20504
  echo "$as_me: program exited with status $ac_status" >&5
 
20505
echo "$as_me: failed program was:" >&5
 
20506
sed 's/^/| /' conftest.$ac_ext >&5
 
20507
 
 
20508
( exit $ac_status )
 
20509
echo "$as_me:$LINENO: result: no" >&5
 
20510
echo "${ECHO_T}no" >&6
 
20511
        { { echo "$as_me:$LINENO: error: unable to link a test program, is OpenSP installed?" >&5
 
20512
echo "$as_me: error: unable to link a test program, is OpenSP installed?" >&2;}
 
20513
   { (exit 1); exit 1; }; }
 
20514
fi
 
20515
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
20516
fi
 
20517
                                
 
20518
CPPFLAGS="$ac_save_CPPFLAGS"
 
20519
LIBS="$ac_save_LIBS"            
 
20520
 
 
20521
 
 
20522
# check for doxygen, mostly stolen from http://log4cpp.sourceforge.net/
 
20523
# ----------------------------------------------------------------------------
 
20524
 
 
20525
 
 
20526
# check for doxygen
 
20527
# ----------------------------------------------------------------------------
 
20528
 
 
20529
# Check whether --enable-doxygen or --disable-doxygen was given.
 
20530
if test "${enable_doxygen+set}" = set; then
 
20531
  enableval="$enable_doxygen"
 
20532
  
 
20533
fi; 
 
20534
# Check whether --enable-dot or --disable-dot was given.
 
20535
if test "${enable_dot+set}" = set; then
 
20536
  enableval="$enable_dot"
 
20537
  
 
20538
fi;               
 
20539
# Check whether --enable-html-docs or --disable-html-docs was given.
 
20540
if test "${enable_html_docs+set}" = set; then
 
20541
  enableval="$enable_html_docs"
 
20542
  
 
20543
else
 
20544
   enable_html_docs=yes
 
20545
fi;               
 
20546
# Check whether --enable-latex-docs or --disable-latex-docs was given.
 
20547
if test "${enable_latex_docs+set}" = set; then
 
20548
  enableval="$enable_latex_docs"
 
20549
  
 
20550
else
 
20551
   enable_latex_docs=no
 
20552
fi;               
 
20553
if test "x$enable_doxygen" = xno; then
 
20554
        enable_doc=no
 
20555
else 
 
20556
        # Extract the first word of "doxygen", so it can be a program name with args.
 
20557
set dummy doxygen; ac_word=$2
 
20558
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
20559
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
20560
if test "${ac_cv_path_DOXYGEN+set}" = set; then
 
20561
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20562
else
 
20563
  case $DOXYGEN in
 
20564
  [\\/]* | ?:[\\/]*)
 
20565
  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
 
20566
  ;;
 
20567
  *)
 
20568
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20569
for as_dir in $PATH
 
20570
do
 
20571
  IFS=$as_save_IFS
 
20572
  test -z "$as_dir" && as_dir=.
 
20573
  for ac_exec_ext in '' $ac_executable_extensions; do
 
20574
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
20575
    ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
 
20576
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
20577
    break 2
 
20578
  fi
 
20579
done
 
20580
done
 
20581
 
 
20582
  ;;
 
20583
esac
 
20584
fi
 
20585
DOXYGEN=$ac_cv_path_DOXYGEN
 
20586
 
 
20587
if test -n "$DOXYGEN"; then
 
20588
  echo "$as_me:$LINENO: result: $DOXYGEN" >&5
 
20589
echo "${ECHO_T}$DOXYGEN" >&6
 
20590
else
 
20591
  echo "$as_me:$LINENO: result: no" >&5
 
20592
echo "${ECHO_T}no" >&6
 
20593
fi
 
20594
 
 
20595
        if test x$DOXYGEN = x; then
 
20596
                if test "x$enable_doxygen" = xyes; then
 
20597
                        { { echo "$as_me:$LINENO: error: could not find doxygen" >&5
 
20598
echo "$as_me: error: could not find doxygen" >&2;}
 
20599
   { (exit 1); exit 1; }; }
 
20600
                fi
 
20601
                enable_doc=no
 
20602
        else
 
20603
                enable_doc=yes
 
20604
                # Extract the first word of "dot", so it can be a program name with args.
 
20605
set dummy dot; ac_word=$2
 
20606
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
20607
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
20608
if test "${ac_cv_path_DOT+set}" = set; then
 
20609
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20610
else
 
20611
  case $DOT in
 
20612
  [\\/]* | ?:[\\/]*)
 
20613
  ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
 
20614
  ;;
 
20615
  *)
 
20616
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
20617
for as_dir in $PATH
 
20618
do
 
20619
  IFS=$as_save_IFS
 
20620
  test -z "$as_dir" && as_dir=.
 
20621
  for ac_exec_ext in '' $ac_executable_extensions; do
 
20622
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
20623
    ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
 
20624
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
20625
    break 2
 
20626
  fi
 
20627
done
 
20628
done
 
20629
 
 
20630
  ;;
 
20631
esac
 
20632
fi
 
20633
DOT=$ac_cv_path_DOT
 
20634
 
 
20635
if test -n "$DOT"; then
 
20636
  echo "$as_me:$LINENO: result: $DOT" >&5
 
20637
echo "${ECHO_T}$DOT" >&6
 
20638
else
 
20639
  echo "$as_me:$LINENO: result: no" >&5
 
20640
echo "${ECHO_T}no" >&6
 
20641
fi
 
20642
 
 
20643
        fi
 
20644
fi
 
20645
 
 
20646
 
 
20647
if test x$enable_doc = xyes; then
 
20648
  DOC_TRUE=
 
20649
  DOC_FALSE='#'
 
20650
else
 
20651
  DOC_TRUE='#'
 
20652
  DOC_FALSE=
 
20653
fi
 
20654
 
 
20655
 
 
20656
if test x$DOT = x; then
 
20657
        if test "x$enable_dot" = xyes; then
 
20658
                { { echo "$as_me:$LINENO: error: could not find dot" >&5
 
20659
echo "$as_me: error: could not find dot" >&2;}
 
20660
   { (exit 1); exit 1; }; }
 
20661
        fi
 
20662
        enable_dot=no
 
20663
else
 
20664
        enable_dot=yes
 
20665
fi
 
20666
 
 
20667
 
 
20668
if test x$enable_doc = xtrue; then
 
20669
  ENABLE_DOXYGEN_TRUE=
 
20670
  ENABLE_DOXYGEN_FALSE='#'
 
20671
else
 
20672
  ENABLE_DOXYGEN_TRUE='#'
 
20673
  ENABLE_DOXYGEN_FALSE=
 
20674
fi
 
20675
 
 
20676
 
 
20677
 
 
20678
 
 
20679
 
 
20680
 
 
20681
# Check if getopt_long is available
 
20682
# ----------------------------------------------------------------------------
 
20683
 
 
20684
 
 
20685
 
 
20686
  # clean out junk possibly left behind by a previous configuration
 
20687
  rm -f lib/getopt.h
 
20688
  # Check for getopt_long support
 
20689
  
 
20690
for ac_header in getopt.h
 
20691
do
 
20692
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
20693
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20694
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20695
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
20696
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20697
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20698
fi
 
20699
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
20700
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
20701
else
 
20702
  # Is the header compilable?
 
20703
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
20704
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
20705
cat >conftest.$ac_ext <<_ACEOF
 
20706
/* confdefs.h.  */
 
20707
_ACEOF
 
20708
cat confdefs.h >>conftest.$ac_ext
 
20709
cat >>conftest.$ac_ext <<_ACEOF
 
20710
/* end confdefs.h.  */
 
20711
$ac_includes_default
 
20712
@%:@include <$ac_header>
 
20713
_ACEOF
 
20714
rm -f conftest.$ac_objext
 
20715
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20716
  (eval $ac_compile) 2>conftest.er1
 
20717
  ac_status=$?
 
20718
  grep -v '^ *+' conftest.er1 >conftest.err
 
20719
  rm -f conftest.er1
 
20720
  cat conftest.err >&5
 
20721
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20722
  (exit $ac_status); } &&
 
20723
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
20724
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20725
  (eval $ac_try) 2>&5
 
20726
  ac_status=$?
 
20727
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20728
  (exit $ac_status); }; } &&
 
20729
         { ac_try='test -s conftest.$ac_objext'
 
20730
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20731
  (eval $ac_try) 2>&5
 
20732
  ac_status=$?
 
20733
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20734
  (exit $ac_status); }; }; then
 
20735
  ac_header_compiler=yes
 
20736
else
 
20737
  echo "$as_me: failed program was:" >&5
 
20738
sed 's/^/| /' conftest.$ac_ext >&5
 
20739
 
 
20740
ac_header_compiler=no
 
20741
fi
 
20742
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20743
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
20744
echo "${ECHO_T}$ac_header_compiler" >&6
 
20745
 
 
20746
# Is the header present?
 
20747
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
20748
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
20749
cat >conftest.$ac_ext <<_ACEOF
 
20750
/* confdefs.h.  */
 
20751
_ACEOF
 
20752
cat confdefs.h >>conftest.$ac_ext
 
20753
cat >>conftest.$ac_ext <<_ACEOF
 
20754
/* end confdefs.h.  */
 
20755
@%:@include <$ac_header>
 
20756
_ACEOF
 
20757
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
20758
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
20759
  ac_status=$?
 
20760
  grep -v '^ *+' conftest.er1 >conftest.err
 
20761
  rm -f conftest.er1
 
20762
  cat conftest.err >&5
 
20763
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20764
  (exit $ac_status); } >/dev/null; then
 
20765
  if test -s conftest.err; then
 
20766
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
20767
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
20768
  else
 
20769
    ac_cpp_err=
 
20770
  fi
 
20771
else
 
20772
  ac_cpp_err=yes
 
20773
fi
 
20774
if test -z "$ac_cpp_err"; then
 
20775
  ac_header_preproc=yes
 
20776
else
 
20777
  echo "$as_me: failed program was:" >&5
 
20778
sed 's/^/| /' conftest.$ac_ext >&5
 
20779
 
 
20780
  ac_header_preproc=no
 
20781
fi
 
20782
rm -f conftest.err conftest.$ac_ext
 
20783
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
20784
echo "${ECHO_T}$ac_header_preproc" >&6
 
20785
 
 
20786
# So?  What about this header?
 
20787
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
 
20788
  yes:no: )
 
20789
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
20790
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
20791
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
20792
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
20793
    ac_header_preproc=yes
 
20794
    ;;
 
20795
  no:yes:* )
 
20796
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
20797
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
20798
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
20799
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
20800
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
20801
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
20802
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
20803
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
20804
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
20805
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
20806
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
20807
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
20808
    (
 
20809
      cat <<\_ASBOX
 
20810
@%:@@%:@ ------------------------------------------ @%:@@%:@
 
20811
@%:@@%:@ Report this to the AC_PACKAGE_NAME lists.  @%:@@%:@
 
20812
@%:@@%:@ ------------------------------------------ @%:@@%:@
 
20813
_ASBOX
 
20814
    ) |
 
20815
      sed "s/^/$as_me: WARNING:     /" >&2
 
20816
    ;;
 
20817
esac
 
20818
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20819
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
20820
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20821
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20822
else
 
20823
  eval "$as_ac_Header=\$ac_header_preproc"
 
20824
fi
 
20825
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
20826
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
20827
 
 
20828
fi
 
20829
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
20830
  cat >>confdefs.h <<_ACEOF
 
20831
@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
20832
_ACEOF
 
20833
 
 
20834
fi
 
20835
 
 
20836
done
 
20837
 
 
20838
  
 
20839
for ac_func in getopt_long
 
20840
do
 
20841
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
20842
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
20843
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
20844
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
20845
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20846
else
 
20847
  cat >conftest.$ac_ext <<_ACEOF
 
20848
/* confdefs.h.  */
 
20849
_ACEOF
 
20850
cat confdefs.h >>conftest.$ac_ext
 
20851
cat >>conftest.$ac_ext <<_ACEOF
 
20852
/* end confdefs.h.  */
 
20853
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
20854
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
20855
#define $ac_func innocuous_$ac_func
 
20856
 
 
20857
/* System header to define __stub macros and hopefully few prototypes,
 
20858
    which can conflict with char $ac_func (); below.
 
20859
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
20860
    <limits.h> exists even on freestanding compilers.  */
 
20861
 
 
20862
#ifdef __STDC__
 
20863
# include <limits.h>
 
20864
#else
 
20865
# include <assert.h>
 
20866
#endif
 
20867
 
 
20868
#undef $ac_func
 
20869
 
 
20870
/* Override any gcc2 internal prototype to avoid an error.  */
 
20871
#ifdef __cplusplus
 
20872
extern "C"
 
20873
{
 
20874
#endif
 
20875
/* We use char because int might match the return type of a gcc2
 
20876
   builtin and then its argument prototype would still apply.  */
 
20877
char $ac_func ();
 
20878
/* The GNU C library defines this for functions which it implements
 
20879
    to always fail with ENOSYS.  Some functions are actually named
 
20880
    something starting with __ and the normal name is an alias.  */
 
20881
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
20882
choke me
 
20883
#else
 
20884
char (*f) () = $ac_func;
 
20885
#endif
 
20886
#ifdef __cplusplus
 
20887
}
 
20888
#endif
 
20889
 
 
20890
int
 
20891
main ()
 
20892
{
 
20893
return f != $ac_func;
 
20894
  ;
 
20895
  return 0;
 
20896
}
 
20897
_ACEOF
 
20898
rm -f conftest.$ac_objext conftest$ac_exeext
 
20899
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20900
  (eval $ac_link) 2>conftest.er1
 
20901
  ac_status=$?
 
20902
  grep -v '^ *+' conftest.er1 >conftest.err
 
20903
  rm -f conftest.er1
 
20904
  cat conftest.err >&5
 
20905
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20906
  (exit $ac_status); } &&
 
20907
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
20908
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20909
  (eval $ac_try) 2>&5
 
20910
  ac_status=$?
 
20911
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20912
  (exit $ac_status); }; } &&
 
20913
         { ac_try='test -s conftest$ac_exeext'
 
20914
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20915
  (eval $ac_try) 2>&5
 
20916
  ac_status=$?
 
20917
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20918
  (exit $ac_status); }; }; then
 
20919
  eval "$as_ac_var=yes"
 
20920
else
 
20921
  echo "$as_me: failed program was:" >&5
 
20922
sed 's/^/| /' conftest.$ac_ext >&5
 
20923
 
 
20924
eval "$as_ac_var=no"
 
20925
fi
 
20926
rm -f conftest.err conftest.$ac_objext \
 
20927
      conftest$ac_exeext conftest.$ac_ext
 
20928
fi
 
20929
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
20930
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
20931
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
20932
  cat >>confdefs.h <<_ACEOF
 
20933
@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
20934
_ACEOF
 
20935
 
 
20936
else
 
20937
  # FreeBSD has a gnugetopt library for this
 
20938
    echo "$as_me:$LINENO: checking for getopt_long in -lgnugetopt" >&5
 
20939
echo $ECHO_N "checking for getopt_long in -lgnugetopt... $ECHO_C" >&6
 
20940
if test "${ac_cv_lib_gnugetopt_getopt_long+set}" = set; then
 
20941
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20942
else
 
20943
  ac_check_lib_save_LIBS=$LIBS
 
20944
LIBS="-lgnugetopt  $LIBS"
 
20945
cat >conftest.$ac_ext <<_ACEOF
 
20946
/* confdefs.h.  */
 
20947
_ACEOF
 
20948
cat confdefs.h >>conftest.$ac_ext
 
20949
cat >>conftest.$ac_ext <<_ACEOF
 
20950
/* end confdefs.h.  */
 
20951
 
 
20952
/* Override any gcc2 internal prototype to avoid an error.  */
 
20953
#ifdef __cplusplus
 
20954
extern "C"
 
20955
#endif
 
20956
/* We use char because int might match the return type of a gcc2
 
20957
   builtin and then its argument prototype would still apply.  */
 
20958
char getopt_long ();
 
20959
int
 
20960
main ()
 
20961
{
 
20962
getopt_long ();
 
20963
  ;
 
20964
  return 0;
 
20965
}
 
20966
_ACEOF
 
20967
rm -f conftest.$ac_objext conftest$ac_exeext
 
20968
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20969
  (eval $ac_link) 2>conftest.er1
 
20970
  ac_status=$?
 
20971
  grep -v '^ *+' conftest.er1 >conftest.err
 
20972
  rm -f conftest.er1
 
20973
  cat conftest.err >&5
 
20974
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20975
  (exit $ac_status); } &&
 
20976
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
20977
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20978
  (eval $ac_try) 2>&5
 
20979
  ac_status=$?
 
20980
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20981
  (exit $ac_status); }; } &&
 
20982
         { ac_try='test -s conftest$ac_exeext'
 
20983
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20984
  (eval $ac_try) 2>&5
 
20985
  ac_status=$?
 
20986
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20987
  (exit $ac_status); }; }; then
 
20988
  ac_cv_lib_gnugetopt_getopt_long=yes
 
20989
else
 
20990
  echo "$as_me: failed program was:" >&5
 
20991
sed 's/^/| /' conftest.$ac_ext >&5
 
20992
 
 
20993
ac_cv_lib_gnugetopt_getopt_long=no
 
20994
fi
 
20995
rm -f conftest.err conftest.$ac_objext \
 
20996
      conftest$ac_exeext conftest.$ac_ext
 
20997
LIBS=$ac_check_lib_save_LIBS
 
20998
fi
 
20999
echo "$as_me:$LINENO: result: $ac_cv_lib_gnugetopt_getopt_long" >&5
 
21000
echo "${ECHO_T}$ac_cv_lib_gnugetopt_getopt_long" >&6
 
21001
if test $ac_cv_lib_gnugetopt_getopt_long = yes; then
 
21002
  cat >>confdefs.h <<\_ACEOF
 
21003
@%:@define HAVE_GETOPT_LONG 1
 
21004
_ACEOF
 
21005
 
 
21006
else
 
21007
  # use the GNU replacement
 
21008
      case $LIB@&t@OBJS in
 
21009
    "getopt.$ac_objext"   | \
 
21010
  *" getopt.$ac_objext"   | \
 
21011
    "getopt.$ac_objext "* | \
 
21012
  *" getopt.$ac_objext "* ) ;;
 
21013
  *) LIB@&t@OBJS="$LIB@&t@OBJS getopt.$ac_objext" ;;
 
21014
esac
 
21015
 
 
21016
      case $LIB@&t@OBJS in
 
21017
    "getopt1.$ac_objext"   | \
 
21018
  *" getopt1.$ac_objext"   | \
 
21019
    "getopt1.$ac_objext "* | \
 
21020
  *" getopt1.$ac_objext "* ) ;;
 
21021
  *) LIB@&t@OBJS="$LIB@&t@OBJS getopt1.$ac_objext" ;;
 
21022
esac
 
21023
 
 
21024
                ac_config_links="$ac_config_links lib/getopt.h:lib/gnugetopt.h"
 
21025
 
 
21026
fi
 
21027
 
 
21028
fi
 
21029
done
 
21030
 
 
21031
 
 
21032
 
 
21033
if test "$ac_cv_func_getopt_long" = no  ; then
 
21034
  NO_GETOPTLONG_TRUE=
 
21035
  NO_GETOPTLONG_FALSE='#'
 
21036
else
 
21037
  NO_GETOPTLONG_TRUE='#'
 
21038
  NO_GETOPTLONG_FALSE=
 
21039
fi
 
21040
 
 
21041
 
 
21042
# gengetopt command line parser generation
 
21043
# Check whether --enable-gengetopt or --disable-gengetopt was given.
 
21044
if test "${enable_gengetopt+set}" = set; then
 
21045
  enableval="$enable_gengetopt"
 
21046
  case "${enableval}" in
 
21047
  yes) gengetopt=yes ;;
 
21048
  no)  gengetopt=no ;;
 
21049
  *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --disable-gengetopt" >&5
 
21050
echo "$as_me: error: bad value ${enableval} for --disable-gengetopt" >&2;}
 
21051
   { (exit 1); exit 1; }; } ;;
 
21052
esac
 
21053
else
 
21054
  gengetopt=yes
 
21055
fi; 
 
21056
 
 
21057
if test x$gengetopt = xyes ; then
 
21058
   # Extract the first word of "gengetopt", so it can be a program name with args.
 
21059
set dummy gengetopt; ac_word=$2
 
21060
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
21061
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
21062
if test "${ac_cv_prog_have_gengetopt+set}" = set; then
 
21063
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21064
else
 
21065
  if test -n "$have_gengetopt"; then
 
21066
  ac_cv_prog_have_gengetopt="$have_gengetopt" # Let the user override the test.
 
21067
else
 
21068
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21069
for as_dir in $PATH
 
21070
do
 
21071
  IFS=$as_save_IFS
 
21072
  test -z "$as_dir" && as_dir=.
 
21073
  for ac_exec_ext in '' $ac_executable_extensions; do
 
21074
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
21075
    ac_cv_prog_have_gengetopt="yes"
 
21076
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
21077
    break 2
 
21078
  fi
 
21079
done
 
21080
done
 
21081
 
 
21082
  test -z "$ac_cv_prog_have_gengetopt" && ac_cv_prog_have_gengetopt="no"
 
21083
fi
 
21084
fi
 
21085
have_gengetopt=$ac_cv_prog_have_gengetopt
 
21086
if test -n "$have_gengetopt"; then
 
21087
  echo "$as_me:$LINENO: result: $have_gengetopt" >&5
 
21088
echo "${ECHO_T}$have_gengetopt" >&6
 
21089
else
 
21090
  echo "$as_me:$LINENO: result: no" >&5
 
21091
echo "${ECHO_T}no" >&6
 
21092
fi
 
21093
 
 
21094
 
 
21095
   if test x$have_gengetopt = xno ; then
 
21096
     { echo "$as_me:$LINENO: WARNING: *** Not rebuilding command line parser as gengetopt is not found ***" >&5
 
21097
echo "$as_me: WARNING: *** Not rebuilding command line parser as gengetopt is not found ***" >&2;}
 
21098
     gengetopt=no
 
21099
   fi
 
21100
fi
 
21101
 
 
21102
 
 
21103
 
 
21104
if test "x$gengetopt" = xyes; then
 
21105
  USE_GENGETOPT_TRUE=
 
21106
  USE_GENGETOPT_FALSE='#'
 
21107
else
 
21108
  USE_GENGETOPT_TRUE='#'
 
21109
  USE_GENGETOPT_FALSE=
 
21110
fi
 
21111
 
 
21112
 
 
21113
 
 
21114
 
 
21115
 
 
21116
 
 
21117
# check for curl
 
21118
# ----------------------------------------------------------------------------
 
21119
 
 
21120
 if test "${my_cv_curl_vers+set}" = set; then
 
21121
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21122
else
 
21123
  
 
21124
 my_cv_curl_vers=NONE
 
21125
  check="7.9.7"
 
21126
  check_hex="070907"
 
21127
 
 
21128
 echo "$as_me:$LINENO: checking for curl >= $check" >&5
 
21129
echo $ECHO_N "checking for curl >= $check... $ECHO_C" >&6
 
21130
 
 
21131
 if eval curl-config --version 2>/dev/null >/dev/null; then
 
21132
   ver=`curl-config --version | sed -e "s/libcurl //g"`
 
21133
#   hex_ver=`curl-config --vernum | tr 'a-f' 'A-F'`
 
21134
#   ok=`echo "ibase=16; if($hex_ver>=$check_hex) $hex_ver else 0" | bc`
 
21135
 
 
21136
   if test x$ok != x0; then
 
21137
     my_cv_curl_vers="$ver"
 
21138
     echo "$as_me:$LINENO: result: $my_cv_curl_vers" >&5
 
21139
echo "${ECHO_T}$my_cv_curl_vers" >&6
 
21140
   else
 
21141
     echo "$as_me:$LINENO: result: FAILED" >&5
 
21142
echo "${ECHO_T}FAILED" >&6
 
21143
     { echo "$as_me:$LINENO: WARNING: $ver is too old. Need version $check or higher." >&5
 
21144
echo "$as_me: WARNING: $ver is too old. Need version $check or higher." >&2;}
 
21145
   fi
 
21146
 else
 
21147
   echo "$as_me:$LINENO: result: FAILED" >&5
 
21148
echo "${ECHO_T}FAILED" >&6
 
21149
   { { echo "$as_me:$LINENO: error: curl-config was not found" >&5
 
21150
echo "$as_me: error: curl-config was not found" >&2;}
 
21151
   { (exit 1); exit 1; }; }
 
21152
 fi
 
21153
 
 
21154
fi
 
21155
 
 
21156
 
 
21157
 
 
21158
if test x$my_cv_curl_vers != xNONE; then
 
21159
 
 
21160
cat >>confdefs.h <<\_ACEOF
 
21161
@%:@define HAVE_CURL 
 
21162
_ACEOF
 
21163
 
 
21164
fi
 
21165
 
 
21166
 
 
21167
 
 
21168
LIBOFX_DTD_DIR='${datadir}/libofx/dtd'
 
21169
 
 
21170
 
 
21171
                        
 
21172
                                                                                          ac_config_files="$ac_config_files Makefile libofx.spec lib/Makefile inc/Makefile dtd/Makefile doc/Makefile ofx2qif/Makefile ofxdump/Makefile ofxconnect/Makefile"
 
21173
cat >confcache <<\_ACEOF
 
21174
# This file is a shell script that caches the results of configure
 
21175
# tests run on this system so they can be shared between configure
 
21176
# scripts and configure runs, see configure's option --config-cache.
 
21177
# It is not useful on other systems.  If it contains results you don't
 
21178
# want to keep, you may remove or edit it.
 
21179
#
 
21180
# config.status only pays attention to the cache file if you give it
 
21181
# the --recheck option to rerun configure.
 
21182
#
 
21183
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
21184
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
21185
# following values.
 
21186
 
 
21187
_ACEOF
 
21188
 
 
21189
# The following way of writing the cache mishandles newlines in values,
 
21190
# but we know of no workaround that is simple, portable, and efficient.
 
21191
# So, don't put newlines in cache variables' values.
 
21192
# Ultrix sh set writes to stderr and can't be redirected directly,
 
21193
# and sets the high bit in the cache file unless we assign to the vars.
 
21194
{
 
21195
  (set) 2>&1 |
 
21196
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
21197
    *ac_space=\ *)
 
21198
      # `set' does not quote correctly, so add quotes (double-quote
 
21199
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
21200
      sed -n \
 
21201
        "s/'/'\\\\''/g;
 
21202
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
21203
      ;;
 
21204
    *)
 
21205
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
21206
      sed -n \
 
21207
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
21208
      ;;
 
21209
    esac;
 
21210
} |
 
21211
  sed '
 
21212
     t clear
 
21213
     : clear
 
21214
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
21215
     t end
 
21216
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
21217
     : end' >>confcache
 
21218
if diff $cache_file confcache >/dev/null 2>&1; then :; else
 
21219
  if test -w $cache_file; then
 
21220
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
21221
    cat confcache >$cache_file
 
21222
  else
 
21223
    echo "not updating unwritable cache $cache_file"
 
21224
  fi
 
21225
fi
 
21226
rm -f confcache
 
21227
 
 
21228
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
21229
# Let make expand exec_prefix.
 
21230
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
21231
 
 
21232
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
21233
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
21234
# trailing colons and then remove the whole line if VPATH becomes empty
 
21235
# (actually we leave an empty line to preserve line numbers).
 
21236
if test "x$srcdir" = x.; then
 
21237
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
21238
s/:*\$(srcdir):*/:/;
 
21239
s/:*\${srcdir}:*/:/;
 
21240
s/:*@srcdir@:*/:/;
 
21241
s/^\([^=]*=[     ]*\):*/\1/;
 
21242
s/:*$//;
 
21243
s/^[^=]*=[       ]*$//;
 
21244
}'
 
21245
fi
 
21246
 
 
21247
DEFS=-DHAVE_CONFIG_H
 
21248
 
 
21249
ac_libobjs=
 
21250
ac_ltlibobjs=
 
21251
for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
 
21252
  # 1. Remove the extension, and $U if already installed.
 
21253
  ac_i=`echo "$ac_i" |
 
21254
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
21255
  # 2. Add them.
 
21256
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 
21257
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
21258
done
 
21259
LIB@&t@OBJS=$ac_libobjs
 
21260
 
 
21261
LTLIBOBJS=$ac_ltlibobjs
 
21262
 
 
21263
 
 
21264
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
21265
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
21266
Usually this means the macro was only invoked conditionally." >&5
 
21267
echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
21268
Usually this means the macro was only invoked conditionally." >&2;}
 
21269
   { (exit 1); exit 1; }; }
 
21270
fi
 
21271
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
21272
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
21273
Usually this means the macro was only invoked conditionally." >&5
 
21274
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
21275
Usually this means the macro was only invoked conditionally." >&2;}
 
21276
   { (exit 1); exit 1; }; }
 
21277
fi
 
21278
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
21279
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
21280
Usually this means the macro was only invoked conditionally." >&5
 
21281
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
21282
Usually this means the macro was only invoked conditionally." >&2;}
 
21283
   { (exit 1); exit 1; }; }
 
21284
fi
 
21285
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
 
21286
  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
 
21287
Usually this means the macro was only invoked conditionally." >&5
 
21288
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
 
21289
Usually this means the macro was only invoked conditionally." >&2;}
 
21290
   { (exit 1); exit 1; }; }
 
21291
fi
 
21292
if test -z "${DOC_TRUE}" && test -z "${DOC_FALSE}"; then
 
21293
  { { echo "$as_me:$LINENO: error: conditional \"DOC\" was never defined.
 
21294
Usually this means the macro was only invoked conditionally." >&5
 
21295
echo "$as_me: error: conditional \"DOC\" was never defined.
 
21296
Usually this means the macro was only invoked conditionally." >&2;}
 
21297
   { (exit 1); exit 1; }; }
 
21298
fi
 
21299
if test -z "${ENABLE_DOXYGEN_TRUE}" && test -z "${ENABLE_DOXYGEN_FALSE}"; then
 
21300
  { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DOXYGEN\" was never defined.
 
21301
Usually this means the macro was only invoked conditionally." >&5
 
21302
echo "$as_me: error: conditional \"ENABLE_DOXYGEN\" was never defined.
 
21303
Usually this means the macro was only invoked conditionally." >&2;}
 
21304
   { (exit 1); exit 1; }; }
 
21305
fi
 
21306
if test -z "${NO_GETOPTLONG_TRUE}" && test -z "${NO_GETOPTLONG_FALSE}"; then
 
21307
  { { echo "$as_me:$LINENO: error: conditional \"NO_GETOPTLONG\" was never defined.
 
21308
Usually this means the macro was only invoked conditionally." >&5
 
21309
echo "$as_me: error: conditional \"NO_GETOPTLONG\" was never defined.
 
21310
Usually this means the macro was only invoked conditionally." >&2;}
 
21311
   { (exit 1); exit 1; }; }
 
21312
fi
 
21313
if test -z "${USE_GENGETOPT_TRUE}" && test -z "${USE_GENGETOPT_FALSE}"; then
 
21314
  { { echo "$as_me:$LINENO: error: conditional \"USE_GENGETOPT\" was never defined.
 
21315
Usually this means the macro was only invoked conditionally." >&5
 
21316
echo "$as_me: error: conditional \"USE_GENGETOPT\" was never defined.
 
21317
Usually this means the macro was only invoked conditionally." >&2;}
 
21318
   { (exit 1); exit 1; }; }
 
21319
fi
 
21320
 
 
21321
: ${CONFIG_STATUS=./config.status}
 
21322
ac_clean_files_save=$ac_clean_files
 
21323
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
21324
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
21325
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
21326
cat >$CONFIG_STATUS <<_ACEOF
 
21327
#! $SHELL
 
21328
# Generated by $as_me.
 
21329
# Run this file to recreate the current configuration.
 
21330
# Compiler output produced by configure, useful for debugging
 
21331
# configure, is in config.log if it exists.
 
21332
 
 
21333
debug=false
 
21334
ac_cs_recheck=false
 
21335
ac_cs_silent=false
 
21336
SHELL=\${CONFIG_SHELL-$SHELL}
 
21337
_ACEOF
 
21338
 
 
21339
cat >>$CONFIG_STATUS <<\_ACEOF
 
21340
## --------------------- ##
 
21341
## M4sh Initialization.  ##
 
21342
## --------------------- ##
 
21343
 
 
21344
# Be Bourne compatible
 
21345
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
21346
  emulate sh
 
21347
  NULLCMD=:
 
21348
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
21349
  # is contrary to our usage.  Disable this feature.
 
21350
  alias -g '${1+"$@"}'='"$@"'
 
21351
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
21352
  set -o posix
 
21353
fi
 
21354
DUALCASE=1; export DUALCASE # for MKS sh
 
21355
 
 
21356
# Support unset when possible.
 
21357
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
21358
  as_unset=unset
 
21359
else
 
21360
  as_unset=false
 
21361
fi
 
21362
 
 
21363
 
 
21364
# Work around bugs in pre-3.0 UWIN ksh.
 
21365
$as_unset ENV MAIL MAILPATH
 
21366
PS1='$ '
 
21367
PS2='> '
 
21368
PS4='+ '
 
21369
 
 
21370
# NLS nuisances.
 
21371
for as_var in \
 
21372
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
21373
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
21374
  LC_TELEPHONE LC_TIME
 
21375
do
 
21376
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
21377
    eval $as_var=C; export $as_var
 
21378
  else
 
21379
    $as_unset $as_var
 
21380
  fi
 
21381
done
 
21382
 
 
21383
# Required to use basename.
 
21384
if expr a : '\(a\)' >/dev/null 2>&1; then
 
21385
  as_expr=expr
 
21386
else
 
21387
  as_expr=false
 
21388
fi
 
21389
 
 
21390
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
21391
  as_basename=basename
 
21392
else
 
21393
  as_basename=false
 
21394
fi
 
21395
 
 
21396
 
 
21397
# Name of the executable.
 
21398
as_me=`$as_basename "$0" ||
 
21399
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
21400
         X"$0" : 'X\(//\)$' \| \
 
21401
         X"$0" : 'X\(/\)$' \| \
 
21402
         .     : '\(.\)' 2>/dev/null ||
 
21403
echo X/"$0" |
 
21404
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
21405
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
21406
          /^X\/\(\/\).*/{ s//\1/; q; }
 
21407
          s/.*/./; q'`
 
21408
 
 
21409
 
 
21410
# PATH needs CR, and LINENO needs CR and PATH.
 
21411
# Avoid depending upon Character Ranges.
 
21412
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
21413
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
21414
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
21415
as_cr_digits='0123456789'
 
21416
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
21417
 
 
21418
# The user is always right.
 
21419
if test "${PATH_SEPARATOR+set}" != set; then
 
21420
  echo "#! /bin/sh" >conf$$.sh
 
21421
  echo  "exit 0"   >>conf$$.sh
 
21422
  chmod +x conf$$.sh
 
21423
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
21424
    PATH_SEPARATOR=';'
 
21425
  else
 
21426
    PATH_SEPARATOR=:
 
21427
  fi
 
21428
  rm -f conf$$.sh
 
21429
fi
 
21430
 
 
21431
 
 
21432
  as_lineno_1=$LINENO
 
21433
  as_lineno_2=$LINENO
 
21434
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
21435
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
21436
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
21437
  # Find who we are.  Look in the path if we contain no path at all
 
21438
  # relative or not.
 
21439
  case $0 in
 
21440
    *[\\/]* ) as_myself=$0 ;;
 
21441
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21442
for as_dir in $PATH
 
21443
do
 
21444
  IFS=$as_save_IFS
 
21445
  test -z "$as_dir" && as_dir=.
 
21446
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
21447
done
 
21448
 
 
21449
       ;;
 
21450
  esac
 
21451
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
21452
  # in which case we are not to be found in the path.
 
21453
  if test "x$as_myself" = x; then
 
21454
    as_myself=$0
 
21455
  fi
 
21456
  if test ! -f "$as_myself"; then
 
21457
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
 
21458
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
 
21459
   { (exit 1); exit 1; }; }
 
21460
  fi
 
21461
  case $CONFIG_SHELL in
 
21462
  '')
 
21463
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21464
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
21465
do
 
21466
  IFS=$as_save_IFS
 
21467
  test -z "$as_dir" && as_dir=.
 
21468
  for as_base in sh bash ksh sh5; do
 
21469
         case $as_dir in
 
21470
         /*)
 
21471
           if ("$as_dir/$as_base" -c '
 
21472
  as_lineno_1=$LINENO
 
21473
  as_lineno_2=$LINENO
 
21474
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
21475
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
21476
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
21477
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
21478
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
21479
             CONFIG_SHELL=$as_dir/$as_base
 
21480
             export CONFIG_SHELL
 
21481
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
21482
           fi;;
 
21483
         esac
 
21484
       done
 
21485
done
 
21486
;;
 
21487
  esac
 
21488
 
 
21489
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
21490
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
21491
  # line-number line before each line; the second 'sed' does the real
 
21492
  # work.  The second script uses 'N' to pair each line-number line
 
21493
  # with the numbered line, and appends trailing '-' during
 
21494
  # substitution so that $LINENO is not a special case at line end.
 
21495
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
21496
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
21497
  sed '=' <$as_myself |
 
21498
    sed '
 
21499
      N
 
21500
      s,$,-,
 
21501
      : loop
 
21502
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
21503
      t loop
 
21504
      s,-$,,
 
21505
      s,^['$as_cr_digits']*\n,,
 
21506
    ' >$as_me.lineno &&
 
21507
  chmod +x $as_me.lineno ||
 
21508
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
 
21509
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
21510
   { (exit 1); exit 1; }; }
 
21511
 
 
21512
  # Don't try to exec as it changes $[0], causing all sort of problems
 
21513
  # (the dirname of $[0] is not the place where we might find the
 
21514
  # original and so on.  Autoconf is especially sensible to this).
 
21515
  . ./$as_me.lineno
 
21516
  # Exit status is that of the last command.
 
21517
  exit
 
21518
}
 
21519
 
 
21520
 
 
21521
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
21522
  *c*,-n*) ECHO_N= ECHO_C='
 
21523
' ECHO_T='      ' ;;
 
21524
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
21525
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
21526
esac
 
21527
 
 
21528
if expr a : '\(a\)' >/dev/null 2>&1; then
 
21529
  as_expr=expr
 
21530
else
 
21531
  as_expr=false
 
21532
fi
 
21533
 
 
21534
rm -f conf$$ conf$$.exe conf$$.file
 
21535
echo >conf$$.file
 
21536
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
21537
  # We could just check for DJGPP; but this test a) works b) is more generic
 
21538
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
21539
  if test -f conf$$.exe; then
 
21540
    # Don't use ln at all; we don't have any links
 
21541
    as_ln_s='cp -p'
 
21542
  else
 
21543
    as_ln_s='ln -s'
 
21544
  fi
 
21545
elif ln conf$$.file conf$$ 2>/dev/null; then
 
21546
  as_ln_s=ln
 
21547
else
 
21548
  as_ln_s='cp -p'
 
21549
fi
 
21550
rm -f conf$$ conf$$.exe conf$$.file
 
21551
 
 
21552
if mkdir -p . 2>/dev/null; then
 
21553
  as_mkdir_p=:
 
21554
else
 
21555
  test -d ./-p && rmdir ./-p
 
21556
  as_mkdir_p=false
 
21557
fi
 
21558
 
 
21559
as_executable_p="test -f"
 
21560
 
 
21561
# Sed expression to map a string onto a valid CPP name.
 
21562
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
21563
 
 
21564
# Sed expression to map a string onto a valid variable name.
 
21565
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
21566
 
 
21567
 
 
21568
# IFS
 
21569
# We need space, tab and new line, in precisely that order.
 
21570
as_nl='
 
21571
'
 
21572
IFS="   $as_nl"
 
21573
 
 
21574
# CDPATH.
 
21575
$as_unset CDPATH
 
21576
 
 
21577
exec 6>&1
 
21578
 
 
21579
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
21580
# report actual input values of CONFIG_FILES etc. instead of their
 
21581
# values after options handling.  Logging --version etc. is OK.
 
21582
exec 5>>config.log
 
21583
{
 
21584
  echo
 
21585
  sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
 
21586
@%:@@%:@ Running $as_me. @%:@@%:@
 
21587
_ASBOX
 
21588
} >&5
 
21589
cat >&5 <<_CSEOF
 
21590
 
 
21591
This file was extended by $as_me, which was
 
21592
generated by GNU Autoconf 2.59.  Invocation command line was
 
21593
 
 
21594
  CONFIG_FILES    = $CONFIG_FILES
 
21595
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
21596
  CONFIG_LINKS    = $CONFIG_LINKS
 
21597
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
21598
  $ $0 $@
 
21599
 
 
21600
_CSEOF
 
21601
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
21602
echo >&5
 
21603
_ACEOF
 
21604
 
 
21605
# Files that config.status was made for.
 
21606
if test -n "$ac_config_files"; then
 
21607
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
 
21608
fi
 
21609
 
 
21610
if test -n "$ac_config_headers"; then
 
21611
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 
21612
fi
 
21613
 
 
21614
if test -n "$ac_config_links"; then
 
21615
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 
21616
fi
 
21617
 
 
21618
if test -n "$ac_config_commands"; then
 
21619
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 
21620
fi
 
21621
 
 
21622
cat >>$CONFIG_STATUS <<\_ACEOF
 
21623
 
 
21624
ac_cs_usage="\
 
21625
\`$as_me' instantiates files from templates according to the
 
21626
current configuration.
 
21627
 
 
21628
Usage: $0 [OPTIONS] [FILE]...
 
21629
 
 
21630
  -h, --help       print this help, then exit
 
21631
  -V, --version    print version number, then exit
 
21632
  -q, --quiet      do not print progress messages
 
21633
  -d, --debug      don't remove temporary files
 
21634
      --recheck    update $as_me by reconfiguring in the same conditions
 
21635
  --file=FILE[:TEMPLATE]
 
21636
                   instantiate the configuration file FILE
 
21637
  --header=FILE[:TEMPLATE]
 
21638
                   instantiate the configuration header FILE
 
21639
 
 
21640
Configuration files:
 
21641
$config_files
 
21642
 
 
21643
Configuration headers:
 
21644
$config_headers
 
21645
 
 
21646
Configuration links:
 
21647
$config_links
 
21648
 
 
21649
Configuration commands:
 
21650
$config_commands
 
21651
 
 
21652
Report bugs to <bug-autoconf@gnu.org>."
 
21653
_ACEOF
 
21654
 
 
21655
cat >>$CONFIG_STATUS <<_ACEOF
 
21656
ac_cs_version="\\
 
21657
config.status
 
21658
configured by $0, generated by GNU Autoconf 2.59,
 
21659
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
21660
 
 
21661
Copyright (C) 2003 Free Software Foundation, Inc.
 
21662
This config.status script is free software; the Free Software Foundation
 
21663
gives unlimited permission to copy, distribute and modify it."
 
21664
srcdir=$srcdir
 
21665
INSTALL="$INSTALL"
 
21666
_ACEOF
 
21667
 
 
21668
cat >>$CONFIG_STATUS <<\_ACEOF
 
21669
# If no file are specified by the user, then we need to provide default
 
21670
# value.  By we need to know if files were specified by the user.
 
21671
ac_need_defaults=:
 
21672
while test $# != 0
 
21673
do
 
21674
  case $1 in
 
21675
  --*=*)
 
21676
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 
21677
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
21678
    ac_shift=:
 
21679
    ;;
 
21680
  -*)
 
21681
    ac_option=$1
 
21682
    ac_optarg=$2
 
21683
    ac_shift=shift
 
21684
    ;;
 
21685
  *) # This is not an option, so the user has probably given explicit
 
21686
     # arguments.
 
21687
     ac_option=$1
 
21688
     ac_need_defaults=false;;
 
21689
  esac
 
21690
 
 
21691
  case $ac_option in
 
21692
  # Handling of the options.
 
21693
_ACEOF
 
21694
cat >>$CONFIG_STATUS <<\_ACEOF
 
21695
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
21696
    ac_cs_recheck=: ;;
 
21697
  --version | --vers* | -V )
 
21698
    echo "$ac_cs_version"; exit 0 ;;
 
21699
  --he | --h)
 
21700
    # Conflict between --help and --header
 
21701
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
 
21702
Try \`$0 --help' for more information." >&5
 
21703
echo "$as_me: error: ambiguous option: $1
 
21704
Try \`$0 --help' for more information." >&2;}
 
21705
   { (exit 1); exit 1; }; };;
 
21706
  --help | --hel | -h )
 
21707
    echo "$ac_cs_usage"; exit 0 ;;
 
21708
  --debug | --d* | -d )
 
21709
    debug=: ;;
 
21710
  --file | --fil | --fi | --f )
 
21711
    $ac_shift
 
21712
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
21713
    ac_need_defaults=false;;
 
21714
  --header | --heade | --head | --hea )
 
21715
    $ac_shift
 
21716
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
21717
    ac_need_defaults=false;;
 
21718
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
21719
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
21720
    ac_cs_silent=: ;;
 
21721
 
 
21722
  # This is an error.
 
21723
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
 
21724
Try \`$0 --help' for more information." >&5
 
21725
echo "$as_me: error: unrecognized option: $1
 
21726
Try \`$0 --help' for more information." >&2;}
 
21727
   { (exit 1); exit 1; }; } ;;
 
21728
 
 
21729
  *) ac_config_targets="$ac_config_targets $1" ;;
 
21730
 
 
21731
  esac
 
21732
  shift
 
21733
done
 
21734
 
 
21735
ac_configure_extra_args=
 
21736
 
 
21737
if $ac_cs_silent; then
 
21738
  exec 6>/dev/null
 
21739
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
21740
fi
 
21741
 
 
21742
_ACEOF
 
21743
cat >>$CONFIG_STATUS <<_ACEOF
 
21744
if \$ac_cs_recheck; then
 
21745
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
21746
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
21747
fi
 
21748
 
 
21749
_ACEOF
 
21750
 
 
21751
cat >>$CONFIG_STATUS <<_ACEOF
 
21752
#
 
21753
# INIT-COMMANDS section.
 
21754
#
 
21755
 
 
21756
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
21757
 
 
21758
_ACEOF
 
21759
 
 
21760
 
 
21761
 
 
21762
cat >>$CONFIG_STATUS <<\_ACEOF
 
21763
for ac_config_target in $ac_config_targets
 
21764
do
 
21765
  case "$ac_config_target" in
 
21766
  # Handling of arguments.
 
21767
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
21768
  "libofx.spec" ) CONFIG_FILES="$CONFIG_FILES libofx.spec" ;;
 
21769
  "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
 
21770
  "inc/Makefile" ) CONFIG_FILES="$CONFIG_FILES inc/Makefile" ;;
 
21771
  "dtd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dtd/Makefile" ;;
 
21772
  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
 
21773
  "ofx2qif/Makefile" ) CONFIG_FILES="$CONFIG_FILES ofx2qif/Makefile" ;;
 
21774
  "ofxdump/Makefile" ) CONFIG_FILES="$CONFIG_FILES ofxdump/Makefile" ;;
 
21775
  "ofxconnect/Makefile" ) CONFIG_FILES="$CONFIG_FILES ofxconnect/Makefile" ;;
 
21776
  "lib/getopt.h" ) CONFIG_LINKS="$CONFIG_LINKS lib/getopt.h:lib/gnugetopt.h" ;;
 
21777
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
21778
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
21779
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
21780
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
21781
   { (exit 1); exit 1; }; };;
 
21782
  esac
 
21783
done
 
21784
 
 
21785
# If the user did not use the arguments to specify the items to instantiate,
 
21786
# then the envvar interface is used.  Set only those that are not.
 
21787
# We use the long form for the default assignment because of an extremely
 
21788
# bizarre bug on SunOS 4.1.3.
 
21789
if $ac_need_defaults; then
 
21790
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
21791
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
21792
  test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
 
21793
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
21794
fi
 
21795
 
 
21796
# Have a temporary directory for convenience.  Make it in the build tree
 
21797
# simply because there is no reason to put it here, and in addition,
 
21798
# creating and moving files from /tmp can sometimes cause problems.
 
21799
# Create a temporary directory, and hook for its removal unless debugging.
 
21800
$debug ||
 
21801
{
 
21802
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
21803
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
21804
}
 
21805
 
 
21806
# Create a (secure) tmp directory for tmp files.
 
21807
 
 
21808
{
 
21809
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
21810
  test -n "$tmp" && test -d "$tmp"
 
21811
}  ||
 
21812
{
 
21813
  tmp=./confstat$$-$RANDOM
 
21814
  (umask 077 && mkdir $tmp)
 
21815
} ||
 
21816
{
 
21817
   echo "$me: cannot create a temporary directory in ." >&2
 
21818
   { (exit 1); exit 1; }
 
21819
}
 
21820
 
 
21821
_ACEOF
 
21822
 
 
21823
cat >>$CONFIG_STATUS <<_ACEOF
 
21824
 
 
21825
#
 
21826
# CONFIG_FILES section.
 
21827
#
 
21828
 
 
21829
# No need to generate the scripts if there are no CONFIG_FILES.
 
21830
# This happens for instance when ./config.status config.h
 
21831
if test -n "\$CONFIG_FILES"; then
 
21832
  # Protect against being on the right side of a sed subst in config.status.
 
21833
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
 
21834
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
 
21835
s,@SHELL@,$SHELL,;t t
 
21836
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
21837
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
21838
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
21839
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
21840
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
21841
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
 
21842
s,@exec_prefix@,$exec_prefix,;t t
 
21843
s,@prefix@,$prefix,;t t
 
21844
s,@program_transform_name@,$program_transform_name,;t t
 
21845
s,@bindir@,$bindir,;t t
 
21846
s,@sbindir@,$sbindir,;t t
 
21847
s,@libexecdir@,$libexecdir,;t t
 
21848
s,@datadir@,$datadir,;t t
 
21849
s,@sysconfdir@,$sysconfdir,;t t
 
21850
s,@sharedstatedir@,$sharedstatedir,;t t
 
21851
s,@localstatedir@,$localstatedir,;t t
 
21852
s,@libdir@,$libdir,;t t
 
21853
s,@includedir@,$includedir,;t t
 
21854
s,@oldincludedir@,$oldincludedir,;t t
 
21855
s,@infodir@,$infodir,;t t
 
21856
s,@mandir@,$mandir,;t t
 
21857
s,@build_alias@,$build_alias,;t t
 
21858
s,@host_alias@,$host_alias,;t t
 
21859
s,@target_alias@,$target_alias,;t t
 
21860
s,@DEFS@,$DEFS,;t t
 
21861
s,@ECHO_C@,$ECHO_C,;t t
 
21862
s,@ECHO_N@,$ECHO_N,;t t
 
21863
s,@ECHO_T@,$ECHO_T,;t t
 
21864
s,@LIBS@,$LIBS,;t t
 
21865
s,@CC@,$CC,;t t
 
21866
s,@CFLAGS@,$CFLAGS,;t t
 
21867
s,@LDFLAGS@,$LDFLAGS,;t t
 
21868
s,@CPPFLAGS@,$CPPFLAGS,;t t
 
21869
s,@ac_ct_CC@,$ac_ct_CC,;t t
 
21870
s,@EXEEXT@,$EXEEXT,;t t
 
21871
s,@OBJEXT@,$OBJEXT,;t t
 
21872
s,@CXX@,$CXX,;t t
 
21873
s,@CXXFLAGS@,$CXXFLAGS,;t t
 
21874
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
 
21875
s,@LIBOFX_MAJOR_VERSION@,$LIBOFX_MAJOR_VERSION,;t t
 
21876
s,@LIBOFX_MINOR_VERSION@,$LIBOFX_MINOR_VERSION,;t t
 
21877
s,@LIBOFX_MICRO_VERSION@,$LIBOFX_MICRO_VERSION,;t t
 
21878
s,@LIBOFX_VERSION@,$LIBOFX_VERSION,;t t
 
21879
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
 
21880
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
 
21881
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
 
21882
s,@CYGPATH_W@,$CYGPATH_W,;t t
 
21883
s,@PACKAGE@,$PACKAGE,;t t
 
21884
s,@VERSION@,$VERSION,;t t
 
21885
s,@ACLOCAL@,$ACLOCAL,;t t
 
21886
s,@AUTOCONF@,$AUTOCONF,;t t
 
21887
s,@AUTOMAKE@,$AUTOMAKE,;t t
 
21888
s,@AUTOHEADER@,$AUTOHEADER,;t t
 
21889
s,@MAKEINFO@,$MAKEINFO,;t t
 
21890
s,@install_sh@,$install_sh,;t t
 
21891
s,@STRIP@,$STRIP,;t t
 
21892
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
 
21893
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
 
21894
s,@mkdir_p@,$mkdir_p,;t t
 
21895
s,@AWK@,$AWK,;t t
 
21896
s,@SET_MAKE@,$SET_MAKE,;t t
 
21897
s,@am__leading_dot@,$am__leading_dot,;t t
 
21898
s,@AMTAR@,$AMTAR,;t t
 
21899
s,@am__tar@,$am__tar,;t t
 
21900
s,@am__untar@,$am__untar,;t t
 
21901
s,@DEPDIR@,$DEPDIR,;t t
 
21902
s,@am__include@,$am__include,;t t
 
21903
s,@am__quote@,$am__quote,;t t
 
21904
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
 
21905
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
 
21906
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
 
21907
s,@CCDEPMODE@,$CCDEPMODE,;t t
 
21908
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
 
21909
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
 
21910
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
 
21911
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
 
21912
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
 
21913
s,@LIBOFX_SO_CURRENT@,$LIBOFX_SO_CURRENT,;t t
 
21914
s,@LIBOFX_SO_REVISION@,$LIBOFX_SO_REVISION,;t t
 
21915
s,@LIBOFX_SO_AGE@,$LIBOFX_SO_AGE,;t t
 
21916
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
 
21917
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
 
21918
s,@MAINT@,$MAINT,;t t
 
21919
s,@build@,$build,;t t
 
21920
s,@build_cpu@,$build_cpu,;t t
 
21921
s,@build_vendor@,$build_vendor,;t t
 
21922
s,@build_os@,$build_os,;t t
 
21923
s,@host@,$host,;t t
 
21924
s,@host_cpu@,$host_cpu,;t t
 
21925
s,@host_vendor@,$host_vendor,;t t
 
21926
s,@host_os@,$host_os,;t t
 
21927
s,@EGREP@,$EGREP,;t t
 
21928
s,@LN_S@,$LN_S,;t t
 
21929
s,@ECHO@,$ECHO,;t t
 
21930
s,@AR@,$AR,;t t
 
21931
s,@ac_ct_AR@,$ac_ct_AR,;t t
 
21932
s,@RANLIB@,$RANLIB,;t t
 
21933
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
 
21934
s,@CPP@,$CPP,;t t
 
21935
s,@CXXCPP@,$CXXCPP,;t t
 
21936
s,@F77@,$F77,;t t
 
21937
s,@FFLAGS@,$FFLAGS,;t t
 
21938
s,@ac_ct_F77@,$ac_ct_F77,;t t
 
21939
s,@LIBTOOL@,$LIBTOOL,;t t
 
21940
s,@DOXYGEN@,$DOXYGEN,;t t
 
21941
s,@DOT@,$DOT,;t t
 
21942
s,@DOC_TRUE@,$DOC_TRUE,;t t
 
21943
s,@DOC_FALSE@,$DOC_FALSE,;t t
 
21944
s,@ENABLE_DOXYGEN_TRUE@,$ENABLE_DOXYGEN_TRUE,;t t
 
21945
s,@ENABLE_DOXYGEN_FALSE@,$ENABLE_DOXYGEN_FALSE,;t t
 
21946
s,@enable_dot@,$enable_dot,;t t
 
21947
s,@enable_html_docs@,$enable_html_docs,;t t
 
21948
s,@enable_latex_docs@,$enable_latex_docs,;t t
 
21949
s,@LIB@&t@OBJS@,$LIB@&t@OBJS,;t t
 
21950
s,@NO_GETOPTLONG_TRUE@,$NO_GETOPTLONG_TRUE,;t t
 
21951
s,@NO_GETOPTLONG_FALSE@,$NO_GETOPTLONG_FALSE,;t t
 
21952
s,@have_gengetopt@,$have_gengetopt,;t t
 
21953
s,@USE_GENGETOPT_TRUE@,$USE_GENGETOPT_TRUE,;t t
 
21954
s,@USE_GENGETOPT_FALSE@,$USE_GENGETOPT_FALSE,;t t
 
21955
s,@OPENSPINCLUDES@,$OPENSPINCLUDES,;t t
 
21956
s,@OPENSPLIBS@,$OPENSPLIBS,;t t
 
21957
s,@LIBOFX_DTD_DIR@,$LIBOFX_DTD_DIR,;t t
 
21958
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
 
21959
CEOF
 
21960
 
 
21961
_ACEOF
 
21962
 
 
21963
  cat >>$CONFIG_STATUS <<\_ACEOF
 
21964
  # Split the substitutions into bite-sized pieces for seds with
 
21965
  # small command number limits, like on Digital OSF/1 and HP-UX.
 
21966
  ac_max_sed_lines=48
 
21967
  ac_sed_frag=1 # Number of current file.
 
21968
  ac_beg=1 # First line for current file.
 
21969
  ac_end=$ac_max_sed_lines # Line after last line for current file.
 
21970
  ac_more_lines=:
 
21971
  ac_sed_cmds=
 
21972
  while $ac_more_lines; do
 
21973
    if test $ac_beg -gt 1; then
 
21974
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
21975
    else
 
21976
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
21977
    fi
 
21978
    if test ! -s $tmp/subs.frag; then
 
21979
      ac_more_lines=false
 
21980
    else
 
21981
      # The purpose of the label and of the branching condition is to
 
21982
      # speed up the sed processing (if there are no `@' at all, there
 
21983
      # is no need to browse any of the substitutions).
 
21984
      # These are the two extra sed commands mentioned above.
 
21985
      (echo ':t
 
21986
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
 
21987
      if test -z "$ac_sed_cmds"; then
 
21988
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
21989
      else
 
21990
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
21991
      fi
 
21992
      ac_sed_frag=`expr $ac_sed_frag + 1`
 
21993
      ac_beg=$ac_end
 
21994
      ac_end=`expr $ac_end + $ac_max_sed_lines`
 
21995
    fi
 
21996
  done
 
21997
  if test -z "$ac_sed_cmds"; then
 
21998
    ac_sed_cmds=cat
 
21999
  fi
 
22000
fi # test -n "$CONFIG_FILES"
 
22001
 
 
22002
_ACEOF
 
22003
cat >>$CONFIG_STATUS <<\_ACEOF
 
22004
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
 
22005
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
22006
  case $ac_file in
 
22007
  - | *:- | *:-:* ) # input from stdin
 
22008
        cat >$tmp/stdin
 
22009
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
22010
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
22011
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
22012
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
22013
  * )   ac_file_in=$ac_file.in ;;
 
22014
  esac
 
22015
 
 
22016
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
 
22017
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
22018
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
22019
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
22020
         X"$ac_file" : 'X\(//\)$' \| \
 
22021
         X"$ac_file" : 'X\(/\)' \| \
 
22022
         .     : '\(.\)' 2>/dev/null ||
 
22023
echo X"$ac_file" |
 
22024
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
22025
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
22026
          /^X\(\/\/\)$/{ s//\1/; q; }
 
22027
          /^X\(\/\).*/{ s//\1/; q; }
 
22028
          s/.*/./; q'`
 
22029
  { if $as_mkdir_p; then
 
22030
    mkdir -p "$ac_dir"
 
22031
  else
 
22032
    as_dir="$ac_dir"
 
22033
    as_dirs=
 
22034
    while test ! -d "$as_dir"; do
 
22035
      as_dirs="$as_dir $as_dirs"
 
22036
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
22037
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
22038
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
22039
         X"$as_dir" : 'X\(//\)$' \| \
 
22040
         X"$as_dir" : 'X\(/\)' \| \
 
22041
         .     : '\(.\)' 2>/dev/null ||
 
22042
echo X"$as_dir" |
 
22043
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
22044
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
22045
          /^X\(\/\/\)$/{ s//\1/; q; }
 
22046
          /^X\(\/\).*/{ s//\1/; q; }
 
22047
          s/.*/./; q'`
 
22048
    done
 
22049
    test ! -n "$as_dirs" || mkdir $as_dirs
 
22050
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
22051
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
22052
   { (exit 1); exit 1; }; }; }
 
22053
 
 
22054
  ac_builddir=.
 
22055
 
 
22056
if test "$ac_dir" != .; then
 
22057
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
22058
  # A "../" for each directory in $ac_dir_suffix.
 
22059
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
22060
else
 
22061
  ac_dir_suffix= ac_top_builddir=
 
22062
fi
 
22063
 
 
22064
case $srcdir in
 
22065
  .)  # No --srcdir option.  We are building in place.
 
22066
    ac_srcdir=.
 
22067
    if test -z "$ac_top_builddir"; then
 
22068
       ac_top_srcdir=.
 
22069
    else
 
22070
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
22071
    fi ;;
 
22072
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
22073
    ac_srcdir=$srcdir$ac_dir_suffix;
 
22074
    ac_top_srcdir=$srcdir ;;
 
22075
  *) # Relative path.
 
22076
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
22077
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
22078
esac
 
22079
 
 
22080
# Do not use `cd foo && pwd` to compute absolute paths, because
 
22081
# the directories may not exist.
 
22082
case `pwd` in
 
22083
.) ac_abs_builddir="$ac_dir";;
 
22084
*)
 
22085
  case "$ac_dir" in
 
22086
  .) ac_abs_builddir=`pwd`;;
 
22087
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
22088
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
22089
  esac;;
 
22090
esac
 
22091
case $ac_abs_builddir in
 
22092
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
22093
*)
 
22094
  case ${ac_top_builddir}. in
 
22095
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
22096
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
22097
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
22098
  esac;;
 
22099
esac
 
22100
case $ac_abs_builddir in
 
22101
.) ac_abs_srcdir=$ac_srcdir;;
 
22102
*)
 
22103
  case $ac_srcdir in
 
22104
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
22105
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
22106
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
22107
  esac;;
 
22108
esac
 
22109
case $ac_abs_builddir in
 
22110
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
22111
*)
 
22112
  case $ac_top_srcdir in
 
22113
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
22114
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
22115
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
22116
  esac;;
 
22117
esac
 
22118
 
 
22119
 
 
22120
  case $INSTALL in
 
22121
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
22122
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
 
22123
  esac
 
22124
 
 
22125
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
22126
  # use $as_me), people would be surprised to read:
 
22127
  #    /* config.h.  Generated by config.status.  */
 
22128
  if test x"$ac_file" = x-; then
 
22129
    configure_input=
 
22130
  else
 
22131
    configure_input="$ac_file.  "
 
22132
  fi
 
22133
  configure_input=$configure_input"Generated from `echo $ac_file_in |
 
22134
                                     sed 's,.*/,,'` by configure."
 
22135
 
 
22136
  # First look for the input files in the build tree, otherwise in the
 
22137
  # src tree.
 
22138
  ac_file_inputs=`IFS=:
 
22139
    for f in $ac_file_in; do
 
22140
      case $f in
 
22141
      -) echo $tmp/stdin ;;
 
22142
      [\\/$]*)
 
22143
         # Absolute (can't be DOS-style, as IFS=:)
 
22144
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
22145
echo "$as_me: error: cannot find input file: $f" >&2;}
 
22146
   { (exit 1); exit 1; }; }
 
22147
         echo "$f";;
 
22148
      *) # Relative
 
22149
         if test -f "$f"; then
 
22150
           # Build tree
 
22151
           echo "$f"
 
22152
         elif test -f "$srcdir/$f"; then
 
22153
           # Source tree
 
22154
           echo "$srcdir/$f"
 
22155
         else
 
22156
           # /dev/null tree
 
22157
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
22158
echo "$as_me: error: cannot find input file: $f" >&2;}
 
22159
   { (exit 1); exit 1; }; }
 
22160
         fi;;
 
22161
      esac
 
22162
    done` || { (exit 1); exit 1; }
 
22163
 
 
22164
  if test x"$ac_file" != x-; then
 
22165
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
22166
echo "$as_me: creating $ac_file" >&6;}
 
22167
    rm -f "$ac_file"
 
22168
  fi
 
22169
_ACEOF
 
22170
cat >>$CONFIG_STATUS <<_ACEOF
 
22171
  sed "$ac_vpsub
 
22172
$extrasub
 
22173
_ACEOF
 
22174
cat >>$CONFIG_STATUS <<\_ACEOF
 
22175
:t
 
22176
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
22177
s,@configure_input@,$configure_input,;t t
 
22178
s,@srcdir@,$ac_srcdir,;t t
 
22179
s,@abs_srcdir@,$ac_abs_srcdir,;t t
 
22180
s,@top_srcdir@,$ac_top_srcdir,;t t
 
22181
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
 
22182
s,@builddir@,$ac_builddir,;t t
 
22183
s,@abs_builddir@,$ac_abs_builddir,;t t
 
22184
s,@top_builddir@,$ac_top_builddir,;t t
 
22185
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
 
22186
s,@INSTALL@,$ac_INSTALL,;t t
 
22187
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
 
22188
  rm -f $tmp/stdin
 
22189
  if test x"$ac_file" != x-; then
 
22190
    mv $tmp/out $ac_file
 
22191
  else
 
22192
    cat $tmp/out
 
22193
    rm -f $tmp/out
 
22194
  fi
 
22195
 
 
22196
done
 
22197
_ACEOF
 
22198
cat >>$CONFIG_STATUS <<\_ACEOF
 
22199
 
 
22200
#
 
22201
# CONFIG_HEADER section.
 
22202
#
 
22203
 
 
22204
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
 
22205
# NAME is the cpp macro being defined and VALUE is the value it is being given.
 
22206
#
 
22207
# ac_d sets the value in "#define NAME VALUE" lines.
 
22208
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
 
22209
ac_dB='[         ].*$,\1#\2'
 
22210
ac_dC=' '
 
22211
ac_dD=',;t'
 
22212
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 
22213
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
22214
ac_uB='$,\1#\2define\3'
 
22215
ac_uC=' '
 
22216
ac_uD=',;t'
 
22217
 
 
22218
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
 
22219
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
22220
  case $ac_file in
 
22221
  - | *:- | *:-:* ) # input from stdin
 
22222
        cat >$tmp/stdin
 
22223
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
22224
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
22225
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
22226
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
22227
  * )   ac_file_in=$ac_file.in ;;
 
22228
  esac
 
22229
 
 
22230
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
 
22231
echo "$as_me: creating $ac_file" >&6;}
 
22232
 
 
22233
  # First look for the input files in the build tree, otherwise in the
 
22234
  # src tree.
 
22235
  ac_file_inputs=`IFS=:
 
22236
    for f in $ac_file_in; do
 
22237
      case $f in
 
22238
      -) echo $tmp/stdin ;;
 
22239
      [\\/$]*)
 
22240
         # Absolute (can't be DOS-style, as IFS=:)
 
22241
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
22242
echo "$as_me: error: cannot find input file: $f" >&2;}
 
22243
   { (exit 1); exit 1; }; }
 
22244
         # Do quote $f, to prevent DOS paths from being IFS'd.
 
22245
         echo "$f";;
 
22246
      *) # Relative
 
22247
         if test -f "$f"; then
 
22248
           # Build tree
 
22249
           echo "$f"
 
22250
         elif test -f "$srcdir/$f"; then
 
22251
           # Source tree
 
22252
           echo "$srcdir/$f"
 
22253
         else
 
22254
           # /dev/null tree
 
22255
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
22256
echo "$as_me: error: cannot find input file: $f" >&2;}
 
22257
   { (exit 1); exit 1; }; }
 
22258
         fi;;
 
22259
      esac
 
22260
    done` || { (exit 1); exit 1; }
 
22261
  # Remove the trailing spaces.
 
22262
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
 
22263
 
 
22264
_ACEOF
 
22265
 
 
22266
# Transform confdefs.h into two sed scripts, `conftest.defines' and
 
22267
# `conftest.undefs', that substitutes the proper values into
 
22268
# config.h.in to produce config.h.  The first handles `#define'
 
22269
# templates, and the second `#undef' templates.
 
22270
# And first: Protect against being on the right side of a sed subst in
 
22271
# config.status.  Protect against being in an unquoted here document
 
22272
# in config.status.
 
22273
rm -f conftest.defines conftest.undefs
 
22274
# Using a here document instead of a string reduces the quoting nightmare.
 
22275
# Putting comments in sed scripts is not portable.
 
22276
#
 
22277
# `end' is used to avoid that the second main sed command (meant for
 
22278
# 0-ary CPP macros) applies to n-ary macro definitions.
 
22279
# See the Autoconf documentation for `clear'.
 
22280
cat >confdef2sed.sed <<\_ACEOF
 
22281
s/[\\&,]/\\&/g
 
22282
s,[\\$`],\\&,g
 
22283
t clear
 
22284
: clear
 
22285
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
 
22286
t end
 
22287
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
 
22288
: end
 
22289
_ACEOF
 
22290
# If some macros were called several times there might be several times
 
22291
# the same #defines, which is useless.  Nevertheless, we may not want to
 
22292
# sort them, since we want the *last* AC-DEFINE to be honored.
 
22293
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
 
22294
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
 
22295
rm -f confdef2sed.sed
 
22296
 
 
22297
# This sed command replaces #undef with comments.  This is necessary, for
 
22298
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
22299
# on some systems where configure will not decide to define it.
 
22300
cat >>conftest.undefs <<\_ACEOF
 
22301
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
22302
_ACEOF
 
22303
 
 
22304
# Break up conftest.defines because some shells have a limit on the size
 
22305
# of here documents, and old seds have small limits too (100 cmds).
 
22306
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
 
22307
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
 
22308
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
 
22309
echo '  :' >>$CONFIG_STATUS
 
22310
rm -f conftest.tail
 
22311
while grep . conftest.defines >/dev/null
 
22312
do
 
22313
  # Write a limited-size here document to $tmp/defines.sed.
 
22314
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
 
22315
  # Speed up: don't consider the non `#define' lines.
 
22316
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
 
22317
  # Work around the forget-to-reset-the-flag bug.
 
22318
  echo 't clr' >>$CONFIG_STATUS
 
22319
  echo ': clr' >>$CONFIG_STATUS
 
22320
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
 
22321
  echo 'CEOF
 
22322
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
 
22323
  rm -f $tmp/in
 
22324
  mv $tmp/out $tmp/in
 
22325
' >>$CONFIG_STATUS
 
22326
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
 
22327
  rm -f conftest.defines
 
22328
  mv conftest.tail conftest.defines
 
22329
done
 
22330
rm -f conftest.defines
 
22331
echo '  fi # grep' >>$CONFIG_STATUS
 
22332
echo >>$CONFIG_STATUS
 
22333
 
 
22334
# Break up conftest.undefs because some shells have a limit on the size
 
22335
# of here documents, and old seds have small limits too (100 cmds).
 
22336
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
 
22337
rm -f conftest.tail
 
22338
while grep . conftest.undefs >/dev/null
 
22339
do
 
22340
  # Write a limited-size here document to $tmp/undefs.sed.
 
22341
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
 
22342
  # Speed up: don't consider the non `#undef'
 
22343
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
 
22344
  # Work around the forget-to-reset-the-flag bug.
 
22345
  echo 't clr' >>$CONFIG_STATUS
 
22346
  echo ': clr' >>$CONFIG_STATUS
 
22347
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
 
22348
  echo 'CEOF
 
22349
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
 
22350
  rm -f $tmp/in
 
22351
  mv $tmp/out $tmp/in
 
22352
' >>$CONFIG_STATUS
 
22353
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
 
22354
  rm -f conftest.undefs
 
22355
  mv conftest.tail conftest.undefs
 
22356
done
 
22357
rm -f conftest.undefs
 
22358
 
 
22359
cat >>$CONFIG_STATUS <<\_ACEOF
 
22360
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
22361
  # use $as_me), people would be surprised to read:
 
22362
  #    /* config.h.  Generated by config.status.  */
 
22363
  if test x"$ac_file" = x-; then
 
22364
    echo "/* Generated by configure.  */" >$tmp/config.h
 
22365
  else
 
22366
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
 
22367
  fi
 
22368
  cat $tmp/in >>$tmp/config.h
 
22369
  rm -f $tmp/in
 
22370
  if test x"$ac_file" != x-; then
 
22371
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
 
22372
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
22373
echo "$as_me: $ac_file is unchanged" >&6;}
 
22374
    else
 
22375
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
22376
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
22377
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
22378
         X"$ac_file" : 'X\(//\)$' \| \
 
22379
         X"$ac_file" : 'X\(/\)' \| \
 
22380
         .     : '\(.\)' 2>/dev/null ||
 
22381
echo X"$ac_file" |
 
22382
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
22383
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
22384
          /^X\(\/\/\)$/{ s//\1/; q; }
 
22385
          /^X\(\/\).*/{ s//\1/; q; }
 
22386
          s/.*/./; q'`
 
22387
      { if $as_mkdir_p; then
 
22388
    mkdir -p "$ac_dir"
 
22389
  else
 
22390
    as_dir="$ac_dir"
 
22391
    as_dirs=
 
22392
    while test ! -d "$as_dir"; do
 
22393
      as_dirs="$as_dir $as_dirs"
 
22394
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
22395
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
22396
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
22397
         X"$as_dir" : 'X\(//\)$' \| \
 
22398
         X"$as_dir" : 'X\(/\)' \| \
 
22399
         .     : '\(.\)' 2>/dev/null ||
 
22400
echo X"$as_dir" |
 
22401
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
22402
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
22403
          /^X\(\/\/\)$/{ s//\1/; q; }
 
22404
          /^X\(\/\).*/{ s//\1/; q; }
 
22405
          s/.*/./; q'`
 
22406
    done
 
22407
    test ! -n "$as_dirs" || mkdir $as_dirs
 
22408
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
22409
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
22410
   { (exit 1); exit 1; }; }; }
 
22411
 
 
22412
      rm -f $ac_file
 
22413
      mv $tmp/config.h $ac_file
 
22414
    fi
 
22415
  else
 
22416
    cat $tmp/config.h
 
22417
    rm -f $tmp/config.h
 
22418
  fi
 
22419
# Compute $ac_file's index in $config_headers.
 
22420
_am_stamp_count=1
 
22421
for _am_header in $config_headers :; do
 
22422
  case $_am_header in
 
22423
    $ac_file | $ac_file:* )
 
22424
      break ;;
 
22425
    * )
 
22426
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
22427
  esac
 
22428
done
 
22429
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
 
22430
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
22431
         X$ac_file : 'X\(//\)[^/]' \| \
 
22432
         X$ac_file : 'X\(//\)$' \| \
 
22433
         X$ac_file : 'X\(/\)' \| \
 
22434
         .     : '\(.\)' 2>/dev/null ||
 
22435
echo X$ac_file |
 
22436
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
22437
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
22438
          /^X\(\/\/\)$/{ s//\1/; q; }
 
22439
          /^X\(\/\).*/{ s//\1/; q; }
 
22440
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
22441
done
 
22442
_ACEOF
 
22443
cat >>$CONFIG_STATUS <<\_ACEOF
 
22444
 
 
22445
#
 
22446
# CONFIG_LINKS section.
 
22447
#
 
22448
 
 
22449
for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
 
22450
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
 
22451
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
22452
 
 
22453
  { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
 
22454
echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
 
22455
 
 
22456
  if test ! -r $srcdir/$ac_source; then
 
22457
    { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
 
22458
echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
 
22459
   { (exit 1); exit 1; }; }
 
22460
  fi
 
22461
  rm -f $ac_dest
 
22462
 
 
22463
  # Make relative symlinks.
 
22464
  ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
 
22465
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
22466
         X"$ac_dest" : 'X\(//\)[^/]' \| \
 
22467
         X"$ac_dest" : 'X\(//\)$' \| \
 
22468
         X"$ac_dest" : 'X\(/\)' \| \
 
22469
         .     : '\(.\)' 2>/dev/null ||
 
22470
echo X"$ac_dest" |
 
22471
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
22472
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
22473
          /^X\(\/\/\)$/{ s//\1/; q; }
 
22474
          /^X\(\/\).*/{ s//\1/; q; }
 
22475
          s/.*/./; q'`
 
22476
  { if $as_mkdir_p; then
 
22477
    mkdir -p "$ac_dest_dir"
 
22478
  else
 
22479
    as_dir="$ac_dest_dir"
 
22480
    as_dirs=
 
22481
    while test ! -d "$as_dir"; do
 
22482
      as_dirs="$as_dir $as_dirs"
 
22483
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
22484
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
22485
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
22486
         X"$as_dir" : 'X\(//\)$' \| \
 
22487
         X"$as_dir" : 'X\(/\)' \| \
 
22488
         .     : '\(.\)' 2>/dev/null ||
 
22489
echo X"$as_dir" |
 
22490
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
22491
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
22492
          /^X\(\/\/\)$/{ s//\1/; q; }
 
22493
          /^X\(\/\).*/{ s//\1/; q; }
 
22494
          s/.*/./; q'`
 
22495
    done
 
22496
    test ! -n "$as_dirs" || mkdir $as_dirs
 
22497
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
 
22498
echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
 
22499
   { (exit 1); exit 1; }; }; }
 
22500
 
 
22501
  ac_builddir=.
 
22502
 
 
22503
if test "$ac_dest_dir" != .; then
 
22504
  ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
 
22505
  # A "../" for each directory in $ac_dir_suffix.
 
22506
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
22507
else
 
22508
  ac_dir_suffix= ac_top_builddir=
 
22509
fi
 
22510
 
 
22511
case $srcdir in
 
22512
  .)  # No --srcdir option.  We are building in place.
 
22513
    ac_srcdir=.
 
22514
    if test -z "$ac_top_builddir"; then
 
22515
       ac_top_srcdir=.
 
22516
    else
 
22517
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
22518
    fi ;;
 
22519
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
22520
    ac_srcdir=$srcdir$ac_dir_suffix;
 
22521
    ac_top_srcdir=$srcdir ;;
 
22522
  *) # Relative path.
 
22523
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
22524
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
22525
esac
 
22526
 
 
22527
# Do not use `cd foo && pwd` to compute absolute paths, because
 
22528
# the directories may not exist.
 
22529
case `pwd` in
 
22530
.) ac_abs_builddir="$ac_dest_dir";;
 
22531
*)
 
22532
  case "$ac_dest_dir" in
 
22533
  .) ac_abs_builddir=`pwd`;;
 
22534
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
 
22535
  *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
 
22536
  esac;;
 
22537
esac
 
22538
case $ac_abs_builddir in
 
22539
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
22540
*)
 
22541
  case ${ac_top_builddir}. in
 
22542
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
22543
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
22544
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
22545
  esac;;
 
22546
esac
 
22547
case $ac_abs_builddir in
 
22548
.) ac_abs_srcdir=$ac_srcdir;;
 
22549
*)
 
22550
  case $ac_srcdir in
 
22551
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
22552
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
22553
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
22554
  esac;;
 
22555
esac
 
22556
case $ac_abs_builddir in
 
22557
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
22558
*)
 
22559
  case $ac_top_srcdir in
 
22560
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
22561
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
22562
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
22563
  esac;;
 
22564
esac
 
22565
 
 
22566
 
 
22567
  case $srcdir in
 
22568
  [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
 
22569
      *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
 
22570
  esac
 
22571
 
 
22572
  # Try a symlink, then a hard link, then a copy.
 
22573
  ln -s $ac_rel_source $ac_dest 2>/dev/null ||
 
22574
    ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
 
22575
    cp -p $srcdir/$ac_source $ac_dest ||
 
22576
    { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
 
22577
echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
 
22578
   { (exit 1); exit 1; }; }
 
22579
done
 
22580
_ACEOF
 
22581
cat >>$CONFIG_STATUS <<\_ACEOF
 
22582
 
 
22583
#
 
22584
# CONFIG_COMMANDS section.
 
22585
#
 
22586
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
 
22587
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
 
22588
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
22589
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
 
22590
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
22591
         X"$ac_dest" : 'X\(//\)[^/]' \| \
 
22592
         X"$ac_dest" : 'X\(//\)$' \| \
 
22593
         X"$ac_dest" : 'X\(/\)' \| \
 
22594
         .     : '\(.\)' 2>/dev/null ||
 
22595
echo X"$ac_dest" |
 
22596
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
22597
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
22598
          /^X\(\/\/\)$/{ s//\1/; q; }
 
22599
          /^X\(\/\).*/{ s//\1/; q; }
 
22600
          s/.*/./; q'`
 
22601
  { if $as_mkdir_p; then
 
22602
    mkdir -p "$ac_dir"
 
22603
  else
 
22604
    as_dir="$ac_dir"
 
22605
    as_dirs=
 
22606
    while test ! -d "$as_dir"; do
 
22607
      as_dirs="$as_dir $as_dirs"
 
22608
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
22609
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
22610
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
22611
         X"$as_dir" : 'X\(//\)$' \| \
 
22612
         X"$as_dir" : 'X\(/\)' \| \
 
22613
         .     : '\(.\)' 2>/dev/null ||
 
22614
echo X"$as_dir" |
 
22615
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
22616
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
22617
          /^X\(\/\/\)$/{ s//\1/; q; }
 
22618
          /^X\(\/\).*/{ s//\1/; q; }
 
22619
          s/.*/./; q'`
 
22620
    done
 
22621
    test ! -n "$as_dirs" || mkdir $as_dirs
 
22622
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
22623
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
22624
   { (exit 1); exit 1; }; }; }
 
22625
 
 
22626
  ac_builddir=.
 
22627
 
 
22628
if test "$ac_dir" != .; then
 
22629
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
22630
  # A "../" for each directory in $ac_dir_suffix.
 
22631
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
22632
else
 
22633
  ac_dir_suffix= ac_top_builddir=
 
22634
fi
 
22635
 
 
22636
case $srcdir in
 
22637
  .)  # No --srcdir option.  We are building in place.
 
22638
    ac_srcdir=.
 
22639
    if test -z "$ac_top_builddir"; then
 
22640
       ac_top_srcdir=.
 
22641
    else
 
22642
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
22643
    fi ;;
 
22644
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
22645
    ac_srcdir=$srcdir$ac_dir_suffix;
 
22646
    ac_top_srcdir=$srcdir ;;
 
22647
  *) # Relative path.
 
22648
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
22649
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
22650
esac
 
22651
 
 
22652
# Do not use `cd foo && pwd` to compute absolute paths, because
 
22653
# the directories may not exist.
 
22654
case `pwd` in
 
22655
.) ac_abs_builddir="$ac_dir";;
 
22656
*)
 
22657
  case "$ac_dir" in
 
22658
  .) ac_abs_builddir=`pwd`;;
 
22659
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
22660
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
22661
  esac;;
 
22662
esac
 
22663
case $ac_abs_builddir in
 
22664
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
22665
*)
 
22666
  case ${ac_top_builddir}. in
 
22667
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
22668
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
22669
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
22670
  esac;;
 
22671
esac
 
22672
case $ac_abs_builddir in
 
22673
.) ac_abs_srcdir=$ac_srcdir;;
 
22674
*)
 
22675
  case $ac_srcdir in
 
22676
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
22677
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
22678
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
22679
  esac;;
 
22680
esac
 
22681
case $ac_abs_builddir in
 
22682
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
22683
*)
 
22684
  case $ac_top_srcdir in
 
22685
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
22686
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
22687
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
22688
  esac;;
 
22689
esac
 
22690
 
 
22691
 
 
22692
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
 
22693
echo "$as_me: executing $ac_dest commands" >&6;}
 
22694
  case $ac_dest in
 
22695
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
22696
  # Strip MF so we end up with the name of the file.
 
22697
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
22698
  # Check whether this is an Automake generated Makefile or not.
 
22699
  # We used to match only the files named `Makefile.in', but
 
22700
  # some people rename them; so instead we look at the file content.
 
22701
  # Grep'ing the first line is not enough: some people post-process
 
22702
  # each Makefile.in and add a new line on top of each file to say so.
 
22703
  # So let's grep whole file.
 
22704
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
22705
    dirpart=`(dirname "$mf") 2>/dev/null ||
 
22706
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
22707
         X"$mf" : 'X\(//\)[^/]' \| \
 
22708
         X"$mf" : 'X\(//\)$' \| \
 
22709
         X"$mf" : 'X\(/\)' \| \
 
22710
         .     : '\(.\)' 2>/dev/null ||
 
22711
echo X"$mf" |
 
22712
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
22713
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
22714
          /^X\(\/\/\)$/{ s//\1/; q; }
 
22715
          /^X\(\/\).*/{ s//\1/; q; }
 
22716
          s/.*/./; q'`
 
22717
  else
 
22718
    continue
 
22719
  fi
 
22720
  # Extract the definition of DEPDIR, am__include, and am__quote
 
22721
  # from the Makefile without running `make'.
 
22722
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
22723
  test -z "$DEPDIR" && continue
 
22724
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
22725
  test -z "am__include" && continue
 
22726
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
22727
  # When using ansi2knr, U may be empty or an underscore; expand it
 
22728
  U=`sed -n 's/^U = //p' < "$mf"`
 
22729
  # Find all dependency output files, they are included files with
 
22730
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
22731
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
22732
  # expansion.
 
22733
  for file in `sed -n "
 
22734
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
22735
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
22736
    # Make sure the directory exists.
 
22737
    test -f "$dirpart/$file" && continue
 
22738
    fdir=`(dirname "$file") 2>/dev/null ||
 
22739
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
22740
         X"$file" : 'X\(//\)[^/]' \| \
 
22741
         X"$file" : 'X\(//\)$' \| \
 
22742
         X"$file" : 'X\(/\)' \| \
 
22743
         .     : '\(.\)' 2>/dev/null ||
 
22744
echo X"$file" |
 
22745
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
22746
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
22747
          /^X\(\/\/\)$/{ s//\1/; q; }
 
22748
          /^X\(\/\).*/{ s//\1/; q; }
 
22749
          s/.*/./; q'`
 
22750
    { if $as_mkdir_p; then
 
22751
    mkdir -p $dirpart/$fdir
 
22752
  else
 
22753
    as_dir=$dirpart/$fdir
 
22754
    as_dirs=
 
22755
    while test ! -d "$as_dir"; do
 
22756
      as_dirs="$as_dir $as_dirs"
 
22757
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
22758
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
22759
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
22760
         X"$as_dir" : 'X\(//\)$' \| \
 
22761
         X"$as_dir" : 'X\(/\)' \| \
 
22762
         .     : '\(.\)' 2>/dev/null ||
 
22763
echo X"$as_dir" |
 
22764
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
22765
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
22766
          /^X\(\/\/\)$/{ s//\1/; q; }
 
22767
          /^X\(\/\).*/{ s//\1/; q; }
 
22768
          s/.*/./; q'`
 
22769
    done
 
22770
    test ! -n "$as_dirs" || mkdir $as_dirs
 
22771
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
 
22772
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
 
22773
   { (exit 1); exit 1; }; }; }
 
22774
 
 
22775
    # echo "creating $dirpart/$file"
 
22776
    echo '# dummy' > "$dirpart/$file"
 
22777
  done
 
22778
done
 
22779
 ;;
 
22780
  esac
 
22781
done
 
22782
_ACEOF
 
22783
 
 
22784
cat >>$CONFIG_STATUS <<\_ACEOF
 
22785
 
 
22786
{ (exit 0); exit 0; }
 
22787
_ACEOF
 
22788
chmod +x $CONFIG_STATUS
 
22789
ac_clean_files=$ac_clean_files_save
 
22790
 
 
22791
 
 
22792
# configure is writing to config.log, and then calls config.status.
 
22793
# config.status does its own redirection, appending to config.log.
 
22794
# Unfortunately, on DOS this fails, as config.log is still kept open
 
22795
# by configure, so config.status won't be able to write to it; its
 
22796
# output is simply discarded.  So we exec the FD to /dev/null,
 
22797
# effectively closing config.log, so it can be properly (re)opened and
 
22798
# appended to by config.status.  When coming back to configure, we
 
22799
# need to make the FD available again.
 
22800
if test "$no_create" != yes; then
 
22801
  ac_cs_success=:
 
22802
  ac_config_status_args=
 
22803
  test "$silent" = yes &&
 
22804
    ac_config_status_args="$ac_config_status_args --quiet"
 
22805
  exec 5>/dev/null
 
22806
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
22807
  exec 5>>config.log
 
22808
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
22809
  # would make configure fail if this is the last instruction.
 
22810
  $ac_cs_success || { (exit 1); exit 1; }
 
22811
fi
 
22812
 
 
22813